rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
recording.autoincrease = False
self.recording[self.selectedEntry].autoincrease = False
def inputCallback(self, value): if value is not None: print "stopping recording after", int(value), "minutes." if int(value) != 0: recording.autoincrease = False self.recording[self.selectedEntry].end = time() + 60 * int(value) self.session.nav.RecordTimer.timeChanged(self.recording[self.selectedEntry])
0663e43025ddbeb02efc57343b10e1304681c290 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/0663e43025ddbeb02efc57343b10e1304681c290/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 810, 2428, 12, 2890, 16, 460, 4672, 309, 460, 353, 486, 599, 30, 1172, 315, 5681, 1382, 14949, 1839, 3113, 509, 12, 1132, 3631, 315, 17916, 1199, 309, 509, 12, 1132, 13, 480, 374, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 810, 2428, 12, 2890, 16, 460, 4672, 309, 460, 353, 486, 599, 30, 1172, 315, 5681, 1382, 14949, 1839, 3113, 509, 12, 1132, 3631, 315, 17916, 1199, 309, 509, 12, 1132, 13, 480, 374, 30, ...
headers.addheader('Trailer', trailer)
headers.addheader('Trailer', trailer+'\r')
def check_trailer_headers (headers): """ Message header fields listed in the Trailer header field MUST NOT include the following header fields: . Transfer-Encoding . Content-Length . Trailer """ if "Trailer" not in headers: return tokeep = [] for trailer in headers.getheaders("Trailer"): if trailer.lower() not in forbidden_trailer_names: tokeep.append(trailer) del headers['Trailer'] for trailer in tokeep: headers.addheader('Trailer', trailer)
5c84c67327b9b90462d5c1a09f956adea73bc0f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5c84c67327b9b90462d5c1a09f956adea73bc0f1/Headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 15565, 264, 67, 2485, 261, 2485, 4672, 3536, 2350, 1446, 1466, 12889, 316, 326, 2197, 2895, 1446, 652, 10685, 4269, 2341, 326, 3751, 1446, 1466, 30, 263, 12279, 17, 4705, 263, 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, 866, 67, 15565, 264, 67, 2485, 261, 2485, 4672, 3536, 2350, 1446, 1466, 12889, 316, 326, 2197, 2895, 1446, 652, 10685, 4269, 2341, 326, 3751, 1446, 1466, 30, 263, 12279, 17, 4705, 263, 3...
if options.params: cmd += [ options.params ]
def runStartupPerfTests(options, timer, largeData=False, repeat=3, logger=log): """ Run startup time tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> runStartupPerfTests(options, '/usr/bin/time', repeat=1) Creating repository for startup time tests /.../RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log /.../RunChandler --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> runStartupPerfTests(options, '/usr/bin/time', largeData=True) Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --restore=test_profile/__repository__.001 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup_with_large_calendar 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 False >>> options.tbox = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/quit.py --create - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /usr/bin/time --format=%e -o test_profile/time.log .../release/RunChandler... --catch=tests --profileDir=test_profile --parcelPath=tools/QATestScripts/DataFiles --scriptFile=tools/QATestScripts/Performance/end.py Startup 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 0.00 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + | 0.00 ... 0.00 <BLANKLINE> Startup [#TINDERBOX# Status = PASSED] OSAF_QA: Startup | ... | 0.00 #TINDERBOX# Testname = Startup #TINDERBOX# Status = PASSED #TINDERBOX# Time elapsed = 0.00 (seconds) - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + False """ if repeat < 3: repeat = 3 # You can't get an accurate number otherwise # Create test repo if options.verbose: log('Creating repository for startup time tests') cmd = [ options.runchandler['release'], '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'quit.py') ] if not largeData: cmd += ['--create'] timeout = 180 name = 'Startup' else: cmd += ['--restore=%s' % os.path.join(options.profileDir, '__repository__.001')] timeout = 600 name = 'Startup_with_large_calendar' if options.verbose: log(' '.join(cmd)) if options.params: cmd += [ options.params ] if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=timeout, logger=logger) if result != 0: log('***Error exit code=%d, creating %s repository' % (result, name)) failedTests.append(name) return True if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) # Time startup values = [] timeLog = os.path.join(options.profileDir, 'time.log') if not options.dryrun: if os.path.isfile(timeLog): os.remove(timeLog) cmd = [ timer, r'--format=%e', '-o', timeLog, options.runchandler['release'], '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'end.py') ] if options.verbose: log(' '.join(cmd)) if options.params: cmd += [ options.params ] log(name.ljust(33), newline=' ') for _x in range(repeat): if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=180, logger=logger) if result == 0: if options.dryrun: line = '0.0' else: line = open(timeLog).readline()[:-1] try: value = float(line) except ValueError, e: log('| %s' % str(e)) failedTests.append(name) return True log(('%02.2f' % value).rjust(6), newline=' ') values.append(value) else: log('| failed') failedTests.append(name) return True if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) else: values.sort() value = values[repeat/2] log(' | ', newline='') log(('%02.2f' % value).rjust(6) , newline='') log(u' \u00B1 '.encode('utf8'), newline='') # Unicode PLUS-MINUS SIGN log(('%02.2f' % stddev(values)).rjust(6)) if options.tbox: revision = getattr(build_lib.loadModuleFromFile(os.path.join(options.chandlerHome, 'version.py'), 'vmodule'), 'revision', '') log('') log('%s [#TINDERBOX# Status = PASSED]' % name) log('OSAF_QA: %s | %s | %02.2f' % (name, revision, value)) log('#TINDERBOX# Testname = %s' % name) log('#TINDERBOX# Status = PASSED') log('#TINDERBOX# Time elapsed = %02.2f (seconds)' % value) if options.dryrun: log('- + ' * 15) else: logger('- + ' * 15) return False
b699ba32e2c975274e5bcf6e3ec7d39769952732 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/b699ba32e2c975274e5bcf6e3ec7d39769952732/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1...
try: record['originalairdate'] = unicode(prog.year, 'utf8') except (UnicodeEncodeError, TypeError): record['originalairdate'] = prog.year
record['originalairdate'] = prog.year
def _getScheduledRecordedProgramList(self): '''Find all Scheduled and Recorded programs return array of found programs, if none then empty array is returned ''' programs=[]
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, 588, 10660, 426, 3850, 785, 9459, 682, 12, 2890, 4672, 9163, 3125, 777, 17286, 471, 868, 3850, 785, 25038, 327, 526, 434, 1392, 25038, 16, 309, 6555, 1508, 1008, 526, 353, 2106, 916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 588, 10660, 426, 3850, 785, 9459, 682, 12, 2890, 4672, 9163, 3125, 777, 17286, 471, 868, 3850, 785, 25038, 327, 526, 434, 1392, 25038, 16, 309, 6555, 1508, 1008, 526, 353, 2106, 916...
ui.show_msg(self.window, _("File ") + "\"" + tags[0]['fullpath'] + "\"" + _(" not found. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy)
ui.show_msg(self.window, _("File ") + "\"" + tags[0]['fullpath'] + "\"" + _(" not found. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, response_cb=self.dialog_destroy)
def on_tags_edit(self, widget): # Try loading module global tagpy if tagpy is None: try: import tagpy try: # Set default tag encoding to utf8.. fixes some reported bugs. import tagpy.id3v2 as id3v2 id3v2.FrameFactory.instance().setDefaultTextEncoding(tagpy.StringType.UTF8) except: pass except: pass if tagpy is None: ui.show_msg(self.window, _("Taglib and/or tagpy not found, tag editing support disabled."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) return if not os.path.isdir(misc.file_from_utf8(self.musicdir[self.profile_num])): ui.show_msg(self.window, _("The path") + " " + self.musicdir[self.profile_num] + " " + _("does not exist. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) return ui.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) self.edit_style_orig = self.searchtext.get_style() while gtk.events_pending(): gtk.main_iteration() files = [] temp_mpdpaths = [] if self.current_tab == self.TAB_INFO: if self.status and self.status['state'] in ['play', 'pause']: # Use current file in songinfo: mpdpath = mpdh.get(self.songinfo, 'file') fullpath = self.musicdir[self.profile_num] + mpdpath files.append(fullpath) temp_mpdpaths.append(mpdpath) elif self.current_tab == self.TAB_LIBRARY: # Populates files array with selected library items: items = self.library_get_recursive_filenames(False) for item in items: files.append(self.musicdir[self.profile_num] + item) temp_mpdpaths.append(item) elif self.current_tab == self.TAB_CURRENT: # Populates files array with selected current playlist items: model, selected = self.current_selection.get_selected_rows() for path in selected: if not self.filterbox_visible: item = mpdh.get(self.songs[path[0]], 'file') else: item = mpdh.get(self.songs[self.filter_row_mapping[path[0]]], 'file') files.append(self.musicdir[self.profile_num] + item) temp_mpdpaths.append(item) if len(files) == 0: ui.change_cursor(None) return self.tagpy_is_91 = None # Initialize tags: tags = [] for filenum in range(len(files)): tags.append({'title':'', 'artist':'', 'album':'', 'year':'', 'track':'', 'genre':'', 'comment':'', 'title-changed':False, 'artist-changed':False, 'album-changed':False, 'year-changed':False, 'track-changed':False, 'genre-changed':False, 'comment-changed':False, 'fullpath':misc.file_from_utf8(files[filenum]), 'mpdpath':temp_mpdpaths[filenum]}) self.tagnum = -1 if not os.path.exists(tags[0]['fullpath']): ui.change_cursor(None) ui.show_msg(self.window, _("File ") + "\"" + tags[0]['fullpath'] + "\"" + _(" not found. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) return if self.tags_next_tag(tags) == False: ui.change_cursor(None) ui.show_msg(self.window, _("No music files with editable tags found."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) return editwindow = ui.dialog(parent=self.window, flags=gtk.DIALOG_MODAL, role='editTags', resizable=False, separator=False) editwindow.set_size_request(375, -1) table = gtk.Table(9, 2, False) table.set_row_spacings(2) filelabel = ui.label(select=True, wrap=True) filehbox = gtk.HBox() sonataicon = ui.image(stock='sonata', stocksize=gtk.ICON_SIZE_DND, x=1) blanklabel = ui.label(w=15, h=12) filehbox.pack_start(sonataicon, False, False, 2) filehbox.pack_start(filelabel, True, True, 2) filehbox.pack_start(blanklabel, False, False, 2) titlelabel = ui.label(text=_("Title") + ":", x=1) titleentry = ui.entry() titlebutton = ui.button() titlebuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(titlebutton, titlebuttonvbox, titleentry) titlehbox = gtk.HBox() titlehbox.pack_start(titlelabel, False, False, 2) titlehbox.pack_start(titleentry, True, True, 2) titlehbox.pack_start(titlebuttonvbox, False, False, 2) artistlabel = ui.label(text=_("Artist") + ":", x=1) artistentry = ui.entry() artisthbox = gtk.HBox() artistbutton = ui.button() artistbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(artistbutton, artistbuttonvbox, artistentry) artisthbox.pack_start(artistlabel, False, False, 2) artisthbox.pack_start(artistentry, True, True, 2) artisthbox.pack_start(artistbuttonvbox, False, False, 2) albumlabel = ui.label(text=_("Album") + ":", x=1) albumentry = ui.entry() albumhbox = gtk.HBox() albumbutton = ui.button() albumbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(albumbutton, albumbuttonvbox, albumentry) albumhbox.pack_start(albumlabel, False, False, 2) albumhbox.pack_start(albumentry, True, True, 2) albumhbox.pack_start(albumbuttonvbox, False, False, 2) yearlabel = ui.label(text=" " + _("Year") + ":", x=1) yearentry = ui.entry(w=50) handlerid = yearentry.connect("insert_text", self.tags_win_entry_constraint, True) yearentry.set_data('handlerid', handlerid) tracklabel = ui.label(text=" " + _("Track") + ":", x=1) trackentry = ui.entry(w=50) handlerid2 = trackentry.connect("insert_text", self.tags_win_entry_constraint, False) trackentry.set_data('handlerid2', handlerid2) yearbutton = ui.button() yearbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(yearbutton, yearbuttonvbox, yearentry) trackbutton = ui.button() trackbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(trackbutton, trackbuttonvbox, trackentry, True) yearandtrackhbox = gtk.HBox() yearandtrackhbox.pack_start(yearlabel, False, False, 2) yearandtrackhbox.pack_start(yearentry, True, True, 2) yearandtrackhbox.pack_start(yearbuttonvbox, False, False, 2) yearandtrackhbox.pack_start(tracklabel, False, False, 2) yearandtrackhbox.pack_start(trackentry, True, True, 2) yearandtrackhbox.pack_start(trackbuttonvbox, False, False, 2) genrelabel = ui.label(text=_("Genre") + ":", x=1) genrecombo = ui.comboentry(list=self.tags_win_genres(), wrap=2) genreentry = genrecombo.get_child() genrehbox = gtk.HBox() genrebutton = ui.button() genrebuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(genrebutton, genrebuttonvbox, genreentry) genrehbox.pack_start(genrelabel, False, False, 2) genrehbox.pack_start(genrecombo, True, True, 2) genrehbox.pack_start(genrebuttonvbox, False, False, 2) commentlabel = ui.label(text=_("Comment") + ":", x=1) commententry = ui.entry() commenthbox = gtk.HBox() commentbutton = ui.button() commentbuttonvbox = gtk.VBox() self.tags_win_create_apply_all_button(commentbutton, commentbuttonvbox, commententry) commenthbox.pack_start(commentlabel, False, False, 2) commenthbox.pack_start(commententry, True, True, 2) commenthbox.pack_start(commentbuttonvbox, False, False, 2) ui.set_widths_equal([titlelabel, artistlabel, albumlabel, yearlabel, genrelabel, commentlabel, sonataicon]) genrecombo.set_size_request(-1, titleentry.size_request()[1]) tablewidgets = [ui.label(), filehbox, ui.label(), titlehbox, artisthbox, albumhbox, yearandtrackhbox, genrehbox, commenthbox, ui.label()] for i in range(len(tablewidgets)): table.attach(tablewidgets[i], 1, 2, i+1, i+2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 2, 0) editwindow.vbox.pack_start(table) saveall_button = None if len(files) > 1: # Only show save all button if more than one song being edited. saveall_button = ui.button(text=_("Save _All")) editwindow.action_area.pack_start(saveall_button) cancelbutton = editwindow.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT) savebutton = editwindow.add_button(gtk.STOCK_SAVE, gtk.RESPONSE_ACCEPT) editwindow.connect('delete_event', self.tags_win_hide, tags) entries = [titleentry, artistentry, albumentry, yearentry, trackentry, genreentry, commententry, filelabel] buttons = [titlebutton, artistbutton, albumbutton, yearbutton, trackbutton, genrebutton, commentbutton] entries_names = ["title", "artist", "album", "year", "track", "genre", "comment"] editwindow.connect('response', self.tags_win_response, tags, entries, entries_names) if saveall_button: saveall_button.connect('clicked', self.tags_win_save_all, editwindow, tags, entries, entries_names) for i in range(len(entries)-1): entries[i].connect('changed', self.tags_win_entry_changed) for i in range(len(buttons)): buttons[i].connect('clicked', self.tags_win_apply_all, entries_names[i], tags, entries) self.tags_win_update(editwindow, tags, entries, entries_names) ui.change_cursor(None) entries[7].set_size_request(editwindow.size_request()[0] - titlelabel.size_request()[0] - 50, -1) editwindow.show_all()
42ec8106d5d9032fcd77e092d270c87208745f84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/42ec8106d5d9032fcd77e092d270c87208745f84/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 4156, 67, 4619, 12, 2890, 16, 3604, 4672, 468, 6161, 7153, 1605, 2552, 1047, 2074, 309, 1047, 2074, 353, 599, 30, 775, 30, 1930, 1047, 2074, 775, 30, 468, 1000, 805, 1047, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 4156, 67, 4619, 12, 2890, 16, 3604, 4672, 468, 6161, 7153, 1605, 2552, 1047, 2074, 309, 1047, 2074, 353, 599, 30, 775, 30, 1930, 1047, 2074, 775, 30, 468, 1000, 805, 1047, 268...
,'F':'float' ,'D':'double'
,'F32':'float:4' ,'F64':'float:8'
def build_simple_str_liststore(l): r = gtk.ListStore(str) for e in l: r.append([e]) return r
78440d3152e6d6ffda16bfdc0ae622d790564364 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/78440d3152e6d6ffda16bfdc0ae622d790564364/GameConqueror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9647, 67, 701, 67, 1098, 2233, 12, 80, 4672, 436, 273, 22718, 18, 682, 2257, 12, 701, 13, 364, 425, 316, 328, 30, 436, 18, 6923, 3816, 73, 5717, 327, 436, 225, 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, 1361, 67, 9647, 67, 701, 67, 1098, 2233, 12, 80, 4672, 436, 273, 22718, 18, 682, 2257, 12, 701, 13, 364, 425, 316, 328, 30, 436, 18, 6923, 3816, 73, 5717, 327, 436, 225, 2, -100, -...
sage: var('m') m
sage: var('m,n') (m, n)
def assume(*args): """ Make the given assumptions. INPUT: - ``*args`` - assumptions EXAMPLES:: sage: assume(x > 0) sage: bool(sqrt(x^2) == x) True sage: forget() sage: bool(sqrt(x^2) == x) False An integer constraint:: sage: var('n, P, r, r2') (n, P, r, r2) sage: assume(n, 'integer') sage: c = P*e^(r*n) sage: d = P*(1+r2)^n sage: solve(c==d,r2) [r2 == e^r - 1] :: sage: sin(n*pi) sin(pi*n) sage: sin(n*pi).simplify() 0 sage: forget() sage: sin(n*pi).simplify() sin(pi*n) TESTS: Test that you can do two non-relational declarations at once (fixing Trac ticket 7084):: sage: var('m') m sage: assume(n, 'integer'); assume(m, 'integer') sage: sin(n*pi).simplify() 0 sage: sin(m*pi).simplify() 0 sage: forget() """ for x in preprocess_assumptions(args): if isinstance(x, (tuple, list)): assume(*x) else: try: x.assume() except KeyError: raise TypeError, "assume not defined for objects of type '%s'"%type(x)
af93235ce102ea3788490bdc96edce12d6067a9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/af93235ce102ea3788490bdc96edce12d6067a9d/assumptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6750, 30857, 1968, 4672, 3536, 4344, 326, 864, 6287, 573, 18, 225, 12943, 30, 225, 300, 225, 12176, 14, 1968, 10335, 300, 6287, 573, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 6750...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6750, 30857, 1968, 4672, 3536, 4344, 326, 864, 6287, 573, 18, 225, 12943, 30, 225, 300, 225, 12176, 14, 1968, 10335, 300, 6287, 573, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 6750...
if self.debug: log.msg('ftp_USER params: %s' % params)
log.debug('ftp_USER params: %s' % params)
def ftp_USER(self, params): """Get the login name, and reset the session PASS is expected to follow
cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0/jdftp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 4714, 12, 2890, 16, 859, 4672, 3536, 967, 326, 3925, 508, 16, 471, 2715, 326, 1339, 17882, 353, 2665, 358, 2805, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 13487, 67, 4714, 12, 2890, 16, 859, 4672, 3536, 967, 326, 3925, 508, 16, 471, 2715, 326, 1339, 17882, 353, 2665, 358, 2805, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.adjustSize()
def __init__(self,parent=None, signalManager = None, name = "Imputer"): OWWidget.__init__(self, parent, signalManager, name) self.inputs = [("Classified Examples", ExampleTableWithClass, self.cdata, Default)] self.outputs = [("Classified Examples", ExampleTableWithClass, Default), ("Imputer", orange.ImputerConstructor)]
c851d11d09284089edf54d1ccc2d14f74a5be5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c851d11d09284089edf54d1ccc2d14f74a5be5e7/OWImputer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 1170, 458, 264, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 1170, 458, 264, 6, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, ...
self.graph.add((subj, dcterms["tableOfContents"], toc_resource))
self.graph.add((toc_resource, dct["isPartOf"], self.dataset_resource)) self.graph.add((subj, dct["tableOfContents"], toc_resource))
def convert(self, indata): data = json.read(indata) if data["key"].startswith("/user/"): return
02cf5291fc029decc1161f03e51e28c2900474a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4788/02cf5291fc029decc1161f03e51e28c2900474a0/json2rdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 316, 892, 4672, 501, 273, 1163, 18, 896, 12, 728, 396, 13, 225, 309, 501, 9614, 856, 6, 8009, 17514, 1918, 2932, 19, 1355, 4898, 4672, 327, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 316, 892, 4672, 501, 273, 1163, 18, 896, 12, 728, 396, 13, 225, 309, 501, 9614, 856, 6, 8009, 17514, 1918, 2932, 19, 1355, 4898, 4672, 327, 2, -100, -100, -100, -...
node = repo.changectx(opts['rev']).node()
ctx = repo.changectx(opts['rev']) if not ctx: raise util.Abort(_('repository has no revisions')) node = ctx.node()
def archive(ui, repo, dest, **opts): '''create unversioned archive of a repository revision By default, the revision used is the parent of the working directory; use "-r" to specify a different revision. To specify the type of archive to create, use "-t". Valid types are: "files" (default): a directory full of files "tar": tar archive, uncompressed "tbz2": tar archive, compressed using bzip2 "tgz": tar archive, compressed using gzip "uzip": zip archive, uncompressed "zip": zip archive, compressed using deflate The exact name of the destination archive or directory is given using a format string; see "hg help export" for details. Each member added to an archive file has a directory prefix prepended. Use "-p" to specify a format string for the prefix. The default is the basename of the archive, with suffixes removed. ''' node = repo.changectx(opts['rev']).node() dest = cmdutil.make_filename(repo, dest, node) if os.path.realpath(dest) == repo.root: raise util.Abort(_('repository root cannot be destination')) dummy, matchfn, dummy = cmdutil.matchpats(repo, [], opts) kind = opts.get('type') or 'files' prefix = opts['prefix'] if dest == '-': if kind == 'files': raise util.Abort(_('cannot archive plain files to stdout')) dest = sys.stdout if not prefix: prefix = os.path.basename(repo.root) + '-%h' prefix = cmdutil.make_filename(repo, prefix, node) archival.archive(repo, dest, node, kind, not opts['no_decode'], matchfn, prefix)
26bfcd2f4b5df01e4c297e7b81f13551ca5523ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/26bfcd2f4b5df01e4c297e7b81f13551ca5523ff/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 4881, 16, 3538, 16, 1570, 16, 2826, 4952, 4672, 9163, 2640, 29645, 5052, 434, 279, 3352, 6350, 225, 2525, 805, 16, 326, 6350, 1399, 353, 326, 982, 434, 326, 5960, 1867, 31, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5052, 12, 4881, 16, 3538, 16, 1570, 16, 2826, 4952, 4672, 9163, 2640, 29645, 5052, 434, 279, 3352, 6350, 225, 2525, 805, 16, 326, 6350, 1399, 353, 326, 982, 434, 326, 5960, 1867, 31, 9...
TixSubWidget.__init__(self, master, name, destroy_physically)
TixSubWidget.__init__(self, master, name, destroy_physically)
def __init__(self, master, name, destroy_physically=1):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 508, 16, 5546, 67, 844, 1900, 6478, 33, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
path=basedir.save_config_path(site, dir, leaf)
path=basedir.save_config_path(site, dir) path=os.path.join(path, leaf)
def save_path(site, dir, leaf, create=1): parent=basedir.save_config_path(site, dir) if os.path.isdir(parent): path=basedir.save_config_path(site, dir, leaf) else: path=choices.save(dir, leaf, create) return path
e6eb2cc22cdef290eb0e3ae781ee887012194dee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/e6eb2cc22cdef290eb0e3ae781ee887012194dee/mime_handler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 803, 12, 4256, 16, 1577, 16, 7839, 16, 752, 33, 21, 4672, 982, 33, 31722, 18, 5688, 67, 1425, 67, 803, 12, 4256, 16, 1577, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 2938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 803, 12, 4256, 16, 1577, 16, 7839, 16, 752, 33, 21, 4672, 982, 33, 31722, 18, 5688, 67, 1425, 67, 803, 12, 4256, 16, 1577, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 2938...
items = l.items
def ll_pop_zero(func, l): length = l.length if func is dum_checkidx and (length == 0): raise IndexError newlength = length - 1 res = l.items[0] j = 0 items = l.items j1 = j+1 while j < newlength: items[j] = items[j1] j = j1 j1 += 1 ITEM = typeOf(l).TO.ITEM if isinstance(ITEM, Ptr): items[newlength] = nullptr(ITEM.TO) _ll_list_resize_le(l, newlength) return res
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 5120, 67, 7124, 12, 644, 16, 328, 4672, 769, 273, 328, 18, 2469, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 2469, 422, 374, 4672, 1002, 10195, 394, 2469, 273, 769, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 5120, 67, 7124, 12, 644, 16, 328, 4672, 769, 273, 328, 18, 2469, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 2469, 422, 374, 4672, 1002, 10195, 394, 2469, 273, 769, 300, ...
print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol']
msg = "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] appendTextview(self.textviewStdOut, msg)
def pick(self, event): #import ipdb; ipdb.set_trace() #We want to round from the picking location to #the time value of the nearest time sample: samp_rate = self.streams[self.stPt][0].stats.sampling_rate pickSample = event.xdata * samp_rate pickSample = round(pickSample) pickSample = pickSample / samp_rate # we need the position of the cursor location # in the seismogram array: xpos = pickSample * samp_rate # Set new P Pick if self.flagPhase==0 and event.key==self.dictKeybindings['setPick']: self.delPLine() self.delPLabel() self.delPsynthLine() self.dicts[self.stPt]['P'] = pickSample self.drawPLine() self.drawPLabel() self.drawPsynthLine() self.drawPsynthLabel() #check if the new P pick lies outside of the Error Picks try: if self.dicts[self.stPt]['P']<self.dicts[self.stPt]['PErr1']: self.delPErr1Line() self.delPErr1() except: pass try: if self.dicts[self.stPt]['P']>self.dicts[self.stPt]['PErr2']: self.delPErr2Line() self.delPErr2() except: pass # Update all subplots self.redraw() # Console output print "P Pick set at %.3f" % self.dicts[self.stPt]['P'] # Set P Pick weight if self.dicts[self.stPt].has_key('P'): if self.flagPhase==0 and event.key==self.dictKeybindings['setPWeight0']: self.delPLabel() self.dicts[self.stPt]['PWeight']=0 self.drawPLabel() self.redraw() print "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight'] if self.flagPhase==0 and event.key==self.dictKeybindings['setPWeight1']: self.delPLabel() self.dicts[self.stPt]['PWeight']=1 print "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight'] self.drawPLabel() self.redraw() if self.flagPhase==0 and event.key==self.dictKeybindings['setPWeight2']: self.delPLabel() self.dicts[self.stPt]['PWeight']=2 print "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight'] self.drawPLabel() self.redraw() if self.flagPhase==0 and event.key==self.dictKeybindings['setPWeight3']: self.delPLabel() self.dicts[self.stPt]['PWeight']=3 print "P Pick weight set to %i"%self.dicts[self.stPt]['PWeight'] self.drawPLabel() self.redraw() # Set P Pick polarity if self.dicts[self.stPt].has_key('P'): if self.flagPhase==0 and event.key==self.dictKeybindings['setPPolUp']: self.delPLabel() self.dicts[self.stPt]['PPol']='up' self.drawPLabel() self.redraw() print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] if self.flagPhase==0 and event.key==self.dictKeybindings['setPPolPoorUp']: self.delPLabel() self.dicts[self.stPt]['PPol']='poorup' self.drawPLabel() self.redraw() print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] if self.flagPhase==0 and event.key==self.dictKeybindings['setPPolDown']: self.delPLabel() self.dicts[self.stPt]['PPol']='down' self.drawPLabel() self.redraw() print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] if self.flagPhase==0 and event.key==self.dictKeybindings['setPPolPoorDown']: self.delPLabel() self.dicts[self.stPt]['PPol']='poordown' self.drawPLabel() self.redraw() print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] # Set P Pick onset if self.dicts[self.stPt].has_key('P'): if self.flagPhase == 0 and event.key == self.dictKeybindings['setPOnsetImpulsive']: self.delPLabel() self.dicts[self.stPt]['POnset'] = 'impulsive' self.drawPLabel() self.redraw() print "P pick onset set to %s" % self.dicts[self.stPt]['POnset'] elif self.flagPhase == 0 and event.key == self.dictKeybindings['setPOnsetEmergent']: self.delPLabel() self.dicts[self.stPt]['POnset'] = 'emergent' self.drawPLabel() self.redraw() print "P pick onset set to %s" % self.dicts[self.stPt]['POnset'] # Set new S Pick if self.flagPhase==1 and event.key==self.dictKeybindings['setPick']: self.delSLine() self.delSLabel() self.delSsynthLine() self.dicts[self.stPt]['S'] = pickSample self.dicts[self.stPt]['Saxind'] = self.axs.index(event.inaxes) self.drawSLine() self.drawSLabel() self.drawSsynthLine() self.drawSsynthLabel() #check if the new S pick lies outside of the Error Picks try: if self.dicts[self.stPt]['S']<self.dicts[self.stPt]['SErr1']: self.delSErr1Line() self.delSErr1() except: pass try: if self.dicts[self.stPt]['S']>self.dicts[self.stPt]['SErr2']: self.delSErr2Line() self.delSErr2() except: pass # Update all subplots self.redraw() # Console output print "S Pick set at %.3f" % self.dicts[self.stPt]['S'] # Set S Pick weight if self.dicts[self.stPt].has_key('S'): if self.flagPhase==1 and event.key==self.dictKeybindings['setSWeight0']: self.delSLabel() self.dicts[self.stPt]['SWeight']=0 self.drawSLabel() self.redraw() print "S Pick weight set to %i"%self.dicts[self.stPt]['SWeight'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSWeight1']: self.delSLabel() self.dicts[self.stPt]['SWeight']=1 self.drawSLabel() self.redraw() print "S Pick weight set to %i"%self.dicts[self.stPt]['SWeight'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSWeight2']: self.delSLabel() self.dicts[self.stPt]['SWeight']=2 self.drawSLabel() self.redraw() print "S Pick weight set to %i"%self.dicts[self.stPt]['SWeight'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSWeight3']: self.delSLabel() self.dicts[self.stPt]['SWeight']=3 self.drawSLabel() self.redraw() print "S Pick weight set to %i"%self.dicts[self.stPt]['SWeight'] # Set S Pick polarity if self.dicts[self.stPt].has_key('S'): if self.flagPhase==1 and event.key==self.dictKeybindings['setSPolUp']: self.delSLabel() self.dicts[self.stPt]['SPol']='up' self.drawSLabel() self.redraw() print "S Pick polarity set to %s"%self.dicts[self.stPt]['SPol'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSPolPoorUp']: self.delSLabel() self.dicts[self.stPt]['SPol']='poorup' self.drawSLabel() self.redraw() print "S Pick polarity set to %s"%self.dicts[self.stPt]['SPol'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSPolDown']: self.delSLabel() self.dicts[self.stPt]['SPol']='down' self.drawSLabel() self.redraw() print "S Pick polarity set to %s"%self.dicts[self.stPt]['SPol'] if self.flagPhase==1 and event.key==self.dictKeybindings['setSPolPoorDown']: self.delSLabel() self.dicts[self.stPt]['SPol']='poordown' self.drawSLabel() self.redraw() print "S Pick polarity set to %s"%self.dicts[self.stPt]['SPol'] # Set S Pick onset if self.dicts[self.stPt].has_key('S'): if self.flagPhase == 1 and event.key == self.dictKeybindings['setSOnsetImpulsive']: self.delSLabel() self.dicts[self.stPt]['SOnset'] = 'impulsive' self.drawSLabel() self.redraw() print "S pick onset set to %s" % self.dicts[self.stPt]['SOnset'] elif self.flagPhase == 1 and event.key == self.dictKeybindings['setSOnsetEmergent']: self.delSLabel() self.dicts[self.stPt]['SOnset'] = 'emergent' self.drawSLabel() self.redraw() print "S pick onset set to %s" % self.dicts[self.stPt]['SOnset'] # Remove P Pick if self.flagPhase==0 and event.key==self.dictKeybindings['delPick']: # Try to remove all existing Pick lines and P Pick variable self.delPLine() self.delP() self.delPWeight() self.delPPol() self.delPOnset() self.delPLabel() # Try to remove existing Pick Error 1 lines and variable self.delPErr1Line() self.delPErr1() # Try to remove existing Pick Error 2 lines and variable self.delPErr2Line() self.delPErr2() # Update all subplots self.redraw() # Remove S Pick if self.flagPhase==1 and event.key==self.dictKeybindings['delPick']: # Try to remove all existing Pick lines and P Pick variable self.delSLine() self.delS() self.delSWeight() self.delSPol() self.delSOnset() self.delSLabel() # Try to remove existing Pick Error 1 lines and variable self.delSErr1Line() self.delSErr1() # Try to remove existing Pick Error 2 lines and variable self.delSErr2Line() self.delSErr2() # Update all subplots self.redraw() # Set new P Pick uncertainties if self.flagPhase==0 and event.key==self.dictKeybindings['setPickError']: # Set Flag to determine scenario try: # Set left Error Pick if pickSample < self.dicts[self.stPt]['P']: errFlag=1 # Set right Error Pick else: errFlag=2 # Set no Error Pick (no P Pick yet) except: return # Case 1 if errFlag==1: # Define global variables seen outside # Remove old lines from the plot before plotting the new ones self.delPErr1Line() # Save time value of sample nearest to error pick self.dicts[self.stPt]['PErr1'] = pickSample # Plot the lines for the P Error pick in all three traces self.drawPErr1Line() # Update all subplots self.redraw() # Console output print "P Error Pick 1 set at %.3f" % \ self.dicts[self.stPt]['PErr1'] # Case 2 if errFlag==2: # Define global variables seen outside # Remove old lines from the plot before plotting the new ones self.delPErr2Line() # Save time value of sample nearest to error pick self.dicts[self.stPt]['PErr2'] = pickSample # Plot the lines for the P Error pick in all three traces self.drawPErr2Line() # Update all subplots self.redraw() # Console output print "P Error Pick 2 set at %.3f" % \ self.dicts[self.stPt]['PErr2'] # Set new S Pick uncertainties if self.flagPhase==1 and event.key==self.dictKeybindings['setPickError']: # Set Flag to determine scenario try: # Set left Error Pick if pickSample < self.dicts[self.stPt]['S']: errFlag=1 # Set right Error Pick else: errFlag=2 # Set no Error Pick (no S Pick yet) except: return # Case 1 if errFlag==1: # Define global variables seen outside # Remove old lines from the plot before plotting the new ones self.delSErr1Line() # Save sample value of error pick (round to integer sample value) self.dicts[self.stPt]['SErr1'] = pickSample # Plot the lines for the S Error pick in all three traces self.drawSErr1Line() # Update all subplots self.redraw() # Console output print "S Error Pick 1 set at %.3f" % \ self.dicts[self.stPt]['SErr1'] # Case 2 if errFlag==2: # Define global variables seen outside # Remove old lines from the plot before plotting the new ones self.delSErr2Line() # Save sample value of error pick (round to integer sample value) self.dicts[self.stPt]['SErr2'] = pickSample # Plot the lines for the S Error pick in all three traces self.drawSErr2Line() # Update all subplots self.redraw() # Console output print "S Error Pick 2 set at %.3f" % \ self.dicts[self.stPt]['SErr2'] # Magnitude estimation picking: if self.flagPhase==2 and event.key==self.dictKeybindings['setMagMin'] and len(self.axs) > 2: if event.inaxes == self.axs[1]: self.delMagMinCross1() ydata=event.inaxes.lines[0].get_ydata() #get the first line hoping that it is the seismogram! cutoffSamples=xpos-self.magPickWindow #remember, how much samples there are before our small window! We have to add this number for our MagMinT estimation! self.dicts[self.stPt]['MagMin1']=np.min(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) # save time of magnitude minimum in seconds tmp_magtime = cutoffSamples + np.argmin(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) tmp_magtime = tmp_magtime / samp_rate self.dicts[self.stPt]['MagMin1T'] = tmp_magtime #delete old MagMax Pick, if new MagMin Pick is higher try: if self.dicts[self.stPt]['MagMin1'] > self.dicts[self.stPt]['MagMax1']: self.delMagMaxCross1() self.delMagMax1() except: pass self.drawMagMinCross1() self.redraw() print "Minimum for magnitude estimation set: %s at %.3f" % \ (self.dicts[self.stPt]['MagMin1'], self.dicts[self.stPt]['MagMin1T']) elif event.inaxes == self.axs[2]: self.delMagMinCross2() ydata=event.inaxes.lines[0].get_ydata() #get the first line hoping that it is the seismogram! cutoffSamples=xpos-self.magPickWindow #remember, how much samples there are before our small window! We have to add this number for our MagMinT estimation! self.dicts[self.stPt]['MagMin2']=np.min(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) # save time of magnitude minimum in seconds tmp_magtime = cutoffSamples + np.argmin(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) tmp_magtime = tmp_magtime / samp_rate self.dicts[self.stPt]['MagMin2T'] = tmp_magtime #delete old MagMax Pick, if new MagMin Pick is higher try: if self.dicts[self.stPt]['MagMin2'] > self.dicts[self.stPt]['MagMax2']: self.delMagMaxCross2() self.delMagMax2() except: pass self.drawMagMinCross2() self.redraw() print "Minimum for magnitude estimation set: %s at %.3f" % \ (self.dicts[self.stPt]['MagMin2'], self.dicts[self.stPt]['MagMin2T']) if self.flagPhase==2 and event.key==self.dictKeybindings['setMagMax'] and len(self.axs) > 2: if event.inaxes == self.axs[1]: self.delMagMaxCross1() ydata=event.inaxes.lines[0].get_ydata() #get the first line hoping that it is the seismogram! cutoffSamples=xpos-self.magPickWindow #remember, how much samples there are before our small window! We have to add this number for our MagMinT estimation! self.dicts[self.stPt]['MagMax1']=np.max(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) # save time of magnitude maximum in seconds tmp_magtime = cutoffSamples + np.argmax(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) tmp_magtime = tmp_magtime / samp_rate self.dicts[self.stPt]['MagMax1T'] = tmp_magtime #delete old MagMax Pick, if new MagMax Pick is higher try: if self.dicts[self.stPt]['MagMin1'] > self.dicts[self.stPt]['MagMax1']: self.delMagMinCross1() self.delMagMin1() except: pass self.drawMagMaxCross1() self.redraw() print "Maximum for magnitude estimation set: %s at %.3f" % \ (self.dicts[self.stPt]['MagMax1'], self.dicts[self.stPt]['MagMax1T']) elif event.inaxes == self.axs[2]: self.delMagMaxCross2() ydata=event.inaxes.lines[0].get_ydata() #get the first line hoping that it is the seismogram! cutoffSamples=xpos-self.magPickWindow #remember, how much samples there are before our small window! We have to add this number for our MagMinT estimation! self.dicts[self.stPt]['MagMax2']=np.max(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) # save time of magnitude maximum in seconds tmp_magtime = cutoffSamples + np.argmax(ydata[xpos-self.magPickWindow:xpos+self.magPickWindow]) tmp_magtime = tmp_magtime / samp_rate self.dicts[self.stPt]['MagMax2T'] = tmp_magtime #delete old MagMax Pick, if new MagMax Pick is higher try: if self.dicts[self.stPt]['MagMin2'] > self.dicts[self.stPt]['MagMax2']: self.delMagMinCross2() self.delMagMin2() except: pass self.drawMagMaxCross2() self.redraw() print "Maximum for magnitude estimation set: %s at %.3f" % \ (self.dicts[self.stPt]['MagMax2'],self.dicts[self.stPt]['MagMax2T']) if self.flagPhase == 2 and event.key == self.dictKeybindings['delMagMinMax']: if event.inaxes == self.axs[1]: self.delMagMaxCross1() self.delMagMinCross1() self.delMagMin1() self.delMagMax1() elif event.inaxes == self.axs[2]: self.delMagMaxCross2() self.delMagMinCross2() self.delMagMin2() self.delMagMax2() else: return self.redraw()
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 12, 2890, 16, 871, 4672, 468, 5666, 2359, 1966, 31, 2359, 1966, 18, 542, 67, 5129, 1435, 468, 3218, 2545, 358, 3643, 628, 326, 6002, 310, 2117, 358, 468, 5787, 813, 460, 434, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 12, 2890, 16, 871, 4672, 468, 5666, 2359, 1966, 31, 2359, 1966, 18, 542, 67, 5129, 1435, 468, 3218, 2545, 358, 3643, 628, 326, 6002, 310, 2117, 358, 468, 5787, 813, 460, 434, 326...
actor = vtk.vtkTextActor()
actor = vtk.vtkTextActor()
def __init__(self):
5d5cd99a1c1efaf0ffb78b152f96c66ac44cfd60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/5d5cd99a1c1efaf0ffb78b152f96c66ac44cfd60/vtk_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if v.message != 32 or not self.auto_open:
if v.args[0] != 32 or not self.auto_open:
def request(self, method, url, body=None, headers={}): """Send a complete request to the server."""
1d6ba71bcaa05e769688a67865f6a2377c37bff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1d6ba71bcaa05e769688a67865f6a2377c37bff0/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'coordinates': get_coordinates(geometry)}
'coordinates': get_coordinates(self)}
def get_coordinates(geometry): gtype = geometry.GetGeometryType() geom_count = geometry.GetGeometryCount() coordinates = []
f3c97359caf81e28f92b4ec9b4bd28269c54ae44 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/f3c97359caf81e28f92b4ec9b4bd28269c54ae44/ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16941, 12, 14330, 4672, 314, 723, 273, 5316, 18, 967, 9823, 559, 1435, 7364, 67, 1883, 273, 5316, 18, 967, 9823, 1380, 1435, 5513, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16941, 12, 14330, 4672, 314, 723, 273, 5316, 18, 967, 9823, 559, 1435, 7364, 67, 1883, 273, 5316, 18, 967, 9823, 1380, 1435, 5513, 273, 5378, 2, -100, -100, -100, -100, -100, ...
slen, raw = ord(raw[0]), raw[1:]
slen, raw = consume_utf8_length(raw)
def _read_manifest(self): if '/manifest' not in self.entries: raise LitError('Lit file does not have a valid manifest') raw = self.get_file('/manifest') self.manifest = {} while raw: slen, raw = ord(raw[0]), raw[1:] if slen == 0: break root, raw = raw[:slen].decode('utf8'), raw[slen:] if not raw: raise LitError('Truncated manifest') for state in ['spine', 'not spine', 'css', 'images']: num_files, raw = int32(raw), raw[4:] if num_files == 0: continue for i in xrange(num_files): if len(raw) < 5: raise LitError('Truncated manifest') offset, raw = u32(raw), raw[4:] slen, raw = ord(raw[0]), raw[1:] internal, raw = raw[:slen].decode('utf8'), raw[slen:] slen, raw = ord(raw[0]), raw[1:] original, raw = raw[:slen].decode('utf8'), raw[slen:] slen, raw = ord(raw[0]), raw[1:] mime_type, raw = raw[:slen].decode('utf8'), raw[slen+1:] self.manifest[internal] = ManifestItem( original, internal, mime_type, offset, root, state) mlist = self.manifest.values() shared = mlist[0].path for item in mlist[1:]: path = item.path while shared and not path.startswith(shared): try: shared = shared[:shared.rindex("/", 0, -2) + 1] except ValueError: shared = None if not shared: break if shared: slen = len(shared) for item in mlist: item.path = item.path[slen:]
1eba7afa35284fba49addae1594c0ae0751f3555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/1eba7afa35284fba49addae1594c0ae0751f3555/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 14357, 12, 2890, 4672, 309, 1173, 14357, 11, 486, 316, 365, 18, 8219, 30, 1002, 511, 305, 668, 2668, 23707, 585, 1552, 486, 1240, 279, 923, 5643, 6134, 1831, 273, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 14357, 12, 2890, 4672, 309, 1173, 14357, 11, 486, 316, 365, 18, 8219, 30, 1002, 511, 305, 668, 2668, 23707, 585, 1552, 486, 1240, 279, 923, 5643, 6134, 1831, 273, 365, 18...
self.exportAttributes(outfile, level, namespace_, name_='ContinuousChar')
self.exportAttributes(outfile, level, [], namespace_, name_='ContinuousChar')
def export(self, outfile, level, namespace_='', name_='ContinuousChar', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='ContinuousChar') if self.hasContent_(): outfile.write('>\n') self.exportChildren(outfile, level + 1, namespace_, name_) showIndent(outfile, level) outfile.write('</%s%s>\n' % (namespace_, name_)) else: outfile.write('/>\n')
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 26509, 2156, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 13, 8756, 18, 2626, 2668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 26509, 2156, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 13, 8756, 18, 2626, 2668...
print_undoc_symbols(PREFIX, docdir, incdir)
print_undoc_symbols(PREFIXES, docdir, incdir)
def print_undoc_symbols(prefix, docdir, incdir): docs = [] for sect in DOCSECTIONS: for file in glob.glob(os.path.join(docdir, sect, "*.tex")): docs.append(open(file).read()) docs = "\n".join(docs) incfiles = os.path.join(incdir, INCLUDEPATTERN) fp = os.popen("ctags -IDL_IMPORT --c-types=%s -f - %s" % (TAG_KINDS, incfiles)) dict = findnames(fp, prefix) names = dict.keys() names.sort() for name in names: if docs.find(name) == -1: print dict[name], name
3765bd23f1517b1a04fc6472a2ca1e8ea61a227f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3765bd23f1517b1a04fc6472a2ca1e8ea61a227f/undoc_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1074, 504, 67, 15536, 12, 3239, 16, 997, 1214, 16, 7290, 1214, 4672, 3270, 273, 5378, 225, 364, 29140, 316, 5467, 39, 19082, 55, 30, 364, 585, 316, 4715, 18, 10581, 12, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1074, 504, 67, 15536, 12, 3239, 16, 997, 1214, 16, 7290, 1214, 4672, 3270, 273, 5378, 225, 364, 29140, 316, 5467, 39, 19082, 55, 30, 364, 585, 316, 4715, 18, 10581, 12, 538, ...
Example -------
Examples --------
def cublasDnrm2(n, x, incx): """ Euclidean norm (2-norm) of real vector. Computes the Euclidean norm of a real double-precision vector. Parameters ---------- n : int Number of elements in input vectors. x : ctypes.c_void_p Pointer to double-precision input vector. incx : int Storage spacing between elements of `x`. Returns ------- nrm : numpy.float64 Euclidean norm of `x`. Example ------- >>> import pycuda.autoinit >>> import pycuda.gpuarray as gpuarray >>> import numpy as np >>> x = np.random.rand(5).astype(np.float64) >>> x_gpu = gpuarray.to_gpu(x) >>> nrm = cublasDnrm2(x.size, x_gpu.gpudata, 1) >>> np.allclose(nrm, np.linalg.norm(x)) True """ a = _libcublas.cublasDnrm2(n, int(x), incx) status = cublasGetError() cublasCheckStatus(status) return np.float64(a)
f3eb0a79d8c436d509dec60f91ff7a7dcced528c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/f3eb0a79d8c436d509dec60f91ff7a7dcced528c/cublas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 30579, 19053, 8864, 22, 12, 82, 16, 619, 16, 7290, 92, 4672, 3536, 512, 22392, 4651, 261, 22, 17, 7959, 13, 434, 2863, 3806, 18, 225, 14169, 281, 326, 512, 22392, 4651, 434, 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, 276, 30579, 19053, 8864, 22, 12, 82, 16, 619, 16, 7290, 92, 4672, 3536, 512, 22392, 4651, 261, 22, 17, 7959, 13, 434, 2863, 3806, 18, 225, 14169, 281, 326, 512, 22392, 4651, 434, 279, ...
_active.append(self)
def __init__(self, args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0): """Create new Popen instance.""" _cleanup()
091f97ac75923a9f8149f440cdb29114d4267997 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/091f97ac75923a9f8149f440cdb29114d4267997/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 833, 16, 1681, 1467, 33, 20, 16, 9070, 33, 7036, 16, 8801, 33, 7036, 16, 3909, 33, 7036, 16, 4514, 33, 7036, 16, 675, 4177, 67, 4293, 33, 7036, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 833, 16, 1681, 1467, 33, 20, 16, 9070, 33, 7036, 16, 8801, 33, 7036, 16, 3909, 33, 7036, 16, 4514, 33, 7036, 16, 675, 4177, 67, 4293, 33, 7036, 16, 1...
self.__character = character
def __init__(self, character, weight): self.__level = character.modulus() self.__character = character self.__P1 = p1list.P1List(self.level()) # The list returned from P1List is guaranteed to be sorted. # Thus each list constructed below is also sorted. This is # important since the index function assumes the list is sorted. L = [(i, u, v) for i in range(weight-2+1) \ for u, v in self.__P1.list()]
f01e95305ef47ec6d1b6fc037549dd29c31e2dcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/f01e95305ef47ec6d1b6fc037549dd29c31e2dcf/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3351, 16, 3119, 4672, 365, 16186, 2815, 273, 3351, 18, 1711, 17284, 1435, 365, 16186, 52, 21, 273, 293, 21, 1098, 18, 52, 21, 682, 12, 2890, 18, 2815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3351, 16, 3119, 4672, 365, 16186, 2815, 273, 3351, 18, 1711, 17284, 1435, 365, 16186, 52, 21, 273, 293, 21, 1098, 18, 52, 21, 682, 12, 2890, 18, 2815, ...
command = 'CONVERT_PDF\nPATH=%s\n' % (absdocpath,) result = self.sendRequest(command) return result
return absdocpath
def convertToPDF(self, filename, data): """Send a request to a running pyuno server to convert to PDF.
ddf7bf8471df24d5d021583656effd577dadfe80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9162/ddf7bf8471df24d5d021583656effd577dadfe80/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 17508, 12, 2890, 16, 1544, 16, 501, 4672, 3536, 3826, 279, 590, 358, 279, 3549, 2395, 318, 83, 1438, 358, 1765, 358, 12667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 17508, 12, 2890, 16, 1544, 16, 501, 4672, 3536, 3826, 279, 590, 358, 279, 3549, 2395, 318, 83, 1438, 358, 1765, 358, 12667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def do_forecasts(self, city):
def do_forecasts(self, line):
def do_forecasts(self, city): """ forecasts CITY
8827b15496f5f474965b352a253dfc2648a268e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8827b15496f5f474965b352a253dfc2648a268e0/wetboobs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1405, 4155, 87, 12, 2890, 16, 980, 4672, 3536, 18763, 87, 385, 4107, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1405, 4155, 87, 12, 2890, 16, 980, 4672, 3536, 18763, 87, 385, 4107, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
form_fs = self.get_fs_layout_content(portal_meta, skin_id, scheme_id, file_id, rtype)
form_fs = self.get_fs_layout_content(portal, skin_id, scheme_id, file_id, rtype)
def updateLayoutForms(self, portal, locator, skin_id, f_action, file_id): """ reload Naaya portal layout files""" report = {} portal_path = portal.absolute_url(1) portal_meta = portal.meta_type file_custom = [] for fid in file_id.split(','): file_custom.append(fid.strip())
ba7db54416bb4a2a8ec35d231a25c000f8c28f7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/ba7db54416bb4a2a8ec35d231a25c000f8c28f7e/NaayaUpdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 1...
newCacheWhitelist[cKey] = res[:-1]
newCacheWhitelist[cKey] = tuple(res[1:])
def __cacheAllRefresh(self): """This method has to be called from synchronized block.""" if self.allDataCacheRefresh > time.time(): return
2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2493, 1595, 8323, 12, 2890, 4672, 3536, 2503, 707, 711, 358, 506, 2566, 628, 3852, 1203, 12123, 309, 365, 18, 454, 751, 1649, 8323, 405, 813, 18, 957, 13332, 327, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2493, 1595, 8323, 12, 2890, 4672, 3536, 2503, 707, 711, 358, 506, 2566, 628, 3852, 1203, 12123, 309, 365, 18, 454, 751, 1649, 8323, 405, 813, 18, 957, 13332, 327, 2, -100, -100, ...
sys.stderr.write("'generate_hostconf = True' in main.mk.\n")
sys.stderr.write("'generate_hostconf = False' in main.mk.\n")
def read_all_autochecks(): global autochecks autochecks = [] for f in glob.glob(autochecksdir + '/*.mk'): try: autochecks += eval(file(f).read()) except SyntaxError,e: sys.stderr.write("Syntax error in file %s: %s\n" % (f, e)) sys.exit(3) except Exception, e: sys.stderr.write("Error in file %s:\n%s\n" % (f, e)) sys.exit(3) # Exchange inventorized check parameters with those configured by # the user. if check_parameters != []: new_autochecks = [] for autocheck in autochecks: host, checktype, item, params = autocheck descr = service_description(checktype, item) entries = service_extra_conf(host, descr, check_parameters) if len(entries) > 0: new_autochecks.append( (host, checktype, item, entries[0] ) ) else: new_autochecks.append(autocheck) # leave unchanged autochecks = new_autochecks
0797f5629eab93c749801724afe7c6bdf113f63c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/0797f5629eab93c749801724afe7c6bdf113f63c/check_mk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 454, 67, 6079, 12366, 13332, 2552, 3656, 12366, 3656, 12366, 273, 5378, 364, 284, 316, 4715, 18, 10581, 12, 6079, 12366, 1214, 397, 1173, 11146, 24816, 11, 4672, 775, 30, 3656, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 454, 67, 6079, 12366, 13332, 2552, 3656, 12366, 3656, 12366, 273, 5378, 364, 284, 316, 4715, 18, 10581, 12, 6079, 12366, 1214, 397, 1173, 11146, 24816, 11, 4672, 775, 30, 3656, ...
cmd = "chown %s:%s"%(instr.new_user, instr.new_group)
cmd = "chown --no-dereference %s:%s"%(instr.new_user, instr.new_group)
def apply(self, builder, instr, role, path): #print "path = %s"%path dp = filespec.FSFileSpecDataProvider(path) files = dp.abs_match(instr.filespec) if (instr.new_user is None): cmd = "chgrp %s"%(instr.new_group) elif (instr.new_group is None): cmd = "chown %s"%(instr.new_user) else: cmd = "chown %s:%s"%(instr.new_user, instr.new_group)
aa04e24d82d850be1b6ba75142138081011efa52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/aa04e24d82d850be1b6ba75142138081011efa52/filedep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2089, 16, 16170, 16, 2478, 16, 589, 4672, 225, 468, 1188, 315, 803, 273, 738, 87, 28385, 803, 9986, 273, 1390, 705, 18, 4931, 812, 1990, 20757, 12, 803, 13, 1390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2089, 16, 16170, 16, 2478, 16, 589, 4672, 225, 468, 1188, 315, 803, 273, 738, 87, 28385, 803, 9986, 273, 1390, 705, 18, 4931, 812, 1990, 20757, 12, 803, 13, 1390, ...
data = f.read( )
data = f.read( ).splitlines( )
def plot_hpgl(file): '''Send an HPGL file to the plotter found connected to the computer.''' f = open(file, 'r') data = f.read( ) f.close( ) plotter = instantiate_plotter( ) plotter.write(data)
900ee970e8d7085bcf26502d0f42cb437198bd54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3716/900ee970e8d7085bcf26502d0f42cb437198bd54/plot-hpgl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 15373, 7043, 12, 768, 4672, 9163, 3826, 392, 670, 52, 11261, 585, 358, 326, 3207, 387, 1392, 5840, 358, 326, 26579, 1093, 6309, 284, 273, 1696, 12, 768, 16, 296, 86, 6134, 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, 3207, 67, 15373, 7043, 12, 768, 4672, 9163, 3826, 392, 670, 52, 11261, 585, 358, 326, 3207, 387, 1392, 5840, 358, 326, 26579, 1093, 6309, 284, 273, 1696, 12, 768, 16, 296, 86, 6134, 50...
gtk.threads_enter()
def _display(): self.__fileview.clear() self.set_long_title(shorten_home_name(directory)) self.__currentdirectory = directory globaldict = {'directory':directory} try: contexts = self.service.boss.call_command('contexts', 'get_contexts', contextname='directory', globaldict=globaldict) self.__toolbar.set_contexts(contexts) except self.service.boss.ServiceNotFoundError: pass
dc8a3196a85275351261f3901d9cb0737707794a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/dc8a3196a85275351261f3901d9cb0737707794a/filemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5417, 13332, 365, 16186, 768, 1945, 18, 8507, 1435, 365, 18, 542, 67, 5748, 67, 2649, 12, 6620, 275, 67, 8712, 67, 529, 12, 5149, 3719, 365, 16186, 2972, 5149, 273, 1867, 2552, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5417, 13332, 365, 16186, 768, 1945, 18, 8507, 1435, 365, 18, 542, 67, 5748, 67, 2649, 12, 6620, 275, 67, 8712, 67, 529, 12, 5149, 3719, 365, 16186, 2972, 5149, 273, 1867, 2552, 15...
if tag != self.mru[-1] and tag not in self.ignore: self.mru.append(tag) self.mru = self.mru[-10:]
if tag not in self.ignore: if self.idx < -1: self.mru = self.mru[:self.idx + 1] self.idx = -1 if self.mru and datetime.now() - self.lastselect < timedelta(seconds=.5): self.mru[self.idx] = tag elif tag != self.mru[-1]: self.mru.append(tag) self.mru = self.mru[-10:] self.lastselect = datetime.now()
def select(self, tag): if tag is self.PREV: if self.sel.id not in self.ignore: self.idx -= 1 elif tag is self.NEXT: self.idx += 1 else: if isinstance(tag, Tag): tag = tag.id wmii['view'] = tag
947f9f6dc984f4bf2289c0427070941e2a4cf9e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12629/947f9f6dc984f4bf2289c0427070941e2a4cf9e5/fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 2890, 16, 1047, 4672, 309, 1047, 353, 365, 18, 3670, 58, 30, 309, 365, 18, 1786, 18, 350, 486, 316, 365, 18, 6185, 30, 365, 18, 3465, 3947, 404, 1327, 1047, 353, 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, 2027, 12, 2890, 16, 1047, 4672, 309, 1047, 353, 365, 18, 3670, 58, 30, 309, 365, 18, 1786, 18, 350, 486, 316, 365, 18, 6185, 30, 365, 18, 3465, 3947, 404, 1327, 1047, 353, 365, 18, ...
if response.status != 200: self.report(EntryDeletionMustReturn200("Expected an HTTP status code of 200 on sending a DELETE but instead received %d" % response.status))
if response.status >= 400: self.report(EntryDeletionFailed("HTTP Status %d" % response.status))
def testDoubleAddWithSameAtomId(self): """POST two Atom entries with the same atom:id to the collection. The response for both MUST be 201 and two new entries must be created.""" toc = self.enumerate_collection() startnum = len(toc) # Add a new entry (response, content) = self.http.request(self.entry_coll_uri, "POST", body=CONTENT_WITH_SRC, headers={'Content-Type': 'application/atom+xml', 'Accept': '*/*'}) if response.status != 201: self.report(EntryCreationMustReturn201("Actually returned an HTTP status code %d" % response.status)) return toc = self.enumerate_collection() # Make sure it was added to the collection if startnum >= len(toc): self.report(EntryCreationMustBeReflectedInFeed("Number of entries went from %d before to %d entries after the entry was created." % (startnum, len(toc)))) return # The location header should match the link/@rel="edit" edituri = absolutize(self.entry_coll_uri, response['location'])
62545eb4a0f245496aec57ddf77c32bdf1a873f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/62545eb4a0f245496aec57ddf77c32bdf1a873f9/appclienttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5265, 986, 1190, 8650, 3641, 548, 12, 2890, 4672, 3536, 3798, 2795, 7149, 3222, 598, 326, 1967, 3179, 30, 350, 358, 326, 1849, 18, 1021, 766, 364, 3937, 10685, 506, 3786, 471, 2795...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5265, 986, 1190, 8650, 3641, 548, 12, 2890, 4672, 3536, 3798, 2795, 7149, 3222, 598, 326, 1967, 3179, 30, 350, 358, 326, 1849, 18, 1021, 766, 364, 3937, 10685, 506, 3786, 471, 2795...
date += timedelta(days= 7 * intfloor(weeks))
date += datetime.timedelta(days= 7 * intfloor(weeks))
def add_weeks(self, cursor, user, company, date, weeks, context=None): day_per_week = company.hours_per_work_week / company.hours_per_work_day
37977ffd4cba2a2b2be5d263a7cf423a44376bec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9282/37977ffd4cba2a2b2be5d263a7cf423a44376bec/work.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10741, 87, 12, 2890, 16, 3347, 16, 729, 16, 9395, 16, 1509, 16, 17314, 16, 819, 33, 7036, 4672, 2548, 67, 457, 67, 10741, 273, 9395, 18, 16814, 67, 457, 67, 1252, 67, 10741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 10741, 87, 12, 2890, 16, 3347, 16, 729, 16, 9395, 16, 1509, 16, 17314, 16, 819, 33, 7036, 4672, 2548, 67, 457, 67, 10741, 273, 9395, 18, 16814, 67, 457, 67, 1252, 67, 10741,...
datetable = {'nl': { 'januari':{ 'sl':'%d. januar', 'it':'%d gennaio', 'en':'January %d', 'de':'%d. Januar', 'fr':'%d janvier', 'af':'01-%02d', 'ca':'%d de gener', 'oc':'%d de geni%%C3%%A8r', }, 'februari':{ 'sl':'%d. februar', 'it':'%d febbraio', 'en':'February %d', 'de':'%d. Februar', 'fr':'%d fevrier', 'af':'02-%02d', 'ca':'%d de febrer', 'oc':'%d de febri%%C3%%A8r', }, 'maart':{ 'sl':'%d. marec', 'it':'%d marzo', 'en':'March %d', 'de':'%d. M&auml;rz', 'fr':'%d mars', 'af':'03-%02d', 'ca':'%d de_mar%%C3%%A7', 'oc':'%d de_mar%%C3%%A7', }, 'april':{ 'sl':'%d. april', 'it':'%d aprile', 'en':'April %d', 'de':'%d. April', 'fr':'%d avril', 'af':'04-%02d', 'ca':'%d d\'abril', 'oc':'%d d\'abril', }, 'mei':{ 'sl':'%d. maj', 'it':'%d maggio', 'en':'May %d', 'de':'%d. Mai', 'fr':'%d mai', 'af':'05-%02d', 'ca':'%d de maig', 'oc':'%d de mai', }, 'juni':{ 'sl':'%d. junij', 'it':'%d giugno', 'en':'June %d', 'de':'%d. Juni', 'fr':'%d juin', 'af':'06-%02d', 'ca':'%d de juny', 'oc':'%d de junh', }, 'juli':{ 'sl':'%d. julij', 'it':'%d luglio', 'en':'July %d', 'de':'%d. Juli', 'fr':'%d juillet', 'af':'07-%02d', 'ca':'%d de juliol', 'oc':'%d de julhet', }, 'augustus':{ 'sl':'%d. avgust', 'it':'%d agosto', 'en':'August %d', 'de':'%d. August', 'fr':'%d aout', 'af':'08-%02d', 'ca':'%d d\'agost', 'oc':'%d d\'agost', }, 'september':{'sl':'%d. september', 'it':'%d settembre', 'en':'September %d', 'de':'%d. September', 'fr':'%d septembre', 'af':'09-%02d', 'ca':'%d de setembre', 'oc':'%d de setembre', }, 'oktober':{ 'sl':'%d. oktober', 'it':'%d ottobre', 'en':'October %d', 'de':'%d. Oktober', 'fr':'%d octobre', 'af':'10-%02d', 'ca':'%d d\'octubre', 'oc':'%d d\'octobre', }, 'november':{ 'sl':'%d. november', 'it':'%d novembre', 'en':'November %d', 'de':'%d. November', 'fr':'%d novembre', 'af':'11-%02d', 'ca':'%d de novembre', 'oc':'%d de novembre', }, 'december':{ 'sl':'%d. december', 'it':'%d dicembre', 'en':'December %d', 'de':'%d. Dezember', 'fr':'%d decembre', 'af':'12-%02d', 'ca':'%d de desembre', 'oc':'%d de decembre', }, }}
datetable = { 'nl':{ 'januari':{ 'sl':'%d. januar', 'it':'%d gennaio', 'en':'January %d', 'de':'%d. Januar', 'fr':'%d janvier', 'af':'01-%02d', 'ca':'%d de gener', 'oc':'%d de geni%%C3%%A8r', 'is':'%d. janúar', }, 'februari':{ 'sl':'%d. februar', 'it':'%d febbraio', 'en':'February %d', 'de':'%d. Februar', 'fr':'%d fevrier', 'af':'02-%02d', 'ca':'%d de febrer', 'oc':'%d de febri%%C3%%A8r', 'is':'%d. febrúar', }, 'maart':{ 'sl':'%d. marec', 'it':'%d marzo', 'en':'March %d', 'de':'%d. M&auml;rz', 'fr':'%d mars', 'af':'03-%02d', 'ca':'%d de_mar%%C3%%A7', 'oc':'%d de_mar%%C3%%A7', 'is':'%d. mars', }, 'april':{ 'sl':'%d. april', 'it':'%d aprile', 'en':'April %d', 'de':'%d. April', 'fr':'%d avril', 'af':'04-%02d', 'ca':'%d d\'abril', 'oc':'%d d\'abril', 'is':'%d. apríl', }, 'mei':{ 'sl':'%d. maj', 'it':'%d maggio', 'en':'May %d', 'de':'%d. Mai', 'fr':'%d mai', 'af':'05-%02d', 'ca':'%d de maig', 'oc':'%d de mai', 'is':'%d. maí', }, 'juni':{ 'sl':'%d. junij', 'it':'%d giugno', 'en':'June %d', 'de':'%d. Juni', 'fr':'%d juin', 'af':'06-%02d', 'ca':'%d de juny', 'oc':'%d de junh', 'is':'%d. júní', }, 'juli':{ 'sl':'%d. julij', 'it':'%d luglio', 'en':'July %d', 'de':'%d. Juli', 'fr':'%d juillet', 'af':'07-%02d', 'ca':'%d de juliol', 'oc':'%d de julhet', 'is':'%d. júlí', }, 'augustus':{ 'sl':'%d. avgust', 'it':'%d agosto', 'en':'August %d', 'de':'%d. August', 'fr':'%d aout', 'af':'08-%02d', 'ca':'%d d\'agost', 'oc':'%d d\'agost', 'is':'%d. ágúst', }, 'september':{ 'sl':'%d. september', 'it':'%d settembre', 'en':'September %d', 'de':'%d. September', 'fr':'%d septembre', 'af':'09-%02d', 'ca':'%d de setembre', 'oc':'%d de setembre', 'is':'%d. september', }, 'oktober':{ 'sl':'%d. oktober', 'it':'%d ottobre', 'en':'October %d', 'de':'%d. Oktober', 'fr':'%d octobre', 'af':'10-%02d', 'ca':'%d d\'octubre', 'oc':'%d d\'octobre', 'is':'%d. október', }, 'november':{ 'sl':'%d. november', 'it':'%d novembre', 'en':'November %d', 'de':'%d. November', 'fr':'%d novembre', 'af':'11-%02d', 'ca':'%d de novembre', 'oc':'%d de novembre', 'is':'%d. nóvember', }, 'december':{ 'sl':'%d. december', 'it':'%d dicembre', 'en':'December %d', 'de':'%d. Dezember', 'fr':'%d decembre', 'af':'12-%02d', 'ca':'%d de desembre', 'oc':'%d de decembre', 'is':'%d. desember', }, } }
def __call__(self, m, d): import wikipedia return wikipedia.html2unicode((date_format[m][self.code]) % d, language = self.code)
ca48d3138797b7e59dd655330057f8c316aa4626 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/ca48d3138797b7e59dd655330057f8c316aa4626/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 312, 16, 302, 4672, 1930, 21137, 327, 21137, 18, 2620, 22, 9124, 12443, 712, 67, 2139, 63, 81, 6362, 2890, 18, 710, 5717, 738, 302, 16, 2653, 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, 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, 312, 16, 302, 4672, 1930, 21137, 327, 21137, 18, 2620, 22, 9124, 12443, 712, 67, 2139, 63, 81, 6362, 2890, 18, 710, 5717, 738, 302, 16, 2653, 273, 365, ...
print inputPorts[0]
def setInputValues(self, module, inputPorts): """ Function used to set a value inside 'module', given the input port(s). """ if len(inputPorts)==1: ## Cleaning the previous connector... if inputPorts[0] in module.inputPorts: del module.inputPorts[inputPorts[0]] new_connector = ModuleConnector(create_constant(self.element),\ 'value') print inputPorts[0] module.set_input_port(inputPorts[0], new_connector) else: for j in xrange(len(inputPorts)): ## Cleaning the previous connector... if inputPorts[j] in module.inputPorts: del module.inputPorts[inputPorts[j]] new_connector = ModuleConnector(create_constant(self.element[j]),\ 'value') module.set_input_port(inputPorts[j], new_connector)
aff643cb1acbe5c897ed8a0603617697767a2b71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/aff643cb1acbe5c897ed8a0603617697767a2b71/fold.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21687, 1972, 12, 2890, 16, 1605, 16, 810, 11107, 4672, 3536, 4284, 1399, 358, 444, 279, 460, 4832, 296, 2978, 2187, 864, 326, 810, 1756, 12, 87, 2934, 3536, 309, 562, 12, 2630, 11107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21687, 1972, 12, 2890, 16, 1605, 16, 810, 11107, 4672, 3536, 4284, 1399, 358, 444, 279, 460, 4832, 296, 2978, 2187, 864, 326, 810, 1756, 12, 87, 2934, 3536, 309, 562, 12, 2630, 11107, ...
self.kickCallback((self.host, self.port), channel)
self.kickCallback((self.host, self.port), channel, kicker, message)
def botKicked(self, bot, channel, kicker, message): """Apparently we aren't wanted any longer. Log the event and report to our owner""" log.msg("Bot %r on server %r was kicked from %r by %r: %r" % (bot.nickname, self.host, channel, kicker, message)) if self.kickCallback: self.kickCallback((self.host, self.port), channel)
6d2b3a04dfeeb39a1ed0edc46d7214348e48601b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/6d2b3a04dfeeb39a1ed0edc46d7214348e48601b/IRC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2512, 47, 1200, 329, 12, 2890, 16, 2512, 16, 1904, 16, 417, 5448, 16, 883, 4672, 3536, 1294, 2938, 715, 732, 11526, 1404, 15504, 1281, 7144, 18, 1827, 326, 871, 471, 2605, 358, 3134, 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, 2512, 47, 1200, 329, 12, 2890, 16, 2512, 16, 1904, 16, 417, 5448, 16, 883, 4672, 3536, 1294, 2938, 715, 732, 11526, 1404, 15504, 1281, 7144, 18, 1827, 326, 871, 471, 2605, 358, 3134, 3...
if profile.shirt_type is not None and profile.shirt_size is not None:
if profile.shirt_type in shirt_types and profile.shirt_size in shirt_sizes:
def __init__(self, newclslist): self.clslist = newclslist
5cc85d82c677018ed31b8081254f2e9d9f53639a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/5cc85d82c677018ed31b8081254f2e9d9f53639a/adminvitals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 394, 6429, 1098, 4672, 365, 18, 6429, 1098, 273, 394, 6429, 1098, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 394, 6429, 1098, 4672, 365, 18, 6429, 1098, 273, 394, 6429, 1098, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
res = self.setRequest(requestName,requestString,desiredStatus=requestStatus) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to update status of %s to %s." % (requestName,requestStatus) gLogger.error(errStr,res['Message']) res = self.setRequest(requestName,requestString) return S_ERROR(errStr) gLogger.info("RequestDBFile._setRequestStatus: Successfully set status of %s to %s." % (requestName,requestStatus))
res = self.setRequest( requestName, requestString, desiredStatus = requestStatus ) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to update status of %s to %s." % ( requestName, requestStatus ) gLogger.error( errStr, res['Message'] ) res = self.setRequest( requestName, requestString ) return S_ERROR( errStr ) gLogger.info( "RequestDBFile._setRequestStatus: Successfully set status of %s to %s." % ( requestName, requestStatus ) )
def setRequestStatus(self,requestName,requestStatus): """ Set the request status """ gLogger.info("RequestDBFile._setRequestStatus: Attempting to set status of %s to %s." % (requestName,requestStatus)) try: # First obtain the request string res = self.__getRequestString(requestName) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to get the request string for %s." % requestName gLogger.error(errStr,res['Message']) return S_ERROR(errStr) requestString = res['Value'] # Delete the original request res = self.deleteRequest(requestName) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to remove %s." % requestName gLogger.error(errStr,res['Message']) return S_ERROR(errStr) # Set the request with the desired status res = self.setRequest(requestName,requestString,desiredStatus=requestStatus) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to update status of %s to %s." % (requestName,requestStatus) gLogger.error(errStr,res['Message']) res = self.setRequest(requestName,requestString) return S_ERROR(errStr) gLogger.info("RequestDBFile._setRequestStatus: Successfully set status of %s to %s." % (requestName,requestStatus)) return S_OK() except Exception, x: errStr = "RequestDBFile._setRequestStatus: Exception while setting request status." gLogger.exception(errStr,requestName,lException=x) return S_ERROR(errStr)
457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12475, 1482, 12, 2890, 16, 2293, 461, 16, 2293, 1482, 4672, 3536, 1000, 326, 590, 1267, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 6315, 542, 691, 1482, 30, 12864, 310, 358, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12475, 1482, 12, 2890, 16, 2293, 461, 16, 2293, 1482, 4672, 3536, 1000, 326, 590, 1267, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 6315, 542, 691, 1482, 30, 12864, 310, 358, 444, ...
g, t = function_deps[x._count]
k = formdata.coefficient_renumbering[x] g, t = function_deps[k]
def function_deps(x): g, t = function_deps[x._count] return make_deps(geometry=g, topology=t, coefficients=True)
f2d44f848c00da19d85bc6bd20c2229b74c1cfa2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/f2d44f848c00da19d85bc6bd20c2229b74c1cfa2/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 14877, 12, 92, 4672, 417, 273, 30642, 18, 8075, 8714, 67, 1187, 1226, 310, 63, 92, 65, 314, 16, 268, 273, 445, 67, 14877, 63, 79, 65, 327, 1221, 67, 14877, 12, 14330, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 14877, 12, 92, 4672, 417, 273, 30642, 18, 8075, 8714, 67, 1187, 1226, 310, 63, 92, 65, 314, 16, 268, 273, 445, 67, 14877, 63, 79, 65, 327, 1221, 67, 14877, 12, 14330, 33, ...
keep[os.path.dirname(path)] = True
keep[os.path.dirname(relativePath)] = True
def _doCommit(self, uJob, cs, commitFlags, opJournal, tagSet, reposRollback, localRollback, rollbackPhase, fsJob, updateDatabase, callback, tagScript, dbCache, autoPinList, flags, journal, directoryCandidates): if not (commitFlags.justDatabase or commitFlags.test): # run preremove scripts before updating the database, otherwise # the file lists which get sent to them are incorrect. skipping # this makes --test a little inaccurate, but life goes on callback.runningPreTagHandlers() fsJob.preapply(tagSet, tagScript)
c643900fd788a4de0b8ae30ecdec132bd54fbd7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/c643900fd788a4de0b8ae30ecdec132bd54fbd7f/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 5580, 12, 2890, 16, 582, 2278, 16, 2873, 16, 3294, 5094, 16, 1061, 16336, 16, 1047, 694, 16, 13686, 12703, 16, 1191, 12703, 16, 8006, 11406, 16, 2662, 2278, 16, 1089, 4254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 5580, 12, 2890, 16, 582, 2278, 16, 2873, 16, 3294, 5094, 16, 1061, 16336, 16, 1047, 694, 16, 13686, 12703, 16, 1191, 12703, 16, 8006, 11406, 16, 2662, 2278, 16, 1089, 4254, ...
if not nodes: generate_docstring_dictionary()
def __init__(self, maxread=1000, script_subdirectory=None, logfile=None, server=None,server_tmpdir=None): """ EXAMPLES:: sage: singular == loads(dumps(singular)) True """ prompt = '\n> ' Expect.__init__(self, name = 'singular', prompt = prompt, command = "Singular -t --ticks-per-sec 1000", #no tty and fine grained cputime() maxread = maxread, server = server, server_tmpdir = server_tmpdir, script_subdirectory = script_subdirectory, restart_on_ctrlc = True, verbose_start = False, logfile = logfile, eval_using_file_cutoff=100 if os.uname()[0]=="SunOS" else 1000) self.__libs = [] self._prompt_wait = prompt self.__to_clear = [] # list of variable names that need to be cleared. if not nodes: generate_docstring_dictionary()
892c8149323efb7e00d91b9ee3b4109a0b54bdfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/892c8149323efb7e00d91b9ee3b4109a0b54bdfc/singular.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 943, 896, 33, 18088, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 7036, 16, 3567, 67, 5645, 1214, 33, 7036, 4672, 3536, 5675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 943, 896, 33, 18088, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 7036, 16, 3567, 67, 5645, 1214, 33, 7036, 4672, 3536, 5675, ...
MASTERD_PID = "ganeti-master"
MASTERD_PID = "ganeti-masterd"
def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision)
bff2ddc5b98c2ade7a8d0cfa0e36a50581b1947f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/bff2ddc5b98c2ade7a8d0cfa0e36a50581b1947f/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 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, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 13,...
by reducing the poits modulo all primes of good reduction up
by reducing the points modulo all primes of good reduction up
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be saturated, and this is used; however, if the computed bound is greater than a value set by the eclib library (currently 97) then no saturation will be attempted at primes above this. - ``odd_primes_only`` (bool, default False) -- only do saturation at odd primes. (If the points have been found via 2-descent they should alreday be 2-saturated.)
1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
split_thread.start()
for thread in (split_thread, cpp, cpq): thread.start()
def main(): # init defaults options = Options() max_procs = MAX_PROCS max_transfers_per_host = MAX_TRANSFERS_PER_HOST rm_cmd_template = RM_CMD_TEMPLATE cat_cmd_template = CAT_CMD_TEMPLATE logfile = LOG_FILE cleanonly = False # just remove chunks and exit chunkdir = CHUNK_DIR # get the command line options try: optlist, args = getopt.gnu_getopt( \ sys.argv[1:], 't:u:f:r:l:b:svhp', ['help', 'rsync', 'scp', 'rcp',\ 'chunkdir=','logfile=']) for opt, arg in optlist: if opt in ('-h', '--help'): _usage() _help() sys.exit(1) except Exception: print 'ERROR: options', sys.exc_info()[1] sys.exit(2) if len(args) < 2: print 'ERROR: 2 args required' _usage() sys.exit(2) # get name of file to transfer try: if args[0] == 'clean': cleanonly = True options.filename = args[1] else: options.filename = args[0] filepath = os.path.abspath(options.filename) if not os.path.isfile(filepath): print 'ERROR: %s not found' % filepath sys.exit(2) options.filedest = args[1] except Exception: print 'ERROR: %s' % sys.exc_info()[1] _usage() sys.exit(2) # parse the command line targetlist = [] # takes host names for opt, arg in optlist: if opt == '-f': # file # read '\n' separated hosts from file try: hostfile = open(arg, 'r') except Exception: print 'ERROR: Failed to open hosts file:', arg sys.exit(2) for host in hostfile: targetlist.append(host.strip()) hostfile.close() elif opt == '-r': try: # format: -r <basehost[0-1,3-3,5-11...]> # eg. -r host[1-2,4-5] generates host1, host2, host4, host5 arg = arg.replace(' ','') # remove white space host_regex = '[a-zA-Z]{1}[a-zA-Z0-9\-]' range_regex = '[0-9]+\-[0-9]+(,[0-9]+\-[0-9]+)+' regex = host_regex + '\[' + range_regex + '\]' basehost = arg.split('[')[0] # get 3 part ranges eg: ['1-3','5-5'] ranges = arg.split('[')[1].strip('[]').split(',') for rng in ranges: first = rng.split('-')[0] last = rng.split('-')[1] for num in range(int(first), int(last)+1): leadingZeros = len(first) - len(str(num)) host = basehost + '0'*leadingZeros + str(num) targetlist.append(host) except Exception: print 'ERROR: Invalid argument for -r:', arg print sys.exc_info()[1] _usage() sys.exit(2) elif opt == '-l': # read quoted list of comma separated hosts from command line hostlist = arg.split() for host in hostlist: targetlist.append(host.strip()) elif opt == '-b': # chunk size options.chunksize = arg elif opt == '-u': # username options.username = arg + '@' elif opt == '-s': # log transfer statistics options.logger = Logger() elif opt == '-v': # verbose output options.verbose = True elif opt == '-t': # transfers per host max_transfers_per_host = int(arg) elif opt == '-p': # chunk persistence options.cleanup = False elif opt == '--rsync': # use rsync options.cp_cmd_template = RSYNC_CMD_TEMPLATE elif opt == '--scp': # use scp options.cp_cmd_template = SCP_CMD_TEMPLATE elif opt == '--rcp': # use rcp options.cp_cmd_template = RCP_CMD_TEMPLATE elif opt == '--chunkdir': chunkdir = arg elif opt == '--logfile': logfile = arg else: print 'invalid option: %s' % opt # set up a list database of all hosts DB = Database() DB.hostlist.append(Host(gethostname(), DB, [], options.username, \ max_transfers_per_host)) DB.roothost = DB.hostlist[0] targetlist = set(targetlist) # remove duplicates for target in targetlist: DB.hostlist.append(Host(target, DB, [], options.username, \ max_transfers_per_host)) DB.hostcount = len(DB.hostlist) # build prefix for file chunk names options.chunk_base_name = \ os.path.join(chunkdir, os.path.split(options.filename)[-1])+ '.chunk_' # create semaphore to limit processc creation procsema = threading.Semaphore(max_procs) ###### create queue and poll threads ###################################### # The queue threads (commandq and cpq) share a process list with a poll # thread (cmd_poll and cp_poll). The queue threads are fed commands # to run and then the Popen objects are added to the process list along # with process data. The poll threads will then poll the processes until # they finish, at which point the output can be handled. threads = [] # # create a thread for dealing with process output cmd_procs = [] cmdp = CmdPoll(procsema, cmd_procs) cmdp.daemon = True threads.append(cmdp) # # initialize the background command queue thread commandq = CommandQueue(procsema, cmd_procs) commandq.daemon = True threads.append(commandq) # # create thread for dealing with transfer process output scp_procs = [] cpp = CpPoll(procsema, scp_procs, DB, options, commandq) cpp.daemon = True threads.append(cpp) # # init thread for queueing scp transfers cpq = CpCommandQueue(procsema, scp_procs) cpq.daemon = True threads.append(cpq) ########################################################################### for thread in threads: thread.start() # If clean was passed as first argument, remove chunks from all hosts # and exit. if cleanonly is True: print 'removing chunks ...' for host in DB.hostlist: rmCmd = rm_cmd_template % \ (options.username+host.hostname, options.chunk_base_name) commandq.put(rmCmd) commandq.finish() while commandq.isAlive() or cmdp.isAlive(): time.sleep(0.5) print 'done' sys.exit(0) # split the file to transfer in a separate thread split_thread = Splitter(DB, options) threads.append(split_thread) split_thread.daemon = True split_thread.start() ##### Initiate the transfers ##### if options.logger: options.logger.filename = logfile options.logger.start() print 'transferring %s to %d hosts ...' %(options.filename, len(targetlist)) try: # returns once transfers are complete initiateTransfers(DB, options, commandq, cpq) print '%d transfers complete' % (DB.hosts_with_file - 1) cpq.finish() # exit gracefully cpp.finish() except KeyboardInterrupt: # kill split, cpq, and poll threads split_thread.kill() commandq.killprocs() # stop current processes (calls to cat) cpq.kill() # kill cpq thread and scp processes cpp.kill() cmdp.kill() print '[!] aborted transfers' except Exception: split_thread.kill() commandq.killprocs() cpq.kill() cpp.kill() cmdp.kill() print 'ERROR: initiateTransfers() ', sys.exc_info()[1] # in case transfers were interrupted, let threads finish execution. ## may need to modify this try: while split_thread.isAlive() or cpq.isAlive() or cpp.isAlive(): time.sleep(0.5) except KeyboardInterrupt: pass # must wait for cat processes to finish before removing chunks if options.cleanup is True: print 'removing chunks ...' commandq.wait_for_procs() # wait for calls to cat to finish for host in DB.hostlist: rmCmd = rm_cmd_template % \ (options.username+host.hostname, options.chunk_base_name) commandq.put(rmCmd) # wait for procs to finish commandq.finish() # finish work on current queue, then exit while commandq.isAlive(): time.sleep(0.5) # terminate the log file if options.logger: options.logger.done()
06772f294757c1ad6f6efefb804370839037d93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1260/06772f294757c1ad6f6efefb804370839037d93c/scpTsunamiE.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1208, 3467, 702, 273, 5087, 1435, 943, 67, 27537, 273, 4552, 67, 3373, 4596, 943, 67, 2338, 18881, 67, 457, 67, 2564, 273, 4552, 67, 16596, 6553, 55, 67, 3194, 67, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 1208, 3467, 702, 273, 5087, 1435, 943, 67, 27537, 273, 4552, 67, 3373, 4596, 943, 67, 2338, 18881, 67, 457, 67, 2564, 273, 4552, 67, 16596, 6553, 55, 67, 3194, 67, 89...
if not options.repository:
if not self.options.repository:
def __call__(self, args): from os.path import join from source import ChangesetApplicationFailure self.__load()
eeda904e2bbeed2d4a2346b6096cf76095964797 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/eeda904e2bbeed2d4a2346b6096cf76095964797/tailor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 833, 4672, 628, 1140, 18, 803, 1930, 1233, 628, 1084, 1930, 17776, 278, 3208, 5247, 225, 365, 16186, 945, 1435, 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, 1991, 972, 12, 2890, 16, 833, 4672, 628, 1140, 18, 803, 1930, 1233, 628, 1084, 1930, 17776, 278, 3208, 5247, 225, 365, 16186, 945, 1435, 2, -100, -100, -100, -100, -100, -100, -100...
val = 'ptr_%d' % id
val = 'ptr_%d' % self._get_unique_ptr(val)
def register_box(self, id, name, val): try: return self.boxes[id] except KeyError: result = name.lower() + '_' + str(id) self.boxes[id] = result if name.endswith('Ptr'): val = 'ptr_%d' % id self.box_creations.append('%s = %s(%s)' % (result, name, val)) return result
9c7173ab794b7b65456b91969f6da96bd0d6c2c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/9c7173ab794b7b65456b91969f6da96bd0d6c2c0/loopparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 2147, 12, 2890, 16, 612, 16, 508, 16, 1244, 4672, 775, 30, 327, 365, 18, 15918, 63, 350, 65, 1335, 4999, 30, 563, 273, 508, 18, 8167, 1435, 397, 4427, 397, 609, 12, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 2147, 12, 2890, 16, 612, 16, 508, 16, 1244, 4672, 775, 30, 327, 365, 18, 15918, 63, 350, 65, 1335, 4999, 30, 563, 273, 508, 18, 8167, 1435, 397, 4427, 397, 609, 12, 350, ...
playground_livetime = abs(segs & playground_segs) nonplayground_livetime = abs(seg - playground_segs)
playground_livetime = float(abs(segs & playground_segs)) nonplayground_livetime = float(abs(segs - playground_segs))
def update_from_db(self, filename, live_time_program = "thinca", vetoes_name = "vetoes", verbose = False): working_filename = dbtables.get_connection_filename(filename, tmp_path = None, verbose = verbose) connection = sqlite3.connect(working_filename)
e19a0e53185df38cc34f86c47f22da7de7b08119 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e19a0e53185df38cc34f86c47f22da7de7b08119/far_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2080, 67, 1966, 12, 2890, 16, 1544, 16, 8429, 67, 957, 67, 12890, 273, 315, 451, 267, 5353, 3113, 331, 11453, 281, 67, 529, 273, 315, 90, 11453, 281, 3113, 3988, 273, 1083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2080, 67, 1966, 12, 2890, 16, 1544, 16, 8429, 67, 957, 67, 12890, 273, 315, 451, 267, 5353, 3113, 331, 11453, 281, 67, 529, 273, 315, 90, 11453, 281, 3113, 3988, 273, 1083, ...
data_row.append(snpsd.callProbabilities[j][k]) outStr += deliminator.join(data_row)
outStr += deliminator+str(snpsd.callProbabilities[j][k]) outStr +="\n" del snpsd
def writeRawSnpsDatasToFile(filename,snpsds,chromosomes=[1,2,3,4,5], deliminator=", ", missingVal = "NA", accDecoder=None, withArrayIds = False, callProbFile=None): """ 2008-05-17 for callProbFile, modify it to output a row immediately. no memory hoarding, untested. 2008-05-17 modify it to output a row immediately. no memory hoarding fix a slight bug. arrayIds is outputted always using ', ' as delimiter Writes data to a file. """ import sys,csv sys.stderr.write("Writing data to file: %s ..."%filename) numSnps = 0 for i in range(0,len(chromosomes)): numSnps += len(snpsds[i].positions) accessions = snpsds[0].accessions for i in range(1,len(chromosomes)): if accessions != snpsds[i].accessions: raise Exception("Accessions are different between SNPs datas") decoder = RawDecoder() decoder['NA']=missingVal print "NumSnps: "+str(numSnps)+", NumAcc: "+str(len(accessions))+"\n" #writer = csv.writer(open(filename, 'w'), delimiter=deliminator) if withArrayIds: #writer.writerow(['-', '-']+snpsds[0].arrayIds) outStr = deliminator.join(['-', '-'])+deliminator+deliminator.join(snpsds[0].arrayIds)+"\n" else: outStr = "" fieldStrings = ["Chromosome", "Positions"] if accDecoder: for acc in snpsds[i].accessions: fieldStrings.append(str(accDecoder[acc])) else: for acc in snpsds[i].accessions: fieldStrings.append(str(acc)) #writer.writerow(fieldStrings) f = open(filename, 'w') outStr += deliminator.join(fieldStrings)+"\n" f.write(outStr) for i in range(0,len(chromosomes)): outStr="" for j in range(0,len(snpsds[i].positions)): outStr += str(chromosomes[i])+deliminator+str(snpsds[i].positions[j])+deliminator outStr += deliminator.join(snpsds[i].snps[j])+"\n" #data_row = [chromosomes[i], snpsds[i].positions[j]] #for k in range(0, len(snpsds[0].accessions)): # data_row.append(decoder[snpsds[i].snps[j][k]]) #writer.writerow(data_row) f.write(outStr) #del writer if callProbFile: f = open(callProbFile, 'w') outStr = "" if withArrayIds: outStr += deliminator.join(['-', '-']+snpsds[0].arrayIds)+'\n' f.write(outStr) for i in range(0,len(chromosomes)): outStr = "" snpsd = snpsds[i] snpsds[i] = [] for j in range(0,len(snpsd.positions)): data_row = [chromosomes[i], snpsd.positions[j]] for k in range(0, len(snpsd.accessions)): data_row.append(snpsd.callProbabilities[j][k]) outStr += deliminator.join(data_row) f.write(outStr) del snpsd del writer sys.stderr.write("Done.\n")
418bb04d946b1524e072b4b071dc11c3801609ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/418bb04d946b1524e072b4b071dc11c3801609ef/snpsdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 4809, 10461, 1121, 14305, 15450, 12, 3459, 16, 8134, 1121, 2377, 16, 16298, 538, 21912, 22850, 21, 16, 22, 16, 23, 16, 24, 16, 25, 6487, 10508, 4240, 1546, 16, 3104, 3315, 3053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4809, 10461, 1121, 14305, 15450, 12, 3459, 16, 8134, 1121, 2377, 16, 16298, 538, 21912, 22850, 21, 16, 22, 16, 23, 16, 24, 16, 25, 6487, 10508, 4240, 1546, 16, 3104, 3315, 3053, ...
n = unicode(getattr(self.options, name) or "", "utf-8")
n = getattr(self.options, name)
def setmb(name): n = unicode(getattr(self.options, name) or "", "utf-8") if n: env.metabook[name] = n
dfd7572654b4c30a622f169e0119a13f36e9d72b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/dfd7572654b4c30a622f169e0119a13f36e9d72b/options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1627, 12, 529, 4672, 290, 273, 3869, 12, 2890, 18, 2116, 16, 508, 13, 309, 290, 30, 1550, 18, 10578, 378, 1184, 63, 529, 65, 273, 290, 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, 444, 1627, 12, 529, 4672, 290, 273, 3869, 12, 2890, 18, 2116, 16, 508, 13, 309, 290, 30, 1550, 18, 10578, 378, 1184, 63, 529, 65, 273, 290, 2, -100, -100, -100, -100, -100, -100, -10...
with open("rs_dump2.html", "w") as f: f.write(self.html[1])
def download_serverhtml(self): """downloads html with the important informations """ file_server_url = re.search(r"<form action=\"(.*?)\"", self.html[0]).group(1) self.html[1] = self.req.load(file_server_url, cookies=True, post={"dl.start": "Free"}) with open("rs_dump2.html", "w") as f: f.write(self.html[1]) self.html_old = time() self.get_wait_time()
9107885456c67f46eba52f6bc155c16e3f9b7612 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/9107885456c67f46eba52f6bc155c16e3f9b7612/RapidshareCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 3567, 2620, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 585, 67, 3567, 67, 718, 273, 283, 18, 3072, 12, 86, 6, 32, 687, 1301, 5189, 21110, 2412, 3113,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 3567, 2620, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 585, 67, 3567, 67, 718, 273, 283, 18, 3072, 12, 86, 6, 32, 687, 1301, 5189, 21110, 2412, 3113,...
print 'extern GimpCompositeFunction %s;' % ("gimp_composite_unsupported")
print 'extern GimpCompositeFunction %s();' % ("gimp_composite_unsupported")
print >>fpout, 'typedef GimpCompositeFunction (*GimpCompositeFunctionTable[%s][%s][%s][%s]);' % ("GIMP_COMPOSITE_N", "GIMP_PIXELFORMAT_N", "GIMP_PIXELFORMAT_N", "GIMP_PIXELFORMAT_N")
f5e839a39c751867051e44f224ab9ad5de4a6598 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/f5e839a39c751867051e44f224ab9ad5de4a6598/make-gimp-composite-dispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 1671, 7944, 659, 16, 296, 723, 536, 611, 14532, 9400, 2083, 261, 14, 43, 14532, 9400, 2083, 1388, 14451, 87, 6362, 9, 87, 6362, 9, 87, 6362, 9, 87, 65, 13869, 738, 7566, 43, 9883, 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, 1172, 1671, 7944, 659, 16, 296, 723, 536, 611, 14532, 9400, 2083, 261, 14, 43, 14532, 9400, 2083, 1388, 14451, 87, 6362, 9, 87, 6362, 9, 87, 6362, 9, 87, 65, 13869, 738, 7566, 43, 9883, 67...
optlist, args = getopt.getopt(sys.argv[1:], "hct", ["help", "clean", "test", "package", "build-stamp="])
optlist, args = getopt.getopt(sys.argv[1:], "hct", ["help", "clean", "test", "package", "build-stamp=", "publish", "register"])
def usage(): """This function is used to print out help either by request, or if an invalid option is used.""" print print "Usage: python build.py [command]" print print "\t--help\t\t\tprint this help message" print "\t--clean\t\t\tclean out this build by deleting the %s directory" % properties["targetDir"] print "\t--test\t\t\trun the test suite, leaving all artifacts in %s" % properties["testDir"] print "\t--package\t\tpackage everything up into a tarball for release to sourceforge in %s" % properties["packageDir"] print "\t--build-stamp [tag]\tfor --package, this specifies a special tag, generating version tag '%s-<tag>'" % properties["version"] print "\t\t\t\tIf this option isn't used, default will be tag will be '%s-<current time>'" % properties["version"] print "\t--publish\t\tpublish this release to the deployment server" print "\t--register\t\tregister this release with http://pypi.python.org/pypi" print
90990401532f7e6b2d5037c025499a14786b1651 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7713/90990401532f7e6b2d5037c025499a14786b1651/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 2503, 445, 353, 1399, 358, 1172, 596, 2809, 3344, 635, 590, 16, 578, 309, 392, 2057, 1456, 353, 1399, 12123, 1172, 1172, 315, 5357, 30, 5790, 1361, 18, 2074, 306, 3076...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 2503, 445, 353, 1399, 358, 1172, 596, 2809, 3344, 635, 590, 16, 578, 309, 392, 2057, 1456, 353, 1399, 12123, 1172, 1172, 315, 5357, 30, 5790, 1361, 18, 2074, 306, 3076...
for name in self.get_handler_names(): if name.endswith('.metadata'): continue
for name in self.get_names():
def get_new_id(self, prefix=''): ids = [] for name in self.get_handler_names(): if name.endswith('.metadata'): continue if prefix: if not name.startswith(prefix): continue name = name[len(prefix):] try: id = int(name) except ValueError: continue ids.append(id)
1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2704, 67, 350, 12, 2890, 16, 1633, 2218, 11, 4672, 3258, 273, 5378, 364, 508, 316, 365, 18, 588, 67, 1973, 13332, 309, 1633, 30, 309, 486, 508, 18, 17514, 1918, 12, 3239, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2704, 67, 350, 12, 2890, 16, 1633, 2218, 11, 4672, 3258, 273, 5378, 364, 508, 316, 365, 18, 588, 67, 1973, 13332, 309, 1633, 30, 309, 486, 508, 18, 17514, 1918, 12, 3239, 46...
print "***C"
def FillinConAttr(self, attr): if (self.contype == "smi"): if (self.port == ""): print "***A" raise InvalidDomainError("No port specified") attr.extend([ "smi", str(self.port) ]) elif (self.contype == "lan"): if (self.address == ""): print "***B" raise InvalidDomainError("No address specified") attr.append("lan") if (self.port != ""): attr.extend(["-p", self.port]) if (self.username != ""): attr.extend(["-U", self.username]) if (self.password != ""): attr.extend(["-P", self.password]) if (self.authtype != ""): attr.extend(["-A", self.authtype]) if (self.privilege != ""): attr.extend(["-L", self.privilege]) if (self.auth_alg != ""): attr.extend(["-Ra", self.auth_alg]) if (self.integ_alg != ""): attr.extend(["-Ri", self.integ_alg]) if (self.conf_alg != ""): attr.extend(["-Rc", self.conf_alg]) if (self.bmc_key != ""): attr.extend(["-Rk", self.bmc_key]) if (self.lookup_uses_priv): attr.append("-Rl") for h in self.hacks: attr.extend(["-H", h]) if (self.address2 != ""): attr.append("-s") if (self.port2 != ""): attr.extend(["-p2", self.port2]) attr.append(self.address) if (self.address2 != ""): attr.append(self.address2) else: print "***C" raise InvalidDomainError("Invalid connection type: " + self.contype)
9a494271213765e6cd1c2cecaa81860143e9e82a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/9a494271213765e6cd1c2cecaa81860143e9e82a/_domain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 267, 442, 3843, 12, 2890, 16, 1604, 4672, 309, 261, 2890, 18, 591, 723, 422, 315, 4808, 77, 6, 4672, 309, 261, 2890, 18, 655, 422, 1408, 4672, 1172, 315, 14465, 37, 6, 1002, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 267, 442, 3843, 12, 2890, 16, 1604, 4672, 309, 261, 2890, 18, 591, 723, 422, 315, 4808, 77, 6, 4672, 309, 261, 2890, 18, 655, 422, 1408, 4672, 1172, 315, 14465, 37, 6, 1002, 1...
return min(self.slideNumber + 1, self.last_slide())
return min((self.slideNumber or 1) + 1, self.last_slide())
def next_slide(self): return min(self.slideNumber + 1, self.last_slide())
e38a9f4a565c588f47efdeefb92038d05ab048f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/e38a9f4a565c588f47efdeefb92038d05ab048f4/SlideShow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 26371, 12, 2890, 4672, 327, 1131, 12, 2890, 18, 26371, 1854, 397, 404, 16, 365, 18, 2722, 67, 26371, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1024, 67, 26371, 12, 2890, 4672, 327, 1131, 12, 2890, 18, 26371, 1854, 397, 404, 16, 365, 18, 2722, 67, 26371, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.status_bar = TFrame(root, name = 'statusbar', style='FlatFrame' ) self.status_bar.pack(side = BOTTOM, fill=X)
self.status_bar = TFrame(root, name='statusbar', style='FlatFrame') self.status_bar.pack(side=BOTTOM, fill=X)
def build_window(self): root = self.application.root p_frame = TFrame(root, style='FlatFrame') p_frame.pack(side = 'right', fill = Y) palette_frame = TFrame(p_frame, style='FlatFrame', borderwidth=3) palette_frame.pack(side = 'right', fill = Y) b = TLabel(p_frame, style='VLine3') self.pc=PluginContainer(p_frame,self.root, self) self.pc.rborder=b b = TLabel(root, style='VLine2') b.pack(side = 'right', fill = Y)
5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5668, 12, 2890, 4672, 1365, 273, 365, 18, 3685, 18, 3085, 225, 293, 67, 3789, 273, 399, 3219, 12, 3085, 16, 2154, 2218, 16384, 3219, 6134, 293, 67, 3789, 18, 2920, 12, 5564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5668, 12, 2890, 4672, 1365, 273, 365, 18, 3685, 18, 3085, 225, 293, 67, 3789, 273, 399, 3219, 12, 3085, 16, 2154, 2218, 16384, 3219, 6134, 293, 67, 3789, 18, 2920, 12, 5564, ...
self.rating = gutils.trim(self.page, '<b>User Rating:</b>', '/10')
self.rating = gutils.trim(self.page, '<b>User Rating:</b> \n<b>', '/10')
def get_rating(self): self.rating = gutils.trim(self.page, '<b>User Rating:</b>', '/10') if self.rating and self.rating.find('awaiting') == -1: try: self.rating = float(self.rating) except Exception, e: self.rating = 0 else: self.rating = 0
6c8bceb9124a5b82c27af1272e6ba63f56b21c8f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2687/6c8bceb9124a5b82c27af1272e6ba63f56b21c8f/PluginMovieIMDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17326, 12, 2890, 4672, 365, 18, 17326, 273, 314, 5471, 18, 5290, 12, 2890, 18, 2433, 16, 2368, 70, 34, 1299, 534, 1776, 19814, 70, 34, 521, 82, 32, 70, 1870, 16, 1173, 2163,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17326, 12, 2890, 4672, 365, 18, 17326, 273, 314, 5471, 18, 5290, 12, 2890, 18, 2433, 16, 2368, 70, 34, 1299, 534, 1776, 19814, 70, 34, 521, 82, 32, 70, 1870, 16, 1173, 2163,...
def func_text_html (request, path, mimetype) :
def func_text_html (request, path) :
def func_text_html (request, path, mimetype) : return open(path, "rb").read()
e5879d5f4725acc7589a4f45e6c1975a6092d3b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/e5879d5f4725acc7589a4f45e6c1975a6092d3b1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 955, 67, 2620, 261, 2293, 16, 589, 13, 294, 327, 1696, 12, 803, 16, 315, 6731, 20387, 896, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 955, 67, 2620, 261, 2293, 16, 589, 13, 294, 327, 1696, 12, 803, 16, 315, 6731, 20387, 896, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return {0: '8', 1: '8', 'flag': '0', 'border': '0'}
return {0: '8', 1: '8', 'flag': '0', 'border': '0'}
def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'flag': '0', 'border': '0'}
f1282503f876232c6a9f48c3d5b7a52bbc481a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1282503f876232c6a9f48c3d5b7a52bbc481a8d/SizerCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8281, 950, 1830, 12, 2890, 16, 341, 548, 16, 707, 33, 7036, 4672, 309, 707, 353, 599, 30, 707, 273, 365, 18, 6387, 285, 1305, 225, 309, 707, 422, 296, 986, 3829, 4278, 327, 288, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8281, 950, 1830, 12, 2890, 16, 341, 548, 16, 707, 33, 7036, 4672, 309, 707, 353, 599, 30, 707, 273, 365, 18, 6387, 285, 1305, 225, 309, 707, 422, 296, 986, 3829, 4278, 327, 288, 20, ...
""" return self.parse(mv)
""" return self.parse(mv)
def __call__(self, mv): """ EXAMPLES: sage: rubik = CubeGroup() sage: rubik(1) () """ return self.parse(mv)
682d310039cd3f0ff12792c4704e67066e622b98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/682d310039cd3f0ff12792c4704e67066e622b98/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 7701, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 24997, 1766, 273, 385, 4895, 1114, 1435, 272, 410, 30, 24997, 1766, 12, 21, 13, 1832, 3536, 327, 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, 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, 7701, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 24997, 1766, 273, 385, 4895, 1114, 1435, 272, 410, 30, 24997, 1766, 12, 21, 13, 1832, 3536, 327, 3...
try: doc = etree.parse(fb2file, parser) except: raise logger.info('Parsing failed. Trying to clean up XML...') soup = BeautifulStoneSoup(open(fb2file, 'rb').read()) doc = etree.fromstring(str(soup))
doc = etree.parse(fb2file, parser) extract_embedded_content(doc)
def generate_html(fb2file, encoding, logger): from lxml import etree tdir = tempfile.mkdtemp(prefix=__appname__+'_') ofile = os.path.join(tdir, 'index.xml') cwd = os.getcwdu() os.chdir(tdir) try: logger.info('Parsing XML...') parser = etree.XMLParser(recover=True, no_network=True) try: doc = etree.parse(fb2file, parser) except: raise logger.info('Parsing failed. Trying to clean up XML...') soup = BeautifulStoneSoup(open(fb2file, 'rb').read()) doc = etree.fromstring(str(soup)) logger.info('Converting XML to HTML...') styledoc = etree.fromstring(fb2_xsl) transform = etree.XSLT(styledoc) result = transform(doc) html = os.path.join(tdir, 'index.html') f = open(html, 'wb') f.write(transform.tostring(result)) f.close() finally: os.chdir(cwd) return html
1cf4f8661a06bd405c86f9953e860059cb2ea1f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/1cf4f8661a06bd405c86f9953e860059cb2ea1f7/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2620, 12, 19192, 22, 768, 16, 2688, 16, 1194, 4672, 628, 328, 2902, 1930, 12031, 268, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 3239, 33, 972, 2910, 529, 972, 6797, 4623, 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, 2103, 67, 2620, 12, 19192, 22, 768, 16, 2688, 16, 1194, 4672, 628, 328, 2902, 1930, 12031, 268, 1214, 273, 13275, 18, 24816, 72, 5814, 12, 3239, 33, 972, 2910, 529, 972, 6797, 4623, 13...
for row in item.Item.select('filename', 'filename IS NOT NULL AND filename LIKE ?', (path,)): if samefile(row[0], path): return True
for item_ in item.Item.make_view('filename LIKE ?', (path,)): if samefile(item_.filename, path): return item_
def _item_exists_for_path(path): # in SQLite, LIKE is case insensitive, so we can use it to only look at # filenames that possibly will match for row in item.Item.select('filename', 'filename IS NOT NULL AND filename LIKE ?', (path,)): if samefile(row[0], path): return True return False
3de7f49df391e02824778db881076fdde011aa11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/3de7f49df391e02824778db881076fdde011aa11/commandline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1726, 67, 1808, 67, 1884, 67, 803, 12, 803, 4672, 468, 316, 16192, 16, 13161, 353, 648, 17904, 16, 1427, 732, 848, 999, 518, 358, 1338, 2324, 622, 468, 9066, 716, 10016, 903, 845,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1726, 67, 1808, 67, 1884, 67, 803, 12, 803, 4672, 468, 316, 16192, 16, 13161, 353, 648, 17904, 16, 1427, 732, 848, 999, 518, 358, 1338, 2324, 622, 468, 9066, 716, 10016, 903, 845,...
return (-1, res, warning, '')
return (-1, res, 'Line ' + str(counter) +' : ' + warning, '')
fields_def = self.fields_get(cr, uid, context=context)
0e4fa6a5dfc21523ffda8c6169d4dca20776c412 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/0e4fa6a5dfc21523ffda8c6169d4dca20776c412/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 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,...
[ 1, 1, 1, 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, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
elif str(packet.data) == "!stresstest":
elif str(packet.data) == "!stresstest" and not playing:
def run(self): global restartClient, playbackFile record = None self.logger.debug('creating socket') self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.logger.debug('connecting to server') self.socket.connect((self.ip, self.port))
4989f087dd9f1da61280156785b2e1a7d073601d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5557/4989f087dd9f1da61280156785b2e1a7d073601d/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2552, 7870, 1227, 16, 26335, 812, 1409, 273, 599, 365, 18, 4901, 18, 4148, 2668, 23799, 2987, 6134, 365, 18, 7814, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2552, 7870, 1227, 16, 26335, 812, 1409, 273, 599, 365, 18, 4901, 18, 4148, 2668, 23799, 2987, 6134, 365, 18, 7814, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18...
proto = code.getFunctionPrototype(method)
proto = code.getFunctionPrototype(method, urlprefix, urlsuffix)
def generateFunctionDocs(code, method): name = code.getFunctionName(method) proto = code.getFunctionPrototype(method) comment = code.getFunctionComment(method) if (comment == ""): comment = "Undocumented function.<br>\n" chunk = '<table bgcolor="e8e8e8" border=0 cellspacing=0 cellpadding=5 width="100%"><tr><td>' + "\n" chunk = chunk + '<a name="' + name + '"><b>' + name + "</b></a><br>\n" chunk = chunk + proto + "<br>\n" chunk = chunk + comment chunk = chunk + "</td></tr></table><br>\n" return chunk
e47fdbe42407a99cef6b7537e6d8c9c841f7c7ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e47fdbe42407a99cef6b7537e6d8c9c841f7c7ac/gendocs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 2083, 12656, 12, 710, 16, 707, 4672, 508, 273, 981, 18, 588, 25258, 12, 2039, 13, 3760, 273, 981, 18, 588, 2083, 15846, 12, 2039, 16, 880, 3239, 16, 6903, 2609, 13, 2879, 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, 2103, 2083, 12656, 12, 710, 16, 707, 4672, 508, 273, 981, 18, 588, 25258, 12, 2039, 13, 3760, 273, 981, 18, 588, 2083, 15846, 12, 2039, 16, 880, 3239, 16, 6903, 2609, 13, 2879, 273, ...
expected = """
preamble = """
def test_mul_ovf(self): ops = """ [i0, i1] i2 = int_and(i0, 255) i3 = int_lt(i1, 5) guard_true(i3) [] i4 = int_gt(i1, -10) guard_true(i4) [] i5 = int_mul_ovf(i2, i1) guard_no_overflow() [] i6 = int_lt(i5, -2550) guard_false(i6) [] i7 = int_ge(i5, 1276) guard_false(i7) [] i8 = int_gt(i5, 126) guard_true(i8) [] jump(i0, i1) """ expected = """ [i0, i1] i2 = int_and(i0, 255) i3 = int_lt(i1, 5) guard_true(i3) [] i4 = int_gt(i1, -10) guard_true(i4) [] i5 = int_mul(i2, i1) i8 = int_gt(i5, 126) guard_true(i8) [] jump(i0, i1) """ self.optimize_loop(ops, expected)
addc2b77177b49468137a20034ac27db7b4ba464 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/addc2b77177b49468137a20034ac27db7b4ba464/test_optimizeopt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 16411, 67, 1527, 74, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 464, 12, 77, 20, 16, 4561, 13, 277, 23, 273, 509, 67, 5618, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16411, 67, 1527, 74, 12, 2890, 4672, 6727, 273, 3536, 306, 77, 20, 16, 277, 21, 65, 277, 22, 273, 509, 67, 464, 12, 77, 20, 16, 4561, 13, 277, 23, 273, 509, 67, 5618, 1...
else: answer['points'] = 0 answer['feedback'] = self.incor_fb answer['id'] = elixer.m_hash(answer)
answer['id'] = elixer.m_hash(answer)
def build_answers(self): self.single_answer = 1
cf63ddff404b0bab9edcec3e700be8ea842ee0e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/cf63ddff404b0bab9edcec3e700be8ea842ee0e3/bb9_course.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 22340, 12, 2890, 4672, 365, 18, 7526, 67, 13490, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 22340, 12, 2890, 4672, 365, 18, 7526, 67, 13490, 273, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
user_passwd, host = splituser(host)
if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host
def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) else: host, selector = url urltype, rest = splittype(selector) if string.lower(urltype) == 'https': realhost, rest = splithost(rest) user_passwd, realhost = splituser(realhost) if user_passwd: selector = "%s://%s%s" % (urltype, realhost, rest) #print "proxy via https:", host, selector if not host: raise IOError, ('https error', 'no host given') if user_passwd: import base64 auth = string.strip(base64.encodestring(user_passwd)) else: auth = None h = httplib.HTTPS(host, 0, key_file=self.key_file, cert_file=self.cert_file) if data is not None: h.putrequest('POST', selector) h.putheader('Content-type', 'application/x-www-form-urlencoded') h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('GET', selector) if auth: h.putheader('Authorization: Basic %s' % auth) for args in self.addheaders: apply(h.putheader, args) h.endheaders() if data is not None: h.send(data + '\r\n') errcode, errmsg, headers = h.getreply() fp = h.getfile() if errcode == 200: return addinfourl(fp, headers, url) else: return self.http_error(url, fp, errcode, errmsg, headers)
a374199911ecdaaef97384f722058239956bef5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a374199911ecdaaef97384f722058239956bef5d/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121...
real = (section[-1],) + section[1:]
real = (section[-1],) + section[:-1]
def _read_base(self): config = ConfigParser(self.schemas) config.read(self.config_name)
81c6ef047a309129437d75af4237e8007ecd20c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5794/81c6ef047a309129437d75af4237e8007ecd20c8/gencontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 1969, 12, 2890, 4672, 642, 273, 25076, 12, 2890, 18, 17928, 13, 642, 18, 896, 12, 2890, 18, 1425, 67, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 1969, 12, 2890, 4672, 642, 273, 25076, 12, 2890, 18, 17928, 13, 642, 18, 896, 12, 2890, 18, 1425, 67, 529, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'time' : time
'time' : time,
def __init__(self, cr, uid, name, parents=rml_parents, tag=rml_tag, context=None): if not context: context={} self.cr = cr self.uid = uid self.pool = pooler.get_pool(cr.dbname) user = self.pool.get('res.users').browse(cr, uid, uid, context=context) self.localcontext = { 'user': user, 'company': user.company_id, 'repeatIn': self.repeatIn, 'setLang': self.setLang, 'setTag': self.setTag, 'removeParentNode': self.removeParentNode, 'format': self.format, 'formatLang': self.formatLang, 'logo' : user.company_id.logo, 'lang' : user.company_id.partner_id.lang, 'translate' : self._translate, 'setHtmlImage' : self.set_html_image, 'strip_name' : self._strip_name, 'time' : time } self.localcontext.update(context) self.rml_header = user.company_id.rml_header self.rml_header2 = user.company_id.rml_header2 self.rml_header3 = user.company_id.rml_header3 self.logo = user.company_id.logo self.name = name self._node = None self.parents = parents self.tag = tag self._lang_cache = {} self.lang_dict = {} self.default_lang = {} self.lang_dict_called = False self._transl_regex = re.compile('(\[\[.+?\]\])')
3a395e4cf9b6dabffc6d848f49fc52ac78a37541 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3a395e4cf9b6dabffc6d848f49fc52ac78a37541/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 6298, 33, 86, 781, 67, 12606, 16, 1047, 33, 86, 781, 67, 2692, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 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, 2738, 972, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 6298, 33, 86, 781, 67, 12606, 16, 1047, 33, 86, 781, 67, 2692, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 3...
ALGORITHM: Uses Pari function \emph{idealstar}
ALGORITHM: Uses Pari function ``idealstar``
def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K.
ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 10983, 12, 2890, 16, 2982, 33, 21, 4672, 436, 8395, 2860, 326, 25922, 1223, 292, 2779, 1041, 27488, 51, 67, 47, 19, 45, 13, 66, 26788, 16, 1625, 467, 353, 326, 23349, 365, 434, ...
self._sendmail(to, StringIO(msgtext))
self._sendmail(to_addrs, StringIO(msgtext))
def sendmail(self, subject, template, data, to_addrs, mime_headers={}): from email.mime.text import MIMEText from email.utils import formatdate from sshg import config if isinstance(to_addrs, basestring): to_addrs = [to_addrs] stream = generate_template('email/%s' % template, **data) body = stream.render('text') headers = {} headers['X-Mailer'] = '%s %s, by UfSoft.org' % (__package__, __version__) headers['X-Screener-Version'] = __version__ headers['Precedence'] = 'bulk' headers['Auto-Submitted'] = 'auto-generated' headers['Subject'] = subject headers['From'] = (config.notification.from_name, config.notification.smtp_from) headers['Reply-To'] = config.notification.reply_to
83527fa1d7cc4218076e830c410e17b3bf598770 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5807/83527fa1d7cc4218076e830c410e17b3bf598770/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 3221, 16, 1542, 16, 501, 16, 358, 67, 23305, 16, 4892, 67, 2485, 12938, 4672, 628, 2699, 18, 11757, 18, 955, 1930, 13195, 1528, 628, 2699, 18, 5471, 1930, 740...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 3221, 16, 1542, 16, 501, 16, 358, 67, 23305, 16, 4892, 67, 2485, 12938, 4672, 628, 2699, 18, 11757, 18, 955, 1930, 13195, 1528, 628, 2699, 18, 5471, 1930, 740...
if 'section' in inspect.getargspec(mod.__init__).args:
if 'section' in inspect.getargspec(mod.__init__)[0]:
def _load_component(self,structured_name,configsection=None): #from: http://mail.python.org/pipermail/python-list/2003-May/204392.html component_names = structured_name.split('.') mod = __import__('.'.join(component_names[:-1])) for component_name in component_names[1:]: mod = getattr(mod, component_name) if configsection==None: plugininstance=mod(self.config) else: #check if plugin supports config override if 'section' in inspect.getargspec(mod.__init__).args: plugininstance=mod(self.config,section=configsection) else: raise Exception,'Cannot set Config Section %s : Plugin %s does not support config override'%(configsection,mod) return plugininstance
84af532e49f72391050a2a0305973f4c1c2435a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/84af532e49f72391050a2a0305973f4c1c2435a5/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 4652, 12, 2890, 16, 17233, 67, 529, 16, 1425, 3464, 33, 7036, 4672, 468, 2080, 30, 1062, 2207, 4408, 18, 8103, 18, 3341, 19, 7259, 457, 4408, 19, 8103, 17, 1098, 19, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 67, 4652, 12, 2890, 16, 17233, 67, 529, 16, 1425, 3464, 33, 7036, 4672, 468, 2080, 30, 1062, 2207, 4408, 18, 8103, 18, 3341, 19, 7259, 457, 4408, 19, 8103, 17, 1098, 19, 69...
args=('test.blah', 'a')
args=(sys.stderr,)
def formatException(self, ei): return "Got a [%s]" % ei[0].__name__
64298ce715559bce045d9dbf2007e82f63d8a5c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/64298ce715559bce045d9dbf2007e82f63d8a5c3/test_logging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 503, 12, 2890, 16, 13247, 4672, 327, 315, 15617, 279, 9799, 87, 4279, 738, 13247, 63, 20, 8009, 972, 529, 972, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 503, 12, 2890, 16, 13247, 4672, 327, 315, 15617, 279, 9799, 87, 4279, 738, 13247, 63, 20, 8009, 972, 529, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if xid <> self.lastxid:
if xid != self.lastxid:
def dummy(): pass
e6b5917a3f1232d3676928a6fb5ae07cc948f164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e6b5917a3f1232d3676928a6fb5ae07cc948f164/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9609, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9609, 13332, 1342, 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, -100, ...
self.build(tempStory, filename, canvasmaker)
self.build(tempStory, **buildKwds)
def multiBuild(self, story, filename=None, canvasmaker=canvas.Canvas, maxPasses = 10): """Makes multiple passes until all indexing flowables are happy.""" self._indexingFlowables = [] #scan the story and keep a copy for thing in story: if thing.isIndexing(): self._indexingFlowables.append(thing)
2143778542b93890a6cb784f40391937efdd8ef0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/2143778542b93890a6cb784f40391937efdd8ef0/doctemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3309, 3116, 12, 2890, 16, 17285, 16, 1544, 33, 7036, 16, 5953, 29261, 33, 15424, 18, 12971, 16, 943, 6433, 281, 273, 1728, 4672, 3536, 14534, 3229, 11656, 3180, 777, 14403, 4693, 1538, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3309, 3116, 12, 2890, 16, 17285, 16, 1544, 33, 7036, 16, 5953, 29261, 33, 15424, 18, 12971, 16, 943, 6433, 281, 273, 1728, 4672, 3536, 14534, 3229, 11656, 3180, 777, 14403, 4693, 1538, 8...
elif value == "1":
elif data == "1":
def end_boolean(self, join=string.join): value = join(self._data, "") if value == "0": self.append(False) elif value == "1": self.append(True) else: raise TypeError, "bad boolean value" self._value = 0
80ead46c3b0b9513bc116e8fe08faa2f91145a91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/80ead46c3b0b9513bc116e8fe08faa2f91145a91/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 6494, 12, 2890, 16, 1233, 33, 1080, 18, 5701, 4672, 460, 273, 1233, 12, 2890, 6315, 892, 16, 1408, 13, 309, 460, 422, 315, 20, 6877, 365, 18, 6923, 12, 8381, 13, 1327, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 6494, 12, 2890, 16, 1233, 33, 1080, 18, 5701, 4672, 460, 273, 1233, 12, 2890, 6315, 892, 16, 1408, 13, 309, 460, 422, 315, 20, 6877, 365, 18, 6923, 12, 8381, 13, 1327, 501, ...
f=open(res, "wb") f.write(data) f.close()
open(res, "wb").write(data)
def getDiskPath(self, name, size=None): try: return nget(self.diskpaths, name) except KeyError: pass try: data = self.zf.read('images/%s' % name.replace("'", '-').encode('utf-8')) except KeyError: # no such file if name[0] != name[0].upper(): return self.getDiskPath(name[0].upper() + name[1:], size) return None try: ext = '.' + name.rsplit('.', 1)[1] except IndexError: ext = '' if ext.lower() == '.svg': ext = '.svg.png' elif ext.lower() == '.gif': ext = '.gif.png' res = os.path.join(self.tmpdir, 'image%04d%s' % (len(self.diskpaths), ext)) self.diskpaths[name] = res f=open(res, "wb") f.write(data) f.close() return res
3eef7b31a38c096d04f05419b663c667358280db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/3eef7b31a38c096d04f05419b663c667358280db/zipwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6247, 743, 12, 2890, 16, 508, 16, 963, 33, 7036, 4672, 775, 30, 327, 290, 588, 12, 2890, 18, 10863, 4481, 16, 508, 13, 1335, 4999, 30, 1342, 775, 30, 501, 273, 365, 18, 94, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6247, 743, 12, 2890, 16, 508, 16, 963, 33, 7036, 4672, 775, 30, 327, 290, 588, 12, 2890, 18, 10863, 4481, 16, 508, 13, 1335, 4999, 30, 1342, 775, 30, 501, 273, 365, 18, 94, 74...
raise TestFailed, 'zip(None) - expected TypeError, got', e
raise TestFailed, 'zip(None) - expected TypeError, got %s' % e
def __getitem__(self, i): if i < 0 or i > 2: raise IndexError return i + 4
715812667366cc747ac78598d462dd7ff75d4bb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/715812667366cc747ac78598d462dd7ff75d4bb2/test_b2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 411, 374, 578, 277, 405, 576, 30, 1002, 10195, 327, 277, 397, 1059, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 411, 374, 578, 277, 405, 576, 30, 1002, 10195, 327, 277, 397, 1059, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
[[] []]
[[]]
def __iter__(self): """ Returns a generator object which iterates through the elements of self. The order in which the elements are generated is based on a 'weight' of a matrix which is the number of iterations on the base ring that are required to reach that matrix.
fc8668435f7b85920caaf7d3fba000d9ccfadc71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fc8668435f7b85920caaf7d3fba000d9ccfadc71/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
request.write(xml)
request.write(unicode(xml).encode('utf-8'))
def _render(self, xml, request): if xml: request.setHeader('content-type', 'text/xml') request.write(xml) request.finish() else: request.write(error.NoResource("Message #%d not found" % self.id).render(request)) request.finish()
73d105bfb80510e2e546cdf32c62fd6ff14c5ce2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/73d105bfb80510e2e546cdf32c62fd6ff14c5ce2/MessageViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 12, 2890, 16, 2025, 16, 590, 4672, 309, 2025, 30, 590, 18, 542, 1864, 2668, 1745, 17, 723, 2187, 296, 955, 19, 2902, 6134, 590, 18, 2626, 12, 9124, 12, 2902, 2934, 3015, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 12, 2890, 16, 2025, 16, 590, 4672, 309, 2025, 30, 590, 18, 542, 1864, 2668, 1745, 17, 723, 2187, 296, 955, 19, 2902, 6134, 590, 18, 2626, 12, 9124, 12, 2902, 2934, 3015, 2...
view_load=%s, select_level=%s, readonly=%s ,required=%s
view_load=%s, select_level=%s, readonly=%s ,required=%s ,relation_field=%s
def _field_create(self, cr, context={}): cr.execute("SELECT id FROM ir_model WHERE model=%s", (self._name,)) if not cr.rowcount: cr.execute('SELECT nextval(%s)', ('ir_model_id_seq',)) model_id = cr.fetchone()[0] cr.execute("INSERT INTO ir_model (id,model, name, info,state) VALUES (%s, %s, %s, %s, %s)", (model_id, self._name, self._description, self.__doc__, 'base')) else: model_id = cr.fetchone()[0] if 'module' in context: name_id = 'model_'+self._name.replace('.','_') cr.execute('select * from ir_model_data where name=%s and res_id=%s', (name_id,model_id)) if not cr.rowcount: cr.execute("INSERT INTO ir_model_data (name,date_init,date_update,module,model,res_id) VALUES (%s, now(), now(), %s, %s, %s)", \ (name_id, context['module'], 'ir.model', model_id) )
0e66332749e1f5ab3dcf3ae41d6a7b3c10442ec3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/0e66332749e1f5ab3dcf3ae41d6a7b3c10442ec3/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1518, 67, 2640, 12, 2890, 16, 4422, 16, 819, 12938, 4672, 4422, 18, 8837, 2932, 4803, 612, 4571, 9482, 67, 2284, 4852, 938, 5095, 87, 3113, 261, 2890, 6315, 529, 16, 3719, 309, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1518, 67, 2640, 12, 2890, 16, 4422, 16, 819, 12938, 4672, 4422, 18, 8837, 2932, 4803, 612, 4571, 9482, 67, 2284, 4852, 938, 5095, 87, 3113, 261, 2890, 6315, 529, 16, 3719, 309, 48...
Draw a frame made of 3D rulers, with major and minor ticks.
Draw a frame made of 3-D rulers, with major and minor ticks.
def ruler_frame(lower_left, upper_right, ticks=4, sub_ticks=4, **kwds): """ Draw a frame made of 3D rulers, with major and minor ticks. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, or vector - ``ticks`` - (default: 4) the number of major ticks shown on each ruler - ``sub_ticks`` - (default: 4) the number of shown subdivisions between each major tick Type ``line3d.options`` for a dictionary of the default options for lines which are also available. EXAMPLES: A ruler frame:: sage: from sage.plot.plot3d.shapes2 import ruler_frame sage: F = ruler_frame([1,2,3],vector([2,3,4])); F A ruler frame with some options:: sage: F = ruler_frame([1,2,3],vector([2,3,4]),ticks=6, sub_ticks=2, color='red'); F """ return ruler(lower_left, (upper_right[0], lower_left[1], lower_left[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds) \ + ruler(lower_left, (lower_left[0], upper_right[1], lower_left[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds) \ + ruler(lower_left, (lower_left[0], lower_left[1], upper_right[2]), ticks=ticks, sub_ticks=sub_ticks, absolute=True, **kwds)
ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 67, 3789, 12, 8167, 67, 4482, 16, 3854, 67, 4083, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 2826, 25577, 4672, 3536, 10184, 279, 2623, 7165, 434, 890, 17, 40, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 17040, 67, 3789, 12, 8167, 67, 4482, 16, 3854, 67, 4083, 16, 13003, 33, 24, 16, 720, 67, 11767, 33, 24, 16, 2826, 25577, 4672, 3536, 10184, 279, 2623, 7165, 434, 890, 17, 40, 43...
def __init__(self, master, buttons):
def __init__(self, master, buttons, callback = None):
def __init__(self, master, buttons): self.master = master self.buttons = buttons
c851d11d09284089edf54d1ccc2d14f74a5be5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c851d11d09284089edf54d1ccc2d14f74a5be5e7/OWImputer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 9502, 16, 1348, 273, 599, 4672, 365, 18, 7525, 273, 4171, 365, 18, 16016, 273, 9502, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 16, 9502, 16, 1348, 273, 599, 4672, 365, 18, 7525, 273, 4171, 365, 18, 16016, 273, 9502, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
textobject.setWordSpace((extra*1.0/(nwords - 1)))
textobject.setWordSpace((basicWidth-length)/(nwords-1.0))
def draw(self): from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY style = self.style lines = self.lines rightIndent = style.rightIndent leftIndent = style.leftIndent leading = style.leading font = style.fontName size = style.fontSize alignment = style.alignment firstindent = style.firstLineIndent c = self.canv escape = c._escape #if debug: # print "FAST", id(self), "page number", c.getPageNumber() height = self.height #if debug: # c.rect(0,0,-1, height-size, fill=1, stroke=1) c.translate(0, height-size) textobject = c.beginText() code = textobject._code #textobject.setTextOrigin(0,firstindent) textobject.setFont(font, size) if style.textColor: textobject.setFillColor(style.textColor) first = 1 y = 0 basicWidth = self.availableWidth - rightIndent count = 0 nlines = len(lines) while count<nlines: (text, length, nwords) = lines[count] count = count+1 thisindent = leftIndent if first: thisindent = firstindent if alignment==TA_LEFT: x = thisindent elif alignment==TA_CENTER: extra = basicWidth - length x = thisindent + extra/2.0 elif alignment==TA_RIGHT: extra = basicWidth - length x = thisindent + extra elif alignment==TA_JUSTIFY: x = thisindent extra = basicWidth - length wordspace = extra*1.0/nwords if count<nlines: # patch from doug@pennatus.com, 9 Nov 2002 # was: textobject.setWordSpace(wordspace) textobject.setWordSpace((extra*1.0/(nwords - 1))) else: textobject.setWordSpace(0.0) textobject.setTextOrigin(x,y) text = escape(text) code.append('(%s) Tj' % text) #textobject.textOut(text) y = y-leading c.drawText(textobject)
8e964059053b9454c9007cadd13e3a4d20c46e8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8e964059053b9454c9007cadd13e3a4d20c46e8f/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 628, 2605, 7411, 18, 2941, 18, 7924, 87, 1930, 399, 37, 67, 10066, 16, 399, 37, 67, 19835, 16, 399, 37, 67, 11847, 16, 399, 37, 67, 46, 5996, 12096, 2154, 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, 3724, 12, 2890, 4672, 628, 2605, 7411, 18, 2941, 18, 7924, 87, 1930, 399, 37, 67, 10066, 16, 399, 37, 67, 19835, 16, 399, 37, 67, 11847, 16, 399, 37, 67, 46, 5996, 12096, 2154, 273, ...
path = os.path.join(os.getcwd(), 'icons')
path = os.path.join(os.getcwd(), 'icons/mugshots')
def OnIconButton(self, evt): # get current working directory # TODO: record the last opened path in config file try: path = os.path.join(os.getcwd(), 'icons') except Exception, msg: path = '' # open the image browser dialog dlg = ib.ImageDialog(self, path)
2343157026e27ad0b5bde78cc13fbd2e47f9427b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9686/2343157026e27ad0b5bde78cc13fbd2e47f9427b/makefriends.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5554, 3616, 12, 2890, 16, 6324, 4672, 468, 336, 783, 5960, 1867, 468, 2660, 30, 1409, 326, 1142, 10191, 589, 316, 642, 585, 775, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5554, 3616, 12, 2890, 16, 6324, 4672, 468, 336, 783, 5960, 1867, 468, 2660, 30, 1409, 326, 1142, 10191, 589, 316, 642, 585, 775, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 538, ...
spg._centrosymmetric = bool(f.readline().split()[1])
spg._centrosymmetric = bool(int(f.readline().split()[1]))
def _read_datafile_entry(spg, no, symbol, setting, f): """Read space group data from f to spg.""" spg._no = no spg._symbol = symbol.strip() spg._setting = setting spg._centrosymmetric = bool(f.readline().split()[1]) # primitive vectors f.readline() spg._scaled_primitive_cell = np.array([map(float, f.readline().split()) for i in range(3)], dtype=np.float) # primitive reciprocal vectors f.readline() spg._reciprocal_cell = np.array([map(int, f.readline().split()) for i in range(3)], dtype=np.int) # subtranslations spg._nsubtrans = int(f.readline().split()[0]) spg._subtrans = np.array([map(float, f.readline().split()) for i in range(spg._nsubtrans)], dtype=np.float) # symmetry operations nsym = int(f.readline().split()[0]) symop = np.array([map(float, f.readline().split()) for i in range(nsym)], dtype=np.float) spg._nsymop = nsym spg._rotations = np.array(symop[:,:9].reshape((nsym,3,3)), dtype=np.int) spg._translations = symop[:,9:]
4fa6d35fad9042915ad2c1a9831f4dd1fb3509ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/4fa6d35fad9042915ad2c1a9831f4dd1fb3509ee/spacegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 892, 768, 67, 4099, 12, 1752, 75, 16, 1158, 16, 3273, 16, 3637, 16, 284, 4672, 3536, 1994, 3476, 1041, 501, 628, 284, 358, 1694, 75, 12123, 1694, 75, 6315, 2135, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 892, 768, 67, 4099, 12, 1752, 75, 16, 1158, 16, 3273, 16, 3637, 16, 284, 4672, 3536, 1994, 3476, 1041, 501, 628, 284, 358, 1694, 75, 12123, 1694, 75, 6315, 2135, 273, 1...
def __instance(self, cb, *args):
if self.__resume_filename: self.resume_instance(self.__resume_filename) else: self.new_instance()
def __instance(self, cb, *args): for i in self.__postponed_share: self.share_instance(i, self._initiating) self.__postponed_share = [] cb(*args)
3a49b60a6de588c9ec4840acc5b9555570894754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5598/3a49b60a6de588c9ec4840acc5b9555570894754/shared.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 365, 16186, 25158, 67, 3459, 30, 365, 18, 25158, 67, 1336, 12, 2890, 16186, 25158, 67, 3459, 13, 469, 30, 365, 18, 2704, 67, 1336, 1435, 225, 364, 277, 316, 365, 16186, 2767, 500, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 365, 16186, 25158, 67, 3459, 30, 365, 18, 25158, 67, 1336, 12, 2890, 16186, 25158, 67, 3459, 13, 469, 30, 365, 18, 2704, 67, 1336, 1435, 225, 364, 277, 316, 365, 16186, 2767, 500, 329, ...
sys.stderr.write("props not set correctly for %s\n" % path)
sys.stderr.write("Props issue on: %s\n" % path) sys.stderr.write(hr)
def checkPath(path,autoprops): log_message ("checkPath: [%s]\n" % (path)); #sys.stderr.write ("Checking autoprops on [%s] ...\n" % (path)) okay = 1 is_dir = (path[-1] == '/') for pattern in autoprops.keys(): #log_message("#Pattern [%s] \n" % (pattern)) if fnmatch(path,pattern): #log_message("#Match [%s ~ %s] \n" % (pattern, path)) items = autoprops[pattern] for item in items: propname = item[0] log_message("#Propname [%s] \n" % (propname)) if is_dir and propname == 'svn:keywords': log_message ("Skip checking %s on directory [%s] ...\n" % (propname, path)) else: expected = item[1] # already lower case cmd = "%s propget -t %s %s %s %s" % (SVNLOOK,trans,repos,propname,path) #propget = Popen(split (cmd), stdout=PIPE).stdout #log_message("Launch command=%s \n" % (cmd)) (propget, prop_in) = popen2.popen2(cmd) #log_message("Read output \n") propval = lower(propget.read()) status = propget.close() prop_in.close() #log_message("Finish command \n") if propval.find(expected) < 0: okay = 0 #if not status: sys.stderr.write("hook: Property value '%s=%s' not found (or not expected) on path '%s'\n" % (propname,expected,path)) log_message ("checkPath: [%s] done\n" % (path)); return okay
fef05254d679458dcfa6dfb040cc1761ddbe9dc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/fef05254d679458dcfa6dfb040cc1761ddbe9dc2/checkprops.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 743, 12, 803, 16, 5854, 556, 16703, 4672, 613, 67, 2150, 7566, 1893, 743, 30, 9799, 87, 13944, 82, 6, 738, 261, 803, 10019, 468, 9499, 18, 11241, 18, 2626, 7566, 14294, 2059, 556,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 743, 12, 803, 16, 5854, 556, 16703, 4672, 613, 67, 2150, 7566, 1893, 743, 30, 9799, 87, 13944, 82, 6, 738, 261, 803, 10019, 468, 9499, 18, 11241, 18, 2626, 7566, 14294, 2059, 556,...
if cmd==f90: cmd = self.compiler_f90[0]
if cmd == f90: cmd = self.compiler_f90[0]
def get_version_cmd(self): """Compiler command to print out version information.""" f77 = self.executables.get('compiler_f77') if f77 is not None: f77 = f77[0] cmd = self.executables.get('version_cmd') if cmd is not None: cmd = cmd[0] if cmd==f77: cmd = self.compiler_f77[0] else: f90 = self.executables.get('compiler_f90') if f90 is not None: f90 = f90[0] if cmd==f90: cmd = self.compiler_f90[0] return cmd
888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1589, 67, 4172, 12, 2890, 4672, 3536, 9213, 1296, 358, 1172, 596, 1177, 1779, 12123, 284, 4700, 273, 365, 18, 4177, 322, 1538, 18, 588, 2668, 9576, 67, 74, 4700, 6134, 309, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1589, 67, 4172, 12, 2890, 4672, 3536, 9213, 1296, 358, 1172, 596, 1177, 1779, 12123, 284, 4700, 273, 365, 18, 4177, 322, 1538, 18, 588, 2668, 9576, 67, 74, 4700, 6134, 309, 28...
class pAdicGeneralExtensionFieldCappedRelative(pAdicGeneralExtensionGeneric, pAdicCappedRelativeFieldGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionCappedRelativeElement)
def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionCappedRelativeElement)
ba045ed1184b908554216b56093b975bd5ff14cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ba045ed1184b908554216b56093b975bd5ff14cc/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 731, 355, 93, 16, 425, 16353, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 293, 1871, 335, 12580, 3625, 7014, 16186, 2738, 972, 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, 1001, 2738, 972, 12, 2890, 16, 731, 355, 93, 16, 425, 16353, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 293, 1871, 335, 12580, 3625, 7014, 16186, 2738, 972, 12...
obj.doDefaultAction()
def activatePosition(self,pos): ID=self.getIDFromPosition(pos) obj=self._IDs[ID]["node"] if obj is None: return role=getMozillaRole(obj.IAccessibleRole) states=obj.IAccessibleStates if (role==IAccessibleHandler.ROLE_SYSTEM_TEXT and not states&IAccessibleHandler.STATE_SYSTEM_READONLY) or role==IAccessibleHandler.ROLE_SYSTEM_COMBOBOX: if not self.passThrough: self.passThrough=True virtualBufferHandler.reportPassThrough(self) obj.setFocus() else: obj.doDefaultAction() obj.setFocus() return if role in [IAccessibleHandler.ROLE_SYSTEM_CHECKBUTTON,IAccessibleHandler.ROLE_SYSTEM_RADIOBUTTON]: obj.doDefaultAction() obj.setFocus() elif role==IAccessibleHandler.ROLE_SYSTEM_PUSHBUTTON: obj.doDefaultAction() elif role in [IAccessibleHandler.ROLE_SYSTEM_LINK,IAccessibleHandler.ROLE_SYSTEM_GRAPHIC]: obj.doDefaultAction() obj.setFocus()
aab9c074a2b596ba809a26d7c0398aafaa0055bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/aab9c074a2b596ba809a26d7c0398aafaa0055bd/adobe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 2555, 12, 2890, 16, 917, 4672, 1599, 33, 2890, 18, 588, 734, 1265, 2555, 12, 917, 13, 1081, 33, 2890, 6315, 5103, 63, 734, 6362, 6, 2159, 11929, 309, 1081, 353, 599, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 2555, 12, 2890, 16, 917, 4672, 1599, 33, 2890, 18, 588, 734, 1265, 2555, 12, 917, 13, 1081, 33, 2890, 6315, 5103, 63, 734, 6362, 6, 2159, 11929, 309, 1081, 353, 599, 30, 327, ...
self.mungeMakefiles(util.normpath(self.macros.builddir + os.sep + self.dir), self.command)
self.buildMakeDependencies(util.normpath(self.macros.builddir + os.sep + self.dir), self.command)
def do(self, macros):
c191d02c68c0ba5fd9dc046fc1b7a2dc073d24ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c191d02c68c0ba5fd9dc046fc1b7a2dc073d24ca/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 24302, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 16, 24302, 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, -10...
if not m:
if m == (None, None):
def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Should be able to handle anything rfc822.parseaddr can handle. """ m=None try: m=rfc822.parseaddr(addr)[1] except AttributeError: pass if not m: #something weird here.. punt -ddm return addr else: return "<%s>" % m
342456d5d25be692c3ddd43d0446b52555251ccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/342456d5d25be692c3ddd43d0446b52555251ccc/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4914, 684, 3069, 12, 4793, 4672, 3536, 10257, 279, 7931, 434, 326, 2699, 6138, 2553, 635, 8372, 1725, 5340, 18, 225, 9363, 506, 7752, 358, 1640, 6967, 16590, 24532, 18, 2670, 4793, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4914, 684, 3069, 12, 4793, 4672, 3536, 10257, 279, 7931, 434, 326, 2699, 6138, 2553, 635, 8372, 1725, 5340, 18, 225, 9363, 506, 7752, 358, 1640, 6967, 16590, 24532, 18, 2670, 4793, 848, ...
self._logger.info("has temp"+str(self._WxCurrent.has_key['th1.temp'])) self._logger.info("has hum"+str(self._WxCurrent.has_key['th1.hum'])) self._logger.info("got pressure "+pressure) if self._WxCurrent.has_key['th1.temp'] and self._WxCurrent.has_key['th1.humidity']: self._logger.info("calculating pressure") pressure = round(StationToSeaLevelPressure( pressure, self.ALTITUDE, self._WxCurrent['th1.temp'], self.MEAN_TEMP, self._WxCurrent['th1.humidity'], 'paDavisVP'),1) self._WxCurrent['barometer.pressure'] = pressure self._WxCurrent['barometer.forecast'] = forecast self._WxCurrent['barometer.forecastTxt'] = forecastTxt self._report_barometer(pressure) self._logger.info("Barometer Forecast: %s, Pressure: %d mb", forecastTxt, pressure)
try: self._logger.info("has temp"+str(self._WxCurrent.has_key['th1.temp'])) self._logger.info("has hum"+str(self._WxCurrent.has_key['th1.hum'])) self._logger.info("got pressure "+pressure) if self._WxCurrent.has_key['th1.temp'] and self._WxCurrent.has_key['th1.humidity']: self._logger.info("calculating pressure") pressure = round(StationToSeaLevelPressure( pressure, self.ALTITUDE, self._WxCurrent['th1.temp'], self.MEAN_TEMP, self._WxCurrent['th1.humidity'], 'paDavisVP'),1) self._WxCurrent['barometer.pressure'] = pressure self._WxCurrent['barometer.forecast'] = forecast self._WxCurrent['barometer.forecastTxt'] = forecastTxt self._report_barometer(pressure) self._logger.info("Barometer Forecast: %s, Pressure: %d mb", forecastTxt, pressure) except Exception, e: self._logger.exception(e.message)
def _parse_barometer_record(self, record): """
b8715bfdf374d8da341565ae2d3ee463a0a00c04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3323/b8715bfdf374d8da341565ae2d3ee463a0a00c04/WMRS200Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 3215, 362, 847, 67, 3366, 12, 2890, 16, 1409, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 3215, 362, 847, 67, 3366, 12, 2890, 16, 1409, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
of `w` that qualifies as a Lyndon word.
of `w` that is a Lyndon word.
def standard_factorization(self): r""" Returns the standard factorization of self.
0392dbfbd4660240610d6340b53857ca3e7aa64c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/0392dbfbd4660240610d6340b53857ca3e7aa64c/word.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 4529, 5578, 1588, 434, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 67, 6812, 1588, 12, 2890, 4672, 436, 8395, 2860, 326, 4529, 5578, 1588, 434, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
except SIPRegistrationDidNotEnd, e:
except (SIPRegistrationDidFail, SIPRegistrationDidNotEnd), e:
def _CH_unregister(self, command): notification_center = NotificationCenter() # Cancel any timer which would restart the registration process if self._refresh_timer is not None and self._refresh_timer.active(): self._refresh_timer.cancel() self._refresh_timer = None self.registered = False if self._registration is not None: self._registration.end(timeout=2) try: while True: notification = self._data_channel.wait() if notification.sender is self._registration and notification.name == 'SIPRegistrationDidEnd': break except SIPRegistrationDidNotEnd, e: notification_center.post_notification('SIPAccountRegistrationDidNotEnd', sender=self.account, data=TimestampedNotificationData(code=e.code, reason=e.reason, registration=self._registration)) else: notification_center.post_notification('SIPAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData(registration=self._registration)) finally: notification_center.remove_observer(self, sender=self._registration) self._registration = None command.signal()
686915396eedbb7834a5d3e6d7d4954280e2943a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/686915396eedbb7834a5d3e6d7d4954280e2943a/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1792, 67, 318, 4861, 12, 2890, 16, 1296, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 468, 10347, 1281, 5441, 1492, 4102, 7870, 326, 7914, 1207, 309, 365, 6315, 9144, 67, 12542, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1792, 67, 318, 4861, 12, 2890, 16, 1296, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 468, 10347, 1281, 5441, 1492, 4102, 7870, 326, 7914, 1207, 309, 365, 6315, 9144, 67, 12542, 353...
self.toolsToolbar.setGeometry(QRect(0,312,30,183))
self.toolsToolbar.setGeometry(QRect(0,322,30,189))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...