rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
import textwrap return '\n'.join(textwrap.wrap(t, replace_whitespace=0, width=cols, break_long_words=0,
import textwrap t = t.replace('\r\n', '\n').replace('\r', '\n') wrapper = textwrap.TextWrapper(cols, replace_whitespace=0, break_long_words=0,
def wrap(t, cols=75, initial_indent='', subsequent_indent=''): try: import textwrap return '\n'.join(textwrap.wrap(t, replace_whitespace=0, width=cols, break_long_words=0, initial_indent=initial_indent, subsequent_indent=subsequent_indent)) except ImportError: return t
fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b/Notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 88, 16, 5347, 33, 5877, 16, 2172, 67, 9355, 2218, 2187, 10815, 67, 9355, 2218, 11, 4672, 775, 30, 1930, 30271, 268, 273, 268, 18, 2079, 2668, 64, 86, 64, 82, 2187, 2337, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 88, 16, 5347, 33, 5877, 16, 2172, 67, 9355, 2218, 2187, 10815, 67, 9355, 2218, 11, 4672, 775, 30, 1930, 30271, 268, 273, 268, 18, 2079, 2668, 64, 86, 64, 82, 2187, 2337, 82...
"setStringValue:", aMessage, YES)
"setStringValue:", unicode(aMessage), 0)
def setStatusTextFieldMessage_(self, aMessage): """ Sets the contents of the statusTextField to aMessage and forces the field's contents to be redisplayed. """ if not aMessage: aMessage = "Displaying information about " +`len(self._methodList)` +" methods." +`self._working` self.statusTextField.performSelectorOnMainThr...
27149324dca76b2e96f0b7cbac2ca9d089589c8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2688/27149324dca76b2e96f0b7cbac2ca9d089589c8d/EYETestWindowControllerClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9433, 16157, 1079, 67, 12, 2890, 16, 279, 1079, 4672, 3536, 11511, 326, 2939, 434, 326, 1267, 16157, 358, 279, 1079, 471, 26376, 326, 652, 1807, 2939, 358, 506, 5813, 1601, 329, 18, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9433, 16157, 1079, 67, 12, 2890, 16, 279, 1079, 4672, 3536, 11511, 326, 2939, 434, 326, 1267, 16157, 358, 279, 1079, 471, 26376, 326, 652, 1807, 2939, 358, 506, 5813, 1601, 329, 18, 3536...
def createFields(self): yield UInt32(self, "size", text_handler=humanFilesize)
def createFields(self): yield UInt32(self, "size")
def createFields(self): yield UInt32(self, "size", text_handler=humanFilesize) yield String(self, "name", 22, charset="ASCII", strip=" \0") yield UInt8(self, "type") yield UInt16(self, "samples") num = self["samples"].value self.info("Instrument '%s' has %i samples" % (self["name"].display, self["samples"].value)) # Va...
32eb327dd751f772fadb6fe53c1fa9fa0b69fb14 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/32eb327dd751f772fadb6fe53c1fa9fa0b69fb14/xm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1652, 752, 2314, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 1467, 7923, 2824, 514, 12, 2890, 16, 315, 529, 3113, 11201, 16, 4856, 1546, 13756, 3113, 2569, 1546, 521, 20, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1652, 752, 2314, 12, 2890, 4672, 2824, 29810, 1578, 12, 2890, 16, 315, 1467, 7923, 2824, 514, 12, 2890, 16, 315, 529, 3113, 11201, 16, 4856, 1546, 13756, 3113, 2569, 1546, 521, 20, 7923,...
def browserow(self, widget, path, column=0):
def browse_row(self, widget, path, column=0):
def browserow(self, widget, path, column=0): if path is None: # Default to last item in selection: model, selected = self.browser_selection.get_selected_rows() if len(selected) >=1: path = (len(selected)-1,) else: path = (0,) value = self.browserdata.get_value(self.browserdata.get_iter(path), 1) if value == "..": self....
ef335bb5758783289bea4a5b77282ae0c87d687a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/ef335bb5758783289bea4a5b77282ae0c87d687a/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 492, 12, 2890, 16, 3604, 16, 589, 16, 1057, 33, 20, 4672, 309, 589, 353, 599, 30, 468, 2989, 358, 1142, 761, 316, 4421, 30, 938, 16, 3170, 273, 365, 18, 11213, 67, 10705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 492, 12, 2890, 16, 3604, 16, 589, 16, 1057, 33, 20, 4672, 309, 589, 353, 599, 30, 468, 2989, 358, 1142, 761, 316, 4421, 30, 938, 16, 3170, 273, 365, 18, 11213, 67, 10705, ...
if image_width-size > image_height-size: image_height = int(size/float(image_width)*image_height) image_width = size else: image_width = int(size/float(image_height)*image_width) image_height = size crop_pixbuf = pixbuf.scale_simple(image_width, image_height, gtk.gdk.INTERP_HYPER) return crop_pixbuf
image_ydiff = int((image_height-image_width)/2) image_height = image_width new_pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, image_width, image_height) new_pixbuf.fill(0x00000000) pixbuf.copy_area(image_xdiff, image_ydiff, image_width, image_height, new_pixbuf, 0, 0) del pixbuf return new_pixbuf def get_pad...
def get_pixbuf_of_size(pixbuf, size, crop = False): image_width = pixbuf.get_width() image_height = pixbuf.get_height() image_xdiff = 0 image_ydiff = 0 if crop: if image_width-size > image_height-size: image_xdiff = int((image_width-image_height)/2) image_width = image_height else: image_ydiff = int((image_height-image...
d146007907c6581d8d80f2f60d1a7f1efdee1728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/d146007907c6581d8d80f2f60d1a7f1efdee1728/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14861, 4385, 67, 792, 67, 1467, 12, 14861, 4385, 16, 963, 16, 7987, 273, 1083, 4672, 1316, 67, 2819, 273, 11871, 4385, 18, 588, 67, 2819, 1435, 1316, 67, 4210, 273, 11871, 438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14861, 4385, 67, 792, 67, 1467, 12, 14861, 4385, 16, 963, 16, 7987, 273, 1083, 4672, 1316, 67, 2819, 273, 11871, 4385, 18, 588, 67, 2819, 1435, 1316, 67, 4210, 273, 11871, 438...
include_dirs = ['Modules/expat']
include_dirs = [expatinc]
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
30396e728c0ba40e35d00586080c421de9240334 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/30396e728c0ba40e35d00586080c421de9240334/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
w_result = space.wrap(result[0] != '\x00')
x = rffi.cast(lltype.Signed, result[0]) w_result = space.wrap(x != 0)
def PyMember_GetOne(space, obj, w_member): addr = rffi.cast(ADDR, obj) addr += w_member.c_offset member_type = rffi.cast(lltype.Signed, w_member.c_type) for converter in integer_converters: typ, lltyp, _ = converter if typ == member_type: result = rffi.cast(rffi.CArrayPtr(lltyp), addr) if lltyp is rffi.FLOAT: w_result...
d082314d74dd20d159be5322250d97006c626dea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d082314d74dd20d159be5322250d97006c626dea/structmember.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4707, 4419, 67, 967, 3335, 12, 2981, 16, 1081, 16, 341, 67, 5990, 4672, 3091, 273, 436, 1403, 77, 18, 4155, 12, 14142, 16, 1081, 13, 3091, 1011, 341, 67, 5990, 18, 71, 67, 3348, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4707, 4419, 67, 967, 3335, 12, 2981, 16, 1081, 16, 341, 67, 5990, 4672, 3091, 273, 436, 1403, 77, 18, 4155, 12, 14142, 16, 1081, 13, 3091, 1011, 341, 67, 5990, 18, 71, 67, 3348, 225,...
self.remove_img()
self.remove_img(True)
def fdisk_query(self, answer): if answer == True: self["statusbar"].text = _("Partitioning USB stick...") self["job_progressbar"].range = 1000 self["job_progressbar"].value = 100 self["job_progresslabel"].text = "5.00%" self.taskstring = "" self.container.appClosed.get().append(self.fdisk_finished) self.container.execu...
086e88ff090a0604aedd92e75ce5169d693c4e77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/086e88ff090a0604aedd92e75ce5169d693c4e77/downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 10863, 67, 2271, 12, 2890, 16, 5803, 4672, 309, 5803, 422, 1053, 30, 365, 9614, 2327, 3215, 6, 8009, 955, 273, 389, 2932, 7003, 310, 11836, 38, 25608, 7070, 13, 365, 9614, 4688, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 10863, 67, 2271, 12, 2890, 16, 5803, 4672, 309, 5803, 422, 1053, 30, 365, 9614, 2327, 3215, 6, 8009, 955, 273, 389, 2932, 7003, 310, 11836, 38, 25608, 7070, 13, 365, 9614, 4688, 6...
self.disableAnnounceAndDelete()
self.disable() self.delete() self._destroyDO()
def releaseDelayDelete(self, token): name = self._token2delayDeleteName.pop(token) assert self.notify.debug("releasing delayDelete '%s'" % name) if len(self._token2delayDeleteName) == 0: assert self.notify.debug( "delayDelete count for doId %s now 0" % (self.doId)) self.cr._removeDelayDeletedDO(self) if self.deleteImmi...
64d6756654620768c3307654be0844b2bc8a7a0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/64d6756654620768c3307654be0844b2bc8a7a0e/DistributedObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 6763, 2613, 12, 2890, 16, 1147, 4672, 508, 273, 365, 6315, 2316, 22, 10790, 2613, 461, 18, 5120, 12, 2316, 13, 1815, 365, 18, 12336, 18, 4148, 2932, 16599, 11730, 4624, 2613, 1995,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 6763, 2613, 12, 2890, 16, 1147, 4672, 508, 273, 365, 6315, 2316, 22, 10790, 2613, 461, 18, 5120, 12, 2316, 13, 1815, 365, 18, 12336, 18, 4148, 2932, 16599, 11730, 4624, 2613, 1995,...
if action.prune != 1:
if (result.vertices.has_key(action.parent) and action.prune != 1):
def getVersionGraph(self): """getVersionGraph() -> Graph Returns the version graph """ result = Graph() result.add_vertex(0)
c612d10998adb96f5455d9aea5f525a335452256 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/c612d10998adb96f5455d9aea5f525a335452256/vistrail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8343, 4137, 12, 2890, 4672, 3536, 588, 1444, 4137, 1435, 317, 5601, 2860, 326, 1177, 2667, 225, 3536, 563, 273, 5601, 1435, 563, 18, 1289, 67, 15281, 12, 20, 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, 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, 8343, 4137, 12, 2890, 4672, 3536, 588, 1444, 4137, 1435, 317, 5601, 2860, 326, 1177, 2667, 225, 3536, 563, 273, 5601, 1435, 563, 18, 1289, 67, 15281, 12, 20, 13, 2, -100, -100, -100, -...
n.change = n.new_bw - n.ns_bw[chosen_bw_idx]
n.change = n.new_bw - n.desc_bw[chosen_bw_idx]
def main(argv): TorUtil.read_config(argv[1]+"/scanner.1/bwauthority.cfg") TorUtil.loglevel = "NOTICE" s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((TorUtil.control_host,TorUtil.control_port)) c = TorCtl.Connection(s) c.debug(file(argv[1]+"/aggregate-control.log", "w", buffering=0)) c.authenticate_co...
3796ff0c6e67f29fedac9ecbf5e472cca690a1d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/3796ff0c6e67f29fedac9ecbf5e472cca690a1d5/aggregate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 23763, 1304, 18, 896, 67, 1425, 12, 19485, 63, 21, 3737, 6, 19, 26842, 18, 21, 19, 70, 91, 24763, 18, 7066, 7923, 23763, 1304, 18, 28189, 273, 315, 20559, 6, 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, 2774, 12, 19485, 4672, 23763, 1304, 18, 896, 67, 1425, 12, 19485, 63, 21, 3737, 6, 19, 26842, 18, 21, 19, 70, 91, 24763, 18, 7066, 7923, 23763, 1304, 18, 28189, 273, 315, 20559, 6, 2...
if InternalParameters.autoPlay: lastServer = localName idx = self.cbServer.findText(lastServer) if idx >= 0: self.cbServer.setCurrentIndex(idx)
def __init__(self): """self.servers is a list of tuples containing server and last playername""" QDialog.__init__(self, None) self.setWindowTitle(m18n('Login') + ' - Kajongg') self.setupUi()
203399968035613ebd10924e82c95b54b2dcf181 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/203399968035613ebd10924e82c95b54b2dcf181/humanclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 2890, 18, 14247, 353, 279, 666, 434, 10384, 4191, 1438, 471, 1142, 7291, 529, 8395, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 599, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 2890, 18, 14247, 353, 279, 666, 434, 10384, 4191, 1438, 471, 1142, 7291, 529, 8395, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 599, 13, 365, 18, ...
loglink = "%s/log.%s" % (t, func) logfile = "%s/log.%s.%s" % (t, func, str(os.getpid()))
def exec_func(func, d, dirs = None): """Execute an BB 'function'""" body = data.getVar(func, d) if not body: bb.warn("Function %s doesn't exist" % func) return flags = data.getVarFlags(func, d) for item in ['deps', 'check', 'interactive', 'python', 'cleandirs', 'dirs', 'lockfiles', 'fakeroot', 'task']: if not item in...
d14f9bf6c470907d77654a35b4b55f30bdc182ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/d14f9bf6c470907d77654a35b4b55f30bdc182ff/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 644, 12, 644, 16, 302, 16, 7717, 273, 599, 4672, 3536, 5289, 392, 21752, 296, 915, 11, 8395, 225, 1417, 273, 501, 18, 588, 1537, 12, 644, 16, 302, 13, 309, 486, 1417, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1196, 67, 644, 12, 644, 16, 302, 16, 7717, 273, 599, 4672, 3536, 5289, 392, 21752, 296, 915, 11, 8395, 225, 1417, 273, 501, 18, 588, 1537, 12, 644, 16, 302, 13, 309, 486, 1417, 30, ...
An interactive slider control, which can be used in conjunction
An interactive range slider control, which can be used in conjunction
def __init__(self, vmin, vmax=None, step_size=1, default=None, label=None, display_value=True): r""" An interactive slider control, which can be used in conjunction with the interact command.
5dee6800360a6857d894611450cab0a310ea04a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5dee6800360a6857d894611450cab0a310ea04a5/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 17501, 16, 17831, 33, 7036, 16, 2235, 67, 1467, 33, 21, 16, 805, 33, 7036, 16, 1433, 33, 7036, 16, 2562, 67, 1132, 33, 5510, 4672, 436, 8395, 1922, 126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 17501, 16, 17831, 33, 7036, 16, 2235, 67, 1467, 33, 21, 16, 805, 33, 7036, 16, 1433, 33, 7036, 16, 2562, 67, 1132, 33, 5510, 4672, 436, 8395, 1922, 126...
(filename, traceback.format_exc()))
(templatehelper.toUni(filename), traceback.format_exc()))
def delete(self): try: filename = self.status['filename'] except KeyError: return try: if os.path.isfile(filename): os.remove (filename) elif os.path.isdir(filename): shutil.rmtree (filename) except: logging.warn("Error deleting downloaded file: %s\n%s" % (filename, traceback.format_exc()))
a4bf6dccded7cffcfd18afb48fc493179cda96b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/a4bf6dccded7cffcfd18afb48fc493179cda96b0/downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 4672, 775, 30, 1544, 273, 365, 18, 2327, 3292, 3459, 3546, 1335, 4999, 30, 327, 775, 30, 309, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 1140, 18, 4479, 261, 3459, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 4672, 775, 30, 1544, 273, 365, 18, 2327, 3292, 3459, 3546, 1335, 4999, 30, 327, 775, 30, 309, 1140, 18, 803, 18, 291, 768, 12, 3459, 4672, 1140, 18, 4479, 261, 3459, ...
''', '')
''' return_error = error_template('', error_message, '')
def handle_exception(exc_info, error_stream, html=True, debug_mode=False, error_email=None, error_log=None, show_exceptions_in_wsgi_errors=False, error_email_from='errors@localhost', smtp_server='localhost', error_subject_prefix='', error_message=None, ): """ For exception handling outside of a web context Use like:: ...
eb2983924feafcde2d6b938ec544eeb87f514d6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/eb2983924feafcde2d6b938ec544eeb87f514d6c/errormiddleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 555, 67, 3256, 16, 1729, 33, 5510, 16, 1198, 67, 3188, 33, 8381, 16, 555, 67, 3652, 33, 7036, 16, 555, 67, 1330, 33, 7036, 16, 2405, 67, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4064, 12, 10075, 67, 1376, 16, 555, 67, 3256, 16, 1729, 33, 5510, 16, 1198, 67, 3188, 33, 8381, 16, 555, 67, 3652, 33, 7036, 16, 555, 67, 1330, 33, 7036, 16, 2405, 67, 11...
(objects, output_dir, libraries, library_dirs) = \ self._fix_link_args (objects, output_dir, takes_libs=1, libraries=libraries, library_dirs=library_dirs)
(objects, output_dir) = self._fix_object_args (objects, output_dir) (libraries, library_dirs, runtime_library_dirs) = \ self._fix_lib_args (libraries, library_dirs, runtime_library_dirs)
def link_executable (self, objects, output_progname, output_dir=None, libraries=None, library_dirs=None, debug=0, extra_preargs=None, extra_postargs=None): (objects, output_dir, libraries, library_dirs) = \ self._fix_link_args (objects, output_dir, takes_libs=1, libraries=libraries, library_dirs=library_dirs)
e21dabe2e0f93aef55bf6a5352527f4874a31489 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e21dabe2e0f93aef55bf6a5352527f4874a31489/unixccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 17751, 261, 2890, 16, 2184, 16, 876, 67, 14654, 529, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 17751, 261, 2890, 16, 2184, 16, 876, 67, 14654, 529, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, ...
base = dictmatrix() ext = dictmatrix()
base = dok_matrix() ext = dok_matrix()
def split(self, cols_or_rows, columns=1): # similar to take but returns two array, the extracted # columns plus the resulting array # assumes cols_or_rows is sorted base = dictmatrix() ext = dictmatrix() indx = int((columns == 1)) N = len(cols_or_rows) if indx: for key in self.keys(): num = searchsorted(cols_or_rows,...
b14552c4a5780327bf9ca40b82d78bbf0d40722e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/b14552c4a5780327bf9ca40b82d78bbf0d40722e/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 5347, 67, 280, 67, 3870, 16, 2168, 33, 21, 4672, 468, 7281, 358, 4862, 1496, 1135, 2795, 526, 16, 326, 9438, 468, 225, 2168, 8737, 326, 8156, 526, 468, 225, 13041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 5347, 67, 280, 67, 3870, 16, 2168, 33, 21, 4672, 468, 7281, 358, 4862, 1496, 1135, 2795, 526, 16, 326, 9438, 468, 225, 2168, 8737, 326, 8156, 526, 468, 225, 13041, ...
self._backup_database("pre80") if util.chatter: logging.info("converting pre 2.1 database") convert20database.convert(self.cursor) self._set_version(80)
current_version = self._get_variable(VERSION_KEY) if current_version >= 80: if util.chatter: logging.info("deleting dtv_objects table") self.cursor.execute("DROP TABLE dtv_objects") else: self._backup_database("pre80") if util.chatter: logging.info("converting pre 2.1 database") convert20database.convert(self.cur...
def _upgrade_20_database(self): self.cursor.execute("SELECT COUNT(*) FROM sqlite_master " "WHERE type='table' and name = 'dtv_objects'") if self.cursor.fetchone()[0] > 0: self._backup_database("pre80")
6100349c70454a648c74d7d2dd7a0f64ca7bcf5b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/6100349c70454a648c74d7d2dd7a0f64ca7bcf5b/storedatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15097, 67, 3462, 67, 6231, 12, 2890, 4672, 365, 18, 9216, 18, 8837, 2932, 4803, 12666, 24099, 4571, 16184, 67, 7525, 315, 315, 12299, 618, 2218, 2121, 11, 471, 508, 273, 296, 7510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15097, 67, 3462, 67, 6231, 12, 2890, 4672, 365, 18, 9216, 18, 8837, 2932, 4803, 12666, 24099, 4571, 16184, 67, 7525, 315, 315, 12299, 618, 2218, 2121, 11, 471, 508, 273, 296, 7510, ...
ui = PaiUI(args, config, ncolumns=options.ncolumns, rtl=options.rtl, progress_dlg=progress) run_in_gui_thread(ui.show)
sources = [os.path.realpath(p) for p in args if os.path.exists(p)] def _load(): filelist = FileList(sources, IMAGE_EXTENSIONS, progress.queue) run_in_gui_thread(_finished, filelist) @assert_gui_thread def _finished(filelist): progress.close() ui = PaiUI(sources, filelist, config, ncolumns=options.ncolumns, rtl=option...
def start(args, options, config): progress = ProgressDialog("Starting PAI...") ui = PaiUI(args, config, ncolumns=options.ncolumns, rtl=options.rtl, progress_dlg=progress) run_in_gui_thread(ui.show)
21d971c0b7dc42bbb9b614603d85894f1a3bbef1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6493/21d971c0b7dc42bbb9b614603d85894f1a3bbef1/pai.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 1968, 16, 702, 16, 642, 4672, 4007, 273, 10980, 6353, 2932, 11715, 15662, 45, 7070, 13, 225, 5550, 273, 306, 538, 18, 803, 18, 7688, 803, 12, 84, 13, 364, 293, 316, 833, 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, 787, 12, 1968, 16, 702, 16, 642, 4672, 4007, 273, 10980, 6353, 2932, 11715, 15662, 45, 7070, 13, 225, 5550, 273, 306, 538, 18, 803, 18, 7688, 803, 12, 84, 13, 364, 293, 316, 833, 309...
result = get_pydoc_html(pydoc_mod)
result, doc_loc = get_pydoc_html(pydoc_mod)
def test_html_doc(self): result = get_pydoc_html(pydoc_mod) mod_file = inspect.getabsfile(pydoc_mod) expected_html = expected_html_pattern % (mod_file, mod_file) if result != expected_html: print_diffs(expected_html, result) self.fail("outputs are not equal, see diff above")
a6fc4064d089da3415d48c6f288d58764628c361 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a6fc4064d089da3415d48c6f288d58764628c361/test_pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2620, 67, 2434, 12, 2890, 4672, 563, 16, 997, 67, 1829, 273, 336, 67, 2074, 2434, 67, 2620, 12, 2074, 2434, 67, 1711, 13, 681, 67, 768, 273, 5334, 18, 588, 5113, 768, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2620, 67, 2434, 12, 2890, 4672, 563, 16, 997, 67, 1829, 273, 336, 67, 2074, 2434, 67, 2620, 12, 2074, 2434, 67, 1711, 13, 681, 67, 768, 273, 5334, 18, 588, 5113, 768, 12, ...
self._snapshot = (dec_flags, input_chunk, len(decoded))
self._snapshot = (dec_flags, input_chunk)
def seek(self, cookie, whence=0): if not self._seekable: raise IOError("underlying stream is not seekable") if whence == 1: # seek relative to current position if cookie != 0: raise IOError("can't do nonzero cur-relative seeks") # Seeking to the current position should attempt to # sync the underlying buffer with the c...
dbe28e573e5c1227777db9dd630fac7732b81374 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dbe28e573e5c1227777db9dd630fac7732b81374/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 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, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 65...
l += "&lt"
l += "<"
def colorize(self,dico,style=None): file = open(self.path + "/" + self.name + ".gfs") out = open(self.path + "/" + self.name + ".gfs.html", 'w') path = "../" * (self.path.count("/") + 3) + "reference/" out.write("<html><head><title>\n" + self.name + ".gfs")
25721c81e5bffc18effe773473152807a6e53f10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1949/25721c81e5bffc18effe773473152807a6e53f10/gfs2tex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21077, 12, 2890, 16, 72, 10764, 16, 4060, 33, 7036, 4672, 585, 273, 1696, 12, 2890, 18, 803, 397, 4016, 397, 365, 18, 529, 397, 3552, 75, 2556, 7923, 596, 273, 1696, 12, 2890, 18, 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, 21077, 12, 2890, 16, 72, 10764, 16, 4060, 33, 7036, 4672, 585, 273, 1696, 12, 2890, 18, 803, 397, 4016, 397, 365, 18, 529, 397, 3552, 75, 2556, 7923, 596, 273, 1696, 12, 2890, 18, 80...
mirror_dir = os.path.join(self.config.dvcs_mirror_dir, self.get_module_basename() + '.git')
mirror_dir = get_git_mirror_directory(self.config.dvcs_mirror_dir, self.checkoutdir, self.unmirrored_module)
def update_dvcs_mirror(self, buildscript): if not self.config.dvcs_mirror_dir: return if self.config.nonetwork: return
c15d7b3b56e5b4c4b56c8d42a080a985c845f01d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/c15d7b3b56e5b4c4b56c8d42a080a985c845f01d/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 15679, 2143, 67, 27197, 12, 2890, 16, 1361, 4263, 4672, 309, 486, 365, 18, 1425, 18, 15679, 2143, 67, 27197, 67, 1214, 30, 327, 309, 365, 18, 1425, 18, 5836, 1572, 30, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 67, 15679, 2143, 67, 27197, 12, 2890, 16, 1361, 4263, 4672, 309, 486, 365, 18, 1425, 18, 15679, 2143, 67, 27197, 67, 1214, 30, 327, 309, 365, 18, 1425, 18, 5836, 1572, 30, 327, ...
print formatstr % (classifier.continuizedDomain.attributes[i].name, classifier.beta[i+1], classifier.beta_se[i+1], classifier.wald_Z[i+1], abs(classifier.P[i+1]), exp(classifier.beta[i+1]))
print formatstr % (classifier.continuizedDomain.attributes[i].name, classifier.beta[i+1], classifier.beta_se[i+1], classifier.wald_Z[i+1], abs(classifier.P[i+1]), math.exp(classifier.beta[i+1]))
def printOUT(classifier): # print out class values print print "class attribute = " + classifier.domain.classVar.name print "class values = " + str(classifier.domain.classVar.values) print # get the longest attribute name longest=0 for at in classifier.continuizedDomain.attributes: if len(at.name)>longest: longest=len...
0e4f76dd13d5f45584af852f0427ed96b8901487 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0e4f76dd13d5f45584af852f0427ed96b8901487/orngLR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 5069, 12, 1106, 1251, 4672, 468, 1172, 596, 667, 924, 1172, 1172, 315, 1106, 1566, 273, 315, 397, 14622, 18, 4308, 18, 1106, 1537, 18, 529, 1172, 315, 1106, 924, 273, 315, 397, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 5069, 12, 1106, 1251, 4672, 468, 1172, 596, 667, 924, 1172, 1172, 315, 1106, 1566, 273, 315, 397, 14622, 18, 4308, 18, 1106, 1537, 18, 529, 1172, 315, 1106, 924, 273, 315, 397, 6...
bp = bdb.Breakpoint.bpbynumber[int(i)]
try: i = int(i) except ValueError: print 'Breakpoint index %r is not a number' % i continue if not (0 <= i < len(bdb.Breakpoint.bpbynumber)): print 'No breakpoint numbered', i continue bp = bdb.Breakpoint.bpbynumber[i]
def do_disable(self, arg): args = arg.split() for i in args: bp = bdb.Breakpoint.bpbynumber[int(i)] if bp: bp.disable()
b1f8bab6542635cd32dfbebde3839f86819548ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b1f8bab6542635cd32dfbebde3839f86819548ab/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 8394, 12, 2890, 16, 1501, 4672, 833, 273, 1501, 18, 4939, 1435, 364, 277, 316, 833, 30, 775, 30, 277, 273, 509, 12, 77, 13, 1335, 2068, 30, 1172, 296, 20552, 770, 738, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 8394, 12, 2890, 16, 1501, 4672, 833, 273, 1501, 18, 4939, 1435, 364, 277, 316, 833, 30, 775, 30, 277, 273, 509, 12, 77, 13, 1335, 2068, 30, 1172, 296, 20552, 770, 738, 86, ...
printError(0, "%s: Unknow rpm package architecture %s" % (pkg.source, pkg["arch"]))
printError("%s: Unknow rpm package architecture %s" % (pkg.source, pkg["arch"]))
def filterArchList(list, arch=None): # stage 1: filter packages which are not in compat arch if arch != None and arch != "noarch": error = 0 for pkg in list: pkg = list[i] if pkg["arch"] not in possible_archs: error = 1 printError(0, "%s: Unknow rpm package architecture %s" % (pkg.source, pkg["arch"])) if pkg["arch"] !...
09db47e95c8e38720cba62816e23ee2235a3c637 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/09db47e95c8e38720cba62816e23ee2235a3c637/functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12269, 682, 12, 1098, 16, 6637, 33, 7036, 4672, 468, 6009, 404, 30, 1034, 5907, 1492, 854, 486, 316, 4796, 6637, 309, 6637, 480, 599, 471, 6637, 480, 315, 2135, 991, 6877, 555, 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, 1034, 12269, 682, 12, 1098, 16, 6637, 33, 7036, 4672, 468, 6009, 404, 30, 1034, 5907, 1492, 854, 486, 316, 4796, 6637, 309, 6637, 480, 599, 471, 6637, 480, 315, 2135, 991, 6877, 555, 2...
matchExpr = Group( FollowedBy(lastExpr + opExpr) + lastExpr + OneOrMore( opExpr ) )
matchExpr = FollowedBy(lastExpr + opExpr) + Group( lastExpr + OneOrMore( opExpr ) )
def operatorPrecedence( baseExpr, opList ): """Helper method for constructing grammars of expressions made up of operators working in a precedence hierarchy. Operators may be unary or binary, left- or right-associative. Parse actions can also be attached to operator expressions. Parameters: - baseExpr - expression r...
963e26a9e74b3f47c686af73d9c00f2f71392bf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/963e26a9e74b3f47c686af73d9c00f2f71392bf6/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3726, 1386, 24092, 12, 1026, 4742, 16, 27571, 262, 30, 3536, 2276, 707, 364, 27389, 6473, 87, 434, 8041, 7165, 731, 434, 12213, 5960, 316, 279, 14172, 9360, 18, 225, 7692, 3062, 2026, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3726, 1386, 24092, 12, 1026, 4742, 16, 27571, 262, 30, 3536, 2276, 707, 364, 27389, 6473, 87, 434, 8041, 7165, 731, 434, 12213, 5960, 316, 279, 14172, 9360, 18, 225, 7692, 3062, 2026, 50...
p = document.body[i+2].find("islongtable")
p = document.body[i + 2].find("islongtable")
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_token(document.body, "</cell>", i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular cell.") i = j continue #...
bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
sage: ecm.factor((2^197 + 1)/3)
sage: ecm.factor((2^197 + 1)/3)
def get_last_params(self): """ Returns the parameters (including the curve) of the last ecm run. In the case that the number was factored successfully, this will return the parameters that yielded the factorization. INPUT: none OUTPUT: The parameters for the most recent factorization. EXAMPLES: sage: ecm.factor((2^1...
d0b459e5a57c91eabccd257b526321e159fcbc64 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d0b459e5a57c91eabccd257b526321e159fcbc64/ecm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2722, 67, 2010, 12, 2890, 4672, 3536, 2860, 326, 1472, 261, 31348, 326, 8882, 13, 434, 326, 1142, 6557, 81, 1086, 18, 657, 326, 648, 716, 326, 1300, 1703, 5410, 7653, 4985, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2722, 67, 2010, 12, 2890, 4672, 3536, 2860, 326, 1472, 261, 31348, 326, 8882, 13, 434, 326, 1142, 6557, 81, 1086, 18, 657, 326, 648, 716, 326, 1300, 1703, 5410, 7653, 4985, 16...
conv = inches *1.0 / dpi
conv = inches *1.0 / _dpi
def subplot(Numy,Numx,win=0,pw=None,ph=None,hsep=100,vsep=100,color='black',frame=0,fontsize=8,font=None,dpi=100,ticks=1): # Use gist.plsys to change coordinate systems # all inputs (except fontsize) given as pixels, gist wants # things in normalized device # coordinate. Window is brought up with center of window a...
52cc5149afc80e6ec63ff8f313429740b6845b1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/52cc5149afc80e6ec63ff8f313429740b6845b1a/Mplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19826, 12, 2578, 93, 16, 2578, 92, 16, 8082, 33, 20, 16, 14921, 33, 7036, 16, 844, 33, 7036, 16, 76, 10814, 33, 6625, 16, 90, 10814, 33, 6625, 16, 3266, 2218, 11223, 2187, 3789, 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, 19826, 12, 2578, 93, 16, 2578, 92, 16, 8082, 33, 20, 16, 14921, 33, 7036, 16, 844, 33, 7036, 16, 76, 10814, 33, 6625, 16, 90, 10814, 33, 6625, 16, 3266, 2218, 11223, 2187, 3789, 33, ...
sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found" % mapFileName)
sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found\n" % defaultMapName)
def checkextensions(unknown, extra_inis, prefix): # Create a table of frozen extensions defaultMapName = os.path.join( os.path.split(sys.argv[0])[0], "extensions_win32.ini") if not os.path.isfile(defaultMapName): sys.stderr.write("WARNING: %s can not be found - standard extensions may not be found" % mapFileName) else...
dbbf956351e4ff4e4a209068c2dbcfb929a1ad19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dbbf956351e4ff4e4a209068c2dbcfb929a1ad19/checkextensions_win32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 9489, 12, 8172, 16, 2870, 67, 267, 291, 16, 1633, 4672, 468, 1788, 279, 1014, 434, 12810, 4418, 225, 805, 863, 461, 273, 1140, 18, 803, 18, 5701, 12, 1140, 18, 803, 18, 4939, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 9489, 12, 8172, 16, 2870, 67, 267, 291, 16, 1633, 4672, 468, 1788, 279, 1014, 434, 12810, 4418, 225, 805, 863, 461, 273, 1140, 18, 803, 18, 5701, 12, 1140, 18, 803, 18, 4939, 12...
self._displayMessage("No (%s) for [%s]" % (key, program['title']))
if not mirodetails: filename = program['title'] else: filename = mirodetails[u'moviename'] self._displayMessage("No (%s) for [%s]" % (key, filename)) if mirodetails: self.updateMiroVideo(program)
def _downloadScheduledRecordedGraphics(self): '''Get Scheduled and Recorded programs and get their graphics if not already downloaded return (nothing is returned) ''' # Initialize reporting stats total_progs_checked = 0 total_posters_found = 0 total_banners_found = 0 total_fanart_found = 0 total_posters_downloaded = 0 ...
da58d67ff802989f12b584ed8dfcff2d3581d752 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/da58d67ff802989f12b584ed8dfcff2d3581d752/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7813, 10660, 426, 3850, 785, 17558, 12, 2890, 4672, 9163, 967, 17286, 471, 868, 3850, 785, 25038, 471, 336, 3675, 17313, 309, 486, 1818, 13549, 327, 261, 30874, 353, 2106, 13, 9163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7813, 10660, 426, 3850, 785, 17558, 12, 2890, 4672, 9163, 967, 17286, 471, 868, 3850, 785, 25038, 471, 336, 3675, 17313, 309, 486, 1818, 13549, 327, 261, 30874, 353, 2106, 13, 9163, ...
LIBS_GUI = ['core', 'html', 'gl']
LIBS_GUI = ['core', 'adv', 'html', 'gl']
def mk_wxid(id): """Creates wxWindows library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead of wxid.""" if id.endswith('dll') or id.endswith('lib'): wxid = id[:-3] else: wxid = id return wxid
13cb46e0b6fe6d404c6e28bec1744a5fc30356b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13cb46e0b6fe6d404c6e28bec1744a5fc30356b9/wxwin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 67, 91, 6212, 12, 350, 4672, 3536, 2729, 7075, 10399, 5313, 2756, 628, 324, 911, 768, 1018, 1599, 716, 13040, 333, 15797, 30, 463, 4503, 87, 679, 598, 296, 27670, 2187, 760, 14732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 67, 91, 6212, 12, 350, 4672, 3536, 2729, 7075, 10399, 5313, 2756, 628, 324, 911, 768, 1018, 1599, 716, 13040, 333, 15797, 30, 463, 4503, 87, 679, 598, 296, 27670, 2187, 760, 14732,...
raise IOError, "bad operation for mode %r" % self._mode
raise IOError("bad operation for mode %r" % self._mode)
def _check(self, mode=None): """Check if TarFile is still open, and if the operation's mode corresponds to TarFile's mode. """ if self.closed: raise IOError, "%s is closed" % self.__class__.__name__ if mode is not None and self._mode not in mode: raise IOError, "bad operation for mode %r" % self._mode
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2890, 16, 1965, 33, 7036, 4672, 3536, 1564, 309, 20334, 812, 353, 4859, 1696, 16, 471, 309, 326, 1674, 1807, 1965, 13955, 358, 20334, 812, 1807, 1965, 18, 3536, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2890, 16, 1965, 33, 7036, 4672, 3536, 1564, 309, 20334, 812, 353, 4859, 1696, 16, 471, 309, 326, 1674, 1807, 1965, 13955, 358, 20334, 812, 1807, 1965, 18, 3536, 309, 365, ...
self.tab('\t<param name="Name" value="%s">\n' % self.saved_get()) self.tab('\t</OBJECT>\n')
title = cgi.escape(self.saved_get(), True) path = self.path + '/' + self.hrefstack.pop() if len(self.hrefstack) == 0: self.tab(object_sitemap % (title, path))
def anchor_end(self): if self.proc: self.tab('\t<param name="Name" value="%s">\n' % self.saved_get()) self.tab('\t</OBJECT>\n')
454540774618c35374ecd0042ab689692040c425 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/454540774618c35374ecd0042ab689692040c425/prechm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6984, 67, 409, 12, 2890, 4672, 309, 365, 18, 9381, 30, 365, 18, 7032, 2668, 64, 88, 32, 891, 508, 1546, 461, 6, 460, 11613, 87, 6, 5333, 82, 11, 738, 365, 18, 14077, 67, 588, 10756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6984, 67, 409, 12, 2890, 4672, 309, 365, 18, 9381, 30, 365, 18, 7032, 2668, 64, 88, 32, 891, 508, 1546, 461, 6, 460, 11613, 87, 6, 5333, 82, 11, 738, 365, 18, 14077, 67, 588, 10756...
dsquared = []
triggers_within_epsilon = coincInspiralTable()
def improvedMetricHistogram(self, candidate): """ Return distance squared between candidate and coincident triggers using the following metric
de2e9d5312290205808cffee242913dd495127b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/de2e9d5312290205808cffee242913dd495127b5/CoincInspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13069, 2155, 5396, 12874, 12, 2890, 16, 5500, 4672, 3536, 2000, 3888, 21778, 3086, 5500, 471, 13170, 71, 6392, 11752, 1450, 326, 3751, 3999, 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, 0, 0, 0, 0, 0, 0, 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, 13069, 2155, 5396, 12874, 12, 2890, 16, 5500, 4672, 3536, 2000, 3888, 21778, 3086, 5500, 471, 13170, 71, 6392, 11752, 1450, 326, 3751, 3999, 2, -100, -100, -100, -100, -100, -100, -100, -1...
self.parser.parseError(_("Unexpected start tag token (" + name +\ ") in the frameset phase."))
self.parser.parseError(_(u"Unexpected start tag token (" + name +\ u") in the frameset phase. Ignored"))
def startTagOther(self, name, attributes): self.parser.parseError(_("Unexpected start tag token (" + name +\ ") in the frameset phase."))
1f8d4e2171f1f6a5e857b84c62ee3e00dcf40348 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/1f8d4e2171f1f6a5e857b84c62ee3e00dcf40348/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 4288, 18, 2670, 668, 24899, 2932, 7762, 787, 1047, 1147, 7566, 397, 508, 397, 64, 9369, 316, 326, 7793, 278, 6855, 1199, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 1805, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 4288, 18, 2670, 668, 24899, 2932, 7762, 787, 1047, 1147, 7566, 397, 508, 397, 64, 9369, 316, 326, 7793, 278, 6855, 1199, 37...
return urllib2.urlopen(urllib2.Request(url, data, headers))
return self.opener.open(urllib2.Request(url, data, headers))
def fetch(self, url, data = None, headers = {}): if len(self.fost): signed, signed_headers = 'X-FOST-Headers', [] for header, value in self.fost['headers'].items(): signed += ' ' + header signed_headers.append(value) headers[ header ] = value utcnow = unicode(datetime.datetime.utcnow()) document = '%s %s\n%s\n%s\n%s' %...
57b90803c7a1b878c8c1d128cb81b086d6f0bb74 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7956/57b90803c7a1b878c8c1d128cb81b086d6f0bb74/useragent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 12, 2890, 16, 880, 16, 501, 273, 599, 16, 1607, 273, 2618, 4672, 309, 562, 12, 2890, 18, 617, 334, 4672, 6726, 16, 6726, 67, 2485, 273, 296, 60, 17, 3313, 882, 17, 3121, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 12, 2890, 16, 880, 16, 501, 273, 599, 16, 1607, 273, 2618, 4672, 309, 562, 12, 2890, 18, 617, 334, 4672, 6726, 16, 6726, 67, 2485, 273, 296, 60, 17, 3313, 882, 17, 3121, 2187, ...
if lexists(root_dpath): if not isdir(root_dpath):
if not isdir(root_dpath): if exists(root_dpath):
def __str__(self): return "OVERLAY ERROR @ %s: %s" % (self.path, self.exc)
d69d52789f715a949ef532bd57c7267144f78e74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/d69d52789f715a949ef532bd57c7267144f78e74/restore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 12959, 7868, 5475, 632, 738, 87, 30, 738, 87, 6, 738, 261, 2890, 18, 803, 16, 365, 18, 10075, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 701, 972, 12, 2890, 4672, 327, 315, 12959, 7868, 5475, 632, 738, 87, 30, 738, 87, 6, 738, 261, 2890, 18, 803, 16, 365, 18, 10075, 13, 2, -100, -100, -100, -100, -100, -100, -10...
self.selenium.click("//input[@value='Add new role']")
self.selenium.click("//input[@value='Add']")
def test_add_role(self): self.selenium.open("/portal/admin_roles_html", True) self.selenium.type("//input[@id='input-role']", "SOMErOLE") self.selenium.click("//input[@value='Add new role']") self.selenium.wait_for_page_to_load("3000") assert self.selenium.is_text_present('SOMErOLE') self.selenium.open("/portal/admin_e...
71892d2930a489d2b970517fd8ea8b5c56e114e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/71892d2930a489d2b970517fd8ea8b5c56e114e6/test_user_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1289, 67, 4615, 12, 2890, 4672, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 3113, 1053, 13, 365, 18, 1786, 17327, 18, 723, 2932, 759, 2630,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 4615, 12, 2890, 4672, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 3113, 1053, 13, 365, 18, 1786, 17327, 18, 723, 2932, 759, 2630,...
def refreshGUI(self, signal = ('set', None), **arguments): updatedAttribute = signal[1] if updatedAttribute is None or updatedAttribute == 'color': if self.visibles.haveEqualAttr('color'): red, green, blue = self.visibles[0].color() self._colorPicker.SetColour(wx.Color(red * 255, green * 255, blue * 255, 255)) self._c...
def refreshGUI(self, signal = ('set', None)): if any(self.visibles): updatedAttribute = signal[1] if updatedAttribute is None or updatedAttribute == 'color': if self.visibles.haveEqualAttr('color'): red, green, blue = self.visibles[0].color() self._colorPicker.SetColour(wx.Color(red * 255, green * 255, blue * 255, 255...
def refreshGUI(self, signal = ('set', None), **arguments): updatedAttribute = signal[1] if updatedAttribute is None or updatedAttribute == 'color': if self.visibles.haveEqualAttr('color'): red, green, blue = self.visibles[0].color() self._colorPicker.SetColour(wx.Color(red * 255, green * 255, blue * 255, 255)) self._c...
8eb0d1e612a9d0e870bd8001c6413413ad805b2d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/8eb0d1e612a9d0e870bd8001c6413413ad805b2d/AppearanceInspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 43, 5370, 12, 2890, 16, 4277, 273, 7707, 542, 2187, 599, 3631, 2826, 7099, 4672, 3526, 1499, 273, 4277, 63, 21, 65, 225, 309, 3526, 1499, 353, 599, 578, 3526, 1499, 422, 296, 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, 4460, 43, 5370, 12, 2890, 16, 4277, 273, 7707, 542, 2187, 599, 3631, 2826, 7099, 4672, 3526, 1499, 273, 4277, 63, 21, 65, 225, 309, 3526, 1499, 353, 599, 578, 3526, 1499, 422, 296, 326...
"/../rdiff-backup -v3 --no-compare-inode "
"/../rdiff-backup -v9 --no-compare-inode "
def reset_schema(self): self.rb_schema = (SourceDir + "/../rdiff-backup -v3 --no-compare-inode " "--remote-schema './chdir-wrapper2 %s' ")
3e5358078ea14b5db8cca92a7648aca1c711ce3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6202/3e5358078ea14b5db8cca92a7648aca1c711ce3d/finaltest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 67, 4821, 12, 2890, 4672, 365, 18, 6731, 67, 4821, 273, 261, 1830, 1621, 397, 2206, 6216, 86, 5413, 17, 9572, 300, 90, 29, 1493, 2135, 17, 9877, 17, 267, 390, 315, 5238, 7222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 67, 4821, 12, 2890, 4672, 365, 18, 6731, 67, 4821, 273, 261, 1830, 1621, 397, 2206, 6216, 86, 5413, 17, 9572, 300, 90, 29, 1493, 2135, 17, 9877, 17, 267, 390, 315, 5238, 7222, ...
with support.check_warnings():
with warnings.catch_warnings(): warnings.simplefilter('ignore', BytesWarning)
def test_unquoting(self): # Make sure unquoting of all ASCII values works escape_list = [] for num in range(128): given = hexescape(chr(num)) expect = chr(num) result = urllib.parse.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) result = urllib.parse.unquote_plus(given) ...
99e472e84dbec06b54c1e72fe04abd510c847e03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/99e472e84dbec06b54c1e72fe04abd510c847e03/test_urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 9270, 310, 12, 2890, 4672, 468, 4344, 3071, 640, 9270, 310, 434, 777, 11768, 924, 6330, 4114, 67, 1098, 273, 5378, 364, 818, 316, 1048, 12, 10392, 4672, 864, 273, 3827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 9270, 310, 12, 2890, 4672, 468, 4344, 3071, 640, 9270, 310, 434, 777, 11768, 924, 6330, 4114, 67, 1098, 273, 5378, 364, 818, 316, 1048, 12, 10392, 4672, 864, 273, 3827, ...
headers = self.getHeaderNoCheck()
headers = self.getHeader() if refreshing: self.oauth_token_secret = "" headers["Authorization"] += ',oauth_session_handle="%s"' % self.access_token['oauth_session_handle'] print headers
def updateTokenAccess(self): """Sign all keys to get a new token and token secret, must redo after oauth_expires_in second """ headers = self.getHeaderNoCheck() req = urllib2.Request(self.oauth_server, None, headers) try: o = urllib2.urlopen(req) resp = o.read() self.access_token = dict([el.split("=") for el in resp.sp...
057b1c58037210d914f183cca7c24775558fe983 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2802/057b1c58037210d914f183cca7c24775558fe983/gtym.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1345, 1862, 12, 2890, 4672, 3536, 2766, 777, 1311, 358, 336, 279, 394, 1147, 471, 1147, 4001, 16, 1297, 24524, 1839, 6924, 67, 12431, 67, 267, 2205, 3536, 1607, 273, 365, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1345, 1862, 12, 2890, 4672, 3536, 2766, 777, 1311, 358, 336, 279, 394, 1147, 471, 1147, 4001, 16, 1297, 24524, 1839, 6924, 67, 12431, 67, 267, 2205, 3536, 1607, 273, 365, 18, 588, ...
input = file(largeBinary, 'r')
input = file(largeBinary, 'rb')
def testBZ2Compressed(self): khepburn = self.rep.find('//CineGuide/KHepburn') self.assert_(khepburn is not None)
092405b37ca3958ac2dc9e1f7d69f5c325481cf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/092405b37ca3958ac2dc9e1f7d69f5c325481cf7/TestBinary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 38, 62, 22, 16841, 12, 2890, 4672, 417, 580, 5733, 321, 273, 365, 18, 14462, 18, 4720, 2668, 759, 39, 558, 17424, 19, 47, 44, 881, 70, 321, 6134, 365, 18, 11231, 67, 12, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 38, 62, 22, 16841, 12, 2890, 4672, 417, 580, 5733, 321, 273, 365, 18, 14462, 18, 4720, 2668, 759, 39, 558, 17424, 19, 47, 44, 881, 70, 321, 6134, 365, 18, 11231, 67, 12, 79, ...
return self.templates
return self.categories
def getCategories(self, force=False): """Gets all list of all the categories on the page force - load the list even if we already loaded it before """ if self.categories and not force: return self.templates if self.pageid == 0 and not self.title: self.setPageInfo() if not self.exists: raise NoPage params = { 'action'...
1f7b960f4fb9a908223c0d57963c3239a9e961f0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10544/1f7b960f4fb9a908223c0d57963c3239a9e961f0/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 4030, 12, 2890, 16, 2944, 33, 8381, 4672, 3536, 3002, 777, 666, 434, 777, 326, 6477, 603, 326, 1363, 225, 2944, 300, 1262, 326, 666, 5456, 309, 732, 1818, 4203, 518, 1865, 225, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 4030, 12, 2890, 16, 2944, 33, 8381, 4672, 3536, 3002, 777, 666, 434, 777, 326, 6477, 603, 326, 1363, 225, 2944, 300, 1262, 326, 666, 5456, 309, 732, 1818, 4203, 518, 1865, 225, 3...
image_list = page.image_glob(base_name+'_playground_rho_*.png')
image_list = page.image_glob(base_name+'4_playground_rho_*.png')
def parse_command_line(): parser = OptionParser(version = "%prog CVS $Id$", usage = "%prog [options] [file ...]", description = "%prog computes mass/mass upperlimit") parser.add_option("--webserver", help = "Set the webserver path. Required. Example https://ldas-jobs.ligo.caltech.edu/~channa/highmass_months_23-24_sum...
b77ba7aef5872e14b48ee71299ce0ae987743808 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b77ba7aef5872e14b48ee71299ce0ae987743808/make_summary_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3076, 67, 1369, 13332, 2082, 273, 18862, 12, 1589, 273, 2213, 14654, 385, 14640, 271, 548, 8, 3113, 4084, 273, 2213, 14654, 306, 2116, 65, 306, 768, 1372, 65, 3113, 2477, 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, 1109, 67, 3076, 67, 1369, 13332, 2082, 273, 18862, 12, 1589, 273, 2213, 14654, 385, 14640, 271, 548, 8, 3113, 4084, 273, 2213, 14654, 306, 2116, 65, 306, 768, 1372, 65, 3113, 2477, 273, ...
'name': _("%s Mail Form") % template_obj.name,
'name': template_obj.name,
def create_action(self, cr, uid, ids, context): vals = {} template_obj = self.browse(cr, uid, ids)[0] src_obj = template_obj.object_name.model vals['ref_ir_act_window'] = self.pool.get('ir.actions.act_window').create(cr, uid, { 'name': _("%s Mail Form") % template_obj.name, 'type': 'ir.actions.act_window', 'res_model':...
3ea3c8107e5e5e70fd9c893a0ad21e8f9019655c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3ea3c8107e5e5e70fd9c893a0ad21e8f9019655c/email_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1128, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 5773, 273, 2618, 1542, 67, 2603, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 25146, 20, 65, 1705, 67, 260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1128, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 4672, 5773, 273, 2618, 1542, 67, 2603, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 25146, 20, 65, 1705, 67, 260...
self.o.assy.unpickparts() self.selected_chunk = None
self.unpick_selected_chunk()
def init_gui(self): self.o.setCursor(self.w.MoveSelectCursor) # load default cursor for MODIFY mode self.w.toolsFuseChunksAction.setOn(1) # toggle on the Fuse Chunks icon self.w.fuseChunksDashboard.show() # show the Fuse Chunks dashboard self.w.connect(self.w.makeBondsPB,SIGNAL("clicked()"),self.make_bonds) self.w.conn...
bbb7e6efcf31d9718acda8efdc5aea1e1aab6aa9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/bbb7e6efcf31d9718acda8efdc5aea1e1aab6aa9/fusechunksMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 20292, 12, 2890, 4672, 365, 18, 83, 18, 542, 6688, 12, 2890, 18, 91, 18, 7607, 3391, 6688, 13, 468, 1262, 805, 3347, 364, 8663, 12096, 1965, 365, 18, 91, 18, 6642, 42, 1202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 20292, 12, 2890, 4672, 365, 18, 83, 18, 542, 6688, 12, 2890, 18, 91, 18, 7607, 3391, 6688, 13, 468, 1262, 805, 3347, 364, 8663, 12096, 1965, 365, 18, 91, 18, 6642, 42, 1202...
query2 = """SELECT g.id, g.name FROM usergroup g, user_usergroup ug
query2 = """SELECT g.id, g.name FROM usergroup g, user_usergroup ug
def get_groupnames_like(uid, pattern): """Get groupnames like pattern. Will return only groups that user is allowed to see """ groups = {} if pattern: query1 = "SELECT id, name FROM usergroup WHERE name RLIKE '%s' AND join_policy like 'V%%'" pattern = escape_string(pattern) res = run_sql(query1 % pattern) # The line be...
13dadf0fcb63f21c72c3528156245972761c7633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/13dadf0fcb63f21c72c3528156245972761c7633/webmessage_dblayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1655, 1973, 67, 5625, 12, 1911, 16, 1936, 4672, 3536, 967, 1041, 1973, 3007, 1936, 18, 9980, 327, 1338, 3252, 716, 729, 353, 2935, 358, 2621, 3536, 3252, 273, 2618, 309, 1936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1655, 1973, 67, 5625, 12, 1911, 16, 1936, 4672, 3536, 967, 1041, 1973, 3007, 1936, 18, 9980, 327, 1338, 3252, 716, 729, 353, 2935, 358, 2621, 3536, 3252, 273, 2618, 309, 1936, ...
self.normalized_calc_f.normalizer_for_miller_array
self.normalized_obs_f.normalizer_for_miller_array
def __init__(self, miller_obs, miller_calc, r_free_flags, width=None, number=100, auto_kernel=True, n_points=20, n_terms=13): self.n_terms=n_terms self.miller_obs = miller_obs.map_to_asu() self.miller_calc = abs(miller_calc.map_to_asu()) self.r_free_flags = r_free_flags.map_to_asu()
8f777ca692bd3035a09e63f2cf7afa68a631acc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/8f777ca692bd3035a09e63f2cf7afa68a631acc4/sigmaa_estimation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 312, 24462, 67, 10992, 16, 312, 24462, 67, 12448, 16, 436, 67, 9156, 67, 7133, 16, 1835, 33, 7036, 16, 1300, 33, 6625, 16, 3656, 67, 8111, 33, 5510, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 312, 24462, 67, 10992, 16, 312, 24462, 67, 12448, 16, 436, 67, 9156, 67, 7133, 16, 1835, 33, 7036, 16, 1300, 33, 6625, 16, 3656, 67, 8111, 33, 5510, 16...
log("Whole Values: " + ",".join([str(v) for v in wholeValues]))
log("Whole Values, " + ",".join([str(v) for v in wholeValues]))
def makeFrapFigure(session, commandArgs): gateway = session.createGateway() roiService = session.getRoiService() queryService = session.getQueryService() updateService = session.getUpdateService() rawFileStore = session.createRawFileStore() rawPixelStore = session.createRawPixelsStore() renderingEngine = session.creat...
566dc854fdc857cddb1a005f0466810727d27024 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/566dc854fdc857cddb1a005f0466810727d27024/frapFigure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 42, 1266, 42, 15906, 12, 3184, 16, 1296, 2615, 4672, 225, 6878, 273, 1339, 18, 2640, 5197, 1435, 25017, 1179, 273, 1339, 18, 588, 54, 11359, 1179, 1435, 843, 1179, 273, 1339, 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, 1221, 42, 1266, 42, 15906, 12, 3184, 16, 1296, 2615, 4672, 225, 6878, 273, 1339, 18, 2640, 5197, 1435, 25017, 1179, 273, 1339, 18, 588, 54, 11359, 1179, 1435, 843, 1179, 273, 1339, 18, ...
conclusions.add(where, GPS.lat, f.newLiteral("%f" % lat)) conclusions.add(where, GPS.longitude, f.newLiteral("%f" % long))
conclusions.add(where, GPS.lat, lat) conclusions.add(where, GPS.long, long)
def compareByTime(a, b): if a[0] < b[0]: return -1 if a[0] > b[0]: return +1 return 0
7597d55bb6bcd391d706b19da6d10d0f9996952f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/7597d55bb6bcd391d706b19da6d10d0f9996952f/day.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 858, 950, 12, 69, 16, 324, 4672, 309, 279, 63, 20, 65, 411, 324, 63, 20, 14542, 327, 300, 21, 309, 279, 63, 20, 65, 405, 324, 63, 20, 14542, 327, 397, 21, 327, 374, 282, 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, 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, 3400, 858, 950, 12, 69, 16, 324, 4672, 309, 279, 63, 20, 65, 411, 324, 63, 20, 14542, 327, 300, 21, 309, 279, 63, 20, 65, 405, 324, 63, 20, 14542, 327, 397, 21, 327, 374, 282, 2,...
profilers = self.job.profilers if not profilers.only(): for i in range(iterations): output = utils.system_output('%s/src/current/iozone %s' % (self.srcdir, args)) self.__format_results(output) if profilers.present(): profilers.start(self) output = utils.system_output('%s/src/current/iozone %s' % (self.srcdir, args)) ...
output = utils.system_output('%s/src/current/iozone %s' % (self.srcdir, args)) self.__format_results(output)
def execute(self, dir = None, iterations=1, args = None): self.keyval = open(os.path.join(self.resultsdir, 'keyval'), 'w') if not dir: dir = self.tmpdir os.chdir(dir) if not args: args = '-a' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): output = utils.system_output('%s/src/current...
548562c1efd77e9f77ad94c8f542db3581385dc3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/548562c1efd77e9f77ad94c8f542db3581385dc3/iozone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1577, 273, 599, 16, 11316, 33, 21, 16, 833, 273, 599, 4672, 365, 18, 856, 1125, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 4717, 1214, 16, 296, 856, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1577, 273, 599, 16, 11316, 33, 21, 16, 833, 273, 599, 4672, 365, 18, 856, 1125, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 2890, 18, 4717, 1214, 16, 296, 856, 1...
cf_norm.upper(),
s_norm,
def Play(self, mode, tuner_channel=None, channel_change=0):
d1a3b23ba3f0716b6c3098e7625d8846fa8a07e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d1a3b23ba3f0716b6c3098e7625d8846fa8a07e0/tvtime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19592, 12, 2890, 16, 1965, 16, 268, 29640, 67, 4327, 33, 7036, 16, 1904, 67, 3427, 33, 20, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19592, 12, 2890, 16, 1965, 16, 268, 29640, 67, 4327, 33, 7036, 16, 1904, 67, 3427, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for coll in argd['c'] + [argd['cc']] + list(involved_collections):
for coll in involved_collections:
def __call__(self, req, form): """ Perform a search. """ argd = wash_search_urlargd(form)
5145f1c433f5f54df24be0d09f4d4f34c86cebd4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/5145f1c433f5f54df24be0d09f4d4f34c86cebd4/websearch_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 11217, 279, 1623, 18, 3536, 1501, 72, 273, 341, 961, 67, 3072, 67, 718, 3175, 72, 12, 687, 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, 1001, 1991, 972, 12, 2890, 16, 1111, 16, 646, 4672, 3536, 11217, 279, 1623, 18, 3536, 1501, 72, 273, 341, 961, 67, 3072, 67, 718, 3175, 72, 12, 687, 13, 2, -100, -100, -100, -100, -1...
before the adaptive refinement code considers it significant. See the documentation for plot() for more information.
before the adaptive refinement code considers it significant. See the documentation further below for more information, starting at "the algorithm used to insert".
def plot(funcs, *args, **kwds): r""" Use plot by writing ``plot(X, ...)`` where `X` is a Sage object (or list of Sage objects) that either is callable and returns numbers that can be coerced to floats, or has a plot method that returns a ``GraphicPrimitive`` object. Type ``plot.options`` for a dictionary of the defa...
53bc30b3387bfc0f18049d2b64fd1492c7912453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/53bc30b3387bfc0f18049d2b64fd1492c7912453/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 733...
for field, values in self._fields_map.items(): if tag in field.tags: if arg is not None: warnings.append(tag+' did not expect an argument') return if not field.multivalue and len(values) > 0: warnings.append(tag+ ' redefined') del values[:] values.append(descr)
if tag == 'sort': if arg is not None: warnings.append(tag+' did not expect an argument')
def _process_field(self, tag, arg, descr, warnings): """ This method should be overridden, and called as the default case. """ for field, values in self._fields_map.items(): if tag in field.tags: if arg is not None: warnings.append(tag+' did not expect an argument') return if not field.multivalue and len(values) > 0: w...
1bdcaa661906ee198f52b061b725c621ba0ae305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1bdcaa661906ee198f52b061b725c621ba0ae305/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 1518, 12, 2890, 16, 1047, 16, 1501, 16, 18426, 16, 5599, 4672, 3536, 1220, 707, 1410, 506, 11000, 16, 471, 2566, 487, 326, 805, 648, 18, 3536, 309, 1047, 422, 296, 3804,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2567, 67, 1518, 12, 2890, 16, 1047, 16, 1501, 16, 18426, 16, 5599, 4672, 3536, 1220, 707, 1410, 506, 11000, 16, 471, 2566, 487, 326, 805, 648, 18, 3536, 309, 1047, 422, 296, 3804,...
style=wxSUNKEN_BORDER|wxLC_SINGLE_SEL)
style=wxSUNKEN_BORDER|wxLC_LIST|wxLC_SINGLE_SEL)
def submenu(title, *items, **kw): description = kw.get('description', '') id = kw.get('id', None) if not id: id = wxNewId() submenu, title = menu(title, items) return ('AppendMenu', id, title, submenu, description)
8bfcb893526ff90ecb1436418450327bd4196777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8bfcb893526ff90ecb1436418450327bd4196777/wxclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27539, 12, 2649, 16, 380, 3319, 16, 2826, 9987, 4672, 2477, 273, 5323, 18, 588, 2668, 3384, 2187, 28707, 612, 273, 5323, 18, 588, 2668, 350, 2187, 599, 13, 309, 486, 612, 30, 612, 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, 27539, 12, 2649, 16, 380, 3319, 16, 2826, 9987, 4672, 2477, 273, 5323, 18, 588, 2668, 3384, 2187, 28707, 612, 273, 5323, 18, 588, 2668, 350, 2187, 599, 13, 309, 486, 612, 30, 612, 273,...
if self.counter == self.limit: self.relevent.reset() if self.counter == 1: self.acqevent.send()
if self._acquire_waiters and self.counter > 0: api.get_hub().schedule_call(0, self._do_acquire) return True
def release(self): # This logic handles the self.limit is None case because None != any integer. while self.counter == self.limit: self.relevent.wait() self.counter += 1 if self.counter == self.limit: self.relevent.reset() if self.counter == 1: # If self.counter was 0 before we incremented it, then wake up # anybody wh...
961419045b357378af67f700b41d9403d322b26b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/961419045b357378af67f700b41d9403d322b26b/coros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 12, 2890, 4672, 468, 1220, 4058, 7372, 326, 365, 18, 3595, 353, 599, 648, 2724, 599, 480, 1281, 3571, 18, 1323, 365, 18, 7476, 422, 365, 18, 3595, 30, 365, 18, 16599, 616, 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, 3992, 12, 2890, 4672, 468, 1220, 4058, 7372, 326, 365, 18, 3595, 353, 599, 648, 2724, 599, 480, 1281, 3571, 18, 1323, 365, 18, 7476, 422, 365, 18, 3595, 30, 365, 18, 16599, 616, 18, ...
elif (args[0] == "commit") or (args[0] == "ci")
elif (args[0] == "commit") or (args[0] == "ci"):
def sourceCommand(cfg, args, argSet, profile=False, callback = None): if not callback: callback = CheckinCallback() if not args: return usage() elif (args[0] == "add"): if len(args) < 2: return usage() checkin.addFiles(args[1:]) elif (args[0] == "checkout") or (args[0] == "co"): if argSet.has_key("dir"): dir = argSet[...
687864c12e0d2cd69a55fb7150b737800a1e85c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/687864c12e0d2cd69a55fb7150b737800a1e85c0/cvc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 2189, 12, 7066, 16, 833, 16, 1501, 694, 16, 3042, 33, 8381, 16, 1348, 273, 599, 4672, 309, 486, 1348, 30, 1348, 273, 2073, 267, 2428, 1435, 225, 309, 486, 833, 30, 327, 4084, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 2189, 12, 7066, 16, 833, 16, 1501, 694, 16, 3042, 33, 8381, 16, 1348, 273, 599, 4672, 309, 486, 1348, 30, 1348, 273, 2073, 267, 2428, 1435, 225, 309, 486, 833, 30, 327, 4084, 1...
if ascii==32 and ((config.conf["keyboard"]["speakTypedCharacters"] and not config.conf["keyboard"]["speakTypedWords"]) or (config.conf["keyboard"]["speakTypedCharacters"] and config.conf["keyboard"]["speakTypedWords"] and (len(word)==0))): speech.speakSymbol(chr(ascii))
def speakKey(keyPress,ascii): global word if ((keyPress[0] is None) or (keyPress[0]==frozenset(['Shift'])) or (keyPress[0]==frozenset(['Control','Alt']))) and (ascii in range(33,255)): if isTypingProtected(): char="*" else: char=chr(ascii) if config.conf["keyboard"]["speakTypedCharacters"]: speech.speakSymbol(char) if ...
de8c7aac7e80eacb2f20dee295bd37b202465b6c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/de8c7aac7e80eacb2f20dee295bd37b202465b6c/keyboardHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 10244, 653, 12, 856, 11840, 16, 9184, 4672, 2552, 2076, 309, 14015, 856, 11840, 63, 20, 65, 353, 599, 13, 578, 261, 856, 11840, 63, 20, 65, 631, 28138, 542, 12, 3292, 10544, 3546,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 10244, 653, 12, 856, 11840, 16, 9184, 4672, 2552, 2076, 309, 14015, 856, 11840, 63, 20, 65, 353, 599, 13, 578, 261, 856, 11840, 63, 20, 65, 631, 28138, 542, 12, 3292, 10544, 3546,...
t_start = startOfInterval(t, t_length) print timestamp_to_string(t), t_length, timestamp_to_string(t_start) assert(time.localtime(t_start) == (2009, 11, 1, 0, 0, 0, 6, 305, 1))
t_test = time.mktime((2009, 11, 1, 1, 22, 05, 0, 0, 0)) t_ans = time.mktime((2009, 11, 1, 0, 00, 00, 0, 0, 0)) t_start = startOfInterval(t_test, t_length) print timestamp_to_string(t_test), t_length, timestamp_to_string(t_start) assert(t_start == t_ans) t_length = 5 * 60 t_test = time.mktime((2009, 11, 1, 1, 22, 05,...
def _get_object(module_class, *args, **kwargs): """Given a path to a class, instantiates an instance of the class with the given args and returns it.""" # Split the path into its parts parts = module_class.split('.') # Strip off the classname: module = '.'.join(parts[:-1]) # Import the top level module mod = __import_...
19b04500cd89d5b1697673f832aae81e1515f674 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1013/19b04500cd89d5b1697673f832aae81e1515f674/weeutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1612, 12, 2978, 67, 1106, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6083, 279, 589, 358, 279, 667, 16, 5934, 16020, 392, 791, 434, 326, 667, 598, 326, 864, 833, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1612, 12, 2978, 67, 1106, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 6083, 279, 589, 358, 279, 667, 16, 5934, 16020, 392, 791, 434, 326, 667, 598, 326, 864, 833, 471, 1...
self.do_zoom(self.scale.get_value() - 1, True)
self.do_zoom(self.scale.get_value() - 1, True, self.myPointer)
def menu_item_response(self, w, strName): if strName.startswith("Zoom Out"): self.do_zoom(self.scale.get_value() + 1, True) elif strName.startswith("Zoom In"): self.do_zoom(self.scale.get_value() - 1, True) elif strName.startswith("Center map"): self.do_zoom(self.scale.get_value(), True) elif strName.startswith("Reset"...
e69ef850fb40babae3c4edc4e559bf43d18bb9a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5373/e69ef850fb40babae3c4edc4e559bf43d18bb9a8/maps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 1726, 67, 2740, 12, 2890, 16, 341, 16, 27840, 4672, 309, 27840, 18, 17514, 1918, 2932, 11497, 2976, 6, 4672, 365, 18, 2896, 67, 14932, 12, 2890, 18, 5864, 18, 588, 67, 1132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 1726, 67, 2740, 12, 2890, 16, 341, 16, 27840, 4672, 309, 27840, 18, 17514, 1918, 2932, 11497, 2976, 6, 4672, 365, 18, 2896, 67, 14932, 12, 2890, 18, 5864, 18, 588, 67, 1132, ...
return space.call_method(w_u, "join", w_list)
return space.call_method(w_u, "join", space.newlist(list_w))
def str_join__String_ANY(space, w_self, w_list): list_w = space.listview(w_list) str_w = space.str_w if list_w: self = w_self._value listlen = 0 reslen = 0 l = [None] * len(list_w) for i in range(len(list_w)): w_s = list_w[i] if not space.is_true(space.isinstance(w_s, space.w_str)): if space.is_true(space.isinstance(w_...
8a2fa2c37a817055dcb0fa0f46d62429803f0bfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/8a2fa2c37a817055dcb0fa0f46d62429803f0bfe/stringobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 5701, 972, 780, 67, 15409, 12, 2981, 16, 341, 67, 2890, 16, 341, 67, 1098, 4672, 666, 67, 91, 273, 3476, 18, 1098, 1945, 12, 91, 67, 1098, 13, 609, 67, 91, 273, 3476, 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, 609, 67, 5701, 972, 780, 67, 15409, 12, 2981, 16, 341, 67, 2890, 16, 341, 67, 1098, 4672, 666, 67, 91, 273, 3476, 18, 1098, 1945, 12, 91, 67, 1098, 13, 609, 67, 91, 273, 3476, 18, ...
print '-'+v['partner_bvr']+'-'
def _create_dta(self,cr,uid,data,context): # cree des gt836 v={} v['uid'] = str(uid) v['creation_date']= time.strftime('%y%m%d') log='' dta='' pool = pooler.get_pool(cr.dbname) bank= pool.get('res.partner.bank').browse(cr,uid,[data['form']['bank']])[0] if not bank: return {'note':'No bank account for the company.'} ...
6a7c815ad435701fa16c87253fc864e5ce882af6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/6a7c815ad435701fa16c87253fc864e5ce882af6/dta_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 72, 2351, 12, 2890, 16, 3353, 16, 1911, 16, 892, 16, 2472, 4672, 225, 468, 276, 992, 2832, 9879, 28, 5718, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 72, 2351, 12, 2890, 16, 3353, 16, 1911, 16, 892, 16, 2472, 4672, 225, 468, 276, 992, 2832, 9879, 28, 5718, 331, 12938, 331, 3292, 1911, 3546, 273, 609, 12, 1911, 13, 3...
(rate). Return the numpy.array result.
(rate).
def filter(self, cyclic = False): """ Convolve the binned counts with the window to smooth them, then divide each bin by its size to convert to a density (rate). Return the numpy.array result. """ filter_array(self.array, self.filterdata, cyclic = cyclic) self.to_density()
28f60cf7d8a94f46a5db93d12c8a26d0d7958d60 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/28f60cf7d8a94f46a5db93d12c8a26d0d7958d60/rate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 2890, 16, 30383, 273, 1083, 4672, 3536, 18263, 5390, 326, 4158, 11748, 6880, 598, 326, 2742, 358, 11957, 2182, 16, 1508, 12326, 1517, 4158, 635, 2097, 963, 358, 1765, 358, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 2890, 16, 30383, 273, 1083, 4672, 3536, 18263, 5390, 326, 4158, 11748, 6880, 598, 326, 2742, 358, 11957, 2182, 16, 1508, 12326, 1517, 4158, 635, 2097, 963, 358, 1765, 358, 279, ...
__dynamic__ = 1
__dynamic__ = 1
def mysetattr(self, name, value): if name == "spam": raise AttributeError return object.__setattr__(self, name, value)
9479174c90f03a075db9a923423b21776350dabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9479174c90f03a075db9a923423b21776350dabe/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 542, 1747, 12, 2890, 16, 508, 16, 460, 4672, 309, 508, 422, 315, 1752, 301, 6877, 1002, 6394, 327, 733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 13, 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, 3399, 542, 1747, 12, 2890, 16, 508, 16, 460, 4672, 309, 508, 422, 315, 1752, 301, 6877, 1002, 6394, 327, 733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 13, 2, -100, -100, -1...
def __init__(self, baseurl, basedir):
def __init__(self, baseurl, tmpdir=None):
def __init__(self, baseurl, basedir): """ @param baseurl: base URL or tuple containing several base URLs @type baseurl: str or (str,) """ if isinstance(baseurl, unicode): baseurl = baseurl.encode('ascii') elif isinstance(baseurl, tuple): baseurl = tuple([bu.encode('ascii') for bu in baseurl if isinstance(bu, unicode)]...
2e2e0c65e72dd4ba00812393df172f789e8b919b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12391/2e2e0c65e72dd4ba00812393df172f789e8b919b/netdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 25427, 16, 20213, 33, 7036, 4672, 3536, 632, 891, 25427, 30, 1026, 1976, 578, 3193, 4191, 11392, 1026, 10414, 632, 723, 25427, 30, 609, 578, 261, 701, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 25427, 16, 20213, 33, 7036, 4672, 3536, 632, 891, 25427, 30, 1026, 1976, 578, 3193, 4191, 11392, 1026, 10414, 632, 723, 25427, 30, 609, 578, 261, 701, 16, ...
print "\033[33m"
print("\033[33m", end='')
def yellow(self): print "\033[33m"
fc50e2444a71cd15a13d345a1f9359c0ceb01f43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8290/fc50e2444a71cd15a13d345a1f9359c0ceb01f43/UnixConsoleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20614, 12, 2890, 4672, 1172, 1548, 15265, 63, 3707, 81, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20614, 12, 2890, 4672, 1172, 1548, 15265, 63, 3707, 81, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
map('<home>', wdg.move(right=0, absolute=True)) map('<end>', wdg.move(right=-1, absolute=True))
map('<home>', '<C-A>', wdg.move(right=0, absolute=True)) map('<end>', '<C-E>', wdg.move(right=-1, absolute=True))
def ctrl_c(arg): try: item = arg.fm.loader.queue[0] except: arg.fm.notify("Type Q or :quit<Enter> to exit Ranger") else: arg.fm.notify("Aborting: " + item.get_description()) arg.fm.loader.remove(index=0)
c512259aec5a7abdbcec48a3c20cb2a0982c4d65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/c512259aec5a7abdbcec48a3c20cb2a0982c4d65/keys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6414, 67, 71, 12, 3175, 4672, 775, 30, 761, 273, 1501, 18, 25089, 18, 6714, 18, 4000, 63, 20, 65, 1335, 30, 1501, 18, 25089, 18, 12336, 2932, 559, 2238, 578, 294, 27176, 32, 10237, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6414, 67, 71, 12, 3175, 4672, 775, 30, 761, 273, 1501, 18, 25089, 18, 6714, 18, 4000, 63, 20, 65, 1335, 30, 1501, 18, 25089, 18, 12336, 2932, 559, 2238, 578, 294, 27176, 32, 10237, 3...
return rvdeclared
return
def writeArgumentUnboxing(f, i, name, type, haveCcx, optional, rvdeclared): # f - file to write to # i - int or None - Indicates the source jsval. If i is an int, the source # jsval is argv[i]; otherwise it is *vp. But if Python i >= C++ argc, # which can only happen if optional is True, the argument is missi...
6f558ca9eddc5be4f0e7a99f5054cd7d74be2155 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/6f558ca9eddc5be4f0e7a99f5054cd7d74be2155/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 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, 1045, 1379, 984, 2147, 310, 12, 74, 16, 277, 16, 508, 16, 618, 16, 1240, 39, 71, 92, 16, 3129, 16, 5633, 16571, 4672, 468, 284, 300, 585, 358, 1045, 358, 468, 277, 300, 509, 578, 5...
command=self.Help,takefocus=FALSE)
command=self.Help,takefocus=FALSE, padx=6,pady=3)
def CreateWidgets(self): self.tabPages = TabPageSet(self, pageNames=['Fonts/Tabs','Highlighting','Keys','General']) self.tabPages.ChangePage()#activates default (first) page frameActionButtons = Frame(self) #action buttons self.buttonHelp = Button(frameActionButtons,text='Help', command=self.Help,takefocus=FALSE) self....
ed15565253c2cb817c68ed89e22c7a6c7707ab66 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/ed15565253c2cb817c68ed89e22c7a6c7707ab66/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 16166, 12, 2890, 4672, 365, 18, 7032, 5716, 273, 9483, 1964, 694, 12, 2890, 16, 1363, 1557, 33, 3292, 5711, 87, 19, 17348, 17023, 16205, 310, 17023, 2396, 17023, 12580, 19486, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 16166, 12, 2890, 4672, 365, 18, 7032, 5716, 273, 9483, 1964, 694, 12, 2890, 16, 1363, 1557, 33, 3292, 5711, 87, 19, 17348, 17023, 16205, 310, 17023, 2396, 17023, 12580, 19486, 365, ...
"""normalize reduces its operand to its simplest form.
"""normalize reduces an operand to its simplest form.
def normalize(self, a): """normalize reduces its operand to its simplest form.
7668379fdb08b387cb5d4fdf6978fec3901fa44a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7668379fdb08b387cb5d4fdf6978fec3901fa44a/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 12, 2890, 16, 279, 4672, 3536, 12237, 30568, 2097, 9886, 358, 2097, 9330, 395, 646, 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, ...
[ 1, 1, 1, 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, 3883, 12, 2890, 16, 279, 4672, 3536, 12237, 30568, 2097, 9886, 358, 2097, 9330, 395, 646, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""Set current lighting parameters as specified
""" Set current lighting parameters as specified
def setLighting(self, lights, _guard_ = 6574833, gl_update = True): """Set current lighting parameters as specified (using the format as described in the getLighting method docstring). This does not save them in the preferences file; for that see the saveLighting method. If option gl_update is False, then don't do a gl...
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12128, 310, 12, 2890, 16, 26269, 16, 389, 24594, 67, 273, 15892, 5608, 28, 3707, 16, 5118, 67, 2725, 273, 1053, 4672, 3536, 1000, 783, 9052, 310, 1472, 487, 1269, 261, 9940, 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, 444, 12128, 310, 12, 2890, 16, 26269, 16, 389, 24594, 67, 273, 15892, 5608, 28, 3707, 16, 5118, 67, 2725, 273, 1053, 4672, 3536, 1000, 783, 9052, 310, 1472, 487, 1269, 261, 9940, 326, ...
self.terminate()
self._obj.terminate()
def terminate(self): if self.state in ["NULL", "TERMINATED"]: return with self.linked_notifications(['SCSessionDidFail', 'SCSessionDidEnd']) as q: if self.state != 'TERMINATING': self.terminate() while True: notification = q.wait() if notification.name == 'SCSessionDidFail': raise SessionError(notification.data.reason)...
0b148e0dd4835ff2aa72a6826ac4a63f2f39097d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/0b148e0dd4835ff2aa72a6826ac4a63f2f39097d/session2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10850, 12, 2890, 4672, 309, 365, 18, 2019, 316, 8247, 8560, 3113, 315, 29516, 6344, 11929, 30, 327, 598, 365, 18, 17738, 67, 15286, 12, 3292, 2312, 2157, 18250, 3754, 2187, 296, 2312, 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, 10850, 12, 2890, 4672, 309, 365, 18, 2019, 316, 8247, 8560, 3113, 315, 29516, 6344, 11929, 30, 327, 598, 365, 18, 17738, 67, 15286, 12, 3292, 2312, 2157, 18250, 3754, 2187, 296, 2312, 21...
new.dtype.char = new.data.dtype.char
new.dtype = new.data.dtype
def __rmul__(self, other): # other * self if isscalar(other) or (isdense(other) and rank(other)==0): new = self.copy() new.data = other * new.data new.dtype.char = new.data.dtype.char new.ftype = _transtabl[new.dtype.char] return new else: other = asarray(other) return self.transpose().dot(other.transpose()).transpose...
755141cd47edbf647cfcd8d09fd47ede3320459c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/755141cd47edbf647cfcd8d09fd47ede3320459c/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8864, 332, 972, 12, 2890, 16, 1308, 4672, 225, 468, 1308, 380, 365, 309, 3385, 3473, 12, 3011, 13, 578, 261, 291, 25942, 12, 3011, 13, 471, 6171, 12, 3011, 13, 631, 20, 4672, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8864, 332, 972, 12, 2890, 16, 1308, 4672, 225, 468, 1308, 380, 365, 309, 3385, 3473, 12, 3011, 13, 578, 261, 291, 25942, 12, 3011, 13, 471, 6171, 12, 3011, 13, 631, 20, 4672, 3...
translated_strings = CollectTranslatedStrings()
branding = '' if (argv > 2): branding = argv[2] translated_strings = CollectTranslatedStrings(branding)
def main(argv): translated_strings = CollectTranslatedStrings() kFilebase = os.path.join(argv[1], 'installer_util_strings') WriteRCFile(translated_strings, kFilebase) WriteHeaderFile(translated_strings, kFilebase)
d55a76d023d7e2813170f7d04b554611861749ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/d55a76d023d7e2813170f7d04b554611861749ab/create_string_rc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 15272, 310, 273, 875, 309, 261, 19485, 405, 576, 4672, 15272, 310, 273, 5261, 63, 22, 65, 9955, 67, 10219, 273, 9302, 20421, 7957, 12, 20523, 310, 13, 417, 812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 15272, 310, 273, 875, 309, 261, 19485, 405, 576, 4672, 15272, 310, 273, 5261, 63, 22, 65, 9955, 67, 10219, 273, 9302, 20421, 7957, 12, 20523, 310, 13, 417, 812, ...
triagem_form_list = [g.formulario for g in gf]
triagem_form_list = [Formulario.objects.get(pk=g['formulario']) for g in gf.values('formulario').distinct()]
def homepage_view(request): import_str = "from forms.models import tipoFormulario, Formulario, Grupo, Grupo_Formulario, UserProfile" exec import_str if request.user.is_authenticated(): us_favorite = None groups = Grupo.objects.filter(membros=request.user) try: us_favorite = request.user.get_profile().unidadesaude_favor...
f71c1b5caf604d4552dfcaeda6db26ccd48e3148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11601/f71c1b5caf604d4552dfcaeda6db26ccd48e3148/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30815, 67, 1945, 12, 2293, 4672, 1930, 67, 701, 273, 315, 2080, 10138, 18, 7665, 1930, 25196, 1204, 2490, 1594, 16, 2748, 2490, 1594, 16, 611, 86, 416, 83, 16, 611, 86, 416, 83, 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, 30815, 67, 1945, 12, 2293, 4672, 1930, 67, 701, 273, 315, 2080, 10138, 18, 7665, 1930, 25196, 1204, 2490, 1594, 16, 2748, 2490, 1594, 16, 611, 86, 416, 83, 16, 611, 86, 416, 83, 67, ...
EXAMPLES:
EXAMPLES::
def __getinitargs__(self): r""" A simple __getinitargs__ method, used for testing explain_pickle.
03555b4381371de7688c2f08f833898ba9658b7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/03555b4381371de7688c2f08f833898ba9658b7b/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2738, 1968, 972, 12, 2890, 4672, 436, 8395, 432, 4143, 1001, 588, 2738, 1968, 972, 707, 16, 1399, 364, 7769, 19765, 67, 20847, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2738, 1968, 972, 12, 2890, 4672, 436, 8395, 432, 4143, 1001, 588, 2738, 1968, 972, 707, 16, 1399, 364, 7769, 19765, 67, 20847, 18, 2, -100, -100, -100, -100, -100, -100, -100,...
def _deleteConsecutiveDuplicatePoints(self, points): size = len(points) dups = [] for i in xrange(size): idx = i + 1 if idx < size and points[i] == points[idx]: dups.append(i) dups.reverse() [points.pop(i) for i in dups] return dups def _deleteItemsRelatingToDuplicatePoints(self, items, dups): [items.pop(i) for i i...
def _deleteConsecutiveDuplicatePoints(self, parts): for part in parts: points = part.get('points') pSize = len(points) measures = part.get('measures') dups = [] for i in xrange(pSize): idx = i + 1 if idx < pSize and points[i] == points[idx]: dups.append(i) dups.reverse() badPoints = [points.pop(i) for i in dups] i...
def _deleteConsecutiveDuplicatePoints(self, points): size = len(points) dups = []
21d08cb05ff682765ee80c7919f1985ba6ea48ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1821/21d08cb05ff682765ee80c7919f1985ba6ea48ed/shapefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3733, 442, 15655, 11826, 5636, 12, 2890, 16, 3143, 4672, 963, 273, 562, 12, 4139, 13, 9417, 87, 273, 5378, 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, 389, 3733, 442, 15655, 11826, 5636, 12, 2890, 16, 3143, 4672, 963, 273, 562, 12, 4139, 13, 9417, 87, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def pattern_e_changed(self, e): self.pattern = e.get_text()
def pattern_changed(self, entry): self.pattern = entry.get_text()
def pattern_e_changed(self, e): self.pattern = e.get_text() config.set('plugins', self.c_pattern, self.pattern)
24a5de3faaf31e123f1b96a3a84045348d8831fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/24a5de3faaf31e123f1b96a3a84045348d8831fd/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1936, 67, 6703, 12, 2890, 16, 1241, 4672, 365, 18, 4951, 273, 1241, 18, 588, 67, 955, 1435, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 4951, 16, 365, 18, 4951, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1936, 67, 6703, 12, 2890, 16, 1241, 4672, 365, 18, 4951, 273, 1241, 18, 588, 67, 955, 1435, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 4951, 16, 365, 18, 4951, 13, 2, -100, -...
Returns a new Column with the given dtypechar with the number
Returns a new Column with the given typecode with the number
def new_column(self, dtypechar=None, **kwargs): """ Returns a new Column with the given dtypechar with the number of rows that this Table requires, i.e. a Column with a one-dimensional array of the length table.rows, with the `dtypechar` and only zeros. If no dtypechar is given, then the dtypechar of the first existin...
d323a0e51c5bfbfe6a5d20c4a492829533562316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/d323a0e51c5bfbfe6a5d20c4a492829533562316/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2827, 12, 2890, 16, 3182, 3001, 33, 7036, 16, 2826, 4333, 4672, 3536, 2860, 279, 394, 4753, 598, 326, 864, 618, 710, 598, 326, 1300, 434, 2595, 716, 333, 3555, 4991, 16, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 2827, 12, 2890, 16, 3182, 3001, 33, 7036, 16, 2826, 4333, 4672, 3536, 2860, 279, 394, 4753, 598, 326, 864, 618, 710, 598, 326, 1300, 434, 2595, 716, 333, 3555, 4991, 16, 277, ...
class NonMultipartComposer(Composer): '''Non Multipart messages composer''' messageClass = email.MIMEText.MIMEText
def compose(self, body, Subject, **kwargs): '''Takes message body and headers as named params, replace "-" with "_" in headers names. Returns email.Message.Message object''' if self.charset: # subject is an internationalized header, should be quoted from email.Header import Header Subject = Header(Subject, self.charset...
b1c9b7f37338915f1e0b475520c1f108e559d644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/b1c9b7f37338915f1e0b475520c1f108e559d644/qMail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11458, 12, 2890, 16, 1417, 16, 9912, 16, 2826, 4333, 4672, 9163, 11524, 883, 1417, 471, 1607, 487, 4141, 859, 16, 1453, 7514, 598, 8802, 316, 1607, 1257, 18, 2860, 2699, 18, 1079, 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, 11458, 12, 2890, 16, 1417, 16, 9912, 16, 2826, 4333, 4672, 9163, 11524, 883, 1417, 471, 1607, 487, 4141, 859, 16, 1453, 7514, 598, 8802, 316, 1607, 1257, 18, 2860, 2699, 18, 1079, 18, ...
print "DTV: bad HTML in %s" % self.baseurl
print "DTV: bad HTML in description for %s" % self.baseurl
def endElementNS(self, name, qname): uri = name[0] tag = name[1] if tag.lower() == 'description': lg = HTMLLinkGrabber() try: html = xhtmlify(unescape(self.descHTML),addTopTags=True) if not self.charset is None: html = fixHTMLHeader(html,self.charset) self.links[:0] = lg.getLinks(html,self.baseurl) except HTMLParseErro...
73b1da8a282b6068184307954a409488fd019cf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/73b1da8a282b6068184307954a409488fd019cf4/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 3156, 12, 2890, 16, 508, 16, 12621, 4672, 2003, 273, 508, 63, 20, 65, 1047, 273, 508, 63, 21, 65, 309, 1047, 18, 8167, 1435, 422, 296, 3384, 4278, 15266, 273, 3982, 2098, 14571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 3156, 12, 2890, 16, 508, 16, 12621, 4672, 2003, 273, 508, 63, 20, 65, 1047, 273, 508, 63, 21, 65, 309, 1047, 18, 8167, 1435, 422, 296, 3384, 4278, 15266, 273, 3982, 2098, 14571,...
voxels = { } for atm in atoms.values(): x, y, z = map(float, atm.posn()) idx = (int(x / maxLen), int(y / maxLen), int(z / maxLen)) try: voxels[idx].append(atm) except KeyError: voxels[idx] = [ atm ] for atm in atoms.values(): x, y, z = map(float, atm.posn()) x1 = int(x / maxLen) y1 = int(y / maxLen) z1 = ...
LENGTH_TWEAK = Chirality.BONDLENGTH
def buildChunk(self): from Numeric import dot length = self.length xyz = self.chirality.xyz atoms = self.mol.atoms mlimits = self.chirality.mlimits maxLen = 1.2 * Chirality.BONDLENGTH maxLenSq = maxLen ** 2 # populate the tube with some extra carbons on the ends # so that we can trim them later self.chirality.populate(...
3f2159e96bd896e455c6e70b11f69c375002f863 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3f2159e96bd896e455c6e70b11f69c375002f863/NanotubeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 5579, 12, 2890, 4672, 628, 16980, 1930, 3928, 769, 273, 365, 18, 2469, 14779, 273, 365, 18, 343, 481, 7919, 18, 17177, 9006, 273, 365, 18, 21260, 18, 14937, 312, 14270, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 5579, 12, 2890, 4672, 628, 16980, 1930, 3928, 769, 273, 365, 18, 2469, 14779, 273, 365, 18, 343, 481, 7919, 18, 17177, 9006, 273, 365, 18, 21260, 18, 14937, 312, 14270, 273, 365, ...
flight_kmz = re.sub(".log",".kmz", flight_log_name)
flight_kmz = re.sub("\.log",".kmz", flight_log_name)
def create_kmz(flight_log_dir,flight_log_name): flight_log = os.path.join(flight_log_dir, flight_log_name) match = re.match(".[tT][xX][tT]$",flight_log_name) # match a .txt file if match : #flight telelemetry file must end in .txt or .TXT for this to work flight_pos = re.sub(".[tT][xX][tT]$",".kml", flight_log_name) ma...
4cd822d33017003c99c3ee2bf0389dc420115397 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1364/4cd822d33017003c99c3ee2bf0389dc420115397/uav_log_to_kml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 18353, 94, 12, 19131, 67, 1330, 67, 1214, 16, 19131, 67, 1330, 67, 529, 4672, 25187, 67, 1330, 273, 1140, 18, 803, 18, 5701, 12, 19131, 67, 1330, 67, 1214, 16, 25187, 67, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 18353, 94, 12, 19131, 67, 1330, 67, 1214, 16, 19131, 67, 1330, 67, 529, 4672, 25187, 67, 1330, 273, 1140, 18, 803, 18, 5701, 12, 19131, 67, 1330, 67, 1214, 16, 25187, 67, 13...
size = event.GetSize()
size = self.GetClientSize()
def OnSize(self, event): if not Globals.wxApplication.insideSynchronizeFramework: size = event.GetSize() widthMinusLastColumn = 0 assert self.GetColumnCount() > 0, "We're assuming that there is at least one column" for column in xrange (self.GetColumnCount() - 1): widthMinusLastColumn += self.GetColumnWidth (column) la...
03068acfde8af5329914f2e5b11494bc3e58c080 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/03068acfde8af5329914f2e5b11494bc3e58c080/ControlBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1225, 12, 2890, 16, 871, 4672, 309, 486, 18901, 1031, 18, 27226, 3208, 18, 28091, 19298, 554, 13701, 30, 963, 273, 365, 18, 967, 1227, 1225, 1435, 1835, 18434, 3024, 1494, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1225, 12, 2890, 16, 871, 4672, 309, 486, 18901, 1031, 18, 27226, 3208, 18, 28091, 19298, 554, 13701, 30, 963, 273, 365, 18, 967, 1227, 1225, 1435, 1835, 18434, 3024, 1494, 273, 374...
if self.s:
if not self.s:
def delete( self ): """Process a del""" if self.s: return
f99c5d964af15137a06c1d351a45ec1fb0c85bee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6932/f99c5d964af15137a06c1d351a45ec1fb0c85bee/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 365, 262, 30, 3536, 2227, 279, 1464, 8395, 309, 486, 365, 18, 87, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 1430, 12, 365, 262, 30, 3536, 2227, 279, 1464, 8395, 309, 486, 365, 18, 87, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return KeysView(self)
return list(self)
def keys(self): return KeysView(self)
3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/3cb32c7f8cfe99bcfd3ef64776c34ee70e1049c8/_abcoll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1311, 12, 2890, 4672, 327, 11432, 1767, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1311, 12, 2890, 4672, 327, 11432, 1767, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
f = open('out.txt', 'a') print >>f, self.headers
def do_mock_request(self): assert len(requests_responses) > 0, 'got unexpected request (%s)' % self.path req, resp = requests_responses.pop(0) if req.get('require_basic_auth', False): f = open('out.txt', 'a') print >>f, self.headers if 'Authorization' not in self.headers: requests_responses.insert(0, (req, resp)) # pus...
deee79f6a6e4b123f318c87cfac12f080433834f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/deee79f6a6e4b123f318c87cfac12f080433834f/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 22851, 67, 2293, 12, 2890, 4672, 1815, 562, 12, 11420, 67, 11822, 13, 405, 374, 16, 296, 13212, 9733, 590, 6142, 87, 2506, 738, 365, 18, 803, 1111, 16, 1718, 273, 3285, 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, 741, 67, 22851, 67, 2293, 12, 2890, 4672, 1815, 562, 12, 11420, 67, 11822, 13, 405, 374, 16, 296, 13212, 9733, 590, 6142, 87, 2506, 738, 365, 18, 803, 1111, 16, 1718, 273, 3285, 67, ...
gtk.CALENDAR_SHOW_WEEK_NUMBERS)
gtk.CALENDAR_SHOW_WEEK_NUMBERS | \ gtk.CALENDAR_WEEK_START_MONDAY)
def cal_open(self, widget): if self.readonly: message(_('This widget is readonly!'), self._window) return True
ef8bccce103d53901c40ef12b5ee26e02e95e3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/ef8bccce103d53901c40ef12b5ee26e02e95e3e3/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1443, 67, 3190, 12, 2890, 16, 3604, 4672, 309, 365, 18, 16365, 30, 883, 24899, 2668, 2503, 3604, 353, 17102, 5124, 3631, 365, 6315, 5668, 13, 327, 1053, 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, 1443, 67, 3190, 12, 2890, 16, 3604, 4672, 309, 365, 18, 16365, 30, 883, 24899, 2668, 2503, 3604, 353, 17102, 5124, 3631, 365, 6315, 5668, 13, 327, 1053, 2, -100, -100, -100, -100, -100, ...
has_cte = is_qp = 0
has_cte = is_qp = is_base64 = 0
def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' has_cte = is_qp = 0 multipart = None must_quote_body = must_quote_header = has_iso_chars = 0 header = [] header_end = '' message = [] message_end = '' # read header hfile = HeaderFile(ifile) while 1: line = h...
2b85cde0d17a1e1c8a5152e25a229e8ed8c1151c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2b85cde0d17a1e1c8a5152e25a229e8ed8c1151c/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
def get_path(self, dir, name):
def get_path(self, directory, name):
def get_path(self, dir, name): if name.endswith(".fr.po"): name = name[:-6] if name.endswith(".po"): name = name[:-3] return self.getprefix() + "/" + name
a56e45efe3e36af770832bdc39b7ca99be6f3d8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3042/a56e45efe3e36af770832bdc39b7ca99be6f3d8f/import_step1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 12, 2890, 16, 1867, 16, 508, 4672, 309, 508, 18, 5839, 1918, 2932, 18, 4840, 18, 1631, 6, 4672, 508, 273, 508, 10531, 17, 26, 65, 309, 508, 18, 5839, 1918, 2932, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 803, 12, 2890, 16, 1867, 16, 508, 4672, 309, 508, 18, 5839, 1918, 2932, 18, 4840, 18, 1631, 6, 4672, 508, 273, 508, 10531, 17, 26, 65, 309, 508, 18, 5839, 1918, 2932, 18, ...
self.sock = socket(AF_UNIX, SOCK_DGRAM)
self.sock = socket(self.family, SOCK_DGRAM)
def initSender(self): if self.dgram: self.sock = socket(AF_UNIX, SOCK_DGRAM) else: self.sock = socket(AF_UNIX, SOCK_STREAM) self.sock.connect(self.sock_name)
10490933e2cd4ae3a5c5e15264d3839a229b0c46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1177/10490933e2cd4ae3a5c5e15264d3839a229b0c46/func_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12021, 12, 2890, 4672, 309, 365, 18, 72, 3295, 30, 365, 18, 15031, 273, 2987, 12, 2890, 18, 9309, 16, 20834, 67, 40, 15370, 13, 469, 30, 365, 18, 15031, 273, 2987, 12, 6799, 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, 1208, 12021, 12, 2890, 4672, 309, 365, 18, 72, 3295, 30, 365, 18, 15031, 273, 2987, 12, 2890, 18, 9309, 16, 20834, 67, 40, 15370, 13, 469, 30, 365, 18, 15031, 273, 2987, 12, 6799, 67...
if len(params) == 15: if params[14].startswith(':'): params[14] = params[14][1:]
if len(params) == 1 and not params[0]: params = []
def handle_read(self): """Called when there is data to be read.""" data = self.recv(512) if not data: self.close() return # print '[<<<]\t', data self.dataIn += data
ef22f2fb2890e3c858ad258b5766b50b3f6d335f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2194/ef22f2fb2890e3c858ad258b5766b50b3f6d335f/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 12, 2890, 4672, 3536, 8185, 1347, 1915, 353, 501, 358, 506, 855, 12123, 501, 273, 365, 18, 18334, 12, 13757, 13, 309, 486, 501, 30, 365, 18, 4412, 1435, 327, 468, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 896, 12, 2890, 4672, 3536, 8185, 1347, 1915, 353, 501, 358, 506, 855, 12123, 501, 273, 365, 18, 18334, 12, 13757, 13, 309, 486, 501, 30, 365, 18, 4412, 1435, 327, 468, 282, ...
... >>> x/2
... >>> x//2
>>> def f(x):
2e37168d4a7fbe884be268555d251a33a676b5ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e37168d4a7fbe884be268555d251a33a676b5ee/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
or (self.regex.__class__ == RegexString and 1 < len(regex.text)):
or (self.regex.__class__ == RegexString and 1 < len(self.regex.text)):
def _str(self, **kw): text = str(self.regex) if self.regex.__class__ == RegexAnd \ or (self.regex.__class__ == RegexString and 1 < len(regex.text)): text = "(%s)" % text if self.min == 0 and self.max == 1: return "%s?" % text if self.min == self.max: return "%s{%u}" % (text, self.min) if self.max is None: if self.min =...
76d544519e3fbcdd35df053e3054fbce8a2ce9c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/76d544519e3fbcdd35df053e3054fbce8a2ce9c3/regex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 701, 12, 2890, 16, 2826, 9987, 4672, 977, 273, 609, 12, 2890, 18, 7584, 13, 309, 365, 18, 7584, 16186, 1106, 972, 422, 15078, 1876, 521, 578, 261, 2890, 18, 7584, 16186, 1106, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 701, 12, 2890, 16, 2826, 9987, 4672, 977, 273, 609, 12, 2890, 18, 7584, 13, 309, 365, 18, 7584, 16186, 1106, 972, 422, 15078, 1876, 521, 578, 261, 2890, 18, 7584, 16186, 1106, 972...
self.strip_paragraph = 1
def visit_reference(self, node): target = None # These are the special link schemes that MoinMoin supports. We let # MoinMoin handle these types. moin_link_schemes = ['wiki:', 'attachment:', 'inline:', 'drawing:'] # Do I need to lstrip? TODO: Find this out. Doesn't look like I need to # since I don't when assigning t...
531c379099d2b78f3c83756e295ecd3e6990f0ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/531c379099d2b78f3c83756e295ecd3e6990f0ec/rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 6180, 12, 2890, 16, 756, 4672, 1018, 273, 599, 225, 468, 8646, 854, 326, 4582, 1692, 20436, 716, 490, 885, 49, 885, 6146, 18, 1660, 2231, 468, 490, 885, 49, 885, 1640, 4259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 6180, 12, 2890, 16, 756, 4672, 1018, 273, 599, 225, 468, 8646, 854, 326, 4582, 1692, 20436, 716, 490, 885, 49, 885, 6146, 18, 1660, 2231, 468, 490, 885, 49, 885, 1640, 4259, ...