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
or (isinstance(exc, comtypes.COMError) and exc.hresult in (E_ACCESSDENIED, EVENT_E_ALL_SUBSCRIBERS_FAILED, RPC_E_CALL_REJECTED, RPC_E_CALL_CANCELED))
or (isinstance(exc, comtypes.COMError) and (exc.hresult in (E_ACCESSDENIED, EVENT_E_ALL_SUBSCRIBERS_FAILED, RPC_E_CALL_REJECTED, RPC_E_CALL_CANCELED) or exc.hresult & 0xFFFF == RPC_S_SERVER_UNAVAILABLE))
def exception(self, msg="", exc_info=True): """Log an exception at an appropriate levle. Normally, it will be logged at level "ERROR". However, certain exceptions which aren't considered errors (or aren't errors that we can fix) are expected and will therefore be logged at a lower level. """ import comtypes if exc_info...
c9b5920538f86fd3a1182ceeb92025177240267a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/c9b5920538f86fd3a1182ceeb92025177240267a/logHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 12, 2890, 16, 1234, 1546, 3113, 3533, 67, 1376, 33, 5510, 4672, 3536, 1343, 392, 1520, 622, 392, 5505, 18565, 298, 18, 24773, 1230, 16, 518, 903, 506, 7545, 622, 1801, 315, 3589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1520, 12, 2890, 16, 1234, 1546, 3113, 3533, 67, 1376, 33, 5510, 4672, 3536, 1343, 392, 1520, 622, 392, 5505, 18565, 298, 18, 24773, 1230, 16, 518, 903, 506, 7545, 622, 1801, 315, 3589, ...
if form1234[2] == 'I':
if len(form1234) > 2 and form1234[2] == 'I':
def mapFids(self,record,function,save=False): """Applies function to fids. If save is true, then fid is set to result of function.""" for target in record.conditions: form1234 = target.form1234 if form1234[0] == 'I': result = function(target.param1) if save: target.param1 = result if form1234[1] == 'I': result = functi...
f7657b46c1cc4c0ebe998d470c2afc1743ac92de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/f7657b46c1cc4c0ebe998d470c2afc1743ac92de/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 42, 2232, 12, 2890, 16, 3366, 16, 915, 16, 5688, 33, 8381, 4672, 3536, 13029, 445, 358, 284, 2232, 18, 971, 1923, 353, 638, 16, 1508, 13444, 353, 444, 358, 563, 434, 445, 12123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 852, 42, 2232, 12, 2890, 16, 3366, 16, 915, 16, 5688, 33, 8381, 4672, 3536, 13029, 445, 358, 284, 2232, 18, 971, 1923, 353, 638, 16, 1508, 13444, 353, 444, 358, 563, 434, 445, 12123, ...
elif (type == 'Skill' or itemtype == 'Focus') and effect[0:4] == 'All ' \
elif (slottype == 'Skill' or slottype == 'Focus') \ and effect[0:4] == 'All ' \
def DelveItemsDialog(self, find, findtype = None): locs = [] for key, item in self.itemattrlist.iteritems(): activestate = item.ActiveState for slot in range(0, item.slotCount()): itemtype = str(item.slot(slot).type()) if itemtype == 'Unused': continue if (findtype and itemtype != findtype) or \ (not findtype and itemt...
567b24f92673d97010a80da732b5265d24eed8f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/567b24f92673d97010a80da732b5265d24eed8f5/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 537, 3126, 6353, 12, 2890, 16, 1104, 16, 1104, 723, 273, 599, 4672, 26357, 273, 5378, 364, 498, 16, 761, 316, 365, 18, 1726, 1747, 1098, 18, 2165, 3319, 13332, 5981, 395, 340, 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, 6603, 537, 3126, 6353, 12, 2890, 16, 1104, 16, 1104, 723, 273, 599, 4672, 26357, 273, 5378, 364, 498, 16, 761, 316, 365, 18, 1726, 1747, 1098, 18, 2165, 3319, 13332, 5981, 395, 340, 27...
if code in ['minnan', 'zh', 'zh-classical', 'zh-min-nan', 'zh-tw']:
if code in ['minnan', 'zh', 'zh-classical', 'zh-min-nan', 'zh-tw', 'zh-hans', 'zh-hant']:
def altlang(code): #Amharic if code in ['aa', 'om']: return ['am'] #Arab if code in ['arc', 'arz']: return ['ar'] if code == 'kab': return ['ar', 'fr'] #Bulgarian if code in ['cu', 'mk']: return ['bg', 'sr', 'sh'] #Czech if code in ['cs', 'sk']: return ['cs', 'sk'] #German if code in ['als', 'bar', 'ksh']: return ['de'...
879ac9b77744a9866e3a4743863dfc90aa82a9fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/879ac9b77744a9866e3a4743863dfc90aa82a9fd/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3770, 4936, 12, 710, 4672, 468, 9864, 30250, 335, 309, 981, 316, 10228, 7598, 2187, 296, 362, 3546, 30, 327, 10228, 301, 3546, 468, 37, 20727, 309, 981, 316, 10228, 11828, 2187, 296, 297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3770, 4936, 12, 710, 4672, 468, 9864, 30250, 335, 309, 981, 316, 10228, 7598, 2187, 296, 362, 3546, 30, 327, 10228, 301, 3546, 468, 37, 20727, 309, 981, 316, 10228, 11828, 2187, 296, 297...
print "reinitialize_command: command=%s" % command print " before: have_run =", self.have_run
def reinitialize_command (self, command, reinit_subcommands=0): """Reinitializes a command to the state it was in when first returned by 'get_command_obj()': ie., initialized but not yet finalized. This provides the opportunity to sneak option values in programmatically, overriding or supplementing user-supplied value...
47ec20757d5fed3e7af19d722fbb137a4c8f9e9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/47ec20757d5fed3e7af19d722fbb137a4c8f9e9a/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 11160, 67, 3076, 261, 2890, 16, 1296, 16, 283, 2738, 67, 1717, 7847, 33, 20, 4672, 3536, 426, 6769, 3128, 279, 1296, 358, 326, 919, 518, 1703, 316, 1347, 1122, 2106, 635, 296, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 11160, 67, 3076, 261, 2890, 16, 1296, 16, 283, 2738, 67, 1717, 7847, 33, 20, 4672, 3536, 426, 6769, 3128, 279, 1296, 358, 326, 919, 518, 1703, 316, 1347, 1122, 2106, 635, 296, 588...
for c in acceptableNcCommands: print c,
for c in local.acceptableNcCommands: print c,
def printUsage(): print "Usage: " + sys.argv[0] + " <cmd> [cmd args...]" print "... where <cmd> is one of: ", for c in acceptableNcCommands: print c, print print "... and cmd args are the args you want for the command" print "Note that you have to have both an input and output file specified," print "unless you're usin...
ca4c3eead6961bf4a2f9b759b6d76a1ac04d6f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/ca4c3eead6961bf4a2f9b759b6d76a1ac04d6f44/ssdwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 5357, 13332, 1172, 315, 5357, 30, 315, 397, 2589, 18, 19485, 63, 20, 65, 397, 315, 411, 4172, 34, 306, 4172, 833, 2777, 4279, 1172, 31305, 1625, 411, 4172, 34, 353, 1245, 434, 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, 1172, 5357, 13332, 1172, 315, 5357, 30, 315, 397, 2589, 18, 19485, 63, 20, 65, 397, 315, 411, 4172, 34, 306, 4172, 833, 2777, 4279, 1172, 31305, 1625, 411, 4172, 34, 353, 1245, 434, 30...
self.assertEqual(d.values(), [])
self.assertEqual(set(d.values()), set())
def test_values(self): d = {} self.assertEqual(d.values(), []) d = {1:2} self.assertEqual(d.values(), [2])
3028aa4ab8a013864a3be3a9864bf8c0e60ce63b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/3028aa4ab8a013864a3be3a9864bf8c0e60ce63b/test_dict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 302, 273, 2618, 365, 18, 11231, 5812, 12, 542, 12, 72, 18, 2372, 1435, 3631, 444, 10756, 302, 273, 288, 21, 30, 22, 97, 365, 18, 11231, 5812, 12, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 302, 273, 2618, 365, 18, 11231, 5812, 12, 542, 12, 72, 18, 2372, 1435, 3631, 444, 10756, 302, 273, 288, 21, 30, 22, 97, 365, 18, 11231, 5812, 12, 72, ...
opname = 'int_abs' side_effects = False
opname = 'int_abs', 'int_abs_ovf' side_effects = False ccexcflag = Conditions['L']
def generate(self, allocator): srcop = allocator.get_operand(self.x) if allocator.release(self.x): # in-place operation dstop = srcop allocator.create_exactly_at(self, dstop) else: # make a copy in a new register dstop = allocator.create_reg(self, srcop) self.emit(allocator.mc, dstop)
76ac11fadfacd707448a46df011e11016a8819a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/76ac11fadfacd707448a46df011e11016a8819a6/operation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 26673, 4672, 1705, 556, 273, 26673, 18, 588, 67, 4063, 464, 12, 2890, 18, 92, 13, 309, 26673, 18, 9340, 12, 2890, 18, 92, 4672, 468, 316, 17, 964, 1674, 3046, 556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 12, 2890, 16, 26673, 4672, 1705, 556, 273, 26673, 18, 588, 67, 4063, 464, 12, 2890, 18, 92, 13, 309, 26673, 18, 9340, 12, 2890, 18, 92, 4672, 468, 316, 17, 964, 1674, 3046, 556...
self._clearList() self.setupUi() self._populateToolchainList() if len(self._valid_items) >= 1: self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
if previous_id is None or previous_id < self.wizard().currentId(): self._clearList() self.setupUi() self._populateToolchainList() if len(self._valid_items) >= 1: self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
def reloadData(self, previous_id=None): """ Overload of the BWizard reloadData method. """ self._clearList() self.setupUi() self._populateToolchainList() if len(self._valid_items) >= 1: self.pageContent.toolchainList.setCurrentItem(self.pageContent.toolchainList.currentItem() or self._valid_items[0])
bc8b61afa24c8ccecb748ba1aebc5c45ff70cc17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9114/bc8b61afa24c8ccecb748ba1aebc5c45ff70cc17/BToolchainPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 751, 12, 2890, 16, 2416, 67, 350, 33, 7036, 4672, 3536, 10752, 945, 434, 326, 605, 27130, 7749, 751, 707, 18, 3536, 365, 6315, 8507, 682, 1435, 365, 18, 8401, 13943, 1435, 365, 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, 7749, 751, 12, 2890, 16, 2416, 67, 350, 33, 7036, 4672, 3536, 10752, 945, 434, 326, 605, 27130, 7749, 751, 707, 18, 3536, 365, 6315, 8507, 682, 1435, 365, 18, 8401, 13943, 1435, 365, 6...
.. note:: Reference for the Sturm bound that we use in the definition of of this function: J. Sturm, On the congruence of modular forms, Number theory (New York, 1984-1985), Springer, Berlin, 1987, pp. 275-280. Useful Remark:
sage: CuspForms(Gamma1(144), 3).sturm_bound() 3457 sage: CuspForms(DirichletGroup(144).1^2, 3).sturm_bound() 73 sage: CuspForms(Gamma0(144), 3).sturm_bound() 73 REFERENCE: - [Sturm] J. Sturm, On the congruence of modular forms, Number theory (New York, 1984-1985), Springer, Berlin, 1987, pp. 275-280. NOTE::
def sturm_bound(self, M=None): r""" For a space M of modular forms, this function returns an integer B such that two modular forms in either self or M are equal if and only if their q-expansions are equal to precision B (note that this is 1+ the usual Sturm bound, since `O(q^\mathrm{prec})` has precision prec). If M is...
7cfc69b99a5e57fd68044d80a9e5bb2180a14c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7cfc69b99a5e57fd68044d80a9e5bb2180a14c73/space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 384, 27430, 67, 3653, 12, 2890, 16, 490, 33, 7036, 4672, 436, 8395, 2457, 279, 3476, 490, 434, 681, 2490, 10138, 16, 333, 445, 1135, 392, 3571, 605, 4123, 716, 2795, 681, 2490, 10138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 384, 27430, 67, 3653, 12, 2890, 16, 490, 33, 7036, 4672, 436, 8395, 2457, 279, 3476, 490, 434, 681, 2490, 10138, 16, 333, 445, 1135, 392, 3571, 605, 4123, 716, 2795, 681, 2490, 10138, ...
if not system("rpm -q -e %s" % " ".join(self.pkgwork['remove'])):
if not system("rpm --quiet -e %s" % " ".join(self.pkgwork['remove'])):
def HandleExtra(self): '''Deal with extra configuration detected''' if len(self.pkgwork) > 0: if self.setup['remove'] in ['all', 'packages']: self.CondPrint('verbose', "Removing packages: %s" % self.pkgwork['remove']) if not system("rpm -q -e %s" % " ".join(self.pkgwork['remove'])): self.pkgwork['remove'] = [] else: se...
e2029211aa9dbccecaf7c6727afd26b21d16b3b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/e2029211aa9dbccecaf7c6727afd26b21d16b3b5/Redhat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 7800, 12, 2890, 4672, 9163, 758, 287, 598, 2870, 1664, 8316, 26418, 309, 562, 12, 2890, 18, 10657, 1252, 13, 405, 374, 30, 309, 365, 18, 8401, 3292, 4479, 3546, 316, 10228, 454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5004, 7800, 12, 2890, 4672, 9163, 758, 287, 598, 2870, 1664, 8316, 26418, 309, 562, 12, 2890, 18, 10657, 1252, 13, 405, 374, 30, 309, 365, 18, 8401, 3292, 4479, 3546, 316, 10228, 454, ...
version = '3.5.0',
version = '3.4.1',
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
1087fb916fca71c1563f0339847a682f0bd4870f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9519/1087fb916fca71c1563f0339847a682f0bd4870f/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
if m <= 0:
if m < 0:
def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. INPUT:: x -- number m -- integer OUTPUT:: number EXAMPLES:: sage: binomial(5,2) 10 sage: binomial(2,0) 1 sage: binomial(3,-1) 0 sage: binomial(20,10) 184756 sage...
05777f2a26be1923eec0fe5d1054b7d523e60167 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/05777f2a26be1923eec0fe5d1054b7d523e60167/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 5366, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 5366, 1492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4158, 11496, 12, 92, 16, 81, 4672, 436, 8395, 2000, 326, 4158, 11496, 16554, 5366, 619, 261, 92, 17, 21, 13, 521, 4315, 6968, 261, 92, 17, 81, 15, 21, 13, 342, 312, 5, 5366, 1492, ...
v='(' j=0 id=a['id'] prefix=string.rfind(id,'.') if prefix>=0: id=id[prefix+1:] put='p' if binary: id=string.atoi(id) s=mdumps(id)[1:] if (id < 256): id=s[0] put='q' else: id=s put='r' for x in data[2:]: if j==0: v=v + x elif j==1: x=x[1:] stop=string.rfind(x,'t') if stop>=0: x=x[:stop] v=v+x+'o'+put+id elif j==2: v=v+...
return save_put(self, 'c'+a['module']+'\012'+a['name']+'\012', a)
def save_object(self, tag, data): binary=self.binary a=data[1] v='(' j=0 id=a['id'] prefix=string.rfind(id,'.') if prefix>=0: id=id[prefix+1:] put='p' if binary: id=string.atoi(id) s=mdumps(id)[1:] if (id < 256): id=s[0] put='q' else: id=s put='r' for x in data[2:]: if j==0: v=v + x elif j==1: x=x[1:] stop=string.rfind...
b3044d78409b750569423711b47a47edfd53dde3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b3044d78409b750569423711b47a47edfd53dde3/ppml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1612, 12, 2890, 16, 1047, 16, 501, 4672, 3112, 33, 2890, 18, 8578, 279, 33, 892, 63, 21, 65, 331, 2218, 2668, 525, 33, 20, 612, 33, 69, 3292, 350, 3546, 1633, 33, 1080, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1612, 12, 2890, 16, 1047, 16, 501, 4672, 3112, 33, 2890, 18, 8578, 279, 33, 892, 63, 21, 65, 331, 2218, 2668, 525, 33, 20, 612, 33, 69, 3292, 350, 3546, 1633, 33, 1080, 1...
'Arrow from (0,0) to (2,3)'
'Arrow from (0.0,0.0) to (2.0,3.0)'
def _repr_(self): """ Text representation of an arrow graphics primitive.
0678e50d02a3d118982ae66f7059b6e5e307c733 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0678e50d02a3d118982ae66f7059b6e5e307c733/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 3867, 4335, 434, 392, 12274, 17313, 8225, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 389, 12715, 67, 12, 2890, 4672, 3536, 3867, 4335, 434, 392, 12274, 17313, 8225, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
>>> element = ET.Element("tag", key="value")
>>> element = ET.Element("t\xe4g", key="value")
def interface(): """ Test element tree interface. >>> element = ET.Element("tag") >>> check_element(element) >>> tree = ET.ElementTree(element) >>> check_element(tree.getroot()) >>> element = ET.Element("tag", key="value") >>> tree = ET.ElementTree(element) >>> repr(element) # doctest: +ELLIPSIS "<Element 'tag' at ...
64b918010bff27b0c7465e2636cc312c3bbf3596 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/64b918010bff27b0c7465e2636cc312c3bbf3596/test_xml_etree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1560, 13332, 3536, 7766, 930, 2151, 1560, 18, 225, 4080, 930, 273, 4518, 18, 1046, 2932, 2692, 7923, 4080, 866, 67, 2956, 12, 2956, 13, 4080, 2151, 273, 4518, 18, 1046, 2471, 12, 2956, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1560, 13332, 3536, 7766, 930, 2151, 1560, 18, 225, 4080, 930, 273, 4518, 18, 1046, 2932, 2692, 7923, 4080, 866, 67, 2956, 12, 2956, 13, 4080, 2151, 273, 4518, 18, 1046, 2471, 12, 2956, ...
self.items = self.vcs.get_items(self.paths, self.vcs.STATUSES_FOR_COMMIT)
self.items = filter(lambda item: self.vcs.is_versioned(item.path), self.vcs.get_items(self.paths, self.vcs.STATUSES_FOR_COMMIT))
def load(self): gtk.gdk.threads_enter() self.get_widget("status").set_text(_("Loading...")) self.items = self.vcs.get_items(self.paths, self.vcs.STATUSES_FOR_COMMIT) self.populate_files_from_original() self.get_widget("status").set_text(_("Found %d item(s)") % len(self.items)) gtk.gdk.threads_leave()
e7ae66e2768474d14a954ab452d3749b6e8c22a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/e7ae66e2768474d14a954ab452d3749b6e8c22a9/createpatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 4672, 22718, 18, 75, 2883, 18, 12495, 67, 2328, 1435, 365, 18, 588, 67, 6587, 2932, 2327, 20387, 542, 67, 955, 24899, 2932, 10515, 7070, 3719, 365, 18, 3319, 273, 1034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 12, 2890, 4672, 22718, 18, 75, 2883, 18, 12495, 67, 2328, 1435, 365, 18, 588, 67, 6587, 2932, 2327, 20387, 542, 67, 955, 24899, 2932, 10515, 7070, 3719, 365, 18, 3319, 273, 1034, ...
os.unlink(filename)
os.unlink(self.filename)
def test_tofile_sep(self): x = np.array([1.51, 2, 3.51, 4], dtype=float) f = open(self.filename, 'w') x.tofile(f, sep=',') f.close() f = open(self.filename, 'r') s = f.read() f.close() assert_equal(s, '1.51,2.0,3.51,4.0') os.unlink(filename)
5bc4aefda5bfd7dde9599e2f75ce58696d9bc2c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/5bc4aefda5bfd7dde9599e2f75ce58696d9bc2c1/test_multiarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 869, 768, 67, 10814, 12, 2890, 4672, 619, 273, 1130, 18, 1126, 3816, 21, 18, 10593, 16, 576, 16, 890, 18, 10593, 16, 1059, 6487, 3182, 33, 5659, 13, 284, 273, 1696, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 869, 768, 67, 10814, 12, 2890, 4672, 619, 273, 1130, 18, 1126, 3816, 21, 18, 10593, 16, 576, 16, 890, 18, 10593, 16, 1059, 6487, 3182, 33, 5659, 13, 284, 273, 1696, 12, 289...
if patch_hunks(backupname, filename, self.hunks[fileno]):
if self.writehunks(backupname, filename, self.hunks[fileno]):
def apply(self): """ apply parsed patch """
c15e8e0823466212bc065fa3c430f87a89687e87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4098/c15e8e0823466212bc065fa3c430f87a89687e87/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 4672, 3536, 2230, 2707, 4729, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2230, 12, 2890, 4672, 3536, 2230, 2707, 4729, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
env.AppendUnique(LIBS = ['ram_' + self.name])
variant_suffix = env['VARIANT'].suffix env.AppendUnique(LIBS = ['ram_' + self.name + variant_suffix])
def setup_environment(self, env, building_self = False): # Include self in library list if not building_self: env.AppendUnique(LIBS = ['ram_' + self.name])
089ed32122715b678e0992054d22d0b908756730 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/089ed32122715b678e0992054d22d0b908756730/libs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 10274, 12, 2890, 16, 1550, 16, 10504, 67, 2890, 273, 1083, 4672, 468, 12672, 365, 316, 5313, 666, 309, 486, 10504, 67, 2890, 30, 1550, 18, 5736, 6303, 12, 2053, 12692, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 10274, 12, 2890, 16, 1550, 16, 10504, 67, 2890, 273, 1083, 4672, 468, 12672, 365, 316, 5313, 666, 309, 486, 10504, 67, 2890, 30, 1550, 18, 5736, 6303, 12, 2053, 12692, 273, 1...
sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: S.<t> = PowerSeriesRing(Integers(p**M), default_prec=4) sage: a = 7 + t + 3*t^2 sage: b = 8 - 6*t + 17*t^2 sage: R.<x> = PolynomialRing(S) sage: Q = x**3 + a*x + b sage: A = monsky_washnitzer.matrix_of_frobenius(Q, p, M) sage: B = A.ch...
sage: p = 11 sage: prec = 3 sage: M = monsky_washnitzer.adjusted_prec(p, prec) sage: S.<t> = PowerSeriesRing(Integers(p**M), default_prec=4) sage: a = 7 + t + 3*t^2 sage: b = 8 - 6*t + 17*t^2 sage: R.<x> = PolynomialRing(S) sage: Q = x**3 + a*x + b sage: A = monsky_washnitzer.matrix_of_frobenius(Q, p, M) sage: B = A.ch...
def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be...
06ea403f27d6562f2b12bd1e2b8f27b9b674388a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/06ea403f27d6562f2b12bd1e2b8f27b9b674388a/monsky_washnitzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 1942...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 1942...
break
next_post_len = len(rel._post)
def orderRpms(self, rpmlist, relations): # save packages which have no relations no_relations = [ ] for i in xrange(len(rpmlist)): rlist = rpmlist[i] for r in rlist: if not relations.has_key(r): no_relations.append(r)
a0b61c946a6b6762881827e19fdc8d2d78786ad8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/a0b61c946a6b6762881827e19fdc8d2d78786ad8/resolver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1353, 54, 84, 959, 12, 2890, 16, 8715, 781, 376, 16, 7467, 4672, 468, 1923, 5907, 1492, 1240, 1158, 7467, 1158, 67, 15018, 273, 306, 308, 364, 277, 316, 12314, 12, 1897, 12, 13832, 781...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1353, 54, 84, 959, 12, 2890, 16, 8715, 781, 376, 16, 7467, 4672, 468, 1923, 5907, 1492, 1240, 1158, 7467, 1158, 67, 15018, 273, 306, 308, 364, 277, 316, 12314, 12, 1897, 12, 13832, 781...
class arch_armv6zl(generic_arm): "Builder class for armv6zl target"
class arch_armv6zk(generic_arm): "Builder class for armv6zk target"
def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv6t2l-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6t2 -pipe"
423613d4d63f3a603ff416edd814c78b4f729c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/423613d4d63f3a603ff416edd814c78b4f729c55/arm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 26, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 5210, 67, 4610, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 1792, 4005, 11929, 1546, 4610, 90, 26, 88, ...
self._render(filename, dpi=dpi, figsize=figsize, **args) def show(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, **args):
self._render(filename, dpi=dpi, figsize=figsize, axes = axes, **args) def show(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, axes = None, **args):
def save(self, filename=None, dpi=DEFAULT_DPI, figsize=DEFAULT_FIGSIZE, **args): """ save the \code{graphics_array} to (for now) a png called 'filename'. """ self._render(filename, dpi=dpi, figsize=figsize, **args)
30609b069521723e6ee984f1bba5af909d254fa3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/30609b069521723e6ee984f1bba5af909d254fa3/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 2826, 1968, 4672, 3536, 1923, 326, 521, 710, 95, 31586, 67, 1126, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, 40, 1102, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 2826, 1968, 4672, 3536, 1923, 326, 521, 710, 95, 31586, 67, 1126, 97, ...
pkg_tags.append({'name': tag[0], 'tag': tag[1], 'score': tag[2]})
if (tag[0], tag[1]) not in used_tags: pkg_tags.append({'name': tag[0], 'tag': tag[1], 'score': tag[2]}) used_tags.add((tag[0], tag[1]))
def sqlitebuildtags(self, repo): '''Return a sqlite database of packagebuilds and tags.
62f01ae6c742a259594e48714b1afdc05f580ff3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9953/62f01ae6c742a259594e48714b1afdc05f580ff3/listqueries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16184, 3510, 4156, 12, 2890, 16, 3538, 4672, 9163, 990, 279, 16184, 2063, 434, 2181, 27324, 471, 2342, 18, 2, 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, 16184, 3510, 4156, 12, 2890, 16, 3538, 4672, 9163, 990, 279, 16184, 2063, 434, 2181, 27324, 471, 2342, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gLogger.debug("SRM2Storage.createDirectory: Attempting to create %s directories." % len(urls))
gLogger.debug( "SRM2Storage.createDirectory: Attempting to create %s directories." % len( urls ) )
def createDirectory(self,path): """ Make recursively new directory(ies) on the physical storage """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value']
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 80) else quickfix.DoubleField.__init__(self, 80, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 8958, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 8958, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, ...
element["callers"] = getattr(component, "callers", [])
element["callers"] = getattr(component, "callers") or []
def process(self, template, params=None, localize=False): output = StringIO.StringIO() if not isinstance(template, list): template = [template] compileds = [] for name in template: compileds.append(self.template(name)) if localize: self.STASH = self.STASH.clone(params) else: self.STASH.update(params)
ecf2155381bd34255b20f1ace19ad8802c628be1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/ecf2155381bd34255b20f1ace19ad8802c628be1/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 1542, 16, 859, 33, 7036, 16, 26407, 33, 8381, 4672, 876, 273, 15777, 18, 780, 4294, 1435, 309, 486, 1549, 12, 3202, 16, 666, 4672, 1542, 273, 306, 3202, 65, 7743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 1542, 16, 859, 33, 7036, 16, 26407, 33, 8381, 4672, 876, 273, 15777, 18, 780, 4294, 1435, 309, 486, 1549, 12, 3202, 16, 666, 4672, 1542, 273, 306, 3202, 65, 7743, ...
__head = val if __run('git-update-ref HEAD', [val]) != 0: raise GitException, 'Could not update HEAD to "%s".' % val
if not __head or __head != val: if __run('git-update-ref HEAD', [val]) != 0: raise GitException, 'Could not update HEAD to "%s".' % val __head = val def __clear_head_cache(): """Sets the __head to None so that a re-read is forced """ global __head __head = None
def __set_head(val): """Sets the HEAD value """ global __head __head = val if __run('git-update-ref HEAD', [val]) != 0: raise GitException, 'Could not update HEAD to "%s".' % val
ba1a4550a02d89ed021d7c9e909fdba8e097888d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/ba1a4550a02d89ed021d7c9e909fdba8e097888d/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 1978, 12, 1125, 4672, 3536, 2785, 326, 14792, 460, 3536, 2552, 1001, 1978, 225, 309, 486, 1001, 1978, 578, 1001, 1978, 480, 1244, 30, 309, 1001, 2681, 2668, 6845, 17, 2725...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 67, 1978, 12, 1125, 4672, 3536, 2785, 326, 14792, 460, 3536, 2552, 1001, 1978, 225, 309, 486, 1001, 1978, 578, 1001, 1978, 480, 1244, 30, 309, 1001, 2681, 2668, 6845, 17, 2725...
return '<%(cls)s %(fname)r (%(mime)s, %(size)d bytes)>' % {
return '<%(cls)s %(fname)r (%(mime)s, %(size)r bytes)>' % {
def __repr__(self): return '<%(cls)s %(fname)r (%(mime)s, %(size)d bytes)>' % { 'cls': self.__class__.__name__, 'fname': self.filename, 'mime': self.content_type, 'size': self.size, }
5675303debe6f972fbf0f01ab1e7f3efa67ce182 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/5675303debe6f972fbf0f01ab1e7f3efa67ce182/NyBlobFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 17105, 6429, 13, 87, 8975, 12749, 13, 86, 6142, 12, 11757, 13, 87, 16, 8975, 1467, 13, 86, 1731, 13, 1870, 738, 288, 296, 6429, 4278, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2368, 17105, 6429, 13, 87, 8975, 12749, 13, 86, 6142, 12, 11757, 13, 87, 16, 8975, 1467, 13, 86, 1731, 13, 1870, 738, 288, 296, 6429, 4278, 365, ...
logfile = None,
logfile = logfile,
def __init__(self, maxread=10000, script_subdirectory="", logfile=None, server=None): Expect.__init__(self, name = 'macaulay2', prompt = 'i[0-9]* : ', command = "M2 --no-debug --no-readline --silent ", maxread = maxread, server = server, script_subdirectory = script_subdirectory, verbose_start = False, logfile = None, ...
30a981b2de183f5a1e2fb852fd1dc6058fb7b9a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/30a981b2de183f5a1e2fb852fd1dc6058fb7b9a5/macaulay2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 943, 896, 33, 23899, 16, 2728, 67, 1717, 5149, 1546, 3113, 15204, 33, 7036, 16, 1438, 33, 7036, 4672, 15510, 16186, 2738, 972, 12, 2890, 16, 508, 273, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 943, 896, 33, 23899, 16, 2728, 67, 1717, 5149, 1546, 3113, 15204, 33, 7036, 16, 1438, 33, 7036, 4672, 15510, 16186, 2738, 972, 12, 2890, 16, 508, 273, 29...
self.queueJob(self.priorityJobAllocationDatabaseConnection, self.priorityJobAllocationCursor, currentDirectory, fileName, processorIdSequenceGenerator, 1)
self.queueJob(self.priorityJobAllocationDatabaseConnection, self.priorityJobAllocationCursor, currentDirectory, filename, processorIdSequenceGenerator, 1)
def priorityJobAllocationLoop(self): try: self.priorityJobAllocationDatabaseConnection = psycopg2.connect(self.config.databaseDSN) self.priorityJobAllocationCursor = self.priorityJobAllocationDatabaseConnection.cursor() except: self.quit = True socorro.lib.util.reportExceptionAndAbort(logger) # can't continue without a...
db460726abcfacb17a74b1e68b317fa7f22f497b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/db460726abcfacb17a74b1e68b317fa7f22f497b/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 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, 4394, 2278, 17353, 6452, 12, 2890, 4672, 775, 30, 365, 18, 8457, 2278, 17353, 4254, 1952, 273, 4250, 93, 22295, 75, 22, 18, 3612, 12, 2890, 18, 1425, 18, 6231, 3948, 50, 13, 365, 18, ...
ZONE_NAME_CLASS1_IN)
ZONE_NAME_CLASS1_IN) sqlite3_ds.get_zone_soa = old_get_zone_soa
def get_zone_soa2(zone_name, db_file): return None
c5a9ab2da56fc81874bd9c434ab7907afa578f9a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/c5a9ab2da56fc81874bd9c434ab7907afa578f9a/zonemgr_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3486, 67, 2048, 69, 22, 12, 3486, 67, 529, 16, 1319, 67, 768, 4672, 327, 599, 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, 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, 336, 67, 3486, 67, 2048, 69, 22, 12, 3486, 67, 529, 16, 1319, 67, 768, 4672, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
err ('update_url_matches: POSIX match failed, trying GNU')
err ('Terminal::update_url_matches: POSIX match failed, trying GNU')
def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars...
f803ff98c0270b301f534c32cac5f800505b7f86 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/f803ff98c0270b301f534c32cac5f800505b7f86/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 718, 67, 8436, 12, 2890, 16, 16366, 273, 1053, 4672, 3536, 1891, 326, 3936, 1121, 1399, 358, 845, 10414, 8395, 729, 7549, 273, 3701, 37, 17, 15948, 17, 94, 20, 17, 29, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 718, 67, 8436, 12, 2890, 16, 16366, 273, 1053, 4672, 3536, 1891, 326, 3936, 1121, 1399, 358, 845, 10414, 8395, 729, 7549, 273, 3701, 37, 17, 15948, 17, 94, 20, 17, 29, 6, 1...
footer_data.append(fmtfunc[i](footer_func[i](ser)))
footer_data.append(fmtfunc[i](footer_func[i](ser[dates])))
def getval(series, date): temp = series[date] if temp is ts.tsmasked: return temp else: return temp.series[0]
49f7cf850b803093831ddb07ea689be861903eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/49f7cf850b803093831ddb07ea689be861903eaa/reportlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1125, 12, 10222, 16, 1509, 4672, 1906, 273, 4166, 63, 712, 65, 309, 1906, 353, 3742, 18, 3428, 23455, 30, 327, 1906, 469, 30, 327, 1906, 18, 10222, 63, 20, 65, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1125, 12, 10222, 16, 1509, 4672, 1906, 273, 4166, 63, 712, 65, 309, 1906, 353, 3742, 18, 3428, 23455, 30, 327, 1906, 469, 30, 327, 1906, 18, 10222, 63, 20, 65, 2, -100, -100, -1...
return opnum, [], None
return opnum, [], None, None
def parse_op(self, line): num = line.find('(') if num == -1: raise ParseError("invalid line: %s" % line) opname = line[:num] try: opnum = getattr(rop, opname.upper()) except AttributeError: raise ParseError("unknown op: %s" % opname) endnum = line.rfind(')') if endnum == -1: raise ParseError("invalid line: %s" % line) ...
54081199adc228fda10fa7c2b2863eec932ec413 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/54081199adc228fda10fa7c2b2863eec932ec413/oparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 556, 12, 2890, 16, 980, 4672, 818, 273, 980, 18, 4720, 2668, 2668, 13, 309, 818, 422, 300, 21, 30, 1002, 17372, 2932, 5387, 980, 30, 738, 87, 6, 738, 980, 13, 30273, 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, 1109, 67, 556, 12, 2890, 16, 980, 4672, 818, 273, 980, 18, 4720, 2668, 2668, 13, 309, 818, 422, 300, 21, 30, 1002, 17372, 2932, 5387, 980, 30, 738, 87, 6, 738, 980, 13, 30273, 273, ...
return Utils.maketext(
return quick_maketext(
def html_TOC_entry(self, arch): # Check to see if the archive is gzip'd or not txtfile = os.path.join(self.maillist.archive_dir(), arch + '.txt') gzfile = txtfile + '.gz' # which exists? .txt.gz first, then .txt if os.path.exists(gzfile): file = gzfile url = arch + '.txt.gz' templ = '<td><A href="%(url)s">[ ' + _('Gzi...
1a6a7a39d00618a07ee9f3bcaf350032ab0fbc59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/1a6a7a39d00618a07ee9f3bcaf350032ab0fbc59/HyperArch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 4296, 39, 67, 4099, 12, 2890, 16, 6637, 4672, 468, 2073, 358, 2621, 309, 326, 5052, 353, 10331, 14271, 578, 486, 6463, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1729, 67, 4296, 39, 67, 4099, 12, 2890, 16, 6637, 4672, 468, 2073, 358, 2621, 309, 326, 5052, 353, 10331, 14271, 578, 486, 6463, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4408, ...
self.nfs_mount = tempfile.mkdtemp(prefix='nfs_', dir='/tmp') floppy_name = os.environ['KVM_TEST_floppy'] self.floppy_img = os.path.join(kvm_test_dir, floppy_name) floppy_dir = os.path.dirname(self.floppy_img) if not os.path.isdir(floppy_dir): os.makedirs(floppy_dir) self.pxe_dir = os.environ.get('KVM_TEST_pxe_dir', ''...
if self.medium == 'nfs': self.nfs_mount = tempfile.mkdtemp(prefix='nfs_', dir='/tmp') self.floppy = os.path.join(kvm_test_dir, self.floppy) if not os.path.isdir(os.path.dirname(self.floppy)): os.makedirs(os.path.dirname(self.floppy))
def __init__(self): """ Gets params from environment variables and sets class attributes. """ script_dir = os.path.dirname(sys.modules[__name__].__file__) kvm_test_dir = os.path.abspath(os.path.join(script_dir, "..")) images_dir = os.path.join(kvm_test_dir, 'images') self.deps_dir = os.path.join(kvm_test_dir, 'deps') s...
ceb8d13a359f769d2466312b3698d9f3d9438d01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/ceb8d13a359f769d2466312b3698d9f3d9438d01/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 11881, 859, 628, 3330, 3152, 471, 1678, 667, 1677, 18, 3536, 2728, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 6400, 63, 972, 529, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 11881, 859, 628, 3330, 3152, 471, 1678, 667, 1677, 18, 3536, 2728, 67, 1214, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 6400, 63, 972, 529, 972...
def test_tuple_members(): M = Module() M.a = (1,1) assert isinstance(M.a, tuple) class Temp(Module): def __init__(self): self.a = (1,1) M = Temp() assert isinstance(M.a, tuple)
def test_tuple_members(): M = Module() M.a = (1,1) assert isinstance(M.a, tuple) class Temp(Module): def __init__(self): self.a = (1,1) M = Temp() assert isinstance(M.a, tuple)
7be8e47d694e9ac6e58a5cea5300321d9a3db689 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/7be8e47d694e9ac6e58a5cea5300321d9a3db689/test_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8052, 67, 7640, 13332, 225, 490, 273, 5924, 1435, 490, 18, 69, 273, 261, 21, 16, 21, 13, 1815, 1549, 12, 49, 18, 69, 16, 3193, 13, 225, 667, 16380, 12, 3120, 4672, 1652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8052, 67, 7640, 13332, 225, 490, 273, 5924, 1435, 490, 18, 69, 273, 261, 21, 16, 21, 13, 1815, 1549, 12, 49, 18, 69, 16, 3193, 13, 225, 667, 16380, 12, 3120, 4672, 1652, ...
'date': date})
'date': date, 'partner_id': partner_id})
def action_done(self, cr, uid, ids, context=None): track_flag=False for move in self.browse(cr, uid, ids): if move.move_dest_id.id and (move.state != 'done'): mid = move.move_dest_id.id cr.execute('insert into stock_move_history_ids (parent_id,child_id) values (%s,%s)', (move.id, move.move_dest_id.id)) if move.move_des...
39f483b80bda8c09d6846a4e936a65a34596bccc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/39f483b80bda8c09d6846a4e936a65a34596bccc/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3298, 67, 6420, 33, 8381, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 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, 1301, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3298, 67, 6420, 33, 8381, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 36...
CopyFile(plugindir + "nppanda3d.dmg", plugfile)
CopyFile(plugindir + os.path.basename(plugfile), plugfile)
def MakeRuntime(): # Delete the current. if (os.path.exists(GetOutputDir()+"/stage")): shutil.rmtree(GetOutputDir()+"/stage") if (os.path.exists(GetOutputDir()+"/rlib")): shutil.rmtree(GetOutputDir()+"/rlib") # Create a couple of directories. coreapidir = GetOutputDir()+"/stage/coreapi/"+RUNTIME_PLATFORM+"/"+RUNTIME_V...
b4363a5b8ae2a22ef4b20bfb747e5f478562be6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b4363a5b8ae2a22ef4b20bfb747e5f478562be6e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 5576, 13332, 468, 2504, 326, 783, 18, 309, 261, 538, 18, 803, 18, 1808, 12, 967, 1447, 1621, 1435, 9078, 19, 12869, 6, 3719, 30, 11060, 18, 86, 17371, 12, 967, 1447, 1621, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 5576, 13332, 468, 2504, 326, 783, 18, 309, 261, 538, 18, 803, 18, 1808, 12, 967, 1447, 1621, 1435, 9078, 19, 12869, 6, 3719, 30, 11060, 18, 86, 17371, 12, 967, 1447, 1621, 1435, ...
d[attr] = d.get(attr, 0) + info.__dict__[attr]
v = info.__dict__[attr] if not isinstance(v, int): continue d[attr] = d.get(attr, 0) + v
def reportDictInfo(): d = {} if not _dict_infos: return rwratios = [] maxcontents = [] for info in _dict_infos: for attr in info.__dict__: if attr == 'maxcontents': continue d[attr] = d.get(attr, 0) + info.__dict__[attr] if info.writes: rwratios.append(float(info.reads)/(info.writes)) elif info.reads: rwratios.append('...
06c944ae38560a4d316a99bc83ab01fbfd9814e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/06c944ae38560a4d316a99bc83ab01fbfd9814e0/dictmultiobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 5014, 966, 13332, 302, 273, 2618, 309, 486, 389, 1576, 67, 18227, 30, 327, 7985, 17048, 7441, 273, 5378, 943, 3980, 273, 5378, 364, 1123, 316, 389, 1576, 67, 18227, 30, 364, 1604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5014, 966, 13332, 302, 273, 2618, 309, 486, 389, 1576, 67, 18227, 30, 327, 7985, 17048, 7441, 273, 5378, 943, 3980, 273, 5378, 364, 1123, 316, 389, 1576, 67, 18227, 30, 364, 1604, ...
self._ipc_client._decref_proxied_object(self._ipc_obj)
try: self._ipc_client._decref_proxied_object(self._ipc_obj) except IPCDisconnectedError: pass
def __del__(self): # Test _debug function too. If it's None it means we're on shutdown. # This is just a hack to silence "ignored exception" messages. if not self._ipc_client or not _debug: return
035911b84b46edf55b26fb5895c40100500b8ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/035911b84b46edf55b26fb5895c40100500b8ba5/ipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 468, 7766, 389, 4148, 445, 4885, 18, 225, 971, 518, 1807, 599, 518, 4696, 732, 4565, 603, 5731, 18, 468, 1220, 353, 2537, 279, 11769, 358, 31468, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 468, 7766, 389, 4148, 445, 4885, 18, 225, 971, 518, 1807, 599, 518, 4696, 732, 4565, 603, 5731, 18, 468, 1220, 353, 2537, 279, 11769, 358, 31468, 315, ...
return False if type(self) != type(other):
def __eq__(self, other): if not self.context == other.context: return False if type(self) != type(other): return False # Two nodes, for the same document.directory, may have a # different context! (dynamic folders) if self.dctx != other.dctx: return False return self.dir_id == other.dir_id
9cdbcbfee1d356ebaab68e17e75aa0bf1eb16b5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9cdbcbfee1d356ebaab68e17e75aa0bf1eb16b5d/nodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 309, 486, 365, 18, 2472, 422, 1308, 18, 2472, 30, 327, 1083, 468, 16896, 2199, 16, 364, 326, 1967, 1668, 18, 5149, 16, 2026, 1240, 279, 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, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 309, 486, 365, 18, 2472, 422, 1308, 18, 2472, 30, 327, 1083, 468, 16896, 2199, 16, 364, 326, 1967, 1668, 18, 5149, 16, 2026, 1240, 279, 468,...
return [(character, entryDict['strokeorder'].strip('"'), glyphIndex)]
return [(character, entryDict['strokeorder'].strip('"'), glyphIndex, '')]
def strokeorderEntryPreparator(entryList): columns = ['glyph', 'strokeorder'] entryDict = dict(zip(columns, entryList)) character, glyphIndex = entryDict['glyph'].split('/', 1) if 'strokeorder' in entryDict: return [(character, entryDict['strokeorder'].strip('"'), glyphIndex)] else: return []
dc277722cdc1d85d23cc2871724042369e9d52c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/dc277722cdc1d85d23cc2871724042369e9d52c9/export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11040, 1019, 1622, 1386, 2528, 12, 4099, 682, 4672, 2168, 273, 10228, 19426, 2187, 296, 16181, 1019, 3546, 1241, 5014, 273, 2065, 12, 4450, 12, 5112, 16, 1241, 682, 3719, 225, 3351, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11040, 1019, 1622, 1386, 2528, 12, 4099, 682, 4672, 2168, 273, 10228, 19426, 2187, 296, 16181, 1019, 3546, 1241, 5014, 273, 2065, 12, 4450, 12, 5112, 16, 1241, 682, 3719, 225, 3351, 16, ...
year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp)
year, month, day, hh, mm, ss, wd, _y, _z = time.gmtime(timestamp)
def format_date_time(timestamp): """Formats a unix timestamp into an HTTP standard string.""" year, month, day, hh, mm, ss, wd, y, z = time.gmtime(timestamp) return "%s, %02d %3s %4d %02d:%02d:%02d GMT" % ( _weekdayname[wd], day, _monthname[month], year, hh, mm, ss )
a3fa57c0ef4e6d91be10febc61423126deed98b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/a3fa57c0ef4e6d91be10febc61423126deed98b4/wsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 712, 67, 957, 12, 5508, 4672, 3536, 8976, 279, 9753, 2858, 1368, 392, 2239, 4529, 533, 12123, 3286, 16, 3138, 16, 2548, 16, 18629, 16, 9740, 16, 5202, 16, 14452, 16, 389, 93, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 67, 712, 67, 957, 12, 5508, 4672, 3536, 8976, 279, 9753, 2858, 1368, 392, 2239, 4529, 533, 12123, 3286, 16, 3138, 16, 2548, 16, 18629, 16, 9740, 16, 5202, 16, 14452, 16, 389, 93, ...
MAX = 2 ** 32 - 1
MAX = gobject.G_MAXUINT32
def test_int32_inout(self): self.assertEquals(self.MIN, TestGI.int32_inout_max_min(Number(self.MAX))) self.assertEquals(self.MAX, TestGI.int32_inout_min_max(Number(self.MIN)))
542fdf6da4ad8f2d28d0d50152bd93cb4d8ee39a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8659/542fdf6da4ad8f2d28d0d50152bd93cb4d8ee39a/test_gi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 474, 1578, 67, 267, 659, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 2890, 18, 6236, 16, 7766, 13797, 18, 474, 1578, 67, 267, 659, 67, 1896, 67, 1154, 12, 1854, 12, 2890, 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, 1842, 67, 474, 1578, 67, 267, 659, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 2890, 18, 6236, 16, 7766, 13797, 18, 474, 1578, 67, 267, 659, 67, 1896, 67, 1154, 12, 1854, 12, 2890, 18,...
def flimage_render_annotation(p1, p2): """ flimage_render_annotation(p1, p2) -> num. """ retval = _flimage_render_annotation(p1, p2)
def flimage_render_annotation(pImage, window): """ flimage_render_annotation(pImage, window) -> num. """ retval = _flimage_render_annotation(pImage, window)
def flimage_render_annotation(p1, p2): """ flimage_render_annotation(p1, p2) -> num. """ retval = _flimage_render_annotation(p1, p2) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 5902, 67, 11495, 12, 84, 2040, 16, 2742, 4672, 3536, 1183, 2730, 67, 5902, 67, 11495, 12, 84, 2040, 16, 2742, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 2730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 5902, 67, 11495, 12, 84, 2040, 16, 2742, 4672, 3536, 1183, 2730, 67, 5902, 67, 11495, 12, 84, 2040, 16, 2742, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 2730, ...
portaudio_patch_files = ["patches/portaudio-1420-runtime_device_change_detection.patch"]
portaudio_patch_files = ["patches/portaudio-1420-runtime_device_change_detection.patch", "patches/portaudio-pa_linux_alsa.c_pulse_1.patch", "patches/portaudio-pa_linux_alsa.c_pulse_2.patch"]
def get_svn_revision(svn_dir, max_revision=None): environment = dict((name, value) for name, value in os.environ.iteritems() if name!='LANG' and not name.startswith('LC_')) environment['LC_ALL'] = 'C' if max_revision is None: svn_info = distutils_exec_process(["svn", "info", svn_dir], True, env=environment) else: svn_i...
639334ac223451b0fc522aa21ef5263c06180390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/639334ac223451b0fc522aa21ef5263c06180390/setup_pjsip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 31505, 67, 13057, 12, 31505, 67, 1214, 16, 943, 67, 13057, 33, 7036, 4672, 3330, 273, 2065, 12443, 529, 16, 460, 13, 364, 508, 16, 460, 316, 1140, 18, 28684, 18, 2165, 3319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31505, 67, 13057, 12, 31505, 67, 1214, 16, 943, 67, 13057, 33, 7036, 4672, 3330, 273, 2065, 12443, 529, 16, 460, 13, 364, 508, 16, 460, 316, 1140, 18, 28684, 18, 2165, 3319, ...
if len(sys.argv) < 2: print "usage: python update_software.py trunk/location/ [-d]" else: if sys.argv[2] == "-d": DEBUG = True update(sys.argv[1])
global DEBUG if len(sys.argv) < 2: print "usage: python update_software.py trunk/location/ [-d]" else: if sys.argv[2] == "-d": DEBUG = True update(sys.argv[1])
def main(): if len(sys.argv) < 2: print "usage: python update_software.py trunk/location/ [-d]" else: if sys.argv[2] == "-d": DEBUG = True update(sys.argv[1])
0c5d4075edf231e5503187aec17fd434a69c7482 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/0c5d4075edf231e5503187aec17fd434a69c7482/update_software.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 411, 576, 30, 1172, 315, 9167, 30, 5790, 1089, 67, 9269, 2726, 18, 2074, 25917, 19, 3562, 19, 23059, 72, 4279, 469, 30, 309, 2589, 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, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 411, 576, 30, 1172, 315, 9167, 30, 5790, 1089, 67, 9269, 2726, 18, 2074, 25917, 19, 3562, 19, 23059, 72, 4279, 469, 30, 309, 2589, 18, ...
if frontendData is None: return [] if frontendData["tuner_type"] == "DVB-S": return ( ("NIM", ['A', 'B', 'C', 'D'][frontendData["tuner_number"]], TYPE_TEXT), ("Type", frontendData["system"], TYPE_TEXT), ("Modulation", frontendData["modulation"], TYPE_TEXT), ("Orbital position", frontendData["orbital_position"], TYPE_VA...
if frontendData and len(frontendData): if frontendData["tuner_type"] == "DVB-S": return (("NIM", ['A', 'B', 'C', 'D'][frontendData["tuner_number"]], TYPE_TEXT), ("Type", frontendData["system"], TYPE_TEXT), ("Modulation", frontendData["modulation"], TYPE_TEXT), ("Orbital position", frontendData["orbital_position"], TYPE...
def getFEData(self, frontendData): if frontendData is None: return [] if frontendData["tuner_type"] == "DVB-S": return ( ("NIM", ['A', 'B', 'C', 'D'][frontendData["tuner_number"]], TYPE_TEXT), ("Type", frontendData["system"], TYPE_TEXT), ("Modulation", frontendData["modulation"], TYPE_TEXT), ("Orbital position", fronte...
82c0483256d5543675bccb486a5e8a453402ba44 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/82c0483256d5543675bccb486a5e8a453402ba44/ServiceInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 41, 751, 12, 2890, 16, 15442, 751, 4672, 309, 15442, 751, 353, 599, 30, 327, 5378, 309, 15442, 751, 9614, 88, 29640, 67, 723, 11929, 422, 315, 30199, 38, 17, 55, 6877, 327, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2812, 41, 751, 12, 2890, 16, 15442, 751, 4672, 309, 15442, 751, 353, 599, 30, 327, 5378, 309, 15442, 751, 9614, 88, 29640, 67, 723, 11929, 422, 315, 30199, 38, 17, 55, 6877, 327, 261, ...
def self.startTagTableOther(self, name, attributes):
def startTagTableOther(self, name, attributes):
def self.startTagTableOther(self, name, attributes): if self.parser.elementInScope("td") or \ self.parser.elementInScope("th"): self.closeCell() self.parser.processStartTag(name, attributes) else: # innerHTML case self.parser.parseError()
531a062e6b87c82cd7cd538c4ad0aab49fb48e9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/531a062e6b87c82cd7cd538c4ad0aab49fb48e9b/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 4465, 7923, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 451, 6, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1388, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 4465, 7923, 578, 521, 365, 18, 4288, 18, 2956, 382, 3876, 2932, 451, 6, 4672, ...
return Vector(0,0,0)
return (0,0,0)
def ClampAngVel(self,vel): print "ClampAngVel" return Vector(0,0,0)
fbd17194d93748ba6ff8bd71d8baaf695b91af8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/fbd17194d93748ba6ff8bd71d8baaf695b91af8f/VS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 931, 22757, 58, 292, 12, 2890, 16, 941, 4672, 1172, 315, 2009, 931, 22757, 58, 292, 6, 327, 5589, 12, 20, 16, 20, 16, 20, 13, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3905, 931, 22757, 58, 292, 12, 2890, 16, 941, 4672, 1172, 315, 2009, 931, 22757, 58, 292, 6, 327, 5589, 12, 20, 16, 20, 16, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
if find_in_path(os_environ['PATH'], e):
if find_in_path(os.environ['PATH'], e):
def find_player(d): for e, c in d: if find_in_path(os_environ['PATH'], e): return c return None
dd84159756778af9a20710245188c70555fadd0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11589/dd84159756778af9a20710245188c70555fadd0e/arte+7.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 14872, 12, 72, 4672, 364, 425, 16, 276, 316, 302, 30, 309, 1104, 67, 267, 67, 803, 12, 538, 18, 28684, 3292, 4211, 17337, 425, 4672, 327, 276, 327, 599, 225, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 14872, 12, 72, 4672, 364, 425, 16, 276, 316, 302, 30, 309, 1104, 67, 267, 67, 803, 12, 538, 18, 28684, 3292, 4211, 17337, 425, 4672, 327, 276, 327, 599, 225, 2, -100, -100,...
self._stop = True
self._stop_server = True
def stop(self): """Stops the webserver if it's currently running."""
4566c71e0ea13acd519b732eda3cf9d70d3a62ca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4566c71e0ea13acd519b732eda3cf9d70d3a62ca/test_urllib2_localnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 20044, 326, 732, 2266, 502, 309, 518, 1807, 4551, 3549, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 20044, 326, 732, 2266, 502, 309, 518, 1807, 4551, 3549, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'origin': porder.origin,
def make_key(br, fields): list_key = [] for field in fields: field_val = getattr(br, field) if field in ('product_id','move_dest_id'): if not field_val: field_val = False if isinstance(field_val, browse_record): field_val = field_val.id if isinstance(field_val, browse_null): field_val = False elif isinstance(field_val,...
a99a3022baa933e0da76583cb15a8b9d3e7e763f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/a99a3022baa933e0da76583cb15a8b9d3e7e763f/wizard_merge_purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 856, 12, 2848, 16, 1466, 4672, 666, 67, 856, 273, 5378, 364, 652, 316, 1466, 30, 652, 67, 1125, 273, 3869, 12, 2848, 16, 652, 13, 309, 652, 316, 7707, 5896, 67, 350, 17023,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 67, 856, 12, 2848, 16, 1466, 4672, 666, 67, 856, 273, 5378, 364, 652, 316, 1466, 30, 652, 67, 1125, 273, 3869, 12, 2848, 16, 652, 13, 309, 652, 316, 7707, 5896, 67, 350, 17023,...
lines = string.split(mail.body, '\n')
lines = string.split(msg.body, '\n')
def ParseMailCommands(self):
4b2df7e3d338f55697b3a243715d01d52d223317 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/4b2df7e3d338f55697b3a243715d01d52d223317/MailCommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 6759, 9127, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 2884, 6759, 9127, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def partition_flag_get_by_name:
def partition_flag_get_by_name():
def partition_flag_get_by_name: warnings.warn("partition_flag_get_by_name() is deprecated and will be removed", DeprecationWarning) # XXX
5df7ade55af2177fa9ebc189cf6ec79995c0ce0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5978/5df7ade55af2177fa9ebc189cf6ec79995c0ce0a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3590, 67, 6420, 67, 588, 67, 1637, 67, 529, 13332, 5599, 18, 8935, 2932, 10534, 67, 6420, 67, 588, 67, 1637, 67, 529, 1435, 353, 6849, 471, 903, 506, 3723, 3113, 24041, 13, 468, 11329,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3590, 67, 6420, 67, 588, 67, 1637, 67, 529, 13332, 5599, 18, 8935, 2932, 10534, 67, 6420, 67, 588, 67, 1637, 67, 529, 1435, 353, 6849, 471, 903, 506, 3723, 3113, 24041, 13, 468, 11329,...
r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=4$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=5, a(2)=25]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song et al., Extremes of p...
def __init__(self): r""" Permanent of (0,1)-matrix of size $n \times (n+d)$ with $d=4$ and $n-1$ zeros not on a line. $a(n) = (n+1)*a(n-1) + (n-2)*a(n-2) [a(1)=5, a(2)=25]$ This is a special case of Theorem 2.3 of Seok-Zun Song et al. Extremes of permanents of (0,1)-matrices, p. 201-202. REFERENCES: Seok-Zun Song e...
def _eval(self, n): if n == 1: return ZZ(4) else: return sloane.A000261(n+2) + sloane.A000261(n+1)
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 290, 422, 404, 30, 327, 2285, 62, 12, 24, 13, 469, 30, 327, 225, 272, 383, 8806, 18, 37, 17954, 9498, 12, 82, 15, 22, 13, 397, 272, 383, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 309, 290, 422, 404, 30, 327, 2285, 62, 12, 24, 13, 469, 30, 327, 225, 272, 383, 8806, 18, 37, 17954, 9498, 12, 82, 15, 22, 13, 397, 272, 383, ...
template = len(outputs > 0) and outputs[0] or inputs[0]
template = len(outputs) > 0 and outputs[0] or inputs[0]
def _determineJobIdentity(self, outputs, inputs=None): # determine the job identity if inputs is None: inputs = [] if self.jobIdConf: # determine our template dataset for our identity template = None if self.jobIdConf.exists("templateType"): # find first dataset (in output, then input) matching # this dataset type. t...
84e0233fbc13e446d6a55491ce39ab5a87f6d1bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6545/84e0233fbc13e446d6a55491ce39ab5a87f6d1bc/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 24661, 2278, 4334, 12, 2890, 16, 6729, 16, 4540, 33, 7036, 4672, 468, 4199, 326, 1719, 4215, 309, 4540, 353, 599, 30, 225, 4540, 273, 5378, 225, 309, 365, 18, 4688, 548, 3976, 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, 389, 24661, 2278, 4334, 12, 2890, 16, 6729, 16, 4540, 33, 7036, 4672, 468, 4199, 326, 1719, 4215, 309, 4540, 353, 599, 30, 225, 4540, 273, 5378, 225, 309, 365, 18, 4688, 548, 3976, 30,...
q = simplejson.loads(qstr)
q = json.loads(qstr)
def cmd_q(fb, qstr): """run a freebase query. if the query string starts with "{" it is treated as json. otherwise it is treated as o-rison. dump the result as json. %prog q """ if qstr.startswith('{'): q = simplejson.loads(qstr) else: q = rison.loads('(' + qstr + ')') # done this way for streaming first = True for...
ae5ba65232b0bdc4996389600e844d078e2d8a9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11603/ae5ba65232b0bdc4996389600e844d078e2d8a9e/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 67, 85, 12, 19192, 16, 1043, 701, 4672, 3536, 2681, 279, 4843, 1969, 843, 18, 225, 309, 326, 843, 533, 2542, 598, 18173, 518, 353, 13974, 487, 1163, 18, 3541, 518, 353, 13974, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1797, 67, 85, 12, 19192, 16, 1043, 701, 4672, 3536, 2681, 279, 4843, 1969, 843, 18, 225, 309, 326, 843, 533, 2542, 598, 18173, 518, 353, 13974, 487, 1163, 18, 3541, 518, 353, 13974, 48...
self._debug(NIGHTMARE, "JS: jsStartElement")
def jsStartElement (self, tag, attrs): """Check popups for onmouseout and onmouseover. Inline extern javascript sources""" self._debug(NIGHTMARE, "JS: jsStartElement") changed = 0 self.js_src = 0 self.js_output = 0 self.js_popup = 0 for name in ('onmouseover', 'onmouseout'): if attrs.has_key(name) and self.jsPopup(attr...
b6cdd9629ec41bf387c3e531943b23aec78afb66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/b6cdd9629ec41bf387c3e531943b23aec78afb66/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 1685, 1046, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 1564, 10431, 87, 364, 603, 11697, 659, 471, 603, 11697, 1643, 18, 16355, 18885, 11341, 5550, 8395, 225, 3550, 273, 374, 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, 3828, 1685, 1046, 261, 2890, 16, 1047, 16, 3422, 4672, 3536, 1564, 10431, 87, 364, 603, 11697, 659, 471, 603, 11697, 1643, 18, 16355, 18885, 11341, 5550, 8395, 225, 3550, 273, 374, 365, ...
keyid = validators.String()
if lca_rego['pgp_collection'] != 'no': keyid = validators.String()
def validate_python(self, value, state): checksum = h.silly_description_checksum(value['silly_description']) if value['silly_description_checksum'] != checksum: raise Invalid("Smart enough to hack the silly description, not smart enough to hack the checksum.", value, state)
aec44a52f53f78c6504806a53cdef80c7e1b6a7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/aec44a52f53f78c6504806a53cdef80c7e1b6a7d/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 6697, 273, 366, 18, 25119, 715, 67, 3384, 67, 15149, 12, 1132, 3292, 25119, 715, 67, 3384, 19486, 309, 460, 3292, 25119, 715, 67, 3384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 67, 8103, 12, 2890, 16, 460, 16, 919, 4672, 6697, 273, 366, 18, 25119, 715, 67, 3384, 67, 15149, 12, 1132, 3292, 25119, 715, 67, 3384, 19486, 309, 460, 3292, 25119, 715, 67, 3384...
if not os.access(path,os.W_OK):
if not is_writable(path):
def default_temp_dir(): path = os.path.join(default_dir(),'temp') if not os.path.exists(path): os.mkdir(path) os.chmod(path,0700) # make it only accessible by this user. if not os.access(path,os.W_OK): print 'warning: default directory is not write accessible.' print 'defualt:', path return path
ef494feebe6224fb56ba36961b60d609f74551ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/ef494feebe6224fb56ba36961b60d609f74551ee/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 5814, 67, 1214, 13332, 589, 273, 1140, 18, 803, 18, 5701, 12, 1886, 67, 1214, 9334, 11, 5814, 6134, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1140, 18, 26686, 12, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 5814, 67, 1214, 13332, 589, 273, 1140, 18, 803, 18, 5701, 12, 1886, 67, 1214, 9334, 11, 5814, 6134, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1140, 18, 26686, 12, 80...
show_in_main_help = True
def _prepare_state(self, options, args, tool): state = {} state["bug_id"] = self._bug_id(options, args, tool, state) if not state["bug_id"]: error("No bug id passed and no bug url found in ChangeLogs.") return state
38e8fdc28dce04a325395b65b22608b5a14e223d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/38e8fdc28dce04a325395b65b22608b5a14e223d/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9366, 67, 2019, 12, 2890, 16, 702, 16, 833, 16, 5226, 4672, 919, 273, 2618, 919, 9614, 925, 67, 350, 11929, 273, 365, 6315, 925, 67, 350, 12, 2116, 16, 833, 16, 5226, 16, 919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9366, 67, 2019, 12, 2890, 16, 702, 16, 833, 16, 5226, 4672, 919, 273, 2618, 919, 9614, 925, 67, 350, 11929, 273, 365, 6315, 925, 67, 350, 12, 2116, 16, 833, 16, 5226, 16, 919, ...
self.pyShell.SetFocus() self.panel_1.SetSize((654, 533))
self.SetSize((670, 623))
def __set_properties(self): # begin wxGlade: pythonShellFrame.__set_properties self.SetTitle("Python Introspection") self.pyShell.SetFocus() self.panel_1.SetSize((654, 533)) self.statusBar.SetStatusWidths([-1]) # statusbar fields statusBar_fields = ["Welcome to the Python Shell!"] for i in range(len(statusBar_fields)):...
77c01e2efea56fc4678be318ad48b4256113aa74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/77c01e2efea56fc4678be318ad48b4256113aa74/pythonShellFrame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 4738, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 5790, 13220, 3219, 16186, 542, 67, 4738, 365, 18, 694, 4247, 2932, 15774, 3094, 26362, 7923, 365, 18, 694, 1225, 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, 1001, 542, 67, 4738, 12, 2890, 4672, 468, 2376, 7075, 21308, 2486, 30, 5790, 13220, 3219, 16186, 542, 67, 4738, 365, 18, 694, 4247, 2932, 15774, 3094, 26362, 7923, 365, 18, 694, 1225, 12...
polite_block_rule = Rule('pres_polite_blacklist', conditions=Conditions([block_rule_identities]), actions=Actions([SubHandling('polite-block')]),
polite_block_rule = Rule('pres_polite_blacklist', conditions=Conditions([polite_block_rule_identities]), actions=Actions([SubHandling('polite-block')]),
def polite_block_watcher(watcher): global prules, prules_etag, polite_block_rule, polite_block_rule_identities for i in xrange(3): if prules is None: get_prules() if prules is not None: if polite_block_rule is None: polite_block_rule_identities = Identity() polite_block_rule = Rule('pres_polite_blacklist', conditions=C...
b61b48f4af98bcbfee2f3264663db7993b4ea827 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/b61b48f4af98bcbfee2f3264663db7993b4ea827/sip_subscribe_winfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2952, 1137, 67, 2629, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 2952, 1137, 67, 2629, 67, 5345, 16, 2952, 1137, 67, 2629, 67, 5345, 67, 6392, 1961, 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, 2952, 1137, 67, 2629, 67, 23894, 12, 23894, 4672, 2552, 846, 1513, 16, 846, 1513, 67, 20788, 16, 2952, 1137, 67, 2629, 67, 5345, 16, 2952, 1137, 67, 2629, 67, 5345, 67, 6392, 1961, 364...
self.calcWidth(index)
self._calcWidth(index)
def setBold(self, index, start, count): self.bold[index] = (start, start+count) self.calcWidth(index) #print(self.bold[index]) self.RefreshLine(index)
1dcedf3b36f194de5623b0ea9a5eed27e7613a0a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/1dcedf3b36f194de5623b0ea9a5eed27e7613a0a/textctrl_autocomplete.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15268, 1673, 12, 2890, 16, 770, 16, 787, 16, 1056, 4672, 365, 18, 16390, 63, 1615, 65, 273, 261, 1937, 16, 787, 15, 1883, 13, 365, 6315, 12448, 2384, 12, 1615, 13, 468, 1188, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15268, 1673, 12, 2890, 16, 770, 16, 787, 16, 1056, 4672, 365, 18, 16390, 63, 1615, 65, 273, 261, 1937, 16, 787, 15, 1883, 13, 365, 6315, 12448, 2384, 12, 1615, 13, 468, 1188, 12, 289...
zipfp.close()
def readline_read_test(self, f, compression): self.make_test_archive(f, compression)
8fb9b868bd8415347ffa608eec324055ff9f66d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8fb9b868bd8415347ffa608eec324055ff9f66d7/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 67, 896, 67, 3813, 12, 2890, 16, 284, 16, 9154, 4672, 365, 18, 6540, 67, 3813, 67, 10686, 12, 74, 16, 9154, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 67, 896, 67, 3813, 12, 2890, 16, 284, 16, 9154, 4672, 365, 18, 6540, 67, 3813, 67, 10686, 12, 74, 16, 9154, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual(addr_to, data['email'])
self.assertEqual(addr_to, [data['email']])
def test_invite(self): data = { 'name': 'The Invitee', 'email': 'invitee@thinkle.edu', 'organization': 'Thinkle University', 'notes': 'Knows his shit', 'message': 'Hi Invitee, please enlighten us.', 'inviter_userid': 'someguy', 'inviter_name': 'Some Guy', } self.consultation.invitations._create_invitation(**data) self....
0310e6e6cd175c7d813cdce39040cd1fe409f15c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0310e6e6cd175c7d813cdce39040cd1fe409f15c/testInvites.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 27154, 12, 2890, 4672, 501, 273, 288, 296, 529, 4278, 296, 1986, 30981, 73, 2187, 296, 3652, 4278, 296, 27154, 73, 36, 451, 754, 298, 18, 28049, 2187, 296, 15336, 4278, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 27154, 12, 2890, 4672, 501, 273, 288, 296, 529, 4278, 296, 1986, 30981, 73, 2187, 296, 3652, 4278, 296, 27154, 73, 36, 451, 754, 298, 18, 28049, 2187, 296, 15336, 4278, 296, ...
rtscts = property(getRtsCts, setRtsCts, "RTS/CTS setting")
rtscts = property(getRtsCts, setRtsCts, doc="RTS/CTS setting")
def getRtsCts(self): """Get the current RtsCts setting.""" return self._rtscts
9d013c965287ad26d1e017f834280065158386e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/9d013c965287ad26d1e017f834280065158386e5/serialutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4170, 3428, 39, 3428, 12, 2890, 4672, 3536, 967, 326, 783, 534, 3428, 39, 3428, 3637, 12123, 327, 365, 6315, 86, 3428, 299, 87, 225, 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, 0, 0, 0, 0, 0, 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, 4170, 3428, 39, 3428, 12, 2890, 4672, 3536, 967, 326, 783, 534, 3428, 39, 3428, 3637, 12123, 327, 365, 6315, 86, 3428, 299, 87, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
recurser(dependentObj, stack)
recurser(dependentObj, list(stack))
def recurser(classObj, stack): prefix = " " * len(stack)
37e60ef68d6038ed5a54bc4b9c86295f1879e2b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/37e60ef68d6038ed5a54bc4b9c86295f1879e2b6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8112, 550, 12, 1106, 2675, 16, 2110, 4672, 1633, 273, 315, 225, 315, 380, 562, 12, 3772, 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, 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, 8112, 550, 12, 1106, 2675, 16, 2110, 4672, 1633, 273, 315, 225, 315, 380, 562, 12, 3772, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if doc[1]: print '\t"""' + doc[1] + '"""'
if doc[1]: print '\t' + build._safeQQQ(doc[1])
def WriteClassHeader(self, generator): generator.checkWriteDispatchBaseClass() doc = self.doc print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t"""' + doc[1] + '"""' try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (progId) except py...
b6b5af220bd02fa5a7af3c2ea99e2f377504ef16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/b6b5af220bd02fa5a7af3c2ea99e2f377504ef16/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 5325, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1172, 296, 1106, 296, 397, 365, 18, 8103, 67, 529, 397, 7747, 5325, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 5325, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1172, 296, 1106, 296, 397, 365, 18, 8103, 67, 529, 397, 7747, 5325, 217...
_('<br>(Details for <b>%s</b>)' % varname)).Format()
_('<br>(Details for <b>%(varname)s</b>)')).Format()
def get_item_gui_description(mlist, category, subcat, varname, descr, detailsp): # Return the item's description, with link to details. # # Details are not included if this is a VARHELP page, because that /is/ # the details page! if detailsp: if subcat: varhelp = '/?VARHELP=%s/%s/%s' % (category, subcat, varname) else:...
9c6b2ef273e0589b83b8ed4dd7b5783fadb26061 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/9c6b2ef273e0589b83b8ed4dd7b5783fadb26061/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 67, 20292, 67, 3384, 12, 781, 376, 16, 3150, 16, 720, 2574, 16, 15434, 16, 18426, 16, 7664, 1752, 4672, 468, 2000, 326, 761, 1807, 2477, 16, 598, 1692, 358, 3189, 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, 67, 1726, 67, 20292, 67, 3384, 12, 781, 376, 16, 3150, 16, 720, 2574, 16, 15434, 16, 18426, 16, 7664, 1752, 4672, 468, 2000, 326, 761, 1807, 2477, 16, 598, 1692, 358, 3189, 18, ...
print "at calving front: alpha(Rc) = %f (m/a), alpha'(Rc) = %f (1/a)" \ % (alpha[-1] * SperA, strainrate[-1] * SperA)
print "at calving front: alpha(Rc) = %f (m/a)" \ % (alpha[-1] * SperA)
def GG(alpha, r): # heuristic: guess is about 1/7 th of solution to a nearby problem guess = 0.15 * ( (Q/r)**3 - alpha[0]/r ) result = fsolve(FF,guess,args=(alpha[0],r)) qual.append([r,guess,result,abs(guess-result)/abs(result)]) return [result]
9b38de94d0e62fb533290ab63fb3db688f8eaf41 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7383/9b38de94d0e62fb533290ab63fb3db688f8eaf41/exactM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 611, 43, 12, 5429, 16, 436, 4672, 468, 25833, 30, 7274, 353, 2973, 404, 19, 27, 286, 434, 6959, 358, 279, 13378, 1637, 6199, 7274, 273, 374, 18, 3600, 380, 261, 225, 261, 53, 19, 86,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 611, 43, 12, 5429, 16, 436, 4672, 468, 25833, 30, 7274, 353, 2973, 404, 19, 27, 286, 434, 6959, 358, 279, 13378, 1637, 6199, 7274, 273, 374, 18, 3600, 380, 261, 225, 261, 53, 19, 86,...
pict_xml = doc.createElement("pict") xml.appendChild(pict_xml) self.props.save(doc, pict_xml)
self.props.save(doc, xml, "pict")
def save(self, doc, xml): pict_xml = doc.createElement("pict") xml.appendChild(pict_xml) self.props.save(doc, pict_xml) pass
11389c4188f2eaefc8d10f1626492bcb264391a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2675/11389c4188f2eaefc8d10f1626492bcb264391a7/gofoto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 997, 16, 2025, 4672, 282, 365, 18, 9693, 18, 5688, 12, 2434, 16, 2025, 16, 315, 84, 933, 7923, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 997, 16, 2025, 4672, 282, 365, 18, 9693, 18, 5688, 12, 2434, 16, 2025, 16, 315, 84, 933, 7923, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Chatter.write('Uh oh - non uniform pointgroups!')
def _scale_prepare(self): '''Perform all of the preparation required to deliver the scaled data. This should sort together the reflection files, ensure that they are correctly indexed (via pointless) and generally tidy things up.'''
0c35a8c6c7826328aabc591ec16fcff60df21973 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/0c35a8c6c7826328aabc591ec16fcff60df21973/CCP4ScalerImplementation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5864, 67, 9366, 12, 2890, 4672, 9163, 4990, 777, 434, 326, 31981, 1931, 358, 11795, 326, 12304, 501, 18, 1220, 1410, 1524, 9475, 326, 5463, 1390, 16, 3387, 716, 2898, 854, 8783, 880...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5864, 67, 9366, 12, 2890, 4672, 9163, 4990, 777, 434, 326, 31981, 1931, 358, 11795, 326, 12304, 501, 18, 1220, 1410, 1524, 9475, 326, 5463, 1390, 16, 3387, 716, 2898, 854, 8783, 880...
return def load(self, file):
def load(self, fname):
def __init__(self, scene): """ Initialises the JpegImage class object
c44140bd3d918f82e3b4fb0f16f6949f4d7b003e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/c44140bd3d918f82e3b4fb0f16f6949f4d7b003e/image.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9065, 4672, 3536, 10188, 6141, 326, 804, 9001, 2040, 667, 733, 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, ...
[ 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 9065, 4672, 3536, 10188, 6141, 326, 804, 9001, 2040, 667, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if default_file in self.files:
self.select(default_file) self.row = row def select(self, filename): ''' selects the item given by filename ''' if filename in self.files:
def __init__(self, master, file_mask, default_file, edit_height = None, user_onChange = None, rename_on_edit=0, font = None, coloring=True): ''' file_mask: file mask (e.g. "*.foo") or list of file masks (e.g. ["*.foo", "*.abl"]) ''' self.master = master self.user_onChange = user_onChange Frame.__init__(self, master) ro...
4bac945a63496d40f1b7db77f23e9e1ebd4e7f87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10261/4bac945a63496d40f1b7db77f23e9e1ebd4e7f87/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 585, 67, 4455, 16, 805, 67, 768, 16, 3874, 67, 4210, 273, 599, 16, 729, 67, 265, 3043, 273, 599, 16, 6472, 67, 265, 67, 4619, 33, 20, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 585, 67, 4455, 16, 805, 67, 768, 16, 3874, 67, 4210, 273, 599, 16, 729, 67, 265, 3043, 273, 599, 16, 6472, 67, 265, 67, 4619, 33, 20, 16, ...
self.forward(2)
self.reader.forward(2)
def scan_line_break(self): # Transforms: # '\r\n' : '\n' # '\r' : '\n' # '\n' : '\n' # '\x85' : '\n' # '\u2028' : '\u2028' # '\u2029 : '\u2029' # default : '' ch = self.reader.peek() if ch in u'\r\n\x85': if self.reader.prefix(2) == u'\r\n': self.forward(2)...
9263f217ab8b5968c7802ec6267edd8b2ceefb20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5889/9263f217ab8b5968c7802ec6267edd8b2ceefb20/scanner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 1369, 67, 8820, 12, 2890, 4672, 468, 2604, 9741, 30, 468, 282, 2337, 86, 64, 82, 11, 1377, 294, 282, 2337, 82, 11, 468, 282, 2337, 86, 11, 3639, 294, 282, 2337, 82, 11, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 1369, 67, 8820, 12, 2890, 4672, 468, 2604, 9741, 30, 468, 282, 2337, 86, 64, 82, 11, 1377, 294, 282, 2337, 82, 11, 468, 282, 2337, 86, 11, 3639, 294, 282, 2337, 82, 11, 4...
elif o== '--include' or o == '-I':
elif o == '--include' or o == '-I':
def guess_fontinfo (filename): fi = { 'FontName' : filename, 'FamilyName' : filename, "Weight" : 'regular', "ItalicAngle" : 0, 'FullName' : filename} if re.search ('^cm', filename): fi.update (cm_guess_font_info (filename)) return fi global afmfile if not afmfile: afmfile = find_file (filename + '.afm') if afmfil...
d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 67, 5776, 1376, 261, 3459, 4672, 225, 7314, 273, 288, 296, 5711, 461, 11, 294, 1544, 16, 296, 9203, 461, 11, 225, 294, 1544, 16, 315, 6544, 6, 294, 296, 16819, 2187, 315, 7193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7274, 67, 5776, 1376, 261, 3459, 4672, 225, 7314, 273, 288, 296, 5711, 461, 11, 294, 1544, 16, 296, 9203, 461, 11, 225, 294, 1544, 16, 315, 6544, 6, 294, 296, 16819, 2187, 315, 7193, ...
try: body = [output, extra] except NameError: body = [output]
body = [output]
def perform_modifybasket(req, userID, callback='yes', confirm=0): """modify email and password of an account""" (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) subtitle = """<a name="2"></a>2. Modify baskets.&nbsp&nbsp&nbsp<small>[<a title="See guide" href="%s/...
8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1931/8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 26219, 12, 3658, 16, 16299, 16, 1348, 2218, 9707, 2187, 6932, 33, 20, 4672, 3536, 17042, 2699, 471, 2201, 434, 392, 2236, 8395, 225, 261, 1944, 67, 710, 16, 1357, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 26219, 12, 3658, 16, 16299, 16, 1348, 2218, 9707, 2187, 6932, 33, 20, 4672, 3536, 17042, 2699, 471, 2201, 434, 392, 2236, 8395, 225, 261, 1944, 67, 710, 16, 1357, 67, ...
[24.916051749154448, -62.992720615792727, -8.1993122536718097]
[24.916051749154448, -62.992720615792727, -8.1993122536718...]
def gauss(mu, sigma): """Gaussian distribution. mu is the mean, and sigma is the standard deviation. This is slightly faster than the normalvariate() function, but is not thread-safe. EXAMPLES: sage: [gauss(0, 1) for i in range(3)] [0.91910117576579153, 0.77445267562464837, 0.86389968668008765] sage: [gauss(0, 100) ...
0dbb7d7f2afd12122d43875adb7c0a6ede7242d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0dbb7d7f2afd12122d43875adb7c0a6ede7242d8/prandom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 10325, 12, 13297, 16, 7299, 4672, 3536, 43, 12086, 7006, 18, 225, 4129, 353, 326, 3722, 16, 471, 7299, 353, 326, 4529, 17585, 18, 225, 1220, 353, 21980, 12063, 2353, 326, 2212, 1401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 314, 10325, 12, 13297, 16, 7299, 4672, 3536, 43, 12086, 7006, 18, 225, 4129, 353, 326, 3722, 16, 471, 7299, 353, 326, 4529, 17585, 18, 225, 1220, 353, 21980, 12063, 2353, 326, 2212, 1401...
self.updateBar(True)
if self.play: self.updateBar(True) else: self.ui.progressBar.setMaximum(200) self.ui.progressBar.setValue(0) self.ui.progressBar.setFormat("00:00")
def loadData(self): '''funkcja do ladowania informacji na starcie programu''' #pobranie statusu i ustawienie ikonki status=str(self.connection.status['state'])
a677088cc6d09a460af64e1f37bfcfcc441cf943 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14596/a677088cc6d09a460af64e1f37bfcfcc441cf943/qplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 4672, 9163, 74, 1683, 71, 12333, 741, 328, 6308, 304, 1155, 13235, 1077, 21102, 9583, 10443, 71, 1385, 5402, 89, 26418, 468, 84, 947, 2450, 1385, 1267, 89, 277, 582, 334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29422, 12, 2890, 4672, 9163, 74, 1683, 71, 12333, 741, 328, 6308, 304, 1155, 13235, 1077, 21102, 9583, 10443, 71, 1385, 5402, 89, 26418, 468, 84, 947, 2450, 1385, 1267, 89, 277, 582, 334...
print "cleaning everything", op
def optimize_default(self, op): if op.is_always_pure(): for arg in op.args: if not self.is_constant(arg): break else: # all constant arguments: constant-fold away self.make_constant(op.result) return elif not op.has_no_side_effect() and not op.is_ovf(): print "cleaning everything", op self.clean_fields_of_values() # ot...
e7b0ccba0ef3c4b5f26c46080980193d803d979c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/e7b0ccba0ef3c4b5f26c46080980193d803d979c/optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 1886, 12, 2890, 16, 1061, 4672, 309, 1061, 18, 291, 67, 17737, 67, 84, 594, 13332, 364, 1501, 316, 1061, 18, 1968, 30, 309, 486, 365, 18, 291, 67, 14384, 12, 3175, 4672, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 1886, 12, 2890, 16, 1061, 4672, 309, 1061, 18, 291, 67, 17737, 67, 84, 594, 13332, 364, 1501, 316, 1061, 18, 1968, 30, 309, 486, 365, 18, 291, 67, 14384, 12, 3175, 4672, 8...
def get_optionsparser(): parser = OptionParser(usage=None, version="%prog v"+SCRIPT_VERSION, add_help_option=False) parser.add_option("-h", "--help", action="store_true", dest="help", default=False, help="show basic help message and exit.") parser.add_option("--helpall", action="store_true", dest="helpall", default=Fa...
def get_optionsparser(): parser = OptionParser(usage=None, version="%prog v"+SCRIPT_VERSION, add_help_option=False) parser.add_option("-h", "--help", action="store_true", dest="help", default=False, help="show basic help message and exit.") parser.add_option("--helpall", action="store_true", dest="helpall", default=Fa...
8d3841bfd78b86ecd522568be9af7e6791ff409c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2758/8d3841bfd78b86ecd522568be9af7e6791ff409c/eagle3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2116, 4288, 13332, 225, 2082, 273, 18862, 12, 9167, 33, 7036, 16, 1177, 11613, 14654, 331, 6, 15, 10885, 67, 5757, 16, 527, 67, 5201, 67, 3482, 33, 8381, 13, 2082, 18, 1289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2116, 4288, 13332, 225, 2082, 273, 18862, 12, 9167, 33, 7036, 16, 1177, 11613, 14654, 331, 6, 15, 10885, 67, 5757, 16, 527, 67, 5201, 67, 3482, 33, 8381, 13, 2082, 18, 1289, ...
box = OWGUI.radioButtonsInBox(vbox, self, "discretization", self.discretizationMethods, "Default discretization", callback=[self.clearLineEditFocus, self.defaultMethodChanged])
box = OWGUI.radioButtonsInBox(vbox, self, "discretization", self.discretizationMethods[:-1], "Default discretization", callback=[self.clearLineEditFocus, self.defaultMethodChanged])
def __init__(self, parent=None, signalManager=None, name="Interactive Discretization"): OWWidget.__init__(self, parent, signalManager, name) self.showBaseLine=1 self.showLookaheadLine=1 self.showTargetClassProb=1 self.showRug=1 self.snap=1 self.measure=0 self.targetClass=0 self.discretization = self.classDiscretization...
9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43/OWInteractiveDiscretization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 26442, 3035, 71, 1349, 1588, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 26442, 3035, 71, 1349, 1588, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277,...
str += '<H3><I>'+\ HTML_Doc._SPECIAL_METHODS[fname]+'</I></H3>\n'
str += '<h3 class="func-details"><i>' str += HTML_Doc._SPECIAL_METHODS[fname]+'</i></h3>\n'
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 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, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
dia = DataImportAttempt.objects.get(id=dia_id)
dia = mysite.profile.models.DataImportAttempt.objects.get(id=dia_id)
def create_citations_from_github_results(dia_id, results, override_contrib=None): repos, dict_mapping_repos_to_languages = results dia = DataImportAttempt.objects.get(id=dia_id) person = dia.person for repo in repos: (project, _) = Project.objects.get_or_create(name=repo.name) # FIXME: Populate project description, n...
f1d0d2222a9a25e0a8611c6a5776e209776dcdc0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f1d0d2222a9a25e0a8611c6a5776e209776dcdc0/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 71, 18282, 67, 2080, 67, 6662, 67, 4717, 12, 72, 1155, 67, 350, 16, 1686, 16, 3849, 67, 26930, 33, 7036, 4672, 13686, 16, 2065, 67, 6770, 67, 15564, 67, 869, 67, 14045, 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, 752, 67, 71, 18282, 67, 2080, 67, 6662, 67, 4717, 12, 72, 1155, 67, 350, 16, 1686, 16, 3849, 67, 26930, 33, 7036, 4672, 13686, 16, 2065, 67, 6770, 67, 15564, 67, 869, 67, 14045, 273,...
dotgraph.DOT_PATH = options.dotpath
dotgraph.DOT_COMMAND = options.dotpath
def main(options, names): if options.action == 'text': if options.parse and options.introspect: options.parse = False # Set up the logger if options.action == 'text': logger = None # no logger for text output. elif options.verbosity > 1: logger = ConsoleLogger(options.verbosity) log.register_logger(logger) else: # Eac...
f6fe0c441e31701da8090a9035b075147310b96a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/f6fe0c441e31701da8090a9035b075147310b96a/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 1000, 731, 326, 1194, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 1257, 4672, 309, 702, 18, 1128, 422, 296, 955, 4278, 309, 702, 18, 2670, 471, 702, 18, 474, 26170, 30, 702, 18, 2670, 273, 1083, 225, 468, 1000, 731, 326, 1194, 3...
if (SDK.has_key("DX9")==0 or SDK.has_key("DX8")==0):
if ("DX9" not in SDK) or ("DX8" not in SDK):
def SdkLocateDirectX(): if (sys.platform != "win32"): return GetSdkDir("directx8", "DX8") GetSdkDir("directx9", "DX9") if (SDK.has_key("DX9")==0): ## Try to locate the key within the "new" March 2009 location in the registry (yecch): dir = GetRegistryKey("SOFTWARE\\Microsoft\\DirectX\\Microsoft DirectX SDK (March 2009)...
fdcc1205b8a0b6802b88877ecb24913b8464ac72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/fdcc1205b8a0b6802b88877ecb24913b8464ac72/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 5368, 60, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 968, 23951, 1621, 2932, 7205, 92, 28, 3113, 315, 28826, 28, 7923, 968, 23951, 1621, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 1333, 340, 5368, 60, 13332, 309, 261, 9499, 18, 9898, 480, 315, 8082, 1578, 6, 4672, 327, 968, 23951, 1621, 2932, 7205, 92, 28, 3113, 315, 28826, 28, 7923, 968, 23951, 1621, 2932, ...
sw.FixReorder(); return sw.Wire();
sw.ClosedWireMode = True; sw.FixReorderMode = 1; sw.FixConnectedMode = 1; sw.FixLackingMode = 1; sw.FixGaps3dMode = 1; sw.FixConnectedMode = 1; sw.FixDegeneratedMode = 1; sw.Perform(); return sw.WireAPIMake();
def fixWire(wire): sw = ShapeFix_Wire(); sw.Load(wire); sw.FixReorder(); return sw.Wire();
ee9b5922fef71b35515f703da70765fa092dd5b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4866/ee9b5922fef71b35515f703da70765fa092dd5b4/OccSliceLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 15249, 12, 14538, 4672, 1352, 273, 12383, 8585, 67, 15249, 5621, 1352, 18, 2563, 12, 14538, 1769, 1352, 18, 8585, 426, 1019, 5621, 327, 1352, 18, 15249, 5621, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 2917, 15249, 12, 14538, 4672, 1352, 273, 12383, 8585, 67, 15249, 5621, 1352, 18, 2563, 12, 14538, 1769, 1352, 18, 8585, 426, 1019, 5621, 327, 1352, 18, 15249, 5621, 2, -100, -100, -100, ...
msg = ("exceptions must be classes, or instances," "or strings (deprecated) not %s" % (instclassname,))
msg = ("exceptions must be classes, or instances, " "or strings (deprecated), not %s" % (instclassname,))
def normalize_exception(self, space): """Normalize the OperationError. In other words, fix w_type and/or w_value to make sure that the __class__ of w_value is exactly w_type. """ # # This method covers all ways in which the Python statement # "raise X, Y" can produce a valid exception type and instance. # # In the fol...
477c046c8adc4e100b88434398ef4ecc97ac68c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/477c046c8adc4e100b88434398ef4ecc97ac68c2/error.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 67, 4064, 12, 2890, 16, 3476, 4672, 3536, 14380, 326, 4189, 668, 18, 225, 657, 1308, 4511, 16, 2917, 341, 67, 723, 471, 19, 280, 341, 67, 1132, 358, 1221, 3071, 716, 326, 1001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3883, 67, 4064, 12, 2890, 16, 3476, 4672, 3536, 14380, 326, 4189, 668, 18, 225, 657, 1308, 4511, 16, 2917, 341, 67, 723, 471, 19, 280, 341, 67, 1132, 358, 1221, 3071, 716, 326, 1001, ...
output += write_outcome(res)
output = write_outcome(res)
def perform_switchfmtscore(colID, type, id_1, id_2, ln=cdslang): """Switch the score of id_1 and id_2 in the table type. colID - the current collection id_1/id_2 - the id's to change the score for. type - like "format" """ output = "" fmt_dict = dict(get_def_name('', "format")) res = switch_score(colID, id_1, id_2, ty...
31263b92d0781de306d2784945c4ebefc2a5f3ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/31263b92d0781de306d2784945c4ebefc2a5f3ac/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 9610, 8666, 6355, 12, 1293, 734, 16, 618, 16, 612, 67, 21, 16, 612, 67, 22, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 10200, 326, 4462, 434, 612, 67, 21, 471, 612, 67, 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, 3073, 67, 9610, 8666, 6355, 12, 1293, 734, 16, 618, 16, 612, 67, 21, 16, 612, 67, 22, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 10200, 326, 4462, 434, 612, 67, 21, 471, 612, 67, 2...
script_args = ['-q','easy_install', '-v']+argv,
script_args = ['-q','easy_install', '-v']+argv,
def _show_help(self,*args,**kw): with_ei_usage(lambda: Distribution._show_help(self,*args,**kw))
71aeed6af15f476a6af8b6ac10628d11fcf18358 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/71aeed6af15f476a6af8b6ac10628d11fcf18358/easy_install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 67, 5201, 12, 2890, 16, 14, 1968, 16, 636, 9987, 4672, 598, 67, 73, 77, 67, 9167, 12, 14661, 30, 17547, 6315, 4500, 67, 5201, 12, 2890, 16, 14, 1968, 16, 636, 9987, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4500, 67, 5201, 12, 2890, 16, 14, 1968, 16, 636, 9987, 4672, 598, 67, 73, 77, 67, 9167, 12, 14661, 30, 17547, 6315, 4500, 67, 5201, 12, 2890, 16, 14, 1968, 16, 636, 9987, 3719, ...
"<function <lambda> at 0x"))
"<function <lambda"))
def test_lambda(self): self.failUnless(repr(lambda x: x).startswith( "<function <lambda> at 0x")) # XXX anonymous functions? see func_repr
dd32138e7dc66633b8804cd8e59ada5f9f5472c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dd32138e7dc66633b8804cd8e59ada5f9f5472c1/test_repr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14661, 12, 2890, 4672, 365, 18, 6870, 984, 2656, 12, 12715, 12, 14661, 619, 30, 619, 2934, 17514, 1918, 12, 3532, 915, 411, 14661, 6, 3719, 468, 11329, 13236, 4186, 35, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 14661, 12, 2890, 4672, 365, 18, 6870, 984, 2656, 12, 12715, 12, 14661, 619, 30, 619, 2934, 17514, 1918, 12, 3532, 915, 411, 14661, 6, 3719, 468, 11329, 13236, 4186, 35, 225, ...
result = S_ERROR('JobDB.setInputData: operation failed.')
result = S_ERROR( 'JobDB.setInputData: operation failed.' )
def setInputData (self, jobID, inputData): """Inserts input data for the given job """ ret = self._escapeString(jobID) if not ret['OK']: return ret jobID = ret['Value'] cmd = 'DELETE FROM InputData WHERE JobID=%s' % (jobID) result = self._update( cmd ) if not result['OK']: result = S_ERROR('JobDB.setInputData: operatio...
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21687, 751, 261, 2890, 16, 28913, 16, 24149, 4672, 3536, 14214, 810, 501, 364, 326, 864, 1719, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 325, 3292, 3141, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21687, 751, 261, 2890, 16, 28913, 16, 24149, 4672, 3536, 14214, 810, 501, 364, 326, 864, 1719, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 325, 3292, 3141, 3546, ...
pilfilter = PIL.Image.NEAREST if PIL.Image.VERSION >= "1.1.3": pilfilter = PIL.Image.ANTIALIAS
def scale(self, data, w, h, default_format = 'PNG'): """ scale image (with material from ImageTag_Hotfix)""" #make sure we have valid int's size = int(w), int(h)
4cf0e46d18e3dc9d985c78c7437abaeaed326feb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4cf0e46d18e3dc9d985c78c7437abaeaed326feb/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3159, 12, 2890, 16, 501, 16, 341, 16, 366, 16, 805, 67, 2139, 273, 296, 23092, 11, 4672, 3536, 3159, 1316, 261, 1918, 9390, 628, 3421, 1805, 67, 25270, 904, 15574, 468, 6540, 3071, 732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3159, 12, 2890, 16, 501, 16, 341, 16, 366, 16, 805, 67, 2139, 273, 296, 23092, 11, 4672, 3536, 3159, 1316, 261, 1918, 9390, 628, 3421, 1805, 67, 25270, 904, 15574, 468, 6540, 3071, 732...
maintainer = '%s <%s>' % (p.get_commname(), p.get_commemail())
maintainer = '%s <%s>' % (commname, commemail) fromauth = '%s <%s>' % (authname, authemail) if fromauth != maintainer: fromauth = 'From: %s\n\n' % fromauth else: fromauth = ''
def __build_message(tmpl, patch, patch_nr, total_nr, msg_id, ref_id, options): """Build the message to be sent via SMTP """ p = crt_series.get_patch(patch) descr = p.get_description().strip() descr_lines = descr.split('\n') short_descr = descr_lines[0].rstrip() long_descr = '\n'.join(descr_lines[1:]).lstrip() mainta...
1d1485c3cb6799f561df780e8f142b0c54b8178b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/1d1485c3cb6799f561df780e8f142b0c54b8178b/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3510, 67, 2150, 12, 24717, 16, 4729, 16, 4729, 67, 11611, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 1278, 67, 350, 16, 702, 4672, 3536, 3116, 326, 883, 358, 506, 3271, 3970, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3510, 67, 2150, 12, 24717, 16, 4729, 16, 4729, 67, 11611, 16, 2078, 67, 11611, 16, 1234, 67, 350, 16, 1278, 67, 350, 16, 702, 4672, 3536, 3116, 326, 883, 358, 506, 3271, 3970, ...
if res.offline:
if res.offline or msg:
def HooksCallBack(self, phase, hooks_results, feedback_fn, lu_result): """Analyze the post-hooks' result
dd9e9f9ce276368cc2fcd5025001fe17287640ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/dd9e9f9ce276368cc2fcd5025001fe17287640ca/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13725, 87, 30008, 12, 2890, 16, 6855, 16, 9153, 67, 4717, 16, 10762, 67, 4293, 16, 20072, 67, 2088, 4672, 3536, 31984, 326, 1603, 17, 10468, 11, 563, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 13725, 87, 30008, 12, 2890, 16, 6855, 16, 9153, 67, 4717, 16, 10762, 67, 4293, 16, 20072, 67, 2088, 4672, 3536, 31984, 326, 1603, 17, 10468, 11, 563, 2, -100, -100, -100, -100, -100, -...