bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = {"ALL": "ALL"} branch = t.get_branch() re_author = re.compile("^(.*) <(.*)>$") for entry in branch.log(limit=HISTORY_HORIZON): m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL"... | 444,700 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,701 |
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) | 444,702 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,703 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,704 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,705 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,706 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,707 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,708 |
def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | def view_build(myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail""" # ensure the params are valid before using them assert host in hosts, "unknown host %s" % host assert compiler in compilers, "unknown compiler %s" % compiler assert tree in trees, "not a build tree %s" % tree uname = ""... | 444,709 |
def pretty_print(m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = print_log_cc_checker(output) | def pretty_print(m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = print_log_cc_checker(output) | 444,710 |
def format_testsuite(m): id += 1 return make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), id, subunit_to_buildfarm_result(m.group(3))) | def format_testsuite(m): id += 1 return make_collapsible_html('test', m.group(1), m.group(2)+format_subunit_reason(m.group(4)), id, subunit_to_buildfarm_result(m.group(3))) | 444,711 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" == status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.pn... | 444,712 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | 444,713 |
def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | def make_collapsible_html(type, title, output, id, status=""): """generate html for a collapsible section :param type: the logical type of it. e.g. "test" or "action" :param title: the title to be displayed """ if ((status == "" or "failed" in status.lower())): icon = 'icon_hide_16.png' else: icon = 'icon_unhide_16.p... | 444,714 |
def buildApp(environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) if standalone and environ['PATH_INFO']: dir = os.path.join(os.path.dirname(__file__)) static_file = "%s/%s" % (dir, enviro... | def buildApp(environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ) if standalone and environ['PATH_INFO']: dir = os.path.join(os.path.dirname(__file__)) static_file = "%s/%s" % (dir, enviro... | 444,715 |
def get_last_builds(self, tree): extra_expr = [StormBuild.tree == tree] return self._get_store().find(StormBuild, *extra_expr) | def get_last_builds(self, tree=None): extra_expr = [] if tree is not None: extra_expr.append(StormBuild.tree == tree) return self._get_store().find(StormBuild, *extra_expr) | 444,716 |
def build_status_vals(status): """translate a status into a set of int representing status""" status = util.strip_html(status) status = status.replace("ok", "0") status = status.replace("?", "0") status = status.replace("PANIC", "1") return status.split("/") | def build_status_vals(status): """translate a status into a set of int representing status""" status = util.strip_html(status) status = status.replace("ok", "0") status = status.replace("-", "0") status = status.replace("?", "0.1") status = status.replace("PANIC", "1") return status.split("/") | 444,717 |
def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | 444,718 |
def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | 444,719 |
def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | def status_cmp(a, b): bstat = build_status_vals(b) astat = build_status_vals(a) | 444,720 |
def JudgeExemplary(self, context): | def JudgeExemplary(self, context): | 444,721 |
def CompareRenderedImages(self, context): self.__compareRendersResults = True msg = "PASSED: Output images match input images." # Retrieve the image files for this test case. imageFilenames = context.GetStepImageFilenames() if (len(imageFilenames) == 0): self.__compareRendersResults = False msg = "FAILED: Unable to re... | def CompareRenderedImages(self, context): self.__compareRendersResults = True msg = "PASSED: Output images match input images." # Retrieve the image files for this test case. imageFilenames = context.GetStepImageFilenames() if (len(imageFilenames) == 0): self.__compareRendersResults = False msg = "FAILED: Unable to re... | 444,722 |
def ElementDataPreservedIn(self, context, tagListArray, dataType="float"): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMParserIO( self... | def ElementDataPreservedIn(self, context, tagListArray, dataType="float", defaultLogText = True): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults tes... | 444,723 |
def ElementDataPreservedIn(self, context, tagListArray, dataType="float"): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMParserIO( self... | def ElementDataPreservedIn(self, context, tagListArray, dataType="float"): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMParserIO( self... | 444,724 |
def ElementDataPreservedIn(self, context, tagListArray, dataType="float"): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMParserIO( self... | def ElementDataPreservedIn(self, context, tagListArray, dataType="float"): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMParserIO( self... | 444,725 |
def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations, defaultLogText = True): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationR... | 444,726 |
def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | 444,727 |
def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | 444,728 |
def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | def NewparamCheck(self, context, originalLocation, bakedLocation, newparamLocations): if ( len(self.__inputFileName) == 0 or len(self.__outputFileNameList) == 0 ): if (self.SetInputOutputFiles(context) == False): self.__preservationResults = False self.__result = False return self.__preservationResults testIO = DOMPar... | 444,729 |
def JudgeBaseline(self, context): # No step should not crash self.__assistant.CheckCrashes(context) # Import/export/validate must exist and pass, while Render must only exist. self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"]) if (self.__assistant.GetResults() == False): self.status_ba... | def JudgeBaseline(self, context): # No step should not crash self.__assistant.CheckCrashes(context) # Import/export/validate must exist and pass, while Render must only exist. self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"]) if (self.__assistant.GetResults() == False): self.status_ba... | 444,730 |
def JudgeBaseline(self, context): # No step should not crash self.__assistant.CheckCrashes(context) # Import/export/validate must exist and pass, while Render must only exist. self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"]) | def JudgeBaseline(self, context): # No step should not crash self.__assistant.CheckCrashes(context) # Import/export/validate must exist and pass, while Render must only exist. self.__assistant.CheckSteps(context, ["Import", "Export", "Validate"], ["Render"]) | 444,731 |
def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', opencog_conf], stdout=sys.stdout) #'../../../lib/opencog.conf'], stdout=sys.stdout) | def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', opencog_conf], stdout=sys.stdout) #'../../../lib/opencog.conf'], stdout=sys.stdout) | 444,732 |
def link(s1,s2): return '(SimilarityLink (stv 1.0 0.999) '+str(s1)+' '+str(s2)+')' | def link(s1,s2): return '(SimilarityLink (stv 1.0 0.999) '+str(s1)+' '+str(s2)+')' | 444,733 |
def testPostTVRobustness(self): """ Test that bad json TV syntax fails gracefully, i.e. doesn't kill the server! """ data = """{ "type":"ConceptNode", "name":"SimpleTVMutations", "truthvalue": {"simple": {"str":0.5, "count":10}} }""" import random r = random.Random() for i in range(0,40): data_copy = list(data) data_co... | def testPostTVRobustness(self): """ Test that bad json TV syntax fails gracefully, i.e. doesn't kill the server! """ data = """{ "type":"ConceptNode", "name":"SimpleTVMutations", "truthvalue": {"simple": {"str":0.5, "count":10}} }""" import random r = random.Random() for i in range(0,40): data_copy = list(data) data_co... | 444,734 |
def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', '../../../lib/opencog.conf'], stdout=sys.stdout) | def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', '../../../lib/opencog.conf'], stdout=sys.stdout) | 444,735 |
def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', opencog_conf], stdout=sys.stdout) time.sleep(1) # Allow modules time to load print "Server spawned with pid %d" % (server_process.pid,) | def spawn_server(): global server_process print "Spawning server" server_process = subprocess.Popen([server_exe, '-c', opencog_conf], stdout=sys.stdout) time.sleep(10) # Allow modules time to load print "Server spawned with pid %d" % (server_process.pid,) | 444,736 |
def link(s1,s2): return '(SimilarityLink (stv 1.0 0.999) '+str(s1)+' '+str(s2)+')' | def link(s1,s2): return '(SimilarityLink (stv 1.0 0.999) '+str(s1)+' '+str(s2)+')' | 444,737 |
def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | 444,738 |
def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param... | def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None, no_auth_cache='false'): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path insid... | 444,739 |
def export(ctxt, url, path=None, revision=None, dir_='.', username=None, password=None): """Perform an export from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param revision: the revision to check out :... | def export(ctxt, url, path=None, revision=None, dir_='.', username=None, password=None, no_auth_cache='false'): """Perform an export from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param revision: the ... | 444,740 |
def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose=False, shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param r... | def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param... | 444,741 |
def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose=False, shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param r... | def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose=False, shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param r... | 444,742 |
def render_summary(self, req, config, build, step, category): assert category == 'lint' | def render_summary(self, req, config, build, step, category): assert category == 'lint' | 444,743 |
def encode_multipart_formdata(fields): """ Given a dictionary field parameters, returns the HTTP request body and the content_type (which includes the boundary string), to be used with an httplib-like call. Normal key/value items are treated as regular parameters, but key/tuple items are treated as files, where a valu... | def encode_multipart_formdata(fields): """ Given a dictionary field parameters, returns the HTTP request body and the content_type (which includes the boundary string), to be used with an httplib-like call. Normal key/value items are treated as regular parameters, but key/tuple items are treated as files, where a valu... | 444,744 |
def __init__(self, urls, name=None, config=None, dry_run=False, work_dir=None, build_dir="build_${build}", keep_files=False, single_build=False, poll_interval=300, keepalive_interval = 60, username=None, password=None, dump_reports=False, no_loop=False, form_auth=False): """Create the build slave instance. :param urls... | def __init__(self, urls, name=None, config=None, dry_run=False, work_dir=None, build_dir="build_${build}", keep_files=False, single_build=False, poll_interval=300, keepalive_interval = 60, username=None, password=None, dump_reports=False, no_loop=False, form_auth=False): """Create the build slave instance. :param urls... | 444,745 |
def test_fix_log_levels_misnaming(self): | deftest_fix_log_levels_misnaming(self): | 444,746 |
def test_fix_log_levels_misnaming(self): | def test_fix_log_levels_misnaming(self): | 444,747 |
def test_fix_log_levels_misnaming(self): | def test_fix_log_levels_misnaming(self): | 444,748 |
def test_fix_log_levels_misnaming(self): | def test_fix_log_levels_misnaming(self): | 444,749 |
def test_view_config(self): config = BuildConfig(self.env, name='test', path='trunk') config.insert() platform = TargetPlatform(self.env, config='test', name='any') platform.insert() | def test_view_config(self): config = BuildConfig(self.env, name='test', path='trunk') config.insert() platform = TargetPlatform(self.env, config='test', name='any') platform.insert() | 444,750 |
def test_bitten_keeps_order_of_revisions_from_versioncontrol(self): # Trac's API specifies that they are sorted chronological (backwards) # We must not assume that these revision numbers can be sorted later on, # for example the mercurial plugin will return the revisions as strings # (e.g. '880:4c19fa95fb9e') config = ... | def test_bitten_keeps_order_of_revisions_from_versioncontrol(self): # Trac's API specifies that they are sorted chronological (backwards) # We must not assume that these revision numbers can be sorted later on, # for example the mercurial plugin will return the revisions as strings # (e.g. '880:4c19fa95fb9e') config = ... | 444,751 |
def test_view_config_paging(self): config = BuildConfig(self.env, name='test', path='trunk') config.insert() platform = TargetPlatform(self.env, config='test', name='any') platform.insert() | def test_view_config_paging(self): config = BuildConfig(self.env, name='test', path='trunk') config.insert() platform = TargetPlatform(self.env, config='test', name='any') platform.insert() | 444,752 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,753 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,754 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,755 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,756 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,757 |
def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | def discover(self, build): """Print a summary of what is linked to the build.""" print "Items to delete for build %r" % (build,) | 444,758 |
def render_summary(self, req, config, build, step, category): assert category == 'coverage' | def render_summary(self, req, config, build, step, category): assert category == 'coverage' | 444,759 |
def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | 444,760 |
def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | def post_process_request(self, req, template, data, content_type): """ Adds a 'Coverage' context navigation menu item. """ resource = data and data.get('context') \ and data.get('context').resource or None if resource and isinstance(resource, Resource) \ and resource.realm=='source' and data.get('file') \ and not req.a... | 444,761 |
def get_annotation_data(self, context): add_stylesheet(context.req, 'bitten/bitten_coverage.css') | def get_annotation_data(self, context): add_stylesheet(context.req, 'bitten/bitten_coverage.css') | 444,762 |
def fix_log_levels_misnaming(env, db): """Renames or removes *.log.level files created by older versions of migrate_logs_to_files.""" logs_dir = env.config.get("bitten", "logs_dir", "log/bitten") if not os.path.isabs(logs_dir): logs_dir = os.path.join(env.path, logs_dir) if not os.path.isdir(logs_dir): return rename_c... | def fix_log_levels_misnaming(env, db): """Renames or removes \*.log.level files created by older versions of migrate_logs_to_files.""" logs_dir = env.config.get("bitten", "logs_dir", "log/bitten") if not os.path.isabs(logs_dir): logs_dir = os.path.join(env.path, logs_dir) if not os.path.isdir(logs_dir): return rename_... | 444,763 |
def remove_stray_log_levels_files(env, db): """Remove *.log.levels files without a matching *.log file (old Bitten versions did not delete .log.levels files when builds were deleted)""" logs_dir = env.config.get("bitten", "logs_dir", "log/bitten") if not os.path.isabs(logs_dir): logs_dir = os.path.join(env.path, logs_d... | def remove_stray_log_levels_files(env, db): """Remove \*.log.levels files without a matching \*.log file (old Bitten versions did not delete .log.levels files when builds were deleted)""" logs_dir = env.config.get("bitten", "logs_dir", "log/bitten") if not os.path.isabs(logs_dir): logs_dir = os.path.join(env.path, logs... | 444,764 |
def _render_inprogress(self, req): data = {'title': 'In Progress Builds', 'page_mode': 'view-inprogress'} | def _render_inprogress(self, req): data = {'title': 'In Progress Builds', 'page_mode': 'view-inprogress'} | 444,765 |
def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | 444,766 |
def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | 444,767 |
def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | 444,768 |
def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | 444,769 |
def __init__(self, download_state, storage): self.storage = storage self.download_state = download_state self.t4t_policy = None self.g2g_policy = None self.t4t_stop = False self.g2g_stop = False | def __init__(self, download_state, storage): self.storage = storage self.download_state = download_state self.t4t_policy = None self.g2g_policy = None self.t4t_stop = False self.g2g_stop = False | 444,770 |
def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | 444,771 |
def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() return self.g2g_eligible else: t4t_r ... | 444,772 |
def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | 444,773 |
def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | def is_conn_eligible(self, conn): if conn.use_g2g: g2g_r = self.g2g_policy.apply(conn, self.download_state, self.storage) self.g2g_stop = g2g_r # If seeding stop both to g2g and t4t # then stop seeding if self.t4t_stop and self.g2g_stop: self.download_state.get_download().stop() if DEBUG: print >>sys.stderr,"Stop see... | 444,774 |
def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('t4t_hours', "int"))*3600 + long(self.Read('t4t_mins', "int"))*60 if DEBUG: print >>sys.stderr, "TitForTatTimeBasedSeeding: apply:", current, "/", limit | defapply(self,_,__,storage):current=storage["time_seeding"]+time.time()-self.beginlimit=long(self.Read('t4t_hours',"int"))*3600+long(self.Read('t4t_mins',"int"))*60ifDEBUG:print>>sys.stderr,"TitForTatTimeBasedSeeding:apply:",current,"/",limit | 444,775 |
def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('t4t_hours', "int"))*3600 + long(self.Read('t4t_mins', "int"))*60 if DEBUG: print >>sys.stderr, "TitForTatTimeBasedSeeding: apply:", current, "/", limit | def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('t4t_hours', "int"))*3600 + long(self.Read('t4t_mins', "int"))*60 if DEBUG: print >>sys.stderr, "TitForTatTimeBasedSeeding: apply:", current, "/", limit | 444,776 |
def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('g2g_hours', "int"))*3600 + long(self.Read('g2g_mins', "int"))*60 | defapply(self,_,__,storage):current=storage["time_seeding"]+time.time()-self.beginlimit=long(self.Read('g2g_hours',"int"))*3600+long(self.Read('g2g_mins',"int"))*60 | 444,777 |
def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('g2g_hours', "int"))*3600 + long(self.Read('g2g_mins', "int"))*60 | def apply(self, _, __, storage): current = storage["time_seeding"] + time.time() - self.begin limit = long(self.Read('g2g_hours', "int"))*3600 + long(self.Read('g2g_mins', "int"))*60 | 444,778 |
def apply(self, _, download_state, storage): # No Bittorrent leeching (minimal ratio of 1.0) ul = storage["total_up"] + download_state.get_total_transferred(UPLOAD) dl = storage["total_down"] + download_state.get_total_transferred(DOWNLOAD) | def apply(self, _, download_state, storage): # No Bittorrent leeching (minimal ratio of 1.0) ul = storage["total_up"] + download_state.get_total_transferred(UPLOAD) dl = storage["total_down"] + download_state.get_total_transferred(DOWNLOAD) | 444,779 |
def apply(self, _, download_state, storage): # No Bittorrent leeching (minimal ratio of 1.0) ul = storage["total_up"] + download_state.get_total_transferred(UPLOAD) dl = storage["total_down"] + download_state.get_total_transferred(DOWNLOAD) | def apply(self, _, download_state, storage): # No Bittorrent leeching (minimal ratio of 1.0) ul = storage["total_up"] + download_state.get_total_transferred(UPLOAD) dl = storage["total_down"] + download_state.get_total_transferred(DOWNLOAD) | 444,780 |
def apply(self, conn, _, __): # Seeding to peers with large sharing ratio dl = conn.download.measure.get_total() ul = conn.upload.measure.get_total() | def apply(self, conn, _, __): # Seeding to peers with large sharing ratio dl = conn.download.measure.get_total() ul = conn.upload.measure.get_total() | 444,781 |
def _readSubContent(self,path): try: # fileName = os.path.normpath(os.path.join(self.subs_dir, path)) relativeName = os.path.relpath(path, self.subs_dir) fileName = os.path.join(self.subs_dir, relativeName) | def _readSubContent(self,path): try: # fileName = os.path.normpath(os.path.join(self.subs_dir, path)) relativeName = os.path.relpath(path, self.subs_dir) fileName = os.path.join(self.subs_dir, relativeName) | 444,782 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,783 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,784 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,785 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,786 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,787 |
def updateDB(self, fromver, tover): | def updateDB(self, fromver, tover): | 444,788 |
def DisplayTerms(self, rows): self.Freeze() self.vSizer.ShowItems(False) self.vSizer.Clear() if rows is None or rows == []: self.vSizer.Add(wx.StaticText(self, -1, '...collecting buzz information...')) else: for i in range(len(rows)): row = rows[i] hSizer = wx.BoxSizer(wx.HORIZONTAL) hSizer.AddStretchSpacer(2) for t... | def DisplayTerms(self, rows): self.Freeze() self.vSizer.ShowItems(False) self.vSizer.Clear() if rows is None or rows == []: self.vSizer.Add(wx.StaticText(self, -1, '...collecting buzz information...'), 0, wx.ALIGN_CENTER) else: for i in range(len(rows)): row = rows[i] hSizer = wx.BoxSizer(wx.HORIZONTAL) hSizer.AddStr... | 444,789 |
def DisplayTerms(self, rows): self.Freeze() self.vSizer.ShowItems(False) self.vSizer.Clear() if rows is None or rows == []: self.vSizer.Add(wx.StaticText(self, -1, '...collecting buzz information...')) else: for i in range(len(rows)): row = rows[i] hSizer = wx.BoxSizer(wx.HORIZONTAL) hSizer.AddStretchSpacer(2) for t... | def DisplayTerms(self, rows): self.Freeze() self.vSizer.ShowItems(False) self.vSizer.Clear() if rows is None or rows == []: self.vSizer.Add(wx.StaticText(self, -1, '...collecting buzz information...')) else: for i in range(len(rows)): row = rows[i] hSizer = wx.BoxSizer(wx.HORIZONTAL) hSizer.AddStretchSpacer(2) for t... | 444,790 |
def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | def apply_seeding_policy(self, dslist): # Remove stoped seeds for infohash, seeding_manager in self.seeding_managers.items(): if not seeding_manager.download_state.get_status() == DLSTATUS_SEEDING: self.write_storage(infohash, seeding_manager.get_updated_storage()) del self.seeding_managers[infohash] | 444,791 |
def P2PSim_Single(db_row, nmyprefs): sim = 0 if db_row: peer_id, nr_items, overlap = db_row # Arno, 2010-01-14: Safety catch for weird by reported by Johan if (nr_items is None) or (nmyprefs is None): return sim if (nr_items is 0) or (nmyprefs is 0): return sim #Cosine Similarity With Emphasis on users with profilele... | def P2PSim_Single(db_row, nmyprefs): sim = 0 if db_row: peer_id, nr_items, overlap = db_row # Arno, 2010-01-14: Safety catch for weird by reported by Johan if (nr_items is None) or (nmyprefs is None): return sim if (nr_items == 0) or (nmyprefs == 0): return sim #Cosine Similarity With Emphasis on users with profilele... | 444,792 |
def prepare_storage(self): if not os.path.exists(self.storage_dir): if DEBUG: print >>sys.stderr, "SeedingManager: created storage_dir", storage_dir os.mkdir(self.storage_dir) | def prepare_storage(self): if not os.path.exists(self.storage_dir): if DEBUG: print >>sys.stderr, "SeedingManager: created storage_dir", self.storage_dir os.mkdir(self.storage_dir) | 444,793 |
def manage_other_downloads(self,othertorrentspolicy, targetd = None): self.resume_by_system = 1 if DEBUG: print >> sys.stderr, "VideoPlayer: manage_other_downloads" | def manage_other_downloads(self,othertorrentspolicy, targetd = None): self.resume_by_system = 1 if DEBUG: print >> sys.stderr, "VideoPlayer: manage_other_downloads" | 444,794 |
def download_torrent(self,permid,infohash,usercallback, prio = 1): """ The user has selected a torrent referred to by a peer in a query reply. Try to obtain the actual .torrent file from the peer and then start the actual download. """ assert isinstance(infohash, str), "INFOHASH has invalid type: %s" % type(infohash) a... | def download_torrent(self,permid,infohash,usercallback, prio = 1): """ The user has selected a torrent referred to by a peer in a query reply. Try to obtain the actual .torrent file from the peer and then start the actual download. """ assert isinstance(infohash, str), "INFOHASH has invalid type: %s" % type(infohash) a... | 444,795 |
def __init__(self, metadatahandler, overlay_bridge, session, prio): self.metadatahandler = metadatahandler self.overlay_bridge = overlay_bridge self.session = session self.prio = prio self.queue = Queue.Queue() self.sources = {} self.doRequest() | def __init__(self, remoteTorrentHandler, metadatahandler, overlay_bridge, session, prio): self.remoteTorrentHandler = remoteTorrentHandler self.metadatahandler = metadatahandler self.overlay_bridge = overlay_bridge self.session = session self.prio = prio self.queue = Queue.Queue() self.sources = {} self.doRequest() | 444,796 |
def sesscb_got_remote_hits(self,permid,query,hits): # Called by SessionCallback thread | def sesscb_got_remote_hits(self,permid,query,hits): # Called by SessionCallback thread | 444,797 |
def sesscb_got_channel_hits(self,permid,query,hits): # Called by SessionCallback thread if DEBUG: print >>sys.stderr,"GUIUtil: sesscb_got_channel_hits",len(hits) | def sesscb_got_channel_hits(self,permid,query,hits): # Called by SessionCallback thread if DEBUG: print >>sys.stderr,"GUIUtil: sesscb_got_channel_hits",len(hits) | 444,798 |
def sesscb_got_channel_hits(self,permid,query,hits): # Called by SessionCallback thread if DEBUG: print >>sys.stderr,"GUIUtil: sesscb_got_channel_hits",len(hits) | def sesscb_got_channel_hits(self,permid,query,hits): # Called by SessionCallback thread if DEBUG: print >>sys.stderr,"GUIUtil: sesscb_got_channel_hits",len(hits) | 444,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.