bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def _compliance_date_selected(self, widget): """ Callback for the date selector to execute when the date has been chosen. """ log.debug("Compliance date selected.") self.noncompliant_date_radiobutton.set_active(True) self._reload_screen()
def _compliance_date_selected(self, widget): """ Callback for the date selector to execute when the date has been chosen. """ log.debug("Compliance date selected.") self.noncompliant_date_radiobutton.set_active(True) self._reload_screen()
449,400
def _on_uncompliant_active_toggled(self, cell, path): treeiter = self.uncompliant_store.get_iter_from_string(path) item = self.uncompliant_store.get_value(treeiter, self.uncompliant_store['active']) self.uncompliant_store.set_value(treeiter, self.uncompliant_store['active'], not item)
def _on_uncompliant_active_toggled(self, cell, path): treeiter = self.uncompliant_store.get_iter_from_string(path) item = self.uncompliant_store.get_value(treeiter, self.uncompliant_store['active']) self.uncompliant_store.set_value(treeiter, self.uncompliant_store['active'], not item)
449,401
def _contract_selection_cancelled(self): self.contract_selection.destroy() self.contract_selection = None
def _contract_selection_cancelled(self): if self.contract_selection: self.contract_selection.destroy() self.contract_selection = None
449,402
def subscribe_button_clicked(self, button): model, tree_iter = self.subs_treeview.get_selection().get_selected() pools = model.get_value(tree_iter, self.subs_store['merged_pools']) # Decide if we need to show the contract selection dialog or not. # if there's just one pool, shortcut right to the callback that the # di...
def subscribe_button_clicked(self, button): model, tree_iter = self.subs_treeview.get_selection().get_selected() pools = model.get_value(tree_iter, self.subs_store['merged_pools']) # Decide if we need to show the contract selection dialog or not. # if there's just one pool, shortcut right to the callback that the # di...
449,403
def __init__(self, username=None, password=None, cert_file=None, key_file=None): pass
def __init__(self, username=None, password=None, proxy_hostname=None, proxy_port=None, cert_file=None, key_file=None): pass
449,404
def _display_uncompliant(self): sorter = CertSorter(self.product_dir, self.entitlement_dir, on_date=self._get_noncompliant_date())
def _display_uncompliant(self): sorter = CertSorter(self.product_dir, self.entitlement_dir, on_date=self._get_noncompliant_date())
449,405
def _display_uncompliant(self): sorter = CertSorter(self.product_dir, self.entitlement_dir, on_date=self._get_noncompliant_date())
def _display_uncompliant(self): sorter = CertSorter(self.product_dir, self.entitlement_dir, on_date=self._get_noncompliant_date())
449,406
def getInstalledProductStatus(): """ Returns the Installed products and their subscription states """ products = ProductDirectory().list() entcerts = EntitlementDirectory().list() entdict = {} for cert in entcerts: ents = cert.getEntitlements() eproducts = cert.getProducts() for product in eproducts: entdict[product.ge...
def getInstalledProductStatus(): """ Returns the Installed products and their subscription states """ products = ProductDirectory().list() entcerts = EntitlementDirectory().list() entdict = {} for cert in entcerts: ents = cert.getEntitlements() eproducts = cert.getProducts() for product in eproducts: entdict[product.ge...
449,407
def getConsumedProductEntitlements(): """ Gets the list of available products with entitlements based on its subscription cert """ entdir = EntitlementDirectory() consumed_products = [] for cert in entdir.listValid(): eproducts = cert.getProducts() for product in eproducts: data = (product.getName(), cert.valid(), cert...
def getConsumedProductEntitlements(): """ Gets the list of available products with entitlements based on its subscription cert """ entdir = EntitlementDirectory() consumed_products = [] for cert in entdir.listValid(): eproducts = cert.getProducts() for product in eproducts: data = (product.getName(), cert.valid(), form...
449,408
def __init__(self): usage = "usage: %prog register [OPTIONS]" shortdesc = _("register the client to a Unified Entitlement Platform.") desc = "register"
def __init__(self): usage = "usage: %prog register [OPTIONS]" shortdesc = _("register the client to a Unified Entitlement Platform.") desc = "register"
449,409
def _do_command(self): """ Executes the command. """ self._validate_options()
def _do_command(self): """ Executes the command. """ self._validate_options()
449,410
def getAvailableEntitlementsCLI(cpserver, consumer): columns = ['id', 'quantity', 'unlimited', 'consumed', 'endDate', 'productName', 'productId'] # update facts if we need it print consumer, cpserver facts = getFacts()
def getAvailableEntitlementsCLI(cpserver, consumer): columns = ['id', 'quantity', 'unlimited', 'consumed', 'endDate', 'productName', 'productId'] # update facts if we need it print consumer facts = getFacts()
449,411
def _do_command(self):
def _do_command(self):
449,412
def _do_command(self): self.add_user_identity() if not ConsumerIdentity.exists(): print(_("This system is currently not registered.")) sys.exit(1)
def _do_command(self): self.add_user_identity() if not ConsumerIdentity.exists(): print(_("This system is currently not registered.")) sys.exit(1)
449,413
def _do_command(self): """ Executes the command. """ self._validate_options() consumer = check_registration()['uuid'] try: # update facts first, if we need to facts = getFacts()
def _do_command(self): """ Executes the command. """ self._validate_options() consumer = check_registration()['uuid'] try: # update facts first, if we need to facts = getFacts()
449,414
def _do_command(self): """ Executes the command. """ self.add_user_identity() consumer = check_registration()['uuid'] try: if self.options.serial: self.cp.unBindBySerialNumber(consumer, self.options.serial) log.info("This machine has been Unsubscribed from subcription with Serial number %s" % (self.options.serial)) els...
def _do_command(self): """ Executes the command. """ self.add_user_identity() consumer = check_registration()['uuid'] try: if self.options.serial: self.cp.unBindBySerialNumber(consumer, self.options.serial) log.info("This machine has been Unsubscribed from subcription with Serial number %s" % (self.options.serial)) els...
449,415
def set_text(text): pdetails = rhsm_xml.get_widget("textview_details") pdetails.get_buffer().set_text(text) pdetails.set_cursor_visible(False) pdetails.show()
def set_text(text): pdetails = rhsm_xml.get_widget("textview_details") pdetails.get_buffer().set_text(text) pdetails.set_cursor_visible(False) pdetails.show()
449,416
def setRegistrationStatus(self): """ Updates portions of the main window to reflect current registration status. """ exists = ConsumerIdentity.existsAndValid() log.debug("updating registration status.. consumer exists?: %s", exists)
def setRegistrationStatus(self): """ Updates portions of the main window to reflect current registration status. """ exists = ConsumerIdentity.existsAndValid() log.debug("updating registration status.. consumer exists?: %s", exists)
449,417
def setRegistrationStatus(self): """ Updates portions of the main window to reflect current registration status. """ exists = ConsumerIdentity.existsAndValid() log.debug("updating registration status.. consumer exists?: %s", exists)
def setRegistrationStatus(self): """ Updates portions of the main window to reflect current registration status. """ exists = ConsumerIdentity.existsAndValid() log.debug("updating registration status.. consumer exists?: %s", exists)
449,418
def __init__(self, backend, consumer, facts): self.backend = backend self.consumer = consumer self.facts = facts
def __init__(self, backend, consumer, facts): self.backend = backend self.consumer = consumer self.facts = facts
449,419
def subscribe_button_clicked(self, button): model, tree_iter = self.subs_treeview.get_selection().get_selected() pools = model.get_value(tree_iter, MERGED_POOLS_INDEX) # Decide if we need to show the contract selection dialog or not. # if there's just one pool, shortcut right to the callback that the # dialog would ha...
def subscribe_button_clicked(self, button): model, tree_iter = self.subs_treeview.get_selection().get_selected() pools = model.get_value(tree_iter, self.subs_store['merged_pools']) # Decide if we need to show the contract selection dialog or not. # if there's just one pool, shortcut right to the callback that the # di...
449,420
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candlepi...
def __init__(self, host='localhost', ssl_port=8443, handler=config['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candl...
449,421
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candlepi...
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candlepi...
449,422
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candlepi...
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file self.candlepin_ca_file = config['ca...
449,423
def onUnsubscribeAction(self, button): global UEP if not self.psubs_selected: return log.info("Product %s selected for unsubscribe" % self.pname_selected) dlg = messageWindow.YesNoDialog(constants.CONFIRM_UNSUBSCRIBE % xml.sax.saxutils.escape(self.pname_selected), self.mainWin) if not dlg.getrc(): return
def onUnsubscribeAction(self, button): global UEP if not self.psubs_selected: return log.info("Product %s selected for unsubscribe" % self.pname_selected) dlg = messageWindow.YesNoDialog(constants.CONFIRM_UNSUBSCRIBE % xml.sax.saxutils.escape(self.pname_selected), self.mainWin) if not dlg.getrc(): return
449,424
def onUnsubscribeAction(self, button): global UEP if not self.psubs_selected: return log.info("Product %s selected for unsubscribe" % self.pname_selected) dlg = messageWindow.YesNoDialog(constants.CONFIRM_UNSUBSCRIBE % xml.sax.saxutils.escape(self.pname_selected), self.mainWin) if not dlg.getrc(): return
def onUnsubscribeAction(self, button): global UEP if not self.psubs_selected: return log.info("Product %s selected for unsubscribe" % self.pname_selected) dlg = messageWindow.YesNoDialog(constants.CONFIRM_UNSUBSCRIBE % xml.sax.saxutils.escape(self.pname_selected), self.mainWin) if not dlg.getrc(): return
449,425
def showUnregisterDialog(self, button): global UEP, consumer log.info("Unregister called in gui. Asking for confirmation") prompt = messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER) if not prompt.getrc(): log.info("unregistrater not confirmed. cancelling") return log.info("Proceeding with un-registration: %s", co...
defshowUnregisterDialog(self,button):globalUEP,consumerlog.info("Unregistercalledingui.Askingforconfirmation")prompt=messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER)ifnotprompt.getrc():log.info("unregistraternotconfirmed.cancelling")returnlog.info("Proceedingwithun-registration:%s",consumer['uuid'])
449,426
def showUnregisterDialog(self, button): global UEP, consumer log.info("Unregister called in gui. Asking for confirmation") prompt = messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER) if not prompt.getrc(): log.info("unregistrater not confirmed. cancelling") return log.info("Proceeding with un-registration: %s", co...
def showUnregisterDialog(self, button): global UEP, consumer log.info("Unregister called in gui. Asking for confirmation") prompt = messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER) if not prompt.getrc(): log.info("unregistrater not confirmed. cancelling") return log.info("Proceeding with un-registration: %s", co...
449,427
def showUnregisterDialog(self, button): global UEP, consumer log.info("Unregister called in gui. Asking for confirmation") prompt = messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER) if not prompt.getrc(): log.info("unregistrater not confirmed. cancelling") return log.info("Proceeding with un-registration: %s", co...
def showUnregisterDialog(self, button): global UEP, consumer log.info("Unregister called in gui. Asking for confirmation") prompt = messageWindow.YesNoDialog(constants.CONFIRM_UNREGISTER) if not prompt.getrc(): log.info("unregistrater not confirmed. cancelling") return log.info("Proceeding with un-registration: %s", co...
449,428
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
449,429
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
449,430
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
def register(self, testing=None): self.uname = registration_xml.get_widget("account_login") self.passwd = registration_xml.get_widget("account_password") self.consumer_name = registration_xml.get_widget("consumer_name")
449,431
def factsUpdateAction(self, button): facts = getFacts() try: UEP.updateConsumerFacts(consumer['uuid'], facts.get_facts()) except connection.RestlibException, e: log.error("Could not update system facts: error %s" % (e)) errorWindow(linkify(e.msg)) except Exception, e: log.error("Could not update system facts \nError: ...
def factsUpdateAction(self, button): facts = getFacts() try: UEP.updateConsumerFacts(consumer['uuid'], facts.get_facts()) except Exception, e: log.error("Could not update system facts \nError: %s" % (e)) errorWindow(linkify(e.msg))
449,432
def factsUpdateAction(self, button): facts = getFacts() try: UEP.updateConsumerFacts(consumer['uuid'], facts.get_facts()) except connection.RestlibException, e: log.error("Could not update system facts: error %s" % (e)) errorWindow(linkify(e.msg)) except Exception, e: log.error("Could not update system facts \nError: ...
def factsUpdateAction(self, button): facts = getFacts() try: UEP.updateConsumerFacts(consumer['uuid'], facts.get_facts()) except connection.RestlibException, e: log.error("Could not update system facts: error %s" % (e)) errorWindow(linkify(e.msg)) except Exception, e: log.error("Could not update system facts \nError: ...
449,433
def submitToken(self, button): rlabel = regtoken_xml.get_widget("regtoken_entry") reg_token = rlabel.get_text() elabel = regtoken_xml.get_widget("email_entry") email = elabel.get_text() if email == "": email = None try: UEP.bindByRegNumber(consumer['uuid'], reg_token, email) infoWindow(constants.SUBSCRIBE_REGTOKEN_SUCC...
def submitToken(self, button): rlabel = regtoken_xml.get_widget("regtoken_entry") reg_token = rlabel.get_text() elabel = regtoken_xml.get_widget("email_entry") email = elabel.get_text() if email == "": email = None try: UEP.bindByRegNumber(consumer['uuid'], reg_token, email) infoWindow(constants.SUBSCRIBE_REGTOKEN_SUCC...
449,434
def submitToken(self, button): rlabel = regtoken_xml.get_widget("regtoken_entry") reg_token = rlabel.get_text() elabel = regtoken_xml.get_widget("email_entry") email = elabel.get_text() if email == "": email = None try: UEP.bindByRegNumber(consumer['uuid'], reg_token, email) infoWindow(constants.SUBSCRIBE_REGTOKEN_SUCC...
def submitToken(self, button): rlabel = regtoken_xml.get_widget("regtoken_entry") reg_token = rlabel.get_text() elabel = regtoken_xml.get_widget("email_entry") email = elabel.get_text() if email == "": email = None try: UEP.bindByRegNumber(consumer['uuid'], reg_token, email) infoWindow(constants.SUBSCRIBE_REGTOKEN_SUCC...
449,435
def onSubscribeAction(self, button): subscribed_count = 0 my_model = self.tv_products.get_model() for pool, state in self.selected.items(): # state = (bool, iter) if state[0]: try: ent_ret = UEP.bindByEntitlementPool(consumer['uuid'], pool) entitled_data = ent_ret[0]['pool'] updated_count = str(int(entitled_data['quant...
def onSubscribeAction(self, button): subscribed_count = 0 my_model = self.tv_products.get_model() for pool, state in self.selected.items(): # state = (bool, iter) if state[0]: try: ent_ret = UEP.bindByEntitlementPool(consumer['uuid'], pool) entitled_data = ent_ret[0]['pool'] updated_count = str(int(entitled_data['quant...
449,436
def importCertificate(self, button): fileChooser = rhsm_xml.get_widget("certificate_chooser_button") src_cert_file = fileChooser.get_filename() if src_cert_file is None: errorWindow(_("You must select a certificate.")) return False
def importCertificate(self, button): fileChooser = rhsm_xml.get_widget("certificate_chooser_button") src_cert_file = fileChooser.get_filename() if src_cert_file is None: errorWindow(_("You must select a certificate.")) return False
449,437
def handle_gui_exception(e, callback, logMsg = None, showMsg = True): if logMsg: log.error(logMsg) log.exception(e) if showMsg: if isinstance(e, socket_error): errorWindow(_('network error, unable to connect to server')) elif isinstance(e, SSL.SSLError): errorWindow(_('Unable to verify server\'s identity: %s' % str(e)...
def handle_gui_exception(e, callback, logMsg = None, showMsg = True): if logMsg: log.error(logMsg) log.exception(e) if showMsg: if isinstance(e, socket_error): errorWindow(_('network error, unable to connect to server')) elif isinstance(e, SSL.SSLError): errorWindow(_('Unable to verify server\'s identity: %s' % str(e)...
449,438
def handle_gui_exception(e, callback, logMsg = None, showMsg = True): if logMsg: log.error(logMsg) log.exception(e) if showMsg: if isinstance(e, socket_error): errorWindow(_('network error, unable to connect to server')) elif isinstance(e, SSL.SSLError): errorWindow(_('Unable to verify server\'s identity: %s' % str(e)...
def handle_gui_exception(e, callback, logMsg = None, showMsg = True): if logMsg: log.error(logMsg) log.exception(e) if showMsg: if isinstance(e, socket_error): errorWindow(_('network error, unable to connect to server')) elif isinstance(e, SSL.SSLError): errorWindow(_('Unable to verify server\'s identity: %s' % str(e)...
449,439
def handle_exception(msg, ex): log.error(msg) log.exception(ex) if isinstance(ex, socket_error): print 'network error, unable to connect to server' sys.exit(-1) else: systemExit(-1, e)
def handle_exception(msg, ex): log.error(msg) log.exception(ex) if isinstance(ex, socket_error): print 'network error, unable to connect to server' sys.exit(-1) else: systemExit(-1, ex)
449,440
def runtests(pacfile, testdata, tests_dir): try: pacparser_module_path = glob.glob(os.path.join(tests_dir, '..', 'pymod', 'build', 'lib*'))[0] except: print 'Tests failed. Could not determine pacparser path.\n%s' % str(e) return 1 sys.path.insert(0, pacparser_module_path) try: import pacparser except ImportError, e: ...
def runtests(pacfile, testdata, tests_dir): try: pacparser_module_path = glob.glob(os.path.join( tests_dir, '..', 'pymod', 'build', 'lib*%s' % py_ver))[0] except Exception: print 'Tests failed. Could not determine pacparser path.' return 1 sys.path.insert(0, pacparser_module_path) try: import pacparser except ImportE...
449,441
def runtests(pacfile, testdata, tests_dir): try: pacparser_module_path = glob.glob(os.path.join(tests_dir, '..', 'pymod', 'build', 'lib*'))[0] except: print 'Tests failed. Could not determine pacparser path.\n%s' % str(e) return 1 sys.path.insert(0, pacparser_module_path) try: import pacparser except ImportError, e: ...
def runtests(pacfile, testdata, tests_dir): try: pacparser_module_path = glob.glob(os.path.join(tests_dir, '..', 'pymod', 'build', 'lib*'))[0] except: print 'Tests failed. Could not determine pacparser path.\n%s' % str(e) return 1 sys.path.insert(0, pacparser_module_path) try: import pacparser except ImportError: pri...
449,442
def main(): # Use Makefile for windows. distutils doesn't work well with windows. if sys.platform == 'win32': pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll)) return pacpa...
def main(): # Use Makefile for windows. distutils doesn't work well with windows. if sys.platform == 'win32': pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll)) return pacpa...
449,443
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if len(sys.argv) > 1 and sys.argv[1] == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) els...
449,444
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil if os.path.isdir('dist'): install_path = '%s\pacparser' % sysconfig.get_python_lib() if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('dist', install_path) els...
449,445
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = ('C:\windows\sys...
449,446
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
449,447
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
def main(): if sys.platform == 'win32': #install target is used to just install compiled files. if target == 'install': import shutil install_path = '%s\Lib\site-packages\pacparser' % sys.prefix if os.path.isdir(install_path): shutil.rmtree(install_path) shutil.copytree('.', install_path) else: pydll = 'C:\windows\syst...
449,448
def scale_parameters(self, optimiser_parameters): l = [] for pspec, v in zip(self.parameter_specs, optimiser_parameters): try: l.append(pspec.scale_fn(v)) except Exception: raise CmpetitionError( "error from scale_fn for %s\n%s" % (pspec.code, compact_tracebacks.format_traceback(skip=1))) return tuple(l)
def scale_parameters(self, optimiser_parameters): l = [] for pspec, v in zip(self.parameter_specs, optimiser_parameters): try: l.append(pspec.scale_fn(v)) except Exception: raise CompetitionError( "error from scale_fn for %s\n%s" % (pspec.code, compact_tracebacks.format_traceback(skip=1))) return tuple(l)
449,449
def is_pass(self): return (self.coords is None)
def is_pass(self): return (self.coords is None)
449,450
def test_get_job(tc): vals = { 'cmdline1' : "", 'cmdline2' : "sing song", } fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals)) fx.ringmaster.set_clean_status() fx.ringmaster._open_files() fx.ringmaster._initialise_presenter() fx.ringmaster._initialise_terminal_reader() job = fx.ringmaster.get_job() tc.assertEqual...
def test_get_job(tc): vals = { 'cmdline1' : "", 'cmdline2' : "sing song", } fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals)) job = fx.get_job() tc.assertEqual(job.game_id, "0_000") tc.assertEqual(job.game_data, ("0", 0)) tc.assertEqual(job.board_size, 9) tc.assertEqual(job.komi, 7.5) tc.assertEqual(job.move_lim...
449,451
def test_settings(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "handicap = 9", "handicap_style = 'free'", "record_games = True", "scorer = 'players'" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) fx.ringmaster.enable_gtp_logging() fx.ringmaster.set_clean_status() fx.ringma...
def test_settings(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "handicap = 9", "handicap_style = 'free'", "record_games = True", "scorer = 'players'" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) fx.ringmaster.enable_gtp_logging() job = fx.get_job() tc.assertEqual(job.game...
449,452
def test_stderr_settings(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "players['p1'] = Player('test')\n" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) fx.ringmaster.set_clean_status() fx.ringmaster._open_files() fx.ringmaster._initialise_presenter() fx.ringmaster._initiali...
def test_stderr_settings(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "players['p1'] = Player('test')\n" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) job = fx.get_job() tc.assertEqual(job.player_b.stderr_pathname, "/nonexistent/ctl/test.log") tc.assertEqual(job.player_w.s...
449,453
def test_stderr_settings_nolog(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "players['p1'] = Player('test')\n" "stderr_to_log = False\n" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) fx.ringmaster.set_clean_status() fx.ringmaster._open_files() fx.ringmaster._initialise_pre...
def test_stderr_settings_nolog(tc): vals = { 'cmdline1' : "", 'cmdline2' : "", } extra = "\n".join([ "players['p1'] = Player('test')\n" "stderr_to_log = False\n" ]) fx = Ringmaster_fixture(tc, simple_ctl.substitute(vals) + extra) job = fx.get_job() tc.assertIsNone(job.player_b.stderr_pathname, None) tc.assertEqual(job....
449,454
def __init__(self): self.gtp_translations = {}
def __init__(self): self.gtp_translations = {}
449,455
def process_response(self, response): """Job response function for the job manager.""" self.log("response from game %s" % response.game_id) self.competition.process_game_result(response) del self.games_in_progress[response.game_id] if not self.stopping_quietly: self.write_status() self.update_display() if self.chatty: ...
def process_response(self, response): """Job response function for the job manager.""" self.log("response from game %s" % response.game_id) self.competition.process_game_result(response) del self.games_in_progress[response.game_id] if not self.stopping_quietly: self.update_display() if self.chatty: print print "game %s...
449,456
def run(self): game = gtp_games.Game( {'b' : self.player_b.code, 'w' : self.player_w.code}, {'b' : self.player_b.cmd_args, 'w' : self.player_w.cmd_args}, self.board_size, self.komi, self.move_limit) if self.use_internal_scorer: game.use_internal_scorer() else: if self.player_b.is_reliable_scorer: game.allow_scorer('b')...
def run(self): game = gtp_games.Game( {'b' : self.player_b.code, 'w' : self.player_w.code}, {'b' : self.player_b.cmd_args, 'w' : self.player_w.cmd_args}, self.board_size, self.komi, self.move_limit) if self.use_internal_scorer: game.use_internal_scorer() else: if self.player_b.is_reliable_scorer: game.allow_scorer('b')...
449,457
def run(self): game = gtp_games.Game( {'b' : self.player_b.code, 'w' : self.player_w.code}, {'b' : self.player_b.cmd_args, 'w' : self.player_w.cmd_args}, self.board_size, self.komi, self.move_limit) if self.use_internal_scorer: game.use_internal_scorer() else: if self.player_b.is_reliable_scorer: game.allow_scorer('b')...
def run(self): game = gtp_games.Game( {'b' : self.player_b.code, 'w' : self.player_w.code}, {'b' : self.player_b.cmd_args, 'w' : self.player_w.cmd_args}, self.board_size, self.komi, self.move_limit) if self.use_internal_scorer: game.use_internal_scorer() else: if self.player_b.is_reliable_scorer: game.allow_scorer('b')...
449,458
def interpret_python(source, provided_globals): """Interpret Python code from a string. source -- string provided_globals -- dict The string is executed with a copy of provided_globals as the global and local namespace. Returns that namespace. """ result = provided_globals.copy() exec source in result retu...
def interpret_python(source, provided_globals): """Interpret Python code from a unicode string. source -- unicode object provided_globals -- dict The string is executed with a copy of provided_globals as the global and local namespace. Returns that namespace. """ result = provided_globals.copy() exec sourc...
449,459
def interpret_python(source, provided_globals): """Interpret Python code from a string. source -- string provided_globals -- dict The string is executed with a copy of provided_globals as the global and local namespace. Returns that namespace. """ result = provided_globals.copy() exec source in result retu...
def interpret_python(source, provided_globals): """Interpret Python code from a string. source -- string provided_globals -- dict The string is executed with a copy of provided_globals as the global and local namespace. Returns that namespace. """ result = provided_globals.copy() code = compile(source, "<c...
449,460
def _load_control_file(self): """Main implementation for __init__."""
def _load_control_file(self): """Main implementation for __init__."""
449,461
def opponent_of(colour): """Return the opponent colour. colour -- 'b' or 'w' Returns 'b' or 'w'. """ try: return _opponents[colour] except KeyError: return ValueError
def opponent_of(colour): """Return the opponent colour. colour -- 'b' or 'w' Returns 'b' or 'w'. """ try: return _opponents[colour] except KeyError: raise ValueError
449,462
def __repr__(self): return "<Game_result: %s>" % self.describe()
def __repr__(self): return "<Game_result: %s>" % self.describe()
449,463
def __repr__(self): return "<Node:%.2f{%s}>" % (self.value, repr(self.children))
def __repr__(self): return "<Node:%.2f{%s}>" % (self.value, repr(self.children))
449,464
def is_well_formed_gtp_word(s): """Check whether 's' is well-formed as a single GTP word. In particular, this rejects unicode objects and strings contaning spaces. """ if not isinstance(s, str): return False if not _gtp_word_characters_re.search(s): return False return True
def is_well_formed_gtp_word(s): """Check whether 's' is well-formed as a single GTP word. In particular, this rejects unicode objects and strings containing spaces. """ if not isinstance(s, str): return False if not _gtp_word_characters_re.search(s): return False return True
449,465
def test_check_player(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) player = game_jobs.Player() player.code = 'test' player.cmd_args = ['test'] check = game_jobs.Player_check() check.player = player check.board_size = 9 check.komi = 7.0 game_jobs.check_player(check)
def test_check_player(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) ck = Player_check_fixture(tc) game_jobs.check_player(ck.check)
449,466
def test_check_player_boardsize_fails(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) engine = gtp_engine_fixtures.get_test_engine() fx.register_engine('no_boardsize', engine) player = game_jobs.Player() player.code = 'test' player.cmd_args = ['no_boardsize'] check = game_jobs.Player_check() check.player = ...
def test_check_player_boardsize_fails(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) engine = gtp_engine_fixtures.get_test_engine() fx.register_engine('no_boardsize', engine) ck = Player_check_fixture(tc) ck.player.cmd_args = ['no_boardsize'] with tc.assertRaises(game_jobs.CheckFailed) as ar: game_jobs.chec...
449,467
def test_check_player_boardsize_fails(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) engine = gtp_engine_fixtures.get_test_engine() fx.register_engine('no_boardsize', engine) player = game_jobs.Player() player.code = 'test' player.cmd_args = ['no_boardsize'] check = game_jobs.Player_check() check.player = ...
def test_check_player_boardsize_fails(tc): fx = gtp_engine_fixtures.Mock_subprocess_fixture(tc) engine = gtp_engine_fixtures.get_test_engine() fx.register_engine('no_boardsize', engine) player = game_jobs.Player() player.code = 'test' player.cmd_args = ['no_boardsize'] check = game_jobs.Player_check() check.player = ...
449,468
def do_run(ringmaster, worker_count=None, max_games=None): if ringmaster.status_file_exists(): ringmaster.load_status() else: ringmaster.set_clean_status() if worker_count is not None: ringmaster.set_parallel_worker_count(worker_count) ringmaster.run(max_games) ringmaster.report()
def do_run(ringmaster, options): if options.log_gtp: ringmaster.enable_gtp_logging() if options.quiet: ringmaster.set_quiet_mode() if ringmaster.status_file_exists(): ringmaster.load_status() else: ringmaster.set_clean_status() if worker_count is not None: ringmaster.set_parallel_worker_count(worker_count) ringmaster.r...
449,469
def do_run(ringmaster, worker_count=None, max_games=None): if ringmaster.status_file_exists(): ringmaster.load_status() else: ringmaster.set_clean_status() if worker_count is not None: ringmaster.set_parallel_worker_count(worker_count) ringmaster.run(max_games) ringmaster.report()
def do_run(ringmaster, worker_count=None, max_games=None): if ringmaster.status_file_exists(): ringmaster.load_status() else: ringmaster.set_clean_status() if options.parallel is not None: ringmaster.set_parallel_worker_count(options.parallel) ringmaster.run(options.max_games) ringmaster.report()
449,470
def do_show(ringmaster): if not ringmaster.status_file_exists(): raise RingmasterError("no status file") ringmaster.load_status() ringmaster.print_status_report()
def do_show(ringmaster): if not ringmaster.status_file_exists(): raise RingmasterError("no status file") ringmaster.load_status() ringmaster.print_status_report()
449,471
def do_reset(ringmaster): ringmaster.delete_state_and_output()
def do_show(ringmaster, options): if not ringmaster.status_file_exists(): raise RingmasterError("no status file") ringmaster.load_status() ringmaster.print_status_report() def do_report(ringmaster, options): if not ringmaster.status_file_exists(): raise RingmasterError("no status file") ringmaster.load_status() ringma...
449,472
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
449,473
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
449,474
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
def run(argv, ringmaster_class): usage = ("%prog [options] <control file> [command]\n\n" "commands: run (default), stop, show, report, reset, check") parser = OptionParser(usage=usage, prog="ringmaster") parser.add_option("--max-games", "-g", type="int", help="maximum number of games to play in this run") parser.add_op...
449,475
def __init__(self): self.gtp_translations = {}
def __init__(self): self.gtp_translations = {}
449,476
def rollback(self): """Make issued-but-not-fixed tokens available again.""" self.to_reissue.update(self.outstanding) self.outstanding = set() self.issued -= len(self.to_reissue)
def rollback(self): """Make issued-but-not-fixed tokens available again.""" self.to_reissue.update(self.outstanding) self.outstanding = set() self.issued -= len(self.to_reissue)
449,477
def read_tourn_file(pathname): """Read the specified file as a .tourn file. A copy of tournament_globals is used as the global namespace. Returns this namespace as a dict. """ result = control_file_globals.copy() f = open(pathname) exec f in result f.close() return result
def read_tourn_file(pathname): """Read the specified file as a .tourn file. A copy of control_file_globals is used as the global namespace. Returns this namespace as a dict. """ result = control_file_globals.copy() f = open(pathname) exec f in result f.close() return result
449,478
def run(self): files_to_remove = [] dirs_to_remove = []
def run(self): files_to_remove = [] dirs_to_remove = []
449,479
def _make_engine(self): self.engine = gtp_engine.Gtp_engine_protocol() self.engine.add_commands(self._make_back_end_handlers()) # FIXME: This overrides proxying for the protocol commands, but better # not to make proxy handlers in the first place. self.engine.add_protocol_commands() self.engine.add_commands({ 'quit' ...
def _make_engine(self): self.engine = gtp_engine.Gtp_engine_protocol() self.engine.add_commands(self._make_back_end_handlers()) # FIXME: This overrides proxying for the protocol commands, but better # not to make proxy handlers in the first place. self.engine.add_protocol_commands() self.engine.add_commands({ 'quit' : ...
449,480
def do_command(self, channel_id, command, *arguments): """Send a command over a channel and return the response.
def do_command(self, channel_id, command, *arguments): """Send a command over a channel and return the response.
449,481
def test_basic_config(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 13, 'komi' : 7.5, 'matchups' : [ Matchup_config( 't1', 't2', board_size=9, komi=0.5, alternating=True, handicap=6, handicap_style='free', move_limit=50, scor...
def check_screen_report(tc, comp, expected): """Check that a competition's screen report is as expected.""" out = StringIO() comp.write_screen_report(out) tc.assertMultiLineEqual(out.getvalue(), expected) class Playoff_fixture(test_framework.Fixture): """Fixture setting up a Playoff. attributes: comp -- Playof...
449,482
def test_basic_config(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 13, 'komi' : 7.5, 'matchups' : [ Matchup_config( 't1', 't2', board_size=9, komi=0.5, alternating=True, handicap=6, handicap_style='free', move_limit=50, scor...
def test_basic_config(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 13, 'komi' : 7.5, 'matchups' : [ Matchup_config( 't1', 't2', board_size=9, komi=0.5, alternating=True, handicap=6, handicap_style='free', move_limit=50, sc...
449,483
def test_basic_config(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 13, 'komi' : 7.5, 'matchups' : [ Matchup_config( 't1', 't2', board_size=9, komi=0.5, alternating=True, handicap=6, handicap_style='free', move_limit=50, scor...
def test_basic_config(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 13, 'komi' : 7.5, 'matchups' : [ Matchup_config( 't1', 't2', board_size=9, komi=0.5, alternating=True, handicap=6, handicap_style='free', move_limit=50, scor...
449,484
def test_global_handicap_validation(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 12, 'handicap' : 6, 'komi' : 7.5, 'matchups' : [ Matchup_config('t1', 't2'), ], } with tc.assertRaises(ControlFileError) as ar: comp.initialise...
def test_global_handicap_validation(tc): comp = playoffs.Playoff('testcomp') config = default_config() config['board_size'] = 12 config['handicap'] = 6 with tc.assertRaises(ControlFileError) as ar: comp.initialise_from_control_file(config) tc.assertEqual(str(ar.exception), "default fixed handicap out of range for board...
449,485
def test_game_id_format(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't1', number_of_games=1000), ], } comp.initialise_from_control_file(config) comp.set_clean_status() tc.assertEqual(comp.get_gam...
def test_game_id_format(tc): config = default_config() config['matchups'][0] = Matchup_config('t1', 't2', number_of_games=1000) fx = Playoff_fixture(tc, config) tc.assertEqual(fx.comp.get_game().game_id, '0_000')
449,486
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): fx = Playoff_fixture(tc) job1 = fx.comp.get_game() tc.assertIsInstance(job1, Game_job) tc.assertEqual(job1.game_id, '0_0') tc.assertEqual(job1.player_b.code, 't1') tc.assertEqual(job1.player_w.code, 't2') tc.assertEqual(job1.board_size, 12) tc.assertEqual(job1.komi, 3.5) tc.assertEqual(job1.move_lim...
449,487
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
449,488
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
449,489
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
449,490
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
449,491
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
def test_play(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() job1 = co...
449,492
def test_play_many(tc): comp = playoffs.Playoff('testcomp') config = { 'players' : { 't1' : Player_config("test1"), 't2' : Player_config("test2"), }, 'board_size' : 12, 'komi' : 3.5, 'matchups' : [ Matchup_config('t1', 't2', alternating=True), ], } comp.initialise_from_control_file(config) comp.set_clean_status() jobs...
def test_play_many(tc): fx = Playoff_fixture(tc) jobs = [fx.comp.get_game() for _ in range(8)] def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_desc...
449,493
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,494
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,495
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,496
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,497
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,498
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response
449,499