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
x = numpy.linspace(-5,5,100) y = numpy.linspace(-5,5,100)
xy_range = (-5, 5) x = numpy.linspace(xy_range[0], xy_range[1] ,100) y = numpy.linspace(xy_range[0], xy_range[1] ,100)
def __init__(self): #The delegates views don't work unless we caller the superclass __init__ super(CursorTest, self).__init__() container = HPlotContainer(padding=0, spacing=20) self.plot = container #a subcontainer for the first plot. #I'm not sure why this is required. Without it, the layout doesn't work right. subc...
eda0fdd14626fbc54ac536da6646478d997dfe4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13167/eda0fdd14626fbc54ac536da6646478d997dfe4a/cursor_tool_demo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1986, 22310, 7361, 2727, 1404, 1440, 3308, 732, 4894, 326, 12098, 1001, 2738, 972, 2240, 12, 6688, 4709, 16, 365, 2934, 972, 2738, 972, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1986, 22310, 7361, 2727, 1404, 1440, 3308, 732, 4894, 326, 12098, 1001, 2738, 972, 2240, 12, 6688, 4709, 16, 365, 2934, 972, 2738, 972, 1435, 225, 1...
""" Use the Chinese Remainder Theorem to find some integer x such that x=a (mod m) and x=b (mod n). Note that x is only well-defined modulo m\*n.
r""" Use the Chinese Remainder Theorem to find some integer `x` such that `x=a \bmod m` and `x=b \bmod n`. Note that `x` is only well-defined modulo `m\*n`.
def crt(a,b,m,n): """ Use the Chinese Remainder Theorem to find some integer x such that x=a (mod m) and x=b (mod n). Note that x is only well-defined modulo m\*n. EXAMPLES:: sage: crt(2, 1, 3, 5) -4 sage: crt(13,20,100,301) -2087 You can also use upper case:: sage: c = CRT(2,3, 3, 5); c 8 sage: c % 3 == 2 True sag...
c5cc436e94fabaa9fa38f5732aff2c6f8ca3be27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c5cc436e94fabaa9fa38f5732aff2c6f8ca3be27/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 16, 82, 4672, 436, 8395, 2672, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 358, 1104, 2690, 3571, 1375, 92, 68, 4123, 716, 1375, 92, 33, 69, 521, 70,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 16, 82, 4672, 436, 8395, 2672, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 358, 1104, 2690, 3571, 1375, 92, 68, 4123, 716, 1375, 92, 33, 69, 521, 70,...
def LayoutTestHelperPath(self, target):
def LayoutTestHelperBinaryPath(self, target):
def LayoutTestHelperPath(self, target): """Path to the layout_test helper binary, if needed, empty otherwise""" return ''
ec358dc371508a2ef7248a677cc95a7dc54e2c89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/ec358dc371508a2ef7248a677cc95a7dc54e2c89/platform_utils_linux.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9995, 4709, 2276, 5905, 743, 12, 2890, 16, 1018, 4672, 3536, 743, 358, 326, 3511, 67, 3813, 4222, 3112, 16, 309, 3577, 16, 1008, 3541, 8395, 327, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 9995, 4709, 2276, 5905, 743, 12, 2890, 16, 1018, 4672, 3536, 743, 358, 326, 3511, 67, 3813, 4222, 3112, 16, 309, 3577, 16, 1008, 3541, 8395, 327, 875, 2, -100, -100, -100, -100, -100, ...
twoitemsrepr = "{1: 2, 'ba': 'bo'}" self.assertEqual(twoitemsrepr, str({1: 2, 'ba': 'bo'}))
ok_reprs = ["{1: 2, 'ba': 'bo'}", "{'ba': 'bo', 1: 2}"] self.assert_(str({1: 2, 'ba': 'bo'}) in ok_reprs)
def test_str_repr(self): self.assertEqual('{}', str({})) self.assertEqual('{1: 2}', str({1: 2})) self.assertEqual("{'ba': 'bo'}", str({'ba': 'bo'})) # NOTE: the string repr depends on hash values of 1 and 'ba'!!! twoitemsrepr = "{1: 2, 'ba': 'bo'}" self.assertEqual(twoitemsrepr, str({1: 2, 'ba': 'bo'})) self.assertEqua...
2bdcd4b2387f2f29789de1be902e4db4199aafd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/2bdcd4b2387f2f29789de1be902e4db4199aafd7/test_dictobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 67, 12715, 12, 2890, 4672, 365, 18, 11231, 5812, 2668, 8978, 16, 609, 23506, 3719, 365, 18, 11231, 5812, 2668, 95, 21, 30, 576, 24259, 609, 12590, 21, 30, 576, 31700, 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, 1842, 67, 701, 67, 12715, 12, 2890, 4672, 365, 18, 11231, 5812, 2668, 8978, 16, 609, 23506, 3719, 365, 18, 11231, 5812, 2668, 95, 21, 30, 576, 24259, 609, 12590, 21, 30, 576, 31700, 36...
for key, value in kwargs.items():
field_ids = [ob.prop_name() for ob in context._get_schema().objectValues() if ob.visible] for key in field_ids:
def updateSessionFrom(self, REQUEST=None, **kwargs): """Update session from a given language""" # Update kwargs from request if not REQUEST: return parents = REQUEST.get('PARENTS', None) if not parents: return
0584540f5c863cae973e12fbd278d13ebb5a744b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/0584540f5c863cae973e12fbd278d13ebb5a744b/NyFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2157, 1265, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 2157, 1265, 12, 2890, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 1891, 1339, 628, 279, 864, 2653, 8395, 468, 2315, 1205, 628, 590, 309, 486, 12492, 30, 327, 6298, 273, 12492,...
for x in os.listdir(os.curdir()): if x.startswith(PackageName):
for x in os.listdir(os.curdir): if (x.startswith(PackageName) and x.endswith(pypt_bug_file_format) ):
def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_k...
c20567354efceec30f99e43598053b390f3db916 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/c20567354efceec30f99e43598053b390f3db916/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
'account_id': operation.product_id and operation.product_id.property_account_income and operation.product_id.property_account_income.id,
'account_id': account_id,
def action_invoice_create(self, cr, uid, ids, group=False, context=None): """ Creates invoice(s) for repair order. @param group: It is set to true when group invoice is to be generated. @return: Invoice Ids. """ res = {} invoices_group = {} inv_line_obj = self.pool.get('account.invoice.line') inv_obj = self.pool.get('a...
123cb46c6c36bc22eea1bbce33dc5fdf41dfa579 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/123cb46c6c36bc22eea1bbce33dc5fdf41dfa579/mrp_repair.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 16119, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1041, 33, 8381, 16, 819, 33, 7036, 4672, 3536, 10210, 9179, 12, 87, 13, 364, 20994, 1353, 18, 632, 891, 1041, 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, 1301, 67, 16119, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1041, 33, 8381, 16, 819, 33, 7036, 4672, 3536, 10210, 9179, 12, 87, 13, 364, 20994, 1353, 18, 632, 891, 1041, 3...
write(oid+pack(">HI", len(version), len(data))+version) write(data)
buf = string.join(("s", oid, pack(">HI", len(version), len(data)), version, data), "") write(buf)
def store(self, oid, serial, data, version, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) self._lock_acquire() try: serial=self._call.sendMessage('storea', oid, serial, data, version, self._serial) write=self._tfile.write write(oid+pack(">HI", len(...
fd48e2d583d08a1d52eb7b982c73ea0612be3009 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/fd48e2d583d08a1d52eb7b982c73ea0612be3009/ClientStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 12, 2890, 16, 7764, 16, 2734, 16, 501, 16, 1177, 16, 2492, 4672, 309, 2492, 353, 486, 365, 6315, 7958, 30, 1002, 12511, 503, 18, 3245, 3342, 668, 12, 2890, 16, 2492, 13, 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, 1707, 12, 2890, 16, 7764, 16, 2734, 16, 501, 16, 1177, 16, 2492, 4672, 309, 2492, 353, 486, 365, 6315, 7958, 30, 1002, 12511, 503, 18, 3245, 3342, 668, 12, 2890, 16, 2492, 13, 365, 6...
stream.render('xhtml', doctype=doctype, out=buffer)
stream.render(method, doctype=doctype, out=buffer)
def render_template(self, req, filename, data, content_type=None, fragment=False): """Render the `filename` using the `data` for the context.
344ac9e2e24ba716c262ddb0d26fbad228c2ba8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9317/344ac9e2e24ba716c262ddb0d26fbad228c2ba8c/chrome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3202, 12, 2890, 16, 1111, 16, 1544, 16, 501, 16, 913, 67, 723, 33, 7036, 16, 5481, 33, 8381, 4672, 3536, 3420, 326, 1375, 3459, 68, 1450, 326, 1375, 892, 68, 364, 326, 819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3202, 12, 2890, 16, 1111, 16, 1544, 16, 501, 16, 913, 67, 723, 33, 7036, 16, 5481, 33, 8381, 4672, 3536, 3420, 326, 1375, 3459, 68, 1450, 326, 1375, 892, 68, 364, 326, 819,...
this = apply(_quickfix.new_DataDictionary, args)
this = _quickfix.new_DataDictionary(*args)
def __init__(self, *args): this = apply(_quickfix.new_DataDictionary, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 751, 10905, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 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, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 751, 10905, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 1...
We compute the eigenvalues of an endomorphism of QQ^3::
We compute the eigenvalues of an endomorphism of `\QQ^3`::
def eigenvalues(self,extend=True): """ Returns a list with the eigenvalues of the endomorphism of vector spaces. If the option extend is set to True (default), then eigenvalues in extensions of the base field are considered. EXAMPLES: We compute the eigenvalues of an endomorphism of QQ^3:: sage: V=QQ^3 sage: H=V.en...
9bb09580aa7e219d556bbf2e0ec6c8440ac569f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/9bb09580aa7e219d556bbf2e0ec6c8440ac569f7/free_module_morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29831, 12, 2890, 16, 14313, 33, 5510, 4672, 3536, 2860, 279, 666, 598, 326, 29831, 434, 326, 679, 362, 7657, 6228, 434, 3806, 7292, 18, 225, 971, 326, 1456, 2133, 353, 444, 358, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29831, 12, 2890, 16, 14313, 33, 5510, 4672, 3536, 2860, 279, 666, 598, 326, 29831, 434, 326, 679, 362, 7657, 6228, 434, 3806, 7292, 18, 225, 971, 326, 1456, 2133, 353, 444, 358, 1053, ...
svn_client.copy (opts.repo_root + "/MPC/trunk", opts.repo_root + "/MPC/tags/" + branch)
def tag (): """ Tags the DOC and MPC repositories for the version """ global comp_versions, opts branch = "ACE+TAO+CIAO-%d_%d_%d" % (comp_versions["ACE_major"], comp_versions["ACE_minor"], comp_versions["ACE_beta"]) # Tag middleware svn_client.copy (opts.repo_root + "/Middleware/trunk", opts.repo_root + "/Middleware/t...
039ed4d8ccabc7df75535bd2e6c3838dd108174b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5660/039ed4d8ccabc7df75535bd2e6c3838dd108174b/make_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 1832, 30, 3536, 8750, 326, 5467, 39, 471, 490, 3513, 14531, 364, 326, 1177, 3536, 2552, 1161, 67, 10169, 16, 1500, 225, 3803, 273, 315, 6312, 15, 9833, 51, 15, 7266, 20463, 6456, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 1832, 30, 3536, 8750, 326, 5467, 39, 471, 490, 3513, 14531, 364, 326, 1177, 3536, 2552, 1161, 67, 10169, 16, 1500, 225, 3803, 273, 315, 6312, 15, 9833, 51, 15, 7266, 20463, 6456, ...
load.extend(DependencyItem(x, '', self.id, "|hints|") for x in metaLoad) run.extend(DependencyItem(x, '', self.id, "|hints|") for x in metaRun) ignore.extend(DependencyItem(x, '', self.id, "|hints|") for x in metaIgnore)
depsData['require'].extend(DependencyItem(x, '', self.id, "|hints|") for x in metaLoad) depsData['use'] .extend(DependencyItem(x, '', self.id, "|hints|") for x in metaRun) depsData['ignore'] .extend(DependencyItem(x, '', self.id, "|hints|") for x in metaIgnore)
def buildShallowDeps(variants):
a04d746a2d269d8b022654850b972c167beacd2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/a04d746a2d269d8b022654850b972c167beacd2d/Class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1555, 5965, 14430, 12, 15886, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1555, 5965, 14430, 12, 15886, 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, ...
key.K_l : 'SUBTITLE'
key.K_l : 'SUBTITLE', key.K_a : 'LANG'
def __cmp__(self, other): """ compare function, return 0 if the objects are identical, 1 otherwise """ if not other: return 1 if isinstance(other, Event): return self.name != other.name return self.name != other
4a872c35e75a4c09617326b5a44f88ddc611094b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4a872c35e75a4c09617326b5a44f88ddc611094b/event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 3400, 445, 16, 327, 374, 309, 326, 2184, 854, 12529, 16, 404, 3541, 3536, 309, 486, 1308, 30, 327, 404, 309, 1549, 12, 3011, 16, 2587, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 3536, 3400, 445, 16, 327, 374, 309, 326, 2184, 854, 12529, 16, 404, 3541, 3536, 309, 486, 1308, 30, 327, 404, 309, 1549, 12, 3011, 16, 2587, ...
res[r] = None
res[r] = False
def _fnct_read(self2, self, cr, uid, ids, prop, val, context={}): property = self.pool.get('ir.property') definition_id = self2._field_get(self, cr, uid, prop)
1235e49ba7f635cfba9705c84aa892c2f135c022 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/1235e49ba7f635cfba9705c84aa892c2f135c022/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4293, 299, 67, 896, 12, 2890, 22, 16, 365, 16, 4422, 16, 4555, 16, 3258, 16, 2270, 16, 1244, 16, 819, 12938, 4672, 1272, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4468, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4293, 299, 67, 896, 12, 2890, 22, 16, 365, 16, 4422, 16, 4555, 16, 3258, 16, 2270, 16, 1244, 16, 819, 12938, 4672, 1272, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 4468, 6134, ...
"""Same as for the pygame.sprite.Group.
"""initialize group.
def __init__(self, *sprites, **kwargs): """Same as for the pygame.sprite.Group. pygame.sprite.LayeredDirty(*spites, **kwargs): return LayeredDirty
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1752, 24047, 16, 2826, 4333, 4672, 3536, 11160, 1041, 18, 225, 2395, 13957, 18, 1752, 796, 18, 4576, 329, 10785, 30857, 1752, 2997, 16, 2826, 4333, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1752, 24047, 16, 2826, 4333, 4672, 3536, 11160, 1041, 18, 225, 2395, 13957, 18, 1752, 796, 18, 4576, 329, 10785, 30857, 1752, 2997, 16, 2826, 4333, 46...
id = self.__ic.stringToIdentity("ClientCallback")
id = self.__ic.stringToIdentity("ClientCallback/%s" % self.__uid )
def createSession(self, username=None, password=None): """ Performs the actual logic of logging in, which is done via the getRouter(). Disallows an extant ServiceFactoryPrx, and tries to re-create a null Ice.Communicator. A null or empty username will throw an exception, but an empty password is allowed. """ import ome...
3e067b993041cc146c6d1ad424802b77394ebd52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/3e067b993041cc146c6d1ad424802b77394ebd52/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2157, 12, 2890, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 27391, 326, 3214, 4058, 434, 2907, 316, 16, 1492, 353, 2731, 3970, 326, 4170, 14068, 7675, 3035, 5965, 87, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2157, 12, 2890, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 27391, 326, 3214, 4058, 434, 2907, 316, 16, 1492, 353, 2731, 3970, 326, 4170, 14068, 7675, 3035, 5965, 87, 392, ...
'plainText': (str, u''),
'plainText': (str, ''),
def alert(self, req, form): """ Alert system. Sends an email alert, in HTML/PlainText or only PlainText to a mailing list to alert for new journal releases. """ argd = wash_urlargd(form, {'name': (str, ""), 'sent': (str, "False"), 'plainText': (str, u''), 'htmlMail': (str, ""), 'recipients': (str, ""), 'subject': (str,...
291ffb21abdae2eada809c6497e863b468468f6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/291ffb21abdae2eada809c6497e863b468468f6a/webjournal_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6881, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 17913, 2619, 18, 2479, 87, 392, 2699, 6881, 16, 316, 3982, 19, 13360, 1528, 578, 1338, 17367, 1528, 358, 279, 4791, 310, 666, 358, 6881, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6881, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 17913, 2619, 18, 2479, 87, 392, 2699, 6881, 16, 316, 3982, 19, 13360, 1528, 578, 1338, 17367, 1528, 358, 279, 4791, 310, 666, 358, 6881, ...
"""
TESTS: We make copies of the _pos and _boundary attributes. sage: g = graphs.PathGraph(3) sage: h = g.copy() sage: h._pos is g._pos False sage: h._boundary is g._boundary False """ from copy import copy
def copy(self): """ Creates a copy of the graph.
c0f1f7761ffc3ed4ce395b494bfa7abd51b35cbf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c0f1f7761ffc3ed4ce395b494bfa7abd51b35cbf/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 22130, 55, 30, 1660, 1221, 13200, 434, 326, 389, 917, 471, 389, 16604, 1677, 18, 272, 410, 30, 314, 273, 19422, 18, 743, 4137, 12, 23, 13, 272, 410, 30, 366, 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, 1610, 12, 2890, 4672, 22130, 55, 30, 1660, 1221, 13200, 434, 326, 389, 917, 471, 389, 16604, 1677, 18, 272, 410, 30, 314, 273, 19422, 18, 743, 4137, 12, 23, 13, 272, 410, 30, 366, 27...
if uname == '':
if not uname:
def getDeviceDetails(self, config): """@see DevController.getDeviceDetails""" uname = config.get('uname', '') dev = config.get('dev', '') if 'ioemu:' in dev: (_, dev) = string.split(dev, ':', 1) try: (dev, dev_type) = string.split(dev, ':', 1) except ValueError: dev_type = "disk"
d13df06190277459f44587138c693ffcdbff7820 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/d13df06190277459f44587138c693ffcdbff7820/blkif.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19512, 3790, 12, 2890, 16, 642, 4672, 3536, 36, 5946, 9562, 2933, 18, 588, 3654, 3790, 8395, 31444, 273, 642, 18, 588, 2668, 318, 339, 2187, 28707, 4461, 273, 642, 18, 588, 2668, 5206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19512, 3790, 12, 2890, 16, 642, 4672, 3536, 36, 5946, 9562, 2933, 18, 588, 3654, 3790, 8395, 31444, 273, 642, 18, 588, 2668, 318, 339, 2187, 28707, 4461, 273, 642, 18, 588, 2668, 5206, ...
gid = super(groups, self).create(cr, uid, vals, context=context)
gid = super(groups, self).create(cr, uid, vals, context=context)
def create(self, cr, uid, vals, context=None): if 'name' in vals: if vals['name'].startswith('-'): raise osv.except_osv(_('Error'), _('The name of the group can not start with "-"')) gid = super(groups, self).create(cr, uid, vals, context=context) if context and context.get('noadmin', False): pass else: # assign this n...
288fc76f2950280ae04edfd8ac2e0b88888cfcf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/288fc76f2950280ae04edfd8ac2e0b88888cfcf2/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 33, 7036, 4672, 309, 296, 529, 11, 316, 5773, 30, 309, 5773, 3292, 529, 29489, 17514, 1918, 2668, 6627, 4672, 1002, 1140, 90, 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, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 33, 7036, 4672, 309, 296, 529, 11, 316, 5773, 30, 309, 5773, 3292, 529, 29489, 17514, 1918, 2668, 6627, 4672, 1002, 1140, 90, 18, ...
ans = pfsd.readline ()
def stop (self): global pfsd_port self.kill = True pfsd = Connect ('localhost', pfsd_port) try: if self.onlineSent: pfsd.connect () pfsd.writeline ('OFFLINE') pfsd.writeline ('1') pfsd.writeline (self.remote_sd_id) ans = pfsd.readline () pfsd.writeline ('CLOSE') ans = pfsd.readline () pfsd.close () except: pass
80234e50ae16af35277571ed4f498d59e7cfd1be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12216/80234e50ae16af35277571ed4f498d59e7cfd1be/lan_tun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 261, 2890, 4672, 2552, 293, 2556, 72, 67, 655, 365, 18, 16418, 273, 1053, 293, 2556, 72, 273, 8289, 7707, 13014, 2187, 293, 2556, 72, 67, 655, 13, 775, 30, 309, 365, 18, 21026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 261, 2890, 4672, 2552, 293, 2556, 72, 67, 655, 365, 18, 16418, 273, 1053, 293, 2556, 72, 273, 8289, 7707, 13014, 2187, 293, 2556, 72, 67, 655, 13, 775, 30, 309, 365, 18, 21026, ...
f = open(opts.galaxy_priors_dir+'/'+str(int(mineffD))+'Mpc.pkl','r')
f = open(opts.galaxy_priors_dir+'/galaxy_prior_'+str(int(mineffD))+'Mpc.pkl','r')
def get_unique_filename(name): """ use this to avoid name collisions """ counter = 1 base_name, ext = os.path.splitext(name) while os.path.isfile(name): name = base_name + '_' + str(counter) + ext counter += 1 return name
5d57777704fdde7db5dca49e7d89c4111f8d4dc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/5d57777704fdde7db5dca49e7d89c4111f8d4dc7/run_skypoints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6270, 67, 3459, 12, 529, 4672, 3536, 999, 333, 358, 4543, 508, 27953, 3536, 3895, 273, 404, 1026, 67, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 529, 13, 1323, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6270, 67, 3459, 12, 529, 4672, 3536, 999, 333, 358, 4543, 508, 27953, 3536, 3895, 273, 404, 1026, 67, 529, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 529, 13, 1323, 11...
assert_almost_equal(self.res1.bic, self.res2.bic, DECIMAL)
if hasattr(self.res2, 'bic'): assert_almost_equal(self.res1.bic, self.res2.bic, DECIMAL) else: raise SkipTest, "Results from Rpy"
def test_BIC(self): assert_almost_equal(self.res1.bic, self.res2.bic, DECIMAL)
c944eab8d84c6cac2fb5de055fceb6bc5953418f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12658/c944eab8d84c6cac2fb5de055fceb6bc5953418f/test_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 38, 2871, 12, 2890, 4672, 1815, 67, 287, 10329, 67, 9729, 12, 2890, 18, 455, 21, 18, 70, 335, 16, 365, 18, 455, 22, 18, 70, 335, 16, 25429, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 38, 2871, 12, 2890, 4672, 1815, 67, 287, 10329, 67, 9729, 12, 2890, 18, 455, 21, 18, 70, 335, 16, 365, 18, 455, 22, 18, 70, 335, 16, 25429, 13, 2, -100, -100, -100, -100,...
if start_row > five_pages:
if start_row >= five_pages:
def query_bugs(self, start_row=None, rows_per_page=10, order=-1, sort_col='number', filters=None, **params): if not filters: filters = {} filters = self._query_bugs_filter.filter(filters, conn=self) collection = filters.get('collection', 'Fedora') version = filters.get('version', '')
c946049c17ed9a781546acacb08d3b518ab8e0b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/c946049c17ed9a781546acacb08d3b518ab8e0b2/bugzillaconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 19381, 12, 2890, 16, 787, 67, 492, 33, 7036, 16, 2595, 67, 457, 67, 2433, 33, 2163, 16, 1353, 29711, 21, 16, 1524, 67, 1293, 2218, 2696, 2187, 3415, 33, 7036, 16, 2826, 2010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 19381, 12, 2890, 16, 787, 67, 492, 33, 7036, 16, 2595, 67, 457, 67, 2433, 33, 2163, 16, 1353, 29711, 21, 16, 1524, 67, 1293, 2218, 2696, 2187, 3415, 33, 7036, 16, 2826, 2010...
print " --full-versions Print full version strings instead of attempting to shorten them"
print " --full-versions Print full version strings instead of " print " attempting to shorten them"
def usage(): print "conary showcs <changeset> [trove]" print "showcs flags: " print " --full-versions Print full version strings instead of attempting to shorten them" print " --info Print dependency information about the troves" print " --ls (R...
7a043a96e3eacac362d9230fc019c4c48716a2de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7a043a96e3eacac362d9230fc019c4c48716a2de/showchangeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 591, 814, 2405, 2143, 282, 411, 6329, 278, 34, 306, 88, 303, 537, 4279, 1172, 315, 4500, 2143, 2943, 30, 282, 315, 1172, 315, 7734, 1493, 2854, 17, 10169, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 591, 814, 2405, 2143, 282, 411, 6329, 278, 34, 306, 88, 303, 537, 4279, 1172, 315, 4500, 2143, 2943, 30, 282, 315, 1172, 315, 7734, 1493, 2854, 17, 10169, 282, ...
'\n'.join(['%s\\%s[1]{%s}' % (nc, alias, cmndef)
'\n'.join(['\\newcommand\\%s[1]{%s}' % (alias, cmndef)
def get_style_defs(self, arg=''): """ Return the \\newcommand sequences needed to define the commands used to format text in the verbatim environment. If ``arg`` is given and true, use \\renewcommand instead. """ nc = (arg and r'\renewcommand' or r'\newcommand') return '%s\\at{@}\n%s\\lb{[}\n%s\\rb{]}\n' % (nc, nc, nc)...
c1ff3dec7399c0b88356f268039128c6a6e8dc7a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/c1ff3dec7399c0b88356f268039128c6a6e8dc7a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4060, 67, 12537, 12, 2890, 16, 1501, 2218, 11, 4672, 3536, 2000, 326, 1736, 2704, 3076, 8463, 3577, 358, 4426, 326, 4364, 1399, 358, 740, 977, 316, 326, 29526, 3330, 18, 971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4060, 67, 12537, 12, 2890, 16, 1501, 2218, 11, 4672, 3536, 2000, 326, 1736, 2704, 3076, 8463, 3577, 358, 4426, 326, 4364, 1399, 358, 740, 977, 316, 326, 29526, 3330, 18, 971, ...
gLogger.info('__reportProblematicReplicas: Successfully updated integrity DB with replicas') def __initialiseAccountingObject(self,operation,se,startTime,endTime,size):
gLogger.info( '__reportProblematicReplicas: Successfully updated integrity DB with replicas' ) def __initialiseAccountingObject( self, operation, se, startTime, endTime, size ):
def __reportProblematicReplicas(self,replicaTuples): gLogger.info('__reportProblematicReplicas: The following %s files being reported to integrity DB:' % (len(replicaTuples))) for lfn,pfn,se,reason in sortList(replicaTuples): if lfn: gLogger.info(lfn) else: gLogger.info(pfn) res = self.DataIntegrityClient.setReplicaPro...
9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6006, 13719, 2126, 17248, 12, 2890, 16, 30065, 25813, 4672, 314, 3328, 18, 1376, 2668, 972, 6006, 13719, 2126, 17248, 30, 1021, 3751, 738, 87, 1390, 3832, 14010, 358, 24425, 2383, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6006, 13719, 2126, 17248, 12, 2890, 16, 30065, 25813, 4672, 314, 3328, 18, 1376, 2668, 972, 6006, 13719, 2126, 17248, 30, 1021, 3751, 738, 87, 1390, 3832, 14010, 358, 24425, 2383, 24...
return self.hasPermission('Create', self.classname)
return self.hasPermission('Create')
def newItemPermission(self, props): """Determine whether the user has permission to create this item.
59d1ed178fd4a6cfd7b6fa2e56aae971cea702b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/59d1ed178fd4a6cfd7b6fa2e56aae971cea702b0/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26536, 5041, 12, 2890, 16, 3458, 4672, 3536, 8519, 2856, 326, 729, 711, 4132, 358, 752, 333, 761, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26536, 5041, 12, 2890, 16, 3458, 4672, 3536, 8519, 2856, 326, 729, 711, 4132, 358, 752, 333, 761, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
\
\
def parse(self, text, lineno, memo, parent): """ Return 2 lists: nodes (text and inline elements), and system_messages.
039645ec5706bfe06b64e66663e62db9bc1abf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/039645ec5706bfe06b64e66663e62db9bc1abf30/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 7586, 16, 11063, 16, 982, 4672, 3536, 2000, 576, 6035, 30, 2199, 261, 955, 471, 6370, 2186, 3631, 471, 2619, 67, 6833, 18, 2, -100, -100, -100, -100, -100,...
if not issubclass(pywintypes.TimeType, datetime.datetime): return
def testFileTimes(self): if issubclass(pywintypes.TimeType, datetime.datetime): from win32timezone import GetLocalTimeZone now = datetime.datetime.now(tz=GetLocalTimeZone()) ok_delta = datetime.timedelta(seconds=1) later = now + datetime.timedelta(seconds=120) else: tick = int(time.time()) now = pywintypes.Time(tick) o...
14ccee35f01afa6ae2a33f3bb83af9e157bf96aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/677/14ccee35f01afa6ae2a33f3bb83af9e157bf96aa/test_win32file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 812, 10694, 12, 2890, 4672, 309, 14664, 12, 2074, 91, 474, 989, 18, 950, 559, 16, 3314, 18, 6585, 4672, 628, 5657, 1578, 12690, 1930, 968, 2042, 16760, 2037, 273, 3314, 18, 6585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 812, 10694, 12, 2890, 4672, 309, 14664, 12, 2074, 91, 474, 989, 18, 950, 559, 16, 3314, 18, 6585, 4672, 628, 5657, 1578, 12690, 1930, 968, 2042, 16760, 2037, 273, 3314, 18, 6585, ...
self.buffer = self.buffer.decode('Shift_JIS', 'ignore').encode('utf-8', 'ignore')
self.buffer_decode_from('Shift_JIS')
def parse(self): """Parse buffer to extract records."""
866019beaff5d677c481af4b74bf5e2c6745ce96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/866019beaff5d677c481af4b74bf5e2c6745ce96/websearch_external_collections_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 3536, 3201, 1613, 358, 2608, 3853, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 3536, 3201, 1613, 358, 2608, 3853, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.atcr = False
def reset(self):
c437671be98e63941490568e9681236dcc0ed266 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c437671be98e63941490568e9681236dcc0ed266/codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
svc_name, svc_display_name = self.get_service_names()
svc_name, svc_display_name, svc_deps = self.get_service_names()
def create_exe (self, exe_name, arcname, use_runw): import struct
14cfcb9ea069ed9b526b75163132da57c961461d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/14cfcb9ea069ed9b526b75163132da57c961461d/build_exe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14880, 261, 2890, 16, 15073, 67, 529, 16, 8028, 529, 16, 999, 67, 2681, 91, 4672, 1930, 1958, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14880, 261, 2890, 16, 15073, 67, 529, 16, 8028, 529, 16, 999, 67, 2681, 91, 4672, 1930, 1958, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
COLUMN_SEVERITY, site.get_server_name(),
COLUMN_SEVERITY, site.get_source_filename(),
def _add_denormalized_vhosts( self ): site_template = "<b><big>%s</big></b>" lstore = self.get_model() data = [] dirList=os.listdir( Configuration.SITES_ENABLED_DIR ) dirList = [x for x in dirList if self._blacklisted( x ) == False ] dirList = [x for x in dirList if is_denormalized_vhost( x ) == False ] self.items =...
fa904dd21822b0a6dddc427a6ced1685c05cb1fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9230/fa904dd21822b0a6dddc427a6ced1685c05cb1fb/VhostsTreeView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 13002, 1687, 1235, 67, 90, 11588, 12, 365, 262, 30, 225, 2834, 67, 3202, 273, 3532, 70, 4438, 14002, 9822, 87, 1757, 14002, 4695, 70, 2984, 328, 2233, 273, 365, 18, 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, 389, 1289, 67, 13002, 1687, 1235, 67, 90, 11588, 12, 365, 262, 30, 225, 2834, 67, 3202, 273, 3532, 70, 4438, 14002, 9822, 87, 1757, 14002, 4695, 70, 2984, 328, 2233, 273, 365, 18, 588,...
np2da = vtkDoubleArrayFromNumPyMultiArray(data)
np2da = self.convert_to_vtk_array(data)
def get_leaktest_scenario(self):
34128e9b0827c17d15020a7d73bb23a6abf2d402 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/34128e9b0827c17d15020a7d73bb23a6abf2d402/vtk_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 298, 581, 3813, 67, 26405, 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, ...
sage: phi,theta=var('phi theta') sage: Y=spherical_harmonic(2,1,theta,phi) sage: rea=spherical_plot3d(abs(real(Y)),(phi,0,2*pi),(theta,0,pi),color='blue',opacity=0.6) sage: ima=spherical_plot3d(abs(imag(Y)),(phi,0,2*pi),(theta,0,pi),color='red' ,opacity=0.6) sage: (rea+ima).show(aspect_ratio=1)
sage: phi, theta = var('phi, theta') sage: Y = spherical_harmonic(2, 1, theta, phi) sage: rea = spherical_plot3d(abs(real(Y)), (phi,0,2*pi), (theta,0,pi), color='blue', opacity=0.6) sage: ima = spherical_plot3d(abs(imag(Y)), (phi,0,2*pi), (theta,0,pi), color='red', opacity=0.6) sage: (rea + ima).show(aspect_ratio=1)
def spherical_plot3d(f, urange, vrange, **kwds): """ Plots a function in spherical coordinates. This function is equivalent to:: sage: r,u,v=var('r,u,v') sage: f=u*v; urange=(u,0,pi); vrange=(v,0,pi) sage: T = (r*cos(u)*sin(v), r*sin(u)*sin(v), r*cos(v), [u,v]) sage: plot3d(f, urange, vrange, transformation=T) or eq...
742d05ea84125e9e5943320581a4d8c29f5dad43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/742d05ea84125e9e5943320581a4d8c29f5dad43/plot3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 21570, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 3008, 6968, 279, 445, 316, 272, 21570, 5513, 18, 225, 1220, 445, 353, 7680, 358, 2866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 21570, 67, 4032, 23, 72, 12, 74, 16, 8896, 726, 16, 331, 3676, 16, 2826, 25577, 4672, 3536, 3008, 6968, 279, 445, 316, 272, 21570, 5513, 18, 225, 1220, 445, 353, 7680, 358, 2866, ...
rec_old = create_record(print_record(int(rec_id), 'xm'), 2)[0]
rec_old = create_record(format_record(int(rec_id), 'xm'), 2)[0]
def bibupload(record): """Main function: process a record and fit it in the tables bibfmt, bibrec, bibrec_bibxxx, bibxxx with proper record metadata. Return (error_code, recID) of the processed record. """ error = None # If there are special tags to proceed check if it exists in the record if options['tag'] is not Non...
0c7f6ad29216972530c14213114120aa884740bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/0c7f6ad29216972530c14213114120aa884740bb/bibupload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25581, 6327, 12, 3366, 4672, 3536, 6376, 445, 30, 1207, 279, 1409, 471, 4845, 518, 316, 326, 4606, 25581, 8666, 16, 25581, 3927, 16, 25581, 3927, 67, 70, 495, 18310, 16, 25581, 18310, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25581, 6327, 12, 3366, 4672, 3536, 6376, 445, 30, 1207, 279, 1409, 471, 4845, 518, 316, 326, 4606, 25581, 8666, 16, 25581, 3927, 16, 25581, 3927, 67, 70, 495, 18310, 16, 25581, 18310, 59...
flags = db.DB_CREATE | db.DB_TRUNCATE
flags = db.DB_CREATE if os.path.isfile(file): os.unlink(file)
def _checkflag(flag): if flag == 'r': flags = db.DB_RDONLY elif flag == 'rw': flags = 0 elif flag == 'w': flags = db.DB_CREATE elif flag == 'c': flags = db.DB_CREATE elif flag == 'n': flags = db.DB_CREATE | db.DB_TRUNCATE else: raise error, "flags should be one of 'r', 'w', 'c' or 'n'" return flags | db.DB_THREAD
fa351d6367130ab630b19d72fec1727b61e0fa50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa351d6367130ab630b19d72fec1727b61e0fa50/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, 296, 91, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, 296, 91, ...
return FTPError("command not implemented")
log.debug("SOMETHING IS SCREWY") def _unblock(self, *_): log.debug('_unblock running') commands = self.blocked self.blocked = None while commands and self.blocked is None: cmd, args = commands.pop(0) self.processCommand(cmd, *args) if self.blocked is not None: self.blocked.extend(commands) def _ebDtpInstance(self, _...
def processCommand(self, command, *args): if self.blocked != None: self.blocked.append((method,args)) return
cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0/jdftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2189, 12, 2890, 16, 1296, 16, 380, 1968, 4672, 309, 365, 18, 23156, 480, 599, 30, 365, 18, 23156, 18, 6923, 12443, 2039, 16, 1968, 3719, 327, 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, 1207, 2189, 12, 2890, 16, 1296, 16, 380, 1968, 4672, 309, 365, 18, 23156, 480, 599, 30, 365, 18, 23156, 18, 6923, 12443, 2039, 16, 1968, 3719, 327, 2, -100, -100, -100, -100, -100, -10...
_("%d out of %d hunk%s FAILED -- saving rejects to file %s\n" % (len(self.rej), self.hunks, hunkstr, fname)))
_("%d out of %d hunk%s FAILED -- saving rejects to file %s\n") % (len(self.rej), self.hunks, hunkstr, fname))
def write_rej(self): # our rejects are a little different from patch(1). This always # creates rejects in the same form as the original patch. A file # header is inserted so that you can run the reject through patch again # without having to type the filename.
252c8d85581f2987e5c62ae7983c3003cc9e5438 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/252c8d85581f2987e5c62ae7983c3003cc9e5438/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 266, 78, 12, 2890, 4672, 468, 3134, 4925, 87, 854, 279, 12720, 3775, 628, 4729, 12, 21, 2934, 225, 1220, 3712, 468, 3414, 4925, 87, 316, 326, 1967, 646, 487, 326, 2282, 4729,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 266, 78, 12, 2890, 4672, 468, 3134, 4925, 87, 854, 279, 12720, 3775, 628, 4729, 12, 21, 2934, 225, 1220, 3712, 468, 3414, 4925, 87, 316, 326, 1967, 646, 487, 326, 2282, 4729,...
self.doclist.DownloadDocument('non_existent_doc', path)
self.client.Export('non_existent_doc', path)
def testExportNonExistentDocument(self): path = './ned.txt' exception_raised = False try: self.doclist.DownloadDocument('non_existent_doc', path) except Exception, e: # expected exception_raised = True self.assert_(exception_raised) self.assert_(not os.path.exists(path))
76de6e666a2dc6ba3f703b89b870266619bcabd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/76de6e666a2dc6ba3f703b89b870266619bcabd4/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6144, 3989, 4786, 319, 2519, 12, 2890, 4672, 589, 273, 12871, 11748, 18, 5830, 11, 1520, 67, 354, 5918, 273, 1083, 775, 30, 365, 18, 2625, 18, 6144, 2668, 5836, 67, 19041, 67, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6144, 3989, 4786, 319, 2519, 12, 2890, 4672, 589, 273, 12871, 11748, 18, 5830, 11, 1520, 67, 354, 5918, 273, 1083, 775, 30, 365, 18, 2625, 18, 6144, 2668, 5836, 67, 19041, 67, 24...
hsv_merge.py src_rgb src_greyscale dst_rgb
hsv_merge.py src_rgb src_greyscale dst_rgb.tif
def Usage(): print("""
d2b32f7ef7a71311a63ff51a68be531b5cbce93e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/d2b32f7ef7a71311a63ff51a68be531b5cbce93e/hsv_merge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10858, 13332, 1172, 2932, 3660, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10858, 13332, 1172, 2932, 3660, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
"No matching import parent %s for %s found"
__doc__ = "No matching import parent %s for %s found"
def __str__(self): return self.__doc__ %(self.args[0], self.args[1], self.args[2])
43ec45bd1519334fa54f35ea0dc700ba1d97d890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/43ec45bd1519334fa54f35ea0dc700ba1d97d890/RepositoryError.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 16186, 2434, 972, 8975, 2890, 18, 1968, 63, 20, 6487, 365, 18, 1968, 63, 21, 6487, 365, 18, 1968, 63, 22, 5717, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 365, 16186, 2434, 972, 8975, 2890, 18, 1968, 63, 20, 6487, 365, 18, 1968, 63, 21, 6487, 365, 18, 1968, 63, 22, 5717, 2, -100, -100, -100, -100, -...
if begTime is not None: if nowTime < begTime: begin = localtime(begTime) end = localtime(begTime+duration)
if beginTime is not None: if nowTime < beginTime: begin = localtime(beginTime) end = localtime(beginTime+duration)
def buildMultiEntry(self, changecount, service, eventId, begTime, duration, EventName, nowTime, service_name): (clock_pic, rec) = self.getPixmapForEntry(service, eventId, beginTime, duration) r1=self.service_rect r2=self.progress_rect r3=self.descr_rect r4=self.start_end_rect res = [ None ] # no private data needed if ...
7c2806b5333b22eb2859c14879991319456cacc6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/7c2806b5333b22eb2859c14879991319456cacc6/EpgList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 5002, 1622, 12, 2890, 16, 9435, 557, 592, 16, 1156, 16, 26004, 16, 16847, 950, 16, 3734, 16, 2587, 461, 16, 2037, 950, 16, 1156, 67, 529, 4672, 261, 18517, 67, 20003, 16, 1950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 5002, 1622, 12, 2890, 16, 9435, 557, 592, 16, 1156, 16, 26004, 16, 16847, 950, 16, 3734, 16, 2587, 461, 16, 2037, 950, 16, 1156, 67, 529, 4672, 261, 18517, 67, 20003, 16, 1950, ...
if problem_data["BCs"] != "null":
if problem_data["BCs"]:
def calc_global(problem_data): """ Calculates global stiffness matrix, assembly of elemental systems are included here instead of defining an extra function for assembly """ print("Calculating global system...") global NEN, NEN_range, functions, a, V1, V2, c, f, shape_funcs #Defining global variables NEN = problem_da...
8b8580fce0563db97e1b2379c25a2d5ce8f2cc5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8149/8b8580fce0563db97e1b2379c25a2d5ce8f2cc5e/gsystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 6347, 12, 18968, 67, 892, 4672, 3536, 26128, 2552, 384, 3048, 4496, 3148, 16, 19931, 434, 930, 287, 14908, 854, 5849, 2674, 3560, 434, 9364, 392, 2870, 445, 364, 19931, 3536, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 6347, 12, 18968, 67, 892, 4672, 3536, 26128, 2552, 384, 3048, 4496, 3148, 16, 19931, 434, 930, 287, 14908, 854, 5849, 2674, 3560, 434, 9364, 392, 2870, 445, 364, 19931, 3536, 1...
codmain.
codomain.
def iter_morphisms(self, arg=None, codomain=None, min_length=1): r""" Iterate over all morphisms with domain ``self`` and the given codmain.
ae6a20e6ab8924137f419ec96957b2a456c43838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ae6a20e6ab8924137f419ec96957b2a456c43838/words.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 1501, 33, 7036, 16, 11012, 1530, 33, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 81, 7657, 23749, 12, 2890, 16, 1501, 33, 7036, 16, 11012, 1530, 33, 7036, 16, 1131, 67, 2469, 33, 21, 4672, 436, 8395, 11436, 1879, 777, 14354, 23749, 598, 2461, 12176, 2890, ...
return date is None and self.FLOOR_DATE or date
return date is None and FLOOR_DATE or date
def created(self): """Dublin Core element - date resource created, returned as DateTime. """ # allow for non-existent creation_date, existed always date = getattr( self, 'creation_date', None ) return date is None and self.FLOOR_DATE or date
0095339775b465f6a299193cd3c99dbd89f7ff95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/0095339775b465f6a299193cd3c99dbd89f7ff95/ExtensibleMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2522, 12, 2890, 4672, 3536, 40, 29056, 4586, 930, 300, 1509, 1058, 2522, 16, 2106, 487, 3716, 18, 3536, 468, 1699, 364, 1661, 17, 19041, 6710, 67, 712, 16, 20419, 3712, 1509, 273, 3869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2522, 12, 2890, 4672, 3536, 40, 29056, 4586, 930, 300, 1509, 1058, 2522, 16, 2106, 487, 3716, 18, 3536, 468, 1699, 364, 1661, 17, 19041, 6710, 67, 712, 16, 20419, 3712, 1509, 273, 3869, ...
Tag, otherName="itemsWithTag", displayName=u"Tag", initialValue=None
Tag, displayName=u"Tag", initialValue=None
def getPhotoByFlickrTitle(view, title): photos = KindCollection('FlickrPhotoQuery', FlickrPhotoMixin) filteredPhotos = FilteredCollection('FilteredFlicrkPhotoQuery', photos) for x in filteredPhotos: return x
f2946ac7b77ea1abcb05a65a65f0e3f4bfb7e91b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f2946ac7b77ea1abcb05a65a65f0e3f4bfb7e91b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21735, 6302, 858, 2340, 16254, 4247, 12, 1945, 16, 2077, 4672, 18185, 273, 5851, 2532, 2668, 2340, 16254, 19934, 1138, 2187, 29458, 19934, 14439, 13, 5105, 3731, 12440, 273, 4008, 329, 2532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21735, 6302, 858, 2340, 16254, 4247, 12, 1945, 16, 2077, 4672, 18185, 273, 5851, 2532, 2668, 2340, 16254, 19934, 1138, 2187, 29458, 19934, 14439, 13, 5105, 3731, 12440, 273, 4008, 329, 2532,...
image, mathml = None, None
image, mathml, label = None, None, None
def insert_math_images(file): file = os.path.abspath(file) doc = NonvalidatingReader.parseUri(file) ctxt = Context(doc, processorNss=NSS) # Check that verbatim math is used for node in Evaluate("//xhtml:span[@class='verbatimmath']/@lxir:value", context=ctxt): verbatimmath = node.value assert verbatimmath == u'true', "...
38e16f44922aeebd03cfc4154522b49522887608 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5321/38e16f44922aeebd03cfc4154522b49522887608/lxirimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 15949, 67, 7369, 12, 768, 4672, 585, 273, 1140, 18, 803, 18, 5113, 803, 12, 768, 13, 997, 273, 3858, 877, 1776, 2514, 18, 2670, 3006, 12, 768, 13, 14286, 273, 1772, 12, 243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 15949, 67, 7369, 12, 768, 4672, 585, 273, 1140, 18, 803, 18, 5113, 803, 12, 768, 13, 997, 273, 3858, 877, 1776, 2514, 18, 2670, 3006, 12, 768, 13, 14286, 273, 1772, 12, 243...
EXAMPLES:
EXAMPLES::
def __init__(self, items): r""" Initialize a PickleDict.
03555b4381371de7688c2f08f833898ba9658b7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/03555b4381371de7688c2f08f833898ba9658b7b/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1516, 4672, 436, 8395, 9190, 279, 23038, 298, 5014, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1516, 4672, 436, 8395, 9190, 279, 23038, 298, 5014, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 776) else quickfix.IntField.__init__(self, 776, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 6669, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 6669, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
class Ov3(AbstractCut, NonBritishMixin) :
class Ov3(AbstractCut) :
def _mod1(self, other) : """RE._mod1(other) -> bool.
512a51d75f45fc23887dc67bb266c4f8cc3f48c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/512a51d75f45fc23887dc67bb266c4f8cc3f48c8/Restriction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1711, 21, 12, 2890, 16, 1308, 13, 294, 3536, 862, 6315, 1711, 21, 12, 3011, 13, 317, 1426, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1711, 21, 12, 2890, 16, 1308, 13, 294, 3536, 862, 6315, 1711, 21, 12, 3011, 13, 317, 1426, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
Pick positive integers m and k and a nonnegative integer q. All the FuzzyBallGraphs constructed from partitions of m with k parts should be cospectral with respect to the normalized
Pick positive integers `m` and `k` and a nonnegative integer `q`. All the FuzzyBallGraphs constructed from partitions of `m` with `k` parts should be cospectral with respect to the normalized
def FuzzyBallGraph(self, partition, q): """ Construct a Fuzzy Ball graph with the integer partition ``partition`` and ``q`` extra vertices.
7d7db5252f36fea2d87565cac78d6b6e8b3c44b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7d7db5252f36fea2d87565cac78d6b6e8b3c44b4/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 3536, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, 6928, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 3536, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, 6928, ...
port = int(host[i+1:])
try: port = int(host[i+1:]) except ValueError, msg: raise socket.error, str(msg)
def _set_hostport(self, host, port): if port is None: i = host.find(':') if i >= 0: port = int(host[i+1:]) host = host[:i] else: port = self.default_port self.host = host self.port = port
a982c9f11e2f47304c90c363a90406111416fa90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a982c9f11e2f47304c90c363a90406111416fa90/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2564, 655, 12, 2890, 16, 1479, 16, 1756, 4672, 309, 1756, 353, 599, 30, 277, 273, 1479, 18, 4720, 2668, 2497, 13, 309, 277, 1545, 374, 30, 775, 30, 1756, 273, 509, 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, 389, 542, 67, 2564, 655, 12, 2890, 16, 1479, 16, 1756, 4672, 309, 1756, 353, 599, 30, 277, 273, 1479, 18, 4720, 2668, 2497, 13, 309, 277, 1545, 374, 30, 775, 30, 1756, 273, 509, 12, ...
server.set_debuglevel(0)
if DEBUGLEVEL > 2: server.set_debuglevel(1) else: server.set_debuglevel(0)
def send_email(fromaddr, toaddr, body): server = smtplib.SMTP('smtp.cern.ch') server.set_debuglevel(0) server.sendmail(fromaddr, toaddr, body) server.quit()
accc0ccafc5566a0582cd7acddeba0dfd44f4e9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/accc0ccafc5566a0582cd7acddeba0dfd44f4e9b/alert_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2080, 4793, 16, 358, 4793, 16, 1417, 4672, 1438, 273, 272, 1010, 6673, 18, 55, 14636, 2668, 20278, 18, 14770, 18, 343, 6134, 309, 6369, 10398, 405, 576, 30, 1438, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2080, 4793, 16, 358, 4793, 16, 1417, 4672, 1438, 273, 272, 1010, 6673, 18, 55, 14636, 2668, 20278, 18, 14770, 18, 343, 6134, 309, 6369, 10398, 405, 576, 30, 1438, 1...
setiter = iter(self.set) self.assertEqual(setiter.__length_hint__(), len(self.set))
def test_iteration(self): for v in self.set: self.assert_(v in self.values) setiter = iter(self.set) # note: __length_hint__ is an internal undocumented API, # don't rely on it in your own programs self.assertEqual(setiter.__length_hint__(), len(self.set))
c61af743718846568e96679a352bf2adf5e54b9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/c61af743718846568e96679a352bf2adf5e54b9a/test_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16108, 12, 2890, 4672, 364, 331, 316, 365, 18, 542, 30, 365, 18, 11231, 67, 12, 90, 316, 365, 18, 2372, 13, 444, 2165, 273, 1400, 12, 2890, 18, 542, 13, 468, 4721, 30, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16108, 12, 2890, 4672, 364, 331, 316, 365, 18, 542, 30, 365, 18, 11231, 67, 12, 90, 316, 365, 18, 2372, 13, 444, 2165, 273, 1400, 12, 2890, 18, 542, 13, 468, 4721, 30, 10...
(self._poly - right._poly, \
(selfpoly - rightpoly, \
def _sub_(self, right): selfpoly = self._poly rightpoly = right._poly if self._valbase > right._valbase: selfpoly = selfpoly * self.base_ring().prime_pow(self._valbase - right._valbase) baseval = right._valbase elif self._valbase < right._valbase: rightpoly = rightpoly * self.base_ring().prime_pow(right._valbase - self...
a82509f3832c26b57c6c5acac4996cd7fa79553a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/a82509f3832c26b57c6c5acac4996cd7fa79553a/polynomial_padic_capped_relative_dense.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 67, 12, 2890, 16, 2145, 4672, 365, 16353, 273, 365, 6315, 16353, 2145, 16353, 273, 2145, 6315, 16353, 309, 365, 6315, 1125, 1969, 405, 2145, 6315, 1125, 1969, 30, 365, 16353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1717, 67, 12, 2890, 16, 2145, 4672, 365, 16353, 273, 365, 6315, 16353, 2145, 16353, 273, 2145, 6315, 16353, 309, 365, 6315, 1125, 1969, 405, 2145, 6315, 1125, 1969, 30, 365, 16353, ...
open("/dev/tty", "w").write("lib: self.install_dir = %s\n" % self.install_dir)
def finalize_options(self):
342ad6243e75afa3504736690a6fad2ae03da58b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/342ad6243e75afa3504736690a6fad2ae03da58b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 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, 12409, 67, 2116, 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, -1...
>>>>>>> .merge-right.r4008
def html(self, environ): """ text/html representation of the exception """ return ''
255773b152c67560628a1908478d7fbd32c49d9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/255773b152c67560628a1908478d7fbd32c49d9b/httpexceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 2890, 16, 5473, 4672, 3536, 977, 19, 2620, 4335, 434, 326, 1520, 3536, 327, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 2890, 16, 5473, 4672, 3536, 977, 19, 2620, 4335, 434, 326, 1520, 3536, 327, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
assert_array_equal(gmm.gm.w, dic['w']) assert_array_equal(gmm.gm.mu, dic['mu']) assert_array_equal(gmm.gm.va, dic['va'])
assert_array_equal(gmm.gm.w, dic['w'], DEF_DEC) assert_array_equal(gmm.gm.mu, dic['mu'], DEF_DEC) assert_array_equal(gmm.gm.va, dic['va'], DEF_DEC)
def test_2d_full(self, level = 1): d = 2 k = 3 mode = 'full' dic = load_dataset('full_2d_3k.mat')
76afc91d8ddf202146c1cc1b22949de3110c98d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/76afc91d8ddf202146c1cc1b22949de3110c98d0/test_gmm_em.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22, 72, 67, 2854, 12, 2890, 16, 1801, 273, 404, 4672, 302, 273, 576, 417, 273, 890, 1965, 273, 296, 2854, 11, 11681, 273, 1262, 67, 8682, 2668, 2854, 67, 22, 72, 67, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22, 72, 67, 2854, 12, 2890, 16, 1801, 273, 404, 4672, 302, 273, 576, 417, 273, 890, 1965, 273, 296, 2854, 11, 11681, 273, 1262, 67, 8682, 2668, 2854, 67, 22, 72, 67, 23, ...
"and need investiagtion: %s" % \
"and need investigation: %s" % \
def finishUpdate(self): pklog.debug("finishUpdate()") if self.conffile_prompts: self._backend.message(MESSAGE_CONFIG_FILES_CHANGED, "The following conffile prompts were found " "and need investiagtion: %s" % \ "\n".join(self.conffile_prompts)) # Check for required restarts if os.path.exists("/var/run/reboot-required") ...
cc1bfcfb7c1c86f9aceadeeab36942698d0ddf85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12904/cc1bfcfb7c1c86f9aceadeeab36942698d0ddf85/aptBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 1891, 12, 2890, 4672, 2365, 1330, 18, 4148, 2932, 13749, 1891, 1435, 7923, 309, 365, 18, 3923, 768, 67, 17401, 1092, 30, 365, 6315, 9993, 18, 2150, 12, 8723, 67, 7203, 67, 12669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 1891, 12, 2890, 4672, 2365, 1330, 18, 4148, 2932, 13749, 1891, 1435, 7923, 309, 365, 18, 3923, 768, 67, 17401, 1092, 30, 365, 6315, 9993, 18, 2150, 12, 8723, 67, 7203, 67, 12669, ...
expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name
expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
def _findLib_gcc(name): expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name fdout, ccout = tempfile.mkstemp() os.close(fdout) cmd = 'if type gcc &>/dev/null; then CC=gcc; else CC=cc; fi;' \ '$CC -Wl,-t -o ' + ccout + ' 2>&1 -l' + name try: fdout, outfile = tempfile.mkstemp() os.close(fdout) fd = os.popen(cmd) trace = fd.read(...
19f87553b42882b9e3bd2d7bdb0c6d39e29eb2a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/19f87553b42882b9e3bd2d7bdb0c6d39e29eb2a7/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 5664, 67, 75, 952, 12, 529, 4672, 3065, 273, 436, 11, 15441, 4713, 5153, 87, 5772, 2941, 9, 87, 5834, 15441, 4713, 5153, 87, 65, 4035, 738, 283, 18, 6939, 12, 529, 13, 519...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 5664, 67, 75, 952, 12, 529, 4672, 3065, 273, 436, 11, 15441, 4713, 5153, 87, 5772, 2941, 9, 87, 5834, 15441, 4713, 5153, 87, 65, 4035, 738, 283, 18, 6939, 12, 529, 13, 519...
startNode = result.node(startNodeInfo >> 4)
startNode = result.node((startNodeInfo >> 4) - 1)
def crackEdgeGraph(labelImage, eightConnectedRegions = True, progressHook = None): result = GeoMap(labelImage.size()) cc = crackConnectionImage(labelImage) if eightConnectedRegions: for y in range(1, cc.height()-1): for x in range(1, cc.width()-1): if cc[x,y] == 15: if labelImage[x,y] == labelImage[x-1,y-1]: cc[x,y] ...
a94194260b0ee2a979b184709c2d70b6c499169d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10394/a94194260b0ee2a979b184709c2d70b6c499169d/crackConvert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 6098, 4137, 12, 1925, 2040, 16, 425, 750, 8932, 17344, 273, 1053, 16, 4007, 5394, 273, 599, 4672, 563, 273, 9385, 863, 12, 1925, 2040, 18, 1467, 10756, 225, 4946, 273, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 6098, 4137, 12, 1925, 2040, 16, 425, 750, 8932, 17344, 273, 1053, 16, 4007, 5394, 273, 599, 4672, 563, 273, 9385, 863, 12, 1925, 2040, 18, 1467, 10756, 225, 4946, 273, 276, ...
for option in Option.objects.filter(option_group__id__in = groups.keys(), value__in = vals.keys()): uid = option.unique_id if opts.has_key(uid): opts[uid] = option
for options in all_options: for option in options: if not opts.has_key(option): k, v = split_option_unique_id(option) vals[v] = False groups[k] = False opts[option] = None for option in Option.objects.filter(option_group__id__in = groups.keys(), value__in = vals.keys()): uid = option.unique_id if opts.has_key(uid): op...
def serialize_options(product, selected_options=()): """ Return a list of optiongroups and options for display to the customer. Only returns options that are actually used by members of this product. Return Value: [ { name: 'group name', id: 'group id', items: [{ name: 'opt name', value: 'opt value', price_change: 'op...
ecd1f31cde88383633d2db5c664f185f38d43f32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/ecd1f31cde88383633d2db5c664f185f38d43f32/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 67, 2116, 12, 5896, 16, 3170, 67, 2116, 33, 1435, 4672, 3536, 2000, 279, 666, 434, 1456, 4650, 471, 702, 364, 2562, 358, 326, 6666, 18, 5098, 1135, 702, 716, 854, 6013, 1399, 635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 67, 2116, 12, 5896, 16, 3170, 67, 2116, 33, 1435, 4672, 3536, 2000, 279, 666, 434, 1456, 4650, 471, 702, 364, 2562, 358, 326, 6666, 18, 5098, 1135, 702, 716, 854, 6013, 1399, 635...
cty.c_int, [cty.POINTER(FL_OBJECT), cty.c_int, cty.c_int],
cty.c_int, [cty.POINTER(FL_OBJECT), cty.c_int, cty.c_int],
def fl_set_menu_notitle(ob, off): """ fl_set_menu_notitle(ob, off) -> num. """ retval = _fl_set_menu_notitle(ob, off) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 5414, 67, 902, 1280, 12, 947, 16, 3397, 4672, 3536, 1183, 67, 542, 67, 5414, 67, 902, 1280, 12, 947, 16, 3397, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 5414, 67, 902, 1280, 12, 947, 16, 3397, 4672, 3536, 1183, 67, 542, 67, 5414, 67, 902, 1280, 12, 947, 16, 3397, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, ...
for i in range(1, game.incom+1):
for i in range(game.incom):
def setup(): # prepare to play, set up cosmos w = coord() # Decide how many of everything if choose(): return # frozen game # Prepare the Enterprise game.alldone = game.gamewon = False game.ship = IHE game.state.crew = FULLCREW game.energy = game.inenrg = 5000.0 game.shield = game.inshld = 2500.0 game.shldchg = False ...
ab4d7f5dd82fc30c4db6597dd6dd68b4dc33f98b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ab4d7f5dd82fc30c4db6597dd6dd68b4dc33f98b/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 468, 2911, 358, 6599, 16, 444, 731, 4987, 26719, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, 326, 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, 3875, 13332, 468, 2911, 358, 6599, 16, 444, 731, 4987, 26719, 341, 273, 2745, 1435, 468, 225, 3416, 831, 3661, 4906, 434, 7756, 309, 9876, 13332, 327, 468, 12810, 7920, 468, 7730, 326, 2...
return reduce(__and__, (c.resolve(discodb) for c in self.clauses))
return reduce(__and__, (c.resolve(discodb) for c in self.clauses), Q([]))
def resolve(self, discodb): return reduce(__and__, (c.resolve(discodb) for c in self.clauses))
74e0c4d707533197458aa76d945910bdb8e76a5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/74e0c4d707533197458aa76d945910bdb8e76a5d/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 1015, 1559, 70, 4672, 327, 5459, 12, 972, 464, 972, 16, 261, 71, 18, 10828, 12, 2251, 1559, 70, 13, 364, 276, 316, 365, 18, 830, 9608, 3719, 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, 2245, 12, 2890, 16, 1015, 1559, 70, 4672, 327, 5459, 12, 972, 464, 972, 16, 261, 71, 18, 10828, 12, 2251, 1559, 70, 13, 364, 276, 316, 365, 18, 830, 9608, 3719, 2, -100, -100, -100, ...
'queue', '4000000'
'queue', queue_size
def __enter__(self): if self.is_traffic_shaping: self.platformsettings.ipfw(['delete', self.pipe_set]) if (self.up_bandwidth == '0' and self.down_bandwidth == '0' and self.delay_ms == '0' and self.packet_loss_rate == '0'): return try: upload_pipe = '1' # The IPFW pipe for upload rules. download_pipe = '2' # The...
1578bee647b0c032f643d61f2adf45d5b1d28f27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3776/1578bee647b0c032f643d61f2adf45d5b1d28f27/trafficshaper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2328, 972, 12, 2890, 4672, 309, 365, 18, 291, 67, 19231, 67, 674, 24447, 30, 365, 18, 9898, 4272, 18, 625, 11966, 12, 3292, 3733, 2187, 365, 18, 14772, 67, 542, 5717, 309, 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, 1001, 2328, 972, 12, 2890, 4672, 309, 365, 18, 291, 67, 19231, 67, 674, 24447, 30, 365, 18, 9898, 4272, 18, 625, 11966, 12, 3292, 3733, 2187, 365, 18, 14772, 67, 542, 5717, 309, 261, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 190) else quickfix.DoubleField.__init__(self, 190, 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, 5342, 20, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 5342, 20, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
return command_classes ]
def preloaded_command_classes(): """ Return a list of command classes for the commands which are always loaded on startup, and should always be reinitialized (in this order) when new command objects are needed. @note: currently this includes all loadable builtin commands, but soon we will implement a way for some comm...
0bfd89aabee3dccbcbcc0962bb785519b8dbc386 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/0bfd89aabee3dccbcbcc0962bb785519b8dbc386/builtin_command_loaders.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 4230, 67, 3076, 67, 4701, 13332, 3536, 2000, 279, 666, 434, 1296, 3318, 364, 326, 4364, 1492, 854, 3712, 4203, 603, 11850, 16, 471, 1410, 3712, 506, 283, 13227, 261, 267, 333, 1353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 4230, 67, 3076, 67, 4701, 13332, 3536, 2000, 279, 666, 434, 1296, 3318, 364, 326, 4364, 1492, 854, 3712, 4203, 603, 11850, 16, 471, 1410, 3712, 506, 283, 13227, 261, 267, 333, 1353,...
else:
else:
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta...
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 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, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
dbg ('VSGConf: preparing: %s/%s'%(self.profile, key))
value = None dbg (' VSGConf: preparing: %s/%s'%(self.profile, key))
def __getattr__ (self, key = ""): ret = None
842b5a0207f96131d410a9b20b0b52500aa93aa9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/842b5a0207f96131d410a9b20b0b52500aa93aa9/terminatorconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 261, 2890, 16, 498, 273, 1408, 4672, 325, 273, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 261, 2890, 16, 498, 273, 1408, 4672, 325, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
gx = (x > min & x < max) * gz
gx = (x > min and x < max) * gz
def grad(self, (x, min, max), (gz, )): gx = (x > min & x < max) * gz return gx, None, None
1f1f569be66d8a1dc0d36c06ecf2438f0d451630 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/1f1f569be66d8a1dc0d36c06ecf2438f0d451630/basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 2890, 16, 261, 92, 16, 1131, 16, 943, 3631, 261, 9764, 16, 262, 4672, 314, 92, 273, 261, 92, 405, 1131, 471, 619, 411, 943, 13, 380, 14136, 327, 314, 92, 16, 599, 16, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 2890, 16, 261, 92, 16, 1131, 16, 943, 3631, 261, 9764, 16, 262, 4672, 314, 92, 273, 261, 92, 405, 1131, 471, 619, 411, 943, 13, 380, 14136, 327, 314, 92, 16, 599, 16, 599...
def grid_function(f, xvals, yvals, typecode=Numeric.Float32):
def grid_function(f, xvals, yvals, typecode=None, ufunc=0):
def grid_function(f, xvals, yvals, typecode=Numeric.Float32): """Evaluate and tabulate a function on a grid. 'xvals' and 'yvals' should be 1-D arrays listing the values of x and y at which 'f' should be tabulated. 'f' should be a function taking two floating point arguments. The return value is a matrix M where 'M[i...
a28e91f7dbfb7e62d59f6ace13b33f3dd9d798d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9569/a28e91f7dbfb7e62d59f6ace13b33f3dd9d798d4/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3068, 67, 915, 12, 74, 16, 619, 4524, 16, 677, 4524, 16, 618, 710, 33, 7036, 16, 582, 644, 33, 20, 4672, 3536, 15369, 471, 3246, 6243, 279, 445, 603, 279, 3068, 18, 225, 296, 92, 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, 3068, 67, 915, 12, 74, 16, 619, 4524, 16, 677, 4524, 16, 618, 710, 33, 7036, 16, 582, 644, 33, 20, 4672, 3536, 15369, 471, 3246, 6243, 279, 445, 603, 279, 3068, 18, 225, 296, 92, 4...
self.RefreshBufferState()
wx.CallAfter(self.RefreshBufferState)
def OnFileSelectedChanged(self, event): selected = event.GetSelection() # At init selected = -1 if selected >= 0: window = self.FileOpened.GetPage(selected) if window: self.Manager.ChangeCurrentNode(window.GetIndex()) self.RefreshBufferState() self.RefreshStatusBar() self.RefreshProfileMenu() event.Skip()
27545b161de41bdbf6f6bbabef24ee9751395880 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/27545b161de41bdbf6f6bbabef24ee9751395880/objdictedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 812, 7416, 5033, 12, 2890, 16, 871, 4672, 3170, 273, 871, 18, 967, 6233, 1435, 468, 2380, 1208, 3170, 273, 300, 21, 309, 3170, 1545, 374, 30, 2742, 273, 365, 18, 812, 23115, 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, 2755, 812, 7416, 5033, 12, 2890, 16, 871, 4672, 3170, 273, 871, 18, 967, 6233, 1435, 468, 2380, 1208, 3170, 273, 300, 21, 309, 3170, 1545, 374, 30, 2742, 273, 365, 18, 812, 23115, 18, ...
sorted(first_elts(expect.values())))
first_elts(sorted(expect.values())))
def test_strict(self): for orig, expect in parse_strict_test_cases: # Test basic parsing d = do_test(orig, "GET") self.assertEqual(d, expect, "Error parsing %s" % repr(orig)) d = do_test(orig, "POST") self.assertEqual(d, expect, "Error parsing %s" % repr(orig))
03d73ca88d113cfdf2c257fc39b688470aabf1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/03d73ca88d113cfdf2c257fc39b688470aabf1f2/test_cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13948, 12, 2890, 4672, 364, 1647, 16, 4489, 316, 1109, 67, 13948, 67, 3813, 67, 22186, 30, 468, 7766, 5337, 5811, 302, 273, 741, 67, 3813, 12, 4949, 16, 315, 3264, 7923, 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, 1842, 67, 13948, 12, 2890, 4672, 364, 1647, 16, 4489, 316, 1109, 67, 13948, 67, 3813, 67, 22186, 30, 468, 7766, 5337, 5811, 302, 273, 741, 67, 3813, 12, 4949, 16, 315, 3264, 7923, 365,...
'weight' : product_uos_qty / res['uos_coeff'] * res['weight']
'th_weight' : product_uos_qty / res['uos_coeff'] * res['weight']
def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None): if not product_id: return {'value': {'product_uom': product_uos, 'product_uom_qty': product_uos_qty}, 'domain':{}} res = self.pool.get('product.product').read(cr, uid, [product_id], ['uom_id', 'uos_id', 'uos_coeff', 'weight'])[0] value...
6a01b2a5073dde41d3a0932a113c38a273d96f73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/6a01b2a5073dde41d3a0932a113c38a273d96f73/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 582, 538, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 89, 538, 16, 3017, 67, 89, 538, 67, 85, 4098, 33, 20, 16, 3017, 67, 350, 33, 7036, 4672, 309, 486, 3017, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 582, 538, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 89, 538, 16, 3017, 67, 89, 538, 67, 85, 4098, 33, 20, 16, 3017, 67, 350, 33, 7036, 4672, 309, 486, 3017, ...
str = chr(idaapi.get_byte(ea)) + \
tmp = chr(idaapi.get_byte(ea)) + \
def GetDouble(ea): """ Get value of a floating point number (8 bytes) @param ea: linear address @return: double """ str = chr(idaapi.get_byte(ea)) + \ chr(idaapi.get_byte(ea+1)) + \ chr(idaapi.get_byte(ea+2)) + \ chr(idaapi.get_byte(ea+3)) + \ chr(idaapi.get_byte(ea+4)) + \ chr(idaapi.get_byte(ea+5)) + \ chr(idaapi.g...
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 5265, 12, 24852, 4672, 3536, 968, 460, 434, 279, 13861, 1634, 1300, 261, 28, 1731, 13, 225, 632, 891, 24164, 30, 9103, 1758, 225, 632, 2463, 30, 1645, 3536, 1853, 273, 4513, 12, 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, 968, 5265, 12, 24852, 4672, 3536, 968, 460, 434, 279, 13861, 1634, 1300, 261, 28, 1731, 13, 225, 632, 891, 24164, 30, 9103, 1758, 225, 632, 2463, 30, 1645, 3536, 1853, 273, 4513, 12, 3...
self.selectAllAction.setIconSet(QIconSet(self.image19))
self.selectAllAction.setIconSet(QIconSet(self.image13))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
def execute(self, dir = None, iterations=1, args = None):
def run_once(self, dir = None, args = None):
def execute(self, dir = None, iterations=1, args = None): self.keyval = open(os.path.join(self.resultsdir, 'keyval'), 'w') if not dir: dir = self.tmpdir os.chdir(dir) if not args: args = '-a' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): output = utils.system_output('%s/src/current...
548562c1efd77e9f77ad94c8f542db3581385dc3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/548562c1efd77e9f77ad94c8f542db3581385dc3/iozone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1577, 273, 599, 16, 833, 273, 599, 4672, 365, 18, 856, 1125, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 4717, 1214, 16, 296, 856, 1125, 19899,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1577, 273, 599, 16, 833, 273, 599, 4672, 365, 18, 856, 1125, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 4717, 1214, 16, 296, 856, 1125, 19899,...
sig1 = sqrt(sum([ (S1[k]-mu1)^2 for k in range(n) ])) sig2 = sqrt(sum([ (S2[k]-mu2)^2 for k in range(n) ]))
sig1 = sqrt(sum([ (S1[k]-mu1)**2 for k in range(n) ])) sig2 = sqrt(sum([ (S2[k]-mu2)**2 for k in range(n) ]))
def translation_correlations(X1,X2): """ The sequence of correlations of the sequence X1 with the cyclic translations of the sequence X2. """ n = len(X1) if n != len(X2): raise ValueError, "Arguments must be of the same length." # Compute the mean value of each sequence: mu1 = sum(X1)/n mu2 = sum(X2)/n # Compute the ...
7ea31482358623b11403f05e3446fa7e23d5e5a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/7ea31482358623b11403f05e3446fa7e23d5e5a1/string_ops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4794, 67, 3850, 15018, 12, 60, 21, 16, 60, 22, 4672, 3536, 1021, 3102, 434, 1858, 15018, 434, 326, 3102, 1139, 21, 598, 326, 30383, 7863, 434, 326, 3102, 1139, 22, 18, 3536, 290, 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, 4794, 67, 3850, 15018, 12, 60, 21, 16, 60, 22, 4672, 3536, 1021, 3102, 434, 1858, 15018, 434, 326, 3102, 1139, 21, 598, 326, 30383, 7863, 434, 326, 3102, 1139, 22, 18, 3536, 290, 273, ...
self._addkey(key, (pos, siz))
def __setitem__(self, key, val): if not type(key) == type('') == type(val): raise TypeError, "keys and values must be strings" if not self._index.has_key(key): (pos, siz) = self._addval(val) self._addkey(key, (pos, siz)) else: pos, siz = self._index[key] oldblocks = (siz + _BLOCKSIZE - 1) / _BLOCKSIZE newblocks = (len(...
4f34386761f67b302752d6db8fe6861c497e99f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4f34386761f67b302752d6db8fe6861c497e99f6/dumbdbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 1244, 4672, 309, 486, 618, 12, 856, 13, 422, 618, 2668, 6134, 422, 618, 12, 1125, 4672, 1002, 3580, 16, 315, 2452, 471, 924, 1297, 506, 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, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 1244, 4672, 309, 486, 618, 12, 856, 13, 422, 618, 2668, 6134, 422, 618, 12, 1125, 4672, 1002, 3580, 16, 315, 2452, 471, 924, 1297, 506, 2...
type(self.dsage_server.get_jobs_by_username('yqiang')),
type(self.dsage_server.get_jobs_by_username('yqiang', 'new')),
def testget_jobs_by_username(self): self.assertEquals( type(self.dsage_server.get_jobs_by_username('yqiang')), list) self.assertEquals( len(self.dsage_server.get_jobs_by_username('test')), 0) job = expand_job(self.dsage_server.get_job()) job.username = 'testing123' job.code = '' jdict = self.dsage_server.submit_job(jo...
c54c403d67d31ac32abe9fc05ec4f6e32ce3a8a0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c54c403d67d31ac32abe9fc05ec4f6e32ce3a8a0/test_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 588, 67, 10088, 67, 1637, 67, 5053, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 618, 12, 2890, 18, 2377, 410, 67, 3567, 18, 588, 67, 10088, 67, 1637, 67, 5053, 2668, 93, 85, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 10088, 67, 1637, 67, 5053, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 618, 12, 2890, 18, 2377, 410, 67, 3567, 18, 588, 67, 10088, 67, 1637, 67, 5053, 2668, 93, 85, 77, ...
sage: G<K False sage: G>K False
sage: G<K False sage: G>K False
def __cmp__(self, other): r""" Compare self and other. If self and other are in a common ambient group, then self = other precisely if self is contained in other. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: PermutationGroup_subgroup(H,list(gens)) Subgroup of D...
895e1ae73086b953ed8633605c018ded03126ea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/895e1ae73086b953ed8633605c018ded03126ea2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 365, 471, 1308, 18, 971, 365, 471, 1308, 854, 316, 279, 2975, 13232, 1979, 1041, 16, 1508, 365, 273, 1308, 13382, 291, 2357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 365, 471, 1308, 18, 971, 365, 471, 1308, 854, 316, 279, 2975, 13232, 1979, 1041, 16, 1508, 365, 273, 1308, 13382, 291, 2357, ...
if context['sheet_id'] != vals['sheet_id']:
if context['sheet_id'] != self.browse(cr, uid, res, context=context).sheet_id.id:
def create(self, cr, uid, vals, context={}): if 'sheet_id' in context: ts = self.pool.get('hr_timesheet_sheet.sheet').browse(cr, uid, context['sheet_id']) if ts.state not in ('draft', 'new'): raise osv.except_osv(_('Error !'), _('You cannot modify an entry in a confirmed timesheet !')) res = super(hr_attendance,self).c...
61106b0fffea06e767d75ce5f048f81ee30de908 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/61106b0fffea06e767d75ce5f048f81ee30de908/hr_timesheet_sheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 309, 296, 8118, 67, 350, 11, 316, 819, 30, 3742, 273, 365, 18, 6011, 18, 588, 2668, 7256, 67, 8293, 2963, 67, 8118,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 309, 296, 8118, 67, 350, 11, 316, 819, 30, 3742, 273, 365, 18, 6011, 18, 588, 2668, 7256, 67, 8293, 2963, 67, 8118,...
if template_string in template_defaults.keys(): template_string = template_defaults[template_string] edit_template = Template(template_string) def edit(obj, bg=False, editor=None):
if not(isinstance(template_string,Template)): template_string = Template(template_string) fields = set(template_fields(template_string)) if not(fields <= set(['file','line']) and ('file' in fields)): raise ValueError, "Only ${file} and ${line} are allowed as template variables, and ${file} must occur." edit_template = ...
def set_edit_template(template_string): r""" Sets default edit template string. It should reference ${file} and ${line}. This routine normally needs to be called prior to using 'edit'. However, if the editor set in the shell variable EDITOR is known, then the system will substitute an appropriate template for you. See...
b1acc3d600239d835d94480f5c45e8e7eca24f8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/b1acc3d600239d835d94480f5c45e8e7eca24f8e/edit_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4619, 67, 3202, 12, 3202, 67, 1080, 4672, 436, 8395, 11511, 805, 3874, 1542, 533, 18, 225, 2597, 1410, 2114, 3531, 768, 97, 471, 3531, 1369, 5496, 1220, 12245, 15849, 4260, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4619, 67, 3202, 12, 3202, 67, 1080, 4672, 436, 8395, 11511, 805, 3874, 1542, 533, 18, 225, 2597, 1410, 2114, 3531, 768, 97, 471, 3531, 1369, 5496, 1220, 12245, 15849, 4260, 358,...
x3 = cosi0*sinj1 y3 = sini0*sinj1 z3 = cosj1
x3 = cosi1*sinj0 y3 = sini1*sinj0 z3 = cosj0
def test_poly(k): draw = [ [ 1, 1, 1, 1 ], [ 1, 0, 1, 0 ], [ 0, 1, 0, 1 ], [ 1, 1, 0, 0 ] ] pladv(0) plvpor(0.0, 1.0, 0.0, 0.9) plwind(-1.0, 1.0, -0.9, 1.1) plcol0(1) plw3d(1.0, 1.0, 1.0, -1.0, 1.0, -1.0, 1.0, -1.0, 1.0, alt[k], az[k]) plbox3("bnstu", "x axis", 0.0, 0, "bnstu", "y axis", 0.0, 0, "bcdmnstuv", "z axis"...
9ba41e39b693f6c6607abbcd1c6b6b3dbb7c2713 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/9ba41e39b693f6c6607abbcd1c6b6b3dbb7c2713/xw18.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16353, 12, 79, 4672, 225, 3724, 273, 306, 306, 404, 16, 404, 16, 404, 16, 404, 308, 16, 306, 404, 16, 374, 16, 404, 16, 374, 308, 16, 306, 374, 16, 404, 16, 374, 16, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16353, 12, 79, 4672, 225, 3724, 273, 306, 306, 404, 16, 404, 16, 404, 16, 404, 308, 16, 306, 404, 16, 374, 16, 404, 16, 374, 308, 16, 306, 374, 16, 404, 16, 374, 16, 40...
print 'Found file %s, Compiling...' % file
if p.parser.verbose: p.parser.log('Found file %s, Compiling...' % file)
def p_instanceDeclaration(p): """instanceDeclaration : INSTANCE OF className '{' valueInitializerList '}' ';' | INSTANCE OF className alias '{' valueInitializerList '}' ';' | qualifierList INSTANCE OF className '{' valueInitializerList '}' ';' | qualifierList INSTANCE OF className alias '{' valueInitializerList '}' ';'...
e45c009f365830e687525a374840aeb320395b29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10648/e45c009f365830e687525a374840aeb320395b29/mof_compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1336, 6094, 12, 84, 4672, 3536, 1336, 6094, 294, 6937, 15932, 2658, 9790, 460, 14729, 682, 9571, 7554, 571, 6937, 15932, 2658, 2308, 9790, 460, 14729, 682, 9571, 7554, 571, 12327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1336, 6094, 12, 84, 4672, 3536, 1336, 6094, 294, 6937, 15932, 2658, 9790, 460, 14729, 682, 9571, 7554, 571, 6937, 15932, 2658, 2308, 9790, 460, 14729, 682, 9571, 7554, 571, 12327,...
maxCost = self._sliderCosts[-1] * p for i, c in enumerate(self._sliderCosts): if c > maxCost: self.displayLevel(levelIndex = max(0, i-1)) break
self.displayLevel(cost = self._sliderCosts[-1] * p)
def _levelSliderChanged(self, levelIndex): if self._sliderMode == 0: self.displayLevel(levelIndex = levelIndex) return p = float(levelIndex) / self._levelSlider.maxValue() if self._sliderCosts: maxCost = self._sliderCosts[-1] * p for i, c in enumerate(self._sliderCosts): if c > maxCost: self.displayLevel(levelIndex = m...
5ecb73c072d605a5aa7db685f7b7c1c885270a57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10394/5ecb73c072d605a5aa7db685f7b7c1c885270a57/workspace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2815, 21824, 5033, 12, 2890, 16, 1801, 1016, 4672, 309, 365, 6315, 28372, 2309, 422, 374, 30, 365, 18, 5417, 2355, 12, 2815, 1016, 273, 1801, 1016, 13, 327, 293, 273, 1431, 12, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2815, 21824, 5033, 12, 2890, 16, 1801, 1016, 4672, 309, 365, 6315, 28372, 2309, 422, 374, 30, 365, 18, 5417, 2355, 12, 2815, 1016, 273, 1801, 1016, 13, 327, 293, 273, 1431, 12, 28...
The given path is first normalized (e.g. a possible trailing path separator removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. If the path contains no extension, an empty string is returned for it. Examples (assuming a UNIX environment):
The given path is first normalized (e.g. a possible trailing path separator removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. If the path contains no extension, an empty string is returned for it. Examples:
def split_extension(self, path): """Splits the extension from the given path. The given path is first normalized (e.g. a possible trailing path separator removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. If the path contains no extension, an empty string is ret...
a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 6447, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 2710, 628, 326, 864, 589, 18, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 18, 279, 3323, 7341, 589, 4182, 3723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 6447, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 2710, 628, 326, 864, 589, 18, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 18, 279, 3323, 7341, 589, 4182, 3723, ...
result.append(xpaths(prefix,x,suffix)); return(result);
result.append(xpaths(prefix,x,suffix)) return(result)
def xpaths(prefix,base,suffix): if (type(base) == str): return(prefix + base + suffix); result = []; for x in base: result.append(xpaths(prefix,x,suffix)); return(result);
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 4481, 12, 3239, 16, 1969, 16, 8477, 4672, 309, 261, 723, 12, 1969, 13, 422, 609, 4672, 327, 12, 3239, 397, 1026, 397, 3758, 1769, 563, 273, 5378, 31, 364, 619, 316, 1026, 30, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 619, 4481, 12, 3239, 16, 1969, 16, 8477, 4672, 309, 261, 723, 12, 1969, 13, 422, 609, 4672, 327, 12, 3239, 397, 1026, 397, 3758, 1769, 563, 273, 5378, 31, 364, 619, 316, 1026, 30, 56...
include_dirs=['glib'],
include_dirs=['glib','gi'],
def install_templates(self): self.install_template('pygobject-2.0.pc.in', os.path.join(self.install_dir, 'lib', 'pkgconfig'))
239ff961778e4e1587404d8a70dfbe8630ab0623 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/239ff961778e4e1587404d8a70dfbe8630ab0623/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 8502, 12, 2890, 4672, 365, 18, 5425, 67, 3202, 2668, 2074, 75, 1612, 17, 22, 18, 20, 18, 2436, 18, 267, 2187, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5425, 67, 1214, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 8502, 12, 2890, 4672, 365, 18, 5425, 67, 3202, 2668, 2074, 75, 1612, 17, 22, 18, 20, 18, 2436, 18, 267, 2187, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5425, 67, 1214, 16, 2...
args = [jast.StringConstant(self.getclassname( self.name+'$'+self.pyinner.name)),
args = [jast.GetStaticAttribute(self.getclassname( self.name+'.'+self.pyinner.name), "class"),
def dumpMain(self): meths = [] if self.javamain: code = [] newargs = jast.Identifier("newargs") code.append(jast.Declare("String[]", newargs, jast.NewArray("String", ["args.length+1"]))) code.append(jast.Set(jast.Identifier("newargs[0]"), jast.StringConstant(self.name)))
7ab2e35d544d7a66c78cdb7762c50fc1bf7c8a47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/7ab2e35d544d7a66c78cdb7762c50fc1bf7c8a47/PythonModule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 6376, 12, 2890, 4672, 7917, 87, 273, 5378, 309, 365, 18, 19207, 301, 530, 30, 981, 273, 5378, 394, 1968, 273, 525, 689, 18, 3004, 2932, 2704, 1968, 7923, 981, 18, 6923, 12, 78, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 6376, 12, 2890, 4672, 7917, 87, 273, 5378, 309, 365, 18, 19207, 301, 530, 30, 981, 273, 5378, 394, 1968, 273, 525, 689, 18, 3004, 2932, 2704, 1968, 7923, 981, 18, 6923, 12, 78, ...
l = len(tn)
def chunk(text, csize=52): l = len(text) i = 0 while i < l: yield text[i:i+csize] i += csize
fd4dd91a410121fda4a67b8d440e4b4113f74e29 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/fd4dd91a410121fda4a67b8d440e4b4113f74e29/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2441, 12, 955, 16, 276, 1467, 33, 9401, 4672, 328, 273, 562, 12, 955, 13, 277, 273, 374, 1323, 277, 411, 328, 30, 2824, 977, 63, 77, 30, 77, 15, 71, 1467, 65, 277, 1011, 276, 1467,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2441, 12, 955, 16, 276, 1467, 33, 9401, 4672, 328, 273, 562, 12, 955, 13, 277, 273, 374, 1323, 277, 411, 328, 30, 2824, 977, 63, 77, 30, 77, 15, 71, 1467, 65, 277, 1011, 276, 1467,...
sleeptime = (start + sleeptime) - time.time()
now = nonportable.getruntime() sleeptime = finish - now
def sleep(seconds): """ <Purpose> Allow the current event to pause execution (similar to time.sleep()). This function will not return early for any reason <Arguments> seconds: The number of seconds to sleep. This can be a floating point value <Exceptions> None. <Side Effects> None. <Returns> None. """ restrictio...
fd28dd314d8b713f9b598463e78674bfcc976552 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/fd28dd314d8b713f9b598463e78674bfcc976552/emultimer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5329, 12, 7572, 4672, 3536, 411, 10262, 4150, 34, 7852, 326, 783, 871, 358, 11722, 4588, 261, 22985, 358, 813, 18, 19607, 1435, 2934, 1220, 445, 903, 486, 327, 11646, 364, 1281, 3971, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5329, 12, 7572, 4672, 3536, 411, 10262, 4150, 34, 7852, 326, 783, 871, 358, 11722, 4588, 261, 22985, 358, 813, 18, 19607, 1435, 2934, 1220, 445, 903, 486, 327, 11646, 364, 1281, 3971, 22...
if stderr != None:
if stderr is not None:
def communicate(self, input=None): """Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be a string to be sent to the child process, or None, if no data should be sent to the child.
95702de0f98da1d3b802ca9a49a105d914f43a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/95702de0f98da1d3b802ca9a49a105d914f43a51/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15541, 12, 2890, 16, 810, 33, 7036, 4672, 3536, 2465, 621, 598, 1207, 30, 2479, 501, 358, 8801, 18, 225, 2720, 501, 628, 3909, 471, 4514, 16, 3180, 679, 17, 792, 17, 768, 353, 8675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15541, 12, 2890, 16, 810, 33, 7036, 4672, 3536, 2465, 621, 598, 1207, 30, 2479, 501, 358, 8801, 18, 225, 2720, 501, 628, 3909, 471, 4514, 16, 3180, 679, 17, 792, 17, 768, 353, 8675, ...
build_order = ".i .mc .rc .cpp".split() decorated = [(build_order.index(ext.lower()), obj, (src, ext)) for obj, (src, ext) in build.items()] decorated.sort() items = [item[1:] for item in decorated] class OnlyItems: def __init__(self, items): self._items = items def items(self): return self._items build = OnlyItems(i...
if sys.hexversion < 0x02040000: build_order = ".i .mc .rc .cpp".split() decorated = [(build_order.index(ext.lower()), obj, (src, ext)) for obj, (src, ext) in build.items()] decorated.sort() items = [item[1:] for item in decorated] class OnlyItems: def __init__(self, items): self._items = items def items(self): return...
def _setup_compile(self, *args): macros, objects, extra, pp_opts, build = \ msvccompiler.MSVCCompiler._setup_compile(self, *args) build_order = ".i .mc .rc .cpp".split() decorated = [(build_order.index(ext.lower()), obj, (src, ext)) for obj, (src, ext) in build.items()] decorated.sort() items = [item[1:] for item in de...
8a42777317b5e50f0a69562198b01c391bb0d4a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/8a42777317b5e50f0a69562198b01c391bb0d4a5/setup_win32all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 11100, 12, 2890, 16, 380, 1968, 4672, 24302, 16, 2184, 16, 2870, 16, 8228, 67, 4952, 16, 1361, 273, 521, 4086, 4227, 9576, 18, 3537, 13464, 9213, 6315, 8401, 67, 11100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8401, 67, 11100, 12, 2890, 16, 380, 1968, 4672, 24302, 16, 2184, 16, 2870, 16, 8228, 67, 4952, 16, 1361, 273, 521, 4086, 4227, 9576, 18, 3537, 13464, 9213, 6315, 8401, 67, 11100, ...
module = apache.import_module(module_name, req.get_config(), [path])
try: module = apache.import_module(module_name, req.get_config(), [path]) except ImportError: func_path = module_name module_name = "index" module = apache.import_module(module_name, req.get_config(), [path])
def handler(req): req.allow_methods(["GET", "POST"]) if req.method not in ["GET", "POST"]: raise apache.SERVER_RETURN, apache.HTTP_METHOD_NOT_ALLOWED func_path = "" if req.path_info: func_path = req.path_info[1:] # skip first / func_path = func_path.replace("/", ".") if func_path[-1:] == ".": func_path = func_path[:-...
bbd4b7aa1f4786832182974e59c1dd4827ca363f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/bbd4b7aa1f4786832182974e59c1dd4827ca363f/publisher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 3658, 4672, 225, 1111, 18, 5965, 67, 5163, 3816, 6, 3264, 3113, 315, 3798, 6, 5717, 309, 1111, 18, 2039, 486, 316, 8247, 3264, 3113, 315, 3798, 11929, 30, 1002, 12291, 18, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 3658, 4672, 225, 1111, 18, 5965, 67, 5163, 3816, 6, 3264, 3113, 315, 3798, 6, 5717, 309, 1111, 18, 2039, 486, 316, 8247, 3264, 3113, 315, 3798, 11929, 30, 1002, 12291, 18, 43...
missingModels = []
def __call__(self, examples, weight): newdata = orange.ExampleTable(orange.Domain([attr for attr in examples.domain if attr != self.attr] + [self.attr]), examples) return self.model(newdata, weight)
1335cc7edbc61134926d522c044ceb1faf80f567 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1335cc7edbc61134926d522c044ceb1faf80f567/OWImpute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 4672, 394, 892, 273, 578, 726, 18, 10908, 1388, 12, 280, 726, 18, 3748, 3816, 1747, 364, 1604, 316, 10991, 18, 4308, 309, 1604, 480, 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, 1991, 972, 12, 2890, 16, 10991, 16, 3119, 4672, 394, 892, 273, 578, 726, 18, 10908, 1388, 12, 280, 726, 18, 3748, 3816, 1747, 364, 1604, 316, 10991, 18, 4308, 309, 1604, 480, 365...