rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
data = self.tagByName(tag)
data = self.hdr[tag]
def listTagByName(self, tag): """take a tag that should be a list and make sure it is one""" lst = [] data = self.tagByName(tag) if data is None: pass if type(data) is types.ListType: lst.extend(data) else: lst.append(data) return lst
72df9f312b4eb58908e08ce23106dc063ee9e2f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9557/72df9f312b4eb58908e08ce23106dc063ee9e2f3/dumpMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 1805, 5911, 12, 2890, 16, 1047, 4672, 3536, 22188, 279, 1047, 716, 1410, 506, 279, 666, 471, 1221, 3071, 518, 353, 1245, 8395, 9441, 273, 5378, 501, 273, 365, 18, 16587, 63, 2692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 1805, 5911, 12, 2890, 16, 1047, 4672, 3536, 22188, 279, 1047, 716, 1410, 506, 279, 666, 471, 1221, 3071, 518, 353, 1245, 8395, 9441, 273, 5378, 501, 273, 365, 18, 16587, 63, 2692, ...
log.warn('Server returned error %d: %s', e.code, e.msg)
log.warning('Server returned error %d: %s', e.code, e.msg)
def request(self, method, url, body=None, headers=None): log.debug('Sending %s request to %r', body and 'POST' or 'GET', url) req = urllib2.Request(url, body, headers or {}) try: return self.opener.open(req) except urllib2.HTTPError, e: if e.code >= 300: log.warn('Server returned error %d: %s', e.code, e.msg) raise ret...
e4122dbc45005358a1a0af81fd884741e494cf6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/e4122dbc45005358a1a0af81fd884741e494cf6f/slave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 33, 7036, 4672, 613, 18, 4148, 2668, 16322, 738, 87, 590, 358, 738, 86, 2187, 1417, 471, 296, 3798, 11, 578, 296, 3264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 33, 7036, 4672, 613, 18, 4148, 2668, 16322, 738, 87, 590, 358, 738, 86, 2187, 1417, 471, 296, 3798, 11, 578, 296, 3264,...
sprite = property(_get_sprite, _set_sprite, None,
sprite = property(_get_sprite, _set_sprite, None,
def _set_sprite(self, sprite): self.add_internal(sprite) sprite.add_internal(self) return sprite
d9760f3e4782abb02dd98080337626eefdad67ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d9760f3e4782abb02dd98080337626eefdad67ee/sprite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 1752, 796, 12, 2890, 16, 16839, 4672, 365, 18, 1289, 67, 7236, 12, 1752, 796, 13, 16839, 18, 1289, 67, 7236, 12, 2890, 13, 327, 16839, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 1752, 796, 12, 2890, 16, 16839, 4672, 365, 18, 1289, 67, 7236, 12, 1752, 796, 13, 16839, 18, 1289, 67, 7236, 12, 2890, 13, 327, 16839, 2, -100, -100, -100, -100, -100, ...
parser.add_option("-p", "--port", dest="port", help="port, a number (default 0) or a device name (deprecated option)", default=None) parser.add_option("-b", "--baud", dest="baudrate", action="store", type='int', help="set baudrate, default 9600", default=9600) parser.add_option("", "--parity", dest="parity", action="...
parser.add_option("-q", "--quiet", dest = "quiet", action = "store_true", help = "suppress non error messages", default = False ) parser.add_option("--spy", dest = "spy", action = "store_true", help = "peek at the communication and print all data to the console", default = False ) group = optparse.OptionGroup(parser...
def stop(self): """Stop copying""" if self.alive: self.alive = False self.thread_read.join()
eb345d44f6beabbef6486a85e9864003536e9fc3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/eb345d44f6beabbef6486a85e9864003536e9fc3/tcp_serial_redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 4947, 8933, 8395, 309, 365, 18, 11462, 30, 365, 18, 11462, 273, 1083, 365, 18, 5930, 67, 896, 18, 5701, 1435, 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, 2132, 12, 2890, 4672, 3536, 4947, 8933, 8395, 309, 365, 18, 11462, 30, 365, 18, 11462, 273, 1083, 365, 18, 5930, 67, 896, 18, 5701, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -...
print s
def doc_underline(self, s, expr=re.compile("_([%s0-9\s\.,\?\/]+)_" % letters).search):
b96890a7acf64d38af9140fbb7265781e506fd56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b96890a7acf64d38af9140fbb7265781e506fd56/ClassicDocumentClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 67, 9341, 1369, 12, 2890, 16, 272, 16, 3065, 33, 266, 18, 11100, 2932, 67, 3816, 9, 87, 20, 17, 29, 64, 87, 5834, 17211, 35, 6700, 7941, 9548, 738, 13768, 2934, 3072, 4672, 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, 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, 997, 67, 9341, 1369, 12, 2890, 16, 272, 16, 3065, 33, 266, 18, 11100, 2932, 67, 3816, 9, 87, 20, 17, 29, 64, 87, 5834, 17211, 35, 6700, 7941, 9548, 738, 13768, 2934, 3072, 4672, 2, ...
if localhost_(host):
if not localhost_(host):
def start_backend(backend, host=None, port=None, adaptor=ControllerAdaptor_Backend_JSON, byef=None): conf = config.get_conf('beah-backend') host = host or conf.get('DEFAULT', 'INTERFACE') port = port or conf.get('DEFAULT', 'PORT') if os.name == 'posix': socket = conf.get('DEFAULT', 'SOCKET') # 0. check SOCKET_OPT (sock...
ee7ff8f9c4e01355955f5d5ecf93c3c85818326c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/ee7ff8f9c4e01355955f5d5ecf93c3c85818326c/twbackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 9993, 12, 9993, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 9087, 33, 2933, 29888, 67, 7172, 67, 2986, 16, 635, 10241, 33, 7036, 4672, 2195, 273, 642, 18, 588, 67, 3923, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 9993, 12, 9993, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 9087, 33, 2933, 29888, 67, 7172, 67, 2986, 16, 635, 10241, 33, 7036, 4672, 2195, 273, 642, 18, 588, 67, 3923, 266...
def reduce(self, f): """ Reduce an element modulo a standard basis for this ideal. This returns 0 if and only if the element is in this ideal. EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: I = (x^3 + y, y)*R sage: I.reduce(y) 0 sage: I.reduce(x^3) 0 sage: I.reduce(x - y) x sage: I = (y^2 - (x^3 + x))*R sage: ...
def reduce(self, f): """ Reduce an element modulo a standard basis for this ideal. This returns 0 if and only if the element is in this ideal. EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: I = (x^3 + y, y)*R sage: I.reduce(y) 0 sage: I.reduce(x^3) 0 sage: I.reduce(x - y) x
fa1155290f53e6aac94382b88d596576b7a8b37f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fa1155290f53e6aac94382b88d596576b7a8b37f/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 12, 2890, 16, 284, 4672, 3536, 24614, 392, 930, 26109, 279, 4529, 10853, 364, 333, 23349, 18, 1220, 1135, 374, 309, 471, 1338, 309, 326, 930, 353, 316, 333, 23349, 18, 225, 5675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 12, 2890, 16, 284, 4672, 3536, 24614, 392, 930, 26109, 279, 4529, 10853, 364, 333, 23349, 18, 1220, 1135, 374, 309, 471, 1338, 309, 326, 930, 353, 316, 333, 23349, 18, 225, 5675, ...
['editable', 'dropdown', 'fancy', 'options'], cnf, kw)
['editable', 'dropdown', 'fancy', 'options'], cnf, kw)
def __init__ (self, master=None, cnf={}, **kw): TixWidget.__init__(self, master, 'tixComboBox', ['editable', 'dropdown', 'fancy', 'options'], cnf, kw) self.subwidget_list['label'] = _dummyLabel(self, 'label') self.subwidget_list['entry'] = _dummyEntry(self, 'entry') self.subwidget_list['arrow'] = _dummyButton(self, 'ar...
9805b7904bac823d0eef38bb7e401191c68a5598 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9805b7904bac823d0eef38bb7e401191c68a5598/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 399, 697, 4609, 16186, 2738, 972, 12, 2890, 16, 4171, 16, 296, 88, 697, 22199, 2187, 10228, 19653, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 399, 697, 4609, 16186, 2738, 972, 12, 2890, 16, 4171, 16, 296, 88, 697, 22199, 2187, 10228, 19653, 218...
return self._bind(('bind', 'all'), sequence, func, add)
return self._bind(('bind', 'all'), sequence, func, add, 0)
def bind_all(self, sequence=None, func=None, add=None): return self._bind(('bind', 'all'), sequence, func, add)
48044b41c45fe4093db593d53822db0a1eb635ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/48044b41c45fe4093db593d53822db0a1eb635ae/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 454, 12, 2890, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 296, 454, 19899, 3102, 16, 1326, 16, 527, 13, 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, 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, 1993, 67, 454, 12, 2890, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 296, 454, 19899, 3102, 16, 1326, 16, 527, 13, 2,...
index = model.get_path(selected)[0] if index > 0: selection.select_path(index - 1)
if selected is None: selection.select_path(model[-1].path) else: index = model.get_path(selected)[0] if index > 0: selection.select_path(index - 1)
def __key_press_event_cb(self, entry, event): keyname = gtk.gdk.keyval_name(event.keyval)
054e27672d643e40e7c64e89e16e0cf2dbe6b8ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6905/054e27672d643e40e7c64e89e16e0cf2dbe6b8ec/webtoolbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 856, 67, 1028, 67, 2575, 67, 7358, 12, 2890, 16, 1241, 16, 871, 4672, 27567, 273, 22718, 18, 75, 2883, 18, 856, 1125, 67, 529, 12, 2575, 18, 856, 1125, 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, 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, 1001, 856, 67, 1028, 67, 2575, 67, 7358, 12, 2890, 16, 1241, 16, 871, 4672, 27567, 273, 22718, 18, 75, 2883, 18, 856, 1125, 67, 529, 12, 2575, 18, 856, 1125, 13, 2, -100, -100, -100,...
globals_ = {"__name__" : "__main__"}
globals_ = {"__name__" : "__main__", "__file__" : filename}
def _runscript(self, filename): # Start with fresh empty copy of globals and locals and tell the script # that it's being run as __main__ to avoid scripts being able to access # the pdb.py namespace. globals_ = {"__name__" : "__main__"} locals_ = globals_
50bbcc27e3e0e1bacb39eb9f553bcd68f9ef077a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/50bbcc27e3e0e1bacb39eb9f553bcd68f9ef077a/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 4263, 12, 2890, 16, 1544, 4672, 468, 3603, 598, 12186, 1008, 1610, 434, 10941, 471, 8985, 471, 9276, 326, 2728, 468, 716, 518, 1807, 3832, 1086, 487, 1001, 5254, 972, 358, 454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 4263, 12, 2890, 16, 1544, 4672, 468, 3603, 598, 12186, 1008, 1610, 434, 10941, 471, 8985, 471, 9276, 326, 2728, 468, 716, 518, 1807, 3832, 1086, 487, 1001, 5254, 972, 358, 454...
except 'Cancelled':
except Editor.CancelClose:
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 984, 14077, 7173, 12, 2890, 4672, 938, 273, 365, 18, 2284, 1103, 273, 938, 18, 9177, 18, 2848, 81, 67, 2472, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 984, 14077, 7173, 12, 2890, 4672, 938, 273, 365, 18, 2284, 1103, 273, 938, 18, 9177, 18, 2848, 81, 67, 2472, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
'editable': self.is_admin() or ( message.get_property('owner') == username),
'editable': ac.is_allowed_to_edit_post(user, message),
def get_message_namespace(self): context = get_context() user = context.user username = user and user.name namespace = []
3b838d86710a06bfa99bd20af2526ac017d5816d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/3b838d86710a06bfa99bd20af2526ac017d5816d/forum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2150, 67, 4937, 12, 2890, 4672, 819, 273, 336, 67, 2472, 1435, 729, 273, 819, 18, 1355, 2718, 273, 729, 471, 729, 18, 529, 1981, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2150, 67, 4937, 12, 2890, 4672, 819, 273, 336, 67, 2472, 1435, 729, 273, 819, 18, 1355, 2718, 273, 729, 471, 729, 18, 529, 1981, 273, 5378, 2, -100, -100, -100, -100, -100, ...
bytesused = bytes - self.bytes
bytesused = usedbytes - self.bytes
def update(self, runningmaxrate, runningmaxi2rate, usedbytes, usedi2bytes, data): """ Update byte counts and check if byte limits have been exceeded. """ # Query Node Manager for max rate overrides self.updateSliceAttributes(data) # Prepare message parameters from the template message = "" params = {'slice': self.nam...
31d539b2c9da0ba5674fe97271ea96648dbf4254 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6995/31d539b2c9da0ba5674fe97271ea96648dbf4254/bwmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3549, 1896, 5141, 16, 3549, 1896, 77, 22, 5141, 16, 1399, 3890, 16, 1399, 77, 22, 3890, 16, 501, 4672, 3536, 2315, 1160, 6880, 471, 866, 309, 1160, 8181, 1240, 2118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 3549, 1896, 5141, 16, 3549, 1896, 77, 22, 5141, 16, 1399, 3890, 16, 1399, 77, 22, 3890, 16, 501, 4672, 3536, 2315, 1160, 6880, 471, 866, 309, 1160, 8181, 1240, 2118...
bv = np.exp(bv)
bv = np.exp(bv/tau)
def calc_prob(self, tree, parent=None): '''walking a tree bottom-up based on dictionary ''' endog = self.endog datadict = self.datadict paramsind = self.paramsind branchsum = self.branchsum
5d98bc468e3710982597f592fba7bbd160e84d5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/5d98bc468e3710982597f592fba7bbd160e84d5e/treewalkerclass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 7748, 12, 2890, 16, 2151, 16, 982, 33, 7036, 4672, 9163, 11348, 310, 279, 2151, 5469, 17, 416, 2511, 603, 3880, 9163, 679, 717, 273, 365, 18, 409, 717, 22034, 933, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 7748, 12, 2890, 16, 2151, 16, 982, 33, 7036, 4672, 9163, 11348, 310, 279, 2151, 5469, 17, 416, 2511, 603, 3880, 9163, 679, 717, 273, 365, 18, 409, 717, 22034, 933, 273, 365, ...
s = dumps(body)
s = Pickle.dumps(body)
def respond(self, body): _log("responding with: %s" % body) #_log("objects: %s" % self._objects) s = dumps(body) _log(`s`) str_ = _write_lp_hunk(self._out, s)
06157e647a2b7a7c67b08f34b60343d00b355e39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/06157e647a2b7a7c67b08f34b60343d00b355e39/saranwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6846, 12, 2890, 16, 1417, 4672, 389, 1330, 2932, 17863, 310, 598, 30, 738, 87, 6, 738, 1417, 13, 468, 67, 1330, 2932, 6911, 30, 738, 87, 6, 738, 365, 6315, 6911, 13, 272, 273, 23038,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6846, 12, 2890, 16, 1417, 4672, 389, 1330, 2932, 17863, 310, 598, 30, 738, 87, 6, 738, 1417, 13, 468, 67, 1330, 2932, 6911, 30, 738, 87, 6, 738, 365, 6315, 6911, 13, 272, 273, 23038,...
return urlparse.urlsplit(urllib.unquote(uri))[2]
uri = urllib.unquote(uri) if sys.platform == "win32": path = urlparse.urlsplit(uri)[2] while path.startswith("/"): path = path[1:] return path.replace("/", "\\") return urlparse.urlsplit(uri)[2]
def uri_to_path(uri): """Convert URI to local filepath.""" return urlparse.urlsplit(urllib.unquote(uri))[2]
813a57068b972428378dd306b7e1e6002fbedabe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12852/813a57068b972428378dd306b7e1e6002fbedabe/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2003, 67, 869, 67, 803, 12, 1650, 4672, 3536, 2723, 3699, 358, 1191, 3608, 12123, 225, 2003, 273, 11527, 18, 318, 6889, 12, 1650, 13, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2003, 67, 869, 67, 803, 12, 1650, 4672, 3536, 2723, 3699, 358, 1191, 3608, 12123, 225, 2003, 273, 11527, 18, 318, 6889, 12, 1650, 13, 309, 2589, 18, 9898, 422, 315, 8082, 1578, 6877, 5...
content_type = '<meta http-equiv="Content-Type" content="text/html; ' \ 'charset=%s" />\n' generator = '<meta name="generator" content="Docutils %s: ' \ 'http://docutils.sourceforge.net/" />\n'
content_type = ('<meta http-equiv="Content-Type" content="text/html; ' 'charset=%s" />\n') generator = ('<meta name="generator" content="Docutils %s: ' 'http://docutils.sourceforge.net/" />\n')
def translate(self): visitor = self.translator_class(self.document) self.document.walkabout(visitor) self.output = visitor.astext() self.head_prefix = visitor.head_prefix self.stylesheet = visitor.stylesheet self.head = visitor.head self.body_prefix = visitor.body_prefix self.body_pre_docinfo = visitor.body_pre_docinfo...
bebc1f6e9186fbf4927031f5a062b9d823df3d58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/bebc1f6e9186fbf4927031f5a062b9d823df3d58/html4css1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 4672, 8000, 273, 365, 18, 17879, 67, 1106, 12, 2890, 18, 5457, 13, 365, 18, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 365, 18, 2844, 273, 8000, 18, 689, 408, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 4672, 8000, 273, 365, 18, 17879, 67, 1106, 12, 2890, 18, 5457, 13, 365, 18, 5457, 18, 11348, 21071, 12, 3516, 1811, 13, 365, 18, 2844, 273, 8000, 18, 689, 408, 1435, ...
self.length = max(self.all_streams[i].length, self.length)
def __init__(self, file): core.AVContainer.__init__(self) self.samplerate = 1 self.all_streams = [] # used to add meta data to streams self.all_header = []
7972f89a7eb825c3cdf75800bafaab2e58fdbe07 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11721/7972f89a7eb825c3cdf75800bafaab2e58fdbe07/ogm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 4672, 2922, 18, 5856, 2170, 16186, 2738, 972, 12, 2890, 13, 365, 18, 87, 10463, 340, 225, 273, 404, 365, 18, 454, 67, 16320, 273, 5378, 6647, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 585, 4672, 2922, 18, 5856, 2170, 16186, 2738, 972, 12, 2890, 13, 365, 18, 87, 10463, 340, 225, 273, 404, 365, 18, 454, 67, 16320, 273, 5378, 6647, 468, ...
assert dt2.col1.hour == _now.hour assert dt2.col1.minute == _now.minute assert dt2.col1.second == int(_now.second)
if getConnection().dbName == "sqlite": assert dt2.col2.hour == _now.hour assert dt2.col2.minute == _now.minute assert dt2.col2.second == int(_now.second) else: assert dt2.col2.hour == 0 assert dt2.col2.minute == 0 assert dt2.col2.second == 0
def test_mxDateTime(): setupClass(DateTime2) _now = now() dt2 = DateTime2(col1=_now, col2=_now, col3=Time(_now.hour, _now.minute, int(_now.second)))
ecffe5efe59d4903cb6a1b35d94fe76fe0c77403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/ecffe5efe59d4903cb6a1b35d94fe76fe0c77403/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11023, 5096, 13332, 3875, 797, 12, 5096, 22, 13, 389, 3338, 273, 2037, 1435, 3681, 22, 273, 3716, 22, 12, 1293, 21, 33, 67, 3338, 16, 645, 22, 33, 67, 3338, 16, 645, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11023, 5096, 13332, 3875, 797, 12, 5096, 22, 13, 389, 3338, 273, 2037, 1435, 3681, 22, 273, 3716, 22, 12, 1293, 21, 33, 67, 3338, 16, 645, 22, 33, 67, 3338, 16, 645, 23, ...
def run_script(self, event=None):
def debug_module_event(self, event): import Debugger debugger = Debugger.Debugger(self) self.run_module_event(event, debugger) def close_debugger(self):
def run_script(self, event=None): pass
fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1930, 28645, 19977, 273, 28645, 18, 24113, 12, 2890, 13, 365, 18, 2681, 67, 2978, 67, 2575, 12, 2575, 16, 19977, 13, 225, 1652, 1746,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1930, 28645, 19977, 273, 28645, 18, 24113, 12, 2890, 13, 365, 18, 2681, 67, 2978, 67, 2575, 12, 2575, 16, 19977, 13, 225, 1652, 1746,...
print(to_read, repr(current))
def read(self, n=None): """Read n bytes.
adda9f8d3eb78914205afd83d8611b5ce0db2212 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/adda9f8d3eb78914205afd83d8611b5ce0db2212/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 290, 33, 7036, 4672, 3536, 1994, 290, 1731, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 290, 33, 7036, 4672, 3536, 1994, 290, 1731, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def scan_all(self, msg, *args):
def scan_all(self, msg=None, *args):
def scan_all(self, msg, *args): if self.index_url not in self.fetched_urls: if msg: self.warn(msg,*args) self.warn( "Scanning index of all packages (this may take a while)" ) self.scan_url(self.index_url)
3b744fcb3f0c9e96ff06a2bfaffb93b90b7230df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/3b744fcb3f0c9e96ff06a2bfaffb93b90b7230df/package_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 454, 12, 2890, 16, 1234, 33, 7036, 16, 380, 1968, 4672, 309, 365, 18, 1615, 67, 718, 486, 316, 365, 18, 5754, 329, 67, 10518, 30, 309, 1234, 30, 365, 18, 8935, 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, 4135, 67, 454, 12, 2890, 16, 1234, 33, 7036, 16, 380, 1968, 4672, 309, 365, 18, 1615, 67, 718, 486, 316, 365, 18, 5754, 329, 67, 10518, 30, 309, 1234, 30, 365, 18, 8935, 12, 3576, ...
if (sld.lower() in ( "co", "ac", "com", "edu", "org", "net", "gov", "mil", "int") and len(tld) == 2):
if sld.lower() in ("co", "ac", "com", "edu", "org", "net", "gov", "mil", "int", "aero", "biz", "cat", "coop", "info", "jobs", "mobi", "museum", "name", "pro", "travel", "eu") and len(tld) == 2:
def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request...
1e879308bfb03d591e93b12c868d61a3d266619b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e879308bfb03d591e93b12c868d61a3d266619b/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113...
f=file.readline()
f=(file.readline()).strip()
def __init__(self,config,roster): self.descr="pop/imap Mail Notifier" self.author="Sebastian Moors" self.version="0.1" self.commands={} self.commands["unregister"]="turn off notification"
4fa1341c16afd46f07d442cbac339585a5fb4020 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2269/4fa1341c16afd46f07d442cbac339585a5fb4020/mail_notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1425, 16, 303, 8190, 4672, 365, 18, 28313, 1546, 5120, 19, 12161, 11542, 2288, 1251, 6, 365, 18, 4161, 1546, 1761, 70, 689, 2779, 14987, 1383, 6, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1425, 16, 303, 8190, 4672, 365, 18, 28313, 1546, 5120, 19, 12161, 11542, 2288, 1251, 6, 365, 18, 4161, 1546, 1761, 70, 689, 2779, 14987, 1383, 6, 365, 18...
raise ValueError, 'new property "%s": %s not a %s'%(
raise IndexError, 'new property "%s": %s not a %s'%(
def create(self, **propvalues): """Create a new node of this class and return its id.
f585d0fd8b97406c94bbd0235dd528198f965caf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f585d0fd8b97406c94bbd0235dd528198f965caf/hyperdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 2826, 5986, 2372, 4672, 3536, 1684, 279, 394, 756, 434, 333, 667, 471, 327, 2097, 612, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 2826, 5986, 2372, 4672, 3536, 1684, 279, 394, 756, 434, 333, 667, 471, 327, 2097, 612, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif type(val) == type(True) and types.IntType in p['allowedTypes']:
elif type(val) == bool and int in p['allowedTypes']:
def _getParamValue(p, val, options): ''' try to get a value from value, raise exception if error happens. ''' if p['gui_type'] == 'separator': raise exceptions.ValueError('Cannot get a value for separator') # if we are giving a unicode string, convert! if type(val) == types.UnicodeType: val = str(val) # remove quotes f...
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 786, 620, 12, 84, 16, 1244, 16, 702, 4672, 9163, 775, 358, 336, 279, 460, 628, 460, 16, 1002, 1520, 309, 555, 10555, 18, 9163, 309, 293, 3292, 20292, 67, 723, 3546, 422, 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, 389, 588, 786, 620, 12, 84, 16, 1244, 16, 702, 4672, 9163, 775, 358, 336, 279, 460, 628, 460, 16, 1002, 1520, 309, 555, 10555, 18, 9163, 309, 293, 3292, 20292, 67, 723, 3546, 422, 29...
def __parse_timestamp(self, timestamp_str): timestamp = datetime(*time.strptime(timestamp_str[0:19], '%Y-%m-%d %H:%M:%S')[0:6])
def _get_repo_path(self, path, basedir=None): parts = [self.repository.path.strip("/")] if basedir: parts.append(basedir.strip("/")) parts.append(path.strip("/")) return "/".join(parts) def _revision_timestamp_to_local(self, timestamp_str): """When using a date to ask bzr for a file revision, it expects the date to...
def __parse_timestamp(self, timestamp_str): # The timestamp format is: YYYY-MM-DD HH:MM:SS +HHMM timestamp = datetime(*time.strptime(timestamp_str[0:19], '%Y-%m-%d %H:%M:%S')[0:6])
93014d9144d249956356c8503d567a6b3a46409b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/93014d9144d249956356c8503d567a6b3a46409b/bzr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 67, 5508, 12, 2890, 16, 2858, 67, 701, 4672, 468, 1021, 2858, 740, 353, 30, 26699, 17, 8206, 17, 5698, 20842, 30, 8206, 30, 1260, 397, 17500, 8206, 2858, 273, 3314, 30857, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 67, 5508, 12, 2890, 16, 2858, 67, 701, 4672, 468, 1021, 2858, 740, 353, 30, 26699, 17, 8206, 17, 5698, 20842, 30, 8206, 30, 1260, 397, 17500, 8206, 2858, 273, 3314, 30857, ...
if (res.find('tp') > -1) or (res == 'tdhmtl'):
else:
def send_to_csv(csv_file, results): import csv for res in results: browser_dump, counter_dump = results[res] writer = csv.writer(open(csv_file + '_' + res, "wb")) if res == 'ts': i = 0 writer.writerow(['i', 'val']) for val in browser_dump: writer.writerow([i, val]) i += 1 if (res.find('tp') > -1) or (res == 'tdhmtl'):...
9bb9f870fe7337e8a9b9500bc9342ab9e1fde678 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12156/9bb9f870fe7337e8a9b9500bc9342ab9e1fde678/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 6715, 12, 6715, 67, 768, 16, 1686, 4672, 1930, 6101, 364, 400, 316, 1686, 30, 4748, 67, 8481, 16, 3895, 67, 8481, 273, 1686, 63, 455, 65, 2633, 273, 6101, 18, 6299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 6715, 12, 6715, 67, 768, 16, 1686, 4672, 1930, 6101, 364, 400, 316, 1686, 30, 4748, 67, 8481, 16, 3895, 67, 8481, 273, 1686, 63, 455, 65, 2633, 273, 6101, 18, 6299...
msg_order = 'EWRCIF' def cmp_func(msgid1, msgid2): """comparison function for two message identifiers""" if msgid1[0] != msgid2[0]: return cmp(msg_order.index(msgid1[0]), msg_order.index(msgid2[0])) else: return cmp(msgid1, msgid2) msgids.sort(cmp_func) return msgids
msgs = {} for msg in msgids: msgs.setdefault(msg[0], []).append(msg) result = [] for m_id in _MSG_ORDER: if m_id in msgs: result.extend( sorted(msgs[m_id]) ) return result
def sort_msgs(msgids): """sort message identifiers according to their category first""" msg_order = 'EWRCIF' def cmp_func(msgid1, msgid2): """comparison function for two message identifiers""" if msgid1[0] != msgid2[0]: return cmp(msg_order.index(msgid1[0]), msg_order.index(msgid2[0])) else: return cmp(msgid1, msgid2) ...
1e44813300c240910bb62b09de8763b79444a2b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/928/1e44813300c240910bb62b09de8763b79444a2b9/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 27439, 12, 3576, 2232, 4672, 3536, 3804, 883, 9863, 4888, 358, 3675, 3150, 1122, 8395, 8733, 273, 2618, 364, 1234, 316, 1234, 2232, 30, 8733, 18, 542, 1886, 12, 3576, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 27439, 12, 3576, 2232, 4672, 3536, 3804, 883, 9863, 4888, 358, 3675, 3150, 1122, 8395, 8733, 273, 2618, 364, 1234, 316, 1234, 2232, 30, 8733, 18, 542, 1886, 12, 3576, 63, 20, ...
sdef.setPermission('View', 0, ['Employee', 'Manager', 'Owner'])
sdef.setPermission('View', 0, ['Customer', 'Employee', 'Manager', 'Owner'])
sdef = wf.states['completed']
34206f5ad1ed487e33085809d8972f361246c0dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10431/34206f5ad1ed487e33085809d8972f361246c0dd/eXtreme_task_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 536, 273, 11578, 18, 7992, 3292, 13615, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 536, 273, 11578, 18, 7992, 3292, 13615, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pickled objects between 32 and 64 bit machines.
pickled objects between 32 and 64 bit machines. With the transition to numpy, this may not be needed any longer.
def iterkeys(self): return self.__iter__()
446cace5df3b2a7b51998a15a2eb302188cc3e78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/446cace5df3b2a7b51998a15a2eb302188cc3e78/ProfileCollection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31664, 12, 2890, 4672, 327, 365, 16186, 2165, 972, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31664, 12, 2890, 4672, 327, 365, 16186, 2165, 972, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
P1 = P[0]; P2 = P[1]
P1 = P[0] P2 = P[1] if is_Integer(P1) and is_Integer(P2): R = PolynomialRing(self.value_ring(), 'x') P1 = R(P1) P2 = R(P2) return JacobianMorphism_divisor_class_field(self, tuple([P1,P2])) if is_Integer(P1) and is_Polynomial(P2): R = PolynomialRing(self.value_ring(), 'x') P1 = R(P1) return JacobianMorphism_divisor_clas...
def __call__(self, P): r""" Returns a rational point P in the abstract Homset J(K), given: 0. A point P in J = Jac(C), returning P; 1. A point P on the curve C such that J = Jac(C), where C is an odd degree model, returning [P - oo]; 2. A pair of points (P, Q) on the curve C such that J = Jac(C), returning [P-Q]; 2. A...
b145a02af12fbf8d66f63a5059612d089cce212b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b145a02af12fbf8d66f63a5059612d089cce212b/jacobian_homset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 453, 4672, 436, 8395, 2860, 279, 436, 8371, 1634, 453, 316, 326, 8770, 670, 362, 542, 804, 12, 47, 3631, 864, 30, 225, 374, 18, 432, 1634, 453, 316, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 453, 4672, 436, 8395, 2860, 279, 436, 8371, 1634, 453, 316, 326, 8770, 670, 362, 542, 804, 12, 47, 3631, 864, 30, 225, 374, 18, 432, 1634, 453, 316, 80...
for name in cookies.iterkeys(): expired = ('%session_id=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result.append(('Set-Cookie', expired)) environ['FAS_LOGIN_INFO'] = None
fas_cache.remove_value(key=session_id + "_identity") expired = ('tg-visit=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result.append(('Set-Cookie', expired)) environ['FAS_LOGIN_INFO'] = None
def forget(self, environ, identity): # return a expires Set-Cookie header req = webob.Request(environ) linfo = environ.get('FAS_LOGIN_INFO') if isinstance(linfo, tuple): session_id = linfo[0] result = [] for name in cookies.iterkeys(): expired = ('%session_id=""; Path=/; Expires=Sun, 10-May-1971 11:59:00 GMT') result....
03e67b90bbaae67d8cfa8c3c3ab5ec3c3405fbdd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12732/03e67b90bbaae67d8cfa8c3c3ab5ec3c3405fbdd/faswhoplugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 12, 2890, 16, 5473, 16, 4215, 4672, 468, 327, 279, 7368, 1000, 17, 6151, 1446, 1111, 273, 3311, 947, 18, 691, 12, 28684, 13, 225, 328, 1376, 273, 5473, 18, 588, 2668, 2046, 55, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13776, 12, 2890, 16, 5473, 16, 4215, 4672, 468, 327, 279, 7368, 1000, 17, 6151, 1446, 1111, 273, 3311, 947, 18, 691, 12, 28684, 13, 225, 328, 1376, 273, 5473, 18, 588, 2668, 2046, 55, ...
sage: EllipticCurve([1,2,3,4,5]) Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field
sage: E=EllipticCurve([1,2,3,4,5]); E._repr_() 'Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Field'
def _repr_(self): """ String representation of elliptic curve.
89c2370a6c124c1bf3f51b0d97beaaae4ef2736c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/89c2370a6c124c1bf3f51b0d97beaaae4ef2736c/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 514, 4335, 434, 415, 549, 21507, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 4672, 3536, 514, 4335, 434, 415, 549, 21507, 8882, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sockobj.send("%9f "%getruntime())
sockobj.send("%9f "%getruntime() + " "*90)
def sendforever(sockobj): while True: # send a message that is around 100 bytes sockobj.send("%9f "%getruntime())
8a08d7e4395befd31dafe0fe61aaf23545dbdffb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7272/8a08d7e4395befd31dafe0fe61aaf23545dbdffb/ut_repytests_testtcpbuffersize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1405, 502, 12, 15031, 2603, 4672, 1323, 1053, 30, 468, 1366, 279, 883, 716, 353, 6740, 2130, 1731, 7313, 2603, 18, 4661, 27188, 29, 74, 2213, 588, 9448, 1435, 397, 315, 15902, 9349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1405, 502, 12, 15031, 2603, 4672, 1323, 1053, 30, 468, 1366, 279, 883, 716, 353, 6740, 2130, 1731, 7313, 2603, 18, 4661, 27188, 29, 74, 2213, 588, 9448, 1435, 397, 315, 15902, 9349...
return relfn
return relfn, outfn
def render_dot(self, code, options, format, prefix='graphviz'): """ Render graphviz code into a PNG or PDF output file. """ hashkey = code.encode('utf-8') + str(options) + \ str(self.builder.config.graphviz_dot_args) fname = '%s-%s.%s' % (prefix, sha(hashkey).hexdigest(), format) if hasattr(self.builder, 'imgpath'): # ...
44f4a5746e6c9428042cfa9be47841aa23775b1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/44f4a5746e6c9428042cfa9be47841aa23775b1a/graphviz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 9811, 12, 2890, 16, 981, 16, 702, 16, 740, 16, 1633, 2218, 4660, 23167, 11, 4672, 3536, 6987, 2667, 23167, 981, 1368, 279, 22476, 578, 12667, 876, 585, 18, 3536, 1651, 856, 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, 1743, 67, 9811, 12, 2890, 16, 981, 16, 702, 16, 740, 16, 1633, 2218, 4660, 23167, 11, 4672, 3536, 6987, 2667, 23167, 981, 1368, 279, 22476, 578, 12667, 876, 585, 18, 3536, 1651, 856, 2...
for line in csv.reader(data.splitlines(), dialect):
for line in reader:
def parse(data, schema=None): encoding = Text.guess_encoding(data) dialect = csv.Sniffer().sniff(data[:1000]) if schema is None: for line in csv.reader(data.splitlines(), dialect): yield [ unicode(x, encoding) for x in line ] else: for line in csv.reader(data.splitlines(), dialect): yield [ schema[i].decode(value) for ...
d7d66783028d89ac24e4e2e007a313c18f639940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d7d66783028d89ac24e4e2e007a313c18f639940/CSV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 892, 16, 1963, 33, 7036, 4672, 2688, 273, 3867, 18, 20885, 67, 5999, 12, 892, 13, 10864, 273, 6101, 18, 23179, 7675, 8134, 3048, 12, 892, 10531, 18088, 5717, 309, 1963, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 892, 16, 1963, 33, 7036, 4672, 2688, 273, 3867, 18, 20885, 67, 5999, 12, 892, 13, 10864, 273, 6101, 18, 23179, 7675, 8134, 3048, 12, 892, 10531, 18088, 5717, 309, 1963, 353, ...
if self.filterbox_visible: return
def unbold_boldrow(self, row): if row > -1: if self.filterbox_visible: return try: self.currentdata[row][1] = make_unbold(self.currentdata[row][1]) except: pass
9e75aaec26e295cc58718bdda26c4e6b1a17b8af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/9e75aaec26e295cc58718bdda26c4e6b1a17b8af/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 16390, 67, 16390, 492, 12, 2890, 16, 1027, 4672, 309, 1027, 405, 300, 21, 30, 775, 30, 365, 18, 2972, 892, 63, 492, 6362, 21, 65, 273, 1221, 67, 318, 16390, 12, 2890, 18, 2972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 16390, 67, 16390, 492, 12, 2890, 16, 1027, 4672, 309, 1027, 405, 300, 21, 30, 775, 30, 365, 18, 2972, 892, 63, 492, 6362, 21, 65, 273, 1221, 67, 318, 16390, 12, 2890, 18, 2972, ...
14: I INT 3 17: I INT 4
14: L LONG 3 17: L LONG 4
def __init__(self, value): self.value = value
da655ae2fffed9301dcf15e87dc40e6e96778321 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/da655ae2fffed9301dcf15e87dc40e6e96778321/pickletools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 18, 1132, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 18, 1132, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl)
mt = ''.join(tmpl('mimetype', encoding=web.encoding)) if 'html' in mt: fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl)
def annotate_highlight(web, req, tmpl): fctx = webutil.filectx(web.repo, req) style = web.config('web', 'pygments_style', 'colorful') highlight.pygmentize('annotateline', fctx, style, tmpl) return web_annotate(web, req, tmpl)
751c1c85c60bad0528dca314d18ceee869e169e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/751c1c85c60bad0528dca314d18ceee869e169e8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 67, 15978, 12, 4875, 16, 1111, 16, 10720, 4672, 5874, 273, 875, 18, 5701, 12, 24717, 2668, 22571, 2187, 2688, 33, 4875, 18, 5999, 3719, 309, 296, 2620, 11, 316, 5874, 30, 284, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 67, 15978, 12, 4875, 16, 1111, 16, 10720, 4672, 5874, 273, 875, 18, 5701, 12, 24717, 2668, 22571, 2187, 2688, 33, 4875, 18, 5999, 3719, 309, 296, 2620, 11, 316, 5874, 30, 284, 5...
if ( PyString_Check(args) ) { OSStatus err;
if ( PyString_Check(v) ) {
#ifdef WITHOUT_FRAMEWORKS
ed72372f98f302b76be5a6f80831018829fd5b2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ed72372f98f302b76be5a6f80831018829fd5b2a/filesupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 13601, 5069, 67, 15072, 10566, 55, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames."""
capture=False, oneline=False, hide_stderr=False): """ Perform a command pipeline, with optional input/output filenames. hide_stderr Don't allow output of stderr (default False) """
def RunPipe(self, pipeline, infile=None, outfile=None, capture=False, oneline=False): """Perform a command pipeline, with optional input/output filenames."""
d73ec0e2a82d0924131576dc827f976c3a5121a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/d73ec0e2a82d0924131576dc827f976c3a5121a8/cros_image_to_target.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 11546, 12, 2890, 16, 5873, 16, 14568, 33, 7036, 16, 8756, 33, 7036, 16, 7477, 33, 8381, 16, 603, 3027, 33, 8381, 4672, 3536, 4990, 279, 1296, 5873, 16, 598, 3129, 810, 19, 2844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 11546, 12, 2890, 16, 5873, 16, 14568, 33, 7036, 16, 8756, 33, 7036, 16, 7477, 33, 8381, 16, 603, 3027, 33, 8381, 4672, 3536, 4990, 279, 1296, 5873, 16, 598, 3129, 810, 19, 2844, ...
if i >= self._measurement.npoints:
if i >= self._npoints:
def next(self): i = self._next_index if i >= self._measurement.npoints: raise StopIteration() elif i >= self._measurement.acquired: # expected the datapoint, but not yet acquired return None
736ba30206d85991426732fa429bb11e8a4ae744 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/736ba30206d85991426732fa429bb11e8a4ae744/pptaskmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 277, 273, 365, 6315, 4285, 67, 1615, 309, 277, 1545, 365, 6315, 82, 4139, 30, 1002, 16179, 1435, 1327, 277, 1545, 365, 6315, 16944, 18, 1077, 1402, 30, 468, 2665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 277, 273, 365, 6315, 4285, 67, 1615, 309, 277, 1545, 365, 6315, 82, 4139, 30, 1002, 16179, 1435, 1327, 277, 1545, 365, 6315, 16944, 18, 1077, 1402, 30, 468, 2665, ...
log.info( "using bucket's region (%s) to connect to AWS" % self._aws_region)
log.info("using scratch bucket's region (%s) to connect to AWS" % self._aws_region)
def _fix_s3_scratch_and_log_uri_opts(self): """Fill in s3_scratch_uri and s3_log_uri (in self._opts) if they aren't already set. """ # set s3_scratch_uri if not self._opts['s3_scratch_uri']: s3_conn = self.make_s3_conn() buckets = s3_conn.get_all_buckets() mrjob_buckets = [b for b in buckets if b.name.startswith('mrjob...
64f0ed09a1cc0ec105770a045e3cb70d03183c8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/64f0ed09a1cc0ec105770a045e3cb70d03183c8f/emr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 87, 23, 67, 24638, 505, 67, 464, 67, 1330, 67, 1650, 67, 4952, 12, 2890, 4672, 3536, 8026, 316, 272, 23, 67, 24638, 505, 67, 1650, 471, 272, 23, 67, 1330, 67, 1650, 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, 904, 67, 87, 23, 67, 24638, 505, 67, 464, 67, 1330, 67, 1650, 67, 4952, 12, 2890, 4672, 3536, 8026, 316, 272, 23, 67, 24638, 505, 67, 1650, 471, 272, 23, 67, 1330, 67, 1650, 2...
parser.setFeature(sax.handler.feature_namespaces, 1)
parser.setFeature(sax.handler.feature_namespace_prefixes, 1)
def make_parser(cls): parser = sax.make_parser() parser.setFeature(sax.handler.feature_namespaces, 1)
231f1a85e05dfa330ede4fe14491d4c33f9faa34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/231f1a85e05dfa330ede4fe14491d4c33f9faa34/element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4288, 12, 6429, 4672, 2082, 273, 20319, 18, 6540, 67, 4288, 1435, 2082, 18, 542, 4595, 12, 87, 651, 18, 4176, 18, 7238, 67, 16078, 16, 404, 13, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4288, 12, 6429, 4672, 2082, 273, 20319, 18, 6540, 67, 4288, 1435, 2082, 18, 542, 4595, 12, 87, 651, 18, 4176, 18, 7238, 67, 16078, 16, 404, 13, 2, -100, -100, -100, -100, -...
randomize = 1
randomize = True
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdi...
3b6d025d9bc6a0109e9a2ebd28a4864e8007193a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3b6d025d9bc6a0109e9a2ebd28a4864e8007193a/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 16, 628, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 16, 628, 76...
classifier_trainer, inverted_index=None):
classifier_trainer, occurances=None):
def _train_aux_classifier(i, auxtask, original_instances, dim, classifier_trainer, inverted_index=None): """Trains a single auxiliary classifier. Parameters ---------- i : int The index of the auxiliary task. auxtask : tuple of ints The auxiliary task. original_instances : array, dtype=bolt.sparsedtype The unlabeled i...
4b78ae8cd751ab726b00e2c00898db7709780673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14494/4b78ae8cd751ab726b00e2c00898db7709780673/auxstrategy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9754, 67, 18196, 67, 1106, 1251, 12, 77, 16, 9397, 4146, 16, 2282, 67, 10162, 16, 2464, 16, 14622, 67, 313, 1521, 16, 3334, 6872, 33, 7036, 4672, 3536, 1609, 2679, 279, 2202, 9397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9754, 67, 18196, 67, 1106, 1251, 12, 77, 16, 9397, 4146, 16, 2282, 67, 10162, 16, 2464, 16, 14622, 67, 313, 1521, 16, 3334, 6872, 33, 7036, 4672, 3536, 1609, 2679, 279, 2202, 9397...
link = Column(RDUnicode(128))
link = Column(UnicodeText)
def annotated_insert(insert, compiler, **kw): if getattr(insert.table, 'insert_prefix', None): insert = insert.prefix_with('%s' % insert.table.insert_prefix) return compiler.visit_insert(insert, **kw)
0bc551d9f76b222f8a66c5c6a76841382c25cea1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/0bc551d9f76b222f8a66c5c6a76841382c25cea1/history.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10529, 67, 6387, 12, 6387, 16, 5274, 16, 2826, 9987, 4672, 309, 3869, 12, 6387, 18, 2121, 16, 296, 6387, 67, 3239, 2187, 599, 4672, 2243, 273, 2243, 18, 3239, 67, 1918, 29909, 87, 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, 10529, 67, 6387, 12, 6387, 16, 5274, 16, 2826, 9987, 4672, 309, 3869, 12, 6387, 18, 2121, 16, 296, 6387, 67, 3239, 2187, 599, 4672, 2243, 273, 2243, 18, 3239, 67, 1918, 29909, 87, 11, ...
try: return self.getAttributeValue('superKinds', _attrDict=self._references) except AttributeError: raise ValueError, 'No superKind for %s' %(self.itsPath)
superKinds = self.getAttributeValue('superKinds', default=None, _attrDict=self._references) if not superKinds: self.getRepository().logger.warn('No superKinds for %s', self.itsPath) return [ self._kind.itsParent['Item'] ] return superKinds
def _getSuperKinds(self):
e9c3af0e5cef2cfc193a64d98208aeee729836e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e9c3af0e5cef2cfc193a64d98208aeee729836e5/Kind.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 8051, 5677, 87, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 8051, 5677, 87, 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,...
cols = string.split(self._chomp(string.rstrip(line)), ';') for i in range(len(cols)): cols[i] = string.lstrip(cols[i])
cols = self._chomp(line.rstrip()).split(';') cols = [col.lstrip() for col in cols]
def database_cross_reference(self, line): # From CLD1_HUMAN, Release 39: # DR EMBL; [snip]; -. [EMBL / GenBank / DDBJ] [CoDingSequence] # DR PRODOM [Domain structure / List of seq. sharing at least 1 domai # DR SWISS-2DPAGE; GET REGION ON 2D PAGE. line = line[5:] # Remove the comments at the end of the line i = s...
ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2063, 67, 14653, 67, 6180, 12, 2890, 16, 980, 4672, 468, 6338, 385, 12069, 21, 67, 44, 2799, 1258, 16, 10819, 16977, 30, 468, 16801, 282, 7141, 14618, 31, 306, 8134, 625, 15533, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2063, 67, 14653, 67, 6180, 12, 2890, 16, 980, 4672, 468, 6338, 385, 12069, 21, 67, 44, 2799, 1258, 16, 10819, 16977, 30, 468, 16801, 282, 7141, 14618, 31, 306, 8134, 625, 15533, 300, 1...
p1 = plot(list11,list12,linestyle='None', marker='o',\
p1 = pylab.plot(list11,list12,linestyle='None', marker='o',\
def makeScatteredPlot(chan,opts,distribution,list11=None,list12=None,list21=None,list22=None,list31=None,list32=None,figNumber=None): p1 = None p2 = None p3 = None parameter = distribution.split('-')[0] figure(figNumber) ax = subplot(111) ax.set_xscale('log') ax.set_yscale('log') if list11 and list12: p1 = plot(list1...
3a58220c8f9b9cb9764dcae94b5a4569bed72c68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/3a58220c8f9b9cb9764dcae94b5a4569bed72c68/analyseQscan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1541, 9293, 329, 11532, 12, 7472, 16, 4952, 16, 16279, 16, 1098, 2499, 33, 7036, 16, 1098, 2138, 33, 7036, 16, 1098, 5340, 33, 7036, 16, 1098, 3787, 33, 7036, 16, 1098, 6938, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1541, 9293, 329, 11532, 12, 7472, 16, 4952, 16, 16279, 16, 1098, 2499, 33, 7036, 16, 1098, 2138, 33, 7036, 16, 1098, 5340, 33, 7036, 16, 1098, 3787, 33, 7036, 16, 1098, 6938, 33,...
/.../RunPython .../application/tests/TestCrypto.py -v
/.../RunPython application/tests/TestCrypto.py -v
def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'Tes...
ad17cec5f290a1afe127c78e0b20723aa8b8bf15 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/ad17cec5f290a1afe127c78e0b20723aa8b8bf15/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 4672, 3536, 4080, 702, 273, 1109, 1320, 1435, 4080, 702, 18, 25011, 2681, 225, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 2774, 12, 2116, 13, 1083, 225, 6161, 471,...
Rredir = re.compile('\<li\>\<a href=".+?" title=(.*?)">')
Rredir = re.compile('\<li\>\<a href=".+?" title="(.*?)">')
def retrieve_double_redirects(self): if self.source == None: mysite = wikipedia.getSite() # retrieve information from the live wiki's maintenance page host = mysite.hostname() # double redirect maintenance page's URL url = mysite.double_redirects_address(default_limit = False) print 'Retrieving special page...' mainte...
b608ccb963afca2b0416c86c43858ffda9d7a31e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/b608ccb963afca2b0416c86c43858ffda9d7a31e/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 9056, 67, 22715, 12, 2890, 4672, 309, 365, 18, 3168, 422, 599, 30, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 67, 9056, 67, 22715, 12, 2890, 4672, 309, 365, 18, 3168, 422, 599, 30, 312, 1900, 1137, 273, 21137, 18, 588, 4956, 1435, 468, 4614, 1779, 628, 326, 8429, 9050, 1807, 18388, 1363, ...
(x, y, z) -- offset of map top left from origin in pixels cells -- array [x][y] of Cell instances
(origin_x, origin_y, origin_z) -- offset of map top left from origin in pixels cells -- array [i][j] of Cell instances
def get_virtual_coordinates(self, x, y): '''Translate window-space coordinates to pixel coordinates in the layer's space. This will include any transformation from the director and viewport translation. ''' x, y = director.get_virtual_coordinates(x, y) return x+self.viewport_x, y+self.viewport_y
ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12384, 67, 16941, 12, 2890, 16, 619, 16, 677, 4672, 9163, 12818, 2742, 17, 2981, 5513, 358, 4957, 5513, 316, 326, 3018, 1807, 3476, 18, 1220, 903, 2341, 1281, 8620, 628, 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, 336, 67, 12384, 67, 16941, 12, 2890, 16, 619, 16, 677, 4672, 9163, 12818, 2742, 17, 2981, 5513, 358, 4957, 5513, 316, 326, 3018, 1807, 3476, 18, 1220, 903, 2341, 1281, 8620, 628, 326, ...
Multiplicative Abelian Group isomorphic to Z x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [b*c, d]
Multiplicative Abelian Group isomorphic to C64 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [b*c, d]
def __init__(self, ambient, gens, names="f"): """
b65442735772ceff5c9acdb22a37ed84013525ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/b65442735772ceff5c9acdb22a37ed84013525ec/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.output_write("recur: [%s] %s %d/%d\n" % (",".join(selected), "", len(packages), len(extra)))
self.output_write("recur: [%s] %s %d/%d\n" % ("", ",".join(selected), len(packages), len(extra)))
def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one
ab0576817151497fdda52a6927ea2e47cb997bd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/ab0576817151497fdda52a6927ea2e47cb997bd6/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, 2, -100, -100, -100, -100, -100...
return anc[0].getPublishURL() + "
return anc[0].getPublishURL() + "
def getPublishURL(self): anc = self.findAncestors(DocPage) if len(anc) == 0: return None return anc[0].getPublishURL() + "#" + self.id + ".html"
b3fec8010c2cc71148f7fef05ae41ff75a97aea2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10467/b3fec8010c2cc71148f7fef05ae41ff75a97aea2/webdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27480, 1785, 12, 2890, 4672, 392, 71, 273, 365, 18, 4720, 28304, 12, 1759, 1964, 13, 309, 562, 12, 19292, 13, 422, 374, 30, 327, 599, 327, 392, 71, 63, 20, 8009, 588, 6024, 1785, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27480, 1785, 12, 2890, 4672, 392, 71, 273, 365, 18, 4720, 28304, 12, 1759, 1964, 13, 309, 562, 12, 19292, 13, 422, 374, 30, 327, 599, 327, 392, 71, 63, 20, 8009, 588, 6024, 1785, 143...
primes up to bound.
primes up to ``bound``.
def saturate(self, bound=-1): """ Compute the saturation of the Mordell-Weil group at all primes up to bound.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 2489, 29711, 21, 4672, 3536, 8155, 326, 22824, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 622, 777, 846, 4485, 731, 358, 2489, 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, 5942, 295, 340, 12, 2890, 16, 2489, 29711, 21, 4672, 3536, 8155, 326, 22824, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 622, 777, 846, 4485, 731, 358, 2489, 18, 2, -100, -100, -100...
wikipedia.output(u'Page %s is a disambiguation page' % page.title())
wikipedia.output(u'Page %s is a disambiguation page' % page.aslink())
def run(self): """ Starts the robot. """ # Run the generator which will yield Pages which might need to be # checked. for page in self.generator: try: # Load the page's text from the wiki original_text = page.get() except wikipedia.NoPage: wikipedia.output(u'Page %s not found' % page.title()) continue except wikipedia....
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 30620, 326, 14386, 18, 3536, 468, 1939, 326, 4456, 1492, 903, 2824, 22648, 1492, 4825, 1608, 358, 506, 468, 5950, 18, 364, 1363, 316, 365, 18, 8812, 30, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 30620, 326, 14386, 18, 3536, 468, 1939, 326, 4456, 1492, 903, 2824, 22648, 1492, 4825, 1608, 358, 506, 468, 5950, 18, 364, 1363, 316, 365, 18, 8812, 30, 775, ...
bt.clicked = (my_list_show_it, it1)
bt.callback_clicked_add(my_list_show_it, it1)
def list_clicked(obj, event, *args, **kargs): win = elementary.Window("list", elementary.ELM_WIN_BASIC) win.title_set("List") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() li = elementary.List(win) win.re...
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 7475, 329, 12, 2603, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 5657, 273, 930, 814, 18, 3829, 2932, 1098, 3113, 930, 814, 18, 2247, 49, 67, 24572, 67, 25642, 13, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 7475, 329, 12, 2603, 16, 871, 16, 380, 1968, 16, 2826, 79, 1968, 4672, 5657, 273, 930, 814, 18, 3829, 2932, 1098, 3113, 930, 814, 18, 2247, 49, 67, 24572, 67, 25642, 13, 565...
event=buttonPressed)
event=buttonPressed, stretchFactor=0.0, minimumSize=SizeType(30, 17))
def makeMarkupBar(parcel, oldVersion): """ Build the markup bar. """ # Each button just sends this event to itself. buttonPressed = BlockEvent.template('ButtonPressed', 'SendToSender').install(parcel) # The buttons. mailMessageButton = \ MailMessageButtonBlock.template('MailMessageButton', title=messages.STAMP_MAIL, ...
99083d473c3626e88e77945ee9f465a9ba596960 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99083d473c3626e88e77945ee9f465a9ba596960/detailblocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13111, 5190, 12, 1065, 2183, 16, 1592, 1444, 4672, 3536, 3998, 326, 9813, 4653, 18, 3536, 225, 468, 8315, 3568, 2537, 9573, 333, 871, 358, 6174, 18, 3568, 24624, 273, 3914, 1133, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13111, 5190, 12, 1065, 2183, 16, 1592, 1444, 4672, 3536, 3998, 326, 9813, 4653, 18, 3536, 225, 468, 8315, 3568, 2537, 9573, 333, 871, 358, 6174, 18, 3568, 24624, 273, 3914, 1133, 1...
(tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3])
palette = PILImage.palette try: palette = palette.palette except: palette = palette.data (tred, tgreen, tblue) = map(ord, palette[transparency:transparency+3])
def _checkTransparency(self,PILImage): if self.mask=='auto': if PILImage.info.has_key("transparency") : transparency = PILImage.info["transparency"] * 3 (tred, tgreen, tblue) = map(ord, PILImage.palette.data[transparency:transparency+3]) self.mask = (tred, tred, tgreen, tgreen, tblue, tblue) else: self.mask = None elif...
ac46cc9741821f75ae93c3dc546594d4a16dd322 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/ac46cc9741821f75ae93c3dc546594d4a16dd322/pdfdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 1429, 18258, 12, 2890, 16, 1102, 48, 2040, 4672, 309, 365, 18, 4455, 18920, 6079, 4278, 309, 29407, 2040, 18, 1376, 18, 5332, 67, 856, 2932, 2338, 18258, 7923, 294, 27472, 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, 389, 1893, 1429, 18258, 12, 2890, 16, 1102, 48, 2040, 4672, 309, 365, 18, 4455, 18920, 6079, 4278, 309, 29407, 2040, 18, 1376, 18, 5332, 67, 856, 2932, 2338, 18258, 7923, 294, 27472, 273...
if not value in potential_integraters
if not value in potential_integraters:
def check(key, value): '''Check that this thing is allowed to have this value.''' # this should be current! allowed_indexers = ['mosflm', 'labelit'] allowed_integraters = ['mosflm'] allowed_scalers = ['ccp4'] potential_indexers = ['mosflm', 'labelit', 'xds'] potential_integraters = ['mosflm', 'xds'] potential_scaler...
2e0fbec6b47e70d5033d2ecf0df4712ebbc0b9f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/2e0fbec6b47e70d5033d2ecf0df4712ebbc0b9f3/PipelineSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 856, 16, 460, 4672, 9163, 1564, 716, 333, 7757, 353, 2935, 358, 1240, 333, 460, 1093, 6309, 225, 468, 333, 1410, 506, 783, 5, 225, 2935, 67, 1615, 414, 273, 10228, 26719, 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, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 856, 16, 460, 4672, 9163, 1564, 716, 333, 7757, 353, 2935, 358, 1240, 333, 460, 1093, 6309, 225, 468, 333, 1410, 506, 783, 5, 225, 2935, 67, 1615, 414, 273, 10228, 26719, 2242...
assert gc.collect() == 1
if gc.collect() != 1: raise TestFailed
def test_dict(): d = {} d[1] = d gc.collect() del d assert gc.collect() == 1
419afec2d7b22fe8cf5fdba072bbc63384a4dad6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/419afec2d7b22fe8cf5fdba072bbc63384a4dad6/test_gc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1576, 13332, 302, 273, 2618, 302, 63, 21, 65, 273, 302, 8859, 18, 14676, 1435, 1464, 302, 309, 8859, 18, 14676, 1435, 480, 404, 30, 1002, 7766, 2925, 225, 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, 1842, 67, 1576, 13332, 302, 273, 2618, 302, 63, 21, 65, 273, 302, 8859, 18, 14676, 1435, 1464, 302, 309, 8859, 18, 14676, 1435, 480, 404, 30, 1002, 7766, 2925, 225, 2, -100, -100, -100...
"expires": str(int(timestamp)) + "000",
"expiry": timestamp,
def setUp(self): self.driver.get("http://localhost:%d/simpleTest.html" % self.webserver.port) timestamp = time.mktime(datetime.datetime.now().timetuple()) + 100 self.COOKIE_A = {"name": "foo", "value": "bar", "expires": str(int(timestamp)) + "000", "domain": "localhost", "path": "/", "secure": False}
c2b80fc54019bf6742076f687673211ea8fa2110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/c2b80fc54019bf6742076f687673211ea8fa2110/cookie_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 7407, 18, 588, 2932, 2505, 2207, 13014, 5319, 72, 19, 9647, 4709, 18, 2620, 6, 738, 365, 18, 1814, 2266, 502, 18, 655, 13, 2858, 273, 813, 18, 24816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 7407, 18, 588, 2932, 2505, 2207, 13014, 5319, 72, 19, 9647, 4709, 18, 2620, 6, 738, 365, 18, 1814, 2266, 502, 18, 655, 13, 2858, 273, 813, 18, 24816, ...
self.singleSpecName = os.path.basename( self.specFiles[self.mainJobSpecName])
self.singleJobDir = os.path.basename( self.specFiles[self.mainJobSpecName] )
def doSubmit(self): """r __doSubmit__
ff6a7293226c1c67657bcd81e072168fa6b68dbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/ff6a7293226c1c67657bcd81e072168fa6b68dbc/BossLiteBulkInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 11620, 12, 2890, 4672, 3536, 86, 1001, 2896, 11620, 972, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 11620, 12, 2890, 4672, 3536, 86, 1001, 2896, 11620, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def app_wrapper(*args):
def wsgiapp_wrapper(*args):
def app_wrapper(*args): # we get 3 args when this is a method, two when it is # a function :( if len(args) == 3: environ = args[1] start_response = args[2] args = [args[0]] else: environ, start_response = args args = [] def application(environ, start_response): form = wsgilib.parse_formvars(environ) headers = wsgilib.R...
d0441ff28d999e1ade91f96ba9f46dc821fc0f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/d0441ff28d999e1ade91f96ba9f46dc821fc0f2d/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 17537, 2910, 67, 8376, 30857, 1968, 4672, 468, 732, 336, 890, 833, 1347, 333, 353, 279, 707, 16, 2795, 1347, 518, 353, 468, 279, 445, 294, 12, 309, 562, 12, 1968, 13, 422, 890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 17537, 2910, 67, 8376, 30857, 1968, 4672, 468, 732, 336, 890, 833, 1347, 333, 353, 279, 707, 16, 2795, 1347, 518, 353, 468, 279, 445, 294, 12, 309, 562, 12, 1968, 13, 422, 890, ...
return unicodify(inspect.cleandoc('\n'+source))
cleandoc = getattr(inspect, 'cleandoc', lambda s: s) return unicodify(cleandoc('\n'+source))
def get_func_doc(self, expr): """Get a string describing the arguments for the given object""" try: obj = eval(expr, self.locs) except Exception: return None if isinstance(obj, (types.BuiltinFunctionType, types.BuiltinMethodType)): # These don't have source code, and using pydoc will only # add something like "execfile...
9c423a83d7a834eb3b8efd7e84254effddf384e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10932/9c423a83d7a834eb3b8efd7e84254effddf384e1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 644, 67, 2434, 12, 2890, 16, 3065, 4672, 3536, 967, 279, 533, 16868, 326, 1775, 364, 326, 864, 733, 8395, 775, 30, 1081, 273, 5302, 12, 8638, 16, 365, 18, 24323, 13, 1335, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 644, 67, 2434, 12, 2890, 16, 3065, 4672, 3536, 967, 279, 533, 16868, 326, 1775, 364, 326, 864, 733, 8395, 775, 30, 1081, 273, 5302, 12, 8638, 16, 365, 18, 24323, 13, 1335, 1...
if type(value) == type(()): print _('WARNING: invalid date tuple %r')%(value,) value = date.Date( "2000-1-1" )
def import_journals(self, entries): """Import a class's journal.
4426ce452779f55c9e0c3a81c4d7ffa0c4aaba6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1906/4426ce452779f55c9e0c3a81c4d7ffa0c4aaba6c/back_anydbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 78, 6561, 1031, 12, 2890, 16, 3222, 4672, 3536, 5010, 279, 667, 1807, 13001, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 78, 6561, 1031, 12, 2890, 16, 3222, 4672, 3536, 5010, 279, 667, 1807, 13001, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return
continue
def icc_loop(self):
d2b4e35268e9124a91610c2380794e3dd2865307 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/425/d2b4e35268e9124a91610c2380794e3dd2865307/ICC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 952, 67, 6498, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 952, 67, 6498, 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,...
elif self.is_on_path("lisp"): if self.is_on_path("cmuclinvoke.sh"):
elif is_on_path("lisp"): if is_on_path("cmuclinvoke.sh"):
def cl_detect(self): if self.is_on_path("clisp"): return "clisp" elif self.is_on_path("lisp"): if self.is_on_path("cmuclinvoke.sh"): return "cmuclinvoke.sh" return None
71ec8a3aa31e4b1ed4d108f6b77bdf63b2eccc07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/71ec8a3aa31e4b1ed4d108f6b77bdf63b2eccc07/test_cltrans.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 927, 67, 16518, 12, 2890, 4672, 309, 365, 18, 291, 67, 265, 67, 803, 2932, 830, 23831, 6, 4672, 327, 315, 830, 23831, 6, 1327, 353, 67, 265, 67, 803, 2932, 80, 23831, 6, 4672, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 927, 67, 16518, 12, 2890, 4672, 309, 365, 18, 291, 67, 265, 67, 803, 2932, 830, 23831, 6, 4672, 327, 315, 830, 23831, 6, 1327, 353, 67, 265, 67, 803, 2932, 80, 23831, 6, 4672, 309, ...
precisedate = parse_date(req.args.get('from'), req.tz) fromdate = precisedate
reqfromdate = req.args['from'].strip() if reqfromdate: precisedate = parse_date(reqfromdate, req.tz) fromdate = precisedate
def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW')
5c9a5a59611df77ad19300315c791ed4aa1b3552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/5c9a5a59611df77ad19300315c791ed4aa1b3552/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
del self._index2containerName2len
del self._index2containerId2len
def destroy(self): if self._checkContainersJob is not None: jobMgr.remove(self._checkContainersJob) self._checkContainersJob = None del self._id2ref del self._index2containerName2len del self._index2delay
88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 12, 2890, 4672, 309, 365, 6315, 1893, 11177, 2278, 353, 486, 599, 30, 1719, 9455, 18, 4479, 12, 2890, 6315, 1893, 11177, 2278, 13, 365, 6315, 1893, 11177, 2278, 273, 599, 1464, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 12, 2890, 4672, 309, 365, 6315, 1893, 11177, 2278, 353, 486, 599, 30, 1719, 9455, 18, 4479, 12, 2890, 6315, 1893, 11177, 2278, 13, 365, 6315, 1893, 11177, 2278, 273, 599, 1464, 365...
def tmp_name(prefix = "/tmp/pyprofgen-"): return "%s%u-%f" % (prefix, os.getpid(), time.time());
def debug(msg): global debug_mode; if debug_mode: sys.stdout.write("debug: %s\n" % msg); sys.stdout.flush();
913058b8bcaf7a6f82df1787a1aaeef563acb694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9791/913058b8bcaf7a6f82df1787a1aaeef563acb694/pyprofgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 2552, 1198, 67, 3188, 31, 309, 1198, 67, 3188, 30, 2589, 18, 10283, 18, 2626, 2932, 4148, 30, 738, 87, 64, 82, 6, 738, 1234, 1769, 2589, 18, 10283, 18, 11330, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 3576, 4672, 2552, 1198, 67, 3188, 31, 309, 1198, 67, 3188, 30, 2589, 18, 10283, 18, 2626, 2932, 4148, 30, 738, 87, 64, 82, 6, 738, 1234, 1769, 2589, 18, 10283, 18, 11330, 5...
ids = self.search(cr, user, [('name',operator,name)]+ args,
ids = self.search(cr, user, [('name', operator, name)] + args,
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} ids = self.search(cr, user, [('code','=',name)]+ args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit, context...
17619200a7b1afb251d9d07ba3f901dcc8fe0b6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/17619200a7b1afb251d9d07ba3f901dcc8fe0b6b/country.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 3672, 4672, 309, 486, 833, 30, 833, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 2218, 2187, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 3672, 4672, 309, 486, 833, 30, 833, 33, ...
author = Category.query.filter_by(username=author).first(True)
author = User.query.filter_by(username=author).first(True)
def atom_feed(req, author=None, year=None, month=None, day=None, category=None, tag=None, post=None): """Renders an atom feed requested. :URL endpoint: ``blog/atom_feed`` """ feed = AtomFeed(req.app.cfg['blog_title'], feed_url=req.url, url=req.app.cfg['blog_url'], subtitle=req.app.cfg['blog_tagline']) # the feed only...
f3d8abd271e052adfc5b57a933cc1227296086ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/f3d8abd271e052adfc5b57a933cc1227296086ea/blog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3179, 67, 7848, 12, 3658, 16, 2869, 33, 7036, 16, 3286, 33, 7036, 16, 3138, 33, 7036, 16, 2548, 33, 7036, 16, 3150, 33, 7036, 16, 1047, 33, 7036, 16, 1603, 33, 7036, 4672, 3536, 1090...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3179, 67, 7848, 12, 3658, 16, 2869, 33, 7036, 16, 3286, 33, 7036, 16, 3138, 33, 7036, 16, 2548, 33, 7036, 16, 3150, 33, 7036, 16, 1047, 33, 7036, 16, 1603, 33, 7036, 4672, 3536, 1090...
_debug("return unrolled batch (%i) and kern code (%i)", self.unroll_batch, self.unroll_kern)
_debug("return unrolled batch (%s) and kern code (%s)", str(self.unroll_batch), str(self.unroll_kern))
def c_code(self, node, name, (img2d, filtersflipped), (z, ), sub): if node.inputs[0].type.dtype != node.inputs[1].type.dtype: raise NotImplementedError() assert node.inputs[0].type.dtype == node.inputs[1].type.dtype d=locals() d.update(sub)
72850dde93f556743a720fbdf1991c880ca92ae2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/72850dde93f556743a720fbdf1991c880ca92ae2/conv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 12, 2890, 16, 756, 16, 508, 16, 261, 6081, 22, 72, 16, 3415, 12357, 1845, 3631, 261, 94, 16, 262, 16, 720, 4672, 309, 756, 18, 10029, 63, 20, 8009, 723, 18, 8972, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 710, 12, 2890, 16, 756, 16, 508, 16, 261, 6081, 22, 72, 16, 3415, 12357, 1845, 3631, 261, 94, 16, 262, 16, 720, 4672, 309, 756, 18, 10029, 63, 20, 8009, 723, 18, 8972, 480...
piecehash = sha.new()
piecehash = hashlib.sha1()
def scan_file(self, filename, use_chunks=True, max_chunks=255, chunk_size=256, progresslistener=None): print "\nScanning file..." # Filename and size self.filename = os.path.basename(filename) self.size = int(os.stat(filename).st_size) # Calculate piece length if use_chunks: minlength = chunk_size*1024 self.piecelength...
cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6425/cedf2d3fa50ba7140bc823ffa4ba7db6a4c37228/metalinkc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 768, 12, 2890, 16, 1544, 16, 999, 67, 14691, 33, 5510, 16, 943, 67, 14691, 33, 10395, 16, 2441, 67, 1467, 33, 5034, 16, 4007, 12757, 33, 7036, 4672, 1172, 1548, 82, 1541, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 768, 12, 2890, 16, 1544, 16, 999, 67, 14691, 33, 5510, 16, 943, 67, 14691, 33, 10395, 16, 2441, 67, 1467, 33, 5034, 16, 4007, 12757, 33, 7036, 4672, 1172, 1548, 82, 1541, 1...
resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1:] list.append(line)
openedFile = None try: if isinstance(fileHandle, types.StringType): openedFile = fileHandle = open(fileHandle, "w") resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = line[1:] if fileHandle: fileHand...
def getlongresp(self): """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error.""" resp = self.getresp() if resp[:3] not in LONGRESP: raise NNTPReplyError(resp) list = [] while 1: line = self.getline() if line == '.': break if line[:2] == '..': line = lin...
d1d584f4e820dc893175cdde74b901b6808ed3ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d1d584f4e820dc893175cdde74b901b6808ed3ab/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5748, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 225, 10191, 812, 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, 336, 5748, 12243, 12, 2890, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 225, 10191, 812, 273, 599,...
raise TestFailed("errors occurred in %s.%s" % (testclass.__module__, testclass.__name__))
if testclass is None: msg = "errors occurred; run in verbose mode for details" else: msg = "errors occurred in %s.%s" \ % (testclass.__module__, testclass.__name__) raise TestFailed(msg)
def run_suite(suite): """Run tests from a unittest.TestSuite-derived class.""" if verbose: runner = unittest.TextTestRunner(sys.stdout, verbosity=2) else: runner = BasicTestRunner() result = runner.run(suite) if not result.wasSuccessful(): if len(result.errors) == 1 and not result.failures: err = result.errors[0][1] e...
8fea2d0c8308553826f6b3c1cec7c70704d9f28d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8fea2d0c8308553826f6b3c1cec7c70704d9f28d/test_support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 30676, 12, 30676, 4672, 3536, 1997, 7434, 628, 279, 2836, 3813, 18, 4709, 13587, 17, 765, 2950, 667, 12123, 309, 3988, 30, 8419, 273, 2836, 3813, 18, 1528, 4709, 9709, 12, 9499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 30676, 12, 30676, 4672, 3536, 1997, 7434, 628, 279, 2836, 3813, 18, 4709, 13587, 17, 765, 2950, 667, 12123, 309, 3988, 30, 8419, 273, 2836, 3813, 18, 1528, 4709, 9709, 12, 9499...
diff = xs1.delta_sites_cart_measure(xs0) assert approx_equal(diff, diff_ref, eps=rnd_delta)
mscd = xray.meaningful_site_cart_differences(xs1=xs1, xs2=xs0) assert approx_equal(mscd.max_absolute(), diff_ref, eps=rnd_delta)
def exercise_delta_sites_cart_measure(): rnd_delta = 1e-3 for hall_symbol, continuously_shift in [ ('P 2yb', lambda x,y,z: (x , y+0.7, z) ), ('P -2x', lambda x,y,z: (x , y+0.9, z-0.7)), ('P 1' , lambda x,y,z: (x+0.1, y+0.2, z+0.9)), ]: xs0 = random_structure.xray_structure( sgtbx.space_group_info('hall: %s' %...
7614a2f6049b9d73f02017019214d6503589dca0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/7614a2f6049b9d73f02017019214d6503589dca0/tst_xray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 9878, 67, 12180, 67, 11848, 67, 10772, 13332, 20391, 67, 9878, 273, 404, 73, 17, 23, 364, 366, 454, 67, 7175, 16, 17235, 715, 67, 4012, 316, 306, 7707, 52, 576, 93, 70, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 9878, 67, 12180, 67, 11848, 67, 10772, 13332, 20391, 67, 9878, 273, 404, 73, 17, 23, 364, 366, 454, 67, 7175, 16, 17235, 715, 67, 4012, 316, 306, 7707, 52, 576, 93, 70, 21...
extra = 10
extra = int(10 + 2*prec**0.3)
def sqrt_fixed2(y, prec): """ This function is essentially equivalent to sqrt_fixed (see its documentation), but uses an asymptotically faster algorithm. Instead of using Newton's method to calculate sqrt(y) directly, we calculate 1/sqrt(y) with Newton's method and multiply by y to obtain sqrt(y). The Newton iteration...
6126580b4c100568377d1463a6b8d6a791d5dc9d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11851/6126580b4c100568377d1463a6b8d6a791d5dc9d/lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5700, 67, 12429, 22, 12, 93, 16, 13382, 4672, 3536, 1220, 445, 353, 18518, 11220, 7680, 358, 5700, 67, 12429, 261, 5946, 2097, 7323, 3631, 1496, 4692, 392, 26202, 337, 352, 6478, 12063, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5700, 67, 12429, 22, 12, 93, 16, 13382, 4672, 3536, 1220, 445, 353, 18518, 11220, 7680, 358, 5700, 67, 12429, 261, 5946, 2097, 7323, 3631, 1496, 4692, 392, 26202, 337, 352, 6478, 12063, ...
cookie = load_cookie(environ.get('HTTP_COOKIE', ''))
cookie = parse_cookie(environ.get('HTTP_COOKIE', ''))
def __call__(self, environ, start_response): cookie = load_cookie(environ.get('HTTP_COOKIE', '')) sid = cookie.get(self.cookie_name, None) if sid is None: session = self.store.new() else: session = self.store.get(sid) environ[self.environ_key] = session
4b016ae094c105b438360ded48d635e97787985f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/4b016ae094c105b438360ded48d635e97787985f/sessions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3878, 273, 1109, 67, 8417, 12, 28684, 18, 588, 2668, 3693, 67, 13584, 2187, 875, 3719, 7348, 273, 3878, 18, 588, 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, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3878, 273, 1109, 67, 8417, 12, 28684, 18, 588, 2668, 3693, 67, 13584, 2187, 875, 3719, 7348, 273, 3878, 18, 588, 12, 2890,...
test_crasher()
def test_crasher(): assertRaises(MemoryError, struct.pack, "357913941c", "a")
328c643bcbff5f980e37afe420cecca76472cb9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/328c643bcbff5f980e37afe420cecca76472cb9e/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3353, 961, 264, 13332, 1815, 12649, 6141, 12, 6031, 668, 16, 1958, 18, 2920, 16, 315, 4763, 7235, 24347, 9803, 71, 3113, 315, 69, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3353, 961, 264, 13332, 1815, 12649, 6141, 12, 6031, 668, 16, 1958, 18, 2920, 16, 315, 4763, 7235, 24347, 9803, 71, 3113, 315, 69, 7923, 225, 2, -100, -100, -100, -100, -100, ...
self.url_appcast = appcastfmt % ('_unofficial')
url_type = '_unofficial' self.url_appcast = appcast_fmt % ('_unofficial',appcast_arch)
def _action( self ): appcastfmt = 'http://handbrake.fr/appcast%s.xml'
bbd91a17561ba59890c60bed3dd6ab1b6b1ae1a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13161/bbd91a17561ba59890c60bed3dd6ab1b6b1ae1a0/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1128, 12, 365, 262, 30, 595, 4155, 8666, 273, 296, 2505, 2207, 2349, 15397, 4491, 18, 4840, 19, 438, 2436, 689, 9, 87, 18, 2902, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1128, 12, 365, 262, 30, 595, 4155, 8666, 273, 296, 2505, 2207, 2349, 15397, 4491, 18, 4840, 19, 438, 2436, 689, 9, 87, 18, 2902, 11, 2, -100, -100, -100, -100, -100, -100, -100, ...
s = """ include "cdefs.pxi" """ + s
s = """\ninclude "cdefs.pxi"\n""" + s
def pyx_preparse(s): r""" Preparse a Pyx file * include cdefs.pxi, interrupt.pxi, stdsage.pxi * parse clang pragma (c or c++) * parse clib pragma (additional libraries to link in) * parse cinclude (additional include directories) The pragmas: \begin{description} \item[clang] may be either c or c++ indicating whether a...
23b6f378898290e649fe110303ee89875dd9097a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/23b6f378898290e649fe110303ee89875dd9097a/cython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2395, 92, 67, 1484, 2670, 12, 87, 4672, 436, 8395, 2962, 2670, 279, 4707, 92, 585, 380, 2341, 276, 12537, 18, 4430, 77, 16, 13123, 18, 4430, 77, 16, 2044, 87, 410, 18, 4430, 77, 380,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2395, 92, 67, 1484, 2670, 12, 87, 4672, 436, 8395, 2962, 2670, 279, 4707, 92, 585, 380, 2341, 276, 12537, 18, 4430, 77, 16, 13123, 18, 4430, 77, 16, 2044, 87, 410, 18, 4430, 77, 380,...
if filter: os.unlink(patchfile)
def applyone(self, repo, node, cl, patchfile, merge=False, log=False, filter=None): '''apply the patch in patchfile to the repository as a transplant''' (manifest, user, (time, timezone), files, message) = cl[:5] date = "%d %d" % (time, timezone) extra = {'transplant_source': node} if filter: (user, date, message) = se...
829df4d88dd2c9616dc211083b7b3169a4601b2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/829df4d88dd2c9616dc211083b7b3169a4601b2b/transplant.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 476, 12, 2890, 16, 3538, 16, 756, 16, 927, 16, 4729, 768, 16, 2691, 33, 8381, 16, 613, 33, 8381, 16, 1034, 33, 7036, 4672, 9163, 9010, 326, 4729, 316, 4729, 768, 358, 326, 3352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 476, 12, 2890, 16, 3538, 16, 756, 16, 927, 16, 4729, 768, 16, 2691, 33, 8381, 16, 613, 33, 8381, 16, 1034, 33, 7036, 4672, 9163, 9010, 326, 4729, 316, 4729, 768, 358, 326, 3352...
resp = self._get_line()[:-2]
resp = self._get_line()
def _get_response(self):
a470565476fb5e33733d1be0bbc4cb80f186235a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a470565476fb5e33733d1be0bbc4cb80f186235a/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740, 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,...
MovePYDs('pyRXPU.pyd',)
if buildU: MovePYDs('pyRXPU.pyd',)
def MovePYDs(*F): for x in sys.argv: if x[:18]=='--install-platlib=': return src = sys.exec_prefix dst = os.path.join(src,'DLLs') if sys.hexversion>=0x20200a0: src = os.path.join(src,'Lib','site-packages') for f in F: dstf = os.path.join(dst,f) if os.path.isfile(dstf): os.remove(dstf) srcf = os.path.join(src,f) os.rena...
84fcc30d62ed1830eab153f30eae2e683c3579dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/84fcc30d62ed1830eab153f30eae2e683c3579dc/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9933, 16235, 22831, 30857, 42, 4672, 364, 619, 316, 2589, 18, 19485, 30, 309, 619, 10531, 2643, 65, 18920, 413, 5425, 17, 412, 270, 2941, 2218, 30, 327, 1705, 273, 2589, 18, 4177, 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, 9933, 16235, 22831, 30857, 42, 4672, 364, 619, 316, 2589, 18, 19485, 30, 309, 619, 10531, 2643, 65, 18920, 413, 5425, 17, 412, 270, 2941, 2218, 30, 327, 1705, 273, 2589, 18, 4177, 67, ...
if os.path.splitdrive(uri)[0] != u'': uri = u'file:' + urllib.pathname2url(uri)
def toUri(self): uri = self.value() #if os.path.abspath(uri): if os.path.splitdrive(uri)[0] != u'': uri = u'file:' + urllib.pathname2url(uri) uri = posifyPath(uri) return uri
6c19a0fe131d9af57eccbb1dba943d266fb804b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/6c19a0fe131d9af57eccbb1dba943d266fb804b1/Path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 3006, 12, 2890, 4672, 2003, 273, 365, 18, 1132, 1435, 468, 430, 1140, 18, 803, 18, 5113, 803, 12, 1650, 4672, 1650, 273, 949, 1164, 743, 12, 1650, 13, 327, 2003, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 3006, 12, 2890, 4672, 2003, 273, 365, 18, 1132, 1435, 468, 430, 1140, 18, 803, 18, 5113, 803, 12, 1650, 4672, 1650, 273, 949, 1164, 743, 12, 1650, 13, 327, 2003, 2, -100, -100, ...
self._suspended.add(ch)
self._suspended.add((ch, why))
def _suspend(self): r'''Suspend the running tasklet until awoken. ''' ch = stackless.channel() self._suspended.add(ch) ch.receive() assert ch not in self._suspended del ch
9cbfe581718d0c6f7da76396dc9d54a675eb371d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10902/9cbfe581718d0c6f7da76396dc9d54a675eb371d/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 18815, 12, 2890, 4672, 436, 26418, 55, 18815, 326, 3549, 1562, 1810, 3180, 1690, 969, 18, 9163, 462, 273, 2110, 2656, 18, 4327, 1435, 365, 6315, 87, 22942, 18, 1289, 12443, 343,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 87, 18815, 12, 2890, 4672, 436, 26418, 55, 18815, 326, 3549, 1562, 1810, 3180, 1690, 969, 18, 9163, 462, 273, 2110, 2656, 18, 4327, 1435, 365, 6315, 87, 22942, 18, 1289, 12443, 343,...
os.path.join("bin", "KW_veto_calc"),
os.path.join("bin", "KW_veto_calc"),
def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass
bcb90cae6607140da1a5438dff867e4a1731aa08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/bcb90cae6607140da1a5438dff867e4a1731aa08/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 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, 1086, 12, 2890, 4672, 468, 1206, 326, 6635, 4374, 729, 1550, 8873, 364, 2728, 316, 8247, 2074, 80, 287, 17, 1355, 17, 3074, 18, 674, 3113, 315, 2074, 80, 287, 17, 1355, 17, 3074, 18, ...
device_rp = subdir.append("aux") if device_rp.lstat(): assert device_rp.lstat()
try: device_rp = subdir.append("aux") if device_rp.lstat(): log.Log("escape_dos_devices required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 1 else: log.Log("escape_dos_devices not required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 0 except(OSError):
def set_escape_dos_devices(self, subdir): """If special file aux can be stat'd, escape special files""" device_rp = subdir.append("aux") if device_rp.lstat(): assert device_rp.lstat() log.Log("escape_dos_devices required by filesystem at %s" \ % (subdir.path), 4) self.escape_dos_devices = 1 else: assert not device_rp.l...
a40e2326baba295220c0e2038a7cf425fc8fb30d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/a40e2326baba295220c0e2038a7cf425fc8fb30d/fs_abilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6939, 67, 19219, 67, 12506, 12, 2890, 16, 16921, 4672, 3536, 2047, 4582, 585, 9397, 848, 506, 610, 14271, 16, 4114, 4582, 1390, 8395, 775, 30, 2346, 67, 13832, 273, 16921, 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, 444, 67, 6939, 67, 19219, 67, 12506, 12, 2890, 16, 16921, 4672, 3536, 2047, 4582, 585, 9397, 848, 506, 610, 14271, 16, 4114, 4582, 1390, 8395, 775, 30, 2346, 67, 13832, 273, 16921, 18, ...
htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') htmlfile.write('<td width=30%><img width=100% src="m2dist.png"></td>')
if opts.skyres is not None: htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') else: htmlfile.write('<td width=30%><img width=100% src="psiiota.png"></td>') htmlfile.write('<td width=30%><img width=100% src="Diota.png"></td>')
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
4bf8ce2fee099e595f21068917fe233b6f4eb8cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/4bf8ce2fee099e595f21068917fe233b6f4eb8cd/OddsPostProc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 22, 40, 8111, 12, 92, 3404, 16, 93, 3404, 16, 50, 92, 16, 50, 93, 4672, 619, 651, 33, 80, 15738, 12, 1154, 12, 92, 3404, 3631, 1896, 12, 92, 3404, 3631, 50, 92, 13, 677, 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, 3207, 22, 40, 8111, 12, 92, 3404, 16, 93, 3404, 16, 50, 92, 16, 50, 93, 4672, 619, 651, 33, 80, 15738, 12, 1154, 12, 92, 3404, 3631, 1896, 12, 92, 3404, 3631, 50, 92, 13, 677, 65...
def get_data(self, form):
def get_data(self, data):
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, 501, 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, 501, 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, ...
self.request.response.setHeader('Content-Type',
self.request.response.setHeader('Content-Type',
def __call__(self): properties = component.getUtility(IPropertiesTool) charset = properties.site_properties.getProperty('default_charset', 'utf-8').upper() self.request.response.setHeader('Content-Type', 'text/csv; charset=%s' % charset) self.request.response.setHeader('Content-disposition', 'attachment; filename=subsc...
6a225131d5814f4fcaf8f720f43c7e7816ee8a6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9843/6a225131d5814f4fcaf8f720f43c7e7816ee8a6b/channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1790, 273, 1794, 18, 588, 6497, 12, 45, 2297, 6364, 13, 4856, 273, 1790, 18, 4256, 67, 4738, 18, 588, 1396, 2668, 1886, 67, 9999, 2187, 296, 3158, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 1790, 273, 1794, 18, 588, 6497, 12, 45, 2297, 6364, 13, 4856, 273, 1790, 18, 4256, 67, 4738, 18, 588, 1396, 2668, 1886, 67, 9999, 2187, 296, 3158, 17, ...
anchor=NSEW (or subset) - position anchor according to given direction
anchor=NSEW (or subset) - position anchor according to given direction
def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this ...
604f95edacc880af4fb9513d8bd9b523258c8994 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/604f95edacc880af4fb9513d8bd9b523258c8994/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3166, 67, 14895, 12, 2890, 16, 23118, 28793, 2826, 9987, 4672, 3536, 6029, 279, 3604, 316, 326, 982, 3604, 18, 2672, 487, 702, 30, 316, 33, 7525, 300, 4171, 3632, 358, 1492, 326, 3604, ...
result=templates.Template.check_vars(self, vars, cmd)
result=super(StandardHosting, self).check_vars(vars, cmd)
def check_vars(self, vars, cmd): result=templates.Template.check_vars(self, vars, cmd)
cbaa4df97e31752d5bcf8def48beebbffe2737eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11358/cbaa4df97e31752d5bcf8def48beebbffe2737eb/hosting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 4699, 12, 2890, 16, 4153, 16, 1797, 4672, 563, 33, 8502, 18, 2283, 18, 1893, 67, 4699, 12, 2890, 16, 4153, 16, 1797, 13, 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, 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, 866, 67, 4699, 12, 2890, 16, 4153, 16, 1797, 4672, 563, 33, 8502, 18, 2283, 18, 1893, 67, 4699, 12, 2890, 16, 4153, 16, 1797, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
REFERENCE: - [1] Sampo Niskanen and Patric R. J. Östergård, "Cliquer User's Guide, Version 1.0," Communications Laboratory, Helsinki University of Technology, Espoo, Finland, Tech. Rep. T48, 2003. - [2] Coen Bron and Joep Kerbosch. (1973). Algorithm 457: Finding All Cliques of an Undirected Graph. Commun. ACM. v 16....
ALGORITHM: This function is based on Cliquer [NisOst2003]_ and [BroKer1973]_.
def clique_number(self, algorithm="cliquer", cliques=None): """ Returns the order of the largest clique of the graph (the clique number).
ff0c9f33534c3168fbe7c717cbfddb40743165ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ff0c9f33534c3168fbe7c717cbfddb40743165ac/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31380, 67, 2696, 12, 2890, 16, 4886, 1546, 4857, 25734, 3113, 4942, 29896, 33, 7036, 4672, 3536, 2860, 326, 1353, 434, 326, 12756, 31380, 434, 326, 2667, 261, 5787, 31380, 1300, 2934, 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, 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, 31380, 67, 2696, 12, 2890, 16, 4886, 1546, 4857, 25734, 3113, 4942, 29896, 33, 7036, 4672, 3536, 2860, 326, 1353, 434, 326, 12756, 31380, 434, 326, 2667, 261, 5787, 31380, 1300, 2934, 2, ...