bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def _render(self, gc, points, selected_points=None): if len(points) == 0: return
def _render(self, gc, points, selected_points=None): if len(points) == 0: return
452,200
def _render_normal(self, gc, points): for ary in points: if len(ary) > 0: gc.begin_path() gc.lines(ary) gc.stroke_path() return
@classmethod def _render_normal(cls, gc, points, orientation): for ary in points: if len(ary) > 0: gc.begin_path() gc.lines(ary) gc.stroke_path() return
452,201
def _render_hold(self, gc, points): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.stroke_path() return
@classmethod def _render_hold(cls, gc, points, orientation): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.stroke_path() return
452,202
def _render_hold(self, gc, points): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.stroke_path() return
def _render_hold(self, gc, points): for starts in points: x,y = starts.T if orientation == "h": ends = transpose(array( (x[1:], y[:-1]) )) else: ends = transpose(array( (x[:-1], y[1:]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.stroke_path() return
452,203
def _render_connected_hold(self, gc, points): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.line_set(ends, starts[1:]) gc.stroke_path() return
@classmethod def _render_connected_hold(cls, gc, points, orientation): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.line_set(ends, starts[1:]) gc.stroke_path() return
452,204
def _render_connected_hold(self, gc, points): for starts in points: x,y = starts.T ends = transpose(array( (x[1:], y[:-1]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.line_set(ends, starts[1:]) gc.stroke_path() return
def _render_connected_hold(self, gc, points): for starts in points: x,y = starts.T if orientation == "h": ends = transpose(array( (x[1:], y[:-1]) )) else: ends = transpose(array( (x[:-1], y[1:]) )) gc.begin_path() gc.line_set(starts[:-1], ends) gc.line_set(ends, starts[1:]) gc.stroke_path() return
452,205
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0.0, float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectru...
452,206
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
452,207
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
452,208
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
452,209
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
def _create_plot_component(obj): # Setup the spectrum plot frequencies = linspace(0., float(SAMPLING_RATE)/2, num=NUM_SAMPLES/2) obj.spectrum_data = ArrayPlotData(frequency=frequencies) empty_amplitude = zeros(NUM_SAMPLES/2) obj.spectrum_data.set_data('amplitude', empty_amplitude) obj.spectrum_plot = Plot(obj.spectrum...
452,210
def get_audio_data(): global _stream if _stream is None: # The audio stream is opened the first time this function gets called. # The stream is always closed (if it was opened) in a try finally # block at the end of this file, pa = pyaudio.PyAudio() _stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RA...
def get_audio_data(): global _stream if _stream is None: # The audio stream is opened the first time this function gets called. # The stream is always closed (if it was opened) in a try finally # block at the end of this file, pa = pyaudio.PyAudio() _stream = pa.open(format=pyaudio.paInt16, channels=1, rate=SAMPLING_RA...
452,211
def onClose(self, event): #sys.exit() self.timer.Stop() event.Skip()
def onClose(self, event): #sys.exit() self.timer.Stop() event.Skip()
452,212
def _get_amplitude_scale(self): """ If the amplitude is set to this value, the largest trace deviation from is base y coordinates will be equal to the y coordinate spacing. """ # Note: Like the rest of the current code, this ignores the `scale` attribute.
def _get_amplitude_scale(self): """ If the amplitude is set to this value, the largest trace deviation from is base y coordinates will be equal to the y coordinate spacing. """ # Note: Like the rest of the current code, this ignores the `scale` attribute.
452,213
def _get_amplitude_scale(self): """ If the amplitude is set to this value, the largest trace deviation from is base y coordinates will be equal to the y coordinate spacing. """ # Note: Like the rest of the current code, this ignores the `scale` attribute.
def _get_amplitude_scale(self): """ If the amplitude is set to this value, the largest trace deviation from is base y coordinates will be equal to the y coordinate spacing. """ # Note: Like the rest of the current code, this ignores the `scale` attribute.
452,214
def _gather_points(self): """ Collects the data points that are within the bounds of the plot and caches them. """
def _gather_points(self): """ Collects the data points that are within the bounds of the plot and caches them. """
452,215
def render_component(self, component, container_coords=False, halign="center", valign="top"): """ Erases the current contents of the graphics context and renders the given component at the maximum possible scaling while preserving aspect ratio. Parameters ---------- component : Component The component to be rendered. ...
def render_component(self, component, container_coords=False, halign="center", valign="top"): """ Erases the current contents of the graphics context and renders the given component at the maximum possible scaling while preserving aspect ratio. Parameters ---------- component : Component The component to be rendered. ...
452,216
def render_component(self, component, container_coords=False, halign="center", valign="top"): """ Erases the current contents of the graphics context and renders the given component at the maximum possible scaling while preserving aspect ratio. Parameters ---------- component : Component The component to be rendered. ...
def render_component(self, component, container_coords=False, halign="center", valign="top"): """ Erases the current contents of the graphics context and renders the given component at the maximum possible scaling while preserving aspect ratio. Parameters ---------- component : Component The component to be rendered. ...
452,217
def _plot_default(self): return _create_plot_component()
def _plot_default(self): return _create_plot_component()
452,218
def time_ms(t): s = "%5.1f ms" % (t * 1000) return s
def time_ms(t): s = "%5.1f ms" % (t * 1000) return s
452,219
def revert(self, zoom_tool): if isinstance(zoom_tool.component.index_mapper, GridMapper): index_mapper = zoom_tool.component.index_mapper._xmapper value_mapper = zoom_tool.component.index_mapper._ymapper else: index_mapper = zoom_tool.component.index_mapper value_mapper = zoom_tool.component.value_mapper zoom_tool._zo...
def revert(self, zoom_tool): if isinstance(zoom_tool.component.index_mapper, GridMapper): index_mapper = zoom_tool.component.index_mapper._xmapper value_mapper = zoom_tool.component.index_mapper._ymapper else: index_mapper = zoom_tool.component.index_mapper value_mapper = zoom_tool.component.value_mapper zoom_tool._zo...
452,220
def overlay(self, component, gc, view_bounds=None, mode='normal'): x_range = self._get_selection_index_screen_range() y_range = self._get_selection_value_screen_range() if len(x_range) == 0: return x1, x2 = x_range y1, y2 = y_range
def overlay(self, component, gc, view_bounds=None, mode='normal'): x_range = self._get_selection_index_screen_range() y_range = self._get_selection_value_screen_range() if len(x_range) == 0: return x1, x2 = x_range y1, y2 = y_range
452,221
def _draw_labels(self, gc): """ Draws the tick labels for the axis. """ for i in range(len(self._tick_label_positions)): #We want a more sophisticated scheme than just 2 decimals all the time ticklabel = self.ticklabel_cache[i] tl_bounds = self._tick_label_bounding_boxes[i]
def _draw_labels(self, gc): """ Draws the tick labels for the axis. """ for i in range(len(self._tick_label_positions)): #We want a more sophisticated scheme than just 2 decimals all the time ticklabel = self.ticklabel_cache[i] tl_bounds = self._tick_label_bounding_boxes[i]
452,222
def _center_dist(self, vect, width, height, rotation=0.0): """Given a width and height of a rectangle, this method finds the distance in units of the vector, in the direction of the vector, from the center of the rectangle, to wherever the vector leaves the rectangle. This method is useful for determining where to plac...
def _center_dist(self, vect, width, height, rotation=0.0): """Given a width and height of a rectangle, this method finds the distance in units of the vector, in the direction of the vector, from the center of the rectangle, to wherever the vector leaves the rectangle. This method is useful for determining where to plac...
452,223
def get_preferred_size(self, components=None): """ Returns the size (width,height) that is preferred for this component.
def get_preferred_size(self, components=None): """ Returns the size (width,height) that is preferred for this component.
452,224
def get_hostname(): hostname = os.uname()[1] # Convert the machine's hostname into alphanumeric characters, suitable for python module names # Note: We don't want to use \W because it also matches underscores. # The string segment "._." would end up as "___" instead of "_". hostname = re.sub('[^a-zA-Z0-9]+', '_'...
def get_hostname(): hostname = socket.gethostname() # Convert the machine's hostname into alphanumeric characters, suitable for python module names # Note: We don't want to use \W because it also matches underscores. # The string segment "._." would end up as "___" instead of "_". hostname = re.sub('[^a-zA-Z0-9]...
452,225
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_object(key, value=None, ext=None): if ext: key = '{0}__{1}'.format(ext, key) key, key_hr = buffer(pickle.dumps(key, -1)), key cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyErro...
452,226
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,227
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,228
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,229
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,230
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,231
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,232
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,233
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
def cache_trace(dst, trace=None): if isinstance(dst, types.StringTypes): dst = unpack(b'!i', socket.inet_aton(dst))[0] cur = geoip_db.cursor() if trace is None: cur.execute('SELECT trace, ts FROM trace_cache WHERE dst = ?', (dst,)) # exit() try: trace, ts = next(cur) except StopIteration: raise KeyError if ts < time() ...
452,234
def trace(ip, port): try: return defer.succeed((ip, port, cache_trace(ip))) except KeyError: tracer = optz.trace_pool.run(_trace, ip) tracer.addCallback(ft.partial(cache_trace, ip)) tracer.addCallback(lambda res,ip=ip,port=port: (ip,port,res)) return tracer
def trace(ip, port): cache = ft.partial(cache_object, ip, ext='trace') try: return defer.succeed((ip, port, cache())) except KeyError: tracer = optz.trace_pool.run(_trace, ip) tracer.addCallback(ft.partial(cache_trace, ip)) tracer.addCallback(lambda res,ip=ip,port=port: (ip,port,res)) return tracer
452,235
def trace(ip, port): try: return defer.succeed((ip, port, cache_trace(ip))) except KeyError: tracer = optz.trace_pool.run(_trace, ip) tracer.addCallback(ft.partial(cache_trace, ip)) tracer.addCallback(lambda res,ip=ip,port=port: (ip,port,res)) return tracer
def trace(ip, port): try: return defer.succeed((ip, port, cache_trace(ip))) except KeyError: tracer = optz.trace_pool.run(_trace, ip) tracer.addCallback(cache) tracer.addCallback(lambda res,ip=ip,port=port: (ip,port,res)) return tracer
452,236
def generate_overlay(self, traces): arcs, markers = list(), list() markers.append(' '.join(str_cat( optz.home_lat, optz.home_lon, '"{0}"'.format(optz.home_label) ))) for ip,port,trace in it.imap(op.itemgetter(1), it.ifilter(op.itemgetter(0), traces)): if not trace: log.debug('Dropped completely unresolved trace to {0}'...
def generate_overlay(self, traces): arcs, markers = list(), list() markers.append(' '.join(str_cat( optz.home_lat, optz.home_lon, '"{0}"'.format(optz.home_label) ))) for ip,port,trace in it.imap(op.itemgetter(1), it.ifilter(op.itemgetter(0), traces)): if not trace: log.debug('Dropped completely unresolved trace to {0}'...
452,237
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
452,238
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
452,239
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
452,240
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
def geoip_db_var(var, cur=None): if cur is None: cur = geoip_db.cursor() cur.execute('SELECT val FROM meta WHERE var = ?', (var,)) try: return next(cur)[0] except StopIteration: raise KeyError(var)
452,241
def build_geoip_db(spool_path, mmdb_zip, from_version=0, link=None, cur=None): if from_version < 1: # i.e. from scratch ## Unzip CSVs unzip_root = os.path.join(spool_path, 'mmdb_tmp') log.debug('Unpacking MaxMind db (to: {0})'.format(unzip_root)) if os.path.exists(unzip_root): shutil.rmtree(unzip_root) os.mkdir(unzip_r...
def build_geoip_db(geoip_db_path, spool_path, mmdb_zip, from_version=0, link=None, cur=None): if from_version < 1: # i.e. from scratch ## Unzip CSVs unzip_root = os.path.join(spool_path, 'mmdb_tmp') log.debug('Unpacking MaxMind db (to: {0})'.format(unzip_root)) if os.path.exists(unzip_root): shutil.rmtree(unzip_root) o...
452,242
def initialize(optz): 'Prepare necessary paths, locks and geoip_db. Must be run before event-loop.' optz = AttrDict._from_optz(optz) ### Logging logging.basicConfig( level=logging.DEBUG if optz.debug else logging.WARNING ) ### Check/expand paths os.umask(077) # no need to share cache w/ someone if optz.maxmind_db: ...
def initialize(optz): 'Prepare necessary paths, locks and geoip_db. Must be run before event-loop.' optz = AttrDict._from_optz(optz) ### Logging logging.basicConfig( level=logging.DEBUG if optz.debug else logging.WARNING ) ### Check/expand paths os.umask(077) # no need to share cache w/ someone if optz.maxmind_db: ...
452,243
def initialize(optz): 'Prepare necessary paths, locks and geoip_db. Must be run before event-loop.' optz = AttrDict._from_optz(optz) ### Logging logging.basicConfig( level=logging.DEBUG if optz.debug else logging.WARNING ) ### Check/expand paths os.umask(077) # no need to share cache w/ someone if optz.maxmind_db: ...
def initialize(optz): 'Prepare necessary paths, locks and geoip_db. Must be run before event-loop.' optz = AttrDict._from_optz(optz) ### Logging logging.basicConfig( level=logging.DEBUG if optz.debug else logging.WARNING ) ### Check/expand paths os.umask(077) # no need to share cache w/ someone if optz.maxmind_db: ...
452,244
def main(): settings = preferences.Preferences() print "Generated prefs" print "URL", settings.url dialog = preferences.ConfigDialog(None, "settings", settings) print "Creating dialog" dialog.show() app.exec_()
def main(): settings = preferences.Preferences() dialog = preferences.ConfigDialog(None, "settings", settings) print "Creating dialog" dialog.show() app.exec_()
452,245
def main(): settings = preferences.Preferences() print "Generated prefs" print "URL", settings.url dialog = preferences.ConfigDialog(None, "settings", settings) print "Creating dialog" dialog.show() app.exec_()
def main(): settings = preferences.Preferences() print "Generated prefs" print "URL", settings.url dialog = preferences.ConfigDialog(None, "settings", settings) dialog.show() app.exec_()
452,246
def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT: htmltext=e...
def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count >= REQUESTED_AMOUNT: htmltext=...
452,247
def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT: htmltext=e...
def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT: htmltext=e...
452,248
def onTalk (self,npc,player): htmltext = "<html><head><body>I have nothing to say you</body></html>" st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() if id == CREATED : htmltext="66667-1.htm" elif id == COMPLETED : htmltext = "<html><head><body>This quest has already b...
def onTalk (self,npc,player): htmltext = "<html><head><body>I have nothing to say you</body></html>" st = player.getQuestState(qn) if not st : return htmltext npcId = npc.getNpcId() id = st.getState() if id == CREATED : htmltext="66667-1.htm" elif id == COMPLETED : htmltext = "<html><head><body>This quest have already ...
452,249
def onEvent(self,event,st): st.getPlayer().setTarget(st.getPlayer()) if event == "1": #good st.getPlayer.setGood(true) st.setState(COMPLETED) if event == "2": #evil st.getPlayer.setEvil(true) st.setState(COMPLETED) if event == "3": #unfact good st.getPlayer.setGood(false) st.setState(COMPLETED) if event == "4": #un...
def onEvent(self,event,st): st.getPlayer().setTarget(st.getPlayer()) if event == "1": #good st.getPlayer.setGood(true) st.setState(COMPLETED) if event == "2": #evil st.getPlayer.setEvil(true) st.setState(COMPLETED) if event == "3": #unfact good st.getPlayer.setGood(false) st.setState(COMPLETED) if event == "4": #un...
452,250
def main(): try: opts, args = getopt.getopt(sys.argv[1:], "l", ["list"]) except getopt.GetoptError: usage(e) if not args: usage() srcpath = args[0] if not isdir(srcpath): fatal("no such directory `%s'" % srcpath) for opt, val in opts: if opt == '-h': usage() if opt in ('-l', '--list'): return list(srcpath) try: ve...
def main(): try: opts, args = getopt.getopt(sys.argv[1:], "l", ["list"]) except getopt.GetoptError, e: usage(e) if not args: usage() srcpath = args[0] if not isdir(srcpath): fatal("no such directory `%s'" % srcpath) for opt, val in opts: if opt == '-h': usage() if opt in ('-l', '--list'): return list(srcpath) try:...
452,251
def _create_changelog(self, version): release = os.environ.get("RELEASE") or "UNRELEASED" dt = self._get_autoversion_datetime(version) fh = file(self.path_changelog, "w") print >> fh, "%s (%s) %s; urgency=low" % (self.control['Source'], version, release) print >> fh print >> fh, " * auto-generated changelog entry" pr...
def _create_changelog(self, version): release = os.environ.get("RELEASE") or "UNRELEASED" dt = self._get_autoversion_datetime(version) fh = file(self.path_changelog, "w") print >> fh, "%s (%s) %s; urgency=low" % (self.control['Source'], version, release) print >> fh print >> fh, " * auto-generated changelog entry" pr...
452,252
def list(self): commits = self._getoutput("git-rev-list", "--all").split("\n") return self._getoutput("autoversion", *commits).split("\n")
def list(self): branch = basename(self.verseek_head or self.head) commits = self._getoutput("git-rev-list", branch).split("\n") return self._getoutput("autoversion", *commits).split("\n")
452,253
def parse_control(path): lines = (line.strip() for line in file(path).readlines()) return dict([ re.split("\s*:\s*", line, 1) for line in lines if line and not line.startswith(" ") ])
def parse_control(path): lines = (line.rstrip() for line in file(path).readlines() if not line.startswith(" ")) return dict([ re.split("\s*:\s*", line, 1) for line in lines if line and not line.startswith(" ") ])
452,254
def parse_control(path): lines = (line.strip() for line in file(path).readlines()) return dict([ re.split("\s*:\s*", line, 1) for line in lines if line and not line.startswith(" ") ])
def parse_control(path): lines = (line.strip() for line in file(path).readlines()) return dict([ re.split("\s*:\s*", line, 1) for line in lines if line and not line.startswith(" ") ])
452,255
def run(self, name, args): command = self._pre_run(name, args) command.module.main()
def run(self, name, args): command = self._pre_run(name, args) command.module.main()
452,256
def profile(self, name, args): import profile import pstats import tempfile
def _profile(self, command): import profile import pstats import tempfile
452,257
def profile(self, name, args): import profile import pstats import tempfile
def profile(self, name, args): import profile import pstats import tempfile
452,258
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
452,259
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
452,260
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
452,261
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
def main(): if "--version" in sys.argv: print version.get_version() sys.exit(0) install_path = os.path.dirname(__file__) if PATH_LIBEXEC: os.environ['PATH'] = os.path.join(install_path, PATH_LIBEXEC) + ":" + \ os.environ['PATH'] pylib_path = os.path.join(install_path, PATH_LIB) sys.path.insert(0, pylib_path) command...
452,262
def seek(self, version=None): if version and deb_get_version(path) != version: raise Error("can't seek to nonexistent version `%s'" % version)
def seek(self, version=None): if version and deb_get_version(self.path) != version: raise Error("can't seek to nonexistent version `%s'" % version)
452,263
def before_update(self, mapper, connection, instance): self._is_changed = self.check_real_change(instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('before_update: %s' % instance) self.set_revision(instance) self._is_changed = self.check_real_change(instance, map...
def before_update(self, mapper, connection, instance): self._is_changed[instance] = self.check_real_change(instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed[instance]: logger.debug('before_update: %s' % instance) self.set_revision(instance) self._is_changed = self.check_real_...
452,264
def before_update(self, mapper, connection, instance): self._is_changed = self.check_real_change(instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('before_update: %s' % instance) self.set_revision(instance) self._is_changed = self.check_real_change(instance, map...
def before_update(self, mapper, connection, instance): self._is_changed[instance] = self.check_real_change( instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('before_update: %s' % instance) self.set_revision(instance) self._is_changed[instance] = self.check_real...
452,265
def before_insert(self, mapper, connection, instance): self._is_changed = self.check_real_change(instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('before_insert: %s' % instance) self.set_revision(instance) return EXT_CONTINUE
def before_insert(self, mapper, connection, instance): self._is_changed[instance] = self.check_real_change(instance, mapper, connection) if not self.revisioning_disabled(instance) and self._is_changed[instance]: logger.debug('before_insert: %s' % instance) self.set_revision(instance) return EXT_CONTINUE
452,266
def after_update(self, mapper, connection, instance): if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('after_update: %s' % instance) self.make_revision(instance, mapper, connection) return EXT_CONTINUE
def after_update(self, mapper, connection, instance): if not self.revisioning_disabled(instance) and self._is_changed[instance]: logger.debug('after_update: %s' % instance) self.make_revision(instance, mapper, connection) return EXT_CONTINUE
452,267
def after_insert(self, mapper, connection, instance): if not self.revisioning_disabled(instance) and self._is_changed: logger.debug('after_insert: %s' % instance) self.make_revision(instance, mapper, connection) return EXT_CONTINUE
def after_insert(self, mapper, connection, instance): if not self.revisioning_disabled(instance) and self._is_changed[instance]: logger.debug('after_insert: %s' % instance) self.make_revision(instance, mapper, connection) return EXT_CONTINUE
452,268
def get_string_from_editor(base_string, prefix='idli-'): tf = tempfile.NamedTemporaryFile('w+b',prefix=prefix) tf.write(base_string) tf.seek(0) print get_editor_name_as_list() exit_status = subprocess.call(get_editor_name_as_list() + [tf.name]) result = tf.read() return (result, exit_status)
def get_string_from_editor(base_string, prefix='idli-'): tf = tempfile.NamedTemporaryFile('w+b',prefix=prefix) tf.write(base_string) tf.seek(0) exit_status = subprocess.call(get_editor_name_as_list() + [tf.name]) result = tf.read() return (result, exit_status)
452,269
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
deflatexBody(self):returnr"""Thesearetheresultsofyourmodelrunof\textbf{ABM-B}fortheNaturalPhenomenonSimulationGroup(NPSG)attheUniversityofWaterloo.
452,270
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
452,271
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
452,272
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
452,273
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
452,274
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
def latexBody(self): return r""" These are the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at the University of Waterloo.
452,275
def executableParameters(self): return [ "-d", os.path.join(os.path.dirname(self.executable), "data"), "-n", str(self.nSamples.value), "-p", str(self.angleOfIncidence.value), "-s", str(5), #step "-w", str(self.wavelengths.value[0]), "-e", str(self.wavelengths.value[1]), "sample.json", "spectral_distribution.csv" ]
def executableParameters(self): return [ "-d", os.path.join(os.path.dirname(self.executable), "data"), "-n", str(self.nSamples.value), "-p", str(self.angleOfIncidence.value), "-s", str(5), #step "-w", str(self.wavelengths.value[0]), "-e", str(self.wavelengths.value[1]), "sample.json", "spectral_distribution.csv" ]
452,276
def prepareExecution(self): with open(os.path.join(self.workingDirectory, "sample.json"), 'w') as f: f.write(json.dumps({ "wholeLeafThickness": self.wholeLeafThickness.value, "cuticleUndulationsAspectRatio": self.cuticleUndulationsAspectRatio.value, "epidermisCellCapsAspectRatio": self.epidermisCellCapsAspectRatio.valu...
def prepareExecution(self): with open(os.path.join(self.workingDirectory, "sample.json"), 'w') as f: f.write(json.dumps({ "wholeLeafThickness": self.wholeLeafThickness.value, "cuticleUndulationsAspectRatio": self.cuticleUndulationsAspectRatio.value, "epidermisCellCapsAspectRatio": self.epidermisCellCapsAspectRatio.valu...
452,277
def prepareGraphs(self): wavelengths, reflectance, transmittance, absorptance = ([], [], [], [])
def prepareGraphs(self): wavelengths, reflectance, transmittance, absorptance = ([], [], [], [])
452,278
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-B} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,279
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,280
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,281
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,282
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,283
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,284
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,285
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,286
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,287
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,288
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,289
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,290
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,291
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
452,292
def write(self, file): """ Serialize into KML 2.0 format @param file: file object """ #root nodes doc = getDOMImplementation().createDocument(None, "kml", None) root = doc.documentElement root.setAttribute('xmlns', self.ns) #and placesmarks for place in self.places: placemark = doc.createElement('Placemark') root.ap...
def write(self, file): """ Serialize into KML 2.0 format @param file: file object """ #root nodes doc = getDOMImplementation().createDocument(None, "kml", None) root = doc.documentElement root.setAttribute('xmlns', self.ns) #and placesmarks for place in self.places: placemark = doc.createElement('Placemark') root.ap...
452,293
def write(self, file): """ Serialize into KML 2.0 format @param file: file object """ #root nodes doc = getDOMImplementation().createDocument(None, "kml", None) root = doc.documentElement root.setAttribute('xmlns', self.ns) #and placesmarks for place in self.places: placemark = doc.createElement('Placemark') root.ap...
defwrite(self,file):"""SerializeintoKML2.0format@paramfile:fileobject"""#rootnodesdoc=getDOMImplementation().createDocument(None,"kml",None)root=doc.documentElementroot.setAttribute('xmlns',self.ns)#andplacesmarksforplaceinself.places:placemark=doc.createElement('Placemark')root.appendChild(placemark)#informationnodesn...
452,294
def toXHTML(self): """ Print a message into XHTML+RDFa format """ #root nodes doc = getDOMImplementation().createDocument(None, 'html', None) doctype = DocumentType("html") doctype.publicId = "-//W3C//DTD XHTML+RDFa 1.0//EN" doctype.systemId = "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd" doc.doctype = doctype root ...
def toXHTML(self): """ Print a message into XHTML+RDFa format """ #root nodes doc = getDOMImplementation().createDocument(None, 'html', None) doctype = DocumentType("html") doctype.publicId = "-//W3C//DTD XHTML+RDFa 1.0//EN" doctype.systemId = "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd" doc.doctype = doctype root ...
452,295
def toXHTML(self): """ Print a message into XHTML+RDFa format """ #root nodes doc = getDOMImplementation().createDocument(None, 'html', None) doctype = DocumentType("html") doctype.publicId = "-//W3C//DTD XHTML+RDFa 1.0//EN" doctype.systemId = "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd" doc.doctype = doctype root ...
def toXHTML(self): """ Print a message into XHTML+RDFa format """ #root nodes doc = getDOMImplementation().createDocument(None, 'html', None) doctype = DocumentType("html") doctype.publicId = "-//W3C//DTD XHTML+RDFa 1.0//EN" doctype.systemId = "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd" doc.doctype = doctype root ...
452,296
def __toRDF(self): """ Dump mailing list into a RDF file """
def __toRDF(self): """ Dump mailing list into a RDF file """
452,297
def __toRDF(self): """ Dump mailing list into a RDF file """
def __toRDF(self): """ Dump mailing list into a RDF file """
452,298
def __toRDF(self): """ Dump mailing list into a RDF file """
def __toRDF(self): """ Dump mailing list into a RDF file """
452,299