rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if 'email' in action: email = self.screen.current_model.expr_eval(action['email'] or '')
if action.get('email'): email = self.screen.current_model.expr_eval(action['email'])
def _action(self, action, atype): act = action.copy() obj_ids = self.screen.sel_ids_get() obj_id = self.screen.id_get() if not obj_ids and not obj_id: message(_('No record selected!'), self.window) return False email = {} if 'email' in action: email = self.screen.current_model.expr_eval(action['email'] or '') if not em...
f1759b1639d11a5ffbc555c28ad18b5bbcfa340d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/f1759b1639d11a5ffbc555c28ad18b5bbcfa340d/list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1128, 12, 2890, 16, 1301, 16, 30965, 4672, 1328, 273, 1301, 18, 3530, 1435, 1081, 67, 2232, 273, 365, 18, 9252, 18, 1786, 67, 2232, 67, 588, 1435, 1081, 67, 350, 273, 365, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1128, 12, 2890, 16, 1301, 16, 30965, 4672, 1328, 273, 1301, 18, 3530, 1435, 1081, 67, 2232, 273, 365, 18, 9252, 18, 1786, 67, 2232, 67, 588, 1435, 1081, 67, 350, 273, 365, 18, 9...
self._modifyLocation(-self.dx, -self.dy)
self._modifyLocation(-self.dx, 0) if self.dy != 0: needsUpdate = True self._modifyLocation(0, self.dy) for sprite in self.mapView: if self.collideFunc(self, sprite) and isImpassable(sprite.mapElement): self._modifyLocation(0, -self.dy) if needsUpdate:
def update(self, *args): #needsUpdate = False if self.dx != 0 or self.dy != 0: self._modifyLocation(self.dx, self.dy) for sprite in self.mapView: if self.collideFunc(self, sprite) and isImpassable(sprite.mapElement): self._modifyLocation(-self.dx, -self.dy) imWidth, imHeight = self.mapView.imageSize if self.mapView....
aa6f9694a8ec1b2080db694285871ca092a6098c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14405/aa6f9694a8ec1b2080db694285871ca092a6098c/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 380, 1968, 4672, 468, 20600, 1891, 273, 1083, 225, 309, 365, 18, 13437, 480, 374, 578, 365, 18, 15680, 480, 374, 30, 365, 6315, 17042, 2735, 12, 2890, 18, 13437, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 380, 1968, 4672, 468, 20600, 1891, 273, 1083, 225, 309, 365, 18, 13437, 480, 374, 578, 365, 18, 15680, 480, 374, 30, 365, 6315, 17042, 2735, 12, 2890, 18, 13437, 16...
self._set('bitrate', fmt[3])
self._set('bitrate', fmt[3] / 125) self._set('byterate', fmt[3])
def _parseRIFFChunk(self,file): h = file.read(8) if len(h) < 4: return False name = h[:4] size = struct.unpack('<I',h[4:8])[0]
99548466a97b3f99eac50e900cc5b57cd0f76cae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11721/99548466a97b3f99eac50e900cc5b57cd0f76cae/riff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 2259, 2246, 5579, 12, 2890, 16, 768, 4672, 366, 273, 585, 18, 896, 12, 28, 13, 309, 562, 12, 76, 13, 411, 1059, 30, 327, 1083, 508, 273, 366, 10531, 24, 65, 963, 273, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2670, 2259, 2246, 5579, 12, 2890, 16, 768, 4672, 366, 273, 585, 18, 896, 12, 28, 13, 309, 562, 12, 76, 13, 411, 1059, 30, 327, 1083, 508, 273, 366, 10531, 24, 65, 963, 273, 19...
link_basename = GroupsController.groups[gid]['name'].replace(strip_prefix, '', 1)
link_basename = \ GroupsController.groups[gid]['name'].replace(strip_prefix, '', 1)
def CheckGroupSymlinks(self, gid=None, group=None, oldname=None, delete=False, strip_prefix=None, batch=False, auto_answer=None): """For each member of a group, verify member has a symlink to the shared group dir inside his home (or under level 2 directory). If not, create the link. Eventually delete links pointing to ...
2c25685af98e96114695a04efeb86385220aeb9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2c25685af98e96114695a04efeb86385220aeb9c/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 1114, 18475, 87, 12, 2890, 16, 11399, 33, 7036, 16, 1041, 33, 7036, 16, 1592, 529, 33, 7036, 16, 1430, 33, 8381, 16, 2569, 67, 3239, 33, 7036, 16, 2581, 33, 8381, 16, 3656, 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, 2073, 1114, 18475, 87, 12, 2890, 16, 11399, 33, 7036, 16, 1041, 33, 7036, 16, 1592, 529, 33, 7036, 16, 1430, 33, 8381, 16, 2569, 67, 3239, 33, 7036, 16, 2581, 33, 8381, 16, 3656, 67,...
del sys
def register(func, *targs, **kargs): """register a function to be executed upon normal program termination func - function to be called at exit targs - optional arguments to pass to func kargs - optional keyword arguments to pass to func """ _exithandlers.append((func, targs, kargs))
41c064e85ba2624d69748b41932511d2edf88653 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/41c064e85ba2624d69748b41932511d2edf88653/atexit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 644, 16, 380, 88, 1968, 16, 2826, 79, 1968, 4672, 3536, 4861, 279, 445, 358, 506, 7120, 12318, 2212, 5402, 19650, 225, 1326, 300, 445, 358, 506, 2566, 622, 2427, 268, 1968, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 644, 16, 380, 88, 1968, 16, 2826, 79, 1968, 4672, 3536, 4861, 279, 445, 358, 506, 7120, 12318, 2212, 5402, 19650, 225, 1326, 300, 445, 358, 506, 2566, 622, 2427, 268, 1968, 3...
print str[4]
def string_segmentation(args, cluster, ccs, string, groups, phrases, H_a, theta, R, hough_image, image): """This function should perform the string segmentation."""
69b5bb9017bd106b070f14f72121ba350eb10df5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2794/69b5bb9017bd106b070f14f72121ba350eb10df5/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 533, 67, 9273, 367, 12, 1968, 16, 2855, 16, 276, 2143, 16, 533, 16, 3252, 16, 31413, 16, 670, 67, 69, 16, 7338, 16, 534, 16, 366, 4966, 67, 2730, 16, 1316, 4672, 3536, 2503, 445, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 533, 67, 9273, 367, 12, 1968, 16, 2855, 16, 276, 2143, 16, 533, 16, 3252, 16, 31413, 16, 670, 67, 69, 16, 7338, 16, 534, 16, 366, 4966, 67, 2730, 16, 1316, 4672, 3536, 2503, 445, 1...
self._model.t = solver.t_cur self._model.real_x = solver.y_cur rhs = self._model.real_dx
if self._model.t != solver.t_cur: self._model.t = solver.t_cur self._model.real_x = solver.y_cur rhs = self._model.real_dx
def handle_event(self, solver, event_info): """ This method is called when Assimulo finds an event. """ #Moving data to the model self._model.t = solver.t_cur self._model.real_x = solver.y_cur #Evaluating the rhs (Have to evaluate the values in the model) rhs = self._model.real_dx eInfo = self._model.event_info eInfo....
7dbdb20f7e639808f29ecd84ddc2d9697e215117 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/7dbdb20f7e639808f29ecd84ddc2d9697e215117/assimulo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2575, 12, 2890, 16, 12776, 16, 871, 67, 1376, 4672, 3536, 1220, 707, 353, 2566, 1347, 4725, 381, 26478, 13094, 392, 871, 18, 3536, 468, 49, 13767, 501, 358, 326, 938, 365, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2575, 12, 2890, 16, 12776, 16, 871, 67, 1376, 4672, 3536, 1220, 707, 353, 2566, 1347, 4725, 381, 26478, 13094, 392, 871, 18, 3536, 468, 49, 13767, 501, 358, 326, 938, 365, 63...
def willblock(self,*args,**kwargs): return traced_call(self.sock,"socket.willblock",self.sock.willblock,args,kwargs)
def willblock(self,*args,**kwargs): return traced_call(self.sock,"socket.willblock",self.sock.willblock,args,kwargs)
73585345fe5f99a8f8f82c8c6e5fba2301440367 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/73585345fe5f99a8f8f82c8c6e5fba2301440367/strace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 903, 2629, 12, 2890, 16, 14, 1968, 16, 636, 4333, 4672, 327, 2606, 72, 67, 1991, 12, 2890, 18, 15031, 10837, 7814, 18, 20194, 2629, 3113, 2890, 18, 15031, 18, 20194, 2629, 16, 1968, 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, 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, 903, 2629, 12, 2890, 16, 14, 1968, 16, 636, 4333, 4672, 327, 2606, 72, 67, 1991, 12, 2890, 18, 15031, 10837, 7814, 18, 20194, 2629, 3113, 2890, 18, 15031, 18, 20194, 2629, 16, 1968, 16...
if serie_config.min and min_index:
if serie_config.min and not min_index == None:
def render(self,data={}, context={}):
b63f55e65e0fbb6889d4b5df022da2c7246f162b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3323/b63f55e65e0fbb6889d4b5df022da2c7246f162b/chart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 892, 28793, 819, 12938, 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, ...
[ 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, 1743, 12, 2890, 16, 892, 28793, 819, 12938, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.selenium.open("/portal/admin_users_html", True)
self.selenium.open("/portal/admin_local_users_html", True)
def test_delete_user(self): self.selenium.open("/portal/admin_users_html", True) #Check the last user checkbox self.selenium.click( "//div[@class='datatable']/table/tbody/tr[last()]/td/input") username = self.selenium.get_text( "//div[@class='datatable']/table/tbody/tr[last()]/td[2]") self.selenium.click("//input[@valu...
d2f8ead77568ae181bdec2c39ea8c0a00fc7c715 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/d2f8ead77568ae181bdec2c39ea8c0a00fc7c715/test_user_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 67, 1355, 12, 2890, 4672, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 3729, 67, 5577, 67, 2620, 3113, 1053, 13, 468, 1564, 326, 1142, 729, 11832, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 67, 1355, 12, 2890, 4672, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 3729, 67, 5577, 67, 2620, 3113, 1053, 13, 468, 1564, 326, 1142, 729, 11832, 365...
def locate(self, name, debug=1):
def locate(self, name, debug=0):
def locate(self, name, debug=1): """ Get a reference to an object with the given name which is somewhere on the path above us. """ return self._lookup(name, debug=debug)
ea0b08aa06fe462a957cfe0e88a4554a2bc285cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ea0b08aa06fe462a957cfe0e88a4554a2bc285cc/refpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 12, 2890, 16, 508, 16, 1198, 33, 20, 4672, 3536, 968, 279, 2114, 358, 392, 733, 598, 326, 864, 508, 1492, 353, 22234, 603, 326, 589, 5721, 584, 18, 3536, 327, 365, 6315, 8664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10627, 12, 2890, 16, 508, 16, 1198, 33, 20, 4672, 3536, 968, 279, 2114, 358, 392, 733, 598, 326, 864, 508, 1492, 353, 22234, 603, 326, 589, 5721, 584, 18, 3536, 327, 365, 6315, 8664, ...
self.theConfigDB.read( theDefaultIniFileName )
self.theConfigDB.read( theDefaultIniFileName )
def __init__(self, aSimulator = None ): """sets up the osogo session, creates Mainwindow and other fundamental windows but doesn't show them"""
aa247f7afd59b4b5d1bf58d540590f0406a18938 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12724/aa247f7afd59b4b5d1bf58d540590f0406a18938/GtkSessionMonitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 279, 7993, 11775, 273, 599, 262, 30, 3536, 4424, 731, 326, 1140, 717, 83, 1339, 16, 3414, 12740, 5668, 471, 1308, 284, 1074, 14773, 287, 9965, 1496, 3302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 279, 7993, 11775, 273, 599, 262, 30, 3536, 4424, 731, 326, 1140, 717, 83, 1339, 16, 3414, 12740, 5668, 471, 1308, 284, 1074, 14773, 287, 9965, 1496, 3302, ...
self.l0.SetLabel( "(%d): no item selected" %(ch.GetId()) )
self.l0.SetLabel( "(%d): no valid item selected" %(ch.GetId()) )
def OnTestResizeDivisionButton( self, event ): ch = self.ch2 itemIndex = ch.GetSelectedItem() if ((itemIndex > 0) and (itemIndex < ch.GetItemCount())): curExtent = ch.GetUIExtent( itemIndex ) ch.ResizeDivision( itemIndex, curExtent.x - 5 ) self.l0.SetLabel( "(%d): resized btw. %d and %d" %(ch.GetId(), itemIndex - 1, it...
8e00093ae4d0bf1a005a76b9785f4cd179e7b5d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8e00093ae4d0bf1a005a76b9785f4cd179e7b5d1/ColumnHeader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4709, 12182, 28223, 3616, 12, 365, 16, 871, 262, 30, 462, 273, 365, 18, 343, 22, 761, 1016, 273, 462, 18, 967, 7416, 1180, 1435, 309, 14015, 1726, 1016, 405, 374, 13, 471, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 4709, 12182, 28223, 3616, 12, 365, 16, 871, 262, 30, 462, 273, 365, 18, 343, 22, 761, 1016, 273, 462, 18, 967, 7416, 1180, 1435, 309, 14015, 1726, 1016, 405, 374, 13, 471, 261, ...
self.assertRaises(TypeError, list, ifilter(isEven, N(s)))
self.assertRaises(TypeError, ifilter, isEven, N(s))
def test_ifilter(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s))) self.assertRaises(TypeError, ifilter, isEven, X(s)) self.assertRaises(TypeError, list, ifilter(isEven, N(s))) self.assertRai...
8690c4ed3fa1f1889459249c7e50e11c2052b340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8690c4ed3fa1f1889459249c7e50e11c2052b340/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 430, 1088, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 18088, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 17172, 16, 3787, 713, 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, 1842, 67, 430, 1088, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 18088, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 17172, 16, 3787, 713, 16, ...
if chunk.content_type.lower() == 'application/im-iscomposing+xml': data = IsComposingMessage.parse(chunk.data)
if content_type.lower() == 'application/im-iscomposing+xml': data = IsComposingMessage.parse(content)
def _handle_SEND(self, chunk): if self.direction=='sendonly': return if chunk.content_type.lower()=='message/cpim': cpim_headers, content = MessageCPIMParser.parse_string(chunk.data) content_type = cpim_headers.get('Content-Type') else: cpim_headers = {} content = chunk.data content_type = chunk.content_type # Note: su...
b5db2e1fa585458530b698bc5340815764741da7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/b5db2e1fa585458530b698bc5340815764741da7/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 21675, 12, 2890, 16, 2441, 4672, 309, 365, 18, 9855, 18920, 4661, 3700, 4278, 327, 309, 2441, 18, 1745, 67, 723, 18, 8167, 1435, 18920, 2150, 19, 4057, 381, 4278, 3283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 67, 21675, 12, 2890, 16, 2441, 4672, 309, 365, 18, 9855, 18920, 4661, 3700, 4278, 327, 309, 2441, 18, 1745, 67, 723, 18, 8167, 1435, 18920, 2150, 19, 4057, 381, 4278, 3283, ...
outname = os.path.join(cachePath,'srcs',os.path.basename(uri.path)) httpCmds += [ ['curl', '--create-dirs' ] \ + ['-o', outname, h ] ]
if context.value('distHost') == 'Darwin': httpCmds += [ ['curl', '--create-dirs', '-o', context.cachePath(uri.path), h ] ] else: httpCmds += [ [ '/usr/bin/wget', '-P', os.path.dirname(context.cachePath(uri.path)) , h ] ]
def remoteSyncCommand(filenames, cacheDir=None,admin=False,relative=False): '''returns a pair (downCmdline, upCmdline) where downCmdline can be used to download from the remote machine onto the local machine and upCmdline can be used to upload from the local machine to the remote machine. ''' downCmdline = None upCmdli...
a0c6ec96af52deadeb9f1a0b39bbd056a6c1deff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a0c6ec96af52deadeb9f1a0b39bbd056a6c1deff/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2632, 4047, 2189, 12, 19875, 16, 19946, 33, 7036, 16, 3666, 33, 8381, 16, 11626, 33, 8381, 4672, 9163, 6154, 279, 3082, 261, 2378, 5931, 1369, 16, 731, 5931, 1369, 13, 1625, 2588, 5931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2632, 4047, 2189, 12, 19875, 16, 19946, 33, 7036, 16, 3666, 33, 8381, 16, 11626, 33, 8381, 4672, 9163, 6154, 279, 3082, 261, 2378, 5931, 1369, 16, 731, 5931, 1369, 13, 1625, 2588, 5931, ...
if hasattr(os, 'system') and os.system('more %s' % filename) == 0:
if hasattr(os, 'system') and os.system('more "%s"' % filename) == 0:
def getpager(): """Decide what method to use for paging through text.""" if type(sys.stdout) is not types.FileType: return plainpager if not sys.stdin.isatty() or not sys.stdout.isatty(): return plainpager if 'PAGER' in os.environ: if sys.platform == 'win32': # pipes completely broken in Windows return lambda text: tem...
9c67a896f019233b34932c55e6be3a96a01890c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/9c67a896f019233b34932c55e6be3a96a01890c5/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 24081, 13332, 3536, 1799, 831, 4121, 707, 358, 999, 364, 17859, 3059, 977, 12123, 309, 618, 12, 9499, 18, 10283, 13, 353, 486, 1953, 18, 28941, 30, 327, 7351, 24081, 309, 486, 2589,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24081, 13332, 3536, 1799, 831, 4121, 707, 358, 999, 364, 17859, 3059, 977, 12123, 309, 618, 12, 9499, 18, 10283, 13, 353, 486, 1953, 18, 28941, 30, 327, 7351, 24081, 309, 486, 2589,...
__ac_cookie = self.request.cookies.get('__ac', ''),
cookie = self.request.cookies.get('__ac', ''),
def upload_settings(self): sp = getToolByName(self.context, "portal_properties").site_properties portal_url = getToolByName(self.context, 'portal_url')
534114a306f814244a5d46f68fa18fc4178e2aec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9052/534114a306f814244a5d46f68fa18fc4178e2aec/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3617, 67, 4272, 12, 2890, 4672, 1694, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 315, 24386, 67, 4738, 20387, 4256, 67, 4738, 11899, 67, 718, 273, 336, 6364, 5911, 12, 2890, 18, 247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3617, 67, 4272, 12, 2890, 4672, 1694, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 315, 24386, 67, 4738, 20387, 4256, 67, 4738, 11899, 67, 718, 273, 336, 6364, 5911, 12, 2890, 18, 247...
def fl_get_xyplot_data_pointer(ob, id, x, y, n): """ fl_get_xyplot_data_pointer(ob, id, x, y, n) """ _fl_get_xyplot_data_pointer(ob, id, x, y, n)
def fl_get_xyplot_data_pointer(obj, id, x, y, n): """ fl_get_xyplot_data_pointer(obj, id, x, y, n) """ _fl_get_xyplot_data_pointer(obj, id, x, y, n)
def fl_get_xyplot_data_pointer(ob, id, x, y, n): """ fl_get_xyplot_data_pointer(ob, id, x, y, n) """ _fl_get_xyplot_data_pointer(ob, id, x, y, n)
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 1698, 4032, 67, 892, 67, 10437, 12, 2603, 16, 612, 16, 619, 16, 677, 16, 290, 4672, 3536, 1183, 67, 588, 67, 1698, 4032, 67, 892, 67, 10437, 12, 2603, 16, 612, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 1698, 4032, 67, 892, 67, 10437, 12, 2603, 16, 612, 16, 619, 16, 677, 16, 290, 4672, 3536, 1183, 67, 588, 67, 1698, 4032, 67, 892, 67, 10437, 12, 2603, 16, 612, 1...
guide = views.guides.getObjectByID(int(id)).setSawIntro()
try: guide = views.guides.getObjectByID(int(id)).setSawIntro() except database.ObjectNotFoundError: return
def doneWithIntro(self, id): guide = views.guides.getObjectByID(int(id)).setSawIntro() self.goToGuide(id)
7566ae05aec4990c189d9013e51ebf0530f240cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/7566ae05aec4990c189d9013e51ebf0530f240cf/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2731, 1190, 1702, 303, 12, 2890, 16, 612, 4672, 775, 30, 7343, 273, 7361, 18, 14066, 281, 18, 588, 921, 13331, 12, 474, 12, 350, 13, 2934, 542, 55, 2219, 1702, 303, 1435, 1335, 2063, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2731, 1190, 1702, 303, 12, 2890, 16, 612, 4672, 775, 30, 7343, 273, 7361, 18, 14066, 281, 18, 588, 921, 13331, 12, 474, 12, 350, 13, 2934, 542, 55, 2219, 1702, 303, 1435, 1335, 2063, ...
wx.Panel.__init__ (self, parent, id, pos, size, style)
wx.Panel.__init__ (self, parent, id, pos, size, style, name)
def createDialog(self, parent, id, pos, size, style): """Setup the graphic representation of the dialog""" wx.Panel.__init__ (self, parent, id, pos, size, style) self.SetMinSize(size) # play nice with sizers box = wx.BoxSizer(wx.HORIZONTAL) self.textControl = self.createTextControl() box.Add(self.textControl, 1, wx.C...
c5543160f8d29783113dd781a5d029c75cdb053c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/c5543160f8d29783113dd781a5d029c75cdb053c/FileBrowseButton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 16, 982, 16, 612, 16, 949, 16, 963, 16, 2154, 4672, 3536, 7365, 326, 19548, 4335, 434, 326, 6176, 8395, 7075, 18, 5537, 16186, 2738, 972, 261, 2890, 16, 982, 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, 752, 6353, 12, 2890, 16, 982, 16, 612, 16, 949, 16, 963, 16, 2154, 4672, 3536, 7365, 326, 19548, 4335, 434, 326, 6176, 8395, 7075, 18, 5537, 16186, 2738, 972, 261, 2890, 16, 982, 16, ...
TESTS:
TESTS::
def plot3d(self): r""" TESTS:
3153e8a6f77fbbdaab12733027eebc09b8e0b429 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3153e8a6f77fbbdaab12733027eebc09b8e0b429/arc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 4672, 436, 8395, 22130, 55, 30, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 4672, 436, 8395, 22130, 55, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (not RUNTIME and PkgSkip("OPENGL")==0): OPTS=['DIR:panda/src/glgsg', 'DIR:panda/src/glstuff', 'DIR:panda/src/gobj', 'BUILDING:PANDAGL', 'NVIDIACG']
if (not RUNTIME and PkgSkip("GL")==0): OPTS=['DIR:panda/src/glgsg', 'DIR:panda/src/glstuff', 'BUILDING:PANDAGL', 'NVIDIACG']
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
4d498acfe5ebc9517e624dc710c2b46a7217beb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/4d498acfe5ebc9517e624dc710c2b46a7217beb8/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""
If you pass a vector, it is assumed to be the coordinate vector of a point:: sage: P = Polyhedron(vertices=[[1,1],[1,-1],[-1,1],[-1,-1]]) sage: p = vector(ZZ, [1,0] ) sage: [ ieq.interior_contains(p) for ieq in P.inequality_generator() ] [True, True, True, False] """ try: if Vobj.is_vector(): return self.polyhedron()...
def interior_contains(self, Vobj): """ Tests whether the interior of the halfspace (excluding its boundary) defined by the inequality contains the given vertex/ray/line.
f28b5c2df8e3e2d20574c3cf9161e1889b95d754 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f28b5c2df8e3e2d20574c3cf9161e1889b95d754/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26230, 67, 12298, 12, 2890, 16, 776, 2603, 4672, 225, 971, 1846, 1342, 279, 3806, 16, 518, 353, 12034, 358, 506, 326, 7799, 3806, 434, 279, 1634, 2866, 225, 272, 410, 30, 453, 273, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26230, 67, 12298, 12, 2890, 16, 776, 2603, 4672, 225, 971, 1846, 1342, 279, 3806, 16, 518, 353, 12034, 358, 506, 326, 7799, 3806, 434, 279, 1634, 2866, 225, 272, 410, 30, 453, 273, 183...
assert major==2 and minor==5 extra = (upgrade_code, start, "2.5.2", None, migrate_features, None, "REMOVEOLDVERSION")
assert major=='2' and minor=='5' extra = [(upgrade_code, start, "2.5.2000", None, migrate_features, None, "REMOVEOLDVERSION")]
def remove_old_versions(db): "Fill the upgrade table." start = "%s.%s.0" % (major, minor) # This requests that feature selection states of an older # installation should be forwarded into this one. Upgrading # requires that both the old and the new installation are # either both per-machine or per-user. migrate_feature...
a5648609fabf0a737645eec2ad6ba468c0fc324e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/a5648609fabf0a737645eec2ad6ba468c0fc324e/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 1673, 67, 10169, 12, 1966, 4672, 315, 8026, 326, 8400, 1014, 1199, 787, 273, 2213, 87, 7866, 87, 18, 20, 6, 738, 261, 14019, 16, 8439, 13, 468, 1220, 3285, 716, 2572, 4421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1673, 67, 10169, 12, 1966, 4672, 315, 8026, 326, 8400, 1014, 1199, 787, 273, 2213, 87, 7866, 87, 18, 20, 6, 738, 261, 14019, 16, 8439, 13, 468, 1220, 3285, 716, 2572, 4421, ...
env.log.debug('Loading plugin %s from %s', name,
env.log.debug('Loading egg plugin %s from %s', name,
def flatten(dists): for dist in dists: if dist in memo: continue memo.add(dist) try: predecessors = ws.resolve([dist.as_requirement()]) for predecessor in flatten(predecessors): yield predecessor yield dist except pkg_resources.DistributionNotFound, e: env.log.error('Skipping "%s" ("%s" not found)', dist, e) except pkg...
42ac7772c042fe373f965030fcbfecd4d5430aed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/42ac7772c042fe373f965030fcbfecd4d5430aed/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 30467, 4672, 364, 2411, 316, 16871, 30, 309, 2411, 316, 11063, 30, 1324, 11063, 18, 1289, 12, 4413, 13, 775, 30, 18522, 1383, 273, 4945, 18, 10828, 3816, 4413, 18, 345, 67, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 30467, 4672, 364, 2411, 316, 16871, 30, 309, 2411, 316, 11063, 30, 1324, 11063, 18, 1289, 12, 4413, 13, 775, 30, 18522, 1383, 273, 4945, 18, 10828, 3816, 4413, 18, 345, 67, 3...
now = int(time.time() - 1) self._last_read = time.time() - 1
self._last_read = now
def update_dir (subdir): path = os.path.join(self._path, subdir) for entry in os.listdir(path): p = os.path.join(path, entry) if os.path.isdir(p): continue uniq = entry.split(self.colon)[0] self._toc[uniq] = os.path.join(subdir, entry)
956fffe61d369528e9be21d3b6d62edaa475a183 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/956fffe61d369528e9be21d3b6d62edaa475a183/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1214, 261, 1717, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 803, 16, 16921, 13, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 803, 4672, 293, 273, 1140, 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, 1089, 67, 1214, 261, 1717, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 803, 16, 16921, 13, 364, 1241, 316, 1140, 18, 1098, 1214, 12, 803, 4672, 293, 273, 1140, 18, ...
f_use = field.get("use",'').encode('ascii') or 'id'
f_use = field.get("use",'').encode('utf-8') or 'id'
def _tag_record(self, cr, rec, data_node=None): rec_model = rec.get("model").encode('ascii') model = self.pool.get(rec_model) assert model, "The model %s does not exist !" % (rec_model,) rec_id = rec.get("id",'').encode('ascii') rec_context = rec.get("context", None) if rec_context: rec_context = unsafe_eval(rec_contex...
fdabe0f0dbaca61e1dcb395b5df9ce609b1cc6e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fdabe0f0dbaca61e1dcb395b5df9ce609b1cc6e2/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 3366, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 1950, 67, 2284, 273, 1950, 18, 588, 2932, 2284, 20387, 3015, 2668, 9184, 6134, 938, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 3366, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 1950, 67, 2284, 273, 1950, 18, 588, 2932, 2284, 20387, 3015, 2668, 9184, 6134, 938, 273, 365, 18, ...
def fit_item_in_rectangle(self, rectangle, width, height):
def fit_item_in_rectangle(self, rectangle, width, height, font_h):
def fit_item_in_rectangle(self, rectangle, width, height): """ calculates the rectangle geometry and fits it into the area """ x = 0 y = 0 r = self.get_item_rectangle(rectangle, width, height)[2] if r.width > width: r.width, width = width, width - (r.width - width) if r.height > height: r.height, height = height, heigh...
ec09a89abffc006a16c2262aef73f463346519b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/ec09a89abffc006a16c2262aef73f463346519b4/tvlisting_area.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 67, 1726, 67, 267, 67, 2607, 4341, 12, 2890, 16, 11845, 16, 1835, 16, 2072, 16, 3512, 67, 76, 4672, 3536, 17264, 326, 11845, 5316, 471, 13351, 518, 1368, 326, 5091, 3536, 619, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 67, 1726, 67, 267, 67, 2607, 4341, 12, 2890, 16, 11845, 16, 1835, 16, 2072, 16, 3512, 67, 76, 4672, 3536, 17264, 326, 11845, 5316, 471, 13351, 518, 1368, 326, 5091, 3536, 619, 27...
import imp, sys, os for p in sys.path: path = os.path.join(p, "%(filename)s") if os.path.exists(path): break else: assert 0, "file not found: %(filename)s" mod = imp.load_dynamic("%(name)s", path) sys.modules["%(name)s"] = mod
def __load(): import imp, sys, os for p in sys.path: path = os.path.join(p, "%(filename)s") if os.path.exists(path): break else: assert 0, "file not found: %(filename)s" mod = imp.load_dynamic("%(name)s", path) __load() del __load
def report(self): # XXX something decent pass
fe0a44eba5386cceb89f4dbb183ff48b4d42426e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fe0a44eba5386cceb89f4dbb183ff48b4d42426e/bundlebuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 12, 2890, 4672, 468, 11329, 5943, 2109, 319, 1342, 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, ...
[ 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, 2605, 12, 2890, 4672, 468, 11329, 5943, 2109, 319, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pos = pos - 1
pos -= 1
def beginPage(self) : """Indicates the beginning of a new page, and extracts media information.""" self.pagecount += 1 # Default values mediatypelabel = "Plain" mediasourcelabel = "Main" mediasizelabel = "Default" orientationlabel = "Portrait" duplexmode = None # Now go upstream to decode media type, size, source, an...
197d53f6b2cec7da0cadce09072491fb0d0bb60f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/486/197d53f6b2cec7da0cadce09072491fb0d0bb60f/pclxl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 1964, 12, 2890, 13, 294, 3536, 23741, 326, 8435, 434, 279, 394, 1363, 16, 471, 16469, 3539, 1779, 12123, 365, 18, 2433, 1883, 1011, 404, 225, 468, 2989, 924, 20623, 270, 879, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2376, 1964, 12, 2890, 13, 294, 3536, 23741, 326, 8435, 434, 279, 394, 1363, 16, 471, 16469, 3539, 1779, 12123, 365, 18, 2433, 1883, 1011, 404, 225, 468, 2989, 924, 20623, 270, 879, 292, ...
return ("""def %(setter_name)s(self, val):
return ("""def %(setter_name)s(self, val):
return ("""def %(setter_name)s(self, val):
58dc2fb516629b074638c0917bee1caa903c1c84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4095/58dc2fb516629b074638c0917bee1caa903c1c84/metaclasses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 261, 8395, 536, 8975, 18062, 67, 529, 13, 87, 12, 2890, 16, 1244, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 261, 8395, 536, 8975, 18062, 67, 529, 13, 87, 12, 2890, 16, 1244, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
variant = self.model.data(self.model.index(0,0,QtCore.QModelIndex()), QtCore.Qt.CheckStateRole)
variant = self.model.data(self.model.index(0, 0, QtCore.QModelIndex()), QtCore.Qt.CheckStateRole)
def data(self): """ Tests self.model's implementation of QtCore.QAbstractItemModel::data() """ # Invalid index should return an invalid qvariant assert( not self.model.data(QtCore.QModelIndex(), QtCore.Qt.DisplayRole).isValid())
ed4ea4fec39587cca2aeb18d36a0fa5f722ca150 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/ed4ea4fec39587cca2aeb18d36a0fa5f722ca150/modeltest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 892, 1435, 3536, 468, 1962, 770, 1410, 327, 392, 2057, 1043, 8688, 1815, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 892, 1435, 3536, 468, 1962, 770, 1410, 327, 392, 2057, 1043, 8688, 1815, 12, ...
libraries=libraries
libraries=libraries
def get_source_files(path, ext="cpp"): return glob.glob(os.path.join(path, "*." + ext))
ad3fbdbed0c9703748367731c313d3ee909fdecd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/ad3fbdbed0c9703748367731c313d3ee909fdecd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3168, 67, 2354, 12, 803, 16, 1110, 1546, 4057, 84, 6, 4672, 327, 4715, 18, 10581, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 15902, 1199, 397, 1110, 3719, 225, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3168, 67, 2354, 12, 803, 16, 1110, 1546, 4057, 84, 6, 4672, 327, 4715, 18, 10581, 12, 538, 18, 803, 18, 5701, 12, 803, 16, 15902, 1199, 397, 1110, 3719, 225, 2, -100, -100, ...
"universe":"vanilla"
"universe":"vanilla",
def checkInjections(self,cp): try: if len(string.strip(cp.get('followup-triggers','injection-file'))) > 0: injectionFile = string.strip(cp.get('followup-triggers','injection-file')) else: injectionFile = None return(injectionFile) except: print >> sys.stderr, "ERROR: failure in followUpInspNode.checkInjections()" retur...
9e152961c57c114ca32f6d71b76f936ddd7c7b79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9e152961c57c114ca32f6d71b76f936ddd7c7b79/fu_Condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12039, 87, 12, 2890, 16, 4057, 4672, 775, 30, 309, 562, 12, 1080, 18, 6406, 12, 4057, 18, 588, 2668, 14641, 416, 17, 313, 8060, 17023, 31969, 17, 768, 11, 20349, 405, 374, 30, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12039, 87, 12, 2890, 16, 4057, 4672, 775, 30, 309, 562, 12, 1080, 18, 6406, 12, 4057, 18, 588, 2668, 14641, 416, 17, 313, 8060, 17023, 31969, 17, 768, 11, 20349, 405, 374, 30, 1...
Like itermonthdates(), but will yield day numbers tuples. For days outside the specified month the day number is 0.
Like itermonthdates(), but will yield day numbers. For days outside the specified month the day number is 0.
def itermonthdays(self, year, month): """ Like itermonthdates(), but will yield day numbers tuples. For days outside the specified month the day number is 0. """ for date in self.itermonthdates(year, month): if date.month != month: yield 0 else: yield date.day
ebc39e91b9062b35659f65241f0786e820734bb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/ebc39e91b9062b35659f65241f0786e820734bb1/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 7496, 9810, 12, 2890, 16, 3286, 16, 3138, 4672, 3536, 23078, 1400, 7496, 9683, 9334, 1496, 903, 2824, 2548, 5600, 18, 2457, 4681, 8220, 326, 1269, 3138, 326, 2548, 1300, 353, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 7496, 9810, 12, 2890, 16, 3286, 16, 3138, 4672, 3536, 23078, 1400, 7496, 9683, 9334, 1496, 903, 2824, 2548, 5600, 18, 2457, 4681, 8220, 326, 1269, 3138, 326, 2548, 1300, 353, 374, ...
comment = comment + str else: if paren: comment = comment + str
cur.append(token[1]) else: name = [] addr = [] for token in tokens: if token[1] == '': continue if token[0] == 2: name.append(token[1]) elif token[0] == 1: if specials.search(token[1]) >= 0: addr.append(quote(token[1])) else: addr.append(token[1])
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ...
ad36df39a17a332d23f762ca1cf22c7316382793 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ad36df39a17a332d23f762ca1cf22c7316382793/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 2...
sync_path = find_synctree(filename)
sync_path = find_synctree('overlay', filename)
def diff_files(filename): '''display a diff of the file''' if not synctool_config.DIFF_CMD: stderr('error: diff_cmd is undefined in %s' % synctool_config.CONF_FILE) return synctool_lib.DRY_RUN = 1 # be sure that it doesn't do any updates sync_path = find_synctree(filename) if not sync_path: return if synctool_...
2ff62496ba18171e59c468a7bcdf30fdc7e15d7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13401/2ff62496ba18171e59c468a7bcdf30fdc7e15d7e/synctool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 67, 2354, 12, 3459, 4672, 9163, 5417, 279, 3122, 434, 326, 585, 26418, 225, 309, 486, 6194, 299, 1371, 67, 1425, 18, 2565, 2246, 67, 19473, 30, 4514, 2668, 1636, 30, 3122, 67, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3122, 67, 2354, 12, 3459, 4672, 9163, 5417, 279, 3122, 434, 326, 585, 26418, 225, 309, 486, 6194, 299, 1371, 67, 1425, 18, 2565, 2246, 67, 19473, 30, 4514, 2668, 1636, 30, 3122, 67, 41...
out = property(default_output,
out = property(default_output,
def default_output(self): """Returns the default output for this node. :rtype: Variable instance
8963a02fce2adfaa5a561e13a296f58d5647b16e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8963a02fce2adfaa5a561e13a296f58d5647b16e/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 2844, 12, 2890, 4672, 3536, 1356, 326, 805, 876, 364, 333, 756, 18, 225, 294, 86, 723, 30, 7110, 791, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 2844, 12, 2890, 4672, 3536, 1356, 326, 805, 876, 364, 333, 756, 18, 225, 294, 86, 723, 30, 7110, 791, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
__id__ = "$Id: Solver.py,v 1.10 2003/08/28 23:04:19 ces74 Exp $"
__id__ = "$Id: Solver.py,v 1.11 2003/08/28 23:18:10 ces74 Exp $"
def setProperties(self):
4fef9a6761d1326e9f94fb1d9bde218561a31f14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/4fef9a6761d1326e9f94fb1d9bde218561a31f14/Solver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23126, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23126, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
stdout_thread.setDaemon(True)
stdout_thread.set_daemon(True)
def _communicate(self, input): stdout = None # Return stderr = None # Return
494f8ddc14b5c97fcbcb4a191b090335725f0785 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/494f8ddc14b5c97fcbcb4a191b090335725f0785/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5702, 318, 2659, 12, 2890, 16, 810, 4672, 3909, 273, 599, 468, 2000, 4514, 273, 599, 468, 2000, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5702, 318, 2659, 12, 2890, 16, 810, 4672, 3909, 273, 599, 468, 2000, 4514, 273, 599, 468, 2000, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
msd[dt+1] += ((b-a)**2).sum() mqd[dt+1] += ((b-a)**4).sum() msd /= av * A.shape[1] * A.shape[2] * (self.xp.radius*2)**2 mqd /= av * A.shape[1] * A.shape[2] * (self.xp.radius*2)**4 mqd[1:] /= (3 * msd[1:]**2)
diff = (b-a)**2 msd[dt+1] += diff.sum() mqd[dt+1] += (diff.sum(axis=-1)**2).sum() mqd *= av * A.shape[1] * A.shape[2] mqd[1:] /= 3*(5 * msd[1:]**2)
def nonGaussian(self,start,stop,av): """ Non gaussian parameter If av is 0 (Default), the calculation will act greedily, averaging over all the avilabe intervals of a given length. Example : start=1 stop=4 av=0 alpha[dt=0] = 1 alpha[dt=1] = ( alpha([1,2]) + alpha([2,3]) + alpha([3,4]))/3 alpha[dt=2] = ( alpha([1,3]) + ...
87cf025e08ad4dcbd7da5deccd0b80baaf9872d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3150/87cf025e08ad4dcbd7da5deccd0b80baaf9872d3/experiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 43, 12086, 12, 2890, 16, 1937, 16, 5681, 16, 842, 4672, 3536, 3858, 21490, 1569, 971, 1712, 353, 374, 261, 1868, 3631, 326, 11096, 903, 1328, 5174, 329, 3220, 16, 23713, 5755, 1879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 43, 12086, 12, 2890, 16, 1937, 16, 5681, 16, 842, 4672, 3536, 3858, 21490, 1569, 971, 1712, 353, 374, 261, 1868, 3631, 326, 11096, 903, 1328, 5174, 329, 3220, 16, 23713, 5755, 1879...
flavor = cls._flavorToString(version)
flavor = cls._flavorToString(flavor)
def _troveTupToStrings(cls, name, version, flavor=None): """ Turns a (name, version, flavor) tuple with strings or objects as elements, and converts it to a (name, version, flavor) tuple with only strings, to avoid unnecessarily exporting conary objects into the rbuild API. @param name: trove name @type name: string @p...
bc1c2eb4b2ea81bcfe9036e4c537b36e34e2cb9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8748/bc1c2eb4b2ea81bcfe9036e4c537b36e34e2cb9e/conaryfacade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 88, 303, 537, 56, 416, 5808, 87, 12, 6429, 16, 508, 16, 1177, 16, 19496, 33, 7036, 4672, 3536, 22425, 87, 279, 261, 529, 16, 1177, 16, 19496, 13, 3193, 598, 2064, 578, 2184, 487...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 88, 303, 537, 56, 416, 5808, 87, 12, 6429, 16, 508, 16, 1177, 16, 19496, 33, 7036, 4672, 3536, 22425, 87, 279, 261, 529, 16, 1177, 16, 19496, 13, 3193, 598, 2064, 578, 2184, 487...
if self.subwidget_list.has_key(name): self.tk.call(self._w, 'invoke', name)
if self.subwidget_list.has_key(name): self.tk.call(self._w, 'invoke', name)
def invoke(self, name):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 508, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 508, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Returns the new head.
Returns the new head. Also clears parent references.
def roots_reverse(h): """Reverse the heap root list. Returns the new head. """ if not h: return None tail = None next = h while h.next: next = h.next h.next = tail tail = h h = next h.next = tail return h
c8eb620289fa36a3908b979331cf5b34d9f40d5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11446/c8eb620289fa36a3908b979331cf5b34d9f40d5d/bh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12876, 67, 9845, 12, 76, 4672, 3536, 12650, 326, 10500, 1365, 666, 18, 2860, 326, 394, 910, 18, 8080, 22655, 982, 5351, 18, 3536, 309, 486, 366, 30, 327, 599, 5798, 273, 599, 1024, 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, 12876, 67, 9845, 12, 76, 4672, 3536, 12650, 326, 10500, 1365, 666, 18, 2860, 326, 394, 910, 18, 8080, 22655, 982, 5351, 18, 3536, 309, 486, 366, 30, 327, 599, 5798, 273, 599, 1024, 273...
self.eau = ExpandAsymmetricUnit(self.spacegroup, corepos, coreUijs)
self.eau = ExpandAsymmetricUnit(self.spacegroup, corepos, coreUijs, eps = 0.001)
def _expandAsymmetricUnit(self): """Perform symmetry expansion of self.stru using self.spacegroup. This method updates data in stru and eau.
808c34766a52c0b655d7fe65226e40d10e57ee47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/578/808c34766a52c0b655d7fe65226e40d10e57ee47/P_cif.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 1463, 2942, 6899, 2802, 12, 2890, 4672, 3536, 4990, 26144, 17965, 434, 365, 18, 701, 89, 1450, 365, 18, 2981, 1655, 18, 1220, 707, 4533, 501, 316, 609, 89, 471, 425, 8377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 12320, 1463, 2942, 6899, 2802, 12, 2890, 4672, 3536, 4990, 26144, 17965, 434, 365, 18, 701, 89, 1450, 365, 18, 2981, 1655, 18, 1220, 707, 4533, 501, 316, 609, 89, 471, 425, 8377, ...
sage: def h1(x): return sqrt(x^3 - 1) sage: def h2(x): return -sqrt(x^3 - 1) sage: plot([h1, h2], 1,4)
sage: def h1(x): return abs(sqrt(x^3 - 1)) sage: def h2(x): return -abs(sqrt(x^3 - 1)) sage: plot([h1, h2], 1,4)
sage: def h1(x): return sqrt(x^3 - 1)
6e12275fe86cd497b8f5b962e866e73e417637be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6e12275fe86cd497b8f5b962e866e73e417637be/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 366, 21, 12, 92, 4672, 327, 5700, 12, 92, 66, 23, 225, 300, 404, 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, 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, 272, 410, 30, 1652, 366, 21, 12, 92, 4672, 327, 5700, 12, 92, 66, 23, 225, 300, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.autoResolveLabelPath = labelPath cfg.installLabelPath = self.autoResolveLabelPath
resolveLabelPath = labelPath else: resolveLabelPath = [versions.Label(x) for x in self.autoResolveLabelPath] cfg.installLabelPath = resolveLabelPath
def _findTroves(addTroveList): validSize = True troveList = [] flavorMap = {} findTroveList = [] size = 0 troveVersionFlavors = {} for (name, versionStr, flavor, source, byDefault) in addTroveList: desFlavor = cfg.buildFlavor.copy() if flavor is not None: desFlavor = deps.overrideFlavor(desFlavor, flavor) findTroveList...
9aa1e34cd7569e028d9ba9f98e28f465cc219030 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9aa1e34cd7569e028d9ba9f98e28f465cc219030/recipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 56, 303, 3324, 12, 1289, 56, 303, 537, 682, 4672, 923, 1225, 273, 1053, 23432, 537, 682, 273, 5378, 19496, 863, 273, 2618, 1104, 56, 303, 537, 682, 273, 5378, 963, 273, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 56, 303, 3324, 12, 1289, 56, 303, 537, 682, 4672, 923, 1225, 273, 1053, 23432, 537, 682, 273, 5378, 19496, 863, 273, 2618, 1104, 56, 303, 537, 682, 273, 5378, 963, 273, 374,...
EnqueueCxx(ipath=IPATH, opts=OPTS, src='pnmFileTypeTIFF.cxx', obj='pnmimagetypes_pnmFileTypeTIFF.obj')
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))...
4ecd027408ee81a6771bc41746cadba3bc55b7b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/4ecd027408ee81a6771bc41746cadba3bc55b7b9/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
return run_sql(query1 % int(bskid))[0][0]
return run_sql(query1 % int(bskid))[0][0]
def __count_records(bskid): query1 = "SELECT count(id_record) FROM basket_record WHERE id_basket=%i GROUP BY id_basket" return run_sql(query1 % int(bskid))[0][0]
23370cd5b3382ad593a3d1e4f21772a0aeacc4a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/23370cd5b3382ad593a3d1e4f21772a0aeacc4a8/webbasket_migration_kit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1883, 67, 7094, 12, 2038, 79, 350, 4672, 843, 21, 273, 315, 4803, 1056, 12, 350, 67, 3366, 13, 4571, 12886, 67, 3366, 4852, 612, 67, 26219, 5095, 77, 13839, 6953, 612, 67, 26219,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1883, 67, 7094, 12, 2038, 79, 350, 4672, 843, 21, 273, 315, 4803, 1056, 12, 350, 67, 3366, 13, 4571, 12886, 67, 3366, 4852, 612, 67, 26219, 5095, 77, 13839, 6953, 612, 67, 26219,...
if tab != '' or ((of != '' or of.lower() != 'hd') and of != 'hb'):
if (tab != '' or ((of != '' or of.lower() != 'hd') and of != 'hb')) and \ recID != -1:
def page_start(req, of, cc, as, ln, uid, title_message=None, description='', keywords='', recID=-1, tab=''): "Start page according to given output format." _ = gettext_set_language(ln) if not title_message: title_message = _("Search Results") if not req: return # we were called from CLI content_type = get_output_for...
99d05df2f651ccbc08f6d39a68e3f0aa4eee3f33 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/99d05df2f651ccbc08f6d39a68e3f0aa4eee3f33/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1363, 67, 1937, 12, 3658, 16, 434, 16, 4946, 16, 487, 16, 7211, 16, 4555, 16, 2077, 67, 2150, 33, 7036, 16, 2477, 2218, 2187, 7093, 2218, 2187, 1950, 734, 29711, 21, 16, 3246, 2218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1363, 67, 1937, 12, 3658, 16, 434, 16, 4946, 16, 487, 16, 7211, 16, 4555, 16, 2077, 67, 2150, 33, 7036, 16, 2477, 2218, 2187, 7093, 2218, 2187, 1950, 734, 29711, 21, 16, 3246, 2218, ...
def __init__(self, newarg=1, *args, **kwargs): bytearray.__init__(self, *args, **kwargs)
def __init__(me, newarg=1, *args, **kwargs): bytearray.__init__(me, *args, **kwargs) x = subclass(4, b"abcd")
def __init__(self, newarg=1, *args, **kwargs): bytearray.__init__(self, *args, **kwargs)
be728c442e022977b20c856887b3fb0f20396547 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/be728c442e022977b20c856887b3fb0f20396547/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 394, 3175, 33, 21, 16, 380, 1968, 16, 2826, 4333, 4672, 14552, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 394, 3175, 33, 21, 16, 380, 1968, 16, 2826, 4333, 4672, 14552, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, ...
type=getattr(self, "type", "auto")
dtype=getattr(self, "type", "auto")
def __call__(self, data, weight=0): import orngWrap type=getattr(self, "type", "auto")
d9070630f95cd1bf8f5ad1ea8eb6f15097493d46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d9070630f95cd1bf8f5ad1ea8eb6f15097493d46/orngCI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 20, 4672, 1930, 578, 3368, 2964, 225, 618, 33, 588, 1747, 12, 2890, 16, 315, 723, 3113, 315, 6079, 7923, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 501, 16, 3119, 33, 20, 4672, 1930, 578, 3368, 2964, 225, 618, 33, 588, 1747, 12, 2890, 16, 315, 723, 3113, 315, 6079, 7923, 2, -100, -100, -100, -100, ...
source = self._makeOne(directory='transmogrify.filesystem.tests:empty')
source = self._makeOne(directory='transmogrify.filesystem.tests:empty', ignored='re:.*\.svn.*\nre:.*\.DS_Store\n')
def test_empty_directory(self): source = self._makeOne(directory='transmogrify.filesystem.tests:empty') self.assertEquals([], list(source))
94f52c25ba87683a69682af2a0eaad497aca5a2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11638/94f52c25ba87683a69682af2a0eaad497aca5a2d/test_source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5531, 67, 5149, 12, 2890, 4672, 1084, 273, 365, 6315, 6540, 3335, 12, 5149, 2218, 2338, 81, 717, 86, 1164, 18, 17846, 18, 16341, 30, 5531, 2187, 5455, 2218, 266, 30, 4509, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5531, 67, 5149, 12, 2890, 4672, 1084, 273, 365, 6315, 6540, 3335, 12, 5149, 2218, 2338, 81, 717, 86, 1164, 18, 17846, 18, 16341, 30, 5531, 2187, 5455, 2218, 266, 30, 4509, 58...
except socket.error: self.handle_error () return '', None
except socket.error, why: if why[0] in [ECONNRESET, ENOTCONN, ESHUTDOWN]: self.handle_close() return '', None else: raise
def recvfrom (self, datagram_size): "try to receive bytes from a datagram socket or handle close" try: return self.socket.recvfrom (datagram_size)
f9a3d11a35c08daf8091aaf7c60f3597181cbd56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/f9a3d11a35c08daf8091aaf7c60f3597181cbd56/async_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 2080, 261, 2890, 16, 1150, 17049, 67, 1467, 4672, 315, 698, 358, 6798, 1731, 628, 279, 1150, 17049, 2987, 578, 1640, 1746, 6, 775, 30, 327, 365, 18, 7814, 18, 18334, 2080, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 2080, 261, 2890, 16, 1150, 17049, 67, 1467, 4672, 315, 698, 358, 6798, 1731, 628, 279, 1150, 17049, 2987, 578, 1640, 1746, 6, 775, 30, 327, 365, 18, 7814, 18, 18334, 2080, 261, ...
layerBtns.append(Draw.Toggle(" ", layerBase + layerBtn, xpos, ypos, btnSize, btnSize, layers[layerBtn])) if (col+1) % 5: xpos += btnSize else: xpos += btnSize * 2
layerBtns.append(Draw.Toggle(" ", layerBase + layerBtn, expWidth + xpos, ypos, btnSize, btnSize, layers[layerBtn])) xpos += btnSize
def drawGUI(): global rppBtn, layers, layerBtns, projectName, projectButton ## Set background color BGL.glClearColor(0.7, 0.7, 0.6, 1) BGL.glClear(BGL.GL_COLOR_BUFFER_BIT) ## Set text color BGL.glColor3f(0, 0, 0) xPad = 10 height = 18 yLoc = xPad + 10 yDelta = height binWidth = Draw.GetStringWidth("Binary Format", ...
4592ac1c6506933737691ef09136834b05443979 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1122/4592ac1c6506933737691ef09136834b05443979/adrt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 43, 5370, 13332, 2552, 202, 86, 11858, 20541, 16, 6623, 16, 3018, 38, 88, 2387, 16, 17234, 16, 1984, 3616, 225, 7541, 1000, 5412, 2036, 605, 11261, 18, 7043, 9094, 2957, 12, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 43, 5370, 13332, 2552, 202, 86, 11858, 20541, 16, 6623, 16, 3018, 38, 88, 2387, 16, 17234, 16, 1984, 3616, 225, 7541, 1000, 5412, 2036, 605, 11261, 18, 7043, 9094, 2957, 12, 20, ...
src_root)
src_root)) logging.info('Conversion to lcov complete')
def Upload(self, coverage_file, upload_path, sym_path=None, src_root=None): """Upload the results to the dashboard.
3039e8499d9e67b0f9d59f0c0c4a6fe541e073c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/3039e8499d9e67b0f9d59f0c0c4a6fe541e073c5/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 11196, 67, 768, 16, 3617, 67, 803, 16, 5382, 67, 803, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 4672, 3536, 4777, 326, 1686, 358, 326, 11825, 18, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 12, 2890, 16, 11196, 67, 768, 16, 3617, 67, 803, 16, 5382, 67, 803, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 4672, 3536, 4777, 326, 1686, 358, 326, 11825, 18, 2, -100, -100, -10...
sage: cmp(G, Gamma0(8)) 1
sage: cmp(G, Gamma0(8)) in [-1,1] True
def __cmp__(self, other): r""" Compare self to other.
415b8504ba0f2243dc12dfd6f0c633a723016630 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/415b8504ba0f2243dc12dfd6f0c633a723016630/arithgroup_perm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 365, 358, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 365, 358, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
OUTPUT: - a quaternion algebra
OUTPUT: a quaternion algebra
def quaternion_algebra(self): """ Return the ambient quaternion algebra that contains this fractional ideal.
1ec65dfa0c3aab294b8ecca3f5f5493e154b7172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ec65dfa0c3aab294b8ecca3f5f5493e154b7172/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26774, 67, 287, 29087, 12, 2890, 4672, 3536, 2000, 326, 13232, 1979, 26774, 524, 29087, 716, 1914, 333, 20462, 23349, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26774, 67, 287, 29087, 12, 2890, 4672, 3536, 2000, 326, 13232, 1979, 26774, 524, 29087, 716, 1914, 333, 20462, 23349, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
log.debug('Event: %s', repr(d))
def _event(self, data): "Handle a JSON stream event, data is the JSON" d = json.loads(data) log.debug('Event: %s', repr(d))
01634de008075e37c027702edb7bcbf4bcc9cdae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/01634de008075e37c027702edb7bcbf4bcc9cdae/campfirewords.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 12, 2890, 16, 501, 4672, 315, 3259, 279, 1796, 1407, 871, 16, 501, 353, 326, 1796, 6, 302, 273, 1163, 18, 17135, 12, 892, 13, 613, 18, 4148, 2668, 1133, 30, 738, 87, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2575, 12, 2890, 16, 501, 4672, 315, 3259, 279, 1796, 1407, 871, 16, 501, 353, 326, 1796, 6, 302, 273, 1163, 18, 17135, 12, 892, 13, 613, 18, 4148, 2668, 1133, 30, 738, 87, 2187,...
c = Column(name or self.name, self.type, key = name or self.key, primary_key = self.primary_key, foreign_key = self.foreign_key, sequence = self.sequence, hidden=self.hidden)
c = Column(name or self.name, self.type, self.foreign_key, self.sequence, key = name or self.key, primary_key = self.primary_key, hidden=self.hidden)
def _make_proxy(self, selectable, name = None): """creates a copy of this Column, initialized the way this Column is""" # using copy.copy(c) seems to add a full second to the select.py unittest package #c = copy.copy(self) #if name is not None: # c.name = name # c.key = name # TODO: do we want the same foreign_key ...
ba1e7878ecf96f68bd73903768469cb3b57a1516 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/ba1e7878ecf96f68bd73903768469cb3b57a1516/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 5656, 12, 2890, 16, 26208, 16, 508, 273, 599, 4672, 3536, 19787, 279, 1610, 434, 333, 4753, 16, 6454, 326, 4031, 333, 4753, 353, 8395, 468, 1450, 1610, 18, 3530, 12, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6540, 67, 5656, 12, 2890, 16, 26208, 16, 508, 273, 599, 4672, 3536, 19787, 279, 1610, 434, 333, 4753, 16, 6454, 326, 4031, 333, 4753, 353, 8395, 468, 1450, 1610, 18, 3530, 12, 71,...
self.__prog__ = 'followUpChiaJob'
def __init__(self, options, cp, dir='', tag_base='CHIA'): """ """ self.__conditionalLoadDefaults__(followUpChiaJob.defaults,cp) self.__prog__ = 'followUpChiaJob' self.__executable = string.strip(cp.get('condor','chia')) self.__universe = "standard" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) ...
4f059de02ba49cc10932529819f1976c7ed0ae64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/4f059de02ba49cc10932529819f1976c7ed0ae64/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 1792, 15188, 11, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 14641, 1211, 782, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 702, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 2218, 1792, 15188, 11, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 14641, 1211, 782, 115...
self.addr_local = ('127.0.0.1', 25339)
self.localhost = '127.0.0.1'
def setUp(self): self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.addr_remote = ('www.python.org.', 80) self.addr_local = ('127.0.0.1', 25339)
6f98841f97d9eb358547b23dc6fc32376198e99d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/6f98841f97d9eb358547b23dc6fc32376198e99d/test_timeout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 15031, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 4793, 67, 7222, 273, 7707, 5591, 18, 8103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 15031, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 13693, 13, 365, 18, 4793, 67, 7222, 273, 7707, 5591, 18, 8103, ...
return platform
return [platform]
def shippedlocales2buildbot(platform): try: return [k for k, v in sl_platform_map.iteritems() if v == platform][0] except IndexError: return platform
69e58cb7ddefa586fd6f6473e1a9d1519c6b3814 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/69e58cb7ddefa586fd6f6473e1a9d1519c6b3814/platforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24316, 1845, 22638, 22, 3510, 4819, 12, 9898, 4672, 775, 30, 327, 306, 79, 364, 417, 16, 331, 316, 2020, 67, 9898, 67, 1458, 18, 2165, 3319, 1435, 309, 331, 422, 4072, 6362, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24316, 1845, 22638, 22, 3510, 4819, 12, 9898, 4672, 775, 30, 327, 306, 79, 364, 417, 16, 331, 316, 2020, 67, 9898, 67, 1458, 18, 2165, 3319, 1435, 309, 331, 422, 4072, 6362, 20, 65, ...
if data == u"-":
if data == "-":
def commentState(self): data = self.stream.char() if data == u"-": self.state = self.states["commentDash"] elif data == EOF: # XXX parse error self.tokenQueue.append(self.currentToken) self.state = self.states["data"] else: self.currentToken["data"] += data + self.stream.charsUntil(u"-") return True
95e0cecd40c4a4fea32ebe9b5374fdcf7f5911bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5042/95e0cecd40c4a4fea32ebe9b5374fdcf7f5911bb/tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2879, 1119, 12, 2890, 4672, 501, 273, 365, 18, 3256, 18, 3001, 1435, 309, 501, 422, 3701, 6877, 365, 18, 2019, 273, 365, 18, 7992, 9614, 3469, 21893, 11929, 1327, 501, 422, 6431, 30, 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, 2879, 1119, 12, 2890, 4672, 501, 273, 365, 18, 3256, 18, 3001, 1435, 309, 501, 422, 3701, 6877, 365, 18, 2019, 273, 365, 18, 7992, 9614, 3469, 21893, 11929, 1327, 501, 422, 6431, 30, 4...
c.todense().I * np.arange(4)[:, np.newaxis])
(c.todense().I * np.arange(4)[:, np.newaxis]).ravel())
def test_complex(): c = complex_matrix() fc = cholesky(c) r = real_matrix() fr = cholesky(r) assert factor_of(fc, c) assert np.allclose(fc(np.arange(4)), c.todense().I * np.arange(4)[:, np.newaxis]) assert np.allclose(fc(np.arange(4) * 1j), c.todense().I * (np.arange(4) * 1j)[:, np.newaxis]) assert np.allclose(fr(np....
7d582eb175c1d3250874504a26b02e1ab3908bdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10342/7d582eb175c1d3250874504a26b02e1ab3908bdf/test_cholmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14259, 13332, 276, 273, 7233, 67, 5667, 1435, 8036, 273, 462, 9112, 18465, 12, 71, 13, 436, 273, 2863, 67, 5667, 1435, 3812, 273, 462, 9112, 18465, 12, 86, 13, 225, 1815, 557...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14259, 13332, 276, 273, 7233, 67, 5667, 1435, 8036, 273, 462, 9112, 18465, 12, 71, 13, 436, 273, 2863, 67, 5667, 1435, 3812, 273, 462, 9112, 18465, 12, 86, 13, 225, 1815, 557...
name = data.name_str
def set_item_text(self, item, value): if (self.in_destroy): return data = self.treedata[item] name = data.name_str if (value == None): self.tree.hlist.item_configure(item, 1, style=self.inactive_style, text="") pass else: self.tree.hlist.item_configure(item, 1, text=value) if (hasattr(data, "active")): if (data.active)...
fbe5fc81995c6b05c180d6093c4523ede6f843ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/fbe5fc81995c6b05c180d6093c4523ede6f843ac/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1726, 67, 955, 12, 2890, 16, 761, 16, 460, 4672, 309, 261, 2890, 18, 267, 67, 11662, 4672, 327, 501, 273, 365, 18, 88, 15656, 396, 63, 1726, 65, 309, 261, 1132, 422, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1726, 67, 955, 12, 2890, 16, 761, 16, 460, 4672, 309, 261, 2890, 18, 267, 67, 11662, 4672, 327, 501, 273, 365, 18, 88, 15656, 396, 63, 1726, 65, 309, 261, 1132, 422, 599, ...
for mname, entrylist in Bindings.menudefs: menu = menudict.get(mname) if not menu: continue for entry in entrylist: if not entry: menu.add_separator()
tkversion = root.tk.eval('info patchlevel') if tkversion >= '8.4.14': Bindings.menudefs[0] = ('application', [ ('About IDLE', '<<about-idle>>'), None, ]) root.createcommand('::tk::mac::ShowPreferences', config_dialog) else: for mname, entrylist in Bindings.menudefs: menu = menudict.get(mname) if not menu: continue
def config_dialog(event=None): import configDialog configDialog.ConfigDialog(root, 'Settings')
47f29a67e5e909f38db69f598b8dd345ad56934e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/47f29a67e5e909f38db69f598b8dd345ad56934e/macosxSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 67, 12730, 12, 2575, 33, 7036, 4672, 1930, 642, 6353, 642, 6353, 18, 809, 6353, 12, 3085, 16, 296, 2628, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 67, 12730, 12, 2575, 33, 7036, 4672, 1930, 642, 6353, 642, 6353, 18, 809, 6353, 12, 3085, 16, 296, 2628, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fh = file(name+'_object.pkl', 'w')
fh = file(name+'_object.pkl', 'wb')
def pickle_object(name,data_object,diagnostic_level): fh = file(name+'_object.pkl', 'w') cP.dump(data_object, fh, protocol=2) fh.close() if diagnostic_level >= 3: print "Wrote to "+name+"_object.pkl"
cd5bcf95b3e7ad99ecc11d95afdb5cb7a61c41ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12/cd5bcf95b3e7ad99ecc11d95afdb5cb7a61c41ff/pyrograph_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13379, 67, 1612, 12, 529, 16, 892, 67, 1612, 16, 12264, 11388, 67, 2815, 4672, 7625, 273, 585, 12, 529, 6797, 67, 1612, 18, 5465, 80, 2187, 296, 9464, 6134, 276, 52, 18, 8481, 12, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13379, 67, 1612, 12, 529, 16, 892, 67, 1612, 16, 12264, 11388, 67, 2815, 4672, 7625, 273, 585, 12, 529, 6797, 67, 1612, 18, 5465, 80, 2187, 296, 9464, 6134, 276, 52, 18, 8481, 12, 89...
f = r.get_field('035') if f:
oclc = [] for f in r.get_fields('035'): if 'a' not in f.contents: continue
def find_oclc(r, edition): f = r.get_field('035') if f: assert len(f.contents['a']) == 1 m = re_oclc.match(f.contents['a'][0]) if m: edition['oclc'] = m.group(1)
3fee476d3cbd5a47aee5bf4252db8b9af8150d77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/3fee476d3cbd5a47aee5bf4252db8b9af8150d77/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 504, 17704, 12, 86, 16, 28432, 4672, 320, 830, 71, 273, 5378, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 4630, 25, 11, 4672, 309, 296, 69, 11, 486, 316, 284, 18, 3980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 504, 17704, 12, 86, 16, 28432, 4672, 320, 830, 71, 273, 5378, 364, 284, 316, 436, 18, 588, 67, 2821, 2668, 4630, 25, 11, 4672, 309, 296, 69, 11, 486, 316, 284, 18, 3980, ...
look.j = next.j + krawlj
look.j = goto.j + krawlj
def movebaddy(enemy): "Tactical movement for the bad guys." next = coord(); look = coord() irun = False # This should probably be just (game.quadrant in game.state.kcmdr) + (game.state.kscmdr==game.quadrant) if game.skill >= SKILL_EXPERT: nbaddys = (((game.quadrant in game.state.kcmdr)*2 + (game.state.kscmdr==game.quad...
eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 70, 31934, 12, 275, 351, 93, 4672, 315, 56, 621, 1706, 26017, 364, 326, 5570, 3058, 1900, 1199, 1024, 273, 2745, 5621, 2324, 273, 2745, 1435, 277, 2681, 273, 1083, 468, 1220, 1410,...
run_configure(configure, do_script)
def main(): build_all = "-a" in sys.argv if sys.argv[1] == "Release": arch = "x86" debug = False configure = "VC-WIN32" do_script = "ms\\do_masm" makefile = "ms\\nt.mak" elif sys.argv[1] == "Debug": arch = "x86" debug = True configure = "VC-WIN32" do_script = "ms\\do_masm" makefile="ms\\d32.mak" elif sys.argv[1] == "Re...
97c9c4da589881962e8d374bd9fa7476153bcc44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/97c9c4da589881962e8d374bd9fa7476153bcc44/build_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1361, 67, 454, 273, 3701, 69, 6, 316, 2589, 18, 19485, 309, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1083, 5068, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1361, 67, 454, 273, 3701, 69, 6, 316, 2589, 18, 19485, 309, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1083, 5068, 273, 3...
value+=": %s" % (c.serialize(),)
value += ": %s" % (c.serialize(), )
def info_presence(self,k,v): if not v: return None
ed2720a863a0afcf460f4a25be432bee15507f8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/ed2720a863a0afcf460f4a25be432bee15507f8c/presence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 67, 21731, 12, 2890, 16, 79, 16, 90, 4672, 309, 486, 331, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1123, 67, 21731, 12, 2890, 16, 79, 16, 90, 4672, 309, 486, 331, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (values[-1] == True and p.has_key('jump')) or \ (values[-1] == False and p.has_key('jumpIfFalse')):
if (p['value'] == True and p.has_key('jump')) or \ (p['value'] == False and p.has_key('jumpIfFalse')):
def __termGetParam(self, options, useDefault=False, checkUnprocessedArgs=False): ''' using user input to get param ''' # get param from short arg self.processedArgs = [] # process all options goto = 0 # get from config file if self.configFile is not None: self.loadConfig(self.configFile) # get from command line options...
84f4cb18ad1ca1b3b2af57319388a364da1f8f6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/84f4cb18ad1ca1b3b2af57319388a364da1f8f6a/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6408, 967, 786, 12, 2890, 16, 702, 16, 999, 1868, 33, 8381, 16, 866, 984, 11005, 2615, 33, 8381, 4672, 9163, 1450, 729, 810, 358, 336, 579, 9163, 468, 336, 579, 628, 3025, 1501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6408, 967, 786, 12, 2890, 16, 702, 16, 999, 1868, 33, 8381, 16, 866, 984, 11005, 2615, 33, 8381, 4672, 9163, 1450, 729, 810, 358, 336, 579, 9163, 468, 336, 579, 628, 3025, 1501, ...
out_fn = string.replace (f, '.py', '.pyc')
out_fn = f + (__debug__ and "c" or "o") compile_msg = "byte-compiling %s to %s" % \ (f, os.path.basename (out_fn)) skip_msg = "byte-compilation of %s skipped" % f
def run (self):
ed8a0e0f21360abbe907a3b80e47c854a443eb13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ed8a0e0f21360abbe907a3b80e47c854a443eb13/install_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gnome20.addmod('gdl', dependencies=['libgnomeui']) gnome20.addmod('gnome-build', dependencies=['gdl', 'gtkhtml2'])
gnome20.addmod('gdl', dependencies=['libgnomeui', 'librsvg']) gnome20.addmod('gnome-build', dependencies=['gdl', 'gnome-vfs', 'gtkhtml2'])
def sfcvsroot(project): return ':pserver:anonymous@cvs.%s.sourceforge.net:/cvsroot/%s' % \ (project, project)
1313ce25b25375f2a61e4bae05f42bab2f5dba2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/1313ce25b25375f2a61e4bae05f42bab2f5dba2d/moduleinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 7142, 6904, 3085, 12, 4406, 4672, 327, 4290, 84, 3567, 30, 19070, 36, 71, 6904, 7866, 87, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 5258, 87, 11, 738, 521, 261, 4406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 7142, 6904, 3085, 12, 4406, 4672, 327, 4290, 84, 3567, 30, 19070, 36, 71, 6904, 7866, 87, 18, 3168, 1884, 908, 18, 2758, 27824, 71, 6904, 3085, 5258, 87, 11, 738, 521, 261, 4406, ...
dir_chrome = os.path.join(self._source_dir, "sconsbuild", "Debug")
builddir = { 'darwin': 'xcodebuild', 'linux2': 'sconsbuild' }[sys.platform] dir_chrome = os.path.join(self._source_dir, builddir, "Debug")
def _DefaultCommand(self, module, exe=None, valgrind_test_args=None): '''Generates the default command array that most tests will use.''' module_dir = os.path.join(self._source_dir, module)
52ad61fbc85a83b590867bbf525dca9dbe81179b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/52ad61fbc85a83b590867bbf525dca9dbe81179b/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1868, 2189, 12, 2890, 16, 1605, 16, 15073, 33, 7036, 16, 1244, 3197, 728, 67, 3813, 67, 1968, 33, 7036, 4672, 9163, 6653, 326, 805, 1296, 526, 716, 4486, 7434, 903, 999, 1093, 630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1868, 2189, 12, 2890, 16, 1605, 16, 15073, 33, 7036, 16, 1244, 3197, 728, 67, 3813, 67, 1968, 33, 7036, 4672, 9163, 6653, 326, 805, 1296, 526, 716, 4486, 7434, 903, 999, 1093, 630...
def getAEClass (typeName, readOnly=False, format=None):
def getAEClass(typeName, cardinality='single', readOnly=False, format=None):
def getAEClass (typeName, readOnly=False, format=None): """ Decide which attribute editor class to use for this type. We'll try several ways to find an appropriate editor: - If we're readOnly, try "+readOnly" before we try without it. - If we have a format, try "+format" before we try without it. - If those fail, just...
82c3942c394e9e18bd17af58344195ec12fe1d4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/82c3942c394e9e18bd17af58344195ec12fe1d4c/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4506, 5720, 12, 723, 461, 16, 14379, 2218, 7526, 2187, 15075, 33, 8381, 16, 740, 33, 7036, 4672, 3536, 3416, 831, 1492, 1566, 4858, 667, 358, 999, 364, 333, 618, 18, 225, 1660, 5614, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4506, 5720, 12, 723, 461, 16, 14379, 2218, 7526, 2187, 15075, 33, 8381, 16, 740, 33, 7036, 4672, 3536, 3416, 831, 1492, 1566, 4858, 667, 358, 999, 364, 333, 618, 18, 225, 1660, 5614, 7...
val = None attr = None
kw = dict(itsView=item.itsView) reminderFactory = None
def do(item): if record.trigger not in noChangeOrMissing: # trigger translates to either EventStamp.userReminderInterval, # or Remindable.userReminderTime, depending on whether trigger # is a duration or a date(time). val = None attr = None try: val = fromICalendarDateTime(record.trigger)[0] except: pass else: attr = ...
a87153867fbff80466850b0a8f1f9ab83a76204c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/a87153867fbff80466850b0a8f1f9ab83a76204c/translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 1726, 4672, 309, 1409, 18, 10668, 486, 316, 1158, 3043, 1162, 4841, 30, 468, 3080, 2162, 815, 358, 3344, 2587, 8860, 18, 1355, 1933, 14055, 4006, 16, 468, 578, 2663, 728, 429, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 1726, 4672, 309, 1409, 18, 10668, 486, 316, 1158, 3043, 1162, 4841, 30, 468, 3080, 2162, 815, 358, 3344, 2587, 8860, 18, 1355, 1933, 14055, 4006, 16, 468, 578, 2663, 728, 429, ...
valid_identifier_chars = string.letters + string.digits + "_"
valid_identifier_chars = string.ascii_letters + string.digits + "_"
def _BuildArgList(fdesc, names): "Builds list of args to the underlying Invoke method." # Word has TypeInfo for Insert() method, but says "no args" numArgs = max(fdesc[6], len(fdesc[2])) names = list(names) while None in names: i = names.index(None) names[i] = "arg%d" % (i,) names = map(MakePublicAttributeName, names[1...
a6c5ceab5b5f0affce7c8af8386587ae4df6513c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/a6c5ceab5b5f0affce7c8af8386587ae4df6513c/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 4117, 682, 12, 74, 5569, 16, 1257, 4672, 315, 7746, 666, 434, 833, 358, 326, 6808, 14373, 707, 1199, 468, 9926, 711, 1412, 966, 364, 8040, 1435, 707, 16, 1496, 20185, 315, 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, 389, 3116, 4117, 682, 12, 74, 5569, 16, 1257, 4672, 315, 7746, 666, 434, 833, 358, 326, 6808, 14373, 707, 1199, 468, 9926, 711, 1412, 966, 364, 8040, 1435, 707, 16, 1496, 20185, 315, 2...
for i, identifier in enumerate(name[1:]):
for i, identifier in enumerate(name):
def get_value_from_name(name): """ Given a name, return the corresponding value. """ name = DottedName(name) # Import the module containing `name`. for i in range(len(name)): module = _import('.'.join(name[:i+1])) if (hasattr(module, name[i]) and not isinstance(getattr(module, name[i]), ModuleType)): break # Look up ...
708e0abc22ee255482cf6bcdefbffbaf9fb9f184 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/708e0abc22ee255482cf6bcdefbffbaf9fb9f184/docinspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 67, 2080, 67, 529, 12, 529, 4672, 3536, 16803, 279, 508, 16, 327, 326, 4656, 460, 18, 3536, 508, 273, 17502, 2344, 461, 12, 529, 13, 225, 468, 6164, 326, 1605, 4191, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1132, 67, 2080, 67, 529, 12, 529, 4672, 3536, 16803, 279, 508, 16, 327, 326, 4656, 460, 18, 3536, 508, 273, 17502, 2344, 461, 12, 529, 13, 225, 468, 6164, 326, 1605, 4191, 1...
pid, status = os.wait()
exited_pid, status = os.waitpid(pid, 0)
def test_lock_conflict(self): # Fork off a subprocess that will lock the file for 2 seconds, # unlock it, and then exit. if not hasattr(os, 'fork'): return pid = os.fork() if pid == 0: # In the child, lock the mailbox. self._box.lock() time.sleep(2) self._box.unlock() os._exit(0)
f86e3c5b8c30095ccd7a7c51c30e39aee0558475 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f86e3c5b8c30095ccd7a7c51c30e39aee0558475/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 739, 67, 20340, 12, 2890, 4672, 468, 27599, 3397, 279, 6652, 716, 903, 2176, 326, 585, 364, 576, 3974, 16, 468, 7186, 518, 16, 471, 1508, 2427, 18, 309, 486, 3859, 12, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 739, 67, 20340, 12, 2890, 4672, 468, 27599, 3397, 279, 6652, 716, 903, 2176, 326, 585, 364, 576, 3974, 16, 468, 7186, 518, 16, 471, 1508, 2427, 18, 309, 486, 3859, 12, 538, ...
return self.__count
return self._count
def __len__(self): """ @rtype: int @return: Count of L{Crash} elements in the container. """ return self.__count
9a9ad459c3708948326e6a88c2e71486063105f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/9a9ad459c3708948326e6a88c2e71486063105f6/crash.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 3536, 632, 86, 723, 30, 225, 509, 632, 2463, 30, 6974, 434, 511, 95, 12893, 961, 97, 2186, 316, 326, 1478, 18, 3536, 327, 365, 16186, 1883, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 3536, 632, 86, 723, 30, 225, 509, 632, 2463, 30, 6974, 434, 511, 95, 12893, 961, 97, 2186, 316, 326, 1478, 18, 3536, 327, 365, 16186, 1883, 2, -100, ...
def _generate_auth_token(self):
def _generate_auth_token(self, usr): """Generate a token that can be used to authorize next requests @type usr: MoinMoin.user """
def _generate_auth_token(self): token = random_string(32, 'abcdefghijklmnopqrstuvwxyz0123456789') centry = caching.CacheEntry(self.request, 'xmlrpc-session', token, scope='farm', use_pickle=True) centry.update((time.time() + 15*3600, u.id)) return token
477a3d6f40a54e801c98a0f0d3444db9a61b4c35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/477a3d6f40a54e801c98a0f0d3444db9a61b4c35/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1944, 67, 2316, 12, 2890, 16, 16575, 4672, 3536, 4625, 279, 1147, 716, 848, 506, 1399, 358, 12229, 1024, 3285, 225, 632, 723, 16575, 30, 490, 885, 49, 885, 18, 1355, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1944, 67, 2316, 12, 2890, 16, 16575, 4672, 3536, 4625, 279, 1147, 716, 848, 506, 1399, 358, 12229, 1024, 3285, 225, 632, 723, 16575, 30, 490, 885, 49, 885, 18, 1355, 225...
return self.filter(active=True, variations=variations, **kwargs)
if not variations: kwargs['productvariation__parent__isnull'] = True return self.filter(active=True, **kwargs)
def active(self, variations=True, **kwargs): return self.filter(active=True, variations=variations, **kwargs)
63de183935f46bf957cc54f28a1ba7959d6d22f9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/63de183935f46bf957cc54f28a1ba7959d6d22f9/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 12, 2890, 16, 28401, 33, 5510, 16, 2826, 4333, 4672, 327, 365, 18, 2188, 12, 3535, 33, 5510, 16, 28401, 33, 4093, 1012, 16, 2826, 4333, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 12, 2890, 16, 28401, 33, 5510, 16, 2826, 4333, 4672, 327, 365, 18, 2188, 12, 3535, 33, 5510, 16, 28401, 33, 4093, 1012, 16, 2826, 4333, 13, 2, -100, -100, -100, -100, -100, -100,...
self.re_nm = re.compile(r'External\s+\|\s+_(' + self.generator.export_symbols_regex + r')\b') s = self.filter(self.generator.bld.cmd_and_log(['dumpbin', '/symbols', x.abspath()], quiet=STDOUT))
re_nm = re.compile(r'External\s+\|\s+_(' + self.generator.export_symbols_regex + r')\b') cmd = ['dumpbin', '/symbols', x.abspath()]
def run(self): syms = [] for x in self.inputs: if 'msvc' in (self.env.CC_NAME, self.env.CXX_NAME): self.re_nm = re.compile(r'External\s+\|\s+_(' + self.generator.export_symbols_regex + r')\b') s = self.filter(self.generator.bld.cmd_and_log(['dumpbin', '/symbols', x.abspath()], quiet=STDOUT)) else: if self.generator.bld...
b1e5bc5bedba26fff7e0ac5baa242ef0ad393efe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2886/b1e5bc5bedba26fff7e0ac5baa242ef0ad393efe/syms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 24367, 273, 5378, 364, 619, 316, 365, 18, 10029, 30, 309, 296, 959, 4227, 11, 316, 261, 2890, 18, 3074, 18, 6743, 67, 1985, 16, 365, 18, 3074, 18, 39, 5619, 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, 1086, 12, 2890, 4672, 24367, 273, 5378, 364, 619, 316, 365, 18, 10029, 30, 309, 296, 959, 4227, 11, 316, 261, 2890, 18, 3074, 18, 6743, 67, 1985, 16, 365, 18, 3074, 18, 39, 5619, 67,...
log.debug('length of editor variable >= %d, skipping goodbye message: %s', max_length, goodbye, v=3)
log.debug('length of editor variable >= %d, skipping goodbye message', max_length, v=3)
def gen_template(editor_type, max_length=256, *args, **kwargs): f = _gen_template_mapping[editor_type] editor_args = f(*args, **kwargs) if len(editor_args) < max_length: return editor_args log.debug('length of editor variable >= %d, skipping goodbye message: %s', max_length, goodbye, v=3) kwargs['goodbye'] = u'' editor...
9466a33b5c75c702438b0ec805aca8f1ebeee18b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13988/9466a33b5c75c702438b0ec805aca8f1ebeee18b/output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 3202, 12, 9177, 67, 723, 16, 943, 67, 2469, 33, 5034, 16, 380, 1968, 16, 2826, 4333, 4672, 284, 273, 389, 4507, 67, 3202, 67, 6770, 63, 9177, 67, 723, 65, 4858, 67, 1968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 3202, 12, 9177, 67, 723, 16, 943, 67, 2469, 33, 5034, 16, 380, 1968, 16, 2826, 4333, 4672, 284, 273, 389, 4507, 67, 3202, 67, 6770, 63, 9177, 67, 723, 65, 4858, 67, 1968, ...
control = QtGui.QPlainTextEdit()
control = ConsolePlainTextEdit()
def _create_page_control(self): """ Creates and connects the underlying paging widget. """ control = QtGui.QPlainTextEdit() control.installEventFilter(self) control.setReadOnly(True) control.setUndoRedoEnabled(False) control.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn) return control
4a81ff91f3d0e29f82274635146715cff4a62256 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/4a81ff91f3d0e29f82274635146715cff4a62256/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 2433, 67, 7098, 12, 2890, 4672, 3536, 10210, 471, 23441, 326, 6808, 17859, 3604, 18, 3536, 3325, 273, 9657, 13360, 1528, 4666, 1435, 3325, 18, 5425, 1133, 1586, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 2433, 67, 7098, 12, 2890, 4672, 3536, 10210, 471, 23441, 326, 6808, 17859, 3604, 18, 3536, 3325, 273, 9657, 13360, 1528, 4666, 1435, 3325, 18, 5425, 1133, 1586, 12, 2890, ...
self.tmpDC.SetUserScale(self.scaling, self.scaling) if (y + h > self.image.nrows):
self.tmpDC.SetUserScale(scaling, scaling) if (y + h >= self.height):
def PaintArea(self, x, y, w, h, check=1): dc = wxPaintDC(self) dc.SetLogicalFunction(wxCOPY) origin = [a * self.scroll_amount for a in self.GetViewStart()] origin_scaled = [a / self.scaling for a in origin] size_scaled = [a / self.scaling for a in self.GetSizeTuple()] if check: if ((x + w < origin_scaled[0]) and (y + h...
6eb1cae57ca1773babed2c1c4d12cf475259fce5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/6eb1cae57ca1773babed2c1c4d12cf475259fce5/gamera_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30001, 5484, 12, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 16, 866, 33, 21, 4672, 6744, 273, 7075, 12699, 5528, 12, 2890, 13, 6744, 18, 694, 17955, 2083, 12, 91, 14626, 16505, 13, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30001, 5484, 12, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 16, 866, 33, 21, 4672, 6744, 273, 7075, 12699, 5528, 12, 2890, 13, 6744, 18, 694, 17955, 2083, 12, 91, 14626, 16505, 13, 40...
a URL similar to this one, but with a '/' and the %(adj)s
enter a URL similar to this one, but with a '/' and the %(adj)s
def listinfo_overview(msg=''): # Present the general listinfo overview hostname = Utils.get_domain() # Set up the document and assign it the correct language. The only one we # know about at the moment is the server's default. doc = Document() doc.set_language(mm_cfg.DEFAULT_SERVER_LANGUAGE) legend = _("%(hostname)s ...
0409babacc3d8527621e35f62f4fefef8703b240 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0409babacc3d8527621e35f62f4fefef8703b240/listinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 1376, 67, 26081, 12, 3576, 2218, 11, 4672, 468, 25130, 326, 7470, 666, 1376, 18471, 5199, 273, 6091, 18, 588, 67, 4308, 1435, 468, 1000, 731, 326, 1668, 471, 2683, 518, 326, 3434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 1376, 67, 26081, 12, 3576, 2218, 11, 4672, 468, 25130, 326, 7470, 666, 1376, 18471, 5199, 273, 6091, 18, 588, 67, 4308, 1435, 468, 1000, 731, 326, 1668, 471, 2683, 518, 326, 3434, ...
return idaapi.add_idc_hotkey(hotkey, idcfunc)
return idaapi.add_idc_hotkey(hotkey, idcfunc)
def AddHotkey(hotkey, idcfunc): """ Add hotkey for IDC function @param hotkey: hotkey name ('a', "Alt-A", etc) @param idcfunc: IDC function name @note: GUI version doesn't support hotkeys @return: None """ return idaapi.add_idc_hotkey(hotkey, idcfunc)
f6eb09ba783822659c8520f1385c89f40cdd4a71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6984/f6eb09ba783822659c8520f1385c89f40cdd4a71/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 25270, 856, 12, 15224, 856, 16, 612, 71, 644, 4672, 3536, 1436, 12811, 856, 364, 1599, 39, 445, 225, 632, 891, 12811, 856, 30, 12811, 856, 508, 7707, 69, 2187, 315, 10655, 17, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25270, 856, 12, 15224, 856, 16, 612, 71, 644, 4672, 3536, 1436, 12811, 856, 364, 1599, 39, 445, 225, 632, 891, 12811, 856, 30, 12811, 856, 508, 7707, 69, 2187, 315, 10655, 17, 37...
print 'warning: unknown bugzilla userid %d, recording as anonymous' % userid loginName = 'anonymous'
print """WARNING: unknown bugzilla userid %d, recording as anonymous""" % (userid) loginName = "anonymous" loginName = LOGIN_MAP.get(loginName, loginName)
def getLoginName(self, cursor, userid): if userid not in self.loginNameCache: cursor.execute("SELECT * FROM profiles WHERE userid = %s" % userid) loginName = cursor.fetchall()
d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25128, 461, 12, 2890, 16, 3347, 16, 6709, 4672, 309, 6709, 486, 316, 365, 18, 5819, 461, 1649, 30, 3347, 18, 8837, 2932, 4803, 380, 4571, 11788, 4852, 6709, 273, 738, 87, 6, 738, 6709,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25128, 461, 12, 2890, 16, 3347, 16, 6709, 4672, 309, 6709, 486, 316, 365, 18, 5819, 461, 1649, 30, 3347, 18, 8837, 2932, 4803, 380, 4571, 11788, 4852, 6709, 273, 738, 87, 6, 738, 6709,...
return S_OK(paramDict) def __deleteTransformationParameters(self,transID,parameters=[],connection=False):
return S_OK( paramDict ) def __deleteTransformationParameters( self, transID, parameters = [], connection = False ):
def __getAdditionalParameters(self,transID,connection=False): req = "SELECT ParameterName,ParameterValue,ParameterType FROM AdditionalParameters WHERE TransformationID = %d" % transID res = self._query(req,connection) if not res['OK']: return res paramDict = {} for parameterName,parameterValue,parameterType in res['Val...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 10552, 2402, 12, 2890, 16, 2338, 734, 16, 4071, 33, 8381, 4672, 1111, 273, 315, 4803, 5498, 461, 16, 29655, 16, 28460, 4571, 15119, 2402, 4852, 21274, 734, 273, 738, 72, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 10552, 2402, 12, 2890, 16, 2338, 734, 16, 4071, 33, 8381, 4672, 1111, 273, 315, 4803, 5498, 461, 16, 29655, 16, 28460, 4571, 15119, 2402, 4852, 21274, 734, 273, 738, 72, 6, ...
self._group
def __init__(self): U = "( 1, 3, 8, 6)( 2, 5, 7, 4)( 9,33,25,17)(10,34,26,18)(11,35,27,19)" ## U = top L = "( 9,11,16,14)(10,13,15,12)( 1,17,41,40)( 4,20,44,37)( 6,22,46,35)" ## L = left F = "(17,19,24,22)(18,21,23,20)( 6,25,43,16)( 7,28,42,13)( 8,30,41,11)" ## F = front R = "(25,27,32,30)(26,29,31,28)( 3,38,43,19)( 5,...
133aab4efc40d89956fe966fe878ee765bc1184e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/133aab4efc40d89956fe966fe878ee765bc1184e/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 273, 7751, 404, 16, 890, 16, 1725, 16, 1666, 21433, 576, 16, 1381, 16, 2371, 16, 1059, 21433, 2468, 16, 3707, 16, 2947, 16, 4033, 21433, 2163, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 273, 7751, 404, 16, 890, 16, 1725, 16, 1666, 21433, 576, 16, 1381, 16, 2371, 16, 1059, 21433, 2468, 16, 3707, 16, 2947, 16, 4033, 21433, 2163, 16,...
def assertArgIsCFRetained(self, method, argno, message = None):
def assertArgIsNotCFRetained(self, method, argno, message = None):
def assertArgIsCFRetained(self, method, argno, message = None): if isinstance(method, objc.selector): offset = 2 else: offset = 0 info = method.__metadata__() if info['arguments'][argno+offset]['already_cfretained']: self.fail(message or "%r is cfretained"%(method,))
3a808b9c8387f924da9c55fd50b1b854f173c37c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/97/3a808b9c8387f924da9c55fd50b1b854f173c37c/TestSupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 4117, 28041, 8955, 7055, 8707, 12, 2890, 16, 707, 16, 1501, 2135, 16, 883, 273, 599, 4672, 309, 1549, 12, 2039, 16, 1081, 71, 18, 9663, 4672, 1384, 273, 576, 469, 30, 1384, 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, 1815, 4117, 28041, 8955, 7055, 8707, 12, 2890, 16, 707, 16, 1501, 2135, 16, 883, 273, 599, 4672, 309, 1549, 12, 2039, 16, 1081, 71, 18, 9663, 4672, 1384, 273, 576, 469, 30, 1384, 273, ...
values = [part.strip() for part in value.split(',')]
values = [part.strip() for part in value.split(sep)]
def getcsv(self, key, sep=','): "return comma separated values as a list" value = self.get(key) values = [part.strip() for part in value.split(',')] # remove empty strings values = [part for part in values if part] return values
d0b60be0d0936dd9e707f2e5793fe4f9c7e17d6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2558/d0b60be0d0936dd9e707f2e5793fe4f9c7e17d6f/toolkit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6715, 12, 2890, 16, 498, 16, 5478, 33, 17023, 4672, 315, 2463, 8716, 8936, 924, 487, 279, 666, 6, 460, 273, 365, 18, 588, 12, 856, 13, 924, 273, 306, 2680, 18, 6406, 1435, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6715, 12, 2890, 16, 498, 16, 5478, 33, 17023, 4672, 315, 2463, 8716, 8936, 924, 487, 279, 666, 6, 460, 273, 365, 18, 588, 12, 856, 13, 924, 273, 306, 2680, 18, 6406, 1435, 364, ...
session_id=id) if id is None or session is None:
session_id=sessid) if sessid is None or session is None:
def get_session (self, request): """get_session(request : HTTPRequest) -> Session
26d2ecde87643091805a7b214e68c325315efc1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/26d2ecde87643091805a7b214e68c325315efc1e/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 261, 2890, 16, 590, 4672, 3536, 588, 67, 3184, 12, 2293, 294, 25238, 13, 317, 3877, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3184, 261, 2890, 16, 590, 4672, 3536, 588, 67, 3184, 12, 2293, 294, 25238, 13, 317, 3877, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
properties.append({'name': 'owner', 'type': 'text', 'label': 'Owner'})
restrict_owner = self.config.get('ticket', 'restrict_owner', '') if restrict_owner.lower() in TRUE: usernames = [escape(u[0]) for u in self.env.get_known_users()] properties.append({'name': 'owner', 'type': 'select', 'label': 'Owner', 'options': usernames}) else: properties.append({'name': 'owner', 'type': 'text', 'la...
def rows_to_list(sql): list = [] cursor.execute(sql) while 1: row = cursor.fetchone() if not row: break list.append(row[0]) return list
da5e6d0276192eeb4b8ab0eb1367601f08f27d2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/da5e6d0276192eeb4b8ab0eb1367601f08f27d2c/Query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2595, 67, 869, 67, 1098, 12, 4669, 4672, 666, 273, 5378, 3347, 18, 8837, 12, 4669, 13, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 486, 1027, 30, 898, 666, 18, 6923, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2595, 67, 869, 67, 1098, 12, 4669, 4672, 666, 273, 5378, 3347, 18, 8837, 12, 4669, 13, 1323, 404, 30, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 486, 1027, 30, 898, 666, 18, 6923, 12...
rospy.loginfo("IMU accel: " + str(canonicalAccel) + "; IMU angular rate: " + str(canonicalAngleRate))
rospy.logdebug("IMU accel: " + str(canonicalAccel) + "; IMU angular rate: " + str(canonicalAngleRate))
def run(self): """Loop that obtains the latest wiimote state, publishes the IMU data, and sleeps. The IMU message, if fully filled in, contains information on orientation, acceleration (in m/s^2), and angular rate (in radians/sec). For each of these quantities, the IMU message format also wants the corresponding covar...
8b2a732dda6fa2d06688b9e1f8726ac12e97aa38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/917/8b2a732dda6fa2d06688b9e1f8726ac12e97aa38/wiimote_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 6452, 716, 3768, 16598, 326, 4891, 16138, 381, 1168, 919, 16, 17060, 326, 6246, 57, 501, 16, 471, 5329, 87, 18, 225, 1021, 6246, 57, 883, 16, 309, 7418, 630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 6452, 716, 3768, 16598, 326, 4891, 16138, 381, 1168, 919, 16, 17060, 326, 6246, 57, 501, 16, 471, 5329, 87, 18, 225, 1021, 6246, 57, 883, 16, 309, 7418, 630...
debug(" cookie with unspecified domain does not string-compare " "equal to request domain")
_debug(" cookie with unspecified domain does not string-compare " "equal to request domain")
def return_ok_domain(self, cookie, request): req_host, erhn = eff_request_host(request) domain = cookie.domain
7fde00696ae6c872310a407df8b8923ab907f247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7fde00696ae6c872310a407df8b8923ab907f247/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 1111, 67, 2564, 16, 6445, 76, 82, 273, 16419, 67, 2293, 67, 2564, 12, 2293, 13, 2461, 273, 3878, 18, 4308, 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, 327, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 1111, 67, 2564, 16, 6445, 76, 82, 273, 16419, 67, 2293, 67, 2564, 12, 2293, 13, 2461, 273, 3878, 18, 4308, 2, -100, -100, ...