bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None | def download_as_text(url): try: furl = urllib2.urlopen(url) s = furl.read() return s except: return None | 477,400 |
def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | 477,401 |
def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | defif tree: path_to_figures = os.path.join("vistrails_images", "%s_%s_%s_%s_%s" % (host, db_name, port, vt_id, out_type)) elif wgraph: path_to_figures = os.path.join("vistrails_images", "%s_%s_%s_%s_%s_%s_graph" % (host, db_name, port, vt_id, version, out_type)) check_url(url):if tree: path_to_figures = os.path.join(... | 477,402 |
def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | 477,403 |
def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | 477,404 |
def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | def check_url(url): try: p = urlparse(url) h = HTTP(p[1]) h.putrequest('HEAD', p[2]) h.endheaders() if h.getreply()[0] == 200: return True else: return False except: return False | 477,405 |
def set_values(self): from core.modules.module_registry import get_module_registry reg = get_module_registry() PersistentRef = \ reg.get_descriptor_by_name('edu.utah.sci.vistrails.persistence.exp', 'PersistentRef').module | def set_values(self): from core.modules.module_registry import get_module_registry reg = get_module_registry() PersistentRef = \ reg.get_descriptor_by_name('edu.utah.sci.vistrails.persistence', 'PersistentRef').module | 477,406 |
def get_values(self): from core.modules.module_registry import get_module_registry reg = get_module_registry() PersistentRef = \ reg.get_descriptor_by_name('edu.utah.sci.vistrails.persistence.exp', 'PersistentRef').module | def get_values(self): from core.modules.module_registry import get_module_registry reg = get_module_registry() PersistentRef = \ reg.get_descriptor_by_name('edu.utah.sci.vistrails.persistence', 'PersistentRef').module | 477,407 |
def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_1_3.log') self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configuration s = os.p... | def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_%s.log'%(get_version())) self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configu... | 477,408 |
def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_1_3.log') self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configuration s = os.p... | def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_%s.log'%(get_version())) self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configu... | 477,409 |
def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_1_3.log') self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configuration s = os.p... | def setupLogFile(self): if not self.temp_configuration.check('logFile'): s = os.path.join(self.temp_configuration.dotVistrails, 'vistrails_1_3.log') self.temp_configuration.logFile = s if not self.configuration.check('logFile'): # if this was not set before, it should point to the # value in temp_configuration s = os.p... | 477,410 |
def save_vistrail_bundle_to_zip_xml(save_bundle, filename, vt_save_dir=None, version=None): """save_vistrail_bundle_to_zip_xml(save_bundle: SaveBundle, filename: str, vt_save_dir: str, version: str) -> (save_bundle: SaveBundle, vt_save_dir: str) save_bundle: a SaveBundle object containing vistrail data to save filenam... | def save_vistrail_bundle_to_zip_xml(save_bundle, filename, vt_save_dir=None, version=None): """save_vistrail_bundle_to_zip_xml(save_bundle: SaveBundle, filename: str, vt_save_dir: str, version: str) -> (save_bundle: SaveBundle, vt_save_dir: str) save_bundle: a SaveBundle object containing vistrail data to save filenam... | 477,411 |
def merge_vt(self, host, port, db_name, user, new_vt_filepath, old_db_vt_id, is_local=True): """ Merge new_vt (new_vt_filepath) with current vt (old_db_vt_id) | def merge_vt(self, host, port, db_name, user, new_vt_filepath, old_db_vt_id, is_local=True): """ Merge new_vt (new_vt_filepath) with current vt (old_db_vt_id) | 477,412 |
def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | 477,413 |
def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | 477,414 |
def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def def get_vt_graph_pdf(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_pdf(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ self.server_logger.info("get_vt_graph_pdf(%s, %s, %s, %s)" % (host, port, db_name, vt_id)) try: vt_id = long(vt_id) sub... | 477,415 |
def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) all_ports = reg.all_source_ports(d) # print "pspec", pspec # First try to find a perfect match for (klass_name, ports) in all_ports: for candidate_port in ports: if (candi... | def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) all_ports = reg.all_source_ports(d) # print "pspec", pspec # First try to find a perfect match for (klass_name, ports) in all_ports: for candidate_port in ports: if (candi... | 477,416 |
def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) all_ports = reg.all_source_ports(d) # print "pspec", pspec # First try to find a perfect match for (klass_name, ports) in all_ports: for candidate_port in ports: if (candi... | def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) all_ports = reg.all_source_ports(d) # print "pspec", pspec # First try to find a perfect match for (klass_name, ports) in all_ports: for candidate_port in ports: if (candi... | 477,417 |
def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) | def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) | 477,418 |
def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) | def remap(): port_type = \ PortSpec.port_type_map.inverse[port.type] pspec = reg.get_port_spec(m.package, m.name, m.namespace, port.name, port_type) | 477,419 |
def __init__(self, msg, module=None, port_name=None, port_type=None): Exception.__init__(self, msg) self._msg = msg self._module = module self._port_name = port_name self._port_type = port_type.lower() | def __init__(self, msg, module=None, port_name=None, port_type=None): Exception.__init__(self, msg) self._msg = msg self._module = module self._port_name = port_name self._port_type = port_type.lower() if port_type else None | 477,420 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='', build_always=False, parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, par... | 477,421 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | 477,422 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | 477,423 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | 477,424 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters=''): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters=''): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters)) | 477,425 |
def get_wf_datasets(self, host, port, db_name, vt_id, version): self.server_logger.info("Request: get_wf_datasets(%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, version)) try: locator = DBLocator(host=host, port=int(port), database=db_name, user=db_read_user, passwd=db_read_pass, obj_id=int(vt_id), obj_type=None, co... | def get_wf_datasets(self, host, port, db_name, vt_id, version): self.server_logger.info("Request: get_wf_datasets(%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, version)) try: locator = DBLocator(host=host, port=int(port), database=db_name, user=db_read_user, passwd=db_read_pass, obj_id=int(vt_id), obj_type=None, co... | 477,426 |
def index_workflow(self, host, port, db_name, vt_id, wf_info): self.server_logger.info("Request: index_workflow(%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, wf_info)) try: locator = DBLocator(host=host, port=int(port), database=db_name, user=db_read_user, passwd=db_read_pass, obj_id=int(vt_id), obj_type=None, conn... | def index_workflow(self, host, port, db_name, vt_id, wf_info): self.server_logger.info("Request: index_workflow(%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, wf_info)) try: locator = DBLocator(host=host, port=int(port), database=db_name, user=db_read_user, passwd=db_read_pass, obj_id=int(vt_id), obj_type=None, conn... | 477,427 |
def __str__(self): return "Pipeline cannot be instantiated:\n " + \ '\n '.join(str(e) for e in self._exception_set) | def __str__(self): return "Pipeline cannot be instantiated:\n " + \ '\n '.join(str(e) for e in self._exception_set) | 477,428 |
def versions_increasing(v1, v2): v1_list = v1.split('.') v2_list = v2.split('.') try: while len(v1_list) > 0 and len(v2_list) > 0: v1_num = int(v1_list.pop()) v2_num = int(v2_list.pop()) if v1_num < v2_num: return True elif v1_num > v2_num: return False if len(v1_list) < len(v2_list): return True elif len(v1_list) > le... | def versions_increasing(v1, v2): v1_list = v1.split('.') v2_list = v2.split('.') try: while len(v1_list) > 0 and len(v2_list) > 0: v1_num = int(v1_list.pop()) v2_num = int(v2_list.pop()) if v1_num < v2_num: return False elif v1_num > v2_num: return False if len(v1_list) < len(v2_list): return False elif len(v1_list) > ... | 477,429 |
def current_ip(): """ current_ip() -> str Gets current IP address trying to avoid the IPv6 interface """ info = socket.getaddrinfo(socket.gethostname(), None) for i in info: if len(i[4][0]) <= 15: return i[4][0] else: return '0.0.0.0' | def current_ip(): """ current_ip() -> str Gets current IP address trying to avoid the IPv6 interface """ try: info = socket.getaddrinfo(socket.gethostname(), None) for i in info: if len(i[4][0]) <= 15: return i[4][0] else: return '0.0.0.0' except: return '0.0.0.0' | 477,430 |
def load(self, type, tmp_dir=None): self._hash = self.hash() if DBLocator.cache.has_key(self._hash): save_bundle = DBLocator.cache[self._hash] obj = save_bundle.get_primary_obj() ts = io.get_db_object_modification_time(self.get_connection(), obj.db_id, obj.vtType) ts = datetime(*strptime(str(ts).strip(), '%Y-%m-%d %H:... | def load(self, type, tmp_dir=None): self._hash = self.hash() if DBLocator.cache.has_key(self._hash): save_bundle = DBLocator.cache[self._hash] obj = save_bundle.get_primary_obj() ts = io.get_db_object_modification_time(self.get_connection(), obj.db_id, obj.vtType) ts = datetime(*strptime(str(ts).strip(), '%Y-%m-%d %H:... | 477,431 |
def save(self, save_bundle, do_copy=False, version=None): connection = self.get_connection() for obj in save_bundle.get_db_objs(): obj.db_name = self._name save_bundle = io.save_bundle_to_db(save_bundle, connection, do_copy, version) primary_obj = save_bundle.get_primary_obj() self._obj_id = primary_obj.db_id self._obj... | def save(self, save_bundle, do_copy=False, version=None): connection = self.get_connection() for obj in save_bundle.get_db_objs(): obj.db_name = self._name save_bundle = io.save_bundle_to_db(save_bundle, connection, do_copy, version) primary_obj = save_bundle.get_primary_obj() self._obj_id = primary_obj.db_id self._obj... | 477,432 |
def to_xml(self, node=None): """to_xml(node: ElementTree.Element) -> ElementTree.Element Convert this object to an XML representation. """ if node is None: node = ElementTree.Element('locator') | def to_xml(self, node=None): """to_xml(node: ElementTree.Element) -> ElementTree.Element Convert this object to an XML representation. """ if node is None: node = ElementTree.Element('locator') | 477,433 |
def bool_conv(x): s = str(x).upper() if s == 'TRUE': return True if s == 'FALSE': return False | def bool_conv(x): s = str(x).upper() if s == 'TRUE': return True if s == 'FALSE': return False | 477,434 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,435 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,436 |
def check_dependencies(self): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | def check_dependencies(self): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | 477,437 |
def check_dependencies(self): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | defcheck_dependencies(self):"""determinesifcurrentVisTrailwillbesupportedbytherepository'sVisTrailserver""" | 477,438 |
def check_dependencies(self): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | def check_dependencies(self): """ determines if current VisTrail will be supported by the repository's VisTrail server """ | 477,439 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,440 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,441 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,442 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,443 |
def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | def __init__(self, parent, status_bar, dialog): QtGui.QWidget.__init__(self, parent) self._status_bar = status_bar self.dialog = dialog | 477,444 |
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | 477,445 |
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | 477,446 |
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | 477,447 |
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication | 477,448 |
def clicked_on_logout(self): """ Reset cookie, text fields and gui buttons """ self.loginUser.setEnabled(True) self.loginPassword.setEnabled(True) self._logout_button.setEnabled(False) self._login_button.setEnabled(True) self.saveLogin.setEnabled(True) self.dialog.cookiejar = None | def clicked_on_logout(self): """ Reset cookie, text fields and gui buttons """ self.dialog.loginUser.setEnabled(True) self.loginPassword.setEnabled(True) self._logout_button.setEnabled(False) self._login_button.setEnabled(True) self.saveLogin.setEnabled(True) self.dialog.cookiejar = None | 477,449 |
def run_and_get_results(w_list, parameters='', workflow_info=None, update_vistrail=False, extra_info=None): """run_and_get_results(w_list: list of (locator, version), parameters: str, workflow_info:str, update_vistrail: boolean) Run all workflows in w_list, and returns an interpreter result object. version can be a tag... | def run_and_get_results(w_list, parameters='', workflow_info=None, update_vistrail=False, extra_info=None): """run_and_get_results(w_list: list of (locator, version), parameters: str, workflow_info:str, update_vistrail: boolean) Run all workflows in w_list, and returns an interpreter result object. version can be a tag... | 477,450 |
def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | 477,451 |
def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | 477,452 |
def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | def __init__(self, parent = None): QtGui.QDialog.__init__(self, parent) core.debug.DebugPrint.getInstance().set_stream(debugStream(self.write)) self.setWindowTitle('VisTrails Messages') layout = QtGui.QVBoxLayout() self.setLayout(layout) | 477,453 |
def toggleType(self, s, visible): if visible == QtCore.Qt.Unchecked: visible = False elif visible == QtCore.Qt.Checked: visible == True for item in [self.list.item(i) for i in xrange(self.list.count())]: if str(item.data(32).toString()).split('\n')[0] == s: self.list.setItemHidden(item, not visible) | def toggleType(self, s, visible): if visible == QtCore.Qt.Unchecked: visible = False elif visible == QtCore.Qt.Checked: visible = True for item in [self.list.item(i) for i in xrange(self.list.count())]: if str(item.data(32).toString()).split('\n')[0] == s: self.list.setItemHidden(item, not visible) | 477,454 |
pattern = re.compile(r"(^\s*?def vistrails_revision\(\):.*?release = ['\"])([0-9]+?)(['\"].*?return release)", re.DOTALL | re.MULTILINE) | pattern = re.compile(r"(^\s*?def vistrails_revision\(\):.*?release = ['\"])([0-9]+?)(['\"].*?return release)", re.DOTALL | re.MULTILINE) | 477,455 |
pattern = re.compile(r"(^\s*?def vistrails_revision\(\):.*?release = ['\"])([0-9]+?)(['\"].*?return release)", re.DOTALL | re.MULTILINE) | pattern = re.compile(r"(^\s*?def vistrails_revision\(\):.*?release = ['\"])([0-9]+?)(['\"].*?return release)", re.DOTALL | re.MULTILINE) | 477,456 |
def parse_db_type(self): if self.db_type and self.db_type.find(':') != -1: (self._identifier, name) = self.db_type.split(':', 1) if name.find('|') != -1: (self._namespace, self._type) = name.rsplit('|', 1) else: self._namespace = None self._type = name else: # FIXME don't hardcode this self._identifier = "edu.utah.sci.... | def parse_db_type(self): if self.db_type: k = self.db_type.split(':', 2) else: k = [] if len(k) < 2: # FIXME don't hardcode this self._identifier = "edu.utah.sci.vistrails.basic" self._namespace = None self._type = self.db_type | 477,457 |
def update_db_type(self): if not self._type: self.db_type = None else: if not self._identifier: # FIXME don't hardcode this self._identifier = "edu.utah.sci.vistrails.basic" if self._namespace: self.db_type = self._identifier + ':' + self._namespace + \ '|' + self._type else: self.db_type = self._identifier + ':' + sel... | def update_db_type(self): if not self._type: self.db_type = None else: if not self._identifier: # FIXME don't hardcode this self._identifier = "edu.utah.sci.vistrails.basic" if self._namespace: self.db_type = self._identifier + ':' + self._namespace + \ '|' + self._type else: self.db_type = self._identifier + ':' + sel... | 477,458 |
def _download_content(url, request, path_to_figures): """_download_images(url:string, request:string, path_to_figures:string) -> (Boolean, message) Downloads all images and pdf files listed in url and saves them to path_to_figures """ website = url url = request try: page = download_as_text(url) # we will look for ima... | def _download_content(url, request, path_to_figures): """_download_images(url:string, request:string, path_to_figures:string) -> (Boolean, message) Downloads all images and pdf files listed in url and saves them to path_to_figures """ website = url url = request try: page = download_as_text(url) # we will look for ima... | 477,459 |
def generate_latex_error(error_msg): """ generate_latex_error(error_msg: str) -> str this generates a piece of latex code with an error message. """ s = """\\PackageError{vistrails}{ An error occurred when executing vistrails. \\MessageBreak | def generate_latex_error(error_msg): """ generate_latex_error(error_msg: str) -> str this generates a piece of latex code with an error message. """ s = """\\PackageError{vistrails}{ An error occurred when executing vistrails. \\MessageBreak | 477,460 |
def _parse_vtinfo(self, info, use_filename=True): name = None version = None if use_filename and os.path.isfile(info): name = info else: data = info.split(":") if len(data) >= 2: if use_filename and os.path.isfile(str(data[0])): name = str(data[0]) elif not use_filename: name = str(data[0]) # will try to convert versio... | def _parse_vtinfo(self, info, use_filename=True): name = None version = None if use_filename and os.path.isfile(info): name = info else: data = info.split(":") if len(data) >= 2: if use_filename: if os.path.isfile(str(data[0])): name = str(data[0]) elif not use_filename: name = str(data[0]) # will try to convert versio... | 477,461 |
def http_error_default(self, url, fp, errcode, errmsg, headers): if errcode == 404: raise IOError, ('http error', errcode, errmsg, headers) # call parent method urllib.FancyURLopener().http_error_default(url, fp, errcode, errmsg, headers) | def http_error_default(self, url, fp, errcode, errmsg, headers): if errcode == 404: raise IOError, ('http error', errcode, errmsg, headers) # call parent method urllib.FancyURLopener().http_error_default(url, fp, errcode, errmsg, headers) | 477,462 |
def is_cacheable(self): self.checkInputPort('url') url = self.getInputFromPort('url') local_filename = self._local_filename(url) # If file is not in cache, then we must re-run if not self._file_is_in_local_cache(local_filename): return False conn = httplib.HTTPConnection(self.host) try: conn.request("GET", self.filenam... | def is_cacheable(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) local_filename = self._local_filename(url) # If file is not in cache, then we must re-run if not self._file_is_in_local_cache(local_filename): return False conn = httplib.HTTPConnection(self.host) try: conn.reques... | 477,463 |
def is_cacheable(self): self.checkInputPort('url') url = self.getInputFromPort('url') local_filename = self._local_filename(url) # If file is not in cache, then we must re-run if not self._file_is_in_local_cache(local_filename): return False conn = httplib.HTTPConnection(self.host) try: conn.request("GET", self.filenam... | def is_cacheable(self): self.checkInputPort('url') url = self.getInputFromPort('url') local_filename = self._local_filename(url) # If file is not in cache, then we must re-run if not self._file_is_in_local_cache(local_filename): return False conn = httplib.HTTPConnection(self.host) try: conn.request("GET", self.filenam... | 477,464 |
def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) opener = urllib2.build_opener() local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_in_local... | 477,465 |
def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: request = urllib2.Request(url) except (socket.gaierror, socket.error), e: if sel... | 477,466 |
def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | 477,467 |
def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | 477,468 |
def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | def compute(self): self.checkInputPort('url') url = self.getInputFromPort("url") self._parse_url(url) conn = httplib.HTTPConnection(self.host) local_filename = self._local_filename(url) self.setResult("local_filename", local_filename) try: conn.request("GET", self.filename) except socket.gaierror, e: if self._file_is_i... | 477,469 |
def _is_outdated(self, remoteHeader, localFile): """Checks whether local file is outdated.""" local_time = \ datetime.datetime.utcfromtimestamp(os.path.getmtime(localFile)) remote_time = datetime.datetime.strptime(remoteHeader, "%a, %d %b %Y %H:%M:%S %Z") return remote_time > local_time | def _is_outdated(self, remoteHeader, localFile): """Checks whether local file is outdated.""" local_time = \ datetime.datetime.utcfromtimestamp(os.path.getmtime(localFile)) try: remote_time = datetime.datetime.strptime(remoteHeader, "%a, %d %b %Y %H:%M:%S %Z") except: remote_time = datetime.datetime.strptime(remoteHead... | 477,470 |
def mouseReleaseEvent(self, e): """mousePressEvent(e) -> None Keep the cursor after the last prompt. """ if e.button() == QtCore.Qt.LeftButton: # copy selection to clipboard self.copy() cursor = self.textCursor() cursor.movePosition(QtGui.QTextCursor.End) self.setTextCursor(cursor) return | def mouseReleaseEvent(self, e): """mousePressEvent(e) -> None Keep the cursor after the last prompt. """ if e.button() == QtCore.Qt.LeftButton: # copy selection to clipboard self.copy() cursor = self.textCursor() cursor.movePosition(QtGui.QTextCursor.End) self.setTextCursor(cursor) return | 477,471 |
def enable_current_package(self): av = self._available_packages_list inst = self._enabled_packages_list item = av.currentItem() pos = av.indexFromItem(item).row() codepath = str(item.text()) pm = get_package_manager() | def enable_current_package(self): av = self._available_packages_list inst = self._enabled_packages_list item = av.currentItem() pos = av.indexFromItem(item).row() codepath = str(item.text()) pm = get_package_manager() | 477,472 |
def enable_current_package(self): av = self._available_packages_list inst = self._enabled_packages_list item = av.currentItem() pos = av.indexFromItem(item).row() codepath = str(item.text()) pm = get_package_manager() | def enable_current_package(self): av = self._available_packages_list inst = self._enabled_packages_list item = av.currentItem() pos = av.indexFromItem(item).row() codepath = str(item.text()) pm = get_package_manager() | 477,473 |
def dumpToFile(self, filename): """ dumpToFile() -> None Dumps itself as an image to a file, calling grabWindowPixmap """ pixmap = self.grabWindowPixmap() pixmap.save(filename,"PNG") | def dumpToFile(self, filename): """ dumpToFile(filename: str, dump_as_pdf: bool) -> None Dumps itself as an image to a file, calling grabWindowPixmap """ pixmap = self.grabWindowPixmap() pixmap.save(filename,"PNG") | 477,474 |
def dumpToFile(self, filename): """ dumpToFile() -> None Dumps itself as an image to a file, calling grabWindowPixmap """ pixmap = self.grabWindowPixmap() pixmap.save(filename,"PNG") | def dumpToFile(self, filename): """ dumpToFile() -> None Dumps itself as an image to a file, calling grabWindowPixmap """ if not dump_as_pdf: pixmap = self.grabWindowPixmap() pixmap.save(filename,"PNG") | 477,475 |
def saveToPDF(self, filename): printer = QtGui.QPrinter() printer.setOutputFormat(QtGui.QPrinter.PdfFormat) printer.setOutputFileName(filename) painter = QtGui.QPainter() painter.begin(printer) rect = painter.viewport() pixmap = self.grabWindowPixmap() size = pixmap.size() size.scale(rect.size(), QtCore.Qt.KeepAspectR... | def saveToPDF(self, filename): printer = QtGui.QPrinter() printer.setOutputFormat(QtGui.QPrinter.PdfFormat) printer.setOutputFileName(filename) painter = QtGui.QPainter() painter.begin(printer) rect = painter.viewport() pixmap = self.grabWindowPixmap() size = pixmap.size() size.scale(rect.size(), QtCore.Qt.KeepAspectR... | 477,476 |
def saveToPDF(self, filename): printer = QtGui.QPrinter() printer.setOutputFormat(QtGui.QPrinter.PdfFormat) printer.setOutputFileName(filename) painter = QtGui.QPainter() painter.begin(printer) rect = painter.viewport() pixmap = self.grabWindowPixmap() size = pixmap.size() size.scale(rect.size(), QtCore.Qt.KeepAspectR... | def saveToPDF(self, filename): printer = QtGui.QPrinter() printer.setOutputFormat(QtGui.QPrinter.PdfFormat) printer.setOutputFileName(filename) painter = QtGui.QPainter() painter.begin(printer) rect = painter.viewport() size.scale(rect.size(), QtCore.Qt.KeepAspectRatio) painter.setViewport(rect.x(), rect.y(), size.wid... | 477,477 |
def load_package(self, pkg_name): reg = core.modules.module_registry.get_module_registry() package = reg.get_package_by_name(pkg_name) | def def create_dict(modules, ns, m, mdesc): md = {} if len(ns) == 0: d = {'_module_desc': mdesc, '_package': pkg,} modules[m] = type('module', (vistrails_module,), d) else: if ns[0] in modules: md = create_dict(modules[ns[0]], ns[1:], m, mdesc) else: md = create_dict(md, ns[1:], m, mdesc) modules[ns[0]] = md return mod... | 477,478 |
def getter(self, attr_name): desc_tuple = (attr_name, '') if desc_tuple in package.descriptors: module_desc = package.descriptors[desc_tuple] d = {'_module_desc': module_desc, '_package': self,} return type('module', (vistrails_module,), d) else: raise AttributeError("type object '%s' has no attribute " "'%s'" % (self.... | def getter(self, attr_name): desc_tuple = (attr_name, '') if desc_tuple in package.descriptors: module_desc = package.descriptors[desc_tuple] d = {'_module_desc': module_desc, '_package': self,} return type('module', (vistrails_module,), d) else: raise AttributeError("type object '%s' has no attribute " "'%s'" % (self.... | 477,479 |
def switch_version(version, allow_fail=False): if self.current_version != -1 and not self.current_pipeline: debug.warning("current_version is not -1 and " "current_pipeline is None") if version != self.current_pipeline: # clear delayed actions # FIXME: invert the delayed actions and integrate them into # the general_ac... | def switch_version(version, allow_fail=False): if self.current_version != -1 and not self.current_pipeline: debug.warning("current_version is not -1 and " "current_pipeline is None") if version != self.current_pipeline: # clear delayed actions # FIXME: invert the delayed actions and integrate them into # the general_ac... | 477,480 |
def initialize(*args, **kwargs): import core.packagemanager manager = core.packagemanager.get_package_manager() reg = core.modules.module_registry.get_module_registry() | def initialize(*args, **kwargs): import core.packagemanager manager = core.packagemanager.get_package_manager() reg = core.modules.module_registry.get_module_registry() | 477,481 |
def getPortPosition(self, port, port_dict, optional_ports, next_pos, next_op, default_sig): """ getPortPosition(port: Port, port_dict: {PortSpec: QGraphicsPortItem}, optional_ports: [PortSpec], next_pos: [float, float], next_op: operator (operator.add, operator.sub), default_sig: str ) -> QPointF Return the scene posit... | def getPortPosition(self, port, port_dict, optional_ports, next_pos, next_op, default_sig): """ getPortPosition(port: Port, port_dict: {PortSpec: QGraphicsPortItem}, optional_ports: [PortSpec], next_pos: [float, float], next_op: operator (operator.add, operator.sub), default_sig: str ) -> QPointF Return the scene posit... | 477,482 |
def merge_vt(self, host, port, db_name, user, new_vt_filepath, old_db_vt_id, is_local=True): """ Merge new_vt (new_vt_filepath) with current vt (old_db_vt_id) | def merge_vt(self, host, port, db_name, user, new_vt_filepath, old_db_vt_id, is_local=True): """ Merge new_vt (new_vt_filepath) with current vt (old_db_vt_id) | 477,483 |
def executeMedley(self, xml_medley, extra_info=None): self.server_logger.info("executeMedley request received") try: self.server_logger.info(xml_medley) xml_string = xml_medley.replace('\\"','"') root = ElementTree.fromstring(xml_string) try: medley = MedleySimpleGUI.from_xml(root) except: #even if this error occurred ... | def executeMedley(self, xml_medley, extra_info=None): self.server_logger.info("executeMedley request received") try: self.server_logger.info(xml_medley) xml_string = xml_medley.replace('\\"','"') root = ElementTree.fromstring(xml_string) try: medley = MedleySimpleGUI.from_xml(root) except: #even if this error occurred ... | 477,484 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | 477,485 |
def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | def run_from_db(self, host, port, db_name, vt_id, path_to_figures, version=None, pdf=False, vt_tag='',parameters='', is_local=True): self.server_logger.info("Request: run_vistrail_from_db(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % \ (host, port, db_name, vt_id, path_to_figures, version, pdf, vt_tag, parameters, is_local)) | 477,486 |
def get_wf_graph_pdf(self, host, port, db_name, vt_id, version, is_local=True): """get_wf_graph_pdf(host:str, port:int, db_name:str, vt_id:int, version:int) -> str Returns the relative url to the generated PDF """ self.server_logger.info("get_wf_graph_pdf(%s,%s,%s,%s,%s) request received" % \ (host, port, db_name, vt_i... | def get_wf_graph_pdf(self, host, port, db_name, vt_id, version, is_local=True): """get_wf_graph_pdf(host:str, port:int, db_name:str, vt_id:int, version:int) -> str Returns the relative url to the generated PDF """ self.server_logger.info("get_wf_graph_pdf(%s,%s,%s,%s,%s) request received" % \ (host, port, db_name, vt_i... | 477,487 |
def get_wf_graph_png(self, host, port, db_name, vt_id, version, is_local=True): """get_wf_graph_png(host:str, port:int, db_name:str, vt_id:int, version:int) -> str Returns the relative url to the generated image """ self.server_logger.info("get_wf_graph_png(%s,%s,%s,%s,%s) request received" % \ (host, port, db_name, vt... | def get_wf_graph_png(self, host, port, db_name, vt_id, version, is_local=True): """get_wf_graph_png(host:str, port:int, db_name:str, vt_id:int, version:int) -> str Returns the relative url to the generated image """ self.server_logger.info("get_wf_graph_png(%s,%s,%s,%s,%s) request received" % \ (host, port, db_name, vt... | 477,488 |
def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | 477,489 |
def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def get_vt_graph_png(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_png(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | 477,490 |
def get_vt_graph_pdf(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_pdf(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | def get_vt_graph_pdf(self, host, port, db_name, vt_id, is_local=True): """get_vt_graph_pdf(host:str, port: str, db_name: str, vt_id:str) -> str Returns the relative url of the generated image """ | 477,491 |
def dict_compute(self): d = {} if self.hasInputFromPort('value'): Constant.compute(self) d.update(self.outputPorts['value']) if self.hasInputFromPort('addPair'): pairs_list = self.getInputListFromPort('addPair') d.update(pairs_list) if self.hasInputFromPort('addPairs'): d.update(self.getInputFromPort('addPairs')) self... | def dict_compute(self): d = {} if self.hasInputFromPort('value'): Constant.compute(self) d.update(self.outputPorts['value']) if self.hasInputFromPort('addPair'): pairs_list = self.getInputListFromPort('addPair') d.update(pairs_list) if self.hasInputFromPort('addPairs'): d.update(self.getInputFromPort('addPairs')) self... | 477,492 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,493 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,494 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,495 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,496 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,497 |
def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | def setupModule(self, module): """ setupModule(module: Module) -> None Set up the item to reflect the info in 'module' """ # Update module info and visual self.id = module.id self.setZValue(float(self.id)) self.module = module self.center = copy.copy(module.center) if '__desc__' in module.db_annotations_key_index: sel... | 477,498 |
def setupScene(self, pipeline): """ setupScene(pipeline: Pipeline) -> None Construct the scene to view a pipeline """ old_pipeline = self.pipeline self.pipeline = pipeline | def setupScene(self, pipeline): """ setupScene(pipeline: Pipeline) -> None Construct the scene to view a pipeline """ old_pipeline = self.pipeline self.pipeline = pipeline | 477,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.