rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
for cat in self.timeline.get_categories():
for cat in sort_categories(self.timeline.get_categories()):
def _fill_controls_with_data(self, start=None, end=None): """Initially fill the controls in the dialog with data.""" if self.event == None: self.chb_period.SetValue(False) self.chb_show_time.SetValue(False) text = "" category = None self.updatemode = False else: start = self.event.time_period.start_time end = self.even...
ffe163266816059f0d4557c6c679fd61f7c6f0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/ffe163266816059f0d4557c6c679fd61f7c6f0d3/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5935, 67, 24350, 67, 1918, 67, 892, 12, 2890, 16, 787, 33, 7036, 16, 679, 33, 7036, 4672, 3536, 2570, 6261, 3636, 326, 11022, 316, 326, 6176, 598, 501, 12123, 309, 365, 18, 2575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5935, 67, 24350, 67, 1918, 67, 892, 12, 2890, 16, 787, 33, 7036, 16, 679, 33, 7036, 4672, 3536, 2570, 6261, 3636, 326, 11022, 316, 326, 6176, 598, 501, 12123, 309, 365, 18, 2575, ...
if not category.allowPostThread( request.user ): raise Http404;
if not category.allowPostThread( request.user ): raise PermissionDenied()
def post(request, group = None, category_id = None, post_id = None, thread_id = None): if 'type' in request.REQUEST and request.REQUEST['type'] == 'preview': previewpost = Post( body = request.REQUEST['body'], markup = request.REQUEST.get('markup', None), ) return HttpResponse( unicode(previewpost.body_escaped()) ) p...
8f7c7be2460263d3e3d6f1ddf18f0bbc72f6a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11563/8f7c7be2460263d3e3d6f1ddf18f0bbc72f6a3b9/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2293, 16, 1041, 273, 599, 16, 3150, 67, 350, 273, 599, 16, 1603, 67, 350, 273, 599, 16, 2650, 67, 350, 273, 599, 4672, 309, 296, 723, 11, 316, 590, 18, 5519, 471, 590, 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, 1603, 12, 2293, 16, 1041, 273, 599, 16, 3150, 67, 350, 273, 599, 16, 1603, 67, 350, 273, 599, 16, 2650, 67, 350, 273, 599, 4672, 309, 296, 723, 11, 316, 590, 18, 5519, 471, 590, 18...
title = u"&Download", helpString = u'Browse for new pluginsItem'),
title = _(u"&Download"), helpString = _(u'Browse for new pluginsItem')),
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 2, -1...
print "Sensortype: %s config: %r" % (sensortype,self.supportedsensors[sensortype]['interfaces'])
self.debug("Sensortype: %s config: %r" % (sensortype,self.supportedsensors[sensortype]['interfaces']))
def findsensors(self,path=""): uncachedpath = "/uncached%s" % path mincycle = 600 for sensor in self.owfs.dir(uncachedpath): ## remove /uncached/bus.x from sensorname sensor = sensor.split("/")[-1] ## check if it is really a sensor if self.issensor.match(sensor): self.debug("found Sensor %s at Bus %r" % (sensor,path))...
40318f9db79bb2be8a5d73ce6055b45500583d38 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5166/40318f9db79bb2be8a5d73ce6055b45500583d38/OWFS_Connector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13094, 12575, 12, 2890, 16, 803, 1546, 6, 4672, 6301, 2004, 803, 273, 2206, 551, 2004, 9, 87, 6, 738, 589, 1131, 13946, 273, 14707, 364, 10583, 316, 365, 18, 543, 2556, 18, 1214, 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, 13094, 12575, 12, 2890, 16, 803, 1546, 6, 4672, 6301, 2004, 803, 273, 2206, 551, 2004, 9, 87, 6, 738, 589, 1131, 13946, 273, 14707, 364, 10583, 316, 365, 18, 543, 2556, 18, 1214, 12, ...
return 'idle' return value
value = 'idle' return str.__new__(cls, value)
def __new__(cls, value): if value not in ('active', 'idle'): return 'idle' return value
bafb5dad3a4ac3ec29a4937a07b76c66c6e1181a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/bafb5dad3a4ac3ec29a4937a07b76c66c6e1181a/iscomposing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 309, 460, 486, 316, 7707, 3535, 2187, 296, 20390, 11, 4672, 327, 296, 20390, 11, 327, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 460, 4672, 309, 460, 486, 316, 7707, 3535, 2187, 296, 20390, 11, 4672, 327, 296, 20390, 11, 327, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
reponame, repos, relpath = RepositoryManager(self.env). \ get_repository_by_path(path, formatter.req.authname)
def _format_link(self, formatter, ns, match, label, fullmatch=None): if ns == 'log1': it_log = fullmatch.group('it_log') revs = fullmatch.group('log_revs') path = fullmatch.group('log_path') or '/' target = '%s%s@%s' % (it_log, path, revs) # prepending it_log is needed, as the helper expects it there intertrac = format...
e195af065b1b7b53c55470fed032bc1c843360df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/e195af065b1b7b53c55470fed032bc1c843360df/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 845, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 309, 3153, 422, 296, 1330, 21, 4278, 518, 67, 1330, 273, 1983, 1916, 18, 1655, 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, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 845, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 309, 3153, 422, 296, 1330, 21, 4278, 518, 67, 1330, 273, 1983, 1916, 18, 1655, 2...
self.plan= (self.collection, compile(self.closure,'<string>','eval'))
self.plan = (self.collection, compile(self.closure,'<string>','eval'))
def analyze(self, ast): """ Produce a logical plan (collection name, compiled predicate) that corresponds to the 'for' statement represented by the AST. (The AST is actually the arguments to 'for') @param ast: the abstract syntax tree for a query @type ast: list """ log.debug(u"analyze_for: %s" % ast) self.iter_var =...
7f0f49bf5bb90dd2c5010558c09e5c8a697694a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7f0f49bf5bb90dd2c5010558c09e5c8a697694a5/Query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 12, 2890, 16, 3364, 4672, 3536, 23278, 279, 6374, 4995, 261, 5548, 508, 16, 7743, 5641, 13, 716, 13955, 358, 326, 296, 1884, 11, 3021, 10584, 635, 326, 9183, 18, 261, 1986, 9183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12375, 12, 2890, 16, 3364, 4672, 3536, 23278, 279, 6374, 4995, 261, 5548, 508, 16, 7743, 5641, 13, 716, 13955, 358, 326, 296, 1884, 11, 3021, 10584, 635, 326, 9183, 18, 261, 1986, 9183, ...
data.append(self._port_handle.ReadByte()) size -= 1
try: data.append(self._port_handle.ReadByte()) except System.TimeoutException, e: break else: size -= 1
def read(self, size=1): """Read size bytes from the serial port. If a timeout is set it may return less characters as requested. With no timeout it will block until the requested number of bytes is read.""" if not self._port_handle: raise portNotOpenError data = [] while size: data.append(self._port_handle.ReadByte()) ...
f163508a56e9c4a0cd51d4294add9531bc4f03ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10955/f163508a56e9c4a0cd51d4294add9531bc4f03ca/serialcli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 21, 4672, 3536, 1994, 963, 1731, 628, 326, 2734, 1756, 18, 971, 279, 2021, 353, 444, 518, 2026, 327, 5242, 3949, 487, 3764, 18, 3423, 1158, 2021, 518, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 21, 4672, 3536, 1994, 963, 1731, 628, 326, 2734, 1756, 18, 971, 279, 2021, 353, 444, 518, 2026, 327, 5242, 3949, 487, 3764, 18, 3423, 1158, 2021, 518, 903, ...
dest = (THUMBDIR +'%s_%d.jpg') % (vid, i)
dest = (THUMBDIR +'yt_%s_%d.jpg') % (vid, i)
def getVideos(s): params = urllib.urlencode({'max-results': SEARCHRESULTS, 'q': s}) url = 'http://gdata.youtube.com/feeds/api/videos?%s' % params print 'GET %s' % url sock = urllib.urlopen( url ) xml = sock.read() sock.close() dom = minidom.parseString(xml) result = [] for node in dom.getElementsByTagName('entry'): vid...
8e60a390105dcc8b4346f19a2c97553508870929 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12832/8e60a390105dcc8b4346f19a2c97553508870929/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 19871, 12, 87, 4672, 859, 273, 11527, 18, 718, 3015, 12590, 11, 1896, 17, 4717, 4278, 24053, 20602, 16, 296, 85, 4278, 272, 6792, 880, 273, 296, 2505, 2207, 75, 892, 18, 31749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11031, 19871, 12, 87, 4672, 859, 273, 11527, 18, 718, 3015, 12590, 11, 1896, 17, 4717, 4278, 24053, 20602, 16, 296, 85, 4278, 272, 6792, 880, 273, 296, 2505, 2207, 75, 892, 18, 31749, ...
if defaults and not default:
if defaults and default is None:
def _get_arg_spec(self, origargs): """Returns argument spec in a tuple (args, defaults, varargs).
291f5a4e28ace7fa24371c5eb83bbc8abc62d6a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/291f5a4e28ace7fa24371c5eb83bbc8abc62d6a9/arguments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3175, 67, 2793, 12, 2890, 16, 1647, 1968, 4672, 3536, 1356, 1237, 857, 316, 279, 3193, 261, 1968, 16, 3467, 16, 19732, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 3175, 67, 2793, 12, 2890, 16, 1647, 1968, 4672, 3536, 1356, 1237, 857, 316, 279, 3193, 261, 1968, 16, 3467, 16, 19732, 2934, 2, -100, -100, -100, -100, -100, -100, -100, ...
identity.__doc__ = projection_func_identity.__doc__
def identity(self): """ Returns the identity projection.
5ee629eab8310178e46ba2426c1e828e44fe1d2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5ee629eab8310178e46ba2426c1e828e44fe1d2e/polyhedra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4215, 12, 2890, 4672, 3536, 2860, 326, 4215, 8106, 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, 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, 4215, 12, 2890, 4672, 3536, 2860, 326, 4215, 8106, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return self.nodeState[symbol]
return self.nodeState[(symbol,type)]
def getNodeState(self,symbol,type="basic"): """Get the the state of the node which symbol is given.
4aabbbe4c61a329e366bc3e3d33b0550ba75fd8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13131/4aabbbe4c61a329e366bc3e3d33b0550ba75fd8c/ConceptNetwork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5973, 1119, 12, 2890, 16, 7175, 16, 723, 1546, 13240, 6, 4672, 3536, 967, 326, 326, 919, 434, 326, 756, 1492, 3273, 353, 864, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5973, 1119, 12, 2890, 16, 7175, 16, 723, 1546, 13240, 6, 4672, 3536, 967, 326, 326, 919, 434, 326, 756, 1492, 3273, 353, 864, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
for pkg in pkgs: self.verbose_logger.warning(_('Package %s installed and not available'), pkg)
for pkg in pkgs: self.verbose_logger.warning(_('Package %s installed and not available'), pkg)
def install(self, po=None, **kwargs): """try to mark for install the item specified. Uses provided package object, if available. If not it uses the kwargs and gets the best packages from the keyword options provided returns the list of txmbr of the items it installs """ pkgs = [] was_pattern = False if po: if isinsta...
73608510136c99d64d53a82d34851986935d56d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/73608510136c99d64d53a82d34851986935d56d3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 8275, 33, 7036, 16, 2826, 4333, 4672, 3536, 698, 358, 2267, 364, 3799, 326, 761, 1269, 18, 14854, 2112, 2181, 733, 16, 309, 2319, 18, 971, 486, 518, 4692, 326, 1205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 8275, 33, 7036, 16, 2826, 4333, 4672, 3536, 698, 358, 2267, 364, 3799, 326, 761, 1269, 18, 14854, 2112, 2181, 733, 16, 309, 2319, 18, 971, 486, 518, 4692, 326, 1205...
return "%s %s\n%s" % (e.code, e.msg, headers)
return "%s %s\n%s\n%s" % (e.code, e.msg, headers, e.body)
def format_httperror(e): try: headers = e.hdrs except AttributeError: # HTTPError has hdrs method, but addinfourl has headers headers = e.headers return "%s %s\n%s" % (e.code, e.msg, headers)
d975e6ee615dd395de574849730ffb3eb15bb43f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/d975e6ee615dd395de574849730ffb3eb15bb43f/common.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 2505, 1636, 12, 73, 4672, 775, 30, 1607, 273, 425, 18, 16587, 87, 1335, 6394, 30, 468, 14415, 711, 31424, 707, 16, 1496, 527, 10625, 477, 80, 711, 1607, 1607, 273, 425, 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, 740, 67, 2505, 1636, 12, 73, 4672, 775, 30, 1607, 273, 425, 18, 16587, 87, 1335, 6394, 30, 468, 14415, 711, 31424, 707, 16, 1496, 527, 10625, 477, 80, 711, 1607, 1607, 273, 425, 18, ...
def reset(self): self.pool.reset() self.turned.reset() for stack in self.rows + self.suits: stack.reset() self.deck.reset()
def reset(self):
a9b383de5cc662464dfbac36854b1d4ca07c0a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a9b383de5cc662464dfbac36854b1d4ca07c0a0c/solitaire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
Reformat the paragraph in 'text' to fit in lines of no more than 'width' columns.
Reformat the single paragraph in 'text' to fit in lines of no more than 'self.width' columns, and return a new string containing the entire wrapped paragraph.
def fill(self, text): """fill(text : string) -> string
5afe79239ac1d4a94a35320620bab45ac8fbc6a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5afe79239ac1d4a94a35320620bab45ac8fbc6a3/textwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 977, 4672, 3536, 5935, 12, 955, 294, 533, 13, 317, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 12, 2890, 16, 977, 4672, 3536, 5935, 12, 955, 294, 533, 13, 317, 533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
verbose_set('BEE2/%s/FFT_SHIFT' % fpga, '00000001')
verbose_set('BEE2/%s/DC_EN' % fpga, '00000001')
def init2(): """Initializes FPGA registers for coherent (guppi2) modes""" for fpga in ["FPGA1", "FPGA3"]: verbose_set('BEE2/%s/FFT_SHIFT' % fpga, 'aaaaaaaa') verbose_set('BEE2/%s/FFT_SHIFT' % fpga, '00000001') # NOTE: bw_sel=2 only applies for 100, 200 and 800 MHz verbose_set('BEE2/FPGA2/GUPPi_PIPES_ARM', '0000000...
c59b36e0e70f3c3380ad9f94a1e9d996a94b4423 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14654/c59b36e0e70f3c3380ad9f94a1e9d996a94b4423/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 22, 13332, 3536, 9685, 478, 18679, 37, 10285, 364, 1825, 1614, 319, 261, 75, 416, 7259, 22, 13, 12382, 8395, 225, 364, 4253, 15833, 316, 8247, 42, 18679, 37, 21, 3113, 315, 42, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 22, 13332, 3536, 9685, 478, 18679, 37, 10285, 364, 1825, 1614, 319, 261, 75, 416, 7259, 22, 13, 12382, 8395, 225, 364, 4253, 15833, 316, 8247, 42, 18679, 37, 21, 3113, 315, 42, 1...
4
def degree_iterator(self, vertices=None, labels=False): """ INPUT: labels=False: returns an iterator over degrees. labels=True: returns an iterator over tuples (vertex, degree). vertices -- if specified, restrict to this subset. EXAMPLE: sage: D = graphs.Grid2dGraph(2,4).to_directed() sage: for i in D.degree_iterator(...
c6ee9b8c95a50319119e91b8cfe37d340af4ae88 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c6ee9b8c95a50319119e91b8cfe37d340af4ae88/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10782, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 8381, 4672, 3536, 12943, 30, 3249, 33, 8381, 30, 1135, 392, 2775, 1879, 10904, 18, 3249, 33, 5510, 30, 1135, 392, 2775, 187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10782, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 8381, 4672, 3536, 12943, 30, 3249, 33, 8381, 30, 1135, 392, 2775, 1879, 10904, 18, 3249, 33, 5510, 30, 1135, 392, 2775, 187...
return True else:
self.sync() child.sync() return True else: Log.debug("child addition failed")
def add_child(self, tid): """Add a subtask to this task
8c3df6c8fbb54c7ad4da07929247d1f1f1e45d00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/8c3df6c8fbb54c7ad4da07929247d1f1f1e45d00/task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3624, 12, 2890, 16, 11594, 4672, 3536, 986, 279, 720, 4146, 358, 333, 1562, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3624, 12, 2890, 16, 11594, 4672, 3536, 986, 279, 720, 4146, 358, 333, 1562, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
\t--runner runner ID (e.g. 'Metacomm') \t--tag the tag for the results ('CVS-HEAD' by default) \t--comment an html comment file (will be inserted in the reports, \t 'comment.html' by default) \t--incremental do incremental run (do not remove previous...
\t--runner runner ID (e.g. 'Metacomm') \t--tag the tag for the results ('CVS-HEAD' by default) \t--comment an html comment file (will be inserted in the reports, \t 'comment.html' by default) \t--incremental do incremental run (do not remove previous binaries) \t--user S...
def usage(): print 'Usage:\n\t%s [command] options' % os.path.basename( sys.argv[0] ) print '''
34792bbaa33c13e12986d62438ade14e1d8cb710 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/34792bbaa33c13e12986d62438ade14e1d8cb710/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 5581, 82, 64, 88, 9, 87, 306, 3076, 65, 702, 11, 738, 1140, 18, 803, 18, 13909, 12, 2589, 18, 19485, 63, 20, 65, 262, 1172, 565, 9163, 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, 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, 4084, 13332, 1172, 296, 5357, 5581, 82, 64, 88, 9, 87, 306, 3076, 65, 702, 11, 738, 1140, 18, 803, 18, 13909, 12, 2589, 18, 19485, 63, 20, 65, 262, 1172, 565, 9163, 2, -100, -100, ...
% (fname, tot))
% (fname, tot), fname)
def read_netstr(idx, data, tot): ldata = len(data) i = 0 lenstr = "" if ldata - idx < 11: data = data[idx:] + fd.read(8192) ldata = len(data) idx = 0
0b707841317a0d9e4ae25fb96617f4255c310427 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/0b707841317a0d9e4ae25fb96617f4255c310427/func.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2758, 701, 12, 3465, 16, 501, 16, 9997, 4672, 328, 892, 273, 562, 12, 892, 13, 277, 273, 374, 562, 701, 273, 1408, 309, 328, 892, 300, 2067, 411, 4648, 30, 501, 273, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2758, 701, 12, 3465, 16, 501, 16, 9997, 4672, 328, 892, 273, 562, 12, 892, 13, 277, 273, 374, 562, 701, 273, 1408, 309, 328, 892, 300, 2067, 411, 4648, 30, 501, 273, 501, ...
sys.stderr.write("Done.\n")
sys.stderr.write("%s/%s already in db. %s/%s inserted into db. Done.\n"%(no_of_entries_in_db, counter, real_counter, counter))
def submit_row_id2pairwise_dist(self, curs, qc_cross_match_table, row_id2pairwise_dist, qc_method_id=0, max_mismatch_rate=0.25,\ min_no_of_non_NA_pairs=5): """ 2009-6-9 add argument qc_method_id, max_mismatch_rate, min_no_of_non_NA_pairs max_mismatch_rate & min_no_of_non_NA_pairs are used to filter entries whose misma...
c13cb33cb1a6b269be23f22968b5981b73c60e17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/c13cb33cb1a6b269be23f22968b5981b73c60e17/TwoSNPData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 67, 492, 67, 350, 22, 6017, 2460, 67, 4413, 12, 2890, 16, 25326, 16, 29032, 67, 14653, 67, 1916, 67, 2121, 16, 1027, 67, 350, 22, 6017, 2460, 67, 4413, 16, 29032, 67, 2039, 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, 4879, 67, 492, 67, 350, 22, 6017, 2460, 67, 4413, 12, 2890, 16, 25326, 16, 29032, 67, 14653, 67, 1916, 67, 2121, 16, 1027, 67, 350, 22, 6017, 2460, 67, 4413, 16, 29032, 67, 2039, 67,...
def ifa_split_empties(cl, dcpa, allnodes, assignsets, split): ''' split off empty assignment sets (eg, [], or [x[0]] where x is None in some template) ''' endpoints = [huh for huh in allnodes if not huh.in_] if assignsets and cl.ident in ['list', 'tuple', 'tuple2']: allcsites = set() for n, types in getgx().types.iter...
def ifa_split_no_confusion(cl, dcpa, varnum, classes_nr, nr_classes, csites, allnodes, split): '''creation sites on single path: split them off, possibly reusing contour''' attr_types = nr_classes[dcpa] noconf = set([n for n in csites if len(n.paths)==1]) others = len(csites) - len(noconf) subtype_csites = {} for node ...
ea7a3e37812af33b385d2fb5ed782cd2800af0a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/ea7a3e37812af33b385d2fb5ed782cd2800af0a7/infer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 69, 67, 4939, 67, 2135, 67, 3923, 7063, 12, 830, 16, 302, 4057, 69, 16, 569, 2107, 16, 3318, 67, 11611, 16, 9884, 67, 4701, 16, 2873, 2997, 16, 777, 4690, 16, 1416, 4672, 9163, ...
print 'hopping'
def update(): global root_geom,isec0,im,pim,ndbm0,nsec0,a,ftx0,nin0,nout0, \ receiving,transmitting,newdat,nscroll,newspec,scale0,offset0, \ modpixmap0,tw,s0,c0,fmid,fmid0,loopall,ntr0,txmsg,iband0, \ bandmap,bm,t0,nreject,gain,phdeg if hopping_feature==1: if hopping.hoppingconfigured.get()==1: bhopping.configure(stat...
d2a83a144fce427965f7d1fda62dd18769bbe2fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/d2a83a144fce427965f7d1fda62dd18769bbe2fa/wspr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 381, 16, 84, 381, 16, 82, 1966, 81, 20, 16, 82, 3321, 20, 16, 69, 16, 74, 978, 20, 16, 82, 267, 20, 16, 82, 659, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 381, 16, 84, 381, 16, 82, 1966, 81, 20, 16, 82, 3321, 20, 16, 69, 16, 74, 978, 20, 16, 82, 267, 20, 16, 82, 659, 20, 1...
if theme_name != theuser.theme_name:
if theme_name != request.user.theme_name:
def _save_user_prefs(self): _ = self._ form = self.request.form
39ee40a7a56d6232a4f77e637d8fe0ae20d800f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/39ee40a7a56d6232a4f77e637d8fe0ae20d800f5/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 1355, 67, 1484, 2556, 12, 2890, 4672, 389, 273, 365, 6315, 646, 273, 365, 18, 2293, 18, 687, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 1355, 67, 1484, 2556, 12, 2890, 4672, 389, 273, 365, 6315, 646, 273, 365, 18, 2293, 18, 687, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
_('Could not connect to server !') + '</b>')
_('Could not connect to server!') + '</b>')
def refreshlist(widget, db_widget, label, host, port): res = common.refresh_dblist(db_widget, host, port) if res == -1: label.set_label('<b>' + \ _('Could not connect to server !') + '</b>') db_widget.hide() label.show() elif res==0: label.set_label('<b>' + \ _('No database found, you must create one !') + '</b>') db_w...
bb9050c5d847f9b9616dfd128a3b11b6307b5109 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/bb9050c5d847f9b9616dfd128a3b11b6307b5109/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 1098, 12, 6587, 16, 1319, 67, 6587, 16, 1433, 16, 1479, 16, 1756, 4672, 400, 273, 2975, 18, 9144, 67, 1966, 1098, 12, 1966, 67, 6587, 16, 1479, 16, 1756, 13, 309, 400, 422, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 1098, 12, 6587, 16, 1319, 67, 6587, 16, 1433, 16, 1479, 16, 1756, 4672, 400, 273, 2975, 18, 9144, 67, 1966, 1098, 12, 1966, 67, 6587, 16, 1479, 16, 1756, 13, 309, 400, 422, 300...
check("to parse node", 'resource-lists/users/alice@example.com/index.xml~~')
self.check(404, 'user id', 'resource-lists/users') self.check(404, "not contain ", 'resource-lists/users/alice@example.com', 'resource-lists/users/alice@example.com/')
def check(message, *uris): for uri in uris: r = self.client.con.request('GET', uri) self.assertEqual(r.code, 400) self.assertInBody(r, message)
a7b89ef0fff978632e12dbf35b705e289ee8830c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/a7b89ef0fff978632e12dbf35b705e289ee8830c/test_errors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2150, 16, 380, 23510, 4672, 364, 2003, 316, 21476, 30, 436, 273, 365, 18, 2625, 18, 591, 18, 2293, 2668, 3264, 2187, 2003, 13, 365, 18, 11231, 5812, 12, 86, 18, 710, 16, 740...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2150, 16, 380, 23510, 4672, 364, 2003, 316, 21476, 30, 436, 273, 365, 18, 2625, 18, 591, 18, 2293, 2668, 3264, 2187, 2003, 13, 365, 18, 11231, 5812, 12, 86, 18, 710, 16, 740...
relation = False if relation:
column = False if column: relation = column._obj
def __view_look_dom(self, cr, user, node, view_id, context=None): if not context: context = {} result = False fields = {} childs = True
efc01f25aea7aa5ac44a3edc9b19327b6b5bc58c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/efc01f25aea7aa5ac44a3edc9b19327b6b5bc58c/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, ...
raise RunTimeError, "should never have nnz > nzmax"
raise RuntimeError, "should never have nnz > nzmax"
def prune(self): """ Eliminate non-zero entries, leaving space for at least newnzmax elements. """ nnz = self.indptr[-1] if self.nzmax <= nnz: if self.nzmax < nnz: raise RunTimeError, "should never have nnz > nzmax" return self.data = self.data[:nnz] self.colind = self.colind[:nnz] self.nzmax = nnz self._check()
7270a9021508eec44f178fc2ded755fdefa8d64b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/7270a9021508eec44f178fc2ded755fdefa8d64b/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13293, 12, 2890, 4672, 3536, 512, 7091, 3322, 1661, 17, 7124, 3222, 16, 15086, 3476, 364, 622, 4520, 394, 82, 94, 1896, 2186, 18, 3536, 7761, 94, 273, 365, 18, 728, 6723, 18919, 21, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13293, 12, 2890, 4672, 3536, 512, 7091, 3322, 1661, 17, 7124, 3222, 16, 15086, 3476, 364, 622, 4520, 394, 82, 94, 1896, 2186, 18, 3536, 7761, 94, 273, 365, 18, 728, 6723, 18919, 21, 65...
print "But this is a dry run, so leaving it alone."
print("But this is a dry run, so leaving it alone.")
def check(file): if os.path.isdir(file) and not os.path.islink(file): if verbose: print "listing directory", file names = os.listdir(file) for name in names: fullname = os.path.join(file, name) if ((recurse and os.path.isdir(fullname) and not os.path.islink(fullname)) or name.lower().endswith(".py")): check(fullname) r...
84b442fcd23eee856cc7a76aeb9955452c619e64 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/84b442fcd23eee856cc7a76aeb9955452c619e64/reindent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 768, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 768, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 768, 4672, 309, 3988, 30, 1172, 315, 21228, 1867, 3113, 585, 1257, 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, 866, 12, 768, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 768, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 768, 4672, 309, 3988, 30, 1172, 315, 21228, 1867, 3113, 585, 1257, 273...
duplicateRegex = r'\n\*(?:\[\[:Image:%s\]\] has the following duplicates:|\*\[\[:Image:%s\]\])$' % (self.convert_to_url(self.image), self.convert_to_url(self.image))
duplicateRegex = r'\n\*(?:\[\[:Image:%s\]\] has the following duplicates(?: \(\'\'\'forced mode\'\'\'\)|):|\*\[\[:Image:%s\]\])$' % (self.convert_to_url(self.image), self.convert_to_url(self.image))
def checkImageDuplicated(self, duplicates_rollback): """ Function to check the duplicated images. """ # {{Dupe|Image:Blanche_Montel.jpg}} # Skip the stub images #if 'stub' in self.image.lower() and self.project == 'wikipedia' and self.site.lang == 'it': # return True # Skip the stub, ok dupText = wikipedia.translate...
7570d88073c803cfc001e8c1d10114e67f5d7895 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/7570d88073c803cfc001e8c1d10114e67f5d7895/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2040, 19682, 690, 12, 2890, 16, 11211, 67, 20050, 4672, 3536, 4284, 358, 866, 326, 16975, 4602, 18, 3536, 468, 10179, 40, 89, 347, 96, 2040, 30, 4802, 304, 18706, 67, 49, 1580, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2040, 19682, 690, 12, 2890, 16, 11211, 67, 20050, 4672, 3536, 4284, 358, 866, 326, 16975, 4602, 18, 3536, 468, 10179, 40, 89, 347, 96, 2040, 30, 4802, 304, 18706, 67, 49, 1580, 29...
self.add_condor_cmd('getenv','True')
def __init__(self,cp,block_id,layer_id,dagDir,jobType,channel=''): self.injectFile="" self.jobType=jobType self.dagDirectory=dagDir #ConfigParser object -> cp self.__executable = cp.get('condor','tracksearch') self.__universe = cp.get('condor','tracksearch_universe'); self.add_condor_cmd('getenv','True') self.validJobT...
e2743bf429e74bf76b283ddc522f99b6aaaadf9a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e2743bf429e74bf76b283ddc522f99b6aaaadf9a/tracksearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4057, 16, 2629, 67, 350, 16, 6363, 67, 350, 16, 30204, 1621, 16, 4688, 559, 16, 4327, 2218, 11, 4672, 365, 18, 22170, 812, 1546, 6, 365, 18, 4688, 559,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4057, 16, 2629, 67, 350, 16, 6363, 67, 350, 16, 30204, 1621, 16, 4688, 559, 16, 4327, 2218, 11, 4672, 365, 18, 22170, 812, 1546, 6, 365, 18, 4688, 559,...
if isinstance(inode, LoopWhile) and inode.offset() == 0 and inode.pure():
if isinstance(inode, LoopWhile) and inode.offsets() == 0 and inode.pure():
def optimize_tightloop(self, node): if not isinstance(node, ComplexNode): return node
55a86fc4f319ddc89439f1749954cde74fdadcf3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/55a86fc4f319ddc89439f1749954cde74fdadcf3/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 88, 750, 6498, 12, 2890, 16, 756, 4672, 309, 486, 1549, 12, 2159, 16, 16060, 907, 4672, 327, 756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10979, 67, 88, 750, 6498, 12, 2890, 16, 756, 4672, 309, 486, 1549, 12, 2159, 16, 16060, 907, 4672, 327, 756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.warnings(("[unknown:%d] " % level) + log)
self.warning(("[unknown:%d] " % level) + log)
def __log_callback(self, level, log): log = log.rstrip('\n')
cb9cb33e9c52110272e179b08d52bc65a9ac0fb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3386/cb9cb33e9c52110272e179b08d52bc65a9ac0fb5/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 67, 3394, 12, 2890, 16, 1801, 16, 613, 4672, 613, 273, 613, 18, 86, 6406, 2668, 64, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 67, 3394, 12, 2890, 16, 1801, 16, 613, 4672, 613, 273, 613, 18, 86, 6406, 2668, 64, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
string = string.encode("ascii", "xmlcharrefreplace") for rep in CHAR_MAP: if rep in string: string = string.replace(rep, CHAR_MAP[rep])
string = repr(string.encode("ascii", "xmlcharrefreplace")).strip("'")
def encode_cdata(self, string): """Return what might be a CDATA encoded string""" if string == None: return None string = str(string) string = string.encode("ascii", "xmlcharrefreplace") for rep in CHAR_MAP: if rep in string: string = string.replace(rep, CHAR_MAP[rep]) for ch in BAD_CHARS: if ch in string: return "<![C...
6bdadb7c1dbe033620ebc17d1a278b04371da7e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/6bdadb7c1dbe033620ebc17d1a278b04371da7e9/xmlize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 71, 892, 12, 2890, 16, 533, 4672, 3536, 990, 4121, 4825, 506, 279, 28294, 3749, 533, 8395, 309, 533, 422, 599, 30, 327, 599, 533, 273, 609, 12, 1080, 13, 533, 273, 8480, 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, 2017, 67, 71, 892, 12, 2890, 16, 533, 4672, 3536, 990, 4121, 4825, 506, 279, 28294, 3749, 533, 8395, 309, 533, 422, 599, 30, 327, 599, 533, 273, 609, 12, 1080, 13, 533, 273, 8480, 12...
eps = self.root_number()
E = self.minimal_model() eps = E.root_number()
def sha_an(self, use_database=False): """ Returns the Birch and Swinnerton-Dyer conjectural order of Sha, unless the analytic rank is > 1, in which case this function returns 0.
281f4370d8301f7ec470b1771e1f9fd389a9831b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/281f4370d8301f7ec470b1771e1f9fd389a9831b/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6056, 67, 304, 12, 2890, 16, 999, 67, 6231, 33, 8381, 4672, 3536, 2860, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 265, 17, 40, 93, 264, 356, 937, 3766, 1353, 434, 2638, 69, 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, 6056, 67, 304, 12, 2890, 16, 999, 67, 6231, 33, 8381, 4672, 3536, 2860, 326, 605, 481, 343, 471, 5434, 267, 82, 1051, 265, 17, 40, 93, 264, 356, 937, 3766, 1353, 434, 2638, 69, 16, ...
def select_word(self, word, lang):
def select_word(self, word, lang):
def select_word(self, word, lang): model = self.word_completion.get_model() if len (model) == 0: return lang_iter = None current_lang_iter = model.get_iter_first() while current_lang_iter and model[current_lang_iter][0] != lang: current_lang_iter = model.iter_next(current_lang_iter) if current_lang_iter and model[curre...
959531726c990fd64610de9a89159e12eb94a90b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/959531726c990fd64610de9a89159e12eb94a90b/pysdic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 1095, 12, 2890, 16, 2076, 16, 3303, 4672, 938, 273, 365, 18, 1095, 67, 11469, 18, 588, 67, 2284, 1435, 309, 562, 261, 2284, 13, 422, 374, 30, 327, 3303, 67, 2165, 273, 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, 2027, 67, 1095, 12, 2890, 16, 2076, 16, 3303, 4672, 938, 273, 365, 18, 1095, 67, 11469, 18, 588, 67, 2284, 1435, 309, 562, 261, 2284, 13, 422, 374, 30, 327, 3303, 67, 2165, 273, 599,...
if (isinstance(vval, UID)):
if not var.uid().is_variable():
def _var_details(self, variables, container, heading='Variable Details'): """ @return: The HTML code for a variable details table. This is used by L{_module_to_html} to describe the variables in a module; and by L{_class_to_html} to describe instance variables and class variables. @rtype: C{string} """ variables = sel...
36aef14a0edb4bd18076686105d0e4e6c7c10c23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36aef14a0edb4bd18076686105d0e4e6c7c10c23/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1401, 67, 6395, 12, 2890, 16, 3152, 16, 1478, 16, 11053, 2218, 3092, 21897, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190, 3189, 1014, 18, 225, 1220, 353, 1399, 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, 389, 1401, 67, 6395, 12, 2890, 16, 3152, 16, 1478, 16, 11053, 2218, 3092, 21897, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 2190, 3189, 1014, 18, 225, 1220, 353, 1399, 6...
@type warnings: C{list} of L{ParseError}
@type errors: C{list} of L{ParseError}
def _tokenize_listart(lines, start, bullet_indent, tokens, warnings): """ Construct L{Token}s for the bullet and the first paragraph of the list item (or field) starting at C{lines[start]}, and append them to C{tokens}. C{bullet_indent} should be the indentation of the list item. Any warnings generated while tokenizi...
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2316, 554, 67, 1098, 485, 12, 3548, 16, 787, 16, 31650, 67, 9355, 16, 2430, 16, 5599, 4672, 3536, 14291, 511, 95, 1345, 97, 87, 364, 326, 31650, 471, 326, 1122, 10190, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2316, 554, 67, 1098, 485, 12, 3548, 16, 787, 16, 31650, 67, 9355, 16, 2430, 16, 5599, 4672, 3536, 14291, 511, 95, 1345, 97, 87, 364, 326, 31650, 471, 326, 1122, 10190, 434, 326, ...
(code,msg)=self.getreply() return msg
return self.getreply()
def help(self, args=''): """SMTP 'help' command. Returns help text from server.""" self.putcmd("help", args) (code,msg)=self.getreply() return msg
7ce512fd70a64eb7cf9563bb31dd4291a44254dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ce512fd70a64eb7cf9563bb31dd4291a44254dd/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 12, 2890, 16, 833, 2218, 11, 4672, 3536, 55, 14636, 296, 5201, 11, 1296, 18, 2860, 2809, 977, 628, 1438, 12123, 365, 18, 458, 4172, 2932, 5201, 3113, 833, 13, 261, 710, 16, 3576,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2809, 12, 2890, 16, 833, 2218, 11, 4672, 3536, 55, 14636, 296, 5201, 11, 1296, 18, 2860, 2809, 977, 628, 1438, 12123, 365, 18, 458, 4172, 2932, 5201, 3113, 833, 13, 261, 710, 16, 3576,...
if r is None: cr.execute('SELECT MAX(CASE WHEN perm_' + mode + ' THEN 1 ELSE 0 END) ' ' FROM ir_model_access a ' ' JOIN ir_model m ON (m.id = a.model_id) ' ' WHERE a.group_id IS NULL ' ' AND m.model = %s ' , (model_name,) ) r = cr.fetchone()[0]
def check(self, cr, uid, model, mode='read', raise_exception=True, context=None): if uid==1: # User root have all accesses # TODO: exclude xml-rpc requests return True
380a800b3643b4bb2a6b0c9db31c5e59baffe152 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/380a800b3643b4bb2a6b0c9db31c5e59baffe152/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 1965, 2218, 896, 2187, 1002, 67, 4064, 33, 5510, 16, 819, 33, 7036, 4672, 309, 4555, 631, 21, 30, 468, 2177, 1365, 1240, 777, 2006, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 1965, 2218, 896, 2187, 1002, 67, 4064, 33, 5510, 16, 819, 33, 7036, 4672, 309, 4555, 631, 21, 30, 468, 2177, 1365, 1240, 777, 2006, 28...
if 'interface_ids' in columns: columns.remove('interface_ids') if 'dummybox_id' in columns: columns.remove('dummybox_id')
def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message)
be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 261, 2150, 4672, 309, 7479, 422, 2606, 67, 723, 471, 4261, 67, 1612, 67, 350, 316, 2606, 67, 2232, 30, 883, 67, 11369, 2668, 23827, 34, 1870, 15, 2150, 13, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 261, 2150, 4672, 309, 7479, 422, 2606, 67, 723, 471, 4261, 67, 1612, 67, 350, 316, 2606, 67, 2232, 30, 883, 67, 11369, 2668, 23827, 34, 1870, 15, 2150, 13, 2, -100, -100, -100, ...
EXAMPLES: sage: F4 = WeylCharacterRing(['F',4]) sage: [F4(x).check(verbose = true) for x in F4.lattice().fundamental_weights()] [[52, 52], [1274, 1274], [273, 273], [26, 26]]
EXAMPLES: sage: F4 = WeylCharacterRing(['F',4]) sage: [F4(x).check(verbose = true) for x in F4.lattice().fundamental_weights()] [[52, 52], [1274, 1274], [273, 273], [26, 26]]
def check(self, verbose=False): """To check the correctness of an element, we compare the theoretical dimension computed Weyl character formula with the actual one obtained by adding up the multiplicities. EXAMPLES: sage: F4 = WeylCharacterRing(['F',4]) sage: [F4(x).check(verbose = true) for x in F4.lattice().fundament...
af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3988, 33, 8381, 4672, 3536, 774, 866, 326, 3434, 4496, 434, 392, 930, 16, 732, 3400, 326, 326, 479, 88, 1706, 4968, 8470, 678, 402, 80, 3351, 8013, 598, 326, 3214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 3988, 33, 8381, 4672, 3536, 774, 866, 326, 3434, 4496, 434, 392, 930, 16, 732, 3400, 326, 326, 479, 88, 1706, 4968, 8470, 678, 402, 80, 3351, 8013, 598, 326, 3214, ...
redirect_to = "%s?new_email=%s" % (get_url_host(request) + reverse('user_changeemail',kwargs={'username':username}),form.cleaned_data['email'])
request.session['new_email'] = form.cleaned_data['email']
def changeemail(request,username): """ changeemail view. It require password or openid to allow change. url: /username/changeemail/ template : authopenid/changeemail.html """ extension_args = {} u = get_object_or_404(User, username=username) if request.POST: form = ChangeemailForm(request.POST) if form.is_valid():...
4496f80a5dd0ef7ec27ac669a43affeb34a74af8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5675/4496f80a5dd0ef7ec27ac669a43affeb34a74af8/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 3652, 12, 2293, 16, 5053, 4672, 3536, 2549, 3652, 1476, 18, 2597, 2583, 2201, 578, 21629, 358, 1699, 2549, 18, 225, 880, 30, 342, 5053, 19, 3427, 3652, 19, 225, 1542, 294, 1357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 3652, 12, 2293, 16, 5053, 4672, 3536, 2549, 3652, 1476, 18, 2597, 2583, 2201, 578, 21629, 358, 1699, 2549, 18, 225, 880, 30, 342, 5053, 19, 3427, 3652, 19, 225, 1542, 294, 1357, ...
def fl_addto_menu(ob, menustr): """ fl_addto_menu(ob, menustr) -> num. """ retval = _fl_addto_menu(ob, menustr)
def fl_addto_menu(pObject, menustr): """ fl_addto_menu(pObject, menustr) -> num. """ retval = _fl_addto_menu(pObject, menustr)
def fl_addto_menu(ob, menustr): """ fl_addto_menu(ob, menustr) -> num. """ retval = _fl_addto_menu(ob, menustr) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 869, 67, 5414, 12, 84, 921, 16, 21374, 313, 4672, 3536, 1183, 67, 1289, 869, 67, 5414, 12, 84, 921, 16, 21374, 313, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 1289, 869, 67, 5414, 12, 84, 921, 16, 21374, 313, 4672, 3536, 1183, 67, 1289, 869, 67, 5414, 12, 84, 921, 16, 21374, 313, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242,...
security.declareProtected(ManagePortal, 'getExportStep')
security.declareProtected(ManagePortal, 'getExportStepMetadata')
def getImportStepMetadata(self, step, default=None): """Simple wrapper to query both the global and local step registry.""" res=_import_step_registry.getStepMetadata(step, default) if res is not default: return res return self._import_registry.getStepMetadata(step, default)
10d89dc6d09f3df252d3e1f6fffb360bbc968240 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3757/10d89dc6d09f3df252d3e1f6fffb360bbc968240/tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5010, 4160, 2277, 12, 2890, 16, 2235, 16, 805, 33, 7036, 4672, 3536, 5784, 4053, 358, 843, 3937, 326, 2552, 471, 1191, 2235, 4023, 12123, 400, 33, 67, 5666, 67, 4119, 67, 9893, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5010, 4160, 2277, 12, 2890, 16, 2235, 16, 805, 33, 7036, 4672, 3536, 5784, 4053, 358, 843, 3937, 326, 2552, 471, 1191, 2235, 4023, 12123, 400, 33, 67, 5666, 67, 4119, 67, 9893, 18...
os__file__, os__cached__ = stdout.split()
os__file__, os__cached__ = stdout.splitlines()[:2]
def test_abs_paths(self): # Make sure all imported modules have their __file__ and __cached__ # attributes as absolute paths. Arranging to put the Lib directory on # PYTHONPATH would cause the os module to have a relative path for # __file__ if abs_paths() does not get run. sys and builtins (the # only other modules ...
e14d0d3d0fa42edb4388d69bacd74509b29c3f71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e14d0d3d0fa42edb4388d69bacd74509b29c3f71/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5113, 67, 4481, 12, 2890, 4672, 468, 4344, 3071, 777, 9101, 4381, 1240, 3675, 1001, 768, 972, 471, 1001, 7097, 972, 468, 1677, 487, 4967, 2953, 18, 225, 10371, 18183, 358, 1378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5113, 67, 4481, 12, 2890, 4672, 468, 4344, 3071, 777, 9101, 4381, 1240, 3675, 1001, 768, 972, 471, 1001, 7097, 972, 468, 1677, 487, 4967, 2953, 18, 225, 10371, 18183, 358, 1378...
def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props)
def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, None, props)
def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props) self.isFolder = isFolder
3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 3458, 16, 1058, 803, 16, 20304, 16, 31137, 16, 3774, 4223, 4672, 1312, 11766, 3205, 18, 20938, 907, 16186, 2738, 972, 12, 2890, 16, 508, 16, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 508, 16, 3458, 16, 1058, 803, 16, 20304, 16, 31137, 16, 3774, 4223, 4672, 1312, 11766, 3205, 18, 20938, 907, 16186, 2738, 972, 12, 2890, 16, 508, 16, 105...
cr.execute(""" create or replace view report_crm_case_bugs as ( select min(c.id) as id, c.user_id, t.project_id as project_id, c.section_id as section_id, count(*) as nbr, c.state from crm_case c left join project_task t on t.case_id = c.id left join project_project p on p.id = t.project_id where c.section_id = p.secti...
global project if project: cr.execute(""" create or replace view report_crm_case_bugs as ( select min(c.id) as id, c.user_id, t.project_id as project_id, c.section_id as section_id, count(*) as nbr, c.state from crm_case c left join project_task t on t.case_id = c.id left join project_project p on p.id = t.project_id w...
def init(self, cr): cr.execute(""" create or replace view report_crm_case_bugs as ( select min(c.id) as id, c.user_id, t.project_id as project_id, c.section_id as section_id, count(*) as nbr, c.state from crm_case c left join project_task t on t.case_id = c.id left join project_project p on p.id = t.project_id where c....
b1d94ef431a6eadea6342813a49fcdf00ea519b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b1d94ef431a6eadea6342813a49fcdf00ea519b1/portal_project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 2605, 67, 3353, 81, 67, 3593, 67, 19381, 487, 261, 2027, 1131, 12, 71, 18, 350, 13, 487, 612, 16, 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, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 752, 578, 1453, 1476, 2605, 67, 3353, 81, 67, 3593, 67, 19381, 487, 261, 2027, 1131, 12, 71, 18, 350, 13, 487, 612, 16, 27...
super(RegressionLayer, self).initialize(obj, **init)
def initialize(self, obj, input_size = None, target_size = None, **init): # obj is an "instance" of this module holding values for each member and # functions for each method super(RegressionLayer, self).initialize(obj, **init) # here we call the superclass's initialize method, which takes all the name: value # pairs i...
3679d8e672ed82205d9c736012026700e3d8b81d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/3679d8e672ed82205d9c736012026700e3d8b81d/test_wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 1081, 16, 810, 67, 1467, 273, 599, 16, 1018, 67, 1467, 273, 599, 16, 2826, 2738, 4672, 468, 1081, 353, 392, 315, 1336, 6, 434, 333, 1605, 19918, 924, 364, 1517, 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, 4046, 12, 2890, 16, 1081, 16, 810, 67, 1467, 273, 599, 16, 1018, 67, 1467, 273, 599, 16, 2826, 2738, 4672, 468, 1081, 353, 392, 315, 1336, 6, 434, 333, 1605, 19918, 924, 364, 1517, 3...
self._SaveEditorCollection(event)
self._SaveEditorCollection(self.editor_collection_filename)
def _OnSaveEditorCollectionAs(self, event): if gui_util.are_you_sure_dialog("There are %d glyphs in the editor.\nAre you sure you want to save?" % len(glyphs)): filename = gui_util.save_file_dialog(self._frame, gamera_xml.extensions) if filename: self.editor_collection_filename = filename self._SaveEditorCollection(eve...
8c3ffddd7ea79bf3921815c9a34fb8e4e1e05f5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/8c3ffddd7ea79bf3921815c9a34fb8e4e1e05f5b/classifier_display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1398, 4755, 6946, 2532, 1463, 12, 2890, 16, 871, 4672, 309, 13238, 67, 1367, 18, 834, 67, 19940, 67, 2055, 67, 12730, 2932, 9828, 854, 738, 72, 23404, 316, 326, 4858, 8403, 82, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1398, 4755, 6946, 2532, 1463, 12, 2890, 16, 871, 4672, 309, 13238, 67, 1367, 18, 834, 67, 19940, 67, 2055, 67, 12730, 2932, 9828, 854, 738, 72, 23404, 316, 326, 4858, 8403, 82, 47...
r''' Returns True if the ideal is an unit with respect to the list of primes S. INPUT:: - `S` - a list of prime ideals (not checked if they are indeed prime). OUTPUT:: True, if the ideal is `S`-integral. False, otherwise.
r""" Return True if this fractional ideal is integral with respect to the list of primes ``S``. INPUT: - `S` - a list of prime ideals (not checked if they are indeed prime). .. note:: This function assumes that `S` is a list of prime ideals, but does not check this. This function will fail if `S` is not a list of ...
def is_S_integral(self,S): r''' Returns True if the ideal is an unit with respect to the
5cc1a0fdd77c59d8c8c66f72f9d4b964f32dfef2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5cc1a0fdd77c59d8c8c66f72f9d4b964f32dfef2/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 55, 67, 14970, 23811, 12, 2890, 16, 55, 4672, 436, 26418, 2860, 1053, 309, 326, 23349, 353, 392, 2836, 598, 8762, 358, 326, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 55, 67, 14970, 23811, 12, 2890, 16, 55, 4672, 436, 26418, 2860, 1053, 309, 326, 23349, 353, 392, 2836, 598, 8762, 358, 326, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
dc.SetBrush(wx.Brush(self.colHeaderBg, wx.SOLID)) dc.SetPen(wx.Pen(self.colHeaderBg, 1, wx.SOLID))
dc.SetBrush(self.colHeaderBgBrush) dc.SetPen(self.colHeaderBgPen)
def DrawMonth(self, dc, startDate, y, highlightDate = False): """ draw a single month return the updated value of y """ dc.SetTextForeground(wx.BLACK);
b4bffc7cad7daee9a037b7296130e65ad5d69367 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b4bffc7cad7daee9a037b7296130e65ad5d69367/minical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 5445, 12, 2890, 16, 6744, 16, 12572, 16, 677, 16, 8839, 1626, 273, 1083, 4672, 3536, 3724, 279, 2202, 3138, 327, 326, 3526, 460, 434, 677, 3536, 6744, 18, 694, 1528, 23206, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 5445, 12, 2890, 16, 6744, 16, 12572, 16, 677, 16, 8839, 1626, 273, 1083, 4672, 3536, 3724, 279, 2202, 3138, 327, 326, 3526, 460, 434, 677, 3536, 6744, 18, 694, 1528, 23206, 12, ...
return _patch(target, attribute, new, spec, create)
return _patch(target, attribute, new, spec, create)
def patch_object(target, attribute, new=DEFAULT, spec=None, create=False): return _patch(target, attribute, new, spec, create)
80fa4d88b29b0ca9f5484d546272c040ecc5f308 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/80fa4d88b29b0ca9f5484d546272c040ecc5f308/mock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 67, 1612, 12, 3299, 16, 1566, 16, 394, 33, 5280, 16, 857, 33, 7036, 16, 752, 33, 8381, 4672, 327, 389, 2272, 12, 3299, 16, 1566, 16, 394, 16, 857, 16, 752, 13, 282, 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, 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, 4729, 67, 1612, 12, 3299, 16, 1566, 16, 394, 33, 5280, 16, 857, 33, 7036, 16, 752, 33, 8381, 4672, 327, 389, 2272, 12, 3299, 16, 1566, 16, 394, 16, 857, 16, 752, 13, 282, 2, -100, ...
if depCategoryName[-1]=="R":
if not isRequired: isRequiredDep = False elif depCategoryName[-1]=="R":
def updatePackageDepsCategory(self, libsOnly, packageRowID, packageID, depCategory, depCategoryName, isDirect, isRequired, trilinosDepsTable ): packageRow = trilinosDepsTable[packageRowID+1] #print "\npackageRow =", packageRow depList = getattr(self.__packagesList[packageID], depCategory) #print "\ndepList =", depList ...
14ce9fd4920947e5f8b1813e1f49ee4adffd7eaf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/14ce9fd4920947e5f8b1813e1f49ee4adffd7eaf/TrilinosDependencies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2261, 14430, 4457, 12, 2890, 16, 15042, 3386, 16, 2181, 1999, 734, 16, 2181, 734, 16, 5993, 4457, 16, 5993, 4457, 461, 16, 353, 5368, 16, 14967, 16, 433, 330, 267, 538, 14430, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 2261, 14430, 4457, 12, 2890, 16, 15042, 3386, 16, 2181, 1999, 734, 16, 2181, 734, 16, 5993, 4457, 16, 5993, 4457, 461, 16, 353, 5368, 16, 14967, 16, 433, 330, 267, 538, 14430, 13...
r""" Perfect numbers: equal to sum of proper divisors. INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000396;a
def __init__(self): r"""
def _eval(self, n): return Integer(2**sloane.A000043(n) - 1)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 22, 636, 87, 383, 8806, 18, 37, 2787, 8942, 12, 82, 13, 300, 404, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2144, 12, 22, 636, 87, 383, 8806, 18, 37, 2787, 8942, 12, 82, 13, 300, 404, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
cr.execute('select count(1) from res_users where id=%s and password=%s and active=%s', (int(uid), passwd, True)) res = cr.fetchone()[0] cr.close() if not bool(res): raise security.ExceptionNoTb('AccessDenied') if res: if self._uid_cache.has_key(db): ulist = self._uid_cache[db] ulist[uid] = passwd else: self._uid_cache[...
try: cr.execute('SELECT COUNT(1) FROM res_users WHERE id=%s AND password=%s AND active=%s', (int(uid), passwd, True)) res = cr.fetchone()[0] if not bool(res): raise security.ExceptionNoTb('AccessDenied') if res: if self._uid_cache.has_key(db): ulist = self._uid_cache[db] ulist[uid] = passwd else: self._uid_cache[db] = ...
def check(self, db, uid, passwd): if not passwd: return False cached_pass = self._uid_cache.get(db, {}).get(uid) if (cached_pass is not None) and cached_pass == passwd: return True cr = pooler.get_db(db).cursor() cr.execute('select count(1) from res_users where id=%s and password=%s and active=%s', (int(uid), passwd, T...
ac8483791a14842bf596422088f38a3ac9fea2af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/ac8483791a14842bf596422088f38a3ac9fea2af/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 1319, 16, 4555, 16, 19093, 4672, 309, 486, 19093, 30, 327, 1083, 3472, 67, 5466, 273, 365, 6315, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 1319, 16, 4555, 16, 19093, 4672, 309, 486, 19093, 30, 327, 1083, 3472, 67, 5466, 273, 365, 6315, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, ...
assert_equals(timestamp_to_secs('20070920 16:15:14.123'), 1190294114)
assert_equals(timestamp_to_secs('20070920 16:15:14.123'), EXAMPLE_TIME)
def test_timestamp_to_secs_with_default(self): assert_equals(timestamp_to_secs('20070920 16:15:14.123'), 1190294114)
3f44fb4c6f2d70011327e5320fc19c108b778272 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/3f44fb4c6f2d70011327e5320fc19c108b778272/test_robottime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5508, 67, 869, 67, 21317, 67, 1918, 67, 1886, 12, 2890, 4672, 1815, 67, 14963, 12, 5508, 67, 869, 67, 21317, 2668, 6976, 27, 5908, 3462, 2872, 30, 3600, 30, 3461, 18, 12936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5508, 67, 869, 67, 21317, 67, 1918, 67, 1886, 12, 2890, 4672, 1815, 67, 14963, 12, 5508, 67, 869, 67, 21317, 2668, 6976, 27, 5908, 3462, 2872, 30, 3600, 30, 3461, 18, 12936, ...
'FCylinder base 1.0 0.0 0.0 apex 0.999950000417 0.00999983333417 0.0001 rad 0.005 texture126'
'FCylinder base 1.0 0.0 0.0 apex 0.999950000417 0.00999983333417 0.0001 rad 0.005 texture127'
def tachyon_repr(self, render_params): """ Returns representation of the line suitable for plotting using the Tachyon ray tracer.
11ca8f7d7f9d46936b93b319c8a8dd01d19ba3fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/11ca8f7d7f9d46936b93b319c8a8dd01d19ba3fe/shapes2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 497, 93, 265, 67, 12715, 12, 2890, 16, 1743, 67, 2010, 4672, 3536, 2860, 4335, 434, 326, 980, 10631, 364, 20947, 1450, 326, 399, 497, 93, 265, 14961, 13109, 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, 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, 268, 497, 93, 265, 67, 12715, 12, 2890, 16, 1743, 67, 2010, 4672, 3536, 2860, 4335, 434, 326, 980, 10631, 364, 20947, 1450, 326, 399, 497, 93, 265, 14961, 13109, 18, 2, -100, -100, -10...
None, [cty.POINTER(FL_IMAGE)],
None, [cty.POINTER(FL_IMAGE)],
def flimage_free_gray(pImage): """ flimage_free_gray(pImage) """ _flimage_free_gray(pImage)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 13, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 9156, 67, 22440, 12, 84, 2040, 13, 282, ...
new.dtype.char = new.data.dtype.char
new.dtype = new.data.dtype
def __mul__(self, other): """ Scalar, vector, or matrix multiplication """ if isscalar(other) or (isdense(other) and rank(other)==0): new = self.copy() new.data = other * new.data # allows type conversion new.dtype.char = new.data.dtype.char new.ftype = _transtabl[new.dtype.char] return new else: return self.do...
755141cd47edbf647cfcd8d09fd47ede3320459c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/755141cd47edbf647cfcd8d09fd47ede3320459c/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 3536, 15791, 16, 3806, 16, 578, 3148, 23066, 3536, 309, 3385, 3473, 12, 3011, 13, 578, 261, 291, 25942, 12, 3011, 13, 471, 6171, 12, 3011, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16411, 972, 12, 2890, 16, 1308, 4672, 3536, 15791, 16, 3806, 16, 578, 3148, 23066, 3536, 309, 3385, 3473, 12, 3011, 13, 578, 261, 291, 25942, 12, 3011, 13, 471, 6171, 12, 3011, 1...
max_pix = max(pixel,pixel2,pixel3,pixel4) min_pix = min(pixel,pixel2,pixel3,pixel4) max_line = max(line,line2,line3,line4) min_line = min(line,line2,line3,line4) roi_info_pixel = (min_pix,min_line,max_pix-min_pix,max_line-min_line)
max_pix = max(pixel, pixel2, pixel3, pixel4) min_pix = min(pixel, pixel2, pixel3, pixel4) max_line = max(line, line2, line3, line4) min_line = min(line, line2, line3, line4) roi_info_pixel = (min_pix, min_line, max_pix-min_pix, max_line-min_line)
def ROI_view_to_pixel(clayer,roi_info): [pixel,line] = clayer.view_to_pixel(roi_info[0],roi_info[1]) [pixel2,line2] = clayer.view_to_pixel(roi_info[0]+roi_info[2], roi_info[1]+roi_info[3]) [pixel3,line3] = clayer.view_to_pixel(roi_info[0], roi_info[1]+roi_info[3]) [pixel4,line4] = clayer.view_to_pixel(roi_info[0]+roi_...
18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6525, 45, 67, 1945, 67, 869, 67, 11743, 12, 830, 1773, 16, 303, 77, 67, 1376, 4672, 225, 306, 11743, 16, 1369, 65, 273, 927, 1773, 18, 1945, 67, 869, 67, 11743, 12, 303, 77, 67, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6525, 45, 67, 1945, 67, 869, 67, 11743, 12, 830, 1773, 16, 303, 77, 67, 1376, 4672, 225, 306, 11743, 16, 1369, 65, 273, 927, 1773, 18, 1945, 67, 869, 67, 11743, 12, 303, 77, 67, 13...
print 'class ' + self.python_name + ':' if doc[1]: print '\t' + build._safeQuotedString(doc[1])
stream = generator.file print >> stream, 'class ' + self.python_name + ':' if doc[1]: print >> stream, '\t' + build._safeQuotedString(doc[1])
def WriteEventSinkClassHeader(self, generator): generator.checkWriteEventBaseClass() doc = self.doc print 'class ' + self.python_name + ':' if doc[1]: print '\t' + build._safeQuotedString(doc[1]) try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (progId) except p...
cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1133, 11326, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 1133, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1407, 273, 4456, 18, 768, 1172, 1671, 1407, 16, 296, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1133, 11326, 797, 1864, 12, 2890, 16, 4456, 4672, 4456, 18, 1893, 3067, 1133, 2171, 797, 1435, 997, 273, 365, 18, 2434, 1407, 273, 4456, 18, 768, 1172, 1671, 1407, 16, 296, 1106, ...
self.assertEqual(utility, 'abc')
self.assertEqual(utility, negotiator)
def test_setup_registry_locale_negotiator(self): from repoze.bfg.registry import Registry from repoze.bfg.interfaces import ILocaleNegotiator reg = Registry() config = self._makeOne(reg) config.setup_registry(locale_negotiator='abc') utility = reg.getUtility(ILocaleNegotiator) self.assertEqual(utility, 'abc')
b474b5af1069c24384343766c8bfb6768a8a9520 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/b474b5af1069c24384343766c8bfb6768a8a9520/test_configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8401, 67, 9893, 67, 6339, 67, 14518, 352, 10620, 12, 2890, 4672, 628, 3538, 8489, 18, 70, 2137, 18, 9893, 1930, 5438, 628, 3538, 8489, 18, 70, 2137, 18, 15898, 1930, 467, 391...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8401, 67, 9893, 67, 6339, 67, 14518, 352, 10620, 12, 2890, 4672, 628, 3538, 8489, 18, 70, 2137, 18, 9893, 1930, 5438, 628, 3538, 8489, 18, 70, 2137, 18, 15898, 1930, 467, 391...
while not is_all_white(line):
while lineno > 0 and not is_all_white(line):
def find_paragraph(text, mark): lineno, col = map(int, string.split(mark, ".")) line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) while is_all_white(line): lineno = lineno + 1 line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) first_lineno = lineno while not is_all_white(line): lineno = lineno + 1 line =...
e911c3e20cfa324e95f49d033cfe636543cce8cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e911c3e20cfa324e95f49d033cfe636543cce8cb/FormatParagraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 22445, 12, 955, 16, 2267, 4672, 7586, 16, 645, 273, 852, 12, 474, 16, 533, 18, 4939, 12, 3355, 16, 4585, 3719, 980, 273, 977, 18, 588, 27188, 72, 18, 20, 6, 738, 7586, 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, 1104, 67, 22445, 12, 955, 16, 2267, 4672, 7586, 16, 645, 273, 852, 12, 474, 16, 533, 18, 4939, 12, 3355, 16, 4585, 3719, 980, 273, 977, 18, 588, 27188, 72, 18, 20, 6, 738, 7586, 16...
"""makeDefaultPipe(self)
"""
def makeDefaultPipe(self): """makeDefaultPipe(self) Creates the default GraphicsPipe, which will be used to make windows unless otherwise specified. """ assert(self.pipe == None) selection = GraphicsPipeSelection.getGlobalPtr() selection.printPipeTypes() self.pipe = selection.makeDefaultPipe() if not self.pipe: self.no...
3da47160ef62603fc6912942626f3bdc26b60c19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/3da47160ef62603fc6912942626f3bdc26b60c19/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1868, 11546, 12, 2890, 4672, 3536, 10210, 326, 805, 16830, 11546, 16, 1492, 903, 506, 1399, 358, 1221, 9965, 3308, 3541, 1269, 18, 3536, 1815, 12, 2890, 18, 14772, 422, 599, 13, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1868, 11546, 12, 2890, 4672, 3536, 10210, 326, 805, 16830, 11546, 16, 1492, 903, 506, 1399, 358, 1221, 9965, 3308, 3541, 1269, 18, 3536, 1815, 12, 2890, 18, 14772, 422, 599, 13, 44...
new_password='test12', name='NewName', lastname='NewLastname', email=new_email,)) print response
new_password=old_password, password='', name=old_name, lastname=old_lastname, email=old_email,)) response.follow() assert 'Your account was updated succesfully' in response.session['flash'][0][1], 'no flash message about success of change' user = self.sa.query(User).filter(User.username == 'test_admin').one() assert u...
def test_my_account_update_own_email_ok(self): self.log_user()
fa8f0845743b852ba8efb7fa9809a21b82bba509 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/fa8f0845743b852ba8efb7fa9809a21b82bba509/test_admin_settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4811, 67, 4631, 67, 2725, 67, 995, 67, 3652, 67, 601, 12, 2890, 4672, 365, 18, 1330, 67, 1355, 1435, 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, 1842, 67, 4811, 67, 4631, 67, 2725, 67, 995, 67, 3652, 67, 601, 12, 2890, 4672, 365, 18, 1330, 67, 1355, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Loads event properties from a Jokosher 0.1 XML node and saves then to the given self object.
Loads event properties from a Jokosher 0.1 XML node and saves then to the given self object. Parameters: node -- XML node object from which to extract event properties.
def LoadEventFromZPO(self, node): """ Loads event properties from a Jokosher 0.1 XML node and saves then to the given self object. """ params = node.getElementsByTagName("Parameters")[0] LoadParametersFromXML(self, params) try: xmlPoints = node.getElementsByTagName("FadePoints")[0] except IndexError: Globals.debug("Mi...
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 1133, 1265, 62, 2419, 12, 2890, 16, 756, 4672, 3536, 4444, 87, 871, 1790, 628, 279, 804, 601, 538, 1614, 374, 18, 21, 3167, 756, 471, 14649, 1508, 358, 326, 864, 365, 733, 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, 4444, 1133, 1265, 62, 2419, 12, 2890, 16, 756, 4672, 3536, 4444, 87, 871, 1790, 628, 279, 804, 601, 538, 1614, 374, 18, 21, 3167, 756, 471, 14649, 1508, 358, 326, 864, 365, 733, 18, ...
class Version(MMSQLObject):
class Version(SQLObject): class sqlmeta: cacheValues = False
def destroySelf(self): for v in self.versions: v.destroySelf() for c in self.categories: c.destroySelf() SQLObject.destroySelf(self)
ec0d40658f0447775d65e70acc1cb8593a9f2027 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/ec0d40658f0447775d65e70acc1cb8593a9f2027/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 10084, 12, 2890, 4672, 364, 331, 316, 365, 18, 10169, 30, 331, 18, 11662, 10084, 1435, 364, 276, 316, 365, 18, 8995, 30, 276, 18, 11662, 10084, 1435, 3063, 921, 18, 11662, 10084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5546, 10084, 12, 2890, 4672, 364, 331, 316, 365, 18, 10169, 30, 331, 18, 11662, 10084, 1435, 364, 276, 316, 365, 18, 8995, 30, 276, 18, 11662, 10084, 1435, 3063, 921, 18, 11662, 10084, ...
'order_start': bundlepatch.order,
'order_start': bundlepatch.patch.id,
def testBundleReorder(self): bundlepatch = BundlePatch.objects.get(bundle = self.bundle, patch = self.patches[0])
fc58a911d4a43d6e0b06a1bd2e397e5448a591a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7754/fc58a911d4a43d6e0b06a1bd2e397e5448a591a7/bundles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3405, 426, 1019, 12, 2890, 4672, 3440, 2272, 273, 8539, 7332, 18, 6911, 18, 588, 12, 9991, 273, 365, 18, 9991, 16, 4729, 273, 365, 18, 30278, 63, 20, 5717, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3405, 426, 1019, 12, 2890, 4672, 3440, 2272, 273, 8539, 7332, 18, 6911, 18, 588, 12, 9991, 273, 365, 18, 9991, 16, 4729, 273, 365, 18, 30278, 63, 20, 5717, 2, -100, -100, -100, ...
print repr(val)
print "repr CONST_Double", repr(val)
def _pretty_const_type_val(typecode, val): if typecode == CONST_Utf8: typestr = "Asciz" val = repr(val)[1:-1] elif typecode == CONST_Integer: typestr = "int" elif typecode == CONST_Float: typestr = "float" val = "%ff" % val elif typecode == CONST_Long: typestr = "long" val = "%il" % val elif typecode == CONST_Double: ...
a25b62097feafddb9504733c1711a72703eda744 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11507/a25b62097feafddb9504733c1711a72703eda744/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19073, 67, 10248, 67, 723, 67, 1125, 12, 723, 710, 16, 1244, 4672, 225, 309, 618, 710, 422, 23399, 67, 15230, 28, 30, 1953, 313, 273, 315, 13665, 452, 6, 1244, 273, 8480, 12, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19073, 67, 10248, 67, 723, 67, 1125, 12, 723, 710, 16, 1244, 4672, 225, 309, 618, 710, 422, 23399, 67, 15230, 28, 30, 1953, 313, 273, 315, 13665, 452, 6, 1244, 273, 8480, 12, 11...
range = abs(upper - lower) if range == 0.:
rng = abs(upper - lower) if rng == 0.:
def auto_ticks(data_bounds, bounds_info = default_bounds): """ Find locations for axis tick marks. Calculate the location for tick marks on an axis. data_bounds is a sequence of 2 numbers specifying the maximum and minimum values of the data along this axis. bounds_info is a sequence of 3 values that specify how the a...
35ea2c2d87fbbfafca1db7236ceb79a8d525d834 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/35ea2c2d87fbbfafca1db7236ceb79a8d525d834/plot_utility.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3656, 67, 11767, 12, 892, 67, 10576, 16, 4972, 67, 1376, 273, 805, 67, 10576, 4672, 3536, 4163, 7838, 364, 2654, 4024, 13999, 18, 225, 9029, 326, 2117, 364, 4024, 13999, 603, 392, 2654, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3656, 67, 11767, 12, 892, 67, 10576, 16, 4972, 67, 1376, 273, 805, 67, 10576, 4672, 3536, 4163, 7838, 364, 2654, 4024, 13999, 18, 225, 9029, 326, 2117, 364, 4024, 13999, 603, 392, 2654, ...
STRING '"ABC"' (1, 13) (1, 19) >>> dump_tokens("x = r'abc' + r'ABC' + R'ABC' + R'ABC'") NAME 'x' (1, 0) (1, 1) OP '=' (1, 2) (1, 3) STRING "r'abc'" (1, 4) (1, 11) OP '+' (1, 12) (1, 13) STRING "r'ABC'" (1, 14) (1, 21) OP '+' ...
STRING "r'ABC'" (1, 13) (1, 19) OP '+' (1, 20) (1, 21) STRING "R'ABC'" (1, 22) (1, 28) OP '+' (1, 29) (1, 30) STRING "R'ABC'" (1, 31) (1, 37)
... " def y(m): # A whitespace after the colon\\n"
1fbae9878cfa20d661d49e29e47c6085f32923a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1fbae9878cfa20d661d49e29e47c6085f32923a3/test_tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
res = self.getFile(filesToGet.keys(),destDirectory) if not res['OK']: gLogger.error("SRM2Storage.__getDir: Failed to get files from storage.",res['Message'])
res = self.getFile( filesToGet.keys(), destDirectory ) if not res['OK']: gLogger.error( "SRM2Storage.__getDir: Failed to get files from storage.", res['Message'] )
def __getDir(self,srcDirectory,destDirectory): """ Black magic contained within... """ filesGot = 0 sizeGot = 0
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1621, 12, 2890, 16, 4816, 2853, 16, 10488, 2853, 4672, 3536, 22467, 8146, 7542, 3470, 2777, 3536, 1390, 15617, 273, 374, 963, 15617, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1621, 12, 2890, 16, 4816, 2853, 16, 10488, 2853, 4672, 3536, 22467, 8146, 7542, 3470, 2777, 3536, 1390, 15617, 273, 374, 963, 15617, 273, 374, 2, -100, -100, -100, -100, -100, ...
asyncore.loop(timeout=1, use_poll=True)
asyncore.loop(timeout=1, use_poll=hasattr(asyncore.select, 'poll'))
def serve_forever(self): log("Serving FTP on %s:%s." %self.socket.getsockname()) # here we try to use poll(), if it exists, else we'll use select() asyncore.loop(timeout=1, use_poll=True)
fdb9301d13970cb814884ba8cabdf3483363ef16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/fdb9301d13970cb814884ba8cabdf3483363ef16/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 613, 2932, 25721, 19324, 603, 738, 87, 5319, 87, 1199, 738, 2890, 18, 7814, 18, 14665, 975, 529, 10756, 468, 2674, 732, 775, 358, 999, 7672, 9334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 67, 1405, 502, 12, 2890, 4672, 613, 2932, 25721, 19324, 603, 738, 87, 5319, 87, 1199, 738, 2890, 18, 7814, 18, 14665, 975, 529, 10756, 468, 2674, 732, 775, 358, 999, 7672, 9334, ...
g.add_vertex( stop_id1 )
g.add_vertex( "sta-%s"%stop_id1 )
def link_nearby_stops(g, gtfsdb, range=0.05, obstruction=1.4): """Adds Street links of length obstruction*dist(A,B) directly between all station pairs closer than <range>""" print "Linking nearby stops..." for stop_id1, stop_name1, lat1, lon1 in gtfsdb.stops(): g.add_vertex( stop_id1 ) for stop_id2, stop_name2, lat2...
06c546e70e25fa3067e1a5638a10976c8034901b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10974/06c546e70e25fa3067e1a5638a10976c8034901b/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 27862, 1637, 67, 334, 4473, 12, 75, 16, 9879, 2556, 1966, 16, 1048, 33, 20, 18, 6260, 16, 3768, 4549, 33, 21, 18, 24, 4672, 3536, 3655, 19828, 4716, 434, 769, 3768, 4549, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 27862, 1637, 67, 334, 4473, 12, 75, 16, 9879, 2556, 1966, 16, 1048, 33, 20, 18, 6260, 16, 3768, 4549, 33, 21, 18, 24, 4672, 3536, 3655, 19828, 4716, 434, 769, 3768, 4549, 1...
account_id = [form['Account_list']]
account_id =data['form']['chart_account_id']
def get_data(self, form): cr, uid = self.cr, self.uid db_pool = pooler.get_pool(self.cr.dbname)
23f3f286dd55d8bb58aa9afdf315b22bfafe76e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/23f3f286dd55d8bb58aa9afdf315b22bfafe76e0/report_pl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 12, 2890, 16, 646, 4672, 4422, 16, 4555, 273, 365, 18, 3353, 16, 365, 18, 1911, 1319, 67, 6011, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 20979, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 892, 12, 2890, 16, 646, 4672, 4422, 16, 4555, 273, 365, 18, 3353, 16, 365, 18, 1911, 1319, 67, 6011, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 20979, 13, ...
print " <3> Scaled Stop Value and End Index Value:", scaled_stop_value, " : ",end_index_value
print "Scaled Stop Value and End Index Value:", scaled_stop_value, " : ",end_index_value
def find_start_stop_index(data_dict,col_name,start_data,stop_data,start_comp,stop_comp,ind_scale): #This function is used to find index numbers for start and stop points in plotting and metric values. if diagnostic_level >= 2: print "\n*** Find Start/End Indexes for Independent Data Column ***" if diagnostic_level >= 3...
f66ca75013a32a9d59d8e58dec0baa78eda49b79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/f66ca75013a32a9d59d8e58dec0baa78eda49b79/Validation_Data_Processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1937, 67, 5681, 67, 1615, 12, 892, 67, 1576, 16, 1293, 67, 529, 16, 1937, 67, 892, 16, 5681, 67, 892, 16, 1937, 67, 2919, 16, 5681, 67, 2919, 16, 728, 67, 5864, 4672, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1937, 67, 5681, 67, 1615, 12, 892, 67, 1576, 16, 1293, 67, 529, 16, 1937, 67, 892, 16, 5681, 67, 892, 16, 1937, 67, 2919, 16, 5681, 67, 2919, 16, 728, 67, 5864, 4672, 468...
while len(lines) and string.strip(lines[-1]) == '':
while len(lines) and lines[-1].strip() == '':
def _trimEmptyLines(lines): #don't want the first or last to be empty while len(lines) and string.strip(lines[0]) == '': lines = lines[1:] while len(lines) and string.strip(lines[-1]) == '': lines = lines[:-1] return lines
b31675967612f2a66f2d74d947672247bcc3b9da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/b31675967612f2a66f2d74d947672247bcc3b9da/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5290, 1921, 5763, 12, 3548, 4672, 468, 19752, 1404, 2545, 326, 1122, 578, 1142, 358, 506, 1008, 1323, 562, 12, 3548, 13, 471, 533, 18, 6406, 12, 3548, 63, 20, 5717, 422, 875, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5290, 1921, 5763, 12, 3548, 4672, 468, 19752, 1404, 2545, 326, 1122, 578, 1142, 358, 506, 1008, 1323, 562, 12, 3548, 13, 471, 533, 18, 6406, 12, 3548, 63, 20, 5717, 422, 875, 30, ...
class ForkingHTTPServer(SocketServer.ForkingMixIn, StoppableHTTPServer): """This is a specialization of of StoppableHTTPServer which serves each request in a separate process""" pass class ForkingHTTPSServer(SocketServer.ForkingMixIn, HTTPSServer): """This is a specialization of of HTTPSServer which serves each reque...
def handshake(self, tlsConnection): """Creates the SSL connection.""" try: tlsConnection.handshakeServer(certChain=self.cert_chain, privateKey=self.private_key, sessionCache=self.session_cache) tlsConnection.ignoreAbruptClose = True return True except tlslite.api.TLSError, error: print "Handshake failure:", str(error) ...
e70c6a8ce0d7a9e426c7247f5b771bed1b9eae4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e70c6a8ce0d7a9e426c7247f5b771bed1b9eae4a/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11942, 12, 2890, 16, 6871, 1952, 4672, 3536, 2729, 326, 7419, 1459, 12123, 775, 30, 6871, 1952, 18, 2349, 7478, 2081, 12, 7593, 3893, 33, 2890, 18, 7593, 67, 5639, 16, 11896, 33, 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, 11942, 12, 2890, 16, 6871, 1952, 4672, 3536, 2729, 326, 7419, 1459, 12123, 775, 30, 6871, 1952, 18, 2349, 7478, 2081, 12, 7593, 3893, 33, 2890, 18, 7593, 67, 5639, 16, 11896, 33, 2890, ...
try:
def handlerB(self, *args): self.b_called = True if test_support.verbose: print "handlerB invoked", args raise HandlerBCalled(*args)
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-...
99d3744d692f422a8786422bd8080f3980cb2b40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/99d3744d692f422a8786422bd8080f3980cb2b40/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
self.button.set_sensitive(False)
def _do_sockets(self): self.button.set_sensitive(False) self._logger.debug("initiating socket_test") dt = arange.measure_dt_seq(self.hellotube, self.initiating, self._change_button_label) x = dt * arange.speed_of_sound() - arange.OLPC_OFFSET mes = gettext("The distance is %(num).2f meters.\n") % {'num': x} self._logger...
f557fa169d967f5becefce729729b08ae970a948 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/121/f557fa169d967f5becefce729729b08ae970a948/activity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 7814, 87, 12, 2890, 4672, 365, 6315, 4901, 18, 4148, 2932, 2738, 22906, 2987, 67, 3813, 7923, 3681, 273, 9660, 18, 10772, 67, 7510, 67, 5436, 12, 2890, 18, 76, 1165, 352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 67, 7814, 87, 12, 2890, 4672, 365, 6315, 4901, 18, 4148, 2932, 2738, 22906, 2987, 67, 3813, 7923, 3681, 273, 9660, 18, 10772, 67, 7510, 67, 5436, 12, 2890, 18, 76, 1165, 352...
result = ''
def parse_font_spec(self, font_spec): """ parse a font specification
6cfe0b0ebc1d4511b611dddafdec6dc059fe54b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11090/6cfe0b0ebc1d4511b611dddafdec6dc059fe54b2/pgufont.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5776, 67, 2793, 12, 2890, 16, 3512, 67, 2793, 4672, 3536, 1109, 279, 3512, 7490, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5776, 67, 2793, 12, 2890, 16, 3512, 67, 2793, 4672, 3536, 1109, 279, 3512, 7490, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
SIGNAL("valueChanged(double)"), self.changeYSpacingInGP)
SIGNAL("valueChanged(double)"), self.changeYSpacingInGP)
def connect_or_disconnect_signals(self, isConnect): """ Connect or disconnect widget signals sent to their slot methods. This can be overridden in subclasses. By default it does nothing. @param isConnect: If True the widget will send the signals to the slot method. @type isConnect: boolean """ #TODO: Fix for bug: When...
6ca1728879e65f379512b44ee2623ad89c7a92ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6ca1728879e65f379512b44ee2623ad89c7a92ac/PlanePropertyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
y = N.concatenate([y], 0)
y = N.concatenate([y], 0)
def rkdriver_withks(vstart, simtstart, ts, te, allks, h, derivs): """Driver function for classical Runge Kutta 4th Order method. Starting at x1 and proceeding to x2 in nstep number of steps. Copes with multiple start times for different ks if they are sorted in terms of starting time.""" #set_trace() #Make sure h is s...
ede0fa1f9ce0e31da96df4d3bdbee23f85ff024d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/ede0fa1f9ce0e31da96df4d3bdbee23f85ff024d/rk4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28603, 7407, 67, 1918, 7904, 12, 90, 1937, 16, 3142, 88, 1937, 16, 3742, 16, 6489, 16, 777, 7904, 16, 366, 16, 9630, 87, 4672, 3536, 4668, 445, 364, 667, 1706, 1939, 908, 1475, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28603, 7407, 67, 1918, 7904, 12, 90, 1937, 16, 3142, 88, 1937, 16, 3742, 16, 6489, 16, 777, 7904, 16, 366, 16, 9630, 87, 4672, 3536, 4668, 445, 364, 667, 1706, 1939, 908, 1475, 322, ...
self.assert_(msg.get_labels() == ['resent', 'foobar'])
self.assertEqual(msg.get_labels(), ['resent', 'foobar'])
def test_labels(self): # Get, set, join, and leave labels msg = mailbox.BabylMessage(_sample_message) self.assertEqual(msg.get_labels(), []) msg.set_labels(['foobar']) self.assertEqual(msg.get_labels(), ['foobar']) msg.set_labels([]) self.assertEqual(msg.get_labels(), []) msg.add_label('filed') self.assertEqual(msg.get...
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5336, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 3249, 1234, 273, 14187, 18, 38, 24383, 80, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5336, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 3249, 1234, 273, 14187, 18, 38, 24383, 80, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, ...
array.append(int(m.group(2), 16)) m = None
array.append(val) if i == high: m = None
def printTable(f, t): i = f while i <= t: c = array[i] print "0x%04x," % c, i = i + 1 if not i % 8: print "\n\t",
fa94fc6f77863e36f009e4fa867c60b51eeb19df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/fa94fc6f77863e36f009e4fa867c60b51eeb19df/generate_table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1388, 12, 74, 16, 268, 4672, 277, 273, 284, 1323, 277, 1648, 268, 30, 276, 273, 526, 63, 77, 65, 1172, 315, 20, 92, 9, 3028, 92, 10837, 738, 276, 16, 277, 273, 277, 397, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1388, 12, 74, 16, 268, 4672, 277, 273, 284, 1323, 277, 1648, 268, 30, 276, 273, 526, 63, 77, 65, 1172, 315, 20, 92, 9, 3028, 92, 10837, 738, 276, 16, 277, 273, 277, 397, 404,...
max(planning.id)+COALESCE(users.id,1) AS id,
planning.id::varchar(32) || '-' || COALESCE(users.id,0)::varchar(32) AS id,
def init(self, cr): cr.execute(""" CREATE OR REPLACE VIEW report_account_analytic_planning_user AS ( SELECT planning.id AS planning_id, max(planning.id)+COALESCE(users.id,1) AS id, planning.business_days, users.id AS user_id, (SELECT sum(line1.amount_in_base_uom) FROM report_account_analytic_planning_line line1 WHERE ...
361eeda9190b4b162b3658b7a7b4d1cd1cfc90e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/361eeda9190b4b162b3658b7a7b4d1cd1cfc90e4/report_analytic_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 13278, 4869, 23679, 21794, 2605, 67, 4631, 67, 304, 7834, 335, 67, 412, 10903, 67, 1355, 5355, 261, 9111, 886, 10903, 18, 350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 4422, 18, 8837, 2932, 3660, 13278, 4869, 23679, 21794, 2605, 67, 4631, 67, 304, 7834, 335, 67, 412, 10903, 67, 1355, 5355, 261, 9111, 886, 10903, 18, 350,...
print(current_thread().get_name(), 'died from', e)
print(current_thread().name, 'died from', e)
def readerThread(self, *args, **kwargs): try: self._readerThread(*args, **kwargs) except db.DBLockDeadlockError as e: if verbose: print(current_thread().get_name(), 'died from', e) else: if verbose: print(current_thread().get_name(), "finished.")
8215b77b3c5060e898e5fd23b1340edcc225871c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8215b77b3c5060e898e5fd23b1340edcc225871c/test_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 3830, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 365, 6315, 10530, 3830, 30857, 1968, 16, 2826, 4333, 13, 1335, 1319, 18, 2290, 2531, 11852, 739, 668, 487, 425, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2949, 3830, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 365, 6315, 10530, 3830, 30857, 1968, 16, 2826, 4333, 13, 1335, 1319, 18, 2290, 2531, 11852, 739, 668, 487, 425, 30, ...
return eval('%s_matrix'%format)(res)
return res
def __rsub__(self, other): # other - self format = self.getformat() csc = self.tocsc() res = csc.__rsub__(other) return eval('%s_matrix'%format)(res)
b14552c4a5780327bf9ca40b82d78bbf0d40722e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b14552c4a5780327bf9ca40b82d78bbf0d40722e/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 86, 1717, 972, 12, 2890, 16, 1308, 4672, 468, 1308, 300, 365, 740, 273, 365, 18, 588, 2139, 1435, 276, 1017, 273, 365, 18, 1391, 1017, 1435, 400, 273, 276, 1017, 16186, 86, 1717,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 86, 1717, 972, 12, 2890, 16, 1308, 4672, 468, 1308, 300, 365, 740, 273, 365, 18, 588, 2139, 1435, 276, 1017, 273, 365, 18, 1391, 1017, 1435, 400, 273, 276, 1017, 16186, 86, 1717,...
s,o=exec_command('python -c "raise \'Ignore me.\'"')
s,o=exec_command('python -c "raise \'Ignore me.\'"',**kws)
def test_posix(): s,o=exec_command("echo Hello") assert s==0 and o=='Hello',(s,o) s,o=exec_command('echo $AAA') assert s==0 and o=='',(s,o) s,o=exec_command('echo "$AAA"',AAA='Tere') assert s==0 and o=='Tere',(s,o) s,o=exec_command('echo "$AAA"') assert s==0 and o=='',(s,o) os.environ['BBB'] = 'Hi' s,o=exec_comman...
59c6f7c8809104ffcc97e2083529ae4111b41755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/59c6f7c8809104ffcc97e2083529ae4111b41755/exec_command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 24463, 13332, 272, 16, 83, 33, 4177, 67, 3076, 2932, 12946, 20889, 7923, 1815, 272, 631, 20, 471, 320, 18920, 18601, 2187, 12, 87, 16, 83, 13, 225, 272, 16, 83, 33, 4177, 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, 1842, 67, 24463, 13332, 272, 16, 83, 33, 4177, 67, 3076, 2932, 12946, 20889, 7923, 1815, 272, 631, 20, 471, 320, 18920, 18601, 2187, 12, 87, 16, 83, 13, 225, 272, 16, 83, 33, 4177, 6...
that interacts correctly with objects requiring."""
that interacts correctly with objects providing OFS.interfaces.ITraversable. """
def boboTraverseAwareSimpleTraverse(object, path_items, econtext): """A slightly modified version of zope.tales.expressions.simpleTraverse that interacts correctly with objects requiring.""" request = getattr(econtext, 'request', None) path_items = list(path_items) path_items.reverse() while path_items: name = path_it...
5990331e8c0a5b89e0c1c568882a6a35a0e85041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/5990331e8c0a5b89e0c1c568882a6a35a0e85041/Expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 800, 1075, 29654, 10155, 5784, 29654, 12, 1612, 16, 589, 67, 3319, 16, 425, 2472, 4672, 3536, 37, 21980, 4358, 1177, 434, 998, 1306, 18, 88, 5408, 18, 21480, 18, 9647, 29654, 716, 16592,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 800, 1075, 29654, 10155, 5784, 29654, 12, 1612, 16, 589, 67, 3319, 16, 425, 2472, 4672, 3536, 37, 21980, 4358, 1177, 434, 998, 1306, 18, 88, 5408, 18, 21480, 18, 9647, 29654, 716, 16592,...
entry_text = entry_text.strip() if not entry_text:
entry_text = [entry_text.strip()] if not entry_text[0]:
def on_addtag_confirm(self, widget): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") apply_to_subtasks = self.builder.get_object("apply_to_subtasks") addtag_error = False entry_text = tag_entry.get_text() entry_text = entry_text.strip() # Complain if the text entry...
5f683520c3e9ef41f5ca9e6a2b406c4888173944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/5f683520c3e9ef41f5ca9e6a2b406c4888173944/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1289, 2692, 67, 10927, 12, 2890, 16, 3604, 4672, 1047, 67, 4099, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 2692, 67, 4099, 7923, 527, 2692, 67, 12730, 273, 365, 18, 9574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1289, 2692, 67, 10927, 12, 2890, 16, 3604, 4672, 1047, 67, 4099, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 2692, 67, 4099, 7923, 527, 2692, 67, 12730, 273, 365, 18, 9574, ...
attacker = None
attacker = self.clients.getByCID(-1)
def OnKill(self, action, data, match=None): # kill modes caracteristics : """ 1: MOD_WATER === exclusive attackers : , 1022(<world>), 0(<non-client>) 3: MOD_LAVA === exclusive attackers : , 1022(<world>), 0(<non-client>) 5: MOD_TELEFRAG --- normal kill line 6: MOD_FALLING === exclusive attackers : ,...
a7cdd846c38ba60afb7d28d0e97bf447776abde1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/a7cdd846c38ba60afb7d28d0e97bf447776abde1/iourt41.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 19045, 12, 2890, 16, 1301, 16, 501, 16, 845, 33, 7036, 4672, 468, 8673, 12382, 5926, 3946, 4287, 294, 3536, 404, 30, 1377, 8663, 67, 59, 13641, 757, 12060, 13843, 414, 294, 269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19045, 12, 2890, 16, 1301, 16, 501, 16, 845, 33, 7036, 4672, 468, 8673, 12382, 5926, 3946, 4287, 294, 3536, 404, 30, 1377, 8663, 67, 59, 13641, 757, 12060, 13843, 414, 294, 269, ...
Qd.PaintRect(rect)
Qd.PaintRect(_intRect(rect))
def click(self, point, modifiers): # what a mess... orgmouse = point[self._direction] halfgutter = self._gutter / 2 l, t, r, b = self._bounds if self._direction: begin, end = t, b else: begin, end = l, r i = self.findgutter(orgmouse, begin, end) if i is None: return pos = orgpos = begin + (end - begin) * self._gutter...
61227bf043678283224571debae007a391d823ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/61227bf043678283224571debae007a391d823ce/Wbase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4682, 12, 2890, 16, 1634, 16, 10429, 4672, 468, 4121, 279, 12755, 2777, 2358, 11697, 273, 1634, 63, 2890, 6315, 9855, 65, 19514, 2137, 18220, 273, 365, 6315, 75, 18220, 342, 576, 328, 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, 4682, 12, 2890, 16, 1634, 16, 10429, 4672, 468, 4121, 279, 12755, 2777, 2358, 11697, 273, 1634, 63, 2890, 6315, 9855, 65, 19514, 2137, 18220, 273, 365, 6315, 75, 18220, 342, 576, 328, 16...
return color
def convert_from_pyqt_color(obj, name, value): if isinstance(value, QtGui.QColor): return value.getRgbF() elif isinstance(value, Str): return color_table.get(value, transparent_color) elif type(value) is int: num = int(value) return ((num >> 16)/255.0, ((num>>8) & 0xFF)/255.0, (num & 0xFF)/255.0, 1.0) elif type(value) ...
4abde65ae7a4c388a0f39205038df442b7fdd089 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/4abde65ae7a4c388a0f39205038df442b7fdd089/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 12, 1...
logHandler = FileHandler(globalVars.appArgs.logFileName, mode="wt", encoding="UTF-8")
logHandler = FileHandler(globalVars.appArgs.logFileName, mode="wt")
def initialize(): """Initialize logging. This must be called before any logging can occur. @precondition: The command line arguments have been parsed into L{globalVars.appArgs}. """ global log logging.addLevelName(Logger.DEBUGWARNING, "DEBUGWARNING") logging.addLevelName(Logger.IO, "IO") if not globalVars.appArgs.logFi...
5895612f9644aa6202bfd32c78afd3035fdc5869 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/5895612f9644aa6202bfd32c78afd3035fdc5869/logHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 13332, 3536, 7520, 2907, 18, 1220, 1297, 506, 2566, 1865, 1281, 2907, 848, 3334, 18, 632, 1484, 4175, 30, 1021, 1296, 980, 1775, 1240, 2118, 2707, 1368, 511, 95, 6347, 5555, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 13332, 3536, 7520, 2907, 18, 1220, 1297, 506, 2566, 1865, 1281, 2907, 848, 3334, 18, 632, 1484, 4175, 30, 1021, 1296, 980, 1775, 1240, 2118, 2707, 1368, 511, 95, 6347, 5555, 18, 29...
wait_for_pid(self.proc.pid)
def test_uid(self): self.proc = subprocess.Popen(PYTHON, stdout=DEVNULL, stderr=DEVNULL) wait_for_pid(self.proc.pid) uid = psutil.Process(self.proc.pid).uid if hasattr(os, 'getuid'): self.assertEqual(uid, os.getuid()) else: # On those platforms where UID doesn't make sense (Windows) # we expect it to be -1 self.assertE...
32b801095b8c7f65efeff8217bb6a2c05128bc00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/32b801095b8c7f65efeff8217bb6a2c05128bc00/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1911, 12, 2890, 4672, 365, 18, 9381, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 15301, 8560, 16, 4514, 33, 15301, 8560, 13, 4555, 273, 27024, 18, 2227, 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, 1842, 67, 1911, 12, 2890, 4672, 365, 18, 9381, 273, 6652, 18, 52, 3190, 12, 16235, 20131, 16, 3909, 33, 15301, 8560, 16, 4514, 33, 15301, 8560, 13, 4555, 273, 27024, 18, 2227, 12, 2890...
def gg_variable_changed(event_var): if event_var['cvarname'] == 'gg_deathmatch': addonOptions['enabled'] = int(gungame.getGunGameVar('gg_deathmatch')) if event_var['cvarname'] == 'gg_map_obj' and int(event_var['newvalue']) < 3: gungame.setGunGameVar('gg_turbo', 3) es.msg(' if event_var['cvarname'] == 'gg_turbo' and...
def getGameDir(dir): # Get the gungame addon path addonPath = es.getAddonPath('gungame') # Split using the path seperator parts = addonPath.split('\\') # Pop the last 2 items in the list parts.pop() parts.pop() # Append cfg then join parts.append(dir) return string.join(parts, '\\')
aaada1a48512cb171ec289d48ab223a81a62436f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/aaada1a48512cb171ec289d48ab223a81a62436f/gg_deathmatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7162, 339, 1621, 12, 1214, 4672, 468, 968, 326, 31475, 13957, 15466, 589, 15466, 743, 273, 5001, 18, 588, 27901, 743, 2668, 19339, 13957, 6134, 225, 468, 5385, 1450, 326, 589, 22282, 639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7162, 339, 1621, 12, 1214, 4672, 468, 968, 326, 31475, 13957, 15466, 589, 15466, 743, 273, 5001, 18, 588, 27901, 743, 2668, 19339, 13957, 6134, 225, 468, 5385, 1450, 326, 589, 22282, 639, ...
return True except RuntimeError: return False
Player.getRootNode().appendChild(node) try: self.start(None, []) g_IsMaskSupported = True except RuntimeError: g_IsMaskSupported = False return g_IsMaskSupported
def _isMaskSupported(self): try: node = Player.createNode("image", {"href": "rgb24-65x65.png", "maskhref": "mask.png"}) return True except RuntimeError: return False
c7e472b03f82ed35de156a15ffd5e89ef87ab9db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/c7e472b03f82ed35de156a15ffd5e89ef87ab9db/ImageTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 5796, 7223, 12, 2890, 4672, 775, 30, 756, 273, 19185, 18, 2640, 907, 2932, 2730, 3113, 12528, 7547, 6877, 315, 10948, 3247, 17, 9222, 92, 9222, 18, 6446, 3113, 315, 4455, 7547,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 5796, 7223, 12, 2890, 4672, 775, 30, 756, 273, 19185, 18, 2640, 907, 2932, 2730, 3113, 12528, 7547, 6877, 315, 10948, 3247, 17, 9222, 92, 9222, 18, 6446, 3113, 315, 4455, 7547,...