rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
import platform
def get_arch(): import platform if '64' in platform.architecture()[0]: return 'amd64' else: return 'x86'
5fab3f676904a17f192fb431bb360cb3fdb5ce7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/5fab3f676904a17f192fb431bb360cb3fdb5ce7d/config.py
self.installed_size = size if size == 0: return
def extract(self): cur = n = 0 size = sum(self.z.getinfo(name).file_size for name in self.arcnames) self.installed_size = size if size == 0: return
07f16429642541c0a3edbb2bb841823adc5c7a25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/07f16429642541c0a3edbb2bb841823adc5c7a25/main.py
rat = float(n) / size
if size == 0: rat = 1 else: rat = float(n) / size
def extract(self): cur = n = 0 size = sum(self.z.getinfo(name).file_size for name in self.arcnames) self.installed_size = size if size == 0: return
07f16429642541c0a3edbb2bb841823adc5c7a25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/07f16429642541c0a3edbb2bb841823adc5c7a25/main.py
size = sum(self.z.getinfo(name).file_size for name in self.arcnames)
size = sum(self.z.getinfo(name).file_size for name in self.arcnames) self.installed_size = size if size == 0: return
def extract(self): cur = n = 0 size = sum(self.z.getinfo(name).file_size for name in self.arcnames) sys.stdout.write('%9s [' % human_bytes(size)) for name in self.arcnames: n += self.z.getinfo(name).file_size rat = float(n) / size if rat * 64 >= cur: sys.stdout.write('.') sys.stdout.flush() cur += 1 self.write_arcname(...
cc15bc5a92535c0b3716a723055e6601aac1b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/cc15bc5a92535c0b3716a723055e6601aac1b518/main.py
self.installed_size = size
def extract(self): cur = n = 0 size = sum(self.z.getinfo(name).file_size for name in self.arcnames) sys.stdout.write('%9s [' % human_bytes(size)) for name in self.arcnames: n += self.z.getinfo(name).file_size rat = float(n) / size if rat * 64 >= cur: sys.stdout.write('.') sys.stdout.flush() cur += 1 self.write_arcname(...
cc15bc5a92535c0b3716a723055e6601aac1b518 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/cc15bc5a92535c0b3716a723055e6601aac1b518/main.py
egg_pat = re.compile(r'([\w.]+)-([\w.]+)-(\d+).egg$')
egg_pat = re.compile(r'([\w.]+)-([\w.]+)-(\d+)\.egg$')
def filename_dist(dist): return split_dist(dist)[1]
a4b76e39939fae3068786a4f332e9c6b6fca8838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/a4b76e39939fae3068786a4f332e9c6b6fca8838/dist_naming.py
help="show information about package(s)")
help="show information about a package")
def main(): from optparse import OptionParser p = OptionParser(usage="usage: %prog [options] [name] [version]", description=__doc__) p.add_option("--config", action="store_true", help="display the configuration and exit") p.add_option('-f', "--force", action="store_true", help="force install the main package " "(not...
57ab89d9c43316efb5f03f17026cbdc655c2efd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/57ab89d9c43316efb5f03f17026cbdc655c2efd8/enpkg.py
if opts.info: if len(args) != 1: p.error("Option requires one argument (the name)") info_option(conf['info_url'], c, req.name) return
def main(): from optparse import OptionParser p = OptionParser(usage="usage: %prog [options] [name] [version]", description=__doc__) p.add_option("--config", action="store_true", help="display the configuration and exit") p.add_option('-f', "--force", action="store_true", help="force install the main package " "(not...
57ab89d9c43316efb5f03f17026cbdc655c2efd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/57ab89d9c43316efb5f03f17026cbdc655c2efd8/enpkg.py
placehold_pat = re.compile('(/PLACEHOLD){5,}([^\0\\s]*)\0')
placehold_pat = re.compile(5 * '/PLACEHOLD' + '([^\0\\s]*)\0')
def find_lib(fn): for tgt in _targets: dst = abspath(join(tgt, fn)) if exists(dst): return dst print "ERROR: library %r not found" % fn return join('/ERROR/path/not/found', fn)
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
data = f.read()
data = f.read(262144)
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
gr2 = m.group(2)
rest = m.group(1) while rest.startswith('/PLACEHOLD'): rest = rest[10:]
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
while gr2.startswith('/PLACEHOLD'): gr2 = gr2[10:] if tp.startswith('MachO-') and gr2.startswith('/'):
if tp.startswith('MachO-') and rest.startswith('/'):
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
r = find_lib(gr2[1:])
r = find_lib(rest[1:])
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
assert gr2 == '' or gr2.startswith(':')
assert rest == '' or rest.startswith(':')
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
rpaths.extend(p for p in gr2.split(':') if p)
rpaths.extend(p for p in rest.split(':') if p)
def fix_object_code(path): tp = get_object_type(path) if tp is None: return f = open(path, 'r+b') data = f.read() matches = list(placehold_pat.finditer(data)) if not matches: f.close() return if verbose: print "Fixing placeholders in:", path for m in matches: gr2 = m.group(2) # this should not be necessary as the re...
bb1673cddc909e3c704b4a0d3a4807a59d207f4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/bb1673cddc909e3c704b4a0d3a4807a59d207f4a/object_code.py
except: print("Warning: An error occurred while %sinstalling application " "item" % ('un' if remove else ''))
except Exception as e: print("Warning (%sinstalling application item):\n%r" % ('un' if remove else '', e))
def install_app(self, remove=False): if self.noapp: return
c0ae645ed8b112c8a4989704772f99652b79a1e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/c0ae645ed8b112c8a4989704772f99652b79a1e3/main.py
if opts.proxy: proxy = opts.proxy else: proxy = conf['proxy'] if proxy: from proxy.api import setup_proxy setup_proxy(proxy)
def main(): from optparse import OptionParser p = OptionParser( usage="usage: %prog [options] [name] [version]", description=("download and install eggs ...")) p.add_option("--config", action="store_true", help="display the configuration and exit") p.add_option('-f', "--force", action="store_true", help="force insta...
8ab000f1194611a1c330c733d867501496fc3955 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/8ab000f1194611a1c330c733d867501496fc3955/enpkg.py
password2 = getpass('Confirm passowrd: ')
password2 = getpass('Confirm password: ')
def input_userpass(): from getpass import getpass print """\
7cb86e53e8623fefd6b27f36699a30e4bbe5bb55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/7cb86e53e8623fefd6b27f36699a30e4bbe5bb55/config.py
f.write("
f.write("
def label_to_filename(label): label = label.replace('/', '_')\ .replace(' ', '_')\ .replace('(', '=')\ .replace(')', '=')\ .replace(',', '_') + '.crt' return re.sub(r'\\x[0-9a-fA-F]{2}', lambda m:chr(int(m.group(0)[2:], 16)), label)
dc70b1f07b3fc84e8ecb819aa24cd95e5ae3c40e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5731/dc70b1f07b3fc84e8ecb819aa24cd95e5ae3c40e/certdata2pem.py
return getUtility(IAuthentication).getPrincipal(self.__name__)
return getPrincipal(self.__name__)
def principal(self): try: return getUtility(IAuthentication).getPrincipal(self.__name__) except PrincipalLookupError: return None
82cb4d63c4d81f498bfc240d36a9856347f48513 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12556/82cb4d63c4d81f498bfc240d36a9856347f48513/member.py
curr_x = curr_x - 100 if (curr_x <= 50): curr_x = 50
curr_x = curr_x - 20 if (curr_x <= 10): curr_x = 10
def move_left(self): (curr_x, curr_y) = self.pos curr_x = curr_x - 100 if (curr_x <= 50): curr_x = 50 self.pos = (curr_x, curr_y) self.rect = self.image.get_rect(center = self.pos)
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
curr_x = curr_x + 100 if (curr_x >= 650): curr_x = 650
curr_x = curr_x + 20 if (curr_x >= 690): curr_x = 690
def move_right(self): (curr_x, curr_y) = self.pos curr_x = curr_x + 100 if (curr_x >= 650): curr_x = 650 self.pos = (curr_x, curr_y) self.rect = self.image.get_rect(center = self.pos)
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
print curr_y
def fire(self): (curr_x, curr_y) = self.pos print curr_y Projectile(self.pos,self.angle,self.velocity)
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
self.min_size =10
self.min_size = 10
def __init__(self, pos, angle = 0, velocity = 0): pygame.sprite.Sprite.__init__(self, self.containers) self.min_size =10 self.image = pygame.Surface((self.min_size,self.min_size)) self.color = [255,0,0] self.image.fill(self.color) self.pos = pos self.rect = self.image.get_rect(center = pos) self.angle = angle self.velo...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
tx = self.t/10.0
tx = self.t/50.0
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
size = ((proj_y / 20) + self.min_size)
size = ((proj_y / 2) + self.min_size)
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
print "proj_x:" + str(proj_x)
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
if (curr_y >= 500 and curr_y <= 600):
if (proj_x > 11 and proj_x < 12):
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
print proj_y
print "proj_y: " + str(proj_y)
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
self.pos = (curr_x, (SCREEN_WIDTH - ((proj_x * 20)) + 20 ))
self.pos = (curr_x, (SCREEN_WIDTH - ((proj_x * 20)) + 20))
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
self.pos = (curr_x, (curr_y + (tx*10)))
self.pos = (curr_x,curr_y)
def update(self): if self.alive: # FIXME - Need to figure out how to get time into this formula for y #print "projectile y: " + str(proj_y) (curr_x, curr_y) = self.pos tx = self.t/10.0 proj_y = self.h0 + (tx * self.velocity * math.sin(self.rad_angle)) - (self.gravity * tx * tx) / 2 size = ((proj_y / 20) + self.min_size...
25adcc4c56b6447a6930c8e2f3924510c2cd6046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12377/25adcc4c56b6447a6930c8e2f3924510c2cd6046/main.py
items = re.split("\-|\*", " ".join([item.strip() for item in entry.desc if item]))
raw_items = [item.strip().replace('"', '&quot;') for item in entry.desc if item] string = "" items = [] for item in raw_items: if item.startswith('-') or item.startswith('*'): if string: items.append(string) string = item.lstrip('-* ') else: string += item if string: items.append(string)
def write_index(): """Create markup for a new form submit with all tests. """ entries = [] for entry in get_tests(): if entry.title: title = "".join(entry.title) entries.append(TR_TD_COLS_4 % title) if entry.url: url = "".join(entry.url) entries.append(TR_TD_URL % (url, url)) if entry.label: id = "id-%s" % entry.id[0]....
1681beda9d8f0a2c0798f1e4516a028feb6a1d00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/1681beda9d8f0a2c0798f1e4516a028feb6a1d00/dftests.py
u = u.replace('./', '../')
u = u.replace('./', '../' * len(e.repo))
def test(): load_templates() entries = tests2singledocs() """ label: Export mode: DOM tabs: DOM urls: http://dev.opera.com repo: dom index: 0002 file_name: 0002.export.html desc: - Press the Export button.- Verify that the current view is displayed in a new tab. """ if not os.path.exists(PAPA): os.makedirs(PAPA) inde...
58a9042f071c05b5c6abc536b4e59df5357a68ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/58a9042f071c05b5c6abc536b4e59df5357a68ea/TESTS2PAPA.py
elif resource.startswidth("../"): while resource.startswith("../"): pos = resource.find("/", 3) if pos > -1: resource = resource[pos:] else: resource = ""
def get_resources(os_path, web_path, file_name): resources = [] with open(os.path.join(os_path, file_name), 'r') as f: content = f.read() for match in _re_resource.finditer(content): resource = filter(bool, match.groups())[0] if resource.startswith("/"): pass elif resource.startswith("./"): resource = web_path + resour...
da14b9d0db5c30b551c28cc48d1fb674cef68a2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/da14b9d0db5c30b551c28cc48d1fb674cef68a2e/createmanifests.py
id_count = DEFAULT_ID_DELTA
id_count = 0
def add_ids_test_index(): """Add an id to all tests which are missing one. """ import shutil import tempfile ID = 1 LABEL = 2 DESC = 3 ERROR = 4 state = DESC in_file = open(TESTS, 'rb') lines = in_file.readlines() in_file.close() id_count = DEFAULT_ID_DELTA tmpfd, tmppath = tempfile.mkstemp(".tmp", "dftests.") tmpfile...
c76d6e8f5047894d45cb6234119669c83d64c596 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c76d6e8f5047894d45cb6234119669c83d64c596/TESTS2PAPA.py
id_count = DEFAULT_ID_DELTA
id_count = 0
def add_ids_test_index(): """Add an id to all tests which are missing one. """ import shutil import tempfile ID = 1 LABEL = 2 DESC = 3 ERROR = 4 state = DESC in_file = open(TESTS, 'rb') lines = in_file.readlines() in_file.close() id_count = DEFAULT_ID_DELTA tmpfd, tmppath = tempfile.mkstemp(".tmp", "dftests.") tmpfile...
c76d6e8f5047894d45cb6234119669c83d64c596 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c76d6e8f5047894d45cb6234119669c83d64c596/TESTS2PAPA.py
tmpfile.write("id: %
tmpfile.write("id: %
def add_ids_test_index(): """Add an id to all tests which are missing one. """ import shutil import tempfile ID = 1 LABEL = 2 DESC = 3 ERROR = 4 state = DESC in_file = open(TESTS, 'rb') lines = in_file.readlines() in_file.close() id_count = DEFAULT_ID_DELTA tmpfd, tmppath = tempfile.mkstemp(".tmp", "dftests.") tmpfile...
c76d6e8f5047894d45cb6234119669c83d64c596 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c76d6e8f5047894d45cb6234119669c83d64c596/TESTS2PAPA.py
self.index = ''
self.index_count = 0
def __init__(self): self.title = [] self.url = [] self.desc = [] self.label = [] self.id = [] self.buffer = [] self.index = 0 self.mode = '' self.tabs = '' self.urls = '' self.repo = '' self.index = '' self.file_name = ''
4fd1ce756ad5084415bb8af69b09d866e421b4a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/4fd1ce756ad5084415bb8af69b09d866e421b4a2/TESTS2PAPA.py
def get_ids(): """Parse the IDS file. Parse the IDS file and return a list of the id's. Includes all tests and other attributes of a protocol like tester and changeset to check if a new submitted protocol is complete. """ f_ids = open(IDS, 'r') ids = [id.strip() for id in f_ids.readlines()] f_ids.close() return ids
def is_empty(self): return bool(self.title or self.url or self.desc or self.label)
4fd1ce756ad5084415bb8af69b09d866e421b4a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/4fd1ce756ad5084415bb8af69b09d866e421b4a2/TESTS2PAPA.py
index = 0
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' index = 0 for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = cur.mode.lower() cur.tabs = ', '.join(ts) type = 'title' ind...
4fd1ce756ad5084415bb8af69b09d866e421b4a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/4fd1ce756ad5084415bb8af69b09d866e421b4a2/TESTS2PAPA.py
entry.index = "%
entry.index = "%
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' index = 0 for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = cur.mode.lower() cur.tabs = ', '.join(ts) type = 'title' ind...
4fd1ce756ad5084415bb8af69b09d866e421b4a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/4fd1ce756ad5084415bb8af69b09d866e421b4a2/TESTS2PAPA.py
cur.index_count += 1
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = [label2filename(cur.mode)] if ts: cur.repo.append(label2filename(ts[0]...
cd84f51039f37c5d3b8191d117d903ad984bada7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/cd84f51039f37c5d3b8191d117d903ad984bada7/TESTS2PAPA.py
entry.index = "%
entry.index = ''.join(entry.id)
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = [label2filename(cur.mode)] if ts: cur.repo.append(label2filename(ts[0]...
cd84f51039f37c5d3b8191d117d903ad984bada7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/cd84f51039f37c5d3b8191d117d903ad984bada7/TESTS2PAPA.py
content = [HTML_HEAD % ("../" + STYLESHEET_NAME)]
content = [HTML_HEAD % (("../" * len(e.repo)) + STYLESHEET_NAME)]
def test(): load_templates() entries = tests2singledocs() """ label: Export mode: DOM tabs: DOM urls: http://dev.opera.com repo: dom index: 0002 file_name: 0002.export.html desc: - Press the Export button.- Verify that the current view is displayed in a new tab. """ if not os.path.exists(PAPA): os.makedirs(PAPA) inde...
cd84f51039f37c5d3b8191d117d903ad984bada7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/cd84f51039f37c5d3b8191d117d903ad984bada7/TESTS2PAPA.py
file_name = ''.join(entry.label).strip().replace(' ', '-').replace(',', '').lower()
file_name = label2filename(entry.label)
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = cur.mode.lower() cur.tabs = ', '.join(ts) type = 'title' index = 1 eli...
87125d0f86d2b52c747db4f81cdaaf503989a66c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/87125d0f86d2b52c747db4f81cdaaf503989a66c/TESTS2PAPA.py
def test(): load_templates() entries = tests2singledocs() """ label: Export mode: DOM tabs: DOM urls: http://dev.opera.com repo: dom index: 0002 file_name: 0002.export.html desc: - Press the Export button.- Verify that the current view is displayed in a new tab. """ if not os.path.exists(PAPA): os.makedirs(PAPA) inde...
87125d0f86d2b52c747db4f81cdaaf503989a66c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/87125d0f86d2b52c747db4f81cdaaf503989a66c/TESTS2PAPA.py
def process_file(inpath, outfd):
def _process_file(inpath, outfd):
def process_file(inpath, outfd): lines = [p["msgstr"] for p in dfstrings.get_po_strings(inpath) if "scope" in p and "dragonfly" in p["scope"] ] bad_escaped = dfstrings.get_strings_with_bad_escaping(lines) if bad_escaped: print "error: %s contains strings with bad escaping: %s" % (inpath, bad_escaped) return 1 bad_for...
399bc3a3f4c9c3bb01f059c5203a75f4e5a97283 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/399bc3a3f4c9c3bb01f059c5203a75f4e5a97283/po2js.py
out = os.path.join(destpath, os.path.basename(path))
out = os.path.join(destpath, "ui_strings-%s.js" % os.path.basename(path)[:-3])
def _process_dir(dirpath, destpath): files = _find_pofiles(dirpath) for path in files: out = os.path.join(destpath, os.path.basename(path)) outfd = codecs.open(out, "w", encoding="utf_8_sig") process_file(path, outfd) outfd.close()
c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938/po2js.py
process_file(path, outfd)
_process_file(path, outfd)
def _process_dir(dirpath, destpath): files = _find_pofiles(dirpath) for path in files: out = os.path.join(destpath, os.path.basename(path)) outfd = codecs.open(out, "w", encoding="utf_8_sig") process_file(path, outfd) outfd.close()
c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/c05fdf43c5d9cb726ddc9bc20afbdc3e0d21f938/po2js.py
self.sum_status = {'Preparation': 0, 'Production': 0, 'Maintenance': 0, 'Process': 0, 'W-up': 0}
self.sum_status = {'Preparation': 0, 'Production': 0, 'Maintenance': 0, 'Process': 0, 'W-up': 0, 'JobEnd': 0}
def __init__(self, bdefilename=None): """ Initialize the class and read the bde file is it is provided. """ self.content = [] self.dbname = 'oeebde.db' self.recordcode = 'recordcode' self.nfilelines = 0 if bdefilename is not None: self.bdefilename = bdefilename self.readfile(bdefilename) # Variables related to sumup # ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
sys.exit(0)
return False
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print "Error: Preparation started before previous Preparation ends"
self.report_error(917, self.sumups[key][1])
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print "Error: Production started before previous Production ends"
self.report_error(918, self.sumups[key][1])
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
elif key[1] == 'Maintenance':
elif key[1] in ['Maintenance', 'JobEnd']:
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print "Warning: Preparation without Production"
self.report_error(804)
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
self.report_error(803) print badids
thelines = [] for theid in badids: idx = [line[4] for line in self.content].index(theid) thelines += [(idx+1,) + (self.content[idx])] self.report_error(803, thelines)
def data_sumup(self): """ Perform Sum-ups for Preparation and Production. The Sum-ups will be performed in two stages: 1. Simple Sum-ups to process through all selected lines and record the start and end lines of the Sum-ups. The results are saved in a intermediate dictionary. 2. Process dictionary to decide whether a ...
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
prekey == self.get_key_for_concatenate(prekey)
prekey = self.get_key_for_concatenate(prekey)
def gen_output_for_key(self, keys, idx):
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print 'Warning: Trivial Sum-up with nothing to concatenate.'
self.report_error(916, self.sumups[key][1]) self.sumups[key][0] = self.SUM_TRIVIAL_BUT_NEEDED self.output[key] = (lnum, stime, jobid, sumup_name, duration, impcount)
def gen_output_for_key(self, keys, idx):
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print 'Warning: Trivial Sum-up with nothing to concatenate.' else:
self.report_error(916, self.sumups[key][1]) self.sumups[key][0] = self.SUM_TRIVIAL_BUT_NEEDED self.output[key] = (lnum, stime, jobid, sumup_name, duration, impcount) elif key[1] in ['Maintenance', 'Process', 'W-up', 'JobEnd']:
def gen_output_for_key(self, keys, idx):
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
print "%10d %s %6s %15s %0.2f %10d" % line
print "%10d %s %6s %15s %6.2f %10d" % line
def report_output(self): # Print output print "" keys = self.output.keys() keys.sort() for key in keys: line = self.output[key] print "%10d %s %6s %15s %0.2f %10d" % line
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
if not bde.readfile("tmp.bde"):
if not bde.readfile("good.bde"):
def report_output(self): # Print output print "" keys = self.output.keys() keys.sort() for key in keys: line = self.output[key] print "%10d %s %6s %15s %0.2f %10d" % line
41c1ac1abbb60899f58aa202fe0d5f75287d319d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/584/41c1ac1abbb60899f58aa202fe0d5f75287d319d/oeebde.py
interspersed=True)
interspersed=False)
def __init__(self,args=None): description="""
d532b053f6a88669defc7c882971c63b1292092c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8924/d532b053f6a88669defc7c882971c63b1292092c/WriteDictionary.py
self.parser.add_option("--test",action="store_true",dest="test",default=False,help="Doesn't write to the file, but outputs the result on stdout") self.parser.add_option("--evaluate",action="store_false",dest="verbatim",default=True,help="Interpret the string as a python expression before assigning it")
self.parser.add_option("--test", action="store_true", dest="test", default=False, help="Doesn't write to the file, but outputs the result on stdout") self.parser.add_option("--strip-quotes-from-value", action="store_true", dest="stripQuotes", default=False, help="Strip the quotes from the value if they had to be defin...
def addOptions(self): self.parser.add_option("--test",action="store_true",dest="test",default=False,help="Doesn't write to the file, but outputs the result on stdout") self.parser.add_option("--evaluate",action="store_false",dest="verbatim",default=True,help="Interpret the string as a python expression before assigning...
1b7e35c9d47ea4756f8b406499df0e06fbc355c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8924/1b7e35c9d47ea4756f8b406499df0e06fbc355c1/WriteDictionary.py
if self.opts.stripQuotes: if val[0]=='"': val=val[1:] if val[-1]=='"': val=val[:-1]
def run(self): fName=self.parser.getArgs()[0] all=self.parser.getArgs()[1] if all[0]=='"': all=all[1:] if all[-1]=='"': all=all[:-1] val=self.parser.getArgs()[2]
1b7e35c9d47ea4756f8b406499df0e06fbc355c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8924/1b7e35c9d47ea4756f8b406499df0e06fbc355c1/WriteDictionary.py
name,value pairs or mapping, if applicable. If """
name,value pairs or mapping, if applicable."""
def from_params(cls, params): """Returns a list of MultipartParam objects from a sequence of name, value pairs, MultipartParam instances, or from a mapping of names to values
fc97a1373b65654eead4e192c4c592619866fe9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5066/fc97a1373b65654eead4e192c4c592619866fe9d/encode.py
command += '--chained-input=output \\\n'
command += '--chained-input=%s \\\n' % ( steps[step]['inputModule'])
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
ad9b176f52b3e0c616b384d6090e8774f691b50e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/ad9b176f52b3e0c616b384d6090e8774f691b50e/prepareRelValWorkflows.py
executable = os.path.join(self.workingDir, bossJob['executable'] ) if not os.path.exists( executable ):
executable = bossJob['executable'] executablePath = os.path.join(self.workingDir, executable) updateJob = False if not self.isBulk and not executable.count(self.singleSpecName): executable = self.singleSpecName + '-submit' executablePath = os.path.join(self.workingDir, executable) msg = "This job %s was originally sumb...
def prepareResubmission(self, bossJob): """ __prepareResubmission__
0c93161dea6165f3cbf476c5edd4d028fecdf76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/0c93161dea6165f3cbf476c5edd4d028fecdf76a/BossLiteBulkInterface.py
% executable) self.makeWrapperScript( executable, "$1" )
% executablePath) self.makeWrapperScript( executablePath, "$1" )
def prepareResubmission(self, bossJob): """ __prepareResubmission__
0c93161dea6165f3cbf476c5edd4d028fecdf76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/0c93161dea6165f3cbf476c5edd4d028fecdf76a/BossLiteBulkInterface.py
self.report.exitCode = 60312 self.report.status = "Failed" self.report.addError(msg, "StageOutError")
self.report.exitCode = 60314 self.report.status = "Failed" newError = self.report.addError(60314, "StageOutError") newError['Description'] = msg
def __call__(self): """ copy logs to local file system, tar, stage out to storage and delete originals """ #first copy logs locally logs = [] fileInfo = { 'LFN' : None, 'PFN' : None, 'SEName' : None, 'GUID' : None, } try: stagein = StageInMgr() stageout = StageOutMgr(**self.overrideParams) delete = DeleteMgr() except ...
2591cb35936890ca9ef40d464fdbd18eee132516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/2591cb35936890ca9ef40d464fdbd18eee132516/RuntimeLogCollector.py
self.report.addError(msg, "StageOutError")
newError = self.report.addError(60312, "StageInError") newError['Description'] = msg
def __call__(self): """ copy logs to local file system, tar, stage out to storage and delete originals """ #first copy logs locally logs = [] fileInfo = { 'LFN' : None, 'PFN' : None, 'SEName' : None, 'GUID' : None, } try: stagein = StageInMgr() stageout = StageOutMgr(**self.overrideParams) delete = DeleteMgr() except ...
2591cb35936890ca9ef40d464fdbd18eee132516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/2591cb35936890ca9ef40d464fdbd18eee132516/RuntimeLogCollector.py
self.report.exitCode = 60312
self.report.exitCode = 60314
def __call__(self): """ copy logs to local file system, tar, stage out to storage and delete originals """ #first copy logs locally logs = [] fileInfo = { 'LFN' : None, 'PFN' : None, 'SEName' : None, 'GUID' : None, } try: stagein = StageInMgr() stageout = StageOutMgr(**self.overrideParams) delete = DeleteMgr() except ...
2591cb35936890ca9ef40d464fdbd18eee132516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/2591cb35936890ca9ef40d464fdbd18eee132516/RuntimeLogCollector.py
mgr()
mgr()
def saveFjr(self): """ create fjr for process """ self.report.write("./FrameworkJobReport.xml") # // # // Ensure this report gets added to the job-wide report #// toplevelReport = os.path.join(os.environ['PRODAGENT_JOB_DIR'],"FrameworkJobReport.xml") newReport = os.path.join(os.getcwd(), "FrameworkJobReport.xml") mer...
2591cb35936890ca9ef40d464fdbd18eee132516 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/2591cb35936890ca9ef40d464fdbd18eee132516/RuntimeLogCollector.py
runs_to_process = []
runs_to_process = set()
def endElement(self, name): global is_dataset if name == 'dataset': is_dataset = False
65698b019cb987806faa8ca7667f0d644a339f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/65698b019cb987806faa8ca7667f0d644a339f29/prepareRelValWorkflows.py
runs_to_process.extend(list(blocks[block]['Runs']))
runs_to_process = runs_to_process.union(blocks[block]['Runs'])
def endElement(self, name): global is_dataset if name == 'dataset': is_dataset = False
65698b019cb987806faa8ca7667f0d644a339f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/65698b019cb987806faa8ca7667f0d644a339f29/prepareRelValWorkflows.py
dqmData['Runs'] = ",".join(runs_to_process)
dqmData['Runs'] = ",".join(list(runs_to_process))
def endElement(self, name): global is_dataset if name == 'dataset': is_dataset = False
65698b019cb987806faa8ca7667f0d644a339f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/65698b019cb987806faa8ca7667f0d644a339f29/prepareRelValWorkflows.py
def localCustomization(self, config, merge = False): """ Apply site specific customizations to the config """ site_config = self.taskState.getSiteConfig() self.ioCustomization(config, site_config.io_config, merge) def ioCustomization(self, config, custom_config, merge = False): """ Apply site specific io customizati...
def localCustomization(self, config, merge = False): """ Apply site specific customizations to the config """ site_config = self.taskState.getSiteConfig()
c27ef7424c32c6d124b0776d258d7eea06e8a335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/c27ef7424c32c6d124b0776d258d7eea06e8a335/RuntimeUnpackJobSpec.py
self.localCustomization(self.jobSpecNode.cfgInterface)
def createPSet(self): """ _createPSet_
c27ef7424c32c6d124b0776d258d7eea06e8a335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/c27ef7424c32c6d124b0776d258d7eea06e8a335/RuntimeUnpackJobSpec.py
self.localCustomization(self.jobSpecNode.cfgInterface, merge = True)
def createMergePSet(self): """ _createMergePSet_
c27ef7424c32c6d124b0776d258d7eea06e8a335 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/c27ef7424c32c6d124b0776d258d7eea06e8a335/RuntimeUnpackJobSpec.py
timingInfo.write('Min. time on %s: %s s\n' % tuple(max))
timingInfo.write('Min. time on %s: %s s\n' % tuple(min))
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
e2843803b144006269f3d6d6e2e7b61a529a3e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/e2843803b144006269f3d6d6e2e7b61a529a3e05/prepareRelValWorkflows.py
self.setdefault("JSToolUI" , "ProdAgent")
self.setdefault("JSToolUI" , None)
def __init__(self): dict.__init__(self) self.task = None self.job = None self.destinations = {} self.publisher = None self.setdefault("Application", None) self.setdefault("ApplicationVersion", None) self.setdefault("GridJobID", None) self.setdefault("LocalBatchID", None) self.setdefault("GridUser", None) self.setdefaul...
21c64ef7bf22cb774ae29777ab4221b95ce71cb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/21c64ef7bf22cb774ae29777ab4221b95ce71cb3/DashboardInfo.py
elif err.message().find( "Job current status doesn" ) != -1:
elif err.message().find("Output not yet Ready") != -1 or \ err.message().find( "Job current status doesn" ) != -1:
def getOutput(cls, job, task, schedSession ): """ __getOutput__
a5f066d56a58a64ff674799e20ee0e09f1a06fb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/a5f066d56a58a64ff674799e20ee0e09f1a06fb3/JobOutput.py
print "DEBUG 777 setting fileclass %s" % fileclass
print "DEBUG 777 creating %s" % targetDir
def createOutputDirectory(self, targetPFN): """ _createOutputDirectory_
1a53b4efe645bb677d73818e9dd2ca34cf6367d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/1a53b4efe645bb677d73818e9dd2ca34cf6367d5/RFCPCERNImpl.py
if not self.isBulk and not executable.count(self.singleSpecName):
if not self.isBulk and (not executable.count(self.singleSpecName) or \ not oldGlobalSandbox.count(self.singleSpecName)):
def prepareResubmission(self, bossJob): """ __prepareResubmission__
de293df74bea8cc7253c8703e21bdfdeb0f8245a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/de293df74bea8cc7253c8703e21bdfdeb0f8245a/BossLiteBulkInterface.py
msg += "Submission. Making a new wrapping script %s for single submission." \
msg += "Submission." msg += " Making a new wrapping script %s for single submission." \
def prepareResubmission(self, bossJob): """ __prepareResubmission__
de293df74bea8cc7253c8703e21bdfdeb0f8245a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/de293df74bea8cc7253c8703e21bdfdeb0f8245a/BossLiteBulkInterface.py
self.bossTask = self.bossLiteSession.loadTask( bossJob['taskId'], bossJob['jobId'] )
def prepareResubmission(self, bossJob): """ __prepareResubmission__
de293df74bea8cc7253c8703e21bdfdeb0f8245a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/de293df74bea8cc7253c8703e21bdfdeb0f8245a/BossLiteBulkInterface.py
if len(splittedPayload) == 3 and splittedPayload[2] != 'all': jobsToKill = eval(str(splittedPayload[2]))
if len(splittedPayload) == 2 and splittedPayload[1] != 'all': jobsToKill = eval(str(splittedPayload[1]))
def killTask(self, taskSpecId): """
fcc5146ec4bce37676999145005179bfb49e9500 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/fcc5146ec4bce37676999145005179bfb49e9500/BossLiteKiller.py
cfg = node.cfgInterface
cfgInter = node.cfgInterface
def findCfgFiles(node): """ _findCfgFiles_ Look for cms cfg file in payload node provided """ try: #hash = node._OutputDatasets[0]['PSetHash'] #cfg = node.configuration cfg = node.cfgInterface cfgInter = cfg.makeConfiguration() print node.name + ": Found cfg." except Exception, ex: # Not a cfg file print node.name + ...
3a10e95a63196585911b818dabd13c3a69375ced /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/3a10e95a63196585911b818dabd13c3a69375ced/cfgFromWorkflow.py
pfn = self.localStageOut(lfn, fileToStage['PFN'], fileToStage['Checksums'])
checksums = fileToStage.get('Checksums', None) pfn = self.localStageOut(lfn, fileToStage['PFN'], checksums)
def __call__(self, **fileToStage): """ _operator()_
262a58583bd16fae0b0c76c0042cfe23fab7fc2e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/262a58583bd16fae0b0c76c0042cfe23fab7fc2e/StageOutMgr.py
toplevelReport = os.path.join(os.environ['PRODAGENT_JOB_DIR'], "FrameworkJobReport.xml") if state.jobSpecNode._InputLinks and \ state.jobSpecNode._InputLinks[0]["AppearStandalone"] and \ os.path.exists(toplevelReport): parentForward = True for link in state.jobSpecNode._InputLinks: if not link["AppearStandalone...
def processFrameworkJobReport(): """ _processFrameworkJobReport_ Read the job report and insert external information such as datasets for each file entry. """ state = TaskState(os.getcwd()) state.loadRunResDB() state.loadJobSpecNode() state.jobSpecNode.loadConfiguration() state.dumpJobReport() badReport = False try...
b9dcd1e8be2914a0b8f8948e34291bfcdde62add /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/b9dcd1e8be2914a0b8f8948e34291bfcdde62add/RuntimeFwkJobRep.py
x['LFN'] in (None, '')]
x['LFN'] in (None, '') and \ x['PFN'] not in [y['PFN'] for y in state.parentsForwarded]]
def processFrameworkJobReport(): """ _processFrameworkJobReport_ Read the job report and insert external information such as datasets for each file entry. """ state = TaskState(os.getcwd()) state.loadRunResDB() state.loadJobSpecNode() state.jobSpecNode.loadConfiguration() state.dumpJobReport() badReport = False try...
b9dcd1e8be2914a0b8f8948e34291bfcdde62add /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/b9dcd1e8be2914a0b8f8948e34291bfcdde62add/RuntimeFwkJobRep.py
x['LFN'] in (None, '')]
x['LFN'] in (None, '') and \ x['PFN'] not in [y['PFN'] for y in state.parentsForwarded]]
def processFrameworkJobReport(): """ _processFrameworkJobReport_ Read the job report and insert external information such as datasets for each file entry. """ state = TaskState(os.getcwd()) state.loadRunResDB() state.loadJobSpecNode() state.jobSpecNode.loadConfiguration() state.dumpJobReport() badReport = False try...
b9dcd1e8be2914a0b8f8948e34291bfcdde62add /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/b9dcd1e8be2914a0b8f8948e34291bfcdde62add/RuntimeFwkJobRep.py
try: version = os.environ.get("CMSSW_VERSION") except:
version = os.environ.get("CMSSW_VERSION") if version is None:
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
25a39e1975d05f8035dd4dd44c031b3aa7a10c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/25a39e1975d05f8035dd4dd44c031b3aa7a10c2a/prepareRelValWorkflows.py
try: architecture = os.environ.get("SCRAM_ARCH") except:
architecture = os.environ.get("SCRAM_ARCH") if architecture is None:
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
25a39e1975d05f8035dd4dd44c031b3aa7a10c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/25a39e1975d05f8035dd4dd44c031b3aa7a10c2a/prepareRelValWorkflows.py
scriptsDir = '$PUTIL'
scriptsDir = os.path.expandvars(os.environ.get('PUTIL', None))
def main(argv) : """ prepareRelValworkflows prepare workflows for chained processing of RelVal samples - parse file holding cmsDriver commands for 1st and 2nd steps - prepare workflows - prepare WorkflowInjector:Input script - prepare ForceMerge script - prepare DBSMigrationToGlobal script - prepare PhEDExInjection ...
25a39e1975d05f8035dd4dd44c031b3aa7a10c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/25a39e1975d05f8035dd4dd44c031b3aa7a10c2a/prepareRelValWorkflows.py
print 'failed'
print 'failed: %s' % error
def endElement(self, name): global is_dataset if name == 'dataset': is_dataset = False
25a39e1975d05f8035dd4dd44c031b3aa7a10c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/25a39e1975d05f8035dd4dd44c031b3aa7a10c2a/prepareRelValWorkflows.py
msg = 'DBS URL of the old request is neither analysis_01 nor analysis_02. Please, check!'
msg = 'DBS URL of the old request is neither analysis_01, analysis_02 nor local_09. Please, check!'
def setDBSDropDown(self): ## Get DBS URL by Drop Down control = self.br.find_control("custom_sb4",type="select") dbs_url = self.DBSByValueDict[control.value[0]]
fff0a036ccb58a16ec50407dd2860223a4e9d94a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/fff0a036ccb58a16ec50407dd2860223a4e9d94a/RequestQuery.py
group_squad = 'cms-storeresults-'+self.GroupByValueDict[group_id].replace("-","_")
group_squad = 'cms-storeresults-'+self.GroupByValueDict[group_id].replace("-","_").lower()
def getRequests(self,**kargs): requests = [] if self.isLoggedIn: self.selectQueryForm(**kargs) self.createValueDicts() self.br.select_form(name="bug_form") response = self.br.submit()
fff0a036ccb58a16ec50407dd2860223a4e9d94a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/fff0a036ccb58a16ec50407dd2860223a4e9d94a/RequestQuery.py
new_dataset = "" dataset_prefix = "StoreResults"+dataset_version
if len(dataset_version)>0: dataset_prefix = "StoreResults-"+dataset_version else: dataset_prefix = "StoreResults"
def getRequests(self,**kargs): requests = [] if self.isLoggedIn: self.selectQueryForm(**kargs) self.createValueDicts() self.br.select_form(name="bug_form") response = self.br.submit()
fff0a036ccb58a16ec50407dd2860223a4e9d94a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/fff0a036ccb58a16ec50407dd2860223a4e9d94a/RequestQuery.py
infoDict["cmsswRelease"] = self.ReleaseByValueDict[release_id[0]]
try: infoDict["cmsswRelease"] = self.ReleaseByValueDict[release_id[0]] except: continue
def getRequests(self,**kargs): requests = [] if self.isLoggedIn: self.selectQueryForm(**kargs) self.createValueDicts() self.br.select_form(name="bug_form") response = self.br.submit()
fff0a036ccb58a16ec50407dd2860223a4e9d94a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/fff0a036ccb58a16ec50407dd2860223a4e9d94a/RequestQuery.py