rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
def makeDirectory(self,path,uid=0,gid=0,status=0):
def makeDirectory(self,path,credDict,status=0):
def makeDirectory(self,path,uid=0,gid=0,status=0): """Create a new directory. The return value is the dictionary containing all the parameters of the newly created directory """
7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8/FileCatalogDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2853, 12, 2890, 16, 803, 16, 20610, 5014, 16, 2327, 33, 20, 4672, 3536, 1684, 279, 394, 1867, 18, 1021, 327, 460, 353, 326, 3880, 4191, 777, 326, 1472, 434, 326, 10894, 2522, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 2853, 12, 2890, 16, 803, 16, 20610, 5014, 16, 2327, 33, 20, 4672, 3536, 1684, 279, 394, 1867, 18, 1021, 327, 460, 353, 326, 3880, 4191, 777, 326, 1472, 434, 326, 10894, 2522, 186...
return {'confirmed': self.getQForUser(Q(userbit__qsc = qsc) & Q(userbit__verb = verb)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached()) &\
retVal = {'confirmed': self.getQForUser(Q(userbit__qsc = qsc, userbit__verb = verb)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached()) &\
def students(self, QObject = False): verb = GetNode('V/Flags/Public') verb2 = GetNode('V/Flags/Registration/Attended') STUDREP_VERB = GetNode('V/Flags/UserRole/StudentRep') STUDREP_QSC = GetNode('Q') qsc = GetNode("/".join(self.program_anchor_cached().tree_encode()) + "/Confirmation") qsc_waitlist = GetNode("/".join...
7c4601767a8a13f15936b0af4c967b6ceeb3c5a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/7c4601767a8a13f15936b0af4c967b6ceeb3c5a3/studentregcore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10068, 4877, 12, 2890, 16, 2238, 921, 273, 1083, 4672, 6405, 273, 968, 907, 2668, 58, 19, 5094, 19, 4782, 6134, 6405, 22, 273, 968, 907, 2668, 58, 19, 5094, 19, 7843, 19, 3075, 3934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10068, 4877, 12, 2890, 16, 2238, 921, 273, 1083, 4672, 6405, 273, 968, 907, 2668, 58, 19, 5094, 19, 4782, 6134, 6405, 22, 273, 968, 907, 2668, 58, 19, 5094, 19, 7843, 19, 3075, 3934, ...
a : array_like of string_ or unicode_
a : array_like of str or unicode
def rjust(a, width): """ Return an array with the elements of `a` right-justified in a string of length `width`.
05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 3732, 12, 69, 16, 1835, 4672, 3536, 2000, 392, 526, 598, 326, 2186, 434, 1375, 69, 68, 2145, 17, 3732, 939, 316, 279, 533, 434, 769, 1375, 2819, 8338, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 3732, 12, 69, 16, 1835, 4672, 3536, 2000, 392, 526, 598, 326, 2186, 434, 1375, 69, 68, 2145, 17, 3732, 939, 316, 279, 533, 434, 769, 1375, 2819, 8338, 2, -100, -100, -100, -100, ...
except error.ConnectionDone, err:
except Exception, err:
def checkAccess(host, port=80, useSSL=False, username=None, password=None, path=None, repositoryView=None): """ Check the permissions for a webdav account by reading and writing to that server. Returns a tuple (result code, reason), where result code indicates the level of permissions: CANT_CONNECT, NO_ACCESS, READ_ON...
cfdda1277d99134eaad3d82e1f968acd7c9c4387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cfdda1277d99134eaad3d82e1f968acd7c9c4387/WebDAV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28484, 12, 2564, 16, 1756, 33, 3672, 16, 999, 6745, 33, 8381, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 589, 33, 7036, 16, 3352, 1767, 33, 7036, 4672, 3536, 2073, 326, 4371, 364, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28484, 12, 2564, 16, 1756, 33, 3672, 16, 999, 6745, 33, 8381, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 589, 33, 7036, 16, 3352, 1767, 33, 7036, 4672, 3536, 2073, 326, 4371, 364, 2...
s += write('"')
r += cls.write('"')
def opening(self, node): s = u'' if node.get("constantType") == "string": if node.get("detail") == "singlequotes": s += write("'") else: s += write('"') s += write(node.get("value")) if node.get("detail") == "singlequotes": s += write("'") else: s += write('"') else: s += write(node.get("value")) return s
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 309, 756, 18, 588, 2932, 14384, 559, 7923, 422, 315, 1080, 6877, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 309, 756, 18, 588, 2932, 14384, 559, 7923, 422, 315, 1080, 6877, 309, 756, 18, 588, 2932, 8992, 7923, 422, 315, 7526, 18653, 6877, ...
self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()])
self.setSessionInfoTrans(MESSAGE_SAVEDCHANGES, date=self.utGetTodayDate())
def admin_deleteratelist(self, ids=[], REQUEST=None): """ """ self.manage_delObjects(self.utConvertToList(ids)) if REQUEST: self.setSessionInfo([MESSAGE_SAVEDCHANGES % self.utGetTodayDate()]) REQUEST.RESPONSE.redirect('%s/admin_ratelists_html' % self.absolute_url())
9ebbed155972a1637136ab18d27c45686fe46b10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/9ebbed155972a1637136ab18d27c45686fe46b10/NyConsultation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 67, 19003, 264, 270, 5449, 12, 2890, 16, 3258, 22850, 6487, 12492, 33, 7036, 4672, 3536, 3536, 365, 18, 12633, 67, 3771, 4710, 12, 2890, 18, 322, 2723, 25772, 12, 2232, 3719, 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, 3981, 67, 19003, 264, 270, 5449, 12, 2890, 16, 3258, 22850, 6487, 12492, 33, 7036, 4672, 3536, 3536, 365, 18, 12633, 67, 3771, 4710, 12, 2890, 18, 322, 2723, 25772, 12, 2232, 3719, 309, ...
sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()]
sage: [F4(fw).branch(C3,rule="levi") for fw in F4.fundamental_weights()]
def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will...
18e17f56d0c583cdb129ede5947113fbc43df9f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/18e17f56d0c583cdb129ede5947113fbc43df9f1/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3803, 67, 91, 402, 80, 67, 11560, 12, 24010, 16, 534, 16, 348, 16, 1720, 1546, 1886, 6, 4672, 436, 8395, 432, 15449, 310, 1720, 19605, 326, 9318, 434, 27851, 628, 279, 511, 1385, 1041,...
timestamp = float(timestamp)
timestamp = float(pprz_tstamp)
def ProcessLine(self, line): fields = line.strip().split(' ') [timestamp, pprz_tstamp, ac_id, msg_id] = fields[0:4] data_fields = map(lambda x: chr(int(x, 16)), fields[5:]) ac_id = int(ac_id) timestamp = float(timestamp) msg_id = int(msg_id)
dd090c00ef24858430fd717a044d57929c58a505 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14091/dd090c00ef24858430fd717a044d57929c58a505/onboard_log_transform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 1670, 12, 2890, 16, 980, 4672, 1466, 273, 980, 18, 6406, 7675, 4939, 2668, 8624, 306, 5508, 16, 293, 683, 94, 67, 88, 14317, 16, 1721, 67, 350, 16, 1234, 67, 350, 65, 273, 1466...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 1670, 12, 2890, 16, 980, 4672, 1466, 273, 980, 18, 6406, 7675, 4939, 2668, 8624, 306, 5508, 16, 293, 683, 94, 67, 88, 14317, 16, 1721, 67, 350, 16, 1234, 67, 350, 65, 273, 1466...
x = int_event_id // 1000000000
a = int_event_id // 1000000000
def get_id_parts(self): """ Return the three pieces of the int_8s-style event_id. """ int_event_id = int(self.event_id) x = int_event_id // 1000000000 slidenum = (int_event_id % 1000000000) // 100000 y = int_event_id % 100000 return x, slidenum, y
6a3cf9780bb8ded93d5999863ebf0eb1fe222357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/6a3cf9780bb8ded93d5999863ebf0eb1fe222357/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 67, 6019, 12, 2890, 4672, 3536, 2000, 326, 8925, 10167, 434, 326, 509, 67, 28, 87, 17, 4060, 871, 67, 350, 18, 3536, 509, 67, 2575, 67, 350, 273, 509, 12, 2890, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 67, 6019, 12, 2890, 4672, 3536, 2000, 326, 8925, 10167, 434, 326, 509, 67, 28, 87, 17, 4060, 871, 67, 350, 18, 3536, 509, 67, 2575, 67, 350, 273, 509, 12, 2890, 18, 2...
(function_content, last_step, action_score) = print_function_calls( req=req,
(function_content, last_step, action_score, rn) = \ print_function_calls(req=req,
def endaction(req, c=CFG_SITE_NAME, ln=CFG_SITE_LANG, doctype="", act="", startPg=1, access="", mainmenu="", fromdir="", nextPg="", nbPg="", curpage=1, step=1, mode="U"): """Having filled-in the WebSubmit form created for metadata by the interface function, the user clicks a button to either "finish the submission" or ...
217fdbc8173904f3e1bec09360d062f213665801 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/217fdbc8173904f3e1bec09360d062f213665801/websubmit_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 1128, 12, 3658, 16, 276, 33, 19727, 67, 20609, 67, 1985, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 2006, 1546, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 1128, 12, 3658, 16, 276, 33, 19727, 67, 20609, 67, 1985, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 16, 24909, 1546, 3113, 1328, 1546, 3113, 787, 27265, 33, 21, 16, 2006, 1546, 31...
"""Equal if all attributes and index are equal"""
"""Equal if all attributes are equal"""
def __eq__(self, ea): """Equal if all attributes and index are equal""" assert isinstance(ea, ExtendedAttributes) return ea.index == self.index and ea.attr_dict == self.attr_dict
3d64cb44126cdead28a88af81e6fdfb5a035c6f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/3d64cb44126cdead28a88af81e6fdfb5a035c6f2/eas_acls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 24164, 4672, 3536, 5812, 309, 777, 1677, 854, 3959, 8395, 1815, 1549, 12, 24852, 16, 14094, 2498, 13, 327, 24164, 18, 1615, 422, 365, 18, 1615, 471, 24164...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 24164, 4672, 3536, 5812, 309, 777, 1677, 854, 3959, 8395, 1815, 1549, 12, 24852, 16, 14094, 2498, 13, 327, 24164, 18, 1615, 422, 365, 18, 1615, 471, 24164...
print "source", nodelist[-1]
def factor(self, nodelist): elt = nodelist[0] t = elt[0] print "source", nodelist[-1] node = self.com_node(nodelist[-1]) # need to handle (unary op)constant here... if t == token.PLUS: node = UnaryAdd(node) node.lineno = elt[2] elif t == token.MINUS: print node node = UnarySub(node) node.lineno = elt[2] elif t == token...
20d48748eb8fe08a35d56bb93a2f3178f7eab3e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20d48748eb8fe08a35d56bb93a2f3178f7eab3e8/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 30068, 4672, 11572, 273, 30068, 63, 20, 65, 268, 273, 11572, 63, 20, 65, 756, 273, 365, 18, 832, 67, 2159, 12, 82, 24221, 18919, 21, 5717, 468, 1608, 358, 1640, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 16, 30068, 4672, 11572, 273, 30068, 63, 20, 65, 268, 273, 11572, 63, 20, 65, 756, 273, 365, 18, 832, 67, 2159, 12, 82, 24221, 18919, 21, 5717, 468, 1608, 358, 1640, 2...
if len(self.msgcache) == 0: parent.thread_timer.start() return msg = self.msgcache.pop(0) irc.queueMsg(msg)
if len(self.msgcache): msg = self.msgcache.pop(0) if irc: irc.queueMsg(msg)
def dequeue(self, parent, irc): parent.thread_timer.cancel() parent.thread_timer = threading.Timer(30.0, dequeue, args=(parent, irc)) if len(self.msgcache) == 0: parent.thread_timer.start() return msg = self.msgcache.pop(0) irc.queueMsg(msg) parent.thread_timer.start()
353e8a3cb6570f78f25b8d8c4070231630fbefe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/353e8a3cb6570f78f25b8d8c4070231630fbefe3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29964, 12, 2890, 16, 982, 16, 277, 1310, 4672, 982, 18, 5930, 67, 12542, 18, 10996, 1435, 982, 18, 5930, 67, 12542, 273, 17254, 18, 6777, 12, 5082, 18, 20, 16, 29964, 16, 833, 28657, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29964, 12, 2890, 16, 982, 16, 277, 1310, 4672, 982, 18, 5930, 67, 12542, 18, 10996, 1435, 982, 18, 5930, 67, 12542, 273, 17254, 18, 6777, 12, 5082, 18, 20, 16, 29964, 16, 833, 28657, ...
ndx = self.getview(1).append(rowdict)
ndx = self.getview(READWRITE).append(rowdict)
def create_inner(self, **propvalues): rowdict = {} rowdict['id'] = newid = self.maxid self.maxid += 1 ndx = self.getview(1).append(rowdict) propvalues['#ISNEW'] = 1 try: self.set(str(newid), **propvalues) except Exception: self.maxid -= 1 raise return str(newid)
8a26f1933d2876e464fe11a666ad363c83f287dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8a26f1933d2876e464fe11a666ad363c83f287dd/back_metakit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7872, 12, 2890, 16, 2826, 5986, 2372, 4672, 1027, 1576, 273, 2618, 1027, 1576, 3292, 350, 3546, 273, 394, 350, 273, 365, 18, 1896, 350, 365, 18, 1896, 350, 1011, 404, 5346, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7872, 12, 2890, 16, 2826, 5986, 2372, 4672, 1027, 1576, 273, 2618, 1027, 1576, 3292, 350, 3546, 273, 394, 350, 273, 365, 18, 1896, 350, 365, 18, 1896, 350, 1011, 404, 5346, 92...
return self.start_on_file(path, is_root=is_root, link_level=link_level)
return self.preprocess(raw)
def start_on_file(self, path, is_root=True, link_level=0): self.css = HTMLConverter.CSS.copy() self.pseudo_css = self.override_pcss.copy() self.css.update(self.override_css) path = os.path.abspath(path) os.chdir(os.path.dirname(path)) self.file_name = os.path.basename(path) self.logger.info('Processing %s\n\tParsing H...
6cfd3561e602c55c68be84253152a73d2c9a11bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/6cfd3561e602c55c68be84253152a73d2c9a11bb/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 265, 67, 768, 12, 2890, 16, 589, 16, 353, 67, 3085, 33, 5510, 16, 1692, 67, 2815, 33, 20, 4672, 365, 18, 5212, 273, 3982, 5072, 18, 10276, 18, 3530, 1435, 365, 18, 26023, ...
tablesToDelete.insert( 0, "`type%s`" % typeName ) tablesToDelete.insert( 0, "`bucket%s`" % typeName )
tablesToDelete.insert( 0, "`%s`" % self.__getTableName( "type", typeName ) ) tablesToDelete.insert( 0, "`%s`" % self.__getTableName( "bucket", typeName ) )
def deleteType( self, typeName ): """ Deletes a type """ if typeName not in self.dbCatalog: return S_ERROR( "Type %s does not exist" % typeName ) gLogger.info( "Deleting type", typeName ) tablesToDelete = [] for keyField in self.dbCatalog[ typeName ][ 'keys' ]: self.dbKeys[ keyField ] -= 1 if self.dbKeys[ keyField ] ==...
7663d95782c4987a99eb5394bb9f465c2ab982d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/7663d95782c4987a99eb5394bb9f465c2ab982d5/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 559, 12, 365, 16, 8173, 262, 30, 3536, 17973, 279, 618, 3536, 309, 8173, 486, 316, 365, 18, 1966, 9769, 30, 327, 348, 67, 3589, 12, 315, 559, 738, 87, 1552, 486, 1005, 6, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 559, 12, 365, 16, 8173, 262, 30, 3536, 17973, 279, 618, 3536, 309, 8173, 486, 316, 365, 18, 1966, 9769, 30, 327, 348, 67, 3589, 12, 315, 559, 738, 87, 1552, 486, 1005, 6, 738, ...
os.system("logger %s could not find one or more of fits key words IMGID, BINNING and OBJECT in hdulist of %s" % (sys.argv[0], self.fits_tmp_path))
os.system("logger %s could not find one or more of fits key words IMGID, BINNING and OBJECT in hdulist of %s" % (sys.argv[0], sys.argv[1]))
def main(self): if len(sys.argv) == 1: print 'Usage: %s <fits filename>' % (sys.argv[0]) os.system("logger %s Usage: %s fits_filename" % (sys.argv[0], sys.argv[0])) sys.exit(1)
4a56b4e6b277db0262673993b0ca1a89e734dbf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6334/4a56b4e6b277db0262673993b0ca1a89e734dbf3/img_astrometry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 562, 12, 9499, 18, 19485, 13, 422, 404, 30, 1172, 296, 5357, 30, 738, 87, 225, 411, 18352, 1544, 1870, 738, 261, 9499, 18, 19485, 63, 20, 5717, 1140, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 562, 12, 9499, 18, 19485, 13, 422, 404, 30, 1172, 296, 5357, 30, 738, 87, 225, 411, 18352, 1544, 1870, 738, 261, 9499, 18, 19485, 63, 20, 5717, 1140, 18, 4...
WHERE ur.id_accROLE = '%s' AND u.email RLIKE '%s' ORDER BY u.email """ % (id_role, email_user_pattern))
WHERE ur.id_accROLE = %s AND u.email RLIKE %s ORDER BY u.email """, (id_role, email_user_pattern))
def perform_adduserrole(req, id_role='0', email_user_pattern='', id_user='0', confirm=0): """create connection between user and role. id_role - id of the role to add user to email_user_pattern - search for users using this pattern id_user - id of user to add to the role. """ (auth_code, auth_message) = is_adminuser...
6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 1289, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 2640, 1459, 3086...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 1289, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 2640, 1459, 3086...
'author':'Pingback',
'author':'Pingback from %s' % source_page.title,
def pingback(request, source, target): source_file = urllib.urlopen(source.split('#')[0]) source_page = parser() source_page.feed(source_file.read()) source_file.close() if source_page.title == "": source_page.title = source if target in source_page.hrefs: target_file = fileFor(request, target) body = '' try: from r...
a54b0d86cfdfcd0c8a8f28e5aeb41ca3b0bd4b41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/a54b0d86cfdfcd0c8a8f28e5aeb41ca3b0bd4b41/pingback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10087, 823, 12, 2293, 16, 1084, 16, 1018, 4672, 1084, 67, 768, 273, 11527, 18, 295, 18589, 12, 3168, 18, 4939, 2668, 7, 6134, 63, 20, 5717, 1084, 67, 2433, 273, 2082, 1435, 1084, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10087, 823, 12, 2293, 16, 1084, 16, 1018, 4672, 1084, 67, 768, 273, 11527, 18, 295, 18589, 12, 3168, 18, 4939, 2668, 7, 6134, 63, 20, 5717, 1084, 67, 2433, 273, 2082, 1435, 1084, 67, ...
timetable[count-1][3])
timetable[count-1][3])
def createTimetable(): f = open("timetable.csv", "w") print >> f, '''"2004-fall","default"
a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/a1ba8dcd482f9a6a93ef17ceb8b89a53fa72b1ab/datagen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10178, 278, 429, 13332, 284, 273, 1696, 2932, 8584, 278, 429, 18, 6715, 3113, 315, 91, 7923, 1172, 1671, 284, 16, 875, 4970, 6976, 24, 17, 25602, 15937, 1886, 6, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10178, 278, 429, 13332, 284, 273, 1696, 2932, 8584, 278, 429, 18, 6715, 3113, 315, 91, 7923, 1172, 1671, 284, 16, 875, 4970, 6976, 24, 17, 25602, 15937, 1886, 6, 2, -100, -100, -1...
def allpages(self, start='!', namespace=0, includeredirects=True,
def allpages(self, start='!', namespace=None, includeredirects=True,
def allpages(self, start='!', namespace=0, includeredirects=True, throttle=True): """ Yield all Pages in alphabetical order.
40eeff9565c351e34a7eb7b5e34c39fd7711bbb6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/40eeff9565c351e34a7eb7b5e34c39fd7711bbb6/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 7267, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 7036, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 316, 10877, 1706, 1353, 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, 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, 777, 7267, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 7036, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 316, 10877, 1706, 1353, 18, ...
ix += 1
def AddResult(self, msg, user, country): if user in self.users: return if user not in self.Searches.users.keys(): if user in self.frame.np.users.keys(): self.Searches.users[user] = self.frame.np.users[user].status else: self.Searches.users[user] = 0 self.frame.np.queue.put(slskmessages.AddUser(user)) if user == self.fr...
65e3478c4cbff73585cc7f81b31f81ad37fb8754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/65e3478c4cbff73585cc7f81b31f81ad37fb8754/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1253, 12, 2890, 16, 1234, 16, 729, 16, 5251, 4672, 309, 729, 316, 365, 18, 5577, 30, 327, 309, 729, 486, 316, 365, 18, 16294, 18, 5577, 18, 2452, 13332, 309, 729, 316, 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, 1436, 1253, 12, 2890, 16, 1234, 16, 729, 16, 5251, 4672, 309, 729, 316, 365, 18, 5577, 30, 327, 309, 729, 486, 316, 365, 18, 16294, 18, 5577, 18, 2452, 13332, 309, 729, 316, 365, 18,...
if self.axes.get_autoscale_on():
if self.autoscale:
def updateFigure(self, elementData=None): if elementData is None: elementData = self._elementData else: self._elementData = elementData
2bbbc0d7dd29e7ba535c1ed3f7bdf845d9f4df0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/2bbbc0d7dd29e7ba535c1ed3f7bdf845d9f4df0d/elementsview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 42, 15906, 12, 2890, 16, 930, 751, 33, 7036, 4672, 309, 930, 751, 353, 599, 30, 930, 751, 273, 365, 6315, 2956, 751, 469, 30, 365, 6315, 2956, 751, 273, 930, 751, 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, 1089, 42, 15906, 12, 2890, 16, 930, 751, 33, 7036, 4672, 309, 930, 751, 353, 599, 30, 930, 751, 273, 365, 6315, 2956, 751, 469, 30, 365, 6315, 2956, 751, 273, 930, 751, 2, -100, -100...
assert self.innerHtml
assert self.innerHTML
def endTagBody(self, name): if self.parser.openElements[1].name != "body": assert self.innerHtml self.parser.parseError() else: if self.parser.openElements[-1].name != "body": assert self.innerHtml self.parser.switchInsertionMode("afterBody")
0d56d139ee72de308eb1a8db6faff65bc6e87aec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/0d56d139ee72de308eb1a8db6faff65bc6e87aec/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 2250, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 63, 21, 8009, 529, 480, 315, 3432, 6877, 1815, 365, 18, 7872, 4870, 365, 18, 4288, 18, 2670, 668, 1435, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 2250, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 63, 21, 8009, 529, 480, 315, 3432, 6877, 1815, 365, 18, 7872, 4870, 365, 18, 4288, 18, 2670, 668, 1435, 469, ...
def SaveToFileInteractive(self, use_dialog = SAVE_MODE):
def SaveToFileInteractive(self, use_dialog=SAVE_MODE):
def SaveToFileInteractive(self, use_dialog = SAVE_MODE): self.docmanager.SaveDocument(self.document, use_dialog) self.tabspanel.updateTabNames()
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 15450, 26442, 12, 2890, 16, 999, 67, 12730, 33, 25242, 67, 7038, 4672, 365, 18, 2434, 4181, 18, 4755, 2519, 12, 2890, 18, 5457, 16, 999, 67, 12730, 13, 365, 18, 7032, 3969, 292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7074, 15450, 26442, 12, 2890, 16, 999, 67, 12730, 33, 25242, 67, 7038, 4672, 365, 18, 2434, 4181, 18, 4755, 2519, 12, 2890, 18, 5457, 16, 999, 67, 12730, 13, 365, 18, 7032, 3969, 292, ...
lang=self.gl_get_selected_language(), **schema_raw_data)
lang=self.gl_get_selected_language(), **schema_raw_data)
def uploadPhotoOrZip(self, upload_file=None, REQUEST=None, **kwargs): """ Upload one image or a zipped folder of images """ if REQUEST is not None: schema_raw_data = dict(REQUEST.form) else: schema_raw_data = kwargs
6d1b7cc38621645f10a08a51cbf07cfee89be800 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/6d1b7cc38621645f10a08a51cbf07cfee89be800/NyPhotoFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 19934, 1162, 9141, 12, 2890, 16, 3617, 67, 768, 33, 7036, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 9414, 1245, 1316, 578, 279, 3144, 1845, 3009, 434, 4602, 3536, 309, 12492...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 19934, 1162, 9141, 12, 2890, 16, 3617, 67, 768, 33, 7036, 16, 12492, 33, 7036, 16, 2826, 4333, 4672, 3536, 9414, 1245, 1316, 578, 279, 3144, 1845, 3009, 434, 4602, 3536, 309, 12492...
multiple = getattr(datatype, 'multiple', False)
multiple = getattr(datatype, 'multiple', False)
def view(self, context): namespace = {}
ea76d631b134cd26755e19b7103b4b83b4587377 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/ea76d631b134cd26755e19b7103b4b83b4587377/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.parser.Parse(XMLContext)
self.parser.Parse(XMLContext.encode('utf-8'))
def parse(self,XMLContext): try: self.parser.Parse(XMLContext) except: globalVars.log.warn("XML: %s"%XMLContext,exc_info=True) return self._fieldStack
4e3a901285351e59ba12c62ad68a71ee57f12da7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/4e3a901285351e59ba12c62ad68a71ee57f12da7/speech.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 4201, 1042, 4672, 775, 30, 365, 18, 4288, 18, 3201, 12, 4201, 1042, 18, 3015, 2668, 3158, 17, 28, 26112, 1335, 30, 2552, 5555, 18, 1330, 18, 8935, 2932, 4201, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 4201, 1042, 4672, 775, 30, 365, 18, 4288, 18, 3201, 12, 4201, 1042, 18, 3015, 2668, 3158, 17, 28, 26112, 1335, 30, 2552, 5555, 18, 1330, 18, 8935, 2932, 4201, 30, ...
self._connected = False
def __init__(self, port, proto, interface='', maxPacketSize=8192, reactor=None): """Initialize with a numeric port to listen on. """ assert isinstance(proto, protocol.DatagramProtocol) base.BasePort.__init__(self, reactor) self.port = port self.protocol = proto self.maxPacketSize = maxPacketSize self.interface = interf...
23edc5b661490b32d25a539522b8339b4f2c8195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23edc5b661490b32d25a539522b8339b4f2c8195/udp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 16, 3760, 16, 1560, 2218, 2187, 943, 6667, 1225, 33, 28, 15561, 16, 19178, 33, 7036, 4672, 3536, 7520, 598, 279, 6389, 1756, 358, 6514, 603, 18, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1756, 16, 3760, 16, 1560, 2218, 2187, 943, 6667, 1225, 33, 28, 15561, 16, 19178, 33, 7036, 4672, 3536, 7520, 598, 279, 6389, 1756, 358, 6514, 603, 18, 35...
print childLink.__dict__
def __init__ (self, rcFile=arosRC, linkBoxItem='', **kw):
543dc6f064cdbd54d6a48579b3edc2d696c63002 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4747/543dc6f064cdbd54d6a48579b3edc2d696c63002/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4519, 812, 33, 297, 538, 11529, 16, 1692, 3514, 1180, 2218, 2187, 2826, 9987, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4519, 812, 33, 297, 538, 11529, 16, 1692, 3514, 1180, 2218, 2187, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
'ps2pdf -sPAPERSIZE=letter -dMaxSubsetPct=100 ' '-dSubsetFonts=true -dCompatibilityLevel=1.2 ' '-dEmbedAllFonts=true api.ps api.pdf')
'ps2pdf -sPAPERSIZE '-dSubsetFonts '-dEmbedAllFonts
def write_latex(docindex, options, format): from epydoc.docwriter.latex import LatexWriter latex_writer = LatexWriter(docindex, **options.__dict__) log.start_progress('Writing LaTeX docs') latex_writer.write(options.target) log.end_progress() # If we're just generating the latex, and not any output format, # then we're...
44446364f38d9ee9272029ffe09fe137d3279ffc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/44446364f38d9ee9272029ffe09fe137d3279ffc/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 26264, 12, 2434, 1615, 16, 702, 16, 740, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 26264, 1930, 11134, 338, 2289, 25079, 67, 6299, 273, 11134, 338, 2289, 12, 2434, 1615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 26264, 12, 2434, 1615, 16, 702, 16, 740, 4672, 628, 425, 2074, 2434, 18, 2434, 6299, 18, 26264, 1930, 11134, 338, 2289, 25079, 67, 6299, 273, 11134, 338, 2289, 12, 2434, 1615, ...
recipient_list = recipient_table.keys()
context['user'] = user
def send_review_mail(user, review_request, subject, in_reply_to, extra_recipients, template_name, context={}): """ Formats and sends an e-mail out with the current domain and review request being added to the template context. Returns the resulting message ID. """ current_site = Site.objects.get(pk=settings.SITE_ID) f...
abc32ae4339bcfd19962ad7ab9f4a882ffc53635 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/abc32ae4339bcfd19962ad7ab9f4a882ffc53635/email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, ...
raise IOError, "end of file reached"
raise IOError("end of file reached")
def copyfileobj(src, dst, length=None): """Copy length bytes from fileobj src to fileobj dst. If length is None, copy the entire content. """ if length == 0: return if length is None: shutil.copyfileobj(src, dst) return BUFSIZE = 16 * 1024 blocks, remainder = divmod(length, BUFSIZE) for b in xrange(blocks): buf = src....
b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29310, 2603, 12, 4816, 16, 3046, 16, 769, 33, 7036, 4672, 3536, 2951, 769, 1731, 628, 17041, 1705, 358, 17041, 3046, 18, 971, 769, 353, 599, 16, 1610, 326, 7278, 913, 18, 3536, 309, 76...
0.40235947810852507 + 1.0172219678978514*I
0.402359478108525 + 1.01722196789785*I
def atanh(self): """ EXAMPLES: sage: (1+I).atanh() 0.40235947810852507 + 1.0172219678978514*I """ return self.parent()(self._pari_().atanh())
293427b47ee2bb564117092226099ed44acd171f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/293427b47ee2bb564117092226099ed44acd171f/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19646, 76, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 270, 304, 76, 1435, 374, 18, 24, 3103, 4763, 11290, 8285, 2163, 7140, 2947, 397, 404, 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, 19646, 76, 12, 2890, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 261, 21, 15, 45, 2934, 270, 304, 76, 1435, 374, 18, 24, 3103, 4763, 11290, 8285, 2163, 7140, 2947, 397, 404, 18, ...
return self.bzip2.decompress(data)
try: return self.bzip2.decompress(data) except EOFError: return ''
def __call__(self, size, data=''): return self.bzip2.decompress(data)
c61453a3211362c9881479e82525b684441d7887 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c61453a3211362c9881479e82525b684441d7887/bzip2_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 963, 16, 501, 2218, 11, 4672, 327, 365, 18, 70, 4450, 22, 18, 323, 14706, 12, 892, 13, 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, 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, 1001, 1991, 972, 12, 2890, 16, 963, 16, 501, 2218, 11, 4672, 327, 365, 18, 70, 4450, 22, 18, 323, 14706, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
signal.alarm(MAX_DURATION) vereq(signal.getsignal(signal.SIGHUP), handlerA) vereq(signal.getsignal(signal.SIGUSR1), handlerB) vereq(signal.getsignal(signal.SIGUSR2), signal.SIG_IGN) vereq(signal.getsignal(signal.SIGALRM), signal.default_int_handler)
def test_main(self): self.assertEquals(signal.getsignal(signal.SIGHUP), self.handlerA) self.assertEquals(signal.getsignal(signal.SIGUSR1), self.handlerB) self.assertEquals(signal.getsignal(signal.SIGUSR2), signal.SIG_IGN) self.assertEquals(signal.getsignal(signal.SIGALRM), signal.default_int_handler)
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-...
99d3744d692f422a8786422bd8080f3980cb2b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/99d3744d692f422a8786422bd8080f3980cb2b40/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
try:
if hasattr(main, object.__name__):
def getmodule(object): """Try to guess which module an object was defined in.""" if isclass(object): return sys.modules.get(object.__module__) try: file = getabsfile(object) except TypeError: return None if modulesbyfile.has_key(file): return sys.modules[modulesbyfile[file]] for module in sys.modules.values(): if hasat...
a50bc378702521085821dd7005c1856e98d7bb5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a50bc378702521085821dd7005c1856e98d7bb5e/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2978, 12, 1612, 4672, 3536, 7833, 358, 7274, 1492, 1605, 392, 733, 1703, 2553, 316, 12123, 309, 28209, 12, 1612, 4672, 327, 2589, 18, 6400, 18, 588, 12, 1612, 16186, 2978, 972, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2978, 12, 1612, 4672, 3536, 7833, 358, 7274, 1492, 1605, 392, 733, 1703, 2553, 316, 12123, 309, 28209, 12, 1612, 4672, 327, 2589, 18, 6400, 18, 588, 12, 1612, 16186, 2978, 972, 13, ...
log.notice("%d match, %d mismatch (%.2%% agreement).",
log.notice("%d match, %d mismatch (%.2f%% agreement).",
def query(router, dest, dest_port): s = map(lambda o: str(ord(o)), struct.pack(">I", router.ip)) d = map(lambda o: str(ord(o)), struct.pack(">I", dest)) s.reverse() d.reverse()
c29938250e8a4b79d10cc6eb63e0d38877091c6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/c29938250e8a4b79d10cc6eb63e0d38877091c6e/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 10717, 16, 1570, 16, 1570, 67, 655, 4672, 272, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 4633, 18, 625, 3719, 302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 10717, 16, 1570, 16, 1570, 67, 655, 4672, 272, 273, 852, 12, 14661, 320, 30, 609, 12, 517, 12, 83, 13, 3631, 1958, 18, 2920, 2932, 34, 45, 3113, 4633, 18, 625, 3719, 302, ...
return self.__historical
return TimeSeries([x.open for x in self.__historical])
def historical(self,startdate='Jan+1,+1990'): """ Return an immutable sequence of historical price data for this stock, obtained from Google.
ab111b435d74e5e6772a30d6b65d963ddd64ff82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ab111b435d74e5e6772a30d6b65d963ddd64ff82/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23922, 12, 2890, 16, 1937, 712, 2218, 46, 304, 15, 21, 16, 15, 19818, 20, 11, 4672, 3536, 2000, 392, 11732, 3102, 434, 23922, 6205, 501, 364, 333, 12480, 16, 12700, 628, 6124, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23922, 12, 2890, 16, 1937, 712, 2218, 46, 304, 15, 21, 16, 15, 19818, 20, 11, 4672, 3536, 2000, 392, 11732, 3102, 434, 23922, 6205, 501, 364, 333, 12480, 16, 12700, 628, 6124, 18, 2, ...
""" Return registration time for this user, as a Unicode string in ISO8601 format, or None if the date is unknown.
""" Return registration date for this user, as a long in Mediawiki's internal timestamp format, or 0 if the date is unknown.
def registrationTime(self, force=False): """ Return registration time for this user, as a Unicode string in ISO8601 format, or None if the date is unknown.
7e07f8a9fa71ca906e1d8e565fb6fdb99e4b4cf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/7e07f8a9fa71ca906e1d8e565fb6fdb99e4b4cf6/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7914, 950, 12, 2890, 16, 2944, 33, 8381, 4672, 3536, 2000, 7914, 813, 364, 333, 729, 16, 487, 279, 9633, 533, 316, 9351, 14181, 740, 16, 578, 599, 309, 326, 1509, 353, 5917, 18, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7914, 950, 12, 2890, 16, 2944, 33, 8381, 4672, 3536, 2000, 7914, 813, 364, 333, 729, 16, 487, 279, 9633, 533, 316, 9351, 14181, 740, 16, 578, 599, 309, 326, 1509, 353, 5917, 18, 2, -...
results = lapack_routine('N', 'V', n, a, n, wr, wi,
results = lapack_routine(_N, _V, n, a, n, wr, wi,
def eig(a): """ Compute the eigenvalues and right eigenvectors of a square array. Parameters ---------- a : array_like, shape (M, M) A square array of real or complex elements. Returns ------- w : ndarray, shape (M,) The eigenvalues, each repeated according to its multiplicity. The eigenvalues are not necessarily ord...
f8012ce42ee9ce709d2f4044e74e61d5d292b3cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/f8012ce42ee9ce709d2f4044e74e61d5d292b3cd/linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11043, 12, 69, 4672, 3536, 8155, 326, 29831, 471, 2145, 11043, 29098, 434, 279, 8576, 526, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 16, 2179, 261, 49, 16, 490, 13, 432, 8576, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11043, 12, 69, 4672, 3536, 8155, 326, 29831, 471, 2145, 11043, 29098, 434, 279, 8576, 526, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 16, 2179, 261, 49, 16, 490, 13, 432, 8576, 526...
m = self.rCtoE.search(html)
m = self.iciba_rCtoE.search(html)
def lookup_ciba(self, word): connect = httplib.HTTPConnection('www.iciba.com', 80) connect.request("GET", "/search?s=%s&t=word&lang=utf-8" % (word.encode("UTF-8"), )) response = connect.getresponse() if response.status != 200: msg = "%d:%s" % (response.status, response.reason) loc = response.getheader("location") self....
f1bc39a1ce905dd984f258dd33b457e671f217c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10749/f1bc39a1ce905dd984f258dd33b457e671f217c7/weblookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 5591, 18, 335, 495, 69, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 5591, 18, 335, 495, 69, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206, ...
if allow_framents and scheme in uses_fragment:
if allow_fragments and scheme in uses_fragment:
def urlparse(url, scheme = '', allow_framents = 1): key = url, scheme, allow_framents try: return _parse_cache[key] except KeyError: pass if len(_parse_cache) >= MAX_CACHE_SIZE: # avoid runaway growth clear_cache() netloc = path = params = query = fragment = '' i = string.find(url, ':') if i > 0: for c in url[:i]: if c...
abe69dbb5bbe1ed9af9311b15188a024d956b9cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/abe69dbb5bbe1ed9af9311b15188a024d956b9cc/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 74, 1940, 4877, 273, 404, 4672, 498, 273, 880, 16, 4355, 16, 1699, 67, 74, 1940, 4877, 775, 30, 327, 389, 2670, 67, 2493, 63, 856, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15185, 12, 718, 16, 4355, 273, 10226, 1699, 67, 74, 1940, 4877, 273, 404, 4672, 498, 273, 880, 16, 4355, 16, 1699, 67, 74, 1940, 4877, 775, 30, 327, 389, 2670, 67, 2493, 63, 856, 65,...
cur = os.path.abspath(".") sub_version(cur)
cur = os.getcwd() sub_version(cur, version)
def docs_multi(version): root = p["targetDir"] + "/" + p["dist.ref.dir"] + "/html" print root setup(root) cur = os.path.abspath(".") sub_version(cur) os.chdir(root) ref = cur + "/" + p["doc.ref.dir"] os.system("java -classpath " + os.path.pathsep.join(glob(ref + "/lib/*.jar")) + \ " -Xmx80M -XX:MaxPermSize=80m com.ic...
8a405e7fd321a7d68e58ef7e892ad80717a33322 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/8a405e7fd321a7d68e58ef7e892ad80717a33322/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3270, 67, 7027, 12, 1589, 4672, 1365, 273, 293, 9614, 3299, 1621, 11929, 397, 4016, 397, 293, 9614, 4413, 18, 1734, 18, 1214, 11929, 397, 2206, 2620, 6, 1172, 1365, 225, 3875, 12, 3085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3270, 67, 7027, 12, 1589, 4672, 1365, 273, 293, 9614, 3299, 1621, 11929, 397, 4016, 397, 293, 9614, 4413, 18, 1734, 18, 1214, 11929, 397, 2206, 2620, 6, 1172, 1365, 225, 3875, 12, 3085, ...
def _center(str, width): """Center a string in a field.""" n = width - len(str) if n <= 0: return str return ' '*((n+1)/2) + str + ' '*((n)/2)
def _center(str, width): """Center a string in a field.""" n = width - len(str) if n <= 0: return str return ' '*((n+1)/2) + str + ' '*((n)/2)
9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9ecf9ce161bf3c1eafebe3c7f6d06b4f2458ff4e/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5693, 12, 701, 16, 1835, 4672, 3536, 8449, 279, 533, 316, 279, 652, 12123, 290, 273, 1835, 300, 562, 12, 701, 13, 309, 290, 1648, 374, 30, 327, 609, 327, 296, 14609, 12443, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5693, 12, 701, 16, 1835, 4672, 3536, 8449, 279, 533, 316, 279, 652, 12123, 290, 273, 1835, 300, 562, 12, 701, 13, 309, 290, 1648, 374, 30, 327, 609, 327, 296, 14609, 12443, 82, ...
oldAccount = ns.currentIncomingAccount.item
oldAccount = getattr(ns.currentIncomingAccount, "item", None)
def do_password(password): if hasattr(account, 'password'): account.password.delete() account.password = password
3e087cbdba92c2f6fcac818e14007ca4aee3e0c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/3e087cbdba92c2f6fcac818e14007ca4aee3e0c5/translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3664, 12, 3664, 4672, 309, 3859, 12, 4631, 16, 296, 3664, 11, 4672, 2236, 18, 3664, 18, 3733, 1435, 2236, 18, 3664, 273, 2201, 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, 741, 67, 3664, 12, 3664, 4672, 309, 3859, 12, 4631, 16, 296, 3664, 11, 4672, 2236, 18, 3664, 18, 3733, 1435, 2236, 18, 3664, 273, 2201, 2, -100, -100, -100, -100, -100, -100, -100, -10...
def test_ignore_case(self): self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
def test_ignore_case(self): self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
894fe7b540f0449081728795c6bda18e8e8782c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/894fe7b540f0449081728795c6bda18e8e8782c9/test_re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6185, 67, 3593, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 315, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 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, 1842, 67, 6185, 67, 3593, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 266, 18, 1916, 2932, 18947, 3113, 315, 26904, 3113, 283, 18, 45, 2934, 1655, 12, 20, 3631, 315, 26904, 7923, 365, 18...
expected_command_line = [monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY] command_line = monitor_db._autoserv_command_line(machines, extra_args) self.assertEqual(expected_command_line + ['--verbose'] + extra_args, command_line)
expected_command_line_base = set((monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY)) expected_command_line = expected_command_line_base.union( ['--verbose']).union(extra_args) command_line = set( monitor_db._autoserv_command_line(machines, extra_args)) self.assertEqual(expected_co...
def test_autoserv_command_line(self): machines = 'abcd12,efgh34' extra_args = ['-Z', 'hello'] expected_command_line = [monitor_db._autoserv_path, '-p', '-m', machines, '-r', drone_manager.WORKING_DIRECTORY]
982adcf87b88a5a103db1f3bc9f492597e39e7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/982adcf87b88a5a103db1f3bc9f492597e39e7d0/monitor_db_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5854, 13164, 90, 67, 3076, 67, 1369, 12, 2890, 4672, 15942, 273, 296, 378, 4315, 2138, 16, 73, 2137, 76, 5026, 11, 2870, 67, 1968, 273, 10228, 17, 62, 2187, 296, 23711, 3546,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5854, 13164, 90, 67, 3076, 67, 1369, 12, 2890, 4672, 15942, 273, 296, 378, 4315, 2138, 16, 73, 2137, 76, 5026, 11, 2870, 67, 1968, 273, 10228, 17, 62, 2187, 296, 23711, 3546,...
self.PieceTab.setCurrentIndex(a0)
self.PieceTab.setCurrentIndex(a0.data().toInt()[0])
def changePieceTab(self,a0): self.PieceTab.setCurrentIndex(a0)
4dbe836446fbdbbdf60c1cbd40d99f1fc498b04e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/4dbe836446fbdbbdf60c1cbd40d99f1fc498b04e/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 22607, 5661, 12, 2890, 16, 69, 20, 4672, 365, 18, 22607, 5661, 18, 542, 3935, 1016, 12, 69, 20, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 22607, 5661, 12, 2890, 16, 69, 20, 4672, 365, 18, 22607, 5661, 18, 542, 3935, 1016, 12, 69, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
<td>Great Achievements Start With Tiny Investments !</td>
<td>http://openobject.com</td>
def sendMessage(self, m, recipients):
d09b5709e163d35440f472144fc6a75155c9b191 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/d09b5709e163d35440f472144fc6a75155c9b191/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15399, 12, 2890, 16, 312, 16, 12045, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15399, 12, 2890, 16, 312, 16, 12045, 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...
data = yaml.load(yamldata.read())
data = yamldata.read()
def sendVote(self, datamanager, topicid, voteid): authority = datamanager.getAuthority(topicid[:topicid.index("/")]) topic = authority.topics[topicid] vote = topic.votes[voteid] if vote: yamldata = open(self.servent.manager.peergov.datadir + "/" + topicid + "/" + voteid, "r") data = yaml.load(yamldata.read()) ...
aa8d0513eff6d412885924a7d96beeb974298dab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12833/aa8d0513eff6d412885924a7d96beeb974298dab/servent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 19338, 12, 2890, 16, 1150, 301, 1063, 16, 3958, 350, 16, 12501, 350, 4672, 11675, 273, 1150, 301, 1063, 18, 588, 10962, 12, 10476, 350, 10531, 10476, 350, 18, 1615, 2932, 4898, 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, 1366, 19338, 12, 2890, 16, 1150, 301, 1063, 16, 3958, 350, 16, 12501, 350, 4672, 11675, 273, 1150, 301, 1063, 18, 588, 10962, 12, 10476, 350, 10531, 10476, 350, 18, 1615, 2932, 4898, 13,...
html += "<span class='fieldRequired' title='%s' > %s </span>" % (translate(_(u'title_required'),context=self.request), translate(_(u'title_required'), context=self.request))
html += "<span class='fieldRequired' title='%s'>%s</span>" % (translate(_(u'title_required'), context=self.request, default='Required'), translate(_(u'label_required'), context=self.request, default='(Required)'))
def __call__( self ): """Render the widget to HTML.""" value = self._getFormValue() html = "<label for='%s'>%s</label>\n" % (self.name , translate(super(BaseWidget,self).label, context=self.request)) if self.__required: html += "<span class='fieldRequired' title='%s' > %s </span>" % (translate(_(u'title_required'),cont...
84263650f9c8d1b77bb2521665c46ce70d446dfe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12236/84263650f9c8d1b77bb2521665c46ce70d446dfe/checkboxwidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 365, 262, 30, 3536, 3420, 326, 3604, 358, 3982, 12123, 460, 273, 365, 6315, 588, 1204, 620, 1435, 1729, 273, 3532, 1925, 364, 28713, 87, 11, 9822, 87, 1757, 1925, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 262, 30, 3536, 3420, 326, 3604, 358, 3982, 12123, 460, 273, 365, 6315, 588, 1204, 620, 1435, 1729, 273, 3532, 1925, 364, 28713, 87, 11, 9822, 87, 1757, 1925, ...
port = int(a)
ser.port = int(a)
def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: serial port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow co...
d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354,...
session[ 'csName' ] = "LHCb Configuration"
session[ 'csName' ] = "LHCb Configuration"
def __getRemoteConfiguration( self ): rpcClient = getRPCClient( gConfig.getValue( "/DIRAC/Configuration/MasterServer", "Configuration/Server" ) ) modCfg = Modificator( rpcClient ) retVal = modCfg.loadFromRemote() if retVal[ 'OK' ]: session[ 'cfgData' ] = str( modCfg ) session[ 'csName' ] = "LHCb Configuration" session....
6ef54087f1fe3a16604362de1c66b612ff5fbab6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12767/6ef54087f1fe3a16604362de1c66b612ff5fbab6/configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5169, 1750, 12, 365, 262, 30, 6724, 1227, 273, 4170, 3513, 1227, 12, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 1750, 19, 7786, 2081, 3113, 315, 1750, 19, 2081, 6, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 5169, 1750, 12, 365, 262, 30, 6724, 1227, 273, 4170, 3513, 1227, 12, 314, 809, 18, 24805, 12, 2206, 4537, 2226, 19, 1750, 19, 7786, 2081, 3113, 315, 1750, 19, 2081, 6, 262, ...
startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " "
OutputFileVHist = "OutputVHist" + UniqueID startstring = "lalapps_ComputeFStatistic_v2 --outputFstat " + OutputFileVFstat + " --outputLoudest " + OutputFileVLoudest + " -F " + str(Vars['FThres']) + " --outputFstatHist " + OutputFileVHist + " "
def main(): # Import the Configuration File into config # Import the Configuration File into config if(len(sys.argv) < 2): print >> sys.stderr, "Insufficient command line arguments " print >> sys.stderr, " Usage is ",sys.argv[0]," <ConfigFile> {Job Number} " print >> sys.stderr, " Exiting ........." sys.exit(1) try: ...
d413176c5aa91b740377f318dbf425c8d0ed9b4f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/d413176c5aa91b740377f318dbf425c8d0ed9b4f/multiresamp_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 1671, 2589, 18, 11241, 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, 2774, 13332, 225, 468, 6164, 326, 4659, 1387, 1368, 642, 468, 6164, 326, 4659, 1387, 1368, 642, 309, 12, 1897, 12, 9499, 18, 19485, 13, 411, 576, 4672, 1172, 1671, 2589, 18, 11241, 16, ...
color("green") left(130)
left(120)
def demo2(): # exercises some new and improved features speed('fast') width(3) # draw a segmented half-circle setheading(towards(0,0)) x,y = position() r = (x**2+y**2)**.5/2.0 right(90) pendown = True for i in range(18): if pendown: up() pendown = False else: down() pendown = True circle(r,10) sleep(2) reset() left(9...
2219110991cdd175e1a19d5965be9339f89d5f07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2219110991cdd175e1a19d5965be9339f89d5f07/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 22, 13332, 468, 431, 12610, 6141, 2690, 394, 471, 13069, 2155, 4467, 8632, 2668, 8076, 6134, 1835, 12, 23, 13, 225, 468, 3724, 279, 3267, 329, 8816, 17, 18970, 444, 19948, 12, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 22, 13332, 468, 431, 12610, 6141, 2690, 394, 471, 13069, 2155, 4467, 8632, 2668, 8076, 6134, 1835, 12, 23, 13, 225, 468, 3724, 279, 3267, 329, 8816, 17, 18970, 444, 19948, 12, 310...
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"])
"hp:b:rxec", ["help", "port=", "baud=", "rtscts", "xonxoff", "echo", "cr"] )
def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow control (...
b7466daf4f82c4ddea5947442be2cc17bce59bf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/b7466daf4f82c4ddea5947442be2cc17bce59bf9/miniterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 1671, 9499, 18, 11241, 16, 3536, 29550, 30, 738, 87, 306, 2116, 65, 4477, 18778, 13586, 81, 364, 326, 2734, 1756, 18, 225, 702, 30, 300, 84, 16, 1493, 655, 33, 6354,...
self.assertTrue(diff[0].type == PORT_STATE_CHANGE)
self.assertTrue(isinstance(diff[0], PortStateChangeHunk))
def test_state_change(self): spec = (10, "tcp") a = Port(spec) a.state = "open" b = Port(spec) b.state = "closed" diff = port_diff(a, b) self.assertTrue(len(diff) == 1) self.assertTrue(diff[0].type == PORT_STATE_CHANGE)
e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2019, 67, 3427, 12, 2890, 4672, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 273, 6008, 12, 2793, 13, 279, 18, 2019, 273, 315, 3190, 6, 324, 273, 6008, 12, 2793, 13, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2019, 67, 3427, 12, 2890, 4672, 857, 273, 261, 2163, 16, 315, 14832, 7923, 279, 273, 6008, 12, 2793, 13, 279, 18, 2019, 273, 315, 3190, 6, 324, 273, 6008, 12, 2793, 13, 324...
f1 = open(msg.file.name, "rb") d = f1.read()
def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is N...
e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8/transfers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 7109, 12, 2890, 16, 1234, 4672, 3536, 432, 585, 4224, 353, 316, 4007, 8395, 1608, 2725, 273, 404, 642, 273, 365, 18, 2575, 8700, 18, 1425, 18, 11657, 364, 277, 316, 365, 18, 7813...
is_line.__doc__ = Vrepresentation.is_line.__doc__
def is_line(self): """ Tests if the object is a line. By construction it must be.
5ee629eab8310178e46ba2426c1e828e44fe1d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5ee629eab8310178e46ba2426c1e828e44fe1d2e/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1369, 12, 2890, 4672, 3536, 7766, 87, 309, 326, 733, 353, 279, 980, 18, 225, 2525, 16171, 518, 1297, 506, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1369, 12, 2890, 4672, 3536, 7766, 87, 309, 326, 733, 353, 279, 980, 18, 225, 2525, 16171, 518, 1297, 506, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Implements a discrete Fourier transform
Implements a discrete inverse Fourier transform. Only works over QQ.
def idft(self): """ Implements a discrete Fourier transform
b5d444db2992a10837c0e2ccaebfd79325c6361e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/b5d444db2992a10837c0e2ccaebfd79325c6361e/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 1222, 12, 2890, 4672, 3536, 29704, 279, 20035, 478, 24775, 2510, 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, 612, 1222, 12, 2890, 4672, 3536, 29704, 279, 20035, 478, 24775, 2510, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
line = f.readline() if not line:
line1 = f.readline() if not line1:
def _skip_to_nonblank(f, spacegroup): """Read lines from f until a nonblank line not starting with a hash (#) is encountered and returns the line.""" while True: line = f.readline() if not line: raise SpacegroupNotFoundError( 'invalid spacegroup %s, not found in data base'%spacegroup) line.strip() if line and not line....
85be2a08fb35919f95e36d2aac71cb23f87c260d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/85be2a08fb35919f95e36d2aac71cb23f87c260d/spacegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, ...
if group is None:
if group is not None:
def getGroup(self, group_id): """Like getGroupById in groups tool, but doesn't wrap. """ group = None introspectors = self.plugins.listPlugins(IGroupIntrospection) if not introspectors: raise NotSupported, 'No plugins allow for group management' for iid, introspector in introspectors: group = introspector.getGroupById...
2de9ec9856a11838a0887a2de7a65bb15e3cf0ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/2de9ec9856a11838a0887a2de7a65bb15e3cf0ef/pas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 8804, 11751, 5132, 316, 3252, 5226, 16, 1496, 3302, 1404, 2193, 18, 3536, 1041, 273, 599, 30165, 1383, 273, 365, 18, 8057, 18, 1098, 9461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11751, 12, 2890, 16, 1041, 67, 350, 4672, 3536, 8804, 11751, 5132, 316, 3252, 5226, 16, 1496, 3302, 1404, 2193, 18, 3536, 1041, 273, 599, 30165, 1383, 273, 365, 18, 8057, 18, 1098, 9461,...
'url': directives.path}
'url': directives.path, 'encoding': directives.encoding}
def raw(name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): """ Pass through content unchanged Content is included in output based on type argument Content may be included inline (content section of directive) or imported from a file or url. """ attributes = {'format': ' '.jo...
90c04be32fabc3377ed4190468474244d9092c2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/90c04be32fabc3377ed4190468474244d9092c2b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 3536, 10311, 3059, 913, 14827, 225, 3697, 353, 5849, 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, 1831, 12, 529, 16, 1775, 16, 702, 16, 913, 16, 7586, 16, 913, 67, 3348, 16, 1203, 67, 955, 16, 919, 16, 919, 67, 9149, 4672, 3536, 10311, 3059, 913, 14827, 225, 3697, 353, 5849, 316,...
assign_set = node.paths[0] if len(attr_types) == 1 and list(attr_types)[0] == assign_set:
if node.paths: assign_set = node.paths[0] else: assign_set = frozenset() if attr_types[varnum] == assign_set:
def ifa_split_no_confusion(cl, dcpa, varnum, classes_nr, nr_classes, csites, allnodes, split): '''creation sites on single path: split them off, possibly reusing contour''' attr_types = nr_classes[dcpa] noconf = set([n for n in csites if len(n.paths)==1]) others = len(csites) - len(noconf) subtype_csites = {} for node ...
1e46cb49994e29bdac7a6514502ee2e2b0d5d451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4470/1e46cb49994e29bdac7a6514502ee2e2b0d5d451/infer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, ...
import base64
def fromBase64(cls, data): import base64 return cls(base64.decodestring(data))
9be0f08fa71f0889deb88735a034fcd30381111b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9be0f08fa71f0889deb88735a034fcd30381111b/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 2171, 1105, 12, 6429, 16, 501, 4672, 327, 2028, 12, 1969, 1105, 18, 4924, 1145, 371, 12, 892, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 2171, 1105, 12, 6429, 16, 501, 4672, 327, 2028, 12, 1969, 1105, 18, 4924, 1145, 371, 12, 892, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: parametric_plot((x, t^2), -4, 4)
sage: parametric_plot((x, t^2), (x, -4, 4))
def parametric_plot(funcs, *args, **kwargs): r""" \code{parametric_plot} takes two or three functions as a list or a tuple and makes a plot with the first function giving the $x$ coordinates, the second function giving the $y$ coordinates, and the third function (if present) giving the $z$ coordinates. INPUT: funcs --...
152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/152a48b826e0f10ca6dd5e7a2fde63ccaa7e4562/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, 3193, 471, ...
print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': gv.cpp_name(func.ident)}
if isinstance(func.parent, class_): id = func.parent.ident+'_'+func.ident else: id = gv.cpp_name(func.ident) print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': id}
def do_extmod_methoddef(gv, ident, funcs): print >>gv.out, 'static PyMethodDef %sMethods[] = {' % ident for func in funcs: print >>gv.out, ' {(char *)"%(id)s", %(id2)s, METH_VARARGS, (char *)""},' % {'id': func.ident, 'id2': gv.cpp_name(func.ident)} print >>gv.out, ' {NULL}\n};\n'
932a76be86eb625660ab8a44c34f9800a5983c29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4470/932a76be86eb625660ab8a44c34f9800a5983c29/extmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 408, 1711, 67, 2039, 536, 12, 75, 90, 16, 3390, 16, 15630, 4672, 1172, 1671, 75, 90, 18, 659, 16, 296, 3845, 4707, 1305, 3262, 738, 87, 4712, 8526, 273, 13666, 738, 3390, 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, 741, 67, 408, 1711, 67, 2039, 536, 12, 75, 90, 16, 3390, 16, 15630, 4672, 1172, 1671, 75, 90, 18, 659, 16, 296, 3845, 4707, 1305, 3262, 738, 87, 4712, 8526, 273, 13666, 738, 3390, 36...
for l in fl.revision(r).splitlines():
for l in fl.read(r).splitlines():
def addtag(self, k, n): try: bin_n = bin(n) except TypeError: bin_n = '' self.tagscache[k.strip()] = bin_n
cf79e555fa79e7ee26ef206391505cbd8c470ecd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/cf79e555fa79e7ee26ef206391505cbd8c470ecd/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2692, 12, 2890, 16, 417, 16, 290, 4672, 775, 30, 4158, 67, 82, 273, 4158, 12, 82, 13, 1335, 3580, 30, 4158, 67, 82, 273, 875, 365, 18, 2692, 1017, 807, 63, 79, 18, 6406, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2692, 12, 2890, 16, 417, 16, 290, 4672, 775, 30, 4158, 67, 82, 273, 4158, 12, 82, 13, 1335, 3580, 30, 4158, 67, 82, 273, 875, 365, 18, 2692, 1017, 807, 63, 79, 18, 6406, 1435,...
if isinstance(title, str): title = title.decode(preferred_encoding)
if isbytestring(title): title = title.decode(preferred_encoding, 'replace')
def create_book_entry(self, mi, cover=None, add_duplicates=True): self._add_newbook_tag(mi) if not add_duplicates and self.has_book(mi): return None series_index = 1.0 if mi.series_index is None else mi.series_index aus = mi.author_sort if mi.author_sort else self.author_sort_from_authors(mi.authors) title = mi.title i...
c006e2e14bebef07898a934bdb6225ea14b6280f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/c006e2e14bebef07898a934bdb6225ea14b6280f/database2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3618, 67, 4099, 12, 2890, 16, 12837, 16, 5590, 33, 7036, 16, 527, 67, 22449, 33, 5510, 4672, 365, 6315, 1289, 67, 2704, 3618, 67, 2692, 12, 9197, 13, 309, 486, 527, 67, 2244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3618, 67, 4099, 12, 2890, 16, 12837, 16, 5590, 33, 7036, 16, 527, 67, 22449, 33, 5510, 4672, 365, 6315, 1289, 67, 2704, 3618, 67, 2692, 12, 9197, 13, 309, 486, 527, 67, 2244...
print 'XXXX boolean:', `data`
def _decode_boolean(data, key): print 'XXXX boolean:', `data` return ord(data[0])
3b7e119d50e5b9cdabffa943d4af57312c0aecc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3b7e119d50e5b9cdabffa943d4af57312c0aecc7/ic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 67, 6494, 12, 892, 16, 498, 4672, 327, 4642, 12, 892, 63, 20, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 389, 3922, 67, 6494, 12, 892, 16, 498, 4672, 327, 4642, 12, 892, 63, 20, 5717, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.stats.strip_dirs() return 0
if self.stats: self.stats.strip_dirs() else: print("No statistics object is loaded.", file=self.stream)
def do_strip(self, line): self.stats.strip_dirs() return 0
3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/3e4f2ec7047dfec4ced9ec1ee791eaa837655b8e/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6406, 12, 2890, 16, 980, 4672, 365, 18, 5296, 18, 6406, 67, 8291, 1435, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 6406, 12, 2890, 16, 980, 4672, 365, 18, 5296, 18, 6406, 67, 8291, 1435, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
group.GetZSpacing()
group.UpdateZSpacing()
def FixProblem1(self, dict): """ Merge multiple DICOM groups in case Problem 1 (description above) occurs. WARN: We've implemented an heuristic to try to solve the problem. There is no scientific background and this aims to be a workaround to exams which are not in conformance with the DICOM protocol. """ # Divide exi...
b2ea39287527fe984e18df481588043d1b55d9aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/b2ea39287527fe984e18df481588043d1b55d9aa/dicom_grouper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 13719, 21, 12, 2890, 16, 2065, 4672, 3536, 8964, 3229, 30530, 3252, 316, 648, 21685, 404, 261, 3384, 5721, 13, 9938, 18, 225, 20440, 30, 1660, 8081, 8249, 392, 25833, 358, 775, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12139, 13719, 21, 12, 2890, 16, 2065, 4672, 3536, 8964, 3229, 30530, 3252, 316, 648, 21685, 404, 261, 3384, 5721, 13, 9938, 18, 225, 20440, 30, 1660, 8081, 8249, 392, 25833, 358, 775, 35...
QtGui.QWidget.focusOutEvent(self, event)
QtGui.QLineEdit.focusOutEvent(self, event)
def focusOutEvent(self, event): self.update_parent() QtGui.QWidget.focusOutEvent(self, event)
07e3afdeaf9d20956c0eb4c848717796ff1a97b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/07e3afdeaf9d20956c0eb4c848717796ff1a97b2/constant_configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7155, 1182, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 67, 2938, 1435, 23425, 18, 53, 4609, 18, 13923, 1182, 1133, 12, 2890, 16, 871, 13, 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, 7155, 1182, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 67, 2938, 1435, 23425, 18, 53, 4609, 18, 13923, 1182, 1133, 12, 2890, 16, 871, 13, 2, -100, -100, -100, -100, -100, -100, -100...
self.send_header('Content-type', self.GetMIMETypeFromName(file))
self.send_header('Content-type', self.GetMIMETypeFromName(file_path))
def FileHandler(self): """This handler sends the contents of the requested file. Wow, it's like a real webserver!"""
b0dcb9339511b02acbe62c17070415faf1baa7dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/b0dcb9339511b02acbe62c17070415faf1baa7dd/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 1503, 12, 2890, 4672, 3536, 2503, 1838, 9573, 326, 2939, 434, 326, 3764, 585, 18, 225, 678, 543, 16, 518, 1807, 3007, 279, 2863, 732, 2266, 502, 5, 8395, 2, -100, -100, -100, -10...
self.pdbg("conflict parse_expr()N bool=%s bool=%s" % ("True" if bool else "False", expr))
if Opt.ParseDBG: self.pdbg("conflict parse_expr()N bool=%s bool=%s" % ("True" if bool else "False", expr))
def parse_statement(self, rule, msg, expr): self.parse_dbg_indent += " " self.pdbg("parse_statement(%s, %s, %s)" % (rule, msg, expr)) expr = expr.strip() if msg == "": if expr == "": self.parse_message_block() expr = self.buffer else: self.message = [msg] if expr == "": if not self.readline(): self.parse_dbg_indent = ...
0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 17414, 75, 2932, 2670, 67, 11516, 9275, 87, 16, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 17414, 75, 2932, 2670, 67, 11516, 9275, 87, 16, 73...
return change, touchloc
return change, touchloc_bl
def light_switch1(self, point, point_offset, press_contact_pressure, move_back_distance, press_pressure, press_distance, visual_change_thres): print '====================================================================' point = point + point_offset rospy.loginfo('REACHING') #self.behaviors.gripper_close() self.behavior...
7afbc453c5c750798bfc45712af1852e65d80e2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/7afbc453c5c750798bfc45712af1852e65d80e2e/linear_move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9052, 67, 9610, 21, 12, 2890, 16, 1634, 16, 1634, 67, 3348, 16, 11779, 67, 8994, 67, 17103, 16, 3635, 67, 823, 67, 8969, 16, 11779, 67, 17103, 16, 11779, 67, 8969, 16, 11623, 67, 342...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9052, 67, 9610, 21, 12, 2890, 16, 1634, 16, 1634, 67, 3348, 16, 11779, 67, 8994, 67, 17103, 16, 3635, 67, 823, 67, 8969, 16, 11779, 67, 17103, 16, 11779, 67, 8969, 16, 11623, 67, 342...
self.__generate(values).render(method=self.serialization_method, out=page, encoding='utf-8') page.close()
try: self.__generate(values).render(method=self.serialization_method, out=page, encoding='utf-8') except UnicodeDecodeError: problematic_vars = [] for key, value in values.items(): try: str(value).decode('utf-8') except UnicodeDecodeError: problematic_vars.append(key) print 'Problematic template vars : %s' % ', '.join(...
def dump(self, values, dest): self.__complement_values(values)
3885f161b5c87f83bb7eea2d8842edaabd09f2c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4663/3885f161b5c87f83bb7eea2d8842edaabd09f2c5/tpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 924, 16, 1570, 4672, 365, 16186, 2919, 806, 67, 2372, 12, 2372, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4657, 12, 2890, 16, 924, 16, 1570, 4672, 365, 16186, 2919, 806, 67, 2372, 12, 2372, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
are returned in a list, correct first.
are returned in a tuple, correct first.
def Guess(self, guess): """ Checks the guess against the correct answer. If it's correct: guess gets added to self.correct in all of the appropriate spots in the word. If it's incorrect it gets appended to self.guesses. correct and guesses are returned in a list, correct first. """ # If the answer is correct insert i...
c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/c99805dc8b4ef85ccdd69038d55cff9b79b6a2ea/Hangman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30282, 12, 2890, 16, 7274, 4672, 3536, 13074, 326, 7274, 5314, 326, 3434, 5803, 18, 225, 971, 518, 1807, 3434, 30, 7274, 5571, 3096, 358, 365, 18, 6746, 316, 777, 434, 326, 5505, 1694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30282, 12, 2890, 16, 7274, 4672, 3536, 13074, 326, 7274, 5314, 326, 3434, 5803, 18, 225, 971, 518, 1807, 3434, 30, 7274, 5571, 3096, 358, 365, 18, 6746, 316, 777, 434, 326, 5505, 1694, ...
logo_image = getattr(getattr(session.instance, "logos", None), "normal", "/images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "/images/WordForge-white.png")
logo_image = getattr(getattr(session.instance, "logos", None), "normal", "images/pootle.png") banner_image = getattr(getattr(session.instance, "logos", None), "banner", "images/WordForge-white.png") if not banner_image.startswith("/"): banner_image = baseurl + banner_image if not logo_image.startswith("/"): logo_image...
def layout_banner(maxheight, session): """calculates dimensions, image name for banner""" logo_width, logo_height = min((98*maxheight/130, maxheight), (98, 130)) banner_width, banner_height = min((290*maxheight/160, maxheight), (290, 160)) if logo_width <= 61: logo_image = getattr(getattr(session.instance, "logos", No...
4ec0ef2508050836566698fb746f963104a1e896 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11388/4ec0ef2508050836566698fb746f963104a1e896/pagelayout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3511, 67, 16563, 12, 1896, 4210, 16, 1339, 4672, 3536, 12780, 815, 5769, 16, 1316, 508, 364, 14090, 8395, 19128, 67, 2819, 16, 19128, 67, 4210, 273, 1131, 12443, 10689, 14, 1896, 4210, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3511, 67, 16563, 12, 1896, 4210, 16, 1339, 4672, 3536, 12780, 815, 5769, 16, 1316, 508, 364, 14090, 8395, 19128, 67, 2819, 16, 19128, 67, 4210, 273, 1131, 12443, 10689, 14, 1896, 4210, 1...
tgids = [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9']
tgids = self.options.pids or [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9']
def update_process_counts(self): total_read = total_write = 0 duration = None tgids = [int(tgid) for tgid in os.listdir('/proc') if '0' <= tgid[0] and tgid[0] <= '9'] for tgid in tgids: for pid in self.list_pids(tgid): process = self.get_process(pid) if process: stats = self.taskstats_connection.get_task_stats(pid) if ...
e053bec62bb507664e91245ab02d68138e3dfe3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10607/e053bec62bb507664e91245ab02d68138e3dfe3f/iotop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2567, 67, 8008, 12, 2890, 4672, 2078, 67, 896, 273, 2078, 67, 2626, 273, 374, 3734, 273, 599, 18289, 2232, 273, 365, 18, 2116, 18, 84, 2232, 578, 306, 474, 12, 88, 15780, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2567, 67, 8008, 12, 2890, 4672, 2078, 67, 896, 273, 2078, 67, 2626, 273, 374, 3734, 273, 599, 18289, 2232, 273, 365, 18, 2116, 18, 84, 2232, 578, 306, 474, 12, 88, 15780, 1...
GmstTweak(_('Arrow: Litter Count'), _("Maximum number of spent arrows allowed in cell."), 'iArrowMaxRefCount', ('[15]',15), ('25',25), ('35',35), ('50',50), ('100',100), ('500',500), ), GmstTweak(_('Arrow: Litter Time'), _("Time before spent arrows fade away from cells and actors."), 'fArrowAgeMax', (_('1 Minute'),60),...
...
def buildPatch(self,patchFile,keep,log): """Build patch.""" eids = ((self.key,),self.key)[isinstance(self.key,tuple)] for eid,value in zip(eids,self.choiceValues[self.chosen]): gmst = MreGmst(('GMST',0,0,0,0)) gmst.eid,gmst.value,gmst.longFids = eid,value,True fid = gmst.fid = keep(gmst.getFallout3Fid()) patchFile.GMST...
33c406410851d297b48db7962bfb397b6ace74bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6682/33c406410851d297b48db7962bfb397b6ace74bb/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 2272, 812, 16, 10102, 16, 1330, 4672, 3536, 3116, 4729, 12123, 425, 2232, 273, 14015, 2890, 18, 856, 16, 3631, 2890, 18, 856, 25146, 291, 1336, 12, 2890, 18, ...
latitude, longitude = (0.0, 0.0)
latitude, longitude = None, None
def add_location(self, title, description, address, URL, approved, container, geo_type, latitude, longitude): """ add a location in the database """ from Products.NaayaContent.NyGeoPoint.NyGeoPoint import addNyGeoPoint meta_type = 'Naaya GeoPoint'
7cbe1bbec0000fbf6380ecd146ccb51edc68ee87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/7cbe1bbec0000fbf6380ecd146ccb51edc68ee87/GeoMapTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3562, 12, 2890, 16, 2077, 16, 2477, 16, 1758, 16, 1976, 16, 20412, 16, 1478, 16, 7856, 67, 723, 16, 8904, 16, 9192, 4672, 3536, 527, 279, 2117, 316, 326, 2063, 3536, 628, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3562, 12, 2890, 16, 2077, 16, 2477, 16, 1758, 16, 1976, 16, 20412, 16, 1478, 16, 7856, 67, 723, 16, 8904, 16, 9192, 4672, 3536, 527, 279, 2117, 316, 326, 2063, 3536, 628, 80...
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational'):
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational', verbose = False):
def __init__(self, vertices = [], rays = [], ieqs = [], linearities = [], cdd_type = 'rational'): """ A class for polyhedral objects. Architecture is still in flux. Do not instantiate with both vertex/ray and ieq/linearity data: no consistency check is made.
e0588467c08546dbf9fab9708fa78f61fe9a839c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e0588467c08546dbf9fab9708fa78f61fe9a839c/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6928, 273, 5378, 16, 14961, 87, 273, 5378, 16, 9228, 12926, 273, 5378, 16, 9103, 1961, 273, 5378, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 2187, 3988,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6928, 273, 5378, 16, 14961, 87, 273, 5378, 16, 9228, 12926, 273, 5378, 16, 9103, 1961, 273, 5378, 16, 276, 449, 67, 723, 273, 296, 7034, 287, 2187, 3988,...
print 'Step 1: Getting a list of all redirects' redirs = self.get_redirects_from_dump() print 'Step 2: Getting a list of all page titles' dump = xmlreader.XmlDump(self.xmlFilename) pagetitles = {} for entry in dump.parse(): pagetitles[entry.title] = None print 'Step 3: Comparing.' brokenredirs = []
wikipedia.output(u'Getting a list of all redirects and of all page titles...') redirs, pageTitles = self.get_redirects_from_dump(alsoGetPageTitles = True)
def retrieve_broken_redirects(self): if self.xmlFilename == None: # retrieve information from the live wiki's maintenance page mysite = wikipedia.getSite() # broken redirect maintenance page's URL path = mysite.broken_redirects_address(default_limit = False) print 'Retrieving special page...' maintenance_txt = mysite.g...
3c5f3fd14b075f82c3e5efddc5ba087c3b3b2dd9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/3c5f3fd14b075f82c3e5efddc5ba087c3b3b2dd9/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 70, 19906, 67, 22715, 12, 2890, 4672, 309, 365, 18, 2902, 5359, 422, 599, 30, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, 312, 1900, 1137, 273, 21137, 18, 588, ...
title = u'S&haring', helpString = u'Sharing-related test commands',
title = _(u'S&haring'), helpString = _(u'Sharing-related test commands'),
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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, 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, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 2, -1...
elif partition.getFlag(parted.PARTITION_MSFT_RESERVED):
elif partition.type == parted.PARTITION_MSFT_RESERVED:
def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag...
c4993745f76e2dbbb7e80145e7a6166e91f08d7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/c4993745f76e2dbbb7e80145e7a6166e91f08d7e/screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3590, 4672, 365, 18, 10534, 273, 3590, 365, 18, 1467, 273, 3590, 18, 588, 1225, 1435, 365, 18, 1937, 273, 3590, 18, 14330, 18, 1937, 365, 18, 409, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3590, 4672, 365, 18, 10534, 273, 3590, 365, 18, 1467, 273, 3590, 18, 588, 1225, 1435, 365, 18, 1937, 273, 3590, 18, 14330, 18, 1937, 365, 18, 409, 273, ...
img = '<%s="%s" %s longdesc="%s" %s">' % (tag, url.encode('utf8'), caption, caption, attr);
img = '<%s="%s" %s longdesc="%s" %s">' % (tag, url.encode('utf8'), caption.encode('utf8'), caption.encode('utf8'), attr);
def writeImageLink(self, obj): if self.images is None: return
ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6694/ebf8fe65e3a3d9ad9a0c126dcc3d490fbcd106a4/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2040, 2098, 12, 2890, 16, 1081, 4672, 309, 365, 18, 7369, 353, 599, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2040, 2098, 12, 2890, 16, 1081, 4672, 309, 365, 18, 7369, 353, 599, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self._add_library(name, sources, install_dir, build_info)
self._add_library(name, sources, None, build_info)
def add_library(self,name,sources,**build_info): """Add library to configuration.
0407363fe009c004da0e2c2bbbaa421cb64e160d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/0407363fe009c004da0e2c2bbbaa421cb64e160d/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12083, 12, 2890, 16, 529, 16, 10141, 16, 636, 3510, 67, 1376, 4672, 3536, 986, 5313, 358, 1664, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12083, 12, 2890, 16, 529, 16, 10141, 16, 636, 3510, 67, 1376, 4672, 3536, 986, 5313, 358, 1664, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pass
sec.setSeqRepeat(False)
def updateAdvanced(self, slotid): sec = eDVBSatelliteEquipmentControl.getInstance() lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = confi...
45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23618, 12, 2890, 16, 4694, 350, 4672, 1428, 273, 425, 30199, 12692, 270, 19345, 13142, 11568, 3367, 18, 588, 1442, 1435, 328, 6423, 15163, 273, 2618, 364, 619, 316, 1048, 12, 21, 1...
try: if mapping: k = v[sort] else: k = getattr(v, sort) except AttributeError, KeyError: k = None
if mapping: k = v.get(sort) else: k = getattr(v, sort, None)
def sort_sequence(self, sequence, md):
28b76553fbc2347e0e592ec4fc30e3c9c17547fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/28b76553fbc2347e0e592ec4fc30e3c9c17547fd/DT_In.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 6178, 12, 2890, 16, 3102, 16, 3481, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 6178, 12, 2890, 16, 3102, 16, 3481, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fd.BlockSizeList.append((BlockSize, BlockNumber, BlockSizePcd))
obj.BlockSizeList.append((BlockSize, BlockNumber, BlockSizePcd))
def __GetBlockStatement(self, obj): if not self.__IsKeyword( "BlockSize"):
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 967, 1768, 3406, 12, 2890, 16, 1081, 4672, 309, 486, 365, 16186, 2520, 8736, 12, 315, 22506, 6, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 967, 1768, 3406, 12, 2890, 16, 1081, 4672, 309, 486, 365, 16186, 2520, 8736, 12, 315, 22506, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
module = None
mod_name = None
def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hcmw:i:o:', ['help', 'class', 'module', 'working_dir=', 'inputqueue', 'outputqueue']) except: usage() input_queue = None output_queue = None wdir = 'work' module = None class_name = None for o, a in opts: if o in ('-h', '--help'): usage() sys.exit() if o in ('-...
dbd75ed69a403fda0ee09db565a1e1b5a1caa785 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/dbd75ed69a403fda0ee09db565a1e1b5a1caa785/start_service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 7670, 91, 30, 77, 30, 83, 30, 2187, 10228, 5201, 2187, 296, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 7670, 91, 30, 77, 30, 83, 30, 2187, 10228, 5201, 2187, 296, 1106, ...
def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, "Preprocess")
def __init__(self, parent=None, signalManager=None, name="Preprocess"): OWWidget.__init__(self, parent, signalManager, name)
def __init__(self, parent=None, signalManager=None): OWWidget.__init__(self, parent, signalManager, "Preprocess") self.inputs = [("Example Table", ExampleTable, self.setData)] #, ("Learner", orange.Learner, self.setLearner)] self.outputs = [("Preprocessing", orngWrap.PreprocessedLearner), ("Preprocessed Example Table"...
040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/040b4fbf2aa44ad50b9f46c3dfe85ba5dcbacbec/OWPreprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 1386, 2567, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 33, 7036, 16, 508, 1546, 1386, 2567, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 508, ...
db['YP_LAST_MODIFIED'] = '%010d' % time.time() if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn()
if not virtualp: db['YP_LAST_MODIFIED'] = '%010d' % time.time() if not db.has_key('YP_MASTER_NAME'): db['YP_MASTER_NAME'] = socket.getfqdn()
def remove(mlist, cgi=0): # Acquire the global list database lock lock = LockFile.LockFile(LOCKFILE) lock.lock() lockfp = None try: listname = mlist.internal_name() # Crack open the dbhash file, and delete all the entries. See the # discussion above for while we lock the aliases.db file this way. lockfp = open(DBFILE)...
0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5/Postfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 781, 376, 16, 276, 10052, 33, 20, 4672, 468, 28822, 326, 2552, 666, 2063, 2176, 2176, 273, 3488, 812, 18, 2531, 812, 12, 6589, 3776, 13, 2176, 18, 739, 1435, 2176, 7944, 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, 1206, 12, 781, 376, 16, 276, 10052, 33, 20, 4672, 468, 28822, 326, 2552, 666, 2063, 2176, 2176, 273, 3488, 812, 18, 2531, 812, 12, 6589, 3776, 13, 2176, 18, 739, 1435, 2176, 7944, 273,...
Error are reported to standard output.
If exception(s) occur, an Error is raised with a list of reasons.
def copytree(src, dst, symlinks=0): """Recursively copy a directory tree using copy2(). The destination directory must not already exist. Error are reported to standard output. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, th...
a4c93b68f164e6e3db881e9af5f0fdc9153680d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4c93b68f164e6e3db881e9af5f0fdc9153680d4/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 20, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 20, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 971, 1520, 12, 87, ...
self.__peer = conn.getpeername()
try: self.__peer = conn.getpeername() except socket.error as err: self.close() if err.args[0] != errno.ENOTCONN: raise return
def __init__(self, server, conn, addr): asynchat.async_chat.__init__(self, conn) self.__server = server self.__conn = conn self.__addr = addr self.__line = [] self.__state = self.COMMAND self.__greeting = 0 self.__mailfrom = None self.__rcpttos = [] self.__data = '' self.__fqdn = socket.getfqdn() self.__peer = conn.get...
8497f0a85d97e1d9660bbb450ba9f2dc8b03f87d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8497f0a85d97e1d9660bbb450ba9f2dc8b03f87d/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4...
self.salestax = calcSalesTax(self.billAddressID)
self.salestax = calcSalesTax(self.billAddressID, self.cart.subtotal())
def act_update(self): """ Update Cashier with some new information. This method allows you to inform the Cashier incrementally, if you want. Just post to the page with an 'update' action, and it'll recognize any of the required fields. """ for item in self.steps: if self.input.has_key(item): setattr(self, item, self.i...
12de07d713c9fa698dc8f6a1ac47bdaf2ca0fcf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/12de07d713c9fa698dc8f6a1ac47bdaf2ca0fcf3/Cashier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 2725, 12, 2890, 4672, 3536, 2315, 385, 961, 2453, 598, 2690, 394, 1779, 18, 225, 1220, 707, 5360, 1846, 358, 13235, 326, 385, 961, 2453, 5504, 1230, 16, 309, 1846, 2545, 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, 1328, 67, 2725, 12, 2890, 4672, 3536, 2315, 385, 961, 2453, 598, 2690, 394, 1779, 18, 225, 1220, 707, 5360, 1846, 358, 13235, 326, 385, 961, 2453, 5504, 1230, 16, 309, 1846, 2545, 18, ...
lockitem = LockItem(user)
lockitem = LockItem(user, timeout=(self.timeout_days * 86400))
def lock(self, object): '''Locks an object''' locker = self.locker(object) if locker: raise LockingError, '%s is already locked' % pathOf(object)
7f0ae4e86fe99771bac3b4fede1e65c8338899ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/7f0ae4e86fe99771bac3b4fede1e65c8338899ff/LockTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2176, 12, 2890, 16, 733, 4672, 9163, 19159, 392, 733, 26418, 28152, 273, 365, 18, 739, 264, 12, 1612, 13, 309, 28152, 30, 1002, 3488, 310, 668, 16, 1995, 87, 353, 1818, 8586, 11, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2176, 12, 2890, 16, 733, 4672, 9163, 19159, 392, 733, 26418, 28152, 273, 365, 18, 739, 264, 12, 1612, 13, 309, 28152, 30, 1002, 3488, 310, 668, 16, 1995, 87, 353, 1818, 8586, 11, 738, ...
"""
"""
def fl_popup_entry_get_by_text(p1, p2): """ fl_popup_entry_get_by_text(p1, p2) -> popup_entry """ retval = _fl_popup_entry_get_by_text(p1, p2) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 16086, 67, 4099, 67, 588, 67, 1637, 67, 955, 12, 84, 21, 16, 293, 22, 13, 31...