rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
t = doCplxAction(req, doctype, categ, RN, apptype, action, email_user_pattern, id_user, id_user_remove, validate, id_user_val, msg_subject, msg_body, ln)
t = doCplxAction(req, doctype, categ, RN, apptype, action, email_user_pattern, id_user, id_user_remove, validate, id_user_val, msg_subject, msg_body, reply, commentId, ln)
def index(req,c=CFG_SITE_NAME,ln=CFG_SITE_LANG,doctype="",categ="",RN="",send="",flow="",apptype="", action="", email_user_pattern="", id_user="", id_user_remove="", validate="", id_user_val="", msg_subject="", msg_body="", reply="", commentId=""): global uid ln = wash_language(ln) categ = wash_url_argument(categ, 'st...
9a6aca850f8b73e7dbc0400a16f767a77530b74f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9a6aca850f8b73e7dbc0400a16f767a77530b74f/publiline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 3658, 16, 71, 33, 19727, 67, 20609, 67, 1985, 16, 2370, 33, 19727, 67, 20609, 67, 10571, 16, 2896, 12387, 1546, 3113, 71, 1287, 1546, 3113, 54, 50, 1546, 3113, 4661, 1546, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 3658, 16, 71, 33, 19727, 67, 20609, 67, 1985, 16, 2370, 33, 19727, 67, 20609, 67, 10571, 16, 2896, 12387, 1546, 3113, 71, 1287, 1546, 3113, 54, 50, 1546, 3113, 4661, 1546, 311...
tokenize(open(sys.argv[-1]).readline)
if len(sys.argv) > 1: tokenize(open(sys.argv[1]).readline) else: tokenize(syss.tdin.readline)
def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: ...
de65527e4b0925692f0d75f388116b7958a390bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/de65527e4b0925692f0d75f388116b7958a390bb/tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 896, 1369, 16, 1147, 73, 2045, 33, 1188, 2316, 4672, 328, 2107, 273, 22146, 298, 90, 273, 17545, 5957, 273, 374, 508, 7549, 16, 818, 7549, 273, 533, 18, 26054, 397, 2070, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 896, 1369, 16, 1147, 73, 2045, 33, 1188, 2316, 4672, 328, 2107, 273, 22146, 298, 90, 273, 17545, 5957, 273, 374, 508, 7549, 16, 818, 7549, 273, 533, 18, 26054, 397, 2070, 21...
dst_ts = None
dst_ds = None
def Usage(): print("""
e4865e278fea9a0aad86822c559a66d04d700491 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/e4865e278fea9a0aad86822c559a66d04d700491/gdal_proximity.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,...
self.set_presence(pyxmpp.Presence(priotity=self.settings["priority"]))
self.set_presence(pyxmpp.Presence(priority=self.settings["priority"]))
def session_started(self,stream): self.cjc.stream.set_presence_handler("error",self.presence_error) self.cjc.stream.set_presence_handler(None,self.presence_available) self.cjc.stream.set_presence_handler("unavailable",self.presence_unavailable) self.set_presence(pyxmpp.Presence(priotity=self.settings["priority"]))
0f6c44ece34faa424364d97ce1e2e636ad49dd00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/0f6c44ece34faa424364d97ce1e2e636ad49dd00/presence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1339, 67, 14561, 12, 2890, 16, 3256, 4672, 365, 18, 71, 78, 71, 18, 3256, 18, 542, 67, 21731, 67, 4176, 2932, 1636, 3113, 2890, 18, 21731, 67, 1636, 13, 365, 18, 71, 78, 71, 18, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1339, 67, 14561, 12, 2890, 16, 3256, 4672, 365, 18, 71, 78, 71, 18, 3256, 18, 542, 67, 21731, 67, 4176, 2932, 1636, 3113, 2890, 18, 21731, 67, 1636, 13, 365, 18, 71, 78, 71, 18, 32...
Return a list of languages and base languages - as they are specified in the request, normalizing to lower case. """
Return a list of languages and base languages - as they are specified in the request, normalizing to lower case. """
def browserLanguages(request): """ Return the accepted languages as set in the user browser. Parse the HTTP headers and extract the accepted languages, according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 Return a list of languages and base languages - as they are specified in the request, norm...
7e24d43853684fff4e8344c2d07bb51908c229c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/7e24d43853684fff4e8344c2d07bb51908c229c3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4748, 12912, 12, 2293, 4672, 3536, 2000, 326, 8494, 8191, 487, 444, 316, 326, 729, 4748, 18, 225, 2884, 326, 2239, 1607, 471, 2608, 326, 8494, 8191, 16, 4888, 358, 1062, 2207, 5591, 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, 4748, 12912, 12, 2293, 4672, 3536, 2000, 326, 8494, 8191, 487, 444, 316, 326, 729, 4748, 18, 225, 2884, 326, 2239, 1607, 471, 2608, 326, 8494, 8191, 16, 4888, 358, 1062, 2207, 5591, 18, ...
if not self._validID():
if self._new:
def _saveDB(self): """Overloaded - we dont have nextval() in mysql""" # We're a "fresh" copy now self._updated = time.time() if not self._validID(): operation = 'INSERT' self._resetID() # Ie. get a new one else: operation = 'UPDATE' (sql, fields) = self._prepareSQL(operation) values = [] for field in fields: value = ge...
9c470f56174d8a16e2dbc1109fe08bb0bf6a4131 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1051/9c470f56174d8a16e2dbc1109fe08bb0bf6a4131/forgetSQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 2290, 12, 2890, 4672, 3536, 4851, 4230, 300, 732, 14046, 1240, 1024, 1125, 1435, 316, 7219, 8395, 468, 1660, 4565, 279, 315, 74, 1955, 6, 1610, 2037, 365, 6315, 7007, 273, 813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5688, 2290, 12, 2890, 4672, 3536, 4851, 4230, 300, 732, 14046, 1240, 1024, 1125, 1435, 316, 7219, 8395, 468, 1660, 4565, 279, 315, 74, 1955, 6, 1610, 2037, 365, 6315, 7007, 273, 813...
def set_proxy(self, proxy): self.__proxy = proxy self.type, self.__r_type = splittype(self.__proxy) self.host, XXX = splithost(self.__r_type) self.host = unquote(self.host)
def set_proxy(self, host, type): self.host, self.type = host, type
def set_proxy(self, proxy): self.__proxy = proxy # XXX this code is based on urllib, but it doesn't seem # correct. specifically, if the proxy has a port number then # splittype will return the hostname as the type and the port # will be include with everything else self.type, self.__r_type = splittype(self.__proxy) s...
8a18e99008c28156a7ba701ca8d6824a50fb0a9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8a18e99008c28156a7ba701ca8d6824a50fb0a9e/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5656, 12, 2890, 16, 2889, 4672, 365, 16186, 5656, 273, 2889, 468, 11329, 333, 981, 353, 2511, 603, 11527, 16, 1496, 518, 3302, 1404, 19264, 468, 3434, 18, 225, 21195, 16, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5656, 12, 2890, 16, 2889, 4672, 365, 16186, 5656, 273, 2889, 468, 11329, 333, 981, 353, 2511, 603, 11527, 16, 1496, 518, 3302, 1404, 19264, 468, 3434, 18, 225, 21195, 16, 309, ...
if namespaceURI != self.reserved_ns[prefix]:
if namespaceURI == self.reserved_ns[prefix]: qualifiedName = '%s:%s' %(prefix,localName) elif namespaceURI is localName is None: self.node = self._dom.createDocument(None,None,None) return else:
def createDocument(self, namespaceURI, localName, doctype=None): prefix = self._soap_env_prefix if namespaceURI != self.reserved_ns[prefix]: raise KeyError, 'only support creation of document in %s' %self.reserved_ns[prefix] qualifiedName = '%s:%s' %(prefix,localName)
563b43470640fd73edf7888a87724ecd47ebb652 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/563b43470640fd73edf7888a87724ecd47ebb652/Utility.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27569, 12, 2890, 16, 19421, 16, 11927, 16, 24909, 33, 7036, 4672, 1633, 273, 365, 6315, 19215, 67, 3074, 67, 3239, 225, 309, 19421, 422, 365, 18, 18898, 67, 2387, 63, 3239, 14542, 24133,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27569, 12, 2890, 16, 19421, 16, 11927, 16, 24909, 33, 7036, 4672, 1633, 273, 365, 6315, 19215, 67, 3074, 67, 3239, 225, 309, 19421, 422, 365, 18, 18898, 67, 2387, 63, 3239, 14542, 24133,...
self.assertEqual(sys.getrefcount(child), refcount_before[i]-1)
self.assertEqual(sys.getrefcount(child), 4)
def testParentDestructorMultipleChildren(self): '''Delete parent object should invalidate all children''' parent = ObjectType() children = [ObjectType(parent) for _ in range(10)]
396c6b7ea7f774c60a44b36617bf7a767c208d59 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13343/396c6b7ea7f774c60a44b36617bf7a767c208d59/ownership_delete_parent_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3054, 6305, 8813, 280, 8438, 4212, 12, 2890, 4672, 9163, 2613, 982, 733, 1410, 11587, 777, 2325, 26418, 982, 273, 21338, 1435, 2325, 273, 306, 17610, 12, 2938, 13, 364, 389, 316, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3054, 6305, 8813, 280, 8438, 4212, 12, 2890, 4672, 9163, 2613, 982, 733, 1410, 11587, 777, 2325, 26418, 982, 273, 21338, 1435, 2325, 273, 306, 17610, 12, 2938, 13, 364, 389, 316, 1...
cr.execute('select distinct l.invoice_id from hr_analytic_timesheet h left join account_analytic_line l on (h.line_id=l.id) where account_id=1', (account.id,))
cr.execute('select distinct(l.invoice_id) from hr_analytic_timesheet h left join account_analytic_line l on (h.line_id=l.id) where account_id=%s', (account.id,))
def _invoiced_calc(self, cr, uid, ids, name, arg, context={}): res = {} for account in self.browse(cr, uid, ids): invoiced = {} cr.execute('select distinct l.invoice_id from hr_analytic_timesheet h left join account_analytic_line l on (h.line_id=l.id) where account_id=1', (account.id,)) invoice_ids = filter(None, map(l...
7a3717d54ce772c5ba61fbf30f85b64a36d26409 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7a3717d54ce772c5ba61fbf30f85b64a36d26409/hr_timesheet_invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16119, 72, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16119, 72, 67, 12448, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 364, 2236, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 32...
if op.is_guard():
if op.is_guard() and op.opnum != rop.GUARD_NONVIRTUALIZED:
def genblock(self, operations, graphindex, opstartindex): if opstartindex >= len(operations): return blockname = self.op_name(graphindex, opstartindex) block_starters = self.block_starters[graphindex] lines = [] opindex = opstartindex while True: op = operations[opindex] lines.append(repr(op)) if op.is_guard(): tgt = o...
6244901e916e55443dc780e556cc546850ffd384 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/6244901e916e55443dc780e556cc546850ffd384/graphpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 2629, 12, 2890, 16, 5295, 16, 2667, 1615, 16, 1061, 1937, 1615, 4672, 309, 1061, 1937, 1615, 1545, 562, 12, 17542, 4672, 327, 1203, 529, 273, 365, 18, 556, 67, 529, 12, 4660, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 2629, 12, 2890, 16, 5295, 16, 2667, 1615, 16, 1061, 1937, 1615, 4672, 309, 1061, 1937, 1615, 1545, 562, 12, 17542, 4672, 327, 1203, 529, 273, 365, 18, 556, 67, 529, 12, 4660, 161...
to the `\LaTeX` preamble, and replaces the ``\\[`` and ``\\]`` around
to the LaTeX preamble, and replaces the ``\\[`` and ``\\]`` around
def view(objects, title='SAGE', debug=False, sep='', tiny=False, pdflatex=None, viewer = None, tightpage = None, **kwds): r"""nodetex Compute a latex representation of each object in objects, compile, and display typeset. If used from the command line, this requires that latex be installed. INPUT: - ``objects`` - li...
570220c4977ed6a61f4c844c765e92ce08fe1ba5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/570220c4977ed6a61f4c844c765e92ce08fe1ba5/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 6911, 16, 2077, 2218, 55, 2833, 2187, 1198, 33, 8381, 16, 5478, 2218, 2187, 24405, 33, 8381, 16, 8169, 26264, 33, 7036, 16, 14157, 273, 599, 16, 26066, 2433, 273, 599, 16, 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, 1476, 12, 6911, 16, 2077, 2218, 55, 2833, 2187, 1198, 33, 8381, 16, 5478, 2218, 2187, 24405, 33, 8381, 16, 8169, 26264, 33, 7036, 16, 14157, 273, 599, 16, 26066, 2433, 273, 599, 16, 28...
if vals.get('sql_view'): cr.execute(vals.get('sql_view'), (ids,))
if vals.get('sql_name') and vals.get('sql_view'): drop_view_if_exists(cr, sql_name) sql_query = 'CREATE OR REPLACE VIEW %s AS\n%s' % (vals['sql_name'], vals['sql_view']) cr.execute(sql_query, (ids,))
def create(self, cr, uid, vals, context=None): """ Dynamicaly declare the wizard for this document """ if context is None: context = {} doc_id = super(jasper_document, self).create(cr, uid, vals, context=context) self.make_action(cr, uid, doc_id, context=context) # Check if view and create it in the database if vals.ge...
a65a60f3072b918240de8d9c9949d1b162df2461 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/a65a60f3072b918240de8d9c9949d1b162df2461/jasper_document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 463, 3343, 1706, 93, 14196, 326, 24204, 364, 333, 1668, 3536, 309, 819, 353, 599, 30, 819, 273, 2618, 997, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3536, 463, 3343, 1706, 93, 14196, 326, 24204, 364, 333, 1668, 3536, 309, 819, 353, 599, 30, 819, 273, 2618, 997, ...
def message(msg, cont=None):
def message(msg, cont='/'):
def message(msg, cont=None): template_dict = {'msg': msg, 'cont': cont} return template(os.path.join('html', 'error_message.html'), **template_dict)
1524499e906d4aedfc6da2ad2a85c62b16b3326f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11792/1524499e906d4aedfc6da2ad2a85c62b16b3326f/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 3576, 16, 466, 2218, 2473, 4672, 1542, 67, 1576, 273, 13666, 3576, 4278, 1234, 16, 296, 1213, 4278, 466, 97, 327, 1542, 12, 538, 18, 803, 18, 5701, 2668, 2620, 2187, 296, 1636...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 3576, 16, 466, 2218, 2473, 4672, 1542, 67, 1576, 273, 13666, 3576, 4278, 1234, 16, 296, 1213, 4278, 466, 97, 327, 1542, 12, 538, 18, 803, 18, 5701, 2668, 2620, 2187, 296, 1636...
return self.eval(''.join(cmd), user_vars=user_vars, job_name=job_name)
return self.eval(''.join(cmd), user_vars=user_vars, load_files=load_files, job_name=job_name)
def __call__(self, cmd, user_vars=None, job_name=None): cmd = ['ans = %s\n' % (cmd), 'print ans\n', "DSAGE_RESULT = ans\n"]
03fdb45df6f80f20a8dad5a96e242804cba4f660 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/03fdb45df6f80f20a8dad5a96e242804cba4f660/dsage_interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1797, 16, 729, 67, 4699, 33, 7036, 16, 1719, 67, 529, 33, 7036, 4672, 1797, 273, 10228, 634, 273, 738, 87, 64, 82, 11, 738, 261, 4172, 3631, 296, 1188,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 1797, 16, 729, 67, 4699, 33, 7036, 16, 1719, 67, 529, 33, 7036, 4672, 1797, 273, 10228, 634, 273, 738, 87, 64, 82, 11, 738, 261, 4172, 3631, 296, 1188,...
self.assertEqual(sum(elem.hash_count for elem in d), n)
self.assertEqual(sum(elem.hash_count for elem in d), n) d2 = dict.fromkeys(set(d)) self.assertEqual(sum(elem.hash_count for elem in d), n) d3 = dict.fromkeys(frozenset(d)) self.assertEqual(sum(elem.hash_count for elem in d), n)
def test_do_not_rehash_dict_keys(self): n = 10 d = dict.fromkeys(map(HashCountingInt, xrange(n))) self.assertEqual(sum(elem.hash_count for elem in d), n) s = self.thetype(d) self.assertEqual(sum(elem.hash_count for elem in d), n) s.difference(d) self.assertEqual(sum(elem.hash_count for elem in d), n) if hasattr(s, 'sym...
1140dca1959d8d7f700813f2cb860b4abb6727fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1140dca1959d8d7f700813f2cb860b4abb6727fc/test_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2896, 67, 902, 67, 266, 2816, 67, 1576, 67, 2452, 12, 2890, 4672, 290, 273, 1728, 302, 273, 2065, 18, 2080, 2452, 12, 1458, 12, 2310, 1380, 310, 1702, 16, 12314, 12, 82, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2896, 67, 902, 67, 266, 2816, 67, 1576, 67, 2452, 12, 2890, 4672, 290, 273, 1728, 302, 273, 2065, 18, 2080, 2452, 12, 1458, 12, 2310, 1380, 310, 1702, 16, 12314, 12, 82, 20...
dtype=numpy.float64)
dtype=numpy.float64)
def __init__(self, name="druckerprager3delastic"): """ Constructor. """ ElasticMaterialApp.__init__(self, name)
7457070fc151c31ad4b7704dd791acb50ee6640a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8645/7457070fc151c31ad4b7704dd791acb50ee6640a/DruckerPrager3DTimeDep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 1546, 3069, 9031, 264, 683, 6817, 23, 3771, 8160, 6, 4672, 3536, 11417, 18, 3536, 9775, 11790, 3371, 16186, 2738, 972, 12, 2890, 16, 508, 13, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 1546, 3069, 9031, 264, 683, 6817, 23, 3771, 8160, 6, 4672, 3536, 11417, 18, 3536, 9775, 11790, 3371, 16186, 2738, 972, 12, 2890, 16, 508, 13, 2, -10...
print "%ERROR:%s Could not locate framework %s, aborting build" % (GetColor("red"), GetColor(), framework)
print "%sERROR:%s Could not locate framework %s, aborting build" % (GetColor("red"), GetColor(), framework)
def PkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, framework = None, tool = "pkg-config"): global PKG_LIST_ALL if (pkgconfig == ""): pkgconfig = None if (framework == ""): framework = None if (libs == None or libs == ""): libs = () elif (isinstance(libs, str)): libs = (libs, ) if (incs == None ...
24434f191815eb0276a1ae4eedef7a2a94f05fd8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/24434f191815eb0276a1ae4eedef7a2a94f05fd8/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 453, 14931, 8317, 12, 10657, 16, 3475, 1425, 273, 599, 16, 15042, 273, 599, 16, 316, 2143, 273, 599, 16, 17588, 273, 599, 16, 8257, 273, 599, 16, 5226, 273, 315, 10657, 17, 1425, 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, 453, 14931, 8317, 12, 10657, 16, 3475, 1425, 273, 599, 16, 15042, 273, 599, 16, 316, 2143, 273, 599, 16, 17588, 273, 599, 16, 8257, 273, 599, 16, 5226, 273, 315, 10657, 17, 1425, 6, ...
g.report=report.get()
def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync_save,idsec,first,itol,txsnrdb,tx6alt,\ bm_geom utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%...
f15c753982ab17e3b44954cd158dec3caeb6c649 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2394/f15c753982ab17e3b44954cd158dec3caeb6c649/map65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, ...
'attachment; filename="%s"' % os.path.basename(file))
'attachment; filename="%s"' % os.path.basename(fname))
def send_email(self): '''Zip and send logfiles by email for the specified logger. We use the email settings specified in the .ini file for the logger. '''
0223c75b87b188fdf3b6e1c81034575d45442f1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3638/0223c75b87b188fdf3b6e1c81034575d45442f1f/timerthreads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 4672, 9163, 9141, 471, 1366, 613, 2354, 635, 2699, 364, 326, 1269, 1194, 18, 225, 1660, 999, 326, 2699, 1947, 1269, 316, 326, 263, 8767, 585, 364, 326, 1194, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 3652, 12, 2890, 4672, 9163, 9141, 471, 1366, 613, 2354, 635, 2699, 364, 326, 1269, 1194, 18, 225, 1660, 999, 326, 2699, 1947, 1269, 316, 326, 263, 8767, 585, 364, 326, 1194, ...
ErrorCode, ErrorInfo = PathClassObj.Validate()
ErrorCode, ErrorInfo = PathClassObj.Validate(".inf")
def __InfParse__(self, Dict = {}):
9434f7e2148e75cd159aabedfda75e50eb36fe7f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/9434f7e2148e75cd159aabedfda75e50eb36fe7f/FfsInfStatement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13149, 3201, 972, 12, 2890, 16, 9696, 273, 2618, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13149, 3201, 972, 12, 2890, 16, 9696, 273, 2618, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
res = self.fileCatalogue.checkFileExistence(lfn,guid)
res = self.fileCatalogue.exists(lfn)
def putAndRegister(self,lfn,file,diracSE,guid=None,path=None): """ Put a local file to a Storage Element and register in the File Catalogues
54eb55fbcffd1f5fe52b4649d85d63f2e99a2eaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/54eb55fbcffd1f5fe52b4649d85d63f2e99a2eaa/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 4672, 3536, 4399, 279, 1191, 585, 358, 279, 5235, 3010, 471, 1744, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 4672, 3536, 4399, 279, 1191, 585, 358, 279, 5235, 3010, 471, 1744, 316,...
try: if wx.Platform == "__WXMSW__": ed_icon = ed_glob.CONFIG['SYSPIX_DIR'] + u"editra.ico" self.SetIcon(wx.Icon(ed_icon, wx.BITMAP_TYPE_ICO)) else: ed_icon = ed_glob.CONFIG['SYSPIX_DIR'] + u"editra.png" self.SetIcon(wx.Icon(ed_icon, wx.BITMAP_TYPE_PNG)) finally: pass
util.SetWindowIcon(self)
def __init__(self, parent, id, title, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.DEFAULT_DIALOG_STYLE | wx.MINIMIZE_BOX): """Creates a standalone window that is used for downloading updates for the editor. """ wx.Frame.__init__(self, parent, id, title, pos, size, style) try: if wx.Platform == "__WXMSW...
843e5a514f51011229f95772d2def38c61b1b96d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/843e5a514f51011229f95772d2def38c61b1b96d/updater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 949, 273, 7075, 18, 1868, 2555, 16, 963, 273, 7075, 18, 1868, 1225, 16, 2154, 273, 7075, 18, 5280, 67, 2565, 18683, 67, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 949, 273, 7075, 18, 1868, 2555, 16, 963, 273, 7075, 18, 1868, 1225, 16, 2154, 273, 7075, 18, 5280, 67, 2565, 18683, 67, 150...
res.append(rsource) res.append(self._genobj._computeResourceUri(lib, relpath, rType='resource',
ruri = (self._genobj._computeResourceUri(lib, relpath, rType='resource',
def resourceValue(r): # create a pair res = [path, uri] for this resource... res = [] rsource = os.path.normpath(r) # normalize "./..." relpath = (Path.getCommonPrefix(libObj._resourcePath, rsource))[2] if relpath[0] == os.sep: # normalize "/..." relpath = relpath[1:] res.append(rsource) res.append(self._genobj._comp...
70d2247f1ab832bbc158f1769cfeb16b7b303dd8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/70d2247f1ab832bbc158f1769cfeb16b7b303dd8/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1058, 620, 12, 86, 4672, 468, 752, 279, 3082, 400, 273, 306, 803, 16, 2003, 65, 364, 333, 1058, 2777, 400, 273, 5378, 436, 3168, 273, 1140, 18, 803, 18, 7959, 803, 12, 86, 13, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1058, 620, 12, 86, 4672, 468, 752, 279, 3082, 400, 273, 306, 803, 16, 2003, 65, 364, 333, 1058, 2777, 400, 273, 5378, 436, 3168, 273, 1140, 18, 803, 18, 7959, 803, 12, 86, 13, 225, ...
return self._extract_dir(resource_name)
return self._extract_directory(resource_name)
def _extract_resource(self, manager, resource_name): if self.resource_isdir(resource_name): return self._extract_dir(resource_name)
47ed0531729d9202639646e5c52706e8f3f2a886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/47ed0531729d9202639646e5c52706e8f3f2a886/pkg_resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 3146, 12, 2890, 16, 3301, 16, 1058, 67, 529, 4672, 309, 365, 18, 3146, 67, 291, 1214, 12, 3146, 67, 529, 4672, 327, 365, 6315, 8004, 67, 1214, 12, 3146, 67, 529, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 3146, 12, 2890, 16, 3301, 16, 1058, 67, 529, 4672, 309, 365, 18, 3146, 67, 291, 1214, 12, 3146, 67, 529, 4672, 327, 365, 6315, 8004, 67, 1214, 12, 3146, 67, 529, 13, ...
abs_build_lib = os.path.join(os.path.dirname(__file__), self.build_lib)
abs_build_lib = os.path.join(os.getcwd(), self.build_lib)
def build_extensions(self):
591fc6cdb199bdb6eb4a12780a85dd9ac4811487 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/591fc6cdb199bdb6eb4a12780a85dd9ac4811487/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 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, 1361, 67, 9489, 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, -10...
if int(seg.get_value_by_ref_des('GE01')) != self.st_count:
if self._int(seg.get_value_by_ref_des('GE01')) != self.st_count:
def next(self): """ Iterate over input file segments """ self.errors = [] try: while True: if self.buffer.find(self.seg_term) == -1: # Need more data self.buffer += self.fd.read(DEFAULT_BUFSIZE) while True: # Get first segment in buffer (line, self.buffer) = self.buffer.split(self.seg_term, 1) line = line.strip().repla...
7956012e1977ce74eb452b0f222cacfb52c93c99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/7956012e1977ce74eb452b0f222cacfb52c93c99/x12file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 3536, 11436, 1879, 810, 585, 5155, 3536, 365, 18, 4324, 273, 5378, 775, 30, 1323, 1053, 30, 309, 365, 18, 4106, 18, 4720, 12, 2890, 18, 5680, 67, 6408, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 3536, 11436, 1879, 810, 585, 5155, 3536, 365, 18, 4324, 273, 5378, 775, 30, 1323, 1053, 30, 309, 365, 18, 4106, 18, 4720, 12, 2890, 18, 5680, 67, 6408, 13, 422, ...
hdict = {self._origin: x} return WeylCharacter(self, hdict, hdict)
hdict = {self._origin: x} return WeylCharacter(self, hdict, hdict)
def __call__(self, *args): """ Coerces the element into the ring. You may pass a vector in the ambient lattice, an element of the base_ring, or an argument list of integers (or half-integers for the spin types) which are the components of a vector in the ambient lattice.
585641b32ec9003014ab40e39d632a05e840e883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/585641b32ec9003014ab40e39d632a05e840e883/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 7695, 264, 764, 326, 930, 1368, 326, 9221, 18, 4554, 2026, 1342, 279, 3806, 316, 326, 13232, 1979, 16690, 16, 392, 930, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 7695, 264, 764, 326, 930, 1368, 326, 9221, 18, 4554, 2026, 1342, 279, 3806, 316, 326, 13232, 1979, 16690, 16, 392, 930, 434, 326, ...
LibraryInstance.LibraryClass.append(LibraryClass)
LibraryInstance.LibraryClass.append(Lc)
def _MergeModuleInfo(self, Module, ModuleId): ModuleType = Module.ModuleType # merge library class/instance information for LibraryClass in Module.LibraryClasses: if self.LibraryClasses[LibraryClass, ModuleType] == None: continue Module.LibraryClasses[LibraryClass] = self.LibraryClasses[LibraryClass, ModuleType] Record...
0f45bcad6289442c6e3884134e6a1212291e9d45 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/0f45bcad6289442c6e3884134e6a1212291e9d45/WorkspaceDatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6786, 3120, 966, 12, 2890, 16, 5924, 16, 5924, 548, 4672, 5924, 559, 273, 5924, 18, 3120, 559, 468, 2691, 5313, 667, 19, 1336, 1779, 364, 18694, 797, 316, 5924, 18, 9313, 4818, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6786, 3120, 966, 12, 2890, 16, 5924, 16, 5924, 548, 4672, 5924, 559, 273, 5924, 18, 3120, 559, 468, 2691, 5313, 667, 19, 1336, 1779, 364, 18694, 797, 316, 5924, 18, 9313, 4818, 30...
warnings.warn("Bio.KEGG.Compound.Iterator(handle, parser) is deprecated. Please use Bio.KEGG.Compound.parse(handle) instead. It also returns an iterator.""",
warnings.warn("Bio.KEGG.Compound.Iterator(handle, parser) is deprecated. Please use Bio.KEGG.Compound.parse(handle) instead. It also returns an iterator.",
def __init__(self, handle, parser = None): """Initialize the iterator.
a5bd114e3e091ff66c566698f5fbc6a4372236ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/a5bd114e3e091ff66c566698f5fbc6a4372236ff/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 16, 2082, 273, 599, 4672, 3536, 7520, 326, 2775, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 16, 2082, 273, 599, 4672, 3536, 7520, 326, 2775, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
str = str.replace("'","\'") str = str.replace("\"","\\\"") str = str.replace("!","\!") return str
str = str.replace("'","\'") str = str.replace("\"","\\\"") str = str.replace("!","\!") return str
def filename_escape(str): str = str.replace("'","\'") str = str.replace("\"","\\\"") str = str.replace("!","\!") return str
a41e757a9e615ab7e5e7abbfd7863edced34e942 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/a41e757a9e615ab7e5e7abbfd7863edced34e942/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1544, 67, 6939, 12, 701, 4672, 609, 273, 609, 18, 2079, 29823, 15937, 3730, 7923, 609, 273, 609, 18, 2079, 2932, 2412, 15937, 1695, 2412, 7923, 609, 273, 609, 18, 2079, 2932, 5, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 67, 6939, 12, 701, 4672, 609, 273, 609, 18, 2079, 29823, 15937, 3730, 7923, 609, 273, 609, 18, 2079, 2932, 2412, 15937, 1695, 2412, 7923, 609, 273, 609, 18, 2079, 2932, 5, 3113, ...
self.binary = 1
if HIGHEST_PROTOCOL: self.protocol = HIGHEST_PROTOCOL else: self.protocol = 1
def __init__(self, dbenv=None): self.db = db.DB(dbenv) self.binary = 1
05cf33361140b3644eb30c58a1a0d669441bd7ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/05cf33361140b3644eb30c58a1a0d669441bd7ec/dbshelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1319, 3074, 33, 7036, 4672, 365, 18, 1966, 273, 1319, 18, 2290, 12, 1966, 3074, 13, 365, 18, 8578, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1319, 3074, 33, 7036, 4672, 365, 18, 1966, 273, 1319, 18, 2290, 12, 1966, 3074, 13, 365, 18, 8578, 273, 404, 2, -100, -100, -100, -100, -100, -100, -100,...
imageop.mono2grey(img, x, y, 0, 255)
return imageop.mono2grey(img, x, y, 0, 255)
def mono2grey(img, x, y): imageop.mono2grey(img, x, y, 0, 255)
1e0fdd8a6bd4a094e42f0b9a8c995e98cfda5257 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1e0fdd8a6bd4a094e42f0b9a8c995e98cfda5257/imgconv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6921, 83, 22, 11556, 93, 12, 6081, 16, 619, 16, 677, 4672, 327, 1316, 556, 18, 2586, 83, 22, 11556, 93, 12, 6081, 16, 619, 16, 677, 16, 374, 16, 4561, 13, 225, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6921, 83, 22, 11556, 93, 12, 6081, 16, 619, 16, 677, 4672, 327, 1316, 556, 18, 2586, 83, 22, 11556, 93, 12, 6081, 16, 619, 16, 677, 16, 374, 16, 4561, 13, 225, 2, -100, -100, -100,...
mm = cron_util.getProcessingWindow(config,self.tableName,cursor,me.fileLogger)
mm = cron_util.getProcessingWindow(config,self.tableName,None,cursor,me.fileLogger)
def testGetProcessingWindow(self): cursor = self.connection.cursor() config = {} # check that a really empty system fails assert_raises(SystemExit,cron_util.getProcessingWindow,config,self.tableName,cursor,me.fileLogger)
cafbae83143e839351f7e00f20999c211cfa9fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/cafbae83143e839351f7e00f20999c211cfa9fdb/testUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 7798, 3829, 12, 2890, 4672, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 642, 273, 2618, 468, 866, 716, 279, 8654, 1008, 2619, 6684, 1815, 67, 354, 6141, 12, 22729, 16, 18041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 7798, 3829, 12, 2890, 4672, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 642, 273, 2618, 468, 866, 716, 279, 8654, 1008, 2619, 6684, 1815, 67, 354, 6141, 12, 22729, 16, 18041, ...
if not rings.is_CyclotomicField(K) or rings.is_RationalField(K):
if not (rings.is_CyclotomicField(K) or rings.is_RationalField(K)):
def gauss_sum(self, a=1): r""" Return a Gauss sum associated to this Dirichlet character.
d4f7d07f38c8fbbc1df3395bbfb418457090bdbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/d4f7d07f38c8fbbc1df3395bbfb418457090bdbe/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 10325, 67, 1364, 12, 2890, 16, 279, 33, 21, 4672, 436, 8395, 2000, 279, 611, 10325, 2142, 3627, 358, 333, 8446, 1354, 1810, 3351, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 10325, 67, 1364, 12, 2890, 16, 279, 33, 21, 4672, 436, 8395, 2000, 279, 611, 10325, 2142, 3627, 358, 333, 8446, 1354, 1810, 3351, 18, 2, -100, -100, -100, -100, -100, -100, -100, ...
if getConfig()['global']['debug'] and _action != 'daemon':
if getConfig()['global']['debug'] and _action !='daemon' and sys.stderr.isatty():
def setDebug(type, value, tb): if getConfig()['global']['debug'] and _action != 'daemon': import pdb traceback.print_exception(type, value, tb) print pdb.pm() else: sys.__excepthook__(type, value, tb)
0d66125a786b9ec925cf42d85180c8c854987932 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/0d66125a786b9ec925cf42d85180c8c854987932/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2829, 12, 723, 16, 460, 16, 8739, 4672, 309, 4367, 1435, 3292, 6347, 21712, 4148, 3546, 471, 389, 1128, 480, 11, 21511, 11, 471, 2589, 18, 11241, 18, 291, 270, 4098, 13332, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2829, 12, 723, 16, 460, 16, 8739, 4672, 309, 4367, 1435, 3292, 6347, 21712, 4148, 3546, 471, 389, 1128, 480, 11, 21511, 11, 471, 2589, 18, 11241, 18, 291, 270, 4098, 13332, 1930, ...
return chr(131) + _PackOneTerm(term)
return chr(MAGIC_MAGIC) + _PackOneTerm(term)
def TermToBinary(term): return chr(131) + _PackOneTerm(term)
f5a33431908f2d30884e237b626d15ed55b2f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/f5a33431908f2d30884e237b626d15ed55b2f169/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6820, 774, 5905, 12, 6408, 4672, 327, 4513, 12, 49, 22247, 67, 49, 22247, 13, 397, 389, 4420, 3335, 4065, 12, 6408, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6820, 774, 5905, 12, 6408, 4672, 327, 4513, 12, 49, 22247, 67, 49, 22247, 13, 397, 389, 4420, 3335, 4065, 12, 6408, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def pasteFileSysFolder(self, folderpath, nodepath, zopeConn): zopeConn.add_folder(os.path.basename(folderpath), nodepath)
def pasteFileSysFolder(self, folderpath, nodepath, node): node.zopeConn.add_folder(os.path.basename(folderpath), nodepath)
def pasteFileSysFolder(self, folderpath, nodepath, zopeConn): zopeConn.add_folder(os.path.basename(folderpath), nodepath) files = os.listdir(folderpath) folder = os.path.basename(folderpath) newNodepath = nodepath+'/'+folder for file in files: file = os.path.join(folderpath, file) if os.path.isdir(file): self.pasteFile...
992d5b62bbff8f8eb0ad75954f3d22bf8bd4bbd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/992d5b62bbff8f8eb0ad75954f3d22bf8bd4bbd8/ZopeExplorer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 812, 12712, 3899, 12, 2890, 16, 3009, 803, 16, 756, 803, 16, 756, 4672, 282, 756, 18, 94, 1306, 3543, 18, 1289, 67, 5609, 12, 538, 18, 803, 18, 13909, 12, 5609, 803, 3631, 756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 812, 12712, 3899, 12, 2890, 16, 3009, 803, 16, 756, 803, 16, 756, 4672, 282, 756, 18, 94, 1306, 3543, 18, 1289, 67, 5609, 12, 538, 18, 803, 18, 13909, 12, 5609, 803, 3631, 756...
if self.__addedEntries.get(entry): return dannot = DarcsAnnotate(working_dir=root)
def _addEntry(self, root, entry): """ Add a new entry, maybe registering the directory as well. """
f2ae34137a548403e90d9775430f0c2030b55815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/f2ae34137a548403e90d9775430f0c2030b55815/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 1622, 12, 2890, 16, 1365, 16, 1241, 4672, 3536, 1436, 279, 394, 1241, 16, 6944, 22845, 326, 1867, 487, 5492, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 1289, 1622, 12, 2890, 16, 1365, 16, 1241, 4672, 3536, 1436, 279, 394, 1241, 16, 6944, 22845, 326, 1867, 487, 5492, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
FP_chain.filename= filename
FP_chain.filename = filename
def readSingleRecordToMSR(self, filename, reclen = -1, dataflag = 1, skipnotdata = 1, verbose = 0, record_number = 0): """ Reads Mini-SEED record from file and populates MS Record data structure. @param filename: Mini-SEED file to be read. @param reclen: If reclen is 0 the length of the first record is auto- detected....
da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5281, 2115, 774, 3537, 54, 12, 2890, 16, 1544, 16, 283, 830, 275, 273, 300, 21, 16, 501, 6420, 273, 404, 16, 2488, 902, 892, 273, 404, 16, 3988, 273, 374, 16, 1409, 67, 2696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 5281, 2115, 774, 3537, 54, 12, 2890, 16, 1544, 16, 283, 830, 275, 273, 300, 21, 16, 501, 6420, 273, 404, 16, 2488, 902, 892, 273, 404, 16, 3988, 273, 374, 16, 1409, 67, 2696, ...
if `self.control.GetImageList()` == `compn.control`:
if self.control.GetImageList() == compn.control:
def notification(self, compn, action): ContainerDTC.notification(self, compn, action) if action == 'delete': if `self.control.GetImageList()` == `compn.control`: self.propRevertToDefault('ImageList', 'SetImageList') self.control.SetImageList(None)
cff9a3b23ca95402e5a55c5ae3ae6ec3fa22aa7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/cff9a3b23ca95402e5a55c5ae3ae6ec3fa22aa7f/Companions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3851, 12, 2890, 16, 1161, 82, 16, 1301, 4672, 4039, 9081, 39, 18, 9927, 12, 2890, 16, 1161, 82, 16, 1301, 13, 309, 1301, 422, 296, 3733, 4278, 309, 365, 18, 7098, 18, 967, 2040, 682,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3851, 12, 2890, 16, 1161, 82, 16, 1301, 4672, 4039, 9081, 39, 18, 9927, 12, 2890, 16, 1161, 82, 16, 1301, 13, 309, 1301, 422, 296, 3733, 4278, 309, 365, 18, 7098, 18, 967, 2040, 682,...
if os.path.isdir(self.__patch_dir): os.rename(self.__patch_dir, to_stack.__patch_dir)
if os.path.isdir(self.__series_dir): os.rename(self.__series_dir, to_stack.__series_dir)
def rename(self, to_name): """Renames a series """ to_stack = Series(to_name)
02ac3ad2d474c60c1cdcb6b45451c1077b735ca0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/02ac3ad2d474c60c1cdcb6b45451c1077b735ca0/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2890, 16, 358, 67, 529, 4672, 3536, 54, 6809, 279, 4166, 3536, 358, 67, 3772, 273, 9225, 12, 869, 67, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6472, 12, 2890, 16, 358, 67, 529, 4672, 3536, 54, 6809, 279, 4166, 3536, 358, 67, 3772, 273, 9225, 12, 869, 67, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
font = osd.getFontInfo(val.font.name, val.font.size)
font = val.font.font
def update_content(self): """ update the listing area """
7c78974d521c827f6d5714976b846047270d16f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7c78974d521c827f6d5714976b846047270d16f2/listing_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1745, 12, 2890, 4672, 3536, 1089, 326, 11591, 5091, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1745, 12, 2890, 4672, 3536, 1089, 326, 11591, 5091, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
menu = self.make_list( items ) if menu:
if items:
def calc_lsize(r): """Calculate the size required on screen to display the list. Unfortunately Python 2.x doesn't allow assigning to the scope one level up of a nested function, so the return list on this function is horrible. I could have used an object and mutated it from here but it doesn't seem like such a big deal...
26615180a9ec5ff924b5f85ee3dba64682832c6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/26615180a9ec5ff924b5f85ee3dba64682832c6c/bpython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 18, 1351, 24233, 6600, 576, 18, 92, 3302, 1404, 1699, 28639, 358, 326, 2146, 1245, 1801, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 80, 1467, 12, 86, 4672, 3536, 8695, 326, 963, 1931, 603, 5518, 358, 2562, 326, 666, 18, 1351, 24233, 6600, 576, 18, 92, 3302, 1404, 1699, 28639, 358, 326, 2146, 1245, 1801, 7...
raise ValueError, "Invalid variable name '%s' (reserved)." % variable
raise ValueError, "Invalid variable name '%s' (reserved)." % var
def declaration(self, string): """ >>> declaration = ExpressionTranslation().declaration
d7128522e5481983472aa9cb28d6c5b944cce938 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9696/d7128522e5481983472aa9cb28d6c5b944cce938/expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8266, 12, 2890, 16, 533, 4672, 3536, 4080, 8266, 273, 5371, 6717, 7675, 22448, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8266, 12, 2890, 16, 533, 4672, 3536, 4080, 8266, 273, 5371, 6717, 7675, 22448, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if user.getClasses(self.parent_program, verbs=[self.parent_program.getModuleExtension('StudentClassRegModuleInfo').signup_verb]).count() == 0:
if user.getClasses(self.parent_program, verbs=[self.parent_program.getModuleExtension('StudentClassRegModuleInfo').signup_verb.name]).count() == 0:
def cannotAdd(self, user, checkFull=True, request=False, use_cache=True): """ Go through and give an error message if this user cannot add this class to their schedule. """ if not user.isStudent(): return 'You are not a student!' if not self.isAccepted(): return 'This class is not accepted.'
2c5655487ab8e8bcf5411f89e85160ed3ae71850 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/2c5655487ab8e8bcf5411f89e85160ed3ae71850/class_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2780, 986, 12, 2890, 16, 729, 16, 866, 5080, 33, 5510, 16, 590, 33, 8381, 16, 999, 67, 2493, 33, 5510, 4672, 3536, 4220, 3059, 471, 8492, 392, 555, 883, 309, 333, 729, 2780, 527, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2780, 986, 12, 2890, 16, 729, 16, 866, 5080, 33, 5510, 16, 590, 33, 8381, 16, 999, 67, 2493, 33, 5510, 4672, 3536, 4220, 3059, 471, 8492, 392, 555, 883, 309, 333, 729, 2780, 527, 333...
opts[opt] = (filename, parser.get(section,opt))
opt_dict[opt] = (filename, parser.get(section,opt))
def parse_config_files (self, filenames=None):
0e48cfd2c5735a500d638aed929c3207173a4f9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0e48cfd2c5735a500d638aed929c3207173a4f9e/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.db.bulkload("Dirnames", newDirnames, ["dirname"])
def _addTroveNewFiles(self, cu, troveInstanceId): # We split these steps into separate queries because most DB # backends I have tried will get the optimization of a single # query wrong --gafton
3110b2e263c044d8d702cfd50f585ab64c460555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/3110b2e263c044d8d702cfd50f585ab64c460555/trovestore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 56, 303, 537, 1908, 2697, 12, 2890, 16, 15985, 16, 23432, 537, 15327, 4672, 468, 1660, 1416, 4259, 6075, 1368, 9004, 6218, 2724, 4486, 2383, 468, 18015, 467, 1240, 12928, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 56, 303, 537, 1908, 2697, 12, 2890, 16, 15985, 16, 23432, 537, 15327, 4672, 468, 1660, 1416, 4259, 6075, 1368, 9004, 6218, 2724, 4486, 2383, 468, 18015, 467, 1240, 12928, 903, ...
self.order.append(C.cname(p))
cname = C.cname(p) files.append(cname) (self.order, dups) = filter_dup_files(files) for f in dups: Dbg.add("read_from_file: dup plugin: %s" % f)
def read_from_file(self, fromfile): """Get the load order by reading an input file. This is mostly to help others debug their load order.""" file = myopen_file(fromfile, 'r') if file == None: Dbg.add("Failed to open input file: %s" % fromfile) return self.order = [] for line in file: plugin_match = re_sloppy_plugin.mat...
0c7708b87116943b23e6bb107953538e831fc31c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c7708b87116943b23e6bb107953538e831fc31c/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 768, 12, 2890, 16, 628, 768, 4672, 3536, 967, 326, 1262, 1353, 635, 6453, 392, 810, 585, 18, 1220, 353, 23958, 358, 2809, 10654, 1198, 3675, 1262, 1353, 12123, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 768, 12, 2890, 16, 628, 768, 4672, 3536, 967, 326, 1262, 1353, 635, 6453, 392, 810, 585, 18, 1220, 353, 23958, 358, 2809, 10654, 1198, 3675, 1262, 1353, 12123, 585, ...
nodeIndex, net, values, limits, defaultNodeEdgeColor)
nodeIndex, net, values, limits, defaultNodeEdgeColor)
def draw_node(axes, x, y, shape, color, size, edgecolor, edgewidth, zorder): axes.plot([x], [y], shape, markerfacecolor=color, markeredgecolor=edgecolor, markeredgewidth=edgewidth, markersize=size, zorder=zorder)
cfca3bafdb116e01f7e1702fd502ccefa61a1fd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/768/cfca3bafdb116e01f7e1702fd502ccefa61a1fd6/visuals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 2159, 12, 10855, 16, 619, 16, 677, 16, 2179, 16, 2036, 16, 963, 16, 25929, 25028, 16, 25929, 14434, 16, 29447, 4672, 6515, 18, 4032, 3816, 92, 6487, 306, 93, 6487, 2179, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 2159, 12, 10855, 16, 619, 16, 677, 16, 2179, 16, 2036, 16, 963, 16, 25929, 25028, 16, 25929, 14434, 16, 29447, 4672, 6515, 18, 4032, 3816, 92, 6487, 306, 93, 6487, 2179, 16, ...
if dat is None: dat = ''
if dat is None: dat = b''
def _append_untagged(self, typ, dat):
fb5faf02853f5f56fe96f00e8020a6fabe8ac390 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/fb5faf02853f5f56fe96f00e8020a6fabe8ac390/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 318, 23023, 12, 2890, 16, 3815, 16, 1150, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 318, 23023, 12, 2890, 16, 3815, 16, 1150, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
wx.Dialog.__init__(self, parent, id, title, style=wx.RESIZE_BORDER)
wx.Dialog.__init__(self, parent, id, title, style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
def __init__(self, parent, id, title, timeline, start=None, end=None, event=None): """ Create a event editor dialog.
7e5b4bb5c6ce97c8396e8b542191a2178b1a3b8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/7e5b4bb5c6ce97c8396e8b542191a2178b1a3b8f/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 18316, 16, 787, 33, 7036, 16, 679, 33, 7036, 16, 871, 33, 7036, 4672, 3536, 1788, 279, 871, 4858, 6176, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 18316, 16, 787, 33, 7036, 16, 679, 33, 7036, 16, 871, 33, 7036, 4672, 3536, 1788, 279, 871, 4858, 6176, 18, 2, -100, -100, ...
os.system('asq -op "%s"< /dev/null'%s)
e = os.system('asq -op "%s"< /dev/null'%s)
def help(self, s): if sage.server.support.EMBEDDED_MODE: os.system('asq -op "%s"< /dev/null'%s) else: os.system('asq -op "%s"'%s)
c37aae41caccee4a71a6b90ea9abcd5b070a7522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c37aae41caccee4a71a6b90ea9abcd5b070a7522/axiom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 12, 2890, 16, 272, 4672, 309, 272, 410, 18, 3567, 18, 13261, 18, 3375, 22235, 7660, 67, 7038, 30, 425, 273, 1140, 18, 4299, 2668, 345, 85, 300, 556, 2213, 87, 6, 32, 342, 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, 2809, 12, 2890, 16, 272, 4672, 309, 272, 410, 18, 3567, 18, 13261, 18, 3375, 22235, 7660, 67, 7038, 30, 425, 273, 1140, 18, 4299, 2668, 345, 85, 300, 556, 2213, 87, 6, 32, 342, 5206,...
badmatch=names.has_key): if abs in names: continue
badmatch=badmatch): if abs in names or src == 'b': continue
def revert(ui, repo, *pats, **opts): """revert files or dirs to their states as of some revision With no revision specified, revert the named files or directories to the contents they had in the parent of the working directory. This restores the contents of the affected files to an unmodified state and unschedules add...
fbebf5c11a687374c00523166c4b12f92581b7ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/fbebf5c11a687374c00523166c4b12f92581b7ac/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 266, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 225, 3423, 1158, 6350, 1269, 16, 15226, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 266, 1097, 1390, 578, 7717, 358, 3675, 5493, 487, 434, 2690, 6350, 225, 3423, 1158, 6350, 1269, 16, 15226, 326, ...
failif.addifstmt(cxx.StmtReturn(valueerrcode))
failif.addifstmt(cxx.StmtReturn( cxx.ExprVar('MsgValueError')))
block.addstmt(cxx.CppDirective('endif', '// ifdef DEBUG'))
0a1b37293f10cf7c84787279c2480ea15761b2f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/0a1b37293f10cf7c84787279c2480ea15761b2f8/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 39, 11858, 13307, 2668, 409, 430, 2187, 12084, 309, 536, 6369, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 39, 11858, 13307, 2668, 409, 430, 2187, 12084, 309, 536, 6369, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
queryset = models.Conf.objects.filter(owner__in=request.user.groups.all())
queryset = models.Conf.objects.filter(owner=request.user)
def conf_list(request): """Allow the user to select a handle.""" if request.user.is_superuser: queryset = models.Conf.objects.all() else: queryset = models.Conf.objects.filter(owner__in=request.user.groups.all()) return object_list(request, queryset, template_name='myrpki/conf_list.html', template_object_name='conf')
56fec69469ddf83a7899e983321c4b961d09cc65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/119/56fec69469ddf83a7899e983321c4b961d09cc65/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2195, 67, 1098, 12, 2293, 4672, 3536, 7009, 326, 729, 358, 2027, 279, 1640, 12123, 309, 590, 18, 1355, 18, 291, 67, 9565, 1355, 30, 11892, 273, 3679, 18, 3976, 18, 6911, 18, 454, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2195, 67, 1098, 12, 2293, 4672, 3536, 7009, 326, 729, 358, 2027, 279, 1640, 12123, 309, 590, 18, 1355, 18, 291, 67, 9565, 1355, 30, 11892, 273, 3679, 18, 3976, 18, 6911, 18, 454, 1435,...
parser.add_option("-t", "--test", action="append", help="which test to run")
parser.add_option("-t", "--test", action="append", default=[], help="which test to run, supports test:gtest_filter format " "as well.")
def _main(_): parser = optparse.OptionParser("usage: %prog -b <dir> -t <test> " "[-t <test> ...]") parser.disable_interspersed_args() parser.add_option("-b", "--build_dir", help="the location of the output of the compiler output") parser.add_option("-t", "--test", action="append", help="which test to run") parser.add_o...
3130c2db3d14804287e0c5fd99fad239f7858386 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/3130c2db3d14804287e0c5fd99fad239f7858386/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5254, 24899, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 2932, 9167, 30, 738, 14654, 300, 70, 411, 1214, 34, 300, 88, 411, 3813, 34, 315, 5158, 17, 88, 411, 3813, 34, 1372, 4279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 24899, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 2932, 9167, 30, 738, 14654, 300, 70, 411, 1214, 34, 300, 88, 411, 3813, 34, 315, 5158, 17, 88, 411, 3813, 34, 1372, 4279,...
This function uses the algorithm of [Edmonds74] to calculate the
This function uses the algorithm of [Edmonds74]_ to calculate the
def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ...
2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 26, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 525, 67, 24, 16, 525, 67, 25, 16, 525, 67, 26, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
cmd = [ 'gdb', '--args' ] + get_test_cmd(tc.path, lib_dir)
cmd = [ 'gdb', '--args' ] + get_test_cmd(tc.path, tc.jitflags, lib_dir)
def parse_jitflags(): jitflags = [ [ '-' + flag for flag in flags ] for flags in OPTIONS.jitflags.split(',') ] for flags in jitflags: for flag in flags: if flag not in ('-j', '-m'): print('Invalid jit flag: "%s"'%flag) sys.exit(1) return jitflags
1a7884aaaf84a57953041364b5a9ca481efa754b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/1a7884aaaf84a57953041364b5a9ca481efa754b/trace-test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 78, 305, 7133, 13332, 525, 305, 7133, 273, 306, 306, 4014, 397, 2982, 364, 2982, 316, 2943, 308, 364, 2943, 316, 16726, 18, 78, 305, 7133, 18, 4939, 12, 2187, 6134, 308, 364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 78, 305, 7133, 13332, 525, 305, 7133, 273, 306, 306, 4014, 397, 2982, 364, 2982, 316, 2943, 308, 364, 2943, 316, 16726, 18, 78, 305, 7133, 18, 4939, 12, 2187, 6134, 308, 364,...
table.addElement(ecs.Tr().addElement(td)) if f.description: tr.addElement(ecs.Td().addElement(f.description)) tr.addElement(ecs.Td().addElement(f.getView())) else: td=ecs.Td().addElement(f.getView()).setAttribute('colspan', '2')
def handleField(self, f, tr, table): msg=self.errors.get(f) if msg: em=ecs.Em(msg).setAttribute('class', 'form_error') td=ecs.Td(em).setAttribute('colspan', '2') table.addElement(ecs.Tr().addElement(td))
68b41effbe7a46aaecf0da3925f02d6740fea5a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/68b41effbe7a46aaecf0da3925f02d6740fea5a6/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 974, 12, 2890, 16, 284, 16, 433, 16, 1014, 4672, 1234, 33, 2890, 18, 4324, 18, 588, 12, 74, 13, 309, 1234, 30, 801, 33, 557, 87, 18, 1514, 12, 3576, 2934, 542, 1499, 2668, 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, 1640, 974, 12, 2890, 16, 284, 16, 433, 16, 1014, 4672, 1234, 33, 2890, 18, 4324, 18, 588, 12, 74, 13, 309, 1234, 30, 801, 33, 557, 87, 18, 1514, 12, 3576, 2934, 542, 1499, 2668, 11...
state_dict = {'wait':'Waiting','confirmed':'Confirmed','approved':'Approved','except_picking': 'Shipping Exception','except_invoice': 'Invoice Exception','done': 'Done'} raise osv.except_osv(_('Invalid action !'), _('Cannot delete Purchase Order(s) which are in %s State!') %_(eval(s['state'],state_dict)))
raise osv.except_osv(_('Invalid action !'), _('Cannot delete Purchase Order(s) which are in %s State!') % _(dict(purchase_order.STATE_SELECTION).get(s['state'])))
def unlink(self, cr, uid, ids, context=None): purchase_orders = self.read(cr, uid, ids, ['state']) unlink_ids = [] for s in purchase_orders: if s['state'] in ['draft','cancel']: unlink_ids.append(s['id']) else: state_dict = {'wait':'Waiting','confirmed':'Confirmed','approved':'Approved','except_picking': 'Shipping Exce...
5365e331e8ea64c195928ecb289ad593d40402ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5365e331e8ea64c195928ecb289ad593d40402ef/purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 23701, 67, 9972, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 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, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 23701, 67, 9972, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 273, ...
dbname = getattr(threading.currentThread(), 'dbname')
def _get_db(self): # find current DB based on thread/worker db name (see netsvc) db_name = getattr(threading.currentThread(), 'dbname', None) if db_name: dbname = getattr(threading.currentThread(), 'dbname') return pooler.get_db_only(dbname)
06b66bd9c0daadf933b72fb7596f695ff5a2d5b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/06b66bd9c0daadf933b72fb7596f695ff5a2d5b2/translate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1966, 12, 2890, 4672, 468, 1104, 783, 2383, 2511, 603, 2650, 19, 10124, 1319, 508, 261, 5946, 21954, 4227, 13, 1319, 67, 529, 273, 3869, 12, 5930, 310, 18, 2972, 3830, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1966, 12, 2890, 4672, 468, 1104, 783, 2383, 2511, 603, 2650, 19, 10124, 1319, 508, 261, 5946, 21954, 4227, 13, 1319, 67, 529, 273, 3869, 12, 5930, 310, 18, 2972, 3830, 93...
return 'Package %s does not exist in %s' % (pkg, ', '.join(checkdists))
return 'Package %s does not exist in %s' % (pkg, checkdists)
def info(self, pkg, checkdists): _pkg = ''.join([x for x in pkg.strip().split(None,1)[0] if x.isalnum() or x in '.-_+']) distro = None if len(pkg.strip().split()) > 1: distro = ''.join([x for x in pkg.strip().split(None,2)[1] if x.isalnum() or x in '-._+']) if not distro: distro = checkdists if distro not in self.distr...
6ab2825530b663a80aedd8ae75ece2951f762429 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3102/6ab2825530b663a80aedd8ae75ece2951f762429/packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 16, 3475, 16, 866, 30467, 4672, 389, 10657, 273, 875, 18, 5701, 3816, 92, 364, 619, 316, 3475, 18, 6406, 7675, 4939, 12, 7036, 16, 21, 25146, 20, 65, 309, 619, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 12, 2890, 16, 3475, 16, 866, 30467, 4672, 389, 10657, 273, 875, 18, 5701, 3816, 92, 364, 619, 316, 3475, 18, 6406, 7675, 4939, 12, 7036, 16, 21, 25146, 20, 65, 309, 619, 18, 29...
print "SKIP:", token
def parseTable(self): token = self.token self.next() t = Table()
8ca409ccd6c52b5690f199b6e6bc3337830dddc1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/8ca409ccd6c52b5690f199b6e6bc3337830dddc1/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1388, 12, 2890, 4672, 1147, 273, 365, 18, 2316, 365, 18, 4285, 1435, 268, 273, 3555, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1388, 12, 2890, 4672, 1147, 273, 365, 18, 2316, 365, 18, 4285, 1435, 268, 273, 3555, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
raise exceptions.LicornRuntimeError("Filesystem must be mounted with `acl' option:\n\t%s" % e)
raise exceptions.LicornRuntimeError("Filesystem must be mounted with 'acl' option:\n\t%s" % e)
def CheckBaseDirs(self, minimal = True, batch = False, auto_answer = None) : """Check and eventually repair default needed dirs."""
5f520867b3ef14a7fdba756665f78d5a9a2ce3de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/5f520867b3ef14a7fdba756665f78d5a9a2ce3de/configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2171, 9872, 12, 2890, 16, 16745, 273, 1053, 16, 2581, 273, 1083, 16, 3656, 67, 13490, 273, 599, 13, 294, 3536, 1564, 471, 18011, 20994, 805, 3577, 7717, 12123, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2171, 9872, 12, 2890, 16, 16745, 273, 1053, 16, 2581, 273, 1083, 16, 3656, 67, 13490, 273, 599, 13, 294, 3536, 1564, 471, 18011, 20994, 805, 3577, 7717, 12123, 2, -100, -100, -100,...
x = pow(p, 1.0/alpha)
x = p ** (1.0/alpha)
def gammavariate(self, alpha, beta): """Gamma distribution. Not the gamma function!
fdaed79a0919ce05f40e1059b1d87de120ba03fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fdaed79a0919ce05f40e1059b1d87de120ba03fc/random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23411, 20689, 297, 3840, 12, 2890, 16, 4190, 16, 6796, 4672, 3536, 31300, 7006, 18, 225, 2288, 326, 9601, 445, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23411, 20689, 297, 3840, 12, 2890, 16, 4190, 16, 6796, 4672, 3536, 31300, 7006, 18, 225, 2288, 326, 9601, 445, 5, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
gLogger.error("RequestPreparation.prepareNewReplicas: Failed to update replica metadata.", res['Message'])
gLogger.error( "RequestPreparation.prepareNewReplicas: Failed to update replica metadata.", res['Message'] )
def prepareNewReplicas(self): """ This is the first logical task to be executed and manages the New->Waiting transition of the Replicas """ res = self.__getNewReplicas() if not res['OK']: gLogger.fatal("RequestPreparation.prepareNewReplicas: Failed to get replicas from StagerDB.",res['Message']) return res if not res['...
d68cb60fd991fa9f206177d2794f8d04f940cd00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d68cb60fd991fa9f206177d2794f8d04f940cd00/RequestPreparationAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 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, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 588, ...
'image/%s' % lower(pimage.format)
'image/%s' % format
def createScales(self, instance): """creates the scales and save them """ if not has_pil or not self.sizes: return img = self.getRaw(instance) if not img: return data = str(img.data) for n, size in self.sizes.items(): w, h = size id = self.getName() + "_" + n imgdata = self.scale(data, w, h) pimage = PIL.Image.open(img...
b9a09d0a2891fd633b7ab94c27efab7cc931e424 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9a09d0a2891fd633b7ab94c27efab7cc931e424/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 55, 21177, 12, 2890, 16, 791, 4672, 3536, 19787, 326, 18211, 471, 1923, 2182, 3536, 309, 486, 711, 67, 84, 330, 578, 486, 365, 18, 11914, 30, 327, 3774, 273, 365, 18, 588, 4809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 55, 21177, 12, 2890, 16, 791, 4672, 3536, 19787, 326, 18211, 471, 1923, 2182, 3536, 309, 486, 711, 67, 84, 330, 578, 486, 365, 18, 11914, 30, 327, 3774, 273, 365, 18, 588, 4809, ...
prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix
s1 = min(m) s2 = max(m) n = min(len(s1), len(s2)) for i in xrange(n): if s1[i] != s2[i]: return s1[:i] return s1[:n]
def commonprefix(m): "Given a list of pathnames, returns the longest common leading component" if not m: return '' prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix
eb17d91f3967373b6065b119dfd18b31f9fdf01c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/eb17d91f3967373b6065b119dfd18b31f9fdf01c/posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2975, 3239, 12, 81, 4672, 315, 6083, 279, 666, 434, 589, 1973, 16, 1135, 326, 12163, 2975, 7676, 1794, 6, 309, 486, 312, 30, 327, 875, 272, 21, 273, 1131, 12, 81, 13, 272, 22, 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, 2975, 3239, 12, 81, 4672, 315, 6083, 279, 666, 434, 589, 1973, 16, 1135, 326, 12163, 2975, 7676, 1794, 6, 309, 486, 312, 30, 327, 875, 272, 21, 273, 1131, 12, 81, 13, 272, 22, 273, ...
division = record.annotations.get("data_file_division", "UNK")
division = record.annotations.get("data_file_division", None)
def _load_bioentry_table(self, record): """Fill the bioentry table with sequence information.
e319c614f79532d523a494d20fd52368313b6f6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/e319c614f79532d523a494d20fd52368313b6f6c/Loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 21010, 4099, 67, 2121, 12, 2890, 16, 1409, 4672, 3536, 8026, 326, 25091, 4099, 1014, 598, 3102, 1779, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 21010, 4099, 67, 2121, 12, 2890, 16, 1409, 4672, 3536, 8026, 326, 25091, 4099, 1014, 598, 3102, 1779, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def body(self, id):
def body(self, id, fileHandle=None):
def body(self, id): """Process a BODY command. Argument: - id: article number or message id Returns: - resp: server response if successful - nr: article number - id: message id - list: the lines of the article's body"""
20daa62f93117ab8f3937d4920d82cd7cd65c7e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/20daa62f93117ab8f3937d4920d82cd7cd65c7e8/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 12, 2890, 16, 612, 16, 26662, 33, 7036, 4672, 3536, 2227, 279, 30580, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 12, 2890, 16, 612, 16, 26662, 33, 7036, 4672, 3536, 2227, 279, 30580, 1296, 18, 225, 5067, 30, 300, 612, 30, 7559, 1300, 578, 883, 612, 2860, 30, 300, 1718, 30, 1438, 766, 309, ...
wxART_TOOLBAR = misc2c.wxART_TOOLBAR wxART_MENU = misc2c.wxART_MENU wxART_FRAME_ICON = misc2c.wxART_FRAME_ICON wxART_CMN_DIALOG = misc2c.wxART_CMN_DIALOG wxART_HELP_BROWSER = misc2c.wxART_HELP_BROWSER wxART_MESSAGE_BOX = misc2c.wxART_MESSAGE_BOX wxART_OTHER = misc2c.wxART_OTHER wxART_ADD_BOOKMARK = misc2c.wxART_ADD_BOO...
def wxArtProvider_GetIcon(*_args, **_kwargs): val = apply(misc2c.wxArtProvider_GetIcon,_args,_kwargs) if val: val = wxIconPtr(val); val.thisown = 1 return val
eb67b7039dc8d6e13d4edc708de667abf66cee25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/eb67b7039dc8d6e13d4edc708de667abf66cee25/misc2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 4411, 2249, 67, 967, 5554, 30857, 67, 1968, 16, 2826, 67, 4333, 4672, 1244, 273, 2230, 12, 23667, 22, 71, 18, 27226, 4411, 2249, 67, 967, 5554, 16, 67, 1968, 16, 67, 4333, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7075, 4411, 2249, 67, 967, 5554, 30857, 67, 1968, 16, 2826, 67, 4333, 4672, 1244, 273, 2230, 12, 23667, 22, 71, 18, 27226, 4411, 2249, 67, 967, 5554, 16, 67, 1968, 16, 67, 4333, 13, ...
nsrv = [ r for r in [ popen("/usr/bin/svcs -H -o FMRI %s " % s).read().strip() for s in csrv ] if r ]
def Inventory(self): '''Do standard inventory plus debian extra service check''' Toolset.Inventory(self) allsrv = [ x.strip() for x in popen("/usr/bin/svcs -a -H -o SVC").readlines() ] csrv = self.cfg.findall(".//Service") nsrv = [ r for r in [ popen("/usr/bin/svcs -H -o FMRI %s " % s).read().strip() for s in csrv ] if...
273d5eb1899bf4ddc49c50281b54c1912e4e2c6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/273d5eb1899bf4ddc49c50281b54c1912e4e2c6a/Solaris.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24835, 12, 2890, 4672, 9163, 3244, 4529, 13086, 8737, 18202, 2779, 2870, 1156, 866, 26418, 13288, 542, 18, 15059, 12, 2890, 13, 777, 20818, 273, 306, 619, 18, 6406, 1435, 364, 619, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24835, 12, 2890, 4672, 9163, 3244, 4529, 13086, 8737, 18202, 2779, 2870, 1156, 866, 26418, 13288, 542, 18, 15059, 12, 2890, 13, 777, 20818, 273, 306, 619, 18, 6406, 1435, 364, 619, 316, ...
self.cols = self.col_iter()
def __array_finalize__(self, obj): self.rows = self.row_iter() self.cols = self.col_iter() self._mapcache = {} self.transpose_on_print = getattr(obj, 'transpose_on_print', False)
ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/ce23e8f09f38a59b3eda64bcd0f7dcdf9fa7b8d8/farray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1126, 67, 30343, 972, 12, 2890, 16, 1081, 4672, 365, 18, 3870, 273, 365, 18, 492, 67, 2165, 1435, 365, 6315, 1458, 2493, 273, 2618, 365, 18, 2338, 4150, 67, 265, 67, 1188, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1126, 67, 30343, 972, 12, 2890, 16, 1081, 4672, 365, 18, 3870, 273, 365, 18, 492, 67, 2165, 1435, 365, 6315, 1458, 2493, 273, 2618, 365, 18, 2338, 4150, 67, 265, 67, 1188, 273, ...
p_to = self.__build_addresses(p_to) l_message = self.__create_email(p_content, p_to, p_from, p_subject)
l_message = self.__create_email(p_content, self.__build_addresses(p_to), p_from, p_subject)
def sendEmail(self, p_content, p_to, p_from, p_subject): #sends a generic email try: if self.mail_server_name and self.mail_server_port and p_to: p_to = self.__build_addresses(p_to) l_message = self.__create_email(p_content, p_to, p_from, p_subject) server = smtplib.SMTP(self.mail_server_name, self.mail_server_port) se...
623fb81706b9afee50fb915f663d66c4a5135c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/623fb81706b9afee50fb915f663d66c4a5135c21/EmailTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4134, 12, 2890, 16, 293, 67, 1745, 16, 293, 67, 869, 16, 293, 67, 2080, 16, 293, 67, 7857, 4672, 468, 4661, 87, 279, 5210, 2699, 775, 30, 309, 365, 18, 4408, 67, 3567, 67, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4134, 12, 2890, 16, 293, 67, 1745, 16, 293, 67, 869, 16, 293, 67, 2080, 16, 293, 67, 7857, 4672, 468, 4661, 87, 279, 5210, 2699, 775, 30, 309, 365, 18, 4408, 67, 3567, 67, 52...
texti, changes = re.subn('(?:<noinclude>|)(%s)(?:</noinclude>|)' % replaceToPerform, '', text)
text, changes = re.subn('(?:<noinclude>|)(%s)(?:</noinclude>|)' % replaceToPerform, '', text)
def main(): """ Main Function """ # Loading the comments global categoryToCheck; global comment; global project_inserted if config.mylang not in project_inserted: wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!") wikipedia.stopme() # always, define a generator to...
ee0e8043a81d29434713ea59538028df356a2f9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/ee0e8043a81d29434713ea59538028df356a2f9a/blockpageschecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 12740, 4284, 3536, 468, 4444, 310, 326, 5678, 2552, 3150, 18126, 31, 2552, 2879, 31, 2552, 1984, 67, 6387, 329, 309, 642, 18, 4811, 4936, 486, 316, 1984, 67, 6387, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12740, 4284, 3536, 468, 4444, 310, 326, 5678, 2552, 3150, 18126, 31, 2552, 2879, 31, 2552, 1984, 67, 6387, 329, 309, 642, 18, 4811, 4936, 486, 316, 1984, 67, 6387, 329...
self.fill("yield")
self.write("(") self.write("yield")
def _Yield(self, t): self.fill("yield") if t.value: self.write(" (") self.dispatch(t.value) self.write(")")
124df8398dfcb176fbf568130864aad9c8aac103 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/124df8398dfcb176fbf568130864aad9c8aac103/unparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16348, 12, 2890, 16, 268, 4672, 365, 18, 2626, 2932, 2932, 13, 365, 18, 2626, 2932, 23604, 7923, 309, 268, 18, 1132, 30, 365, 18, 2626, 2932, 7566, 13, 365, 18, 10739, 12, 88, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16348, 12, 2890, 16, 268, 4672, 365, 18, 2626, 2932, 2932, 13, 365, 18, 2626, 2932, 23604, 7923, 309, 268, 18, 1132, 30, 365, 18, 2626, 2932, 7566, 13, 365, 18, 10739, 12, 88, 1...
for a in self.atoms_of_last_deleted_jig[:]: a.kill() else: for a in self.obj_doubleclicked.atoms[:]:
atoms = self.atoms_of_last_deleted_jig self.atoms_of_last_deleted_jig = [] if atoms: self.set_cmdname("Delete Jig's Atoms") env.history.message("Deleted jig's %d atoms" % len(atoms)) self.w.win_update() for a in atoms: a.kill() else: for a in self.obj_doubleclicked.atoms:
def jigLeftDouble(self): '''Jig <j> was double clicked, so select, unselect or delete it based on the current modkey. - If no modkey is pressed, pick the jig's atoms. - If Shift is pressed, pick the jig's atoms, adding them to the current selection. - If Ctrl is pressed, unpick the jig's atoms, removing them from the ...
f00885ba22f9024d0d0cd8d1b0ee31146a42c403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f00885ba22f9024d0d0cd8d1b0ee31146a42c403/selectMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 525, 360, 3910, 5265, 12, 2890, 4672, 9163, 46, 360, 411, 78, 34, 1703, 1645, 17688, 16, 1427, 2027, 16, 640, 4025, 578, 1430, 518, 2511, 603, 326, 783, 681, 856, 18, 300, 971, 1158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 525, 360, 3910, 5265, 12, 2890, 4672, 9163, 46, 360, 411, 78, 34, 1703, 1645, 17688, 16, 1427, 2027, 16, 640, 4025, 578, 1430, 518, 2511, 603, 326, 783, 681, 856, 18, 300, 971, 1158, ...
def test_empty_u(self): empty = path.join(path.dirname(__file__), "empty.vbs") startfile(str(empty, "mbcs")) startfile(str(empty, "mbcs"), "open")
def test_empty(self): empty = path.join(path.dirname(__file__), "empty.vbs") startfile(empty) startfile(empty, "open")
d0d16046a38b3b6b2f8c7cb9623e6d95ea4f4e10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d0d16046a38b3b6b2f8c7cb9623e6d95ea4f4e10/test_startfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5531, 12, 2890, 4672, 1008, 273, 589, 18, 5701, 12, 803, 18, 12287, 12, 972, 768, 972, 3631, 315, 5531, 18, 90, 2038, 7923, 787, 768, 12, 5531, 13, 787, 768, 12, 5531, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5531, 12, 2890, 4672, 1008, 273, 589, 18, 5701, 12, 803, 18, 12287, 12, 972, 768, 972, 3631, 315, 5531, 18, 90, 2038, 7923, 787, 768, 12, 5531, 13, 787, 768, 12, 5531, 16, ...
"No matching import kind %s for %s found"
__doc__ = "No matching import kind %s for %s found"
def __str__(self): return self.__doc__ %(self.args[0].itsPath, self.args[1]._repr_())
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, 8009, 1282, 743, 16, 365, 18, 1968, 63, 21, 65, 6315, 12715, 67, 10756, 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, 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, 8009, 1282, 743, 16, 365, 18, 1968, 63, 21, 65, 6315, 12715, 67, 10756, 2, -100, -100, -100, ...
return MimeType.fromString(self._type)
return http_headers.MimeType.fromString(self._type)
def contentType(self): if not hasattr(self, "_type"): self._initTypeAndEncoding() return MimeType.fromString(self._type)
1d660d516198b8b160c47e685d2b995ea92d8d88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1d660d516198b8b160c47e685d2b995ea92d8d88/static.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5064, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 16, 4192, 723, 6, 4672, 365, 6315, 2738, 559, 1876, 4705, 1435, 327, 30913, 18, 2080, 780, 12, 2890, 6315, 723, 13, 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, 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, 5064, 12, 2890, 4672, 309, 486, 3859, 12, 2890, 16, 4192, 723, 6, 4672, 365, 6315, 2738, 559, 1876, 4705, 1435, 327, 30913, 18, 2080, 780, 12, 2890, 6315, 723, 13, 2, -100, -100, -100,...
self._lock.acquire() try: path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) finally: self._lock.release()
path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) @synchronize
def mountfile(self, path, open_callable=None, info_callable=None): self._lock.acquire() try: path = normpath(path) self.mount_tree[path] = MountFS.FileMount(path, callable, info_callable) finally: self._lock.release()
77ca46c42be4a46e4e4c439912a93d2c5d968866 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5579/77ca46c42be4a46e4e4c439912a93d2c5d968866/mountfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 768, 12, 2890, 16, 589, 16, 1696, 67, 7293, 33, 7036, 16, 1123, 67, 7293, 33, 7036, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 589, 273, 20446, 12, 803, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 768, 12, 2890, 16, 589, 16, 1696, 67, 7293, 33, 7036, 16, 1123, 67, 7293, 33, 7036, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 589, 273, 20446, 12, 803, 13, 365, 18, ...
(cssclass, vararg_name, PARAM_JOIN))
(css_class, vararg_name, PARAM_JOIN))
def _func_signature(self, fname, fdoc, link=0, cssclass="sig"): """ @return: The HTML code for the function signature of the function with the given name and documentation. @param fname: The short name of the function. @type fname: C{string} @param fdoc: The documentation for the function. @type fdoc: L{objdoc.FuncDoc}...
7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 8195, 12, 2890, 16, 5299, 16, 284, 2434, 16, 1692, 33, 20, 16, 2873, 1017, 459, 1546, 7340, 6, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 326, 445, 3372, 434, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 8195, 12, 2890, 16, 5299, 16, 284, 2434, 16, 1692, 33, 20, 16, 2873, 1017, 459, 1546, 7340, 6, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 326, 445, 3372, 434, 326...
self._id = len(configlet_tree)
self._id = configlet_tree.generateUniqueId()
def __init__(self,autoAdd=True,**kw): """Stores values from '*kw' into self.__dict__ and add the newly instantiated object into configlets.configlet_tree if 'autoAdd' says so."""
e3c5fd64f18cca9dd9ff457f6c8c23278a4e5269 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e3c5fd64f18cca9dd9ff457f6c8c23278a4e5269/configlets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6079, 986, 33, 5510, 16, 636, 9987, 4672, 3536, 13125, 924, 628, 14609, 9987, 11, 1368, 365, 16186, 1576, 972, 471, 527, 326, 10894, 17651, 733, 1368, 642,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6079, 986, 33, 5510, 16, 636, 9987, 4672, 3536, 13125, 924, 628, 14609, 9987, 11, 1368, 365, 16186, 1576, 972, 471, 527, 326, 10894, 17651, 733, 1368, 642,...
def heading(self, title, fgcol, bgcol, extras=''): """Format a page heading.""" return """ <p><table width="100%%" cellspacing=0 cellpadding=0 border=0> <tr bgcolor="%s"><td>&nbsp;</td> <td valign=bottom><small><small><br></small></small ><font color="%s" face="helvetica"><br>&nbsp;%s</font></td ><td align=right valign...
def small(self, text): return '<small>%s</small>' % text def grey(self, text): return '<font color="
def heading(self, title, fgcol, bgcol, extras=''): """Format a page heading.""" return """
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11053, 12, 2890, 16, 2077, 16, 10186, 1293, 16, 7611, 1293, 16, 11875, 2218, 11, 4672, 3536, 1630, 279, 1363, 11053, 12123, 327, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 11053, 12, 2890, 16, 2077, 16, 10186, 1293, 16, 7611, 1293, 16, 11875, 2218, 11, 4672, 3536, 1630, 279, 1363, 11053, 12123, 327, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return ProductHelp('Help', self.id).__of__(self)
if not hasattr(self, 'Help'): self._setObject('Help', ProductHelp('Help', self.id)) return self.Help
def getProductHelp(self): """Returns the ProductHelp object associated with the Product. """ from HelpSys.HelpSys import ProductHelp return ProductHelp('Help', self.id).__of__(self)
52797a27af5df1185e182a805f422a8f59601ead /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9658/52797a27af5df1185e182a805f422a8f59601ead/Product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15880, 6696, 12, 2890, 4672, 3536, 1356, 326, 8094, 6696, 733, 3627, 598, 326, 8094, 18, 3536, 628, 11288, 12712, 18, 6696, 12712, 1930, 8094, 6696, 327, 8094, 6696, 2668, 6696, 2187, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15880, 6696, 12, 2890, 4672, 3536, 1356, 326, 8094, 6696, 733, 3627, 598, 326, 8094, 18, 3536, 628, 11288, 12712, 18, 6696, 12712, 1930, 8094, 6696, 327, 8094, 6696, 2668, 6696, 2187, 365,...
if child['left'] <= next_left: raise Exception('Record (%d): left %d <= next left %d' % \ (child['id'], child['left'], next_left))
assert child['left'] > next_left, \ 'Record (%d): left %d <= next left %d' % \ (child['id'], child['left'], next_left)
def CheckTree(self, parent_id=False, left=0, right=0): child_ids = self.mptt.search([ ('parent', '=', parent_id), ], 0, None, None, CONTEXT) childs = self.mptt.read(child_ids, ['left', 'right'], CONTEXT) childs.sort(lambda x, y: cmp(child_ids.index(x['id']), child_ids.index(y['id']))) for child in childs: if child['lef...
2a4b1977cf90ff0b5c4f59abda66e9630089cd32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/2a4b1977cf90ff0b5c4f59abda66e9630089cd32/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2471, 12, 2890, 16, 982, 67, 350, 33, 8381, 16, 2002, 33, 20, 16, 2145, 33, 20, 4672, 1151, 67, 2232, 273, 365, 18, 81, 337, 88, 18, 3072, 3816, 7707, 2938, 2187, 15196, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2471, 12, 2890, 16, 982, 67, 350, 33, 8381, 16, 2002, 33, 20, 16, 2145, 33, 20, 4672, 1151, 67, 2232, 273, 365, 18, 81, 337, 88, 18, 3072, 3816, 7707, 2938, 2187, 15196, 2187, ...
self.paragraph_style_stack.append('rststyle-enumitem')
self.list_style_stack.append('rststyle-enumitem')
def visit_bullet_list(self, node): #ipshell('At visit_bullet_list') if self.in_table_of_contents: if node.has_key('classes') and \ 'auto-toc' in node.attributes['classes']: el = SubElement(self.current_element, 'text:list', attrib={ 'text:style-name': 'rststyle-tocenumlist', }) self.paragraph_style_stack.append('rststy...
70476cda555c9cc167786150a5d65f22dd78a366 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/70476cda555c9cc167786150a5d65f22dd78a366/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 468, 625, 10304, 2668, 861, 3757, 67, 70, 19994, 67, 1098, 6134, 309, 365, 18, 267, 67, 2121, 67, 792, 67, 3980, 30, 309, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 70, 19994, 67, 1098, 12, 2890, 16, 756, 4672, 468, 625, 10304, 2668, 861, 3757, 67, 70, 19994, 67, 1098, 6134, 309, 365, 18, 267, 67, 2121, 67, 792, 67, 3980, 30, 309, 756,...
if cf in RR: if not 0 < cf < 1: msg = "The argument cf (=%s) must be in ]0,1[."%cf raise NotImplementedError, msg
if slope in RR: if not 0 < slope < 1: msg = "The argument slope (=%s) must be in ]0,1[."%slope raise ValueError, msg
sage: def cf():
a5b928a04b88cb182372bb9a126740cba8c57ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5b928a04b88cb182372bb9a126740cba8c57ec9/word_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 6080, 13332, 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, ...
[ 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, 272, 410, 30, 1652, 6080, 13332, 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, -1...
'toplot' -- the thing to plot: a 2-d array with dimensions (numx,numy), OR a callable object for which toplot(x,y) returns a number.
'data' -- the data to plot: a 2-d array with dimensions (numx,numy).
def __init__(self, toplot, xvals=None, yvals=None, binary=1, inline=_unset, **keyw): """GridData constructor.
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, 1001, 2738, 972, 12, 2890, 16, 358, 4032, 16, 619, 4524, 33, 7036, 16, 677, 4524, 33, 7036, 16, 3112, 33, 21, 16, 6370, 33, 67, 18579, 16, 2826, 856, 91, 4672, 3536, 6313, 751, 3885,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 358, 4032, 16, 619, 4524, 33, 7036, 16, 677, 4524, 33, 7036, 16, 3112, 33, 21, 16, 6370, 33, 67, 18579, 16, 2826, 856, 91, 4672, 3536, 6313, 751, 3885,...
def _compute_at_least(self, k): r"""Ensure that len(self._b) >= k""" while len(self._b) <= k: if self.is_powerful(self._n): self._b.append(self._n) self._n += 1 def _eval(self, n): self._compute_at_least(n) return self._b[n-1]
def _precompute(self, how_many=10000): try: self._b n = self._n except AttributeError: self._b = [] n = 1 self._n = n self._b += [i for i in range(self._n, self._n+how_many) if self.is_powerful(i)] self._n += how_many def _eval(self, n): try: return self._b[n-1] except (AttributeError, IndexError): while len(self._b) ...
def _compute_at_least(self, k): r"""Ensure that len(self._b) >= k""" while len(self._b) <= k: if self.is_powerful(self._n): self._b.append(self._n) self._n += 1
6cd630f10980e0438cee073adb4157715e7a0c79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6cd630f10980e0438cee073adb4157715e7a0c79/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 270, 67, 16446, 12, 2890, 16, 417, 4672, 436, 8395, 12512, 716, 562, 12, 2890, 6315, 70, 13, 1545, 417, 8395, 1323, 562, 12, 2890, 6315, 70, 13, 1648, 417, 30, 309, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 270, 67, 16446, 12, 2890, 16, 417, 4672, 436, 8395, 12512, 716, 562, 12, 2890, 6315, 70, 13, 1545, 417, 8395, 1323, 562, 12, 2890, 6315, 70, 13, 1648, 417, 30, 309, 36...
def convertToICUtzinfo(dt):
tzid_mapping = {} def convertToICUtzinfo(dt, view=None):
def convertToICUtzinfo(dt): """ This method returns a C{datetime} whose C{tzinfo} field (if any) is an instance of the ICUtzinfo class. @param dt: The C{datetime} whose C{tzinfo} field we want to convert to an ICUtzinfo instance. @type dt: C{datetime} """ oldTzinfo = dt.tzinfo if oldTzinfo is not None: def getICUIns...
ccabd5ee45f0dab450c75514d4c4c47d41a0b87c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ccabd5ee45f0dab450c75514d4c4c47d41a0b87c/ICalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6016, 350, 67, 6770, 273, 2618, 225, 1652, 8137, 2871, 57, 12994, 1376, 12, 7510, 16, 1476, 33, 7036, 4672, 3536, 1220, 707, 1135, 279, 385, 95, 6585, 97, 8272, 385, 95, 12994, 1376, 97, 652...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6016, 350, 67, 6770, 273, 2618, 225, 1652, 8137, 2871, 57, 12994, 1376, 12, 7510, 16, 1476, 33, 7036, 4672, 3536, 1220, 707, 1135, 279, 385, 95, 6585, 97, 8272, 385, 95, 12994, 1376, 97, 652...
if len( sys.argv ) <= 2: print HELP_STR
if len( sys.argv ) <= 2: print HELP_STR return
def main(): global HELP_STR mode = 'exec' if len( sys.argv ) <= 1: print HELP_STR else: if sys.argv[1] == '--print-only': mode = 'print' if len( sys.argv ) <= 2: print HELP_STR else: wm_name = sys.argv[2] start_idx = 2 else: wm_name = sys.argv[1] start_idx = 1 new_args = process( start_idx ) result_str = wm_name + ' ' ...
bbb1218fa2c6ae49ede784851646ba9c3fa589b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/255/bbb1218fa2c6ae49ede784851646ba9c3fa589b8/old2new.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 22557, 52, 67, 3902, 1965, 273, 296, 4177, 11, 309, 562, 12, 2589, 18, 19485, 262, 1648, 404, 30, 1172, 22557, 52, 67, 3902, 469, 30, 309, 2589, 18, 19485, 63, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 22557, 52, 67, 3902, 1965, 273, 296, 4177, 11, 309, 562, 12, 2589, 18, 19485, 262, 1648, 404, 30, 1172, 22557, 52, 67, 3902, 469, 30, 309, 2589, 18, 19485, 63, 21, ...
print >>sys.stderr, str(err.msg) print >>sys.stderr, "\t for help use --help"
def main(argv=None): if argv is None: argv = sys.argv try: try: opts, args = getopt.getopt(argv[1:], "hw:l:c:f:", ["help","output=","word=","line=","column=","filename="]) except getopt.error, msg: raise Usage(msg) # option processing tmColumn = None tmLine = None tmWord = None tmFilename = None for option, value in o...
e32eb46142c2608e898fabe06a6110e7c7609d8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12650/e32eb46142c2608e898fabe06a6110e7c7609d8d/pythonCompletion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 19485, 63, 21, 30, 6487, 315...
error_handler=log.err)
error_handler=d.errback)
def find_contacts_cb(reply): self.assertEqual(len(reply), 1) reply = list(reply[0]) self.assertIn(name, reply) self.assertIn(number, reply) self.assertIn(index, reply) # leave everything as found
45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20777, 67, 7358, 12, 10629, 4672, 365, 18, 11231, 5812, 12, 1897, 12, 10629, 3631, 404, 13, 4332, 273, 666, 12, 10629, 63, 20, 5717, 365, 18, 11231, 382, 12, 529, 16, 4332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 20777, 67, 7358, 12, 10629, 4672, 365, 18, 11231, 5812, 12, 1897, 12, 10629, 3631, 404, 13, 4332, 273, 666, 12, 10629, 63, 20, 5717, 365, 18, 11231, 382, 12, 529, 16, 4332, ...
view = self.renderer(self.portal.folder2.file21, assignment=navigation.Assignment(root='/'))
view = self.renderer(self.portal.folder2.file21, assignment=navigation.Assignment(root='/', topLevel=0))
def testRootIsPortal(self): view = self.renderer(self.portal.folder2.file21, assignment=navigation.Assignment(root='/')) tree = view.getNavTree() self.failUnless(tree) self.assertEqual(tree['children'][-1]['item'].getPath(), '/plone/folder2')
6652c75d9b7960889a857c61d21c51b4e3341951 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12194/6652c75d9b7960889a857c61d21c51b4e3341951/test_navigation_portlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2375, 2520, 24395, 12, 2890, 4672, 1476, 273, 365, 18, 14374, 12, 2890, 18, 24386, 18, 5609, 22, 18, 768, 5340, 16, 6661, 33, 19537, 18, 7729, 12, 3085, 2218, 19, 2187, 21289, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2375, 2520, 24395, 12, 2890, 4672, 1476, 273, 365, 18, 14374, 12, 2890, 18, 24386, 18, 5609, 22, 18, 768, 5340, 16, 6661, 33, 19537, 18, 7729, 12, 3085, 2218, 19, 2187, 21289, 33...
self.add_many(self.src, self.dbin)
self.add(self.src, self.dbin)
def __init__(self, filename): gobject.GObject.__init__(self)
f50c30441c3ee3195f1b49504feac72564ca4532 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1020/f50c30441c3ee3195f1b49504feac72564ca4532/gstfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 4672, 314, 1612, 18, 43, 921, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._view.select(item) self.event_emit("item.selected", item)
self.select(item)
def _item_select_cb(self, list, it, item, *args, **kwargs): if self._selected != item: self._view.select(item) self.event_emit("item.selected", item)
091fade6c5bf12e83bef6e504b4f7081f4277810 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/091fade6c5bf12e83bef6e504b4f7081f4277810/clist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1726, 67, 4025, 67, 7358, 12, 2890, 16, 666, 16, 518, 16, 761, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 365, 6315, 8109, 480, 761, 30, 365, 6315, 1945, 18, 4025, 12, 1726, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1726, 67, 4025, 67, 7358, 12, 2890, 16, 666, 16, 518, 16, 761, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 365, 6315, 8109, 480, 761, 30, 365, 6315, 1945, 18, 4025, 12, 1726, 13, ...
aud = bus.get_object('org.atheme.audacious', '/org/atheme/audacious')
aud = get_aud() if not aud: return None
def command_np(word, word_eol, userdata): aud = bus.get_object('org.atheme.audacious', '/org/atheme/audacious') # this seems to be best, probably isn't! length = "stream" if aud.SongLength(aud.Position()) > 0: length = "%d:%02d" % (aud.SongLength(aud.Position()) / 60, aud.SongLength(aud.Position()) % 60) xchat.comman...
55867303cfecca45c6c4cfd5534b07074450dcad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11853/55867303cfecca45c6c4cfd5534b07074450dcad/xchat-audacious.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 6782, 12, 1095, 16, 2076, 67, 30951, 16, 21518, 4672, 20232, 273, 336, 67, 24901, 1435, 309, 486, 20232, 30, 327, 599, 225, 468, 333, 12001, 358, 506, 3796, 16, 8656, 5177, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 6782, 12, 1095, 16, 2076, 67, 30951, 16, 21518, 4672, 20232, 273, 336, 67, 24901, 1435, 309, 486, 20232, 30, 327, 599, 225, 468, 333, 12001, 358, 506, 3796, 16, 8656, 5177, 1...
parent = self while not isinstance(parent, Schema): parent = parent._parent()
parent = GetSchema(self)
type_def = None
0d7ffc47ba57941ac117e02f215f8810ac99cacc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/0d7ffc47ba57941ac117e02f215f8810ac99cacc/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 618, 67, 536, 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, 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, 618, 67, 536, 273, 599, 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, -100,...