rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
rtn = [] for line in text.split('\n'): splitline = [] if len(line.replace('\t', SPACE8)) <= maxheaderlen: splitline.append(line) rtn.append(SEMINLTAB.join(splitline)) else: oldlen = len(line) while len(line) > maxheaderlen: i = line.rfind(';', 0, maxheaderlen) if i < 0: break splitline.append(line[:i]) line = line[i...
h = Header(text, maxlinelen=maxheaderlen, continuation_ws='\t') return h.encode()
def _split_header(self, text): maxheaderlen = self.__maxheaderlen # Find out whether any lines in the header are really longer than # maxheaderlen characters wide. There could be continuation lines # that actually shorten it. Also, replace hard tabs with 8 spaces. lines = [s.replace('\t', SPACE8) for s in text.split(...
ff4accdde6bf1d73d36a973bf0501ae490603de0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ff4accdde6bf1d73d36a973bf0501ae490603de0/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 67, 3374, 12, 2890, 16, 977, 4672, 943, 3374, 1897, 273, 365, 16186, 1896, 3374, 1897, 468, 4163, 596, 2856, 1281, 2362, 316, 326, 1446, 854, 8654, 7144, 2353, 468, 943, 3374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 67, 3374, 12, 2890, 16, 977, 4672, 943, 3374, 1897, 273, 365, 16186, 1896, 3374, 1897, 468, 4163, 596, 2856, 1281, 2362, 316, 326, 1446, 854, 8654, 7144, 2353, 468, 943, 3374,...
self.check_package (package, package_dir)
init_py = self.check_package (package, package_dir)
def find_modules (self): # Map package names to tuples of useful info about the package: # (package_dir, checked) # package_dir - the directory where we'll find source files for # this package # checked - true if we have checked that the package directory # is valid (exists, contains __init__.py, ... ?) packages...
5402f4d122edbc3d52589a84b5f6610895a5ed71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5402f4d122edbc3d52589a84b5f6610895a5ed71/build_py.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6400, 261, 2890, 4672, 468, 1635, 2181, 1257, 358, 10384, 434, 5301, 1123, 2973, 326, 2181, 30, 468, 565, 261, 5610, 67, 1214, 16, 5950, 13, 468, 2181, 67, 1214, 300, 326, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6400, 261, 2890, 4672, 468, 1635, 2181, 1257, 358, 10384, 434, 5301, 1123, 2973, 326, 2181, 30, 468, 565, 261, 5610, 67, 1214, 16, 5950, 13, 468, 2181, 67, 1214, 300, 326, 18...
file.write("</" + _encode(tag, encoding) + ">")
file.write(_encode("</" + tag + ">", encoding))
def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new na...
d7657fbd21edb2a284db95beac93d0fb6cf519f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d7657fbd21edb2a284db95beac93d0fb6cf519f0/ElementTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 8...
print >>outbuf, "</document>\n"
print >>outbuf, "</doc>\n"
def emit_doc(outbuf, t): assert t.name not in ids_seen for forbidden in ('text', 'identifier'): assert forbidden not in t.d ids_seen.add(t.name) print >>outbuf, "<document>" emit_field(outbuf, 'identifier', t.name) for k in t.d: v = getattr(t.d, k) emit_field(outbuf, k, v) if k not in excluded_fields: emit_field(outb...
8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c/logdaemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 67, 2434, 12, 659, 4385, 16, 268, 4672, 1815, 268, 18, 529, 486, 316, 3258, 67, 15156, 364, 17987, 316, 7707, 955, 2187, 296, 5644, 11, 4672, 1815, 17987, 486, 316, 268, 18, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 67, 2434, 12, 659, 4385, 16, 268, 4672, 1815, 268, 18, 529, 486, 316, 3258, 67, 15156, 364, 17987, 316, 7707, 955, 2187, 296, 5644, 11, 4672, 1815, 17987, 486, 316, 268, 18, 72, ...
repl, pattern = key
def _compile_repl(*key): # internal: compile replacement pattern repl, pattern = key return sre_parse.parse_template(repl, pattern)
98c57a8120d5b6f09e21154cee3c2967e08836f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/98c57a8120d5b6f09e21154cee3c2967e08836f9/re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 67, 26745, 30857, 856, 4672, 468, 2713, 30, 4074, 6060, 1936, 327, 272, 266, 67, 2670, 18, 2670, 67, 3202, 12, 26745, 16, 1936, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 67, 26745, 30857, 856, 4672, 468, 2713, 30, 4074, 6060, 1936, 327, 272, 266, 67, 2670, 18, 2670, 67, 3202, 12, 26745, 16, 1936, 13, 225, 2, -100, -100, -100, -100, -100, -1...
cc = "/usr/bin/cc" cflags = "-g -mt -xldscope=symbolic "
CCompiler = "/usr/bin/CCompiler" CCompilerFlags = "-g -mt -xldscope=symbolic "
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Config Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. vms = StringTagged(Config, "VMS") # pick the compiler if Config == "ALPHA32...
c35fdb46ab081a89157be8ee1623b9566eef3714 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/c35fdb46ab081a89157be8ee1623b9566eef3714/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 1903, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
if (sysconfig.get_config_var('HAVE_GETSPNAM') or sysconfig.get_config_var('HAVE_GETSPENT')):
if (config_h_vars.get('HAVE_GETSPNAM', False) or config_h_vars.get('HAVE_GETSPENT', False)):
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
4454a1ff8453c12739c65da21e00927ea3bf9ad9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4454a1ff8453c12739c65da21e00927ea3bf9ad9/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
self.revision = revision def view_diff_previous_revision(self, widget, data=None): rev_item = self.revision
self.revisions = revisions def view_diff_over_revisions(self, widget, data=None): rev_first = self.revisions[0]["revision"].value - 1 rev_last = self.revisions[-1]["revision"].value
def __init__(self, caller, vcs_client, paths, revision): self.caller = caller self.vcs_client = vcs_client self.paths = paths self.revision = revision
254cf90c673c32fc3faafcde068598e8de07eeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/254cf90c673c32fc3faafcde068598e8de07eeee/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4894, 16, 20255, 67, 2625, 16, 2953, 16, 6350, 4672, 365, 18, 16140, 273, 4894, 365, 18, 18982, 67, 2625, 273, 20255, 67, 2625, 365, 18, 4481, 273, 2953,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4894, 16, 20255, 67, 2625, 16, 2953, 16, 6350, 4672, 365, 18, 16140, 273, 4894, 365, 18, 18982, 67, 2625, 273, 20255, 67, 2625, 365, 18, 4481, 273, 2953,...
if device=="-1" or device=="CPU":
if device<0:
def use(device=config.device): if device.startswith('gpu'): device = int(device[3:]) elif device == 'cpu': device = -1 else: raise ValueError("Invalid device identifier", device) if use.device_number is None: # No successful call to use() has been made yet if device=="-1" or device=="CPU": return if device in [None,""]...
ae61316779a05c49ea57116d167e0c3bfc756100 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/ae61316779a05c49ea57116d167e0c3bfc756100/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 12, 5964, 33, 1425, 18, 5964, 4672, 309, 2346, 18, 17514, 1918, 2668, 23162, 11, 4672, 2346, 273, 509, 12, 5964, 63, 23, 30, 5717, 1327, 2346, 422, 296, 11447, 4278, 2346, 273, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 12, 5964, 33, 1425, 18, 5964, 4672, 309, 2346, 18, 17514, 1918, 2668, 23162, 11, 4672, 2346, 273, 509, 12, 5964, 63, 23, 30, 5717, 1327, 2346, 422, 296, 11447, 4278, 2346, 273, 30...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 137) else quickfix.DoubleField.__init__(self, 137, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 5958, 27, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 5958, 27, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
return self.__min_col_idx
return self.__max_col_idx
def get_max_col(self): return self.__min_col_idx
6a5a9478c89af304e7172cb2edfdbd8b23b5e76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10900/6a5a9478c89af304e7172cb2edfdbd8b23b5e76d/Row.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1896, 67, 1293, 12, 2890, 4672, 327, 365, 16186, 1154, 67, 1293, 67, 3465, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1896, 67, 1293, 12, 2890, 4672, 327, 365, 16186, 1154, 67, 1293, 67, 3465, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return self._executeSingleFileCatalogFunction(lfn,'exists',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'exists',catalogs=catalogs) def getCatalogIsFile(self,lfn,singleFile=False,catalogs=[]):
return self._executeSingleFileCatalogFunction( lfn, 'exists', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'exists', catalogs=catalogs ) def getCatalogIsFile( self, lfn, singleFile=False, catalogs=[] ):
def getCatalogExists(self,lfn,singleFile=False,catalogs=[]): """ Determine whether the path is registered in the FileCatalog 'lfn' is the files to check (can be a single file or list of lfns) """ if singleFile: return self._executeSingleFileCatalogFunction(lfn,'exists',catalogs=catalogs) else: return self._executeFile...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 4392, 4002, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 10229, 2856, 326, 589, 353, 4104, 316, 326, 1387, 9769, 225, 296, 80, 429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1927, 4392, 4002, 12, 2890, 16, 80, 4293, 16, 7526, 812, 33, 8381, 16, 2574, 287, 14072, 33, 8526, 4672, 3536, 10229, 2856, 326, 589, 353, 4104, 316, 326, 1387, 9769, 225, 296, 80, 429...
self.layout.move(self.slideshow_controls, x, y)
self.layout.move(self.slideshow_controls, 5, y)
def slideshow_controls_hide(self): if self.show_slideshow_controls == True: self.show_slideshow_controls = False
3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/3e8fa76c3efdb460181243d94a47b6f7bf8c6a2d/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30119, 13606, 67, 24350, 67, 11248, 12, 2890, 4672, 309, 365, 18, 4500, 67, 2069, 4369, 13606, 67, 24350, 422, 1053, 30, 365, 18, 4500, 67, 2069, 4369, 13606, 67, 24350, 273, 1083, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30119, 13606, 67, 24350, 67, 11248, 12, 2890, 4672, 309, 365, 18, 4500, 67, 2069, 4369, 13606, 67, 24350, 422, 1053, 30, 365, 18, 4500, 67, 2069, 4369, 13606, 67, 24350, 273, 1083, 2, ...
raise TypeError('%r is not a code object' % co)
raise TypeError('{!r} is not a code object'.format(co))
def getargs(co): """Get information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): raise Type...
c567360ffe4e00e237d6ebab3f79db906e9a807d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c567360ffe4e00e237d6ebab3f79db906e9a807d/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1968, 12, 2894, 4672, 3536, 967, 1779, 2973, 326, 1775, 8494, 635, 279, 981, 733, 18, 225, 935, 992, 9198, 854, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 3631, 1625, 296, 196...
time.sleep(int(sleep)) if (noQuit == True):
loopguard = loopguard + 1 if (shouldCloseSocket == True):
def sendCMD(self, cmdline, newline = True, sleep = 0): promptre = re.compile(self.prompt_regex + '$')
02223128cd056cb013609966605554a83eff291d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/02223128cd056cb013609966605554a83eff291d/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 19473, 12, 2890, 16, 22877, 16, 9472, 273, 1053, 16, 5329, 273, 374, 4672, 6866, 266, 273, 283, 18, 11100, 12, 2890, 18, 13325, 67, 7584, 397, 3365, 6134, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 19473, 12, 2890, 16, 22877, 16, 9472, 273, 1053, 16, 5329, 273, 374, 4672, 6866, 266, 273, 283, 18, 11100, 12, 2890, 18, 13325, 67, 7584, 397, 3365, 6134, 2, -100, -100, -100, -1...
id = self.tk.call('winfo', 'id', self.frame) self.frame_id = '%s' %int(id, 16) return self.frame_id
_id = self.tk.call('winfo', 'id', self.frame) if program == 'mplayer': return _id else: return '%s' %int(_id, 16)
def get_id(self): """Create and pack container frame, then get X11 identifier for it (converted to base 10). Return the identifier """ self.frame = Frame(self.master, container=1, borderwidth=1, width=self.width, height=self.height) id = self.tk.call('winfo', 'id', self.frame) self.frame_id = '%s' %int(id, 16) return s...
c5f7e6b8a9a7745fd9188485d42c7137ae9ae749 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4675/c5f7e6b8a9a7745fd9188485d42c7137ae9ae749/appcontainer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 4672, 3536, 1684, 471, 2298, 1478, 2623, 16, 1508, 336, 1139, 2499, 2756, 364, 518, 261, 6283, 329, 358, 1026, 1728, 2934, 2000, 326, 2756, 3536, 365, 18, 3789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 4672, 3536, 1684, 471, 2298, 1478, 2623, 16, 1508, 336, 1139, 2499, 2756, 364, 518, 261, 6283, 329, 358, 1026, 1728, 2934, 2000, 326, 2756, 3536, 365, 18, 3789, ...
atom.AtomBase._TakeAttributeFromElementTree(self, attribute,
atom.AtomBase._TakeAttributeFromElementTree(self, attribute,
def _TakeAttributeFromElementTree(self, attribute, element_tree): if attribute == 'value': self.value = element_tree.attrib[attribute] del element_tree.attrib[attribute] else: atom.AtomBase._TakeAttributeFromElementTree(self, attribute, element_tree)
b441c0ccc7da55ff31f704dc6779ec676da299f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/b441c0ccc7da55ff31f704dc6779ec676da299f1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13391, 1499, 1265, 1046, 2471, 12, 2890, 16, 1566, 16, 930, 67, 3413, 4672, 309, 1566, 422, 296, 1132, 4278, 365, 18, 1132, 273, 930, 67, 3413, 18, 14588, 63, 4589, 65, 1464, 930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13391, 1499, 1265, 1046, 2471, 12, 2890, 16, 1566, 16, 930, 67, 3413, 4672, 309, 1566, 422, 296, 1132, 4278, 365, 18, 1132, 273, 930, 67, 3413, 18, 14588, 63, 4589, 65, 1464, 930,...
_log(logging.getLogger(log).exception, msg, args, tb=kwargs.get("tb"))
log = logging.getLogger(logname) if log.isEnabledFor(logging.EXCEPTION): _log(log.exception, msg, args, tb=kwargs.get("tb"))
def exception (log, msg, *args, **kwargs): """ Log an exception. return: None """ _log(logging.getLogger(log).exception, msg, args, tb=kwargs.get("tb"))
faf1ea81ce85e52a6f731442dc751ffe1189caab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/faf1ea81ce85e52a6f731442dc751ffe1189caab/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 261, 1330, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 392, 1520, 18, 225, 327, 30, 599, 3536, 613, 273, 2907, 18, 588, 3328, 12, 1330, 529, 13, 309, 613, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 261, 1330, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 392, 1520, 18, 225, 327, 30, 599, 3536, 613, 273, 2907, 18, 588, 3328, 12, 1330, 529, 13, 309, 613, 18, 29...
print exportDict
def export_template(self, exportType='xds'): try: exporter = __import__(exportType.lower()+'_export') except: raise XIOError, "Can't load %s exporter" % (exportType) exportDict = self.export(exportType)
6a4ab03408b1b7ecb8e6859ea5a8c046540e11a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4374/6a4ab03408b1b7ecb8e6859ea5a8c046540e11a7/XIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 3202, 12, 2890, 16, 3359, 559, 2218, 92, 2377, 11, 4672, 775, 30, 16204, 273, 1001, 5666, 972, 12, 6530, 559, 18, 8167, 1435, 6797, 67, 6530, 6134, 1335, 30, 1002, 1139, 4294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 3202, 12, 2890, 16, 3359, 559, 2218, 92, 2377, 11, 4672, 775, 30, 16204, 273, 1001, 5666, 972, 12, 6530, 559, 18, 8167, 1435, 6797, 67, 6530, 6134, 1335, 30, 1002, 1139, 4294...
return datetime.datetime(dt[0], dt[1], dt[2], dt[3], dt[4], dt[5], 0, tz)
return datetime(dt[0], dt[1], dt[2], dt[3], dt[4], dt[5], 0, tz)
def decode(value): # Remove the day name part if exists str = value.split(',')[-1].strip() # Split date and timezone part if exists datetime_parts = str.split(' ') date = ' '.join(datetime_parts[0:4]) if len(datetime_parts) > 4: timezone = datetime_parts[4] else: # UTC is the default timezone timezone = 'UTC' dt = strp...
de0550af8b8d14401327d7ab8661d54b6765c9c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/de0550af8b8d14401327d7ab8661d54b6765c9c5/datetime_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 1132, 4672, 468, 3581, 326, 2548, 508, 1087, 309, 1704, 609, 273, 460, 18, 4939, 12, 2187, 6134, 18919, 21, 8009, 6406, 1435, 468, 5385, 1509, 471, 6371, 1087, 309, 1704, 3314,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 1132, 4672, 468, 3581, 326, 2548, 508, 1087, 309, 1704, 609, 273, 460, 18, 4939, 12, 2187, 6134, 18919, 21, 8009, 6406, 1435, 468, 5385, 1509, 471, 6371, 1087, 309, 1704, 3314,...
uri = self.MakeResourceUri(resource_id)
uri = self.MakeResourceFeedUri(resource_id)
def get_resource(self, uri=None, resource_id=None, **kwargs): """Fetches a single calendar resource by resource ID.
3552ba0788d5da57d9257c8ebdd76cdf2ec2efc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/3552ba0788d5da57d9257c8ebdd76cdf2ec2efc8/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3146, 12, 2890, 16, 2003, 33, 7036, 16, 1058, 67, 350, 33, 7036, 16, 2826, 4333, 4672, 3536, 14288, 279, 2202, 5686, 1058, 635, 1058, 1599, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3146, 12, 2890, 16, 2003, 33, 7036, 16, 1058, 67, 350, 33, 7036, 16, 2826, 4333, 4672, 3536, 14288, 279, 2202, 5686, 1058, 635, 1058, 1599, 18, 2, -100, -100, -100, -100, -100...
security.declareProtected(permissions.ModifyPortalContent,
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
def edit(self, instance, name, value): if self.allow(name): instance[name] = value
b9a35d44b511b5a532334179a24412a4695367d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9a35d44b511b5a532334179a24412a4695367d1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 791, 16, 508, 16, 460, 4672, 309, 365, 18, 5965, 12, 529, 4672, 791, 63, 529, 65, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2890, 16, 791, 16, 508, 16, 460, 4672, 309, 365, 18, 5965, 12, 529, 4672, 791, 63, 529, 65, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
txt=lambda *a, **kw: TextTemplate(*a, autoescape=self._autoescape_text, **kw),
txt=lambda *a, **kw: TextTemplate(autoescape=self._autoescape_text, *a, **kw),
def __init__(self, base, reload=True, force_mode=None, autoescape_text=False): super(FileLoader, self).__init__() from kajiki import XMLTemplate, TextTemplate self.base = base self._timestamps = {} self._reload = reload self._force_mode = force_mode self._autoescape_text = autoescape_text self.extension_map = dict( txt...
b7a6d89e857eb5098ce4716077afa884d6378379 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8983/b7a6d89e857eb5098ce4716077afa884d6378379/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1026, 16, 7749, 33, 5510, 16, 2944, 67, 3188, 33, 7036, 16, 3656, 6939, 67, 955, 33, 8381, 4672, 2240, 12, 22283, 16, 365, 2934, 972, 2738, 972, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1026, 16, 7749, 33, 5510, 16, 2944, 67, 3188, 33, 7036, 16, 3656, 6939, 67, 955, 33, 8381, 4672, 2240, 12, 22283, 16, 365, 2934, 972, 2738, 972, 1435, ...
import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\'
root = os.path.splitdrive(os.path.abspath(path))[0] + '\\'
def get_file_system(path): import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\' import ctypes kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)): return buf.value
b4e0e7a95510746236aa62ded4544d22832d2af5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/b4e0e7a95510746236aa62ded4544d22832d2af5/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 4299, 12, 803, 4672, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 5113, 803, 12, 803, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 5536, 1578, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 4299, 12, 803, 4672, 1365, 273, 1140, 18, 803, 18, 4939, 25431, 12, 538, 18, 803, 18, 5113, 803, 12, 803, 3719, 63, 20, 65, 397, 5282, 1930, 6983, 5536, 1578, 273, ...
return iter(self.decls)
return iter(self.declarations)
def __iter__( self ): return iter(self.decls)
5304bf5ef089c5cb9aaa062c848d96c7930651a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7398/5304bf5ef089c5cb9aaa062c848d96c7930651a5/mdecl_wrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 365, 262, 30, 327, 1400, 12, 2890, 18, 323, 6429, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 365, 262, 30, 327, 1400, 12, 2890, 18, 323, 6429, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
command = [lambda:singleclick.add_subscription_url('miro:', 'application/x-miro', url), "Open Miro URL"]
eventloop.addIdle(lambda:singleclick.add_subscription_url('miro:', 'application/x-miro', url), "Open Miro URL")
def openURL_withReplyEvent_(self, event, replyEvent): keyDirectObject = struct.unpack(">i", "----")[0] url = event.paramDescriptorForKeyword_(keyDirectObject).stringValue().decode('utf8')
018bbc7d1624aa1bbb3fadb11711c555376ee49b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/018bbc7d1624aa1bbb3fadb11711c555376ee49b/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1785, 67, 1918, 7817, 1133, 67, 12, 2890, 16, 871, 16, 4332, 1133, 4672, 498, 5368, 921, 273, 1958, 18, 17309, 2932, 34, 77, 3113, 315, 553, 7923, 63, 20, 65, 880, 273, 871, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1785, 67, 1918, 7817, 1133, 67, 12, 2890, 16, 871, 16, 4332, 1133, 4672, 498, 5368, 921, 273, 1958, 18, 17309, 2932, 34, 77, 3113, 315, 553, 7923, 63, 20, 65, 880, 273, 871, 18...
"""
"""
def flimage_enable_sgi(): """ flimage_enable_sgi() """ _flimage_enable_sgi()
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 7589, 67, 17537, 13332, 3536, 1183, 2730, 67, 7589, 67, 17537, 1435, 3536, 225, 389, 2242, 2730, 67, 7589, 67, 17537, 1435, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 7589, 67, 17537, 13332, 3536, 1183, 2730, 67, 7589, 67, 17537, 1435, 3536, 225, 389, 2242, 2730, 67, 7589, 67, 17537, 1435, 282, 2, -100, -100, -100, -100, -100, -100, -1...
else: self.addCurrentServiceToBouquet(self.csel.bouquet_root)
def addServiceToBouquetSelected(self): bouquets = self.csel.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.bsel = self.session.openWithCallback(self.bouquetSelClosed, BouquetSelector, bouquets, self.addCurrentServiceToBouquet) elif cnt == 1: # add to only on...
9271d9f1d01d3f9df9987445f80929b595cb4926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/9271d9f1d01d3f9df9987445f80929b595cb4926/ChannelSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1179, 774, 38, 1395, 28357, 7416, 12, 2890, 4672, 800, 89, 372, 2413, 273, 365, 18, 71, 1786, 18, 588, 38, 1395, 28357, 682, 1435, 309, 800, 89, 372, 2413, 353, 599, 30, 7599, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1179, 774, 38, 1395, 28357, 7416, 12, 2890, 4672, 800, 89, 372, 2413, 273, 365, 18, 71, 1786, 18, 588, 38, 1395, 28357, 682, 1435, 309, 800, 89, 372, 2413, 353, 599, 30, 7599, 2...
option.subControls = ( Qt.QStyle.SC_ScrollBarAddLine|Qt.QStyle.SC_ScrollBarSubLine
option.subControls = ( Qt.QStyle.SC_ScrollBarAddLine|Qt.QStyle.SC_ScrollBarSubLine|
def paintEvent(self, event) : if len(self.highlight_positions_list) > 0 : painter = Qt.QPainter(self)
332ea461e32ffaf9424d70deaaa91ca1fc97426f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14668/332ea461e32ffaf9424d70deaaa91ca1fc97426f/ChromeScrollBar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 1133, 12, 2890, 16, 871, 13, 294, 309, 562, 12, 2890, 18, 15978, 67, 12388, 67, 1098, 13, 405, 374, 294, 21295, 273, 7354, 18, 53, 15775, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 1133, 12, 2890, 16, 871, 13, 294, 309, 562, 12, 2890, 18, 15978, 67, 12388, 67, 1098, 13, 405, 374, 294, 21295, 273, 7354, 18, 53, 15775, 12, 2890, 13, 2, -100, -100, -100, -1...
sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%SAGE_ROOT)
sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%SAGE_ROOT)
def attach(self, filename): r""" Attach the given file to the running instance of MAGMA.
06891bc866b47f420feaea6eefc08baf44cc4cb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/06891bc866b47f420feaea6eefc08baf44cc4cb9/magma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 1544, 4672, 436, 8395, 8659, 326, 864, 585, 358, 326, 3549, 791, 434, 490, 1781, 5535, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 1544, 4672, 436, 8395, 8659, 326, 864, 585, 358, 326, 3549, 791, 434, 490, 1781, 5535, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
returns True
returns True
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta...
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
TargetAdd('maya2egg'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS_PYSTUB)
if sys.platform == "win32": TargetAdd('maya2egg'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS_PYSTUB) else: TargetAdd('maya2egg'+VNUM+'-wrapped.exe', input=COMMON_EGG2X_LIBS)
def CreatePandaVersionFiles(): version1=int(VERSION.split(".")[0]) version2=int(VERSION.split(".")[1]) version3=int(VERSION.split(".")[2]) nversion=version1*1000000+version2*1000+version3 pandaversion_h = PANDAVERSION_H.replace("VERSION1",str(version1)) pandaversion_h = pandaversion_h.replace("VERSION2",str(version2))...
363855b1b43c4ed8ea04da225cb9e53b61c3b55b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7242/363855b1b43c4ed8ea04da225cb9e53b61c3b55b/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 52, 464, 69, 1444, 2697, 13332, 1177, 21, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 20, 5717, 1177, 22, 33, 474, 12, 5757, 18, 4939, 2932, 1199, 25146, 21, 5717, 1177, 23, ...
if 0 : buildPackage( "ladspa-sdk",
if 1 : buildPackage( "ladspa-sdk",
def buildPackage(name, uri, checkVersion, downloadUri, tarballName, buildCommand, srcdir=None, deps="", pinnedVersion = None, ) : print "Module:", name subst = dict( sandbox = sandbox, prefix = prefix, target = target, sfmirror = sfmirror, apachemirror = apachemirror, name = name, pinned = pinnedVersion if pinnedVersio...
9516624bdaf457fb48cb287da6115af5d509bbca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/9516624bdaf457fb48cb287da6115af5d509bbca/setup_mingw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 2261, 12, 529, 16, 2003, 16, 866, 1444, 16, 4224, 3006, 16, 29441, 461, 16, 1361, 2189, 16, 1705, 1214, 33, 7036, 16, 8740, 1546, 3113, 26193, 1444, 273, 599, 16, 262, 294, 1172,...
'Height': IntConstrPropEdit
'Height': IntConstrPropEdit,
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors = {'Window': SizerWinEnumConstrPropEdit, 'Sizer': SizerEnumConstrPropEdit, 'Proportion': IntConstrPropEdit, 'Flag': SizerFlagsConstrPropEdit, 'Border': IntConstrPropEdit, 'Width': ...
f1282503f876232c6a9f48c3d5b7a52bbc481a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1282503f876232c6a9f48c3d5b7a52bbc481a8d/SizerCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 8281, 264, 16, 982, 2945, 304, 285, 16, 6414, 4672, 2200, 9081, 39, 16186, 2738, 972, 12, 2890, 16, 508, 16, 8281, 264, 16, 982, 2945, 304, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 8281, 264, 16, 982, 2945, 304, 285, 16, 6414, 4672, 2200, 9081, 39, 16186, 2738, 972, 12, 2890, 16, 508, 16, 8281, 264, 16, 982, 2945, 304, 28...
if v[0] != 32 or not self.auto_open:
if v.message != 32 or not self.auto_open:
def request(self, method, url, body=None, headers={}): """Send a complete request to the server."""
6f8fe151da16f43fc5d0c5167fc3d9432f993f70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/6f8fe151da16f43fc5d0c5167fc3d9432f993f70/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 12938, 4672, 3536, 3826, 279, 3912, 590, 358, 326, 1438, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Unparser(tree)
Unparser(tree, output) def testdir(a): try: names = [n for n in os.listdir(a) if n.endswith('.py')] except OSError: print >> sys.stderr, "Directory not readable: %s" % a else: for n in names: fullname = os.path.join(a, n) if os.path.isfile(fullname): output = cStringIO.StringIO() print 'Testing %s' % fullname try: r...
def roundtrip(filename): source = open(filename).read() tree = compile(source, filename, "exec", 0x400) Unparser(tree)
652266b90a3285ed5c943454dddd1ea5476a9f35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/652266b90a3285ed5c943454dddd1ea5476a9f35/unparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 25125, 12, 3459, 4672, 1084, 273, 1696, 12, 3459, 2934, 896, 1435, 2151, 273, 4074, 12, 3168, 16, 1544, 16, 315, 4177, 3113, 374, 92, 16010, 13, 1351, 4288, 12, 3413, 13, 225, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 25125, 12, 3459, 4672, 1084, 273, 1696, 12, 3459, 2934, 896, 1435, 2151, 273, 4074, 12, 3168, 16, 1544, 16, 315, 4177, 3113, 374, 92, 16010, 13, 1351, 4288, 12, 3413, 13, 225, 2,...
imdb_lib = True
imdb_lib = True
def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr)
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, -100, -100, -100, -100, -100, -100, -...
self.master.mousePress(event.pos().x(), event.pos().y())
self.master.mousePress(event.scenePos().x(), event.scenePos().y())
def mousePressEvent (self, event): self.master.mousePress(event.pos().x(), event.pos().y())
92033502915dedeed7f1c1f033997cc39844711c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/92033502915dedeed7f1c1f033997cc39844711c/OWDistanceMap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 11840, 1133, 261, 2890, 16, 871, 4672, 365, 18, 7525, 18, 11697, 11840, 12, 2575, 18, 917, 7675, 92, 9334, 871, 18, 917, 7675, 93, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 11840, 1133, 261, 2890, 16, 871, 4672, 365, 18, 7525, 18, 11697, 11840, 12, 2575, 18, 917, 7675, 92, 9334, 871, 18, 917, 7675, 93, 10756, 2, -100, -100, -100, -100, -100, -100, -...
{}).setdefault(model, {}).update( self._cache[model][record_id])
{}).setdefault(model, {})[record_id] = \ self._cache[model][record_id]
def setLang(self, lang): self._context = self._context.copy() prev_lang = self._context.get('language') or 'en_US' self._context['language'] = lang for model in self._cache: for record_id in self._cache[model]: self._language_cache.setdefault(prev_lang, {}).setdefault(model, {}).update( self._cache[model][record_id]) i...
7fa5c6ce673b4937e6c483ed703f942b305600dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/7fa5c6ce673b4937e6c483ed703f942b305600dc/browse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7275, 12, 2890, 16, 3303, 4672, 365, 6315, 2472, 273, 365, 6315, 2472, 18, 3530, 1435, 2807, 67, 4936, 273, 365, 6315, 2472, 18, 588, 2668, 4923, 6134, 578, 296, 275, 67, 3378, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 7275, 12, 2890, 16, 3303, 4672, 365, 6315, 2472, 273, 365, 6315, 2472, 18, 3530, 1435, 2807, 67, 4936, 273, 365, 6315, 2472, 18, 588, 2668, 4923, 6134, 578, 296, 275, 67, 3378, 11...
@unittest.skipIf(sys.flags.optimize >= 1,
@unittest.skipIf(sys.flags.optimize >= 2,
def test_property_decorator_doc(self): base = PropertyDocBase() sub = PropertyDocSub() self.assertEqual(base.__class__.spam.__doc__, "spam spam spam") self.assertEqual(sub.__class__.spam.__doc__, "spam spam spam")
989594a814ac9c89743a605a2db96c6482705510 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/989594a814ac9c89743a605a2db96c6482705510/test_property.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4468, 67, 19142, 67, 2434, 12, 2890, 4672, 1026, 273, 4276, 1759, 2171, 1435, 720, 273, 4276, 1759, 1676, 1435, 365, 18, 11231, 5812, 12, 1969, 16186, 1106, 25648, 1752, 301, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4468, 67, 19142, 67, 2434, 12, 2890, 4672, 1026, 273, 4276, 1759, 2171, 1435, 720, 273, 4276, 1759, 1676, 1435, 365, 18, 11231, 5812, 12, 1969, 16186, 1106, 25648, 1752, 301, 1...
npchrstr = self.settings['General']['Non-printing Character Representation'] npchrstr = re.sub('%keyname%', event.Key, npchrstr) npchrstr = re.sub('%scancode%', event.ScanCode, npchrstr) npchrstr = re.sub('%vkcode%', event.KeyID, npchrstr)
def ParseEventValue(self, event): '''Pass the event ascii value through the requisite filters. Returns the result as a string. ''' if chr(event.Ascii) == self.settings['General']['Log File Field Separator']: return('[sep_key]') #translate backspace into text string, if option is set. if event.Ascii == 8 and self.setti...
01e0c0cca2f42daf828fcd59e2a6d786e413242d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/01e0c0cca2f42daf828fcd59e2a6d786e413242d/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1133, 620, 12, 2890, 16, 871, 4672, 9163, 6433, 326, 871, 11384, 460, 3059, 326, 10780, 291, 1137, 3415, 18, 2860, 326, 563, 487, 279, 533, 18, 9163, 309, 4513, 12, 2575, 18, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 1133, 620, 12, 2890, 16, 871, 4672, 9163, 6433, 326, 871, 11384, 460, 3059, 326, 10780, 291, 1137, 3415, 18, 2860, 326, 563, 487, 279, 533, 18, 9163, 309, 4513, 12, 2575, 18, 213...
self.job.stdout.restore()
self.job.logging.restore()
def run_once(self, testdir = None, filesize='100M', type='write', pattern='random'): cmd = os.path.join(self.srcdir, 'src/spew') if not testdir: testdir = self.tmpdir tmpfile = os.path.join(testdir, 'spew-test.%d' % os.getpid()) results = os.path.join(self.resultsdir, 'stdout.%d' % self.iteration) args = '--%s -p %s -b...
45745701a61869dfefa3a869b4545d8443779592 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/45745701a61869dfefa3a869b4545d8443779592/spew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1842, 1214, 273, 599, 16, 14104, 2218, 6625, 49, 2187, 618, 2218, 2626, 2187, 1936, 2218, 9188, 11, 4672, 1797, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 8243, 12, 2890, 16, 1842, 1214, 273, 599, 16, 14104, 2218, 6625, 49, 2187, 618, 2218, 2626, 2187, 1936, 2218, 9188, 11, 4672, 1797, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18...
config = config.device type = "device" if type == "device": config = config.config type = "config"
config = obj.device.config elif type == "device": config = obj.config
def doReloadConfig (self, reallyReload="dunno"): if reallyReload == "No": return try: node = self.getSelection() except SelectionError: return type, config = self.node_get_row_data (node) if type == "app": config = config.device type = "device" if type == "device": config = config.config type = "config" if reallyReload...
1f1687ed3818ff19c17f12c3a39c250b4e149397 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/1f1687ed3818ff19c17f12c3a39c250b4e149397/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 13013, 809, 261, 2890, 16, 8654, 13013, 1546, 72, 318, 2135, 6, 4672, 309, 8654, 13013, 422, 315, 2279, 6877, 327, 775, 30, 756, 273, 365, 18, 588, 6233, 1435, 1335, 12977, 668, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 13013, 809, 261, 2890, 16, 8654, 13013, 1546, 72, 318, 2135, 6, 4672, 309, 8654, 13013, 422, 315, 2279, 6877, 327, 775, 30, 756, 273, 365, 18, 588, 6233, 1435, 1335, 12977, 668, 3...
def svn_export(folder):
def get_and_create_dist_folder(folder): """Formats a folder name for version-specific distribution folder and creates the folder.""" dist_folder = os.path.join(dist_root_folder, folder) os.mkdir(dist_folder) return dist_folder def get_src_dist_folder(dist_folder, folder): """Format a source distribution folder path."...
def svn_export(folder): """Exports sources to distribution folder.""" exp_folder = os.path.join(dist_folder, folder) os.mkdir(exp_folder) src_folder = os.path.join(exp_folder, folder + '-src') print 'Exporting sources to ' + src_folder call([svn_binary, 'export', '--non-interactive', '.', src_folder] )
6a82135d57e76d11e14e9c34a27a449f6ea5d2d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5857/6a82135d57e76d11e14e9c34a27a449f6ea5d2d1/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 464, 67, 2640, 67, 4413, 67, 5609, 12, 5609, 4672, 3536, 8976, 279, 3009, 508, 364, 1177, 17, 12524, 7006, 3009, 471, 3414, 326, 3009, 12123, 225, 2411, 67, 5609, 273, 1140, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 464, 67, 2640, 67, 4413, 67, 5609, 12, 5609, 4672, 3536, 8976, 279, 3009, 508, 364, 1177, 17, 12524, 7006, 3009, 471, 3414, 326, 3009, 12123, 225, 2411, 67, 5609, 273, 1140, 1...
res['balanceinit'] = 0
res['balanceinit'] = 0.0
# def cmp_code(x, y):
cd6bad26b43428cf1ed3e8c02c4f5c2db7f08034 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/cd6bad26b43428cf1ed3e8c02c4f5c2db7f08034/account_balance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 5411, 1652, 9411, 67, 710, 12, 92, 16, 677, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 5411, 1652, 9411, 67, 710, 12, 92, 16, 677, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Reference to out, where None specifies a copy of the original array a. Round to the specified number of decimals. When 'decimals' is negative it specifies the number of positions to the left of the decimal point. The real and imaginary parts of complex numbers are rounded separately. Nothing is done if the array is no...
Reference to out, where None specifies a copy of the original array a. Round to the specified number of decimals. When 'decimals' is negative it specifies the number of positions to the left of the decimal point. The real and imaginary parts of complex numbers are rounded separately. Nothing is done if the array is n...
def round_(a, decimals=0, out=None): """Returns reference to result. Copies a and rounds to 'decimals' places. Keyword arguments: decimals -- number of decimal places to round to (default 0). out -- existing array to use for output (default copy of a). Returns: Reference to out, where None specifies a copy of the ori...
fe2f8b811f8f87475f51396eca9a848d2746ab2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/fe2f8b811f8f87475f51396eca9a848d2746ab2b/fromnumeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 67, 12, 69, 16, 15105, 33, 20, 16, 596, 33, 7036, 4672, 3536, 1356, 2114, 358, 563, 18, 28506, 606, 279, 471, 21196, 358, 296, 31734, 11, 12576, 18, 225, 18317, 1775, 30, 15105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3643, 67, 12, 69, 16, 15105, 33, 20, 16, 596, 33, 7036, 4672, 3536, 1356, 2114, 358, 563, 18, 28506, 606, 279, 471, 21196, 358, 296, 31734, 11, 12576, 18, 225, 18317, 1775, 30, 15105, ...
indent = Span.unit_convert(tag_css['text-indent'], self.profile.dpi)
indent = Span.unit_convert(tag_css['text-indent'], self.profile.dpi, pts=True)
def update_css(ncss): for key in ncss.keys(): if self.css.has_key(key): self.css[key].update(ncss[key]) else: self.css[key] = ncss[key]
2350a75c228a9cdea7031f5f838e095cf001b470 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/2350a75c228a9cdea7031f5f838e095cf001b470/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5212, 12, 82, 5212, 4672, 364, 498, 316, 290, 5212, 18, 2452, 13332, 309, 365, 18, 5212, 18, 5332, 67, 856, 12, 856, 4672, 365, 18, 5212, 63, 856, 8009, 2725, 12, 82, 5212,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5212, 12, 82, 5212, 4672, 364, 498, 316, 290, 5212, 18, 2452, 13332, 309, 365, 18, 5212, 18, 5332, 67, 856, 12, 856, 4672, 365, 18, 5212, 63, 856, 8009, 2725, 12, 82, 5212,...
self.strategy.tpc_abort()
strategy = self.strategy strategy.tpc_abort()
def tpc_abort(self, id): if not self._check_tid(id): return self.strategy.tpc_abort() self._transaction = None self.strategy = None self._handle_waiting()
f89b404bcec6e43c49a946f2141591dce1efa810 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/f89b404bcec6e43c49a946f2141591dce1efa810/StorageServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2436, 67, 18623, 12, 2890, 16, 612, 4672, 309, 486, 365, 6315, 1893, 67, 18081, 12, 350, 4672, 327, 6252, 273, 365, 18, 14914, 6252, 18, 88, 2436, 67, 18623, 1435, 365, 6315, 7958...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2436, 67, 18623, 12, 2890, 16, 612, 4672, 309, 486, 365, 6315, 1893, 67, 18081, 12, 350, 4672, 327, 6252, 273, 365, 18, 14914, 6252, 18, 88, 2436, 67, 18623, 1435, 365, 6315, 7958...
TargetAdd('PandaModules.py', input='libp3direct.dll')
if (PkgSkip("DIRECT")==0): TargetAdd('PandaModules.py', input='libp3direct.dll')
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
b717dfefdcc71abdc2eb4a8c2579c4bd5a9a4205 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b717dfefdcc71abdc2eb4a8c2579c4bd5a9a4205/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'value': fields.float('Value', digits=(16, int(config['price_accuracy']))),
'value': fields.float('Value', digits=(16, 4)),
def execute_function(self, cr, uid, id, value, context): """ self: pointer to self object cr: cursor to database uid: user id of current executer """
21786ff375c69b960b487a69bd1343b8b77f3dec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/21786ff375c69b960b487a69bd1343b8b77f3dec/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 915, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 460, 16, 819, 4672, 3536, 365, 30, 4407, 358, 365, 733, 4422, 30, 3347, 358, 2063, 4555, 30, 729, 612, 434, 783, 1196, 26812...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 915, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 460, 16, 819, 4672, 3536, 365, 30, 4407, 358, 365, 733, 4422, 30, 3347, 358, 2063, 4555, 30, 729, 612, 434, 783, 1196, 26812...
x, y = self.cr.user_to_device (x, y) w, h = self.cr.user_to_device_distance (w, h)
x, y, w, h = self._user_to_device_box (x, y, w, h)
def allocate (self, x, y, w, h): x, y = self.cr.user_to_device (x, y) w, h = self.cr.user_to_device_distance (w, h) self.extents = _extents_union (self.extents, [x, y, w, h])
a1f2567529166c613d13b3c01e4a40cf75dcbc50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8139/a1f2567529166c613d13b3c01e4a40cf75dcbc50/slippy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10101, 261, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 4672, 619, 16, 677, 16, 341, 16, 366, 273, 365, 6315, 1355, 67, 869, 67, 5964, 67, 2147, 261, 92, 16, 677, 16, 341, 16, 366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10101, 261, 2890, 16, 619, 16, 677, 16, 341, 16, 366, 4672, 619, 16, 677, 16, 341, 16, 366, 273, 365, 6315, 1355, 67, 869, 67, 5964, 67, 2147, 261, 92, 16, 677, 16, 341, 16, 366, ...
csets = changesets_from_cvslog(log)
csets = changesets_from_cvslog(log, 'Archetypes')
def testBranchesInLog(self): """Verify the parser groks with the branches info on revision"""
5fe46e5848d203d2773d1ea989e28989616572f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/5fe46e5848d203d2773d1ea989e28989616572f7/cvs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 24246, 382, 1343, 12, 2890, 4672, 3536, 8097, 326, 2082, 314, 3250, 87, 598, 326, 11483, 1123, 603, 6350, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 24246, 382, 1343, 12, 2890, 4672, 3536, 8097, 326, 2082, 314, 3250, 87, 598, 326, 11483, 1123, 603, 6350, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gap.eval('RequirePackage("HAP")')
load_hap()
def cohomology_part(self, n, p = 0): """ Computes the p-part of the group cohomology $H^n(G, F)$, where $F = Z$ if $p=0$ and $F = Z/pZ$ if $p >0$ is a prime. Wraps HAP's Homology function, written by Graham Ellis, applied to the $p$-Sylow subgroup of $G$.
2aab0e46e038cb99ddd82ff3767ef8540acf0c86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2aab0e46e038cb99ddd82ff3767ef8540acf0c86/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1825, 17125, 4676, 67, 2680, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 3536, 14169, 281, 326, 293, 17, 2680, 434, 326, 1041, 1825, 17125, 4676, 271, 44, 66, 82, 12, 43, 16, 478, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1825, 17125, 4676, 67, 2680, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 3536, 14169, 281, 326, 293, 17, 2680, 434, 326, 1041, 1825, 17125, 4676, 271, 44, 66, 82, 12, 43, 16, 478, 21...
if sel > 0 :
if sel == -1: dd.SetSelection(dd.GetLineCount() - 1) self._listItemVisible() elif sel > 0 :
def onKeyDown ( self, event ) : """ Do some work when the user press on the keys: up and down: move the cursor left and right: move the search """ skip = True dd = self.dropdownlistbox sel = dd.GetSelection() visible = self.dropdown.IsShown() KC = event.GetKeyCode() #print("keycode = %d" % KC) if KC == wx.WXK_DOWN : if...
5eae82ee985c1796ea58161da81f4803ea6ad4d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/5eae82ee985c1796ea58161da81f4803ea6ad4d3/textctrl_autocomplete.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 653, 4164, 261, 365, 16, 871, 262, 294, 3536, 2256, 2690, 1440, 1347, 326, 729, 11779, 603, 326, 1311, 30, 731, 471, 2588, 30, 3635, 326, 3347, 2002, 471, 2145, 30, 3635, 326, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 653, 4164, 261, 365, 16, 871, 262, 294, 3536, 2256, 2690, 1440, 1347, 326, 729, 11779, 603, 326, 1311, 30, 731, 471, 2588, 30, 3635, 326, 3347, 2002, 471, 2145, 30, 3635, 326, 162...
if pdflatex:
if engine == "pdflatex" or engine == "xelatex":
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't conve...
0ba327bff9f9e2dd4e53c3716295af7ddd946dea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0ba327bff9f9e2dd4e53c3716295af7ddd946dea/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
def check_modstruve(self):
def _check_modstruve(self):
def check_modstruve(self): assert_equal(cephes.modstruve(1,0),0.0)
2a0571808f9b68627e9152f6f1037281e69d9d98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2a0571808f9b68627e9152f6f1037281e69d9d98/test_cephes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1711, 701, 89, 537, 12, 2890, 4672, 1815, 67, 9729, 12, 311, 844, 281, 18, 1711, 701, 89, 537, 12, 21, 16, 20, 3631, 20, 18, 20, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1711, 701, 89, 537, 12, 2890, 4672, 1815, 67, 9729, 12, 311, 844, 281, 18, 1711, 701, 89, 537, 12, 21, 16, 20, 3631, 20, 18, 20, 13, 2, -100, -100, -100, -100, -100,...
def enforce_cpu_quota(readfobj, cpulimit, childpid):
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu
def enforce_cpu_quota(readfobj, cpulimit, childpid): elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: return # All is well! We aren't over if percentused < cpulimit: return # They must be punished by stopping os.kill(chil...
fe16ed557bc6d5da54a0ec702a4495a452d6c43f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/fe16ed557bc6d5da54a0ec702a4495a452d6c43f/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
if company_currency_id==st_line.account_id.currency_id.id: amount_cur = st_line.amount else: amount_cur = res_currency_obj.compute(cr, uid, company_currency_id, st_line.account_id.currency_id.id, amount, context=context, account=acc_cur) val['amount_currency'] = amount_cur
amount_cur = res_currency_obj.compute(cr, uid, company_currency_id, st_line.account_id.currency_id.id, amount, context=context, account=acc_cur) val['amount_currency'] = -amount_cur
def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None): res_currency_obj = self.pool.get('res.currency') account_move_obj = self.pool.get('account.move') account_move_line_obj = self.pool.get('account.move.line') account_bank_statement_line_obj = self.pool.get('accoun...
3b368f40344361c82c02193ec64ff949cc93656e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3b368f40344361c82c02193ec64ff949cc93656e/account_bank_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 8501, 67, 2080, 67, 334, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 384, 67, 1369, 67, 350, 16, 9395, 67, 7095, 67, 350, 16, 384, 67, 1369, 67, 2696, 16, 819, 33, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 8501, 67, 2080, 67, 334, 67, 1369, 12, 2890, 16, 4422, 16, 4555, 16, 384, 67, 1369, 67, 350, 16, 9395, 67, 7095, 67, 350, 16, 384, 67, 1369, 67, 2696, 16, 819, 33, 7036, ...
qty_discounts = self.price_set.exclude(expires__isnull=False, expires__lt=datetime.date.today()).filter(quantity__lte=1)
qty_discounts = Price.objects.filter(product__id=self.product.id).exclude(expires__isnull=False, expires__lt=datetime.date.today())
def _get_fullPrice(self): """ Get price based on parent ConfigurableProduct """ if not self.parent.product.unit_price: return None # allow explicit setting of prices. try: qty_discounts = self.price_set.exclude(expires__isnull=False, expires__lt=datetime.date.today()).filter(quantity__lte=1) if qty_discounts.count() >...
b6946e5c3eaa633f9dc67bad2637bd5c094d94e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13656/b6946e5c3eaa633f9dc67bad2637bd5c094d94e1/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2854, 5147, 12, 2890, 4672, 3536, 968, 6205, 2511, 603, 982, 29312, 4133, 3536, 309, 486, 365, 18, 2938, 18, 5896, 18, 4873, 67, 8694, 30, 327, 599, 225, 468, 1699, 5515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2854, 5147, 12, 2890, 4672, 3536, 968, 6205, 2511, 603, 982, 29312, 4133, 3536, 309, 486, 365, 18, 2938, 18, 5896, 18, 4873, 67, 8694, 30, 327, 599, 225, 468, 1699, 5515,...
self.assert_(self._box.get_string(key1) == self._template % 1)
self.assertEqual(self._box.get_string(key1), self._template % 1)
def _test_remove_or_delitem(self, method): # (Used by test_remove() and test_delitem().) key0 = self._box.add(self._template % 0) key1 = self._box.add(self._template % 1) self.assertEqual(len(self._box), 2) method(key0) l = len(self._box) self.assert_(l == 1, "actual l: %s" % l) self.assertRaises(KeyError, lambda: self...
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 4479, 67, 280, 67, 3771, 1726, 12, 2890, 16, 707, 4672, 468, 261, 6668, 635, 1842, 67, 4479, 1435, 471, 1842, 67, 3771, 1726, 7675, 13, 498, 20, 273, 365, 6315, 2147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 4479, 67, 280, 67, 3771, 1726, 12, 2890, 16, 707, 4672, 468, 261, 6668, 635, 1842, 67, 4479, 1435, 471, 1842, 67, 3771, 1726, 7675, 13, 498, 20, 273, 365, 6315, 2147, ...
ci.append(-2.5, 2.7, 1.25) ci.append(-1.5, 2.7, 0.1) ci.append(1.5, 2.7, -0.6) ci.append(2.5, 2.7, 0.2)
ci.append((-2.5, 2.7, 1.25)) ci.append((-1.5, 2.7, 0.1)) ci.append((1.5, 2.7, -0.6)) ci.append((2.5, 2.7, 0.2))
def make_ctlpoints(): c = [] # ci = [] ci.append(-2.5, -3.7, 1.0) ci.append(-1.5, -3.7, 3.0) ci.append(1.5, -3.7, -2.5) ci.append(2.5, -3.7, -0.75) c.append(ci) # ci = [] ci.append(-2.5, -2.0, 3.0) ci.append(-1.5, -2.0, 4.0) ci.append(1.5, -2.0, -3.0) ci.append(2.5, -2.0, 0.0) c.append(ci) # ci = [] ci.a...
32938dc2ee219c72d02b2d8b9e83b7d0123275ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/32938dc2ee219c72d02b2d8b9e83b7d0123275ef/nurbs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 12930, 4139, 13332, 276, 273, 5378, 468, 9039, 273, 5378, 9039, 18, 6923, 19236, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 404, 18, 20, 13, 9039, 18, 6923, 19236, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 12930, 4139, 13332, 276, 273, 5378, 468, 9039, 273, 5378, 9039, 18, 6923, 19236, 22, 18, 25, 16, 225, 300, 23, 18, 27, 16, 225, 404, 18, 20, 13, 9039, 18, 6923, 19236, 21, ...
stack.append((TEXT, left))
stack.append((TEXT, left, None))
def translate_stack(stack, catalog, keep_spaces): """ This method receives as input a stack of XML events and returns another stack, the translation of the source one. """ from .xml import get_start_tag, get_end_tag # Build the message and find out if there is something to translate message = Message() there_is_someth...
5d660a7c4599de50199737f97db7f8556bb249be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/5d660a7c4599de50199737f97db7f8556bb249be/i18n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 67, 3772, 12, 3772, 16, 6222, 16, 3455, 67, 9554, 4672, 3536, 1220, 707, 17024, 487, 810, 279, 2110, 434, 3167, 2641, 471, 1135, 4042, 2110, 16, 326, 4794, 434, 326, 1084, 1245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 67, 3772, 12, 3772, 16, 6222, 16, 3455, 67, 9554, 4672, 3536, 1220, 707, 17024, 487, 810, 279, 2110, 434, 3167, 2641, 471, 1135, 4042, 2110, 16, 326, 4794, 434, 326, 1084, 1245, ...
Return a triple (completion code, output, error output).
Return a pair (completion code, output).
def rootrun(self, cmd): """Run the given command as 'root'. Return a triple (completion code, output, error output). """ # If not running as 'root', use pexpect to do su and run the command return (1, "", "rootrun NYI")
d654e933ed048410fe4bbe162fed7ffafad09179 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2375/d654e933ed048410fe4bbe162fed7ffafad09179/luser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 721, 83, 313, 318, 12, 2890, 16, 1797, 4672, 3536, 1997, 326, 864, 1296, 487, 296, 3085, 10332, 2000, 279, 3082, 261, 11469, 981, 16, 876, 2934, 3536, 468, 971, 486, 3549, 487, 296, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 721, 83, 313, 318, 12, 2890, 16, 1797, 4672, 3536, 1997, 326, 864, 1296, 487, 296, 3085, 10332, 2000, 279, 3082, 261, 11469, 981, 16, 876, 2934, 3536, 468, 971, 486, 3549, 487, 296, 30...
self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '
self.request.response.redirect(aq_parent(aq_inner(context)).absolute_url() + '
def __call__(self):
f088cb946e301737ef8c848c7891dfbdfe4abf56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12197/f088cb946e301737ef8c848c7891dfbdfe4abf56/comments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
sage: G.loops(True); G True
sage: G.loops(True)
def loops(self, new=None): """ Returns whether loops are permitted in the graph.
626a82169bd0d544dddaa7c64848161784242a7e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/626a82169bd0d544dddaa7c64848161784242a7e/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14075, 12, 2890, 16, 394, 33, 7036, 4672, 3536, 2860, 2856, 14075, 854, 15498, 316, 326, 2667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14075, 12, 2890, 16, 394, 33, 7036, 4672, 3536, 2860, 2856, 14075, 854, 15498, 316, 326, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
res = self.deleteRequest(requestName) if not res['OK']: errStr = "RequestDBFile.serveRequest: Failed to remove %s." % requestName gLogger.error(errStr,res['Message']) return S_ERROR(errStr) gLogger.info("RequestDBFile.serveRequest: Successfully served %s." % requestName) return S_OK(requestDict)
res = self.deleteRequest( requestName ) if not res['OK']: errStr = "RequestDBFile.serveRequest: Failed to remove %s." % requestName gLogger.error( errStr, res['Message'] ) return S_ERROR( errStr ) gLogger.info( "RequestDBFile.serveRequest: Successfully served %s." % requestName ) return S_OK( requestDict )
def serveRequest(self,requestType): """ Get a request from the DB and serve it (delete locally) """ gLogger.info("RequestDBFile.serveRequest: Attempting to serve request of type %s." % requestType) try: # get a request type if one is not specified if not requestType: res = self.getDBSummary() if not res['OK']: errStr =...
457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 691, 12, 2890, 16, 2293, 559, 4672, 3536, 968, 279, 590, 628, 326, 2383, 471, 12175, 518, 261, 3733, 13760, 13, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 18, 30104, 691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 691, 12, 2890, 16, 2293, 559, 4672, 3536, 968, 279, 590, 628, 326, 2383, 471, 12175, 518, 261, 3733, 13760, 13, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 18, 30104, 691, ...
try: repositories = reviewboard.repositories() except ReviewBoardError, msg: raise util.Abort(_(msg)) if not repositories: raise util.Abort(_('no repositories configured at %s' % server)) ui.status('Repositories:\n') repo_ids = set() for r in repositories: ui.status('[%s] %s\n' % (r['id'], r['name']) ) repo_ids.add(s...
if repo_id_opt: repo_id = int(repo_id_opt)
def getdiff(ui, repo, r, parent): '''return diff for the specified revision''' output = "" for chunk in patch.diff(repo, parent.node(), r.node()): output += chunk return output
6220735bcd8e36118cc1aaad89c075c78aac5ff2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11434/6220735bcd8e36118cc1aaad89c075c78aac5ff2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5413, 12, 4881, 16, 3538, 16, 436, 16, 982, 4672, 9163, 2463, 3122, 364, 326, 1269, 6350, 26418, 876, 273, 1408, 364, 2441, 316, 4729, 18, 5413, 12, 7422, 16, 982, 18, 2159, 9334,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5413, 12, 4881, 16, 3538, 16, 436, 16, 982, 4672, 9163, 2463, 3122, 364, 326, 1269, 6350, 26418, 876, 273, 1408, 364, 2441, 316, 4729, 18, 5413, 12, 7422, 16, 982, 18, 2159, 9334,...
controlSizeGroup.add_widget(combo)
def func (playerCombo, oldactive): self.difCombo.props.sensitive = playerCombo.active > 0
532edc1f739165780974c208f24f58915176ef4e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/532edc1f739165780974c208f24f58915176ef4e/Background.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 261, 14872, 16156, 16, 1592, 3535, 4672, 365, 18, 11593, 16156, 18, 9693, 18, 23481, 273, 7291, 16156, 18, 3535, 405, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 261, 14872, 16156, 16, 1592, 3535, 4672, 365, 18, 11593, 16156, 18, 9693, 18, 23481, 273, 7291, 16156, 18, 3535, 405, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if len(sys.argv) == 2 and sys.argv[1] not in ('-help','-h','--help'): testClass = createTestInstance(sys.argv[1]) result = TextTestRunner().run(testClass) if result.wasSuccessful(): sys.exit(0) else: sys.exit(1) else: print "usage:", sys.argv[0], "package1.YourTestSuite" sys.exit(2)
main(module=None)
def makeSuite(testCaseClass, prefix='test', sortUsing=cmp): """Returns a TestSuite instance built from all of the test functions in the given test case class whose names begin with the given prefix. The cases are sorted by their function names using the supplied comparison function, which defaults to 'cmp'. """ cases =...
fac958bd81e4609cbbce6fe5e9a0e95fb8305459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fac958bd81e4609cbbce6fe5e9a0e95fb8305459/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13587, 12, 3813, 2449, 797, 16, 1633, 2218, 3813, 2187, 1524, 7736, 33, 9625, 4672, 3536, 1356, 279, 7766, 13587, 791, 6650, 628, 777, 434, 326, 1842, 4186, 316, 326, 864, 1842, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 13587, 12, 3813, 2449, 797, 16, 1633, 2218, 3813, 2187, 1524, 7736, 33, 9625, 4672, 3536, 1356, 279, 7766, 13587, 791, 6650, 628, 777, 434, 326, 1842, 4186, 316, 326, 864, 1842, 64...
if not img: print 'Not',
if not Image: print 'Not',
def _test(): import EasyDialogs try: import img except ImportError: img = None import MacOS Qt.EnterMovies() path = EasyDialogs.AskFileForOpen(message='Video to convert') if not path: sys.exit(0) rdr = reader(path) if not rdr: sys.exit(1) dstdir = EasyDialogs.AskFileForSave(message='Name for output folder') if not dstd...
d0d161e71d873e488d8a3a382640065a5e357f7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/d0d161e71d873e488d8a3a382640065a5e357f7b/videoreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 13332, 1930, 29442, 11885, 14072, 775, 30, 1930, 3774, 1335, 11308, 30, 3774, 273, 599, 1930, 13217, 4618, 7354, 18, 10237, 16727, 29028, 1435, 589, 273, 29442, 11885, 14072, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 13332, 1930, 29442, 11885, 14072, 775, 30, 1930, 3774, 1335, 11308, 30, 3774, 273, 599, 1930, 13217, 4618, 7354, 18, 10237, 16727, 29028, 1435, 589, 273, 29442, 11885, 14072, 18, ...
if self.previousPasswords is not None:
if self.previousPasswords is not None and password is not None:
def _checkDisallowedPreviousPassword(self, password): if self._disallowPasswordReuse(): if self.previousPasswords is not None: #hack, but this should work with zope.app.authentication and #z3c.authenticator passwordManager = self._getPasswordManager()
19bca3563087da3b70730bafe2c74e6715cc6ca0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9625/19bca3563087da3b70730bafe2c74e6715cc6ca0/principal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 1669, 8151, 8351, 3913, 12, 2890, 16, 2201, 4672, 309, 365, 6315, 2251, 5965, 3913, 31704, 13332, 309, 365, 18, 11515, 3913, 87, 353, 486, 599, 471, 2201, 353, 486, 599, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 1669, 8151, 8351, 3913, 12, 2890, 16, 2201, 4672, 309, 365, 6315, 2251, 5965, 3913, 31704, 13332, 309, 365, 18, 11515, 3913, 87, 353, 486, 599, 471, 2201, 353, 486, 599, 30, ...
ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit)
ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit, context=context)
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=100): if not args: args=[] if not context: context={} ids = [] if name: ids = self.search(cr, user, [('code','ilike',name)]+ args, limit=limit) if not ids: ids = self.search(cr, user, [('name',operator,name)]+ args, limit=limit) retu...
17abd658c3a6f13ed53ca55b579fff08dd0b0c02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/17abd658c3a6f13ed53ca55b579fff08dd0b0c02/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 16, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 6625, 4672, 309, 486, 833, 30, 833, 33, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 67, 3072, 12, 2890, 16, 4422, 16, 729, 16, 508, 16, 833, 33, 7036, 16, 3726, 2218, 330, 2547, 2187, 819, 33, 7036, 16, 1800, 33, 6625, 4672, 309, 486, 833, 30, 833, 33, 8526, ...
index += 1
self.ProfileRemoveButton.set_sensitive (self.ProfileComboBox.get_active() != 0) self.ProfileComboBox.handler_unblock (self.ProfileHandler)
def UpdateProfiles (self, default = _("Default")): self.Context.Read () self.Context.UpdateProfiles ()
3ac61daed7b38b15dd56283f1f62118233306460 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7183/3ac61daed7b38b15dd56283f1f62118233306460/Pages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 12450, 261, 2890, 16, 805, 273, 389, 2932, 1868, 6, 3719, 30, 365, 18, 1042, 18, 1994, 1832, 365, 18, 1042, 18, 1891, 12450, 1832, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 12450, 261, 2890, 16, 805, 273, 389, 2932, 1868, 6, 3719, 30, 365, 18, 1042, 18, 1994, 1832, 365, 18, 1042, 18, 1891, 12450, 1832, 2, -100, -100, -100, -100, -100, -100, -100, -1...
old_path, old = unescape(old).split('@')
old, old_path = old.split('@', 1)
def process_request(self, req): """The appropriate mode of operation is inferred from the request parameters:
fcd502a0c741dcc0b7ee9715e8d07897e2188f35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/fcd502a0c741dcc0b7ee9715e8d07897e2188f35/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 3536, 1986, 5505, 1965, 434, 1674, 353, 13662, 628, 326, 590, 1472, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 3536, 1986, 5505, 1965, 434, 1674, 353, 13662, 628, 326, 590, 1472, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
elif keys[pygame.K_i]:
if keys[pygame.K_i]:
def get_fy(self): '''Gets fire direction in Y (in [-1,1] for [top,bottom]).''' if self.js is None: keys = pygame.key.get_pressed() if keys[pygame.K_k]: return 1. elif keys[pygame.K_i]: return -1. else: return .0 else: return self.js.get_axis(3)
9b09cf6ef07d2ee54bff2ed908465c95a67128b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4253/9b09cf6ef07d2ee54bff2ed908465c95a67128b1/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 74, 93, 12, 2890, 4672, 9163, 3002, 4452, 4068, 316, 1624, 261, 267, 23059, 21, 16, 21, 65, 364, 306, 3669, 16, 9176, 5717, 1093, 6309, 309, 365, 18, 2924, 353, 599, 30, 131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 74, 93, 12, 2890, 4672, 9163, 3002, 4452, 4068, 316, 1624, 261, 267, 23059, 21, 16, 21, 65, 364, 306, 3669, 16, 9176, 5717, 1093, 6309, 309, 365, 18, 2924, 353, 599, 30, 131...
expectedchecksum = 'b45b79f3203ee1a896d9b5655484adaff5d4964b'
expectedchecksum = '4e389f97e9f88b8b7ab743121fd643089116f9f2'
def tearDown(self): del self.db
7a30686a1eb1b75cac9a6f84ffba3dbadc603637 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7a30686a1eb1b75cac9a6f84ffba3dbadc603637/test_unicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1464, 365, 18, 1966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 1464, 365, 18, 1966, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
filecfg+=", nameStep"+"=u\""+stepNameMic[microstep[str(j)]].split('_',1)[-1]+"\""+", descStep=u"+repr(descStep[str(h)])+", url=u"+repr(urlStep[str(h)]) oldNamestep=stepNameMic[microstep[str(j)]].split('_',1)[-1]
filecfg+=", nameStep"+"=u\""+config.get(stepNameMic[microstep[str(j)]],"title")+"\""+", descStep=u"+repr(descStep[str(h)])+", url=u"+repr(urlStep[str(h)]) oldNamestep=config.get(stepNameMic[microstep[str(j)]],"title")
filecfg+='def test_'+suite_name+'():\n'
9a1e3222b3539c3d231aa7fc603f57d26aa450e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8218/9a1e3222b3539c3d231aa7fc603f57d26aa450e1/loading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 7066, 15, 2218, 536, 1842, 4623, 15, 30676, 67, 529, 6797, 1435, 5581, 82, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 585, 7066, 15, 2218, 536, 1842, 4623, 15, 30676, 67, 529, 6797, 1435, 5581, 82, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ow.learner(l3, 1) import orngTree l4 = orngTree.TreeLearner(minSubset=2) l4.name = "Decision Tree"
ow.learner(l3, 3) l1.name = 'Maj 1 updated' ow.learner(l1, 1) ow.learner(None, 2) l4 = orange.MajorityLearner() l4.name = "Maj 2"
def finish(self): self.widget.progressBarFinished()
9a6df9b187c03e25d8e95009384dd7bca2953ef3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/9a6df9b187c03e25d8e95009384dd7bca2953ef3/OWTestLearners.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 4672, 365, 18, 6587, 18, 8298, 5190, 10577, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 12, 2890, 4672, 365, 18, 6587, 18, 8298, 5190, 10577, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
* Web interface introducing WorkFlow * SQL backend * Data anti-corruption security with par2 recovery keys * Data synchronizing over remote servers (rsync) * Auto AudioMarking from metadata (thanks to Festival and Ecasound)
* Auto audio-marking with synthetized voices reading metadata (optional) * Anti-corruption data security management with par2 recovery keys * Data synchronizing over remote servers (rsync + ssh methods)
def fullsplit(path, result=None): """ Split a pathname into components (the opposite of os.path.join) in a platform-neutral way. """ if result is None: result = [] head, tail = os.path.split(path) if head == '': return [tail] + result if head == path: return result return fullsplit(head, [tail] + result)
13b11a8aceb588e14cea30b9632c558950a9b7c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12043/13b11a8aceb588e14cea30b9632c558950a9b7c7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 4939, 12, 803, 16, 563, 33, 7036, 4672, 3536, 5385, 279, 9806, 1368, 4085, 261, 5787, 20759, 434, 1140, 18, 803, 18, 5701, 13, 316, 279, 4072, 17, 4644, 14566, 287, 4031, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 4939, 12, 803, 16, 563, 33, 7036, 4672, 3536, 5385, 279, 9806, 1368, 4085, 261, 5787, 20759, 434, 1140, 18, 803, 18, 5701, 13, 316, 279, 4072, 17, 4644, 14566, 287, 4031, 18, 353...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 171) else quickfix.StringField.__init__(self, 171, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 8043, 21, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 8043, 21, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, ...
body += ' ' + _("Password:") + " %s\n" % ("*" * len(password))
body += ' ' + _("Password:") + " %s\n" % ("*" * len(str(password)))
def send_account_activated_message(account_email, send_to, password, ln=CFG_SITE_LANG): """Send an email to the address given by send_to about the new activated account.""" _ = gettext_set_language(ln) sub = _("Your account on '%s' has been activated") % CFG_SITE_NAME body = _("Your account earlier created on '%s' has ...
4a48d259b8e209d2bb61d96607b78b5c4cea4c46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/4a48d259b8e209d2bb61d96607b78b5c4cea4c46/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4631, 67, 18836, 67, 2150, 12, 4631, 67, 3652, 16, 1366, 67, 869, 16, 2201, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 3826, 392, 2699, 358, 326, 1758, 864, 635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 4631, 67, 18836, 67, 2150, 12, 4631, 67, 3652, 16, 1366, 67, 869, 16, 2201, 16, 7211, 33, 19727, 67, 20609, 67, 10571, 4672, 3536, 3826, 392, 2699, 358, 326, 1758, 864, 635, ...
return context['move_line'][0][2] and context['move_line'][0][2]['location_dest_id'] or False
return context['move_line'][0][2] and context['move_line'][0][2].get('location_dest_id',False)
def _default_location_destination(self, cr, uid, context=None): """ Gets default address of partner for destination location @return: Address id or False """ if context.get('move_line', []): if context['move_line'][0]: if isinstance(context['move_line'][0], (tuple, list)): return context['move_line'][0][2] and context[...
5dbdc3ccbedce925381beb6a37d2ed4ea4b2b093 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5dbdc3ccbedce925381beb6a37d2ed4ea4b2b093/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 3562, 67, 10590, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3536, 11881, 805, 1758, 434, 19170, 364, 2929, 2117, 632, 2463, 30, 5267, 612, 578, 1083, 3536, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 3562, 67, 10590, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3536, 11881, 805, 1758, 434, 19170, 364, 2929, 2117, 632, 2463, 30, 5267, 612, 578, 1083, 3536, 3...
if fileList: result = self.outputSandboxClient.sendFiles(self.jobID, fileList)
if fileList and self.jobID: self.outputSandboxSize = getGlobbedTotalSize(fileList) outputSandboxClient = SandboxClient('Output') result = outputSandboxClient.sendFiles(self.jobID, fileList)
def processJobOutputs(self,arguments): """Outputs for a job may be treated here. """ self.__report('Completed','Uploading Job Outputs') jobArgs = arguments['Job']
b03e51b6437930714ea21108f8c3e6e5dd0ccb3f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/b03e51b6437930714ea21108f8c3e6e5dd0ccb3f/JobWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 13856, 12, 2890, 16, 7099, 4672, 3536, 13856, 364, 279, 1719, 2026, 506, 13974, 2674, 18, 3536, 365, 16186, 6006, 2668, 9556, 17023, 4777, 310, 3956, 26168, 6134, 1719, 2615, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 13856, 12, 2890, 16, 7099, 4672, 3536, 13856, 364, 279, 1719, 2026, 506, 13974, 2674, 18, 3536, 365, 16186, 6006, 2668, 9556, 17023, 4777, 310, 3956, 26168, 6134, 1719, 2615, 2...
'GridType':'DIRAC',
'GridType':ceType,
def updatePilotStatus( self ): """ Update status of pilots in transient states """ for queue in self.queueDict: ce = self.queueDict[queue]['CE'] ceName = self.queueDict[queue]['CEName'] queueName = self.queueDict[queue]['QueueName'] result = pilotAgentsDB.selectPilots( {'DestinationSite':ceName, 'Queue':queueName, 'Gri...
804a670596601e83bbf602bea8d7ccbe6f0c052a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/804a670596601e83bbf602bea8d7ccbe6f0c052a/SiteDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 52, 22797, 1482, 12, 365, 262, 30, 3536, 2315, 1267, 434, 24970, 6968, 316, 12315, 5493, 3536, 364, 2389, 316, 365, 18, 4000, 5014, 30, 5898, 273, 365, 18, 4000, 5014, 63, 4000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 52, 22797, 1482, 12, 365, 262, 30, 3536, 2315, 1267, 434, 24970, 6968, 316, 12315, 5493, 3536, 364, 2389, 316, 365, 18, 4000, 5014, 30, 5898, 273, 365, 18, 4000, 5014, 63, 4000, ...
global style_pending
global styles_pending
def rebuild(): global style_pending global styles_built if renpy.game.init_phase: return styles_pending = [ j for i in style_parts.values() for j in i.values() ] styles_built = False for i in styles_pending: i.cache = None build_styles()
9ba28e5cd206d6461b94c26278ef43822137b4eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10962/9ba28e5cd206d6461b94c26278ef43822137b4eb/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 13332, 2552, 5687, 67, 9561, 2552, 5687, 67, 12406, 225, 309, 1654, 2074, 18, 13957, 18, 2738, 67, 13961, 30, 327, 225, 5687, 67, 9561, 273, 306, 525, 364, 277, 316, 2154, 67, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 13332, 2552, 5687, 67, 9561, 2552, 5687, 67, 12406, 225, 309, 1654, 2074, 18, 13957, 18, 2738, 67, 13961, 30, 327, 225, 5687, 67, 9561, 273, 306, 525, 364, 277, 316, 2154, 67, 6...
''' Return HTMLProperty for all of this class' properties. '''
""" Return HTMLProperty for all of this class' properties. """
def properties(self, sort=1): ''' Return HTMLProperty for all of this class' properties. ''' l = [] for name, prop in self._props.items(): for klass, htmlklass in propclasses: if isinstance(prop, hyperdb.Multilink): value = [] else: value = None if isinstance(prop, klass): l.append(htmlklass(self._client, self._classna...
16a3ebf380b95607b344181655488d818a27791f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1906/16a3ebf380b95607b344181655488d818a27791f/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1790, 12, 2890, 16, 1524, 33, 21, 4672, 3536, 2000, 3982, 1396, 364, 777, 434, 333, 667, 11, 1790, 18, 3536, 328, 273, 5378, 364, 508, 16, 2270, 316, 365, 6315, 9693, 18, 3319, 13332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1790, 12, 2890, 16, 1524, 33, 21, 4672, 3536, 2000, 3982, 1396, 364, 777, 434, 333, 667, 11, 1790, 18, 3536, 328, 273, 5378, 364, 508, 16, 2270, 316, 365, 6315, 9693, 18, 3319, 13332, ...
print 'new saver'
def __init__(self, *what): print 'new saver' StateSaver.savers.append(self) self.widgets = [] for widget in what: name = unicode(widget.objectName()) if not name: if widget.parentWidget(): name = unicode(widget.parentWidget().objectName()+widget.__class__.__name__) else: name = unicode(widget.__class__.__name__) self.w...
efb7c83c83271b0dd3793876dbd2dc6ec6a9e194 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/efb7c83c83271b0dd3793876dbd2dc6ec6a9e194/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 23770, 4672, 3287, 55, 21851, 18, 87, 22994, 18, 6923, 12, 2890, 13, 365, 18, 18148, 273, 5378, 364, 3604, 316, 4121, 30, 508, 273, 5252, 12, 6587, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 23770, 4672, 3287, 55, 21851, 18, 87, 22994, 18, 6923, 12, 2890, 13, 365, 18, 18148, 273, 5378, 364, 3604, 316, 4121, 30, 508, 273, 5252, 12, 6587, ...
parameters are descrubed in one C{@param} field, such as:
parameters are descrubed in one C{@param} field, such as::
def shared_descr_params(self): """ @rtype: C{None} or C{list} of L{Param} @return: A list of C{Param}s that share the description given by this parameter. This is used in cases where multiple parameters are descrubed in one C{@param} field, such as:
51eb4ba3b8382947fd5b6d33919cb02ce1327f88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/51eb4ba3b8382947fd5b6d33919cb02ce1327f88/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5116, 67, 28313, 67, 2010, 12, 2890, 4672, 3536, 632, 86, 723, 30, 385, 95, 7036, 97, 578, 385, 95, 1098, 97, 434, 511, 95, 786, 97, 632, 2463, 30, 432, 666, 434, 385, 95, 786, 97,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5116, 67, 28313, 67, 2010, 12, 2890, 4672, 3536, 632, 86, 723, 30, 385, 95, 7036, 97, 578, 385, 95, 1098, 97, 434, 511, 95, 786, 97, 632, 2463, 30, 432, 666, 434, 385, 95, 786, 97,...
if self.finished: return
def defaultGotNodes(err, self=self, node=node): self.table.table.nodeFailed(node) if self.finished: return self.outstanding = self.outstanding - 1 self.schedule()
c6efa4e5bd74f2823a368ebb3f3368b9c384cff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/c6efa4e5bd74f2823a368ebb3f3368b9c384cff2/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 15617, 3205, 12, 370, 16, 365, 33, 2890, 16, 756, 33, 2159, 4672, 365, 18, 2121, 18, 2121, 18, 2159, 2925, 12, 2159, 13, 365, 18, 659, 15167, 273, 365, 18, 659, 15167, 300, 404,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 15617, 3205, 12, 370, 16, 365, 33, 2890, 16, 756, 33, 2159, 4672, 365, 18, 2121, 18, 2121, 18, 2159, 2925, 12, 2159, 13, 365, 18, 659, 15167, 273, 365, 18, 659, 15167, 300, 404,...
if not options.pstat_files: graph_types.remove('callgraph')
if not options.pstat_files: option.graphs.remove('callgraph')
def parse_arguments(): # Construct the option parser. usage = '%prog ACTION [options] NAMES...' version = "Epydoc, version %s" % epydoc.__version__ optparser = OptionParser(usage=usage, version=version) action_group = OptionGroup(optparser, 'Actions') options_group = OptionGroup(optparser, 'Options') # Add options -- ...
732ea006f573c6277decf2087de98597436a8c1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/732ea006f573c6277decf2087de98597436a8c1a/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7099, 13332, 468, 14291, 326, 1456, 2082, 18, 4084, 273, 1995, 14654, 11385, 306, 2116, 65, 6048, 55, 7821, 1177, 273, 315, 41, 2074, 2434, 16, 1177, 738, 87, 6, 738, 425, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 7099, 13332, 468, 14291, 326, 1456, 2082, 18, 4084, 273, 1995, 14654, 11385, 306, 2116, 65, 6048, 55, 7821, 1177, 273, 315, 41, 2074, 2434, 16, 1177, 738, 87, 6, 738, 425, 20...
exts.append( Extension("_bytesio", ["_bytesio.c"]) ) exts.append( Extension("_stringio", ["_stringio.c"]) )
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
e76256826b3294b4c507344b1a8dcc1c7ba5053b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/e76256826b3294b4c507344b1a8dcc1c7ba5053b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
if opt.has_key('description'): self.entryWidgets[g].SetToolTipString(_prettyDesc(opt['description']))
def createDialog(self): self.app = wx.PySimpleApp(0) self.dlg = wx.Dialog(parent=None, id=-1, title = self.title) self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) # # the main window box = wx.BoxSizer(wx.VERTICAL) # do not use a very long description please topLabel = wx.StaticT...
7333f327e6523fb0ff4bb4c13990f922bbf43728 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/7333f327e6523fb0ff4bb4c13990f922bbf43728/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 7075, 18, 9413, 5784, 3371, 12, 20, 13, 365, 18, 5761, 75, 273, 7075, 18, 6353, 12, 2938, 33, 7036, 16, 612, 29711, 21, 16, 2077, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 2890, 4672, 365, 18, 2910, 273, 7075, 18, 9413, 5784, 3371, 12, 20, 13, 365, 18, 5761, 75, 273, 7075, 18, 6353, 12, 2938, 33, 7036, 16, 612, 29711, 21, 16, 2077, 273, ...
rc = Matrix(F,r,c, ([a**(i-1)] * c) + [F(0)]*((r-1)*c) ) ki = Matrix(F,r,c)
rc = Matrix(F, r, c, ([a**(i-1)] * c) + [F(0)]*((r-1)*c) ) ki = Matrix(F, r, c)
def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$.
26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 271, 79, 67, 77, 8, 364, 279, 864, 271, 77, 8, 471, 271, 79, 67, 78, 8, 598, 271, 78, 273, 277, 17, 21, 8, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676, 12, 2890, 16, 417, 78, 16, 277, 4672, 3536, 2000, 271, 79, 67, 77, 8, 364, 279, 864, 271, 77, 8, 471, 271, 79, 67, 78, 8, 598, 271, 78, 273, 277, 17, 21, 8, 18,...
self.assertRaises(Exception, test_view( 'purchase_invoice_line_standalone'))
test_view('purchase_invoice_line_standalone')
def test0005views(self): ''' Test views. ''' self.assertRaises(Exception, test_view( 'purchase_invoice_line_standalone'))
4404d240f7b66acd0c3565482a3414057884570c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9311/4404d240f7b66acd0c3565482a3414057884570c/test_purchase_invoice_line_standalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 12, 296, 12688, 12104, 67, 16119, 67, 1369, 67, 10145, 12451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 12, 296, 12688, 12104, 67, 16119, 67, 1369, 67, 10145, 12451, ...
'name':model_name + "/" +field_data['field_description'] +" "+ mapping_fields[form_data['operator']] + " " + str(fields_list[2]) + " ", 'expression':' '.join(map(str,fields_list)),
'name':model_name + "/" +field_data['field_description'] +" "+ mapping_fields[form_data['operator']] + " " + tools.ustr(fields_list[2]) + " ", 'expression':' '.join(map(tools.ustr,fields_list)),
def _set_filter_value(self, cr, uid, data, context): form_data = data['form'] value_data = form_data.get('value',False) value_field = set_value_fields.get('value') field_type = value_field.get('type',False) field_data = pooler.get_pool(cr.dbname).get('ir.model.fields').read(cr,uid,[form_data.get('field_id')],fields=['t...
47591d7819e7c559d5386d76a6a34515502bc6c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/47591d7819e7c559d5386d76a6a34515502bc6c6/wiz_set_filter_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2188, 67, 1132, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 646, 67, 892, 273, 501, 3292, 687, 3546, 460, 67, 892, 273, 646, 67, 892, 18, 588, 2668, 1132, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2188, 67, 1132, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 646, 67, 892, 273, 501, 3292, 687, 3546, 460, 67, 892, 273, 646, 67, 892, 18, 588, 2668, 1132, 2...
def __init__(self, font):
def __init__(self, font, groupNamePrefix=""):
def __init__(self, font): self.font = font self.leftGroups, self.rightGroups = self.getReferencedGroups() self.leftUnreferencedGroups, self.rightUnreferencedGroups = self.getUnreferencedGroups() self.pairs = self.getPairs() self.flatLeftGroups, self.flatRightGroups, self.flatLeftUnreferencedGroups, self.flatRightUnrefe...
2166735c8f4eee54b8001acc3633729d4ddf3abf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8850/2166735c8f4eee54b8001acc3633729d4ddf3abf/kernFeatureWriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3512, 16, 11619, 2244, 1546, 6, 4672, 365, 18, 5776, 273, 3512, 365, 18, 4482, 3621, 16, 365, 18, 4083, 3621, 273, 365, 18, 588, 22344, 3621, 1435, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3512, 16, 11619, 2244, 1546, 6, 4672, 365, 18, 5776, 273, 3512, 365, 18, 4482, 3621, 16, 365, 18, 4083, 3621, 273, 365, 18, 588, 22344, 3621, 1435, 365, ...
print "playing %s" % data
def do_invite(username, domain, password, display_name, proxy_ip, proxy_port, target_username, target_domain, dump_msrp, use_msrp_relay, auto_msrp_relay, msrp_relay_ip, msrp_relay_port, do_siptrace): global correspondent print "Using configuration file %s" % process.config_file("pypjua.ini") if use_msrp_relay: if auto_...
d235ffaad2f18e982641286f510a5eed3ac06369 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/d235ffaad2f18e982641286f510a5eed3ac06369/sip_msrp_im_session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 27154, 12, 5053, 16, 2461, 16, 2201, 16, 2562, 67, 529, 16, 2889, 67, 625, 16, 2889, 67, 655, 16, 1018, 67, 5053, 16, 1018, 67, 4308, 16, 4657, 67, 959, 13832, 16, 999, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 27154, 12, 5053, 16, 2461, 16, 2201, 16, 2562, 67, 529, 16, 2889, 67, 625, 16, 2889, 67, 655, 16, 1018, 67, 5053, 16, 1018, 67, 4308, 16, 4657, 67, 959, 13832, 16, 999, 67...
self.pool.get('ir.attachment').write(cr, uid, attachment_id, {'datas': base64.encodestring(open(kettle_dir +"/" + log_file_name + '.log', 'rb').read()), 'datas_fname': log_file_name + '.log', 'name' : prefixe_log_name + ' ' + log_file_name}, context)
self.pool.get('ir.attachment').write(cr, uid, [attachment_id], {'datas': base64.encodestring(open(kettle_dir +"/" + log_file_name + '.log', 'rb').read()), 'datas_fname': log_file_name + '.log', 'name' : prefixe_log_name + ' ' + log_file_name}, context)
def execute_transformation(self, cr, uid, id, log_file_name, attachment_id, context): transfo = self.browse(cr, uid, id, context) kettle_dir = transfo.server_id.kettle_dir filename = transfo.filename logger = netsvc.Logger() transformation_temp = open(kettle_dir + '/transformations/'+ filename, 'w') file_temp = base64...
cf94f35ac680108835947de442cd81e891a4aec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/cf94f35ac680108835947de442cd81e891a4aec9/kettle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 2338, 1471, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 613, 67, 768, 67, 529, 16, 6042, 67, 350, 16, 819, 4672, 906, 617, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 2338, 1471, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 613, 67, 768, 67, 529, 16, 6042, 67, 350, 16, 819, 4672, 906, 617, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 612...
tag_pattern = regex.compile("^ \([^:]+\): \([0-9.]+\)\n$")
tag_pattern = re.compile("^ \([^:]+\): \([0-9.]+\)\n$")
def BuildLog(log_date_command): import os, regex, string reading_description = 0 reading_tags = 0 description = [] log = [] tag_pattern = regex.compile("^ \([^:]+\): \([0-9.]+\)\n$") for line in os.popen(log_date_command, 'r').readlines(): if line[:5] == '=====' or line[:5] == '-----': if description != []: try: my_t...
92f58f6b8b028bc901c1c5f2bd420c92e105f2c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/92f58f6b8b028bc901c1c5f2bd420c92e105f2c9/cvs2hist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 1343, 12, 1330, 67, 712, 67, 3076, 4672, 1930, 1140, 16, 3936, 16, 533, 225, 6453, 67, 3384, 273, 374, 6453, 67, 4156, 273, 374, 2477, 273, 5378, 613, 273, 5378, 1047, 67, 4951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 1343, 12, 1330, 67, 712, 67, 3076, 4672, 1930, 1140, 16, 3936, 16, 533, 225, 6453, 67, 3384, 273, 374, 6453, 67, 4156, 273, 374, 2477, 273, 5378, 613, 273, 5378, 1047, 67, 4951, ...
import subprocess
from subprocess import Popen, PIPE import os
def find_crosses(satellite1, start, end, satellite2='calipso', t_window=2, lon_range=None, lat_range=None): """Use snotimes to find satellite passes where the given *satellite* crosses CALIPSO's path within a time window *t_window*. Sort out any cross points which are outside *lon_range* and/or *lat_range*.""" import s...
249b026929614e542be66571c71969298fc0b483 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8324/249b026929614e542be66571c71969298fc0b483/find_crosses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 14653, 281, 12, 12973, 19345, 21, 16, 787, 16, 679, 16, 25344, 22, 2218, 771, 625, 2048, 2187, 268, 67, 5668, 33, 22, 16, 4281, 67, 3676, 33, 7036, 16, 2516, 67, 3676, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 14653, 281, 12, 12973, 19345, 21, 16, 787, 16, 679, 16, 25344, 22, 2218, 771, 625, 2048, 2187, 268, 67, 5668, 33, 22, 16, 4281, 67, 3676, 33, 7036, 16, 2516, 67, 3676, 33, ...