rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
opts, fnames = getopt(sys.argv[1:], "d:hbqu")
opts, fnames = getopt(sys.argv[1:], "d:hbqux")
def redo(self, p_name): """ Restores module declarations. Intended for built-in modules and thus does not handle import statements. """ self.out("# encoding: utf-8", 0) # NOTE: maybe encoding should be selectable if hasattr(self.module, "__name__"): mod_name = " calls itself " + self.module.__name__ else: mod_name = " does not know its name" self.out("# module " + p_name + mod_name, 0) if hasattr(self.module, "__file__"): self.out("# from file " + self.module.__file__, 0) self.outDocAttr(self.module, 0) # find whatever other self.imported_modules the module knows; effectively these are imports for item_name in self.module.__dict__: item = self.module.__dict__[item_name] if isinstance(item, type(sys)): self.imported_modules[item_name] = item if hasattr(item, "__name__"): self.out("import " + item.__name__ + " as " + item_name + " # refers to " + str(item)) else: self.out(item_name + " = None # XXX name unknown, refers to " + str(item)) self.out("", 0) # empty line after imports # group what else we have into buckets vars_simple = {} vars_complex = {} funcs = {} classes = {} reexports = {} # contains not real objects, but qualified id strings, like "sys.stdout" # for item_name in self.module.__dict__: if item_name in ("__dict__", "__doc__", "__module__", "__file__", "__name__"): continue try: item = getattr(self.module, item_name) # let getters do the magic except: item = self.module.__dict__[item_name] # have it raw # check if it has percolated from an imported module imported_name = self.findImportedName(item) if imported_name is not None: reexports[item_name] = imported_name else: if isinstance(item, type) or item is FakeClassObj: # some classes are callable, check them before functions classes[item_name] = item elif isCallable(item): funcs[item_name] = item elif isinstance(item, type(sys)): continue # self.imported_modules handled above already else: if isinstance(item, SIMPLEST_TYPES): vars_simple[item_name] = item else: vars_complex[item_name] = item # # sort and output every bucket if reexports: self.out("# reexported imports", 0) self.out("", 0) for item_name in sortedNoCase(reexports.keys()): item = reexports[item_name] self.out(item_name + " = " + item, 0) self._defined[item_name] = True self.out("", 0) # empty line after group # if vars_simple: prefix = "" # try to group variables by common prefix PREFIX_LEN = 2 # default prefix length if we can't guess better self.out("# Variables with simple values", 0) for item_name in sortedNoCase(vars_simple.keys()): item = vars_simple[item_name] # track the prefix if len(item_name) >= PREFIX_LEN: prefix_pos = string.rfind(item_name, "_") # most prefixes end in an underscore if prefix_pos < 1: prefix_pos = PREFIX_LEN beg = item_name[0:prefix_pos] if prefix != beg: self.out("", 0) # space out from other prefix prefix = beg else: prefix = "" # output replacement = self.REPLACE_MODULE_VALUES.get((p_name, item_name), None) if replacement is not None: self.out(item_name + " = " + replacement + " # real value of type "+ str(type(item)) + " replaced", 0) elif self.isSkippedInModule(p_name, item_name): self.out(item_name + " = None # real value of type "+ str(type(item)) + " skipped", 0) else: self.fmtValue(item, 0, prefix = item_name + " = " ) self._defined[item_name] = True self.out("", 0) # empty line after vars # if funcs: self.out("# functions", 0) self.out("", 0) for item_name in sortedNoCase(funcs.keys()): item = funcs[item_name] self.redoFunction(item, item_name, 0, p_modname=p_name) self._defined[item_name] = True self.out("", 0) # empty line after each item else: self.out("# no functions", 0) # if classes: self.out("# classes", 0) self.out("", 0) # sort classes so that inheritance order is preserved cls_list = [] # items are (class_name, mro_tuple) for cls_name in sortedNoCase(classes.keys()): cls = classes[cls_name] ins_index = len(cls_list) for i in range(ins_index): maybe_child_bases = cls_list[i][1] if cls in maybe_child_bases: ins_index = i # we could not go farther than current ins_index break # ...and need not go fartehr than first known child cls_list.insert(ins_index, (cls_name, getMRO(cls))) for item_name in [cls_item[0] for cls_item in cls_list]: item = classes[item_name] self.redoClass(item, item_name, 0, p_modname=p_name) self._defined[item_name] = True self.out("", 0) # empty line after each item else: self.out("# no classes", 0) # if vars_complex: self.out("# variables with complex values", 0) self.out("", 0) for item_name in sortedNoCase(vars_complex.keys()): item = vars_complex[item_name] replacement = self.REPLACE_MODULE_VALUES.get((p_name, item_name), None) if replacement is not None: self.out(item_name + " = " + replacement + " # real value of type "+ str(type(item)) + " replaced", 0) elif self.isSkippedInModule(p_name, item_name): self.out(item_name + " = None # real value of type "+ str(type(item)) + " skipped", 0) else: self.fmtValue(item, 0, prefix = item_name + " = " , as_name = item_name) self._defined[item_name] = True self.out("", 0) # empty line after each item
5a42132c2870715e5770dea6869bcadcb796418c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/5a42132c2870715e5770dea6869bcadcb796418c/generator3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24524, 12, 2890, 16, 293, 67, 529, 4672, 3536, 6320, 3485, 1605, 12312, 18, 657, 8140, 364, 6650, 17, 267, 4381, 471, 12493, 1552, 486, 1640, 1930, 6317, 18, 3536, 365, 18, 659, 2932, 7, 2688, 30, 7718, 17, 28, 3113, 374, 13, 468, 5219, 30, 6944, 2688, 1410, 506, 26208, 309, 3859, 12, 2890, 18, 2978, 16, 10425, 529, 14437, 4672, 681, 67, 529, 273, 315, 4097, 6174, 315, 397, 365, 18, 2978, 16186, 529, 972, 469, 30, 681, 67, 529, 273, 315, 1552, 486, 5055, 2097, 508, 6, 365, 18, 659, 2932, 7, 1605, 315, 397, 293, 67, 529, 397, 225, 681, 67, 529, 16, 374, 13, 309, 3859, 12, 2890, 18, 2978, 16, 10425, 768, 14437, 4672, 365, 18, 659, 2932, 7, 628, 585, 315, 397, 365, 18, 2978, 16186, 768, 972, 16, 374, 13, 365, 18, 659, 1759, 3843, 12, 2890, 18, 2978, 16, 374, 13, 468, 1104, 15098, 1308, 365, 18, 29266, 67, 6400, 326, 1605, 21739, 31, 23500, 4259, 854, 10095, 364, 761, 67, 529, 316, 365, 18, 2978, 16186, 1576, 972, 30, 761, 273, 365, 18, 2978, 16186, 1576, 972, 63, 1726, 67, 529, 65, 309, 1549, 12, 1726, 16, 618, 12, 9499, 3719, 30, 365, 18, 29266, 67, 6400, 63, 1726, 67, 529, 65, 273, 761, 309, 3859, 12, 1726, 16, 10425, 529, 14437, 4672, 365, 18, 659, 2932, 5666, 315, 397, 761, 16186, 529, 972, 397, 315, 487, 315, 397, 761, 67, 529, 397, 315, 468, 21368, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24524, 12, 2890, 16, 293, 67, 529, 4672, 3536, 6320, 3485, 1605, 12312, 18, 657, 8140, 364, 6650, 17, 267, 4381, 471, 12493, 1552, 486, 1640, 1930, 6317, 18, 3536, 365, 18, 659, 2932, 7, 2688, 30, 7718, 17, 28, 3113, 374, 13, 468, 5219, 30, 6944, 2688, 1410, 506, 26208, 309, 3859, 12, 2890, 18, 2978, 16, 10425, 529, 14437, 4672, 681, 67, 529, 273, 315, 4097, 6174, 315, 397, 365, 18, 2978, 16186, 529, 972, 469, 30, 681, 67, 529, 273, 315, 1552, 486, 5055, 2097, 508, 6, 365, 18, 659, 2932, 7, 1605, 315, 397, 293, 67, 529, 397, 225, 681, 67, 529, 16, 374, 13, 309, 3859, 12, 2890, 18, 2978, 16, 10425, 768, 2 ]
value = ''
value = []
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = ''
f452ebf522b48878e10b0aabbe1fcf6bb0894c49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/f452ebf522b48878e10b0aabbe1fcf6bb0894c49/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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-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, -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, -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, -100, -100, -100, -100, -100 ]
descr = macro_provider.get_macro_description(macro_name) yield (macro_name, descr or '')
try: descr = macro_provider.get_macro_description(macro_name) descr = wiki_to_html(descr or '', self.env, req) except Exception, e: descr = Markup(system_message( "Error: Can't get description for macro %s" \ % macro_name, e)) yield (macro_name, descr)
def get_macro_descr(): for macro_provider in wiki.macro_providers: for macro_name in macro_provider.get_macros(): if content and macro_name != content: continue descr = macro_provider.get_macro_description(macro_name) yield (macro_name, descr or '')
3d2807f23ca7d22e27e3f04574a60c31be7d49a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/3d2807f23ca7d22e27e3f04574a60c31be7d49a4/macros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26448, 67, 28313, 13332, 364, 11522, 67, 6778, 316, 9050, 18, 26448, 67, 17520, 30, 364, 11522, 67, 529, 316, 11522, 67, 6778, 18, 588, 67, 5821, 6973, 13332, 309, 913, 471, 11522, 67, 529, 480, 913, 30, 1324, 18426, 273, 11522, 67, 6778, 18, 588, 67, 26448, 67, 3384, 12, 26448, 67, 529, 13, 2824, 261, 26448, 67, 529, 16, 18426, 578, 28707, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 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, 26448, 67, 28313, 13332, 364, 11522, 67, 6778, 316, 9050, 18, 26448, 67, 17520, 30, 364, 11522, 67, 529, 316, 11522, 67, 6778, 18, 588, 67, 5821, 6973, 13332, 309, 913, 471, 11522, 67, 529, 480, 913, 30, 1324, 18426, 273, 11522, 67, 6778, 18, 588, 67, 26448, 67, 3384, 12, 26448, 67, 529, 13, 2824, 261, 26448, 67, 529, 16, 18426, 578, 28707, 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, -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, -100, -100 ]
supress_keyborad_interrupt_message()
suppress_keyboard_interrupt_message()
def new_hook(type, value, traceback): if type != exceptions.KeyboardInterrupt: old_excepthook(type, value, traceback) else: pass
b782f7c4328ce0501adb3a55909c6423db48b72a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8331/b782f7c4328ce0501adb3a55909c6423db48b72a/scout-cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 4476, 12, 723, 16, 460, 16, 10820, 4672, 309, 618, 480, 4798, 18, 17872, 14126, 30, 1592, 67, 14137, 4476, 12, 723, 16, 460, 16, 10820, 13, 469, 30, 1342, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 394, 67, 4476, 12, 723, 16, 460, 16, 10820, 4672, 309, 618, 480, 4798, 18, 17872, 14126, 30, 1592, 67, 14137, 4476, 12, 723, 16, 460, 16, 10820, 13, 469, 30, 1342, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.dex = Indexer('test-index')
self.dex = Indexer(db)
def setUp(self): if os.path.exists('test-index'): shutil.rmtree('test-index') os.mkdir('test-index') os.mkdir('test-index/files') from roundup.backends.indexer_dbm import Indexer self.dex = Indexer('test-index') self.dex.load_index()
1f1f57233a8fc6f9a82cdc84875756f0899d5188 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1f1f57233a8fc6f9a82cdc84875756f0899d5188/test_indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 2668, 3813, 17, 1615, 11, 4672, 11060, 18, 86, 17371, 2668, 3813, 17, 1615, 6134, 1140, 18, 26686, 2668, 3813, 17, 1615, 6134, 1140, 18, 26686, 2668, 3813, 17, 1615, 19, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24292, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 2668, 3813, 17, 1615, 11, 4672, 11060, 18, 86, 17371, 2668, 3813, 17, 1615, 6134, 1140, 18, 26686, 2668, 3813, 17, 1615, 6134, 1140, 18, 26686, 2668, 3813, 17, 1615, 19, 2354, 6134, 628, 3643, 416, 18, 823, 5839, 18, 24541, 67, 1966, 81, 1930, 3340, 264, 365, 18, 561, 273, 3340, 264, 12, 1966, 13, 365, 18, 561, 18, 945, 67, 1615, 1435, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass
def _from_xdata_ydata(self, xdata, ydata, coerce, options): if coerce: xdata, ydata = self._coerce(xdata, ydata) g = Graphics() g._Graphics__objects.append(GraphicPrimitive_Line(xdata, ydata, options)) try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass return g
4cdc64d73e24ddcdf396a7b5f766f02774b0c237 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4cdc64d73e24ddcdf396a7b5f766f02774b0c237/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 13, 314, 273, 16830, 1435, 314, 6315, 17558, 972, 6911, 18, 6923, 12, 29459, 9840, 67, 1670, 12, 92, 892, 16, 29175, 16, 702, 3719, 327, 314, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 13, 314, 273, 16830, 1435, 314, 6315, 17558, 972, 6911, 18, 6923, 12, 29459, 9840, 67, 1670, 12, 92, 892, 16, 29175, 16, 702, 3719, 327, 314, 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, -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, -100, -100, -100, -100, -100, -100 ]
name = ft["name"]
name = str (ft["name"])
def parseSchema (self, ch, codec): """ Parse a received schema-description message. """ self.decOutstanding (ch) packageName = codec.read_str8 () className = codec.read_str8 () hash = codec.read_bin128 () configCount = codec.read_uint16 () instCount = codec.read_uint16 () methodCount = codec.read_uint16 () eventCount = codec.read_uint16 ()
00ad6c2f3a752d5e4d4798e1400a9afdc6e43f71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/00ad6c2f3a752d5e4d4798e1400a9afdc6e43f71/management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 3078, 261, 2890, 16, 462, 16, 9196, 4672, 3536, 2884, 279, 5079, 1963, 17, 3384, 883, 18, 3536, 365, 18, 4924, 1182, 15167, 261, 343, 13, 9929, 273, 9196, 18, 896, 67, 701, 28, 1832, 2658, 282, 273, 9196, 18, 896, 67, 701, 28, 1832, 1651, 3639, 273, 9196, 18, 896, 67, 4757, 10392, 1832, 642, 1380, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 1804, 1380, 282, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 707, 1380, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 871, 1380, 225, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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67, 701, 28, 1832, 1651, 3639, 273, 9196, 18, 896, 67, 4757, 10392, 1832, 642, 1380, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 1804, 1380, 282, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 707, 1380, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 871, 1380, 225, 273, 9196, 18, 896, 67, 11890, 2313, 1832, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return '[\n' + ',\n'.join([str(x) for x in self]) + '\n]'
""" EXAMPLES: sage: s = Sequence([1,2,3], cr=False) sage: str(s) '[1, 2, 3]' sage: repr(s) '[1, 2, 3]' sage: print s [1, 2, 3] sage: s = Sequence([1,2,3], cr=True) sage: str(s) '[\n1,\n2,\n3\n]' """ if self.__cr: return '[\n' + ',\n'.join([str(x) for x in self]) + '\n]' else: return list.__str__(self)
def __str__(self): return '[\n' + ',\n'.join([str(x) for x in self]) + '\n]'
17c3af957ec12a8f8095e3285241d09f4ae7542c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/17c3af957ec12a8f8095e3285241d09f4ae7542c/sequence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 5271, 64, 82, 11, 397, 2265, 64, 82, 10332, 5701, 3816, 701, 12, 92, 13, 364, 619, 316, 365, 5717, 397, 2337, 82, 3864, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 701, 972, 12, 2890, 4672, 327, 5271, 64, 82, 11, 397, 2265, 64, 82, 10332, 5701, 3816, 701, 12, 92, 13, 364, 619, 316, 365, 5717, 397, 2337, 82, 3864, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sh("python setupegg.py bdist_mpkg")
sh("python setupegg.py bdist_mpkg")
def bdist_mpkg(): sh("python setupegg.py bdist_mpkg")
0dc3ac827934f3cdc0f5f06ca1eff69684fd4830 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/0dc3ac827934f3cdc0f5f06ca1eff69684fd4830/pavement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 4413, 67, 1291, 14931, 13332, 699, 2932, 8103, 444, 89, 9001, 75, 18, 2074, 324, 4413, 67, 1291, 14931, 7923, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 324, 4413, 67, 1291, 14931, 13332, 699, 2932, 8103, 444, 89, 9001, 75, 18, 2074, 324, 4413, 67, 1291, 14931, 7923, 225, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for i, (objN, (x,y,z), size) in enumerate(objs): for j, (objN2, (x2,y2,z2), size) in enumerate(objs):
if tp == 0: continue for i, (objN, (x,y,z), size, objInt) in enumerate(objs): for j, (objN2, (x2,y2,z2), size2, objInt2) in enumerate(objs):
def clusterObjects(self, objects): """ Create clustering of objects """ combine = [] clustered = {} clusteredObjN = {} for tp,objs in enumerate(objects): for i, (objN, (x,y,z), size) in enumerate(objs): for j, (objN2, (x2,y2,z2), size) in enumerate(objs): if objN == objN2: continue if objN in clusteredObjN: continue if objN2 in clusteredObjN: continue if (tp,objN) in clustered or (tp,objN2) in clustered: continue d = math.sqrt(((x2-x) * self.spacing[0])**2 + ((y2-y) * self.spacing[1])**2 + ((z2-z) * self.spacing[2])**2) if d < self.parameters["ClusterDistance"]: if random.random()*100 < self.parameters["ClusterPercentage"]: combine.append((tp,objN,i,objN2,j)) clustered[(tp,objN2)]=1 clustered[(tp,objN)]=1 clusteredObjN[objN]=1 clusteredObjN[objN2]=1
b23cf9117065fb863e61cb5faab5ad9ae47fcd09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2877/b23cf9117065fb863e61cb5faab5ad9ae47fcd09/TestData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 4710, 12, 2890, 16, 2184, 4672, 3536, 1788, 18743, 434, 2184, 3536, 8661, 273, 5378, 2855, 329, 273, 2618, 2855, 329, 2675, 50, 273, 2618, 225, 364, 8071, 16, 18093, 316, 4241, 12, 6911, 4672, 309, 8071, 422, 374, 30, 1324, 364, 277, 16, 261, 2603, 50, 16, 261, 92, 16, 93, 16, 94, 3631, 963, 16, 1081, 1702, 13, 316, 4241, 12, 18093, 4672, 364, 525, 16, 261, 2603, 50, 22, 16, 261, 92, 22, 16, 93, 22, 16, 94, 22, 3631, 963, 22, 16, 1081, 1702, 22, 13, 316, 4241, 12, 18093, 4672, 309, 1081, 50, 422, 1081, 50, 22, 30, 1324, 309, 1081, 50, 316, 2855, 329, 2675, 50, 30, 1324, 309, 1081, 50, 22, 316, 2855, 329, 2675, 50, 30, 1324, 309, 261, 6834, 16, 2603, 50, 13, 316, 2855, 329, 578, 261, 6834, 16, 2603, 50, 22, 13, 316, 2855, 329, 30, 1324, 302, 273, 4233, 18, 24492, 12443, 12, 92, 22, 17, 92, 13, 380, 365, 18, 14080, 63, 20, 5717, 636, 22, 397, 14015, 93, 22, 17, 93, 13, 380, 365, 18, 14080, 63, 21, 5717, 636, 22, 397, 14015, 94, 22, 17, 94, 13, 380, 365, 18, 14080, 63, 22, 5717, 636, 22, 13, 309, 302, 411, 365, 18, 3977, 9614, 3629, 7200, 11929, 30, 309, 2744, 18, 9188, 1435, 14, 6625, 411, 365, 18, 3977, 9614, 3629, 16397, 11929, 30, 8661, 18, 6923, 12443, 6834, 16, 2603, 50, 16, 77, 16, 2603, 50, 22, 16, 78, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2855, 4710, 12, 2890, 16, 2184, 4672, 3536, 1788, 18743, 434, 2184, 3536, 8661, 273, 5378, 2855, 329, 273, 2618, 2855, 329, 2675, 50, 273, 2618, 225, 364, 8071, 16, 18093, 316, 4241, 12, 6911, 4672, 309, 8071, 422, 374, 30, 1324, 364, 277, 16, 261, 2603, 50, 16, 261, 92, 16, 93, 16, 94, 3631, 963, 16, 1081, 1702, 13, 316, 4241, 12, 18093, 4672, 364, 525, 16, 261, 2603, 50, 22, 16, 261, 92, 22, 16, 93, 22, 16, 94, 22, 3631, 963, 22, 16, 1081, 1702, 22, 13, 316, 4241, 12, 18093, 4672, 309, 1081, 50, 422, 1081, 50, 22, 30, 1324, 309, 1081, 50, 316, 2855, 329, 2675, 50, 30, 1324, 309, 1081, 50, 2 ]
return agendas.filter(pk=id)
try: return agendas.get(pk=id) except Agenda.DoesNotExist: return rc.NOT_FOUND
def read(self, request, **kwargs): agendas = Agenda.objects.get_relevant_for_user(user=None) # Handle API calls of type /agenda/[agenda_id] id = None if 'id' in kwargs: id = kwargs['id'] if id is not None: return agendas.filter(pk=id) # Handle API calls of type /agenda/vote/[vote_id] # Used to return the agendas ascribed to a specific vote object_id = None ctype = None if 'object_id' in kwargs and 'object_type' in kwargs: object_id = kwargs['object_id'] try: ctype = ContentType.objects.get(model=kwargs['object_type']) except ContentType.DoesNotExist: pass if object_id and (ctype == 'vote'): return agendas.filter(votes__id=object_id) else: return agendas
7a137ad3e8b6cd94cd0908a9ccdb1a2446b16d32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/7a137ad3e8b6cd94cd0908a9ccdb1a2446b16d32/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 590, 16, 2826, 4333, 4672, 1737, 409, 345, 273, 5495, 18883, 18, 6911, 18, 588, 67, 27719, 67, 1884, 67, 1355, 12, 1355, 33, 7036, 13, 225, 468, 5004, 1491, 4097, 434, 618, 342, 346, 18883, 19, 63, 346, 18883, 67, 350, 65, 612, 273, 599, 309, 296, 350, 11, 316, 1205, 30, 612, 273, 1205, 3292, 350, 3546, 309, 612, 353, 486, 599, 30, 775, 30, 327, 1737, 409, 345, 18, 588, 12, 5465, 33, 350, 13, 1335, 5495, 18883, 18, 15264, 30, 327, 4519, 18, 4400, 67, 9294, 225, 468, 5004, 1491, 4097, 434, 618, 342, 346, 18883, 19, 25911, 19, 63, 25911, 67, 350, 65, 468, 10286, 358, 327, 326, 1737, 409, 345, 6972, 1533, 329, 358, 279, 2923, 12501, 733, 67, 350, 273, 599, 11920, 273, 599, 309, 296, 1612, 67, 350, 11, 316, 1205, 471, 296, 1612, 67, 723, 11, 316, 1205, 30, 733, 67, 350, 273, 1205, 3292, 1612, 67, 350, 3546, 775, 30, 11920, 273, 11691, 18, 6911, 18, 588, 12, 2284, 33, 4333, 3292, 1612, 67, 723, 19486, 1335, 11691, 18, 15264, 30, 1342, 309, 733, 67, 350, 471, 261, 12387, 422, 296, 25911, 11, 4672, 327, 1737, 409, 345, 18, 2188, 12, 27800, 972, 350, 33, 1612, 67, 350, 13, 469, 30, 327, 1737, 409, 345, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 12, 2890, 16, 590, 16, 2826, 4333, 4672, 1737, 409, 345, 273, 5495, 18883, 18, 6911, 18, 588, 67, 27719, 67, 1884, 67, 1355, 12, 1355, 33, 7036, 13, 225, 468, 5004, 1491, 4097, 434, 618, 342, 346, 18883, 19, 63, 346, 18883, 67, 350, 65, 612, 273, 599, 309, 296, 350, 11, 316, 1205, 30, 612, 273, 1205, 3292, 350, 3546, 309, 612, 353, 486, 599, 30, 775, 30, 327, 1737, 409, 345, 18, 588, 12, 5465, 33, 350, 13, 1335, 5495, 18883, 18, 15264, 30, 327, 4519, 18, 4400, 67, 9294, 225, 468, 5004, 1491, 4097, 434, 618, 342, 346, 18883, 19, 25911, 19, 63, 25911, 67, 350, 65, 468, 10286, 358, 327, 326, 1737, 2 ]
self.paths[rev] = (paths, parents)
def parselogentry(orig_paths, revnum, author, date, message): self.ui.debug("parsing revision %d (%d changes)\n" % (revnum, len(orig_paths)))
c6a1068cdcfcb9641c61c95fff848144537955b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/c6a1068cdcfcb9641c61c95fff848144537955b7/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 261, 9083, 2107, 16, 562, 12, 4949, 67, 4481, 20349, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 779, 1786, 717, 4099, 12, 4949, 67, 4481, 16, 5588, 2107, 16, 2869, 16, 1509, 16, 883, 4672, 365, 18, 4881, 18, 4148, 2932, 24979, 6350, 738, 72, 6142, 72, 3478, 5153, 82, 6, 738, 261, 9083, 2107, 16, 562, 12, 4949, 67, 4481, 20349, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
o.write("From: %s\r\n" % from_email)
o.write("From: %s\n" % from_email)
def sendmailme(to_email, msg, email_subject=None, from_email=None, html=True, sendmail=SENDMAIL): """ Quick and dirty, pipe a message to sendmail. Can only work on UNIX type systems with sendmail. Will need the path to sendmail - defaults to the 'SENDMAIL' constant. ``to_email`` can be a single email address, *or* a list of addresses. *Assumes* you are sending an html email created by ``createhtmlmail``. If this isn't the case then set ``html=False``. """ if not isinstance(to_email, list): to_email = [to_email] o = os.popen("%(a)s -t -f %(b)s" % {'a':sendmail, 'b':from_email},"w") o.write("To: %s\r\n" % ','.join(to_email)) if from_email: o.write("From: %s\r\n" % from_email) if not html and email_subject: o.write("Subject: %s\r\n" % email_subject) o.write("\r\n") o.write("%s\r\n" % msg) o.close()
ded8e8d2c7e2d693b382726a6d565ddb6855e3b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7008/ded8e8d2c7e2d693b382726a6d565ddb6855e3b7/cgiutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 3501, 12, 869, 67, 3652, 16, 1234, 16, 2699, 67, 7857, 33, 7036, 16, 628, 67, 3652, 33, 7036, 16, 1729, 33, 5510, 16, 1366, 4408, 33, 21675, 18191, 4672, 3536, 19884, 471, 9603, 16, 6010, 279, 883, 358, 1366, 4408, 18, 4480, 1338, 1440, 603, 23160, 618, 14908, 598, 1366, 4408, 18, 225, 9980, 1608, 326, 589, 358, 1366, 4408, 300, 3467, 358, 326, 296, 21675, 18191, 11, 5381, 18, 225, 12176, 869, 67, 3652, 10335, 848, 506, 279, 2202, 2699, 1758, 16, 380, 280, 14, 279, 666, 434, 6138, 18, 225, 380, 2610, 6411, 14, 1846, 854, 5431, 392, 1729, 2699, 2522, 635, 12176, 2640, 2620, 4408, 68, 8338, 971, 333, 5177, 1404, 326, 648, 1508, 444, 12176, 2620, 33, 8381, 68, 8338, 3536, 309, 486, 1549, 12, 869, 67, 3652, 16, 666, 4672, 358, 67, 3652, 273, 306, 869, 67, 3652, 65, 320, 273, 1140, 18, 84, 3190, 2932, 17105, 69, 13, 87, 300, 88, 300, 74, 8975, 70, 13, 87, 6, 738, 13666, 69, 4278, 4661, 4408, 16, 296, 70, 4278, 2080, 67, 3652, 5779, 6, 91, 7923, 320, 18, 2626, 2932, 774, 30, 738, 87, 64, 86, 64, 82, 6, 738, 225, 3316, 18, 5701, 12, 869, 67, 3652, 3719, 309, 628, 67, 3652, 30, 320, 18, 2626, 2932, 1265, 30, 738, 87, 64, 82, 6, 738, 225, 628, 67, 3652, 13, 309, 486, 1729, 471, 2699, 67, 7857, 30, 320, 18, 2626, 2932, 6638, 30, 738, 87, 64, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4408, 3501, 12, 869, 67, 3652, 16, 1234, 16, 2699, 67, 7857, 33, 7036, 16, 628, 67, 3652, 33, 7036, 16, 1729, 33, 5510, 16, 1366, 4408, 33, 21675, 18191, 4672, 3536, 19884, 471, 9603, 16, 6010, 279, 883, 358, 1366, 4408, 18, 4480, 1338, 1440, 603, 23160, 618, 14908, 598, 1366, 4408, 18, 225, 9980, 1608, 326, 589, 358, 1366, 4408, 300, 3467, 358, 326, 296, 21675, 18191, 11, 5381, 18, 225, 12176, 869, 67, 3652, 10335, 848, 506, 279, 2202, 2699, 1758, 16, 380, 280, 14, 279, 666, 434, 6138, 18, 225, 380, 2610, 6411, 14, 1846, 854, 5431, 392, 1729, 2699, 2522, 635, 12176, 2640, 2620, 4408, 68, 8338, 971, 333, 5177, 1404, 326, 2 ]
cur_report_errors.add("This error was already printed " "in some other test, see 'hash=
cur_report_errors.add("This error was already printed in " "some other test, see 'hash=
def Report(self, files, check_sanity=False): '''Reads in a set of files and prints Memcheck report.
093ae2e104899325a1bacee5ad1990f44305506e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/093ae2e104899325a1bacee5ad1990f44305506e/memcheck_analyze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8706, 12, 2890, 16, 1390, 16, 866, 67, 87, 10417, 33, 8381, 4672, 9163, 7483, 316, 279, 444, 434, 1390, 471, 14971, 5890, 1893, 2605, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8706, 12, 2890, 16, 1390, 16, 866, 67, 87, 10417, 33, 8381, 4672, 9163, 7483, 316, 279, 444, 434, 1390, 471, 14971, 5890, 1893, 2605, 18, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
resourceList = self._resourceHandler.findAllResources([lib], None)
resourceList = self._resourceHandler.findAllResources1([lib], None)
def addCombinedImage(combinedResource, combinedId, combinedObj): '''this does basically what processCombinedImg does, but with no side effects''' # Read the .meta file # it doesn't seem worth to apply caching here meta_fname = os.path.splitext(combinedResource)[0]+'.meta' meta_content = filetool.read(meta_fname) imgDict = json.loads(meta_content) embeddedDict = {}
a21e93984f807980160d939e8a7f1f7a6fe90405 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/a21e93984f807980160d939e8a7f1f7a6fe90405/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 27994, 2040, 12, 27458, 1420, 16, 8224, 548, 16, 8224, 2675, 4672, 9163, 2211, 1552, 23772, 4121, 1207, 27994, 12804, 1552, 16, 1496, 598, 1158, 4889, 16605, 26418, 468, 2720, 326, 263, 3901, 585, 468, 518, 3302, 1404, 19264, 26247, 358, 2230, 11393, 2674, 2191, 67, 12749, 282, 273, 1140, 18, 803, 18, 4939, 408, 12, 27458, 1420, 25146, 20, 3737, 10332, 3901, 11, 2191, 67, 1745, 273, 661, 278, 1371, 18, 896, 12, 3901, 67, 12749, 13, 3774, 5014, 1377,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 27994, 2040, 12, 27458, 1420, 16, 8224, 548, 16, 8224, 2675, 4672, 9163, 2211, 1552, 23772, 4121, 1207, 27994, 12804, 1552, 16, 1496, 598, 1158, 4889, 16605, 26418, 468, 2720, 326, 263, 3901, 585, 468, 518, 3302, 1404, 19264, 26247, 358, 2230, 11393, 2674, 2191, 67, 12749, 282, 273, 1140, 18, 803, 18, 4939, 408, 12, 27458, 1420, 25146, 20, 3737, 10332, 3901, 11, 2191, 67, 1745, 273, 661, 278, 1371, 18, 896, 12, 3901, 67, 12749, 13, 3774, 5014, 1377, 273, 1163, 18, 17135, 12, 3901, 67, 1745, 13, 7488, 5014, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
leftOfLeft = max([x for x in points if x <= left])
leftOfLeft = max([x for x in points if x < left])
def SnapSelectionToFadePoints(self, event): if len(self.event.audioFadePoints) < 2: #not enough levels return points = [x[0] for x in self.event.audioFadePoints] left, right = self.event.selection leftOfLeft = max([x for x in points if x <= left]) rightOfLeft = min([x for x in points if x >= left]) leftOfRight = max([x for x in points if x <= right]) rightOfRight = min([x for x in points if x >= right]) if abs(leftOfLeft - left) < abs(rightOfLeft - left): leftChooses = leftOfLeft else: leftChooses = rightOfLeft
005410d48dc77ca205ebb2ce32f601d2594680fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/005410d48dc77ca205ebb2ce32f601d2594680fb/EventViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 2322, 6233, 774, 42, 2486, 5636, 12, 2890, 16, 871, 4672, 309, 562, 12, 2890, 18, 2575, 18, 11509, 42, 2486, 5636, 13, 411, 576, 30, 468, 902, 7304, 7575, 327, 225, 3143, 273, 306, 92, 63, 20, 65, 364, 619, 316, 365, 18, 2575, 18, 11509, 42, 2486, 5636, 65, 2002, 16, 2145, 273, 365, 18, 2575, 18, 10705, 225, 2002, 951, 3910, 273, 943, 3816, 92, 364, 619, 316, 3143, 309, 619, 411, 2002, 5717, 2145, 951, 3910, 273, 1131, 3816, 92, 364, 619, 316, 3143, 309, 619, 1545, 2002, 5717, 225, 2002, 951, 4726, 273, 943, 3816, 92, 364, 619, 316, 3143, 309, 619, 1648, 2145, 5717, 2145, 951, 4726, 273, 1131, 3816, 92, 364, 619, 316, 3143, 309, 619, 1545, 2145, 5717, 225, 309, 2417, 12, 4482, 951, 3910, 300, 2002, 13, 411, 2417, 12, 4083, 951, 3910, 300, 2002, 4672, 2002, 9636, 538, 281, 273, 2002, 951, 3910, 469, 30, 2002, 9636, 538, 281, 273, 2145, 951, 3910, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 348, 2322, 6233, 774, 42, 2486, 5636, 12, 2890, 16, 871, 4672, 309, 562, 12, 2890, 18, 2575, 18, 11509, 42, 2486, 5636, 13, 411, 576, 30, 468, 902, 7304, 7575, 327, 225, 3143, 273, 306, 92, 63, 20, 65, 364, 619, 316, 365, 18, 2575, 18, 11509, 42, 2486, 5636, 65, 2002, 16, 2145, 273, 365, 18, 2575, 18, 10705, 225, 2002, 951, 3910, 273, 943, 3816, 92, 364, 619, 316, 3143, 309, 619, 411, 2002, 5717, 2145, 951, 3910, 273, 1131, 3816, 92, 364, 619, 316, 3143, 309, 619, 1545, 2002, 5717, 225, 2002, 951, 4726, 273, 943, 3816, 92, 364, 619, 316, 3143, 309, 619, 1648, 2145, 5717, 2145, 951, 4726, 273, 1131, 3816, 92, 2 ]
""" fl_create_glcanvas(type, x, y, w, h, label) -> object ref.
""" fl_create_glcanvas(type, x, y, w, h, label) -> object
def fl_create_glcanvas(type, x, y, w, h, label): """ fl_create_glcanvas(type, x, y, w, h, label) -> object ref. """ retval = _fl_create_glcanvas(type, x, y, w, h, label) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 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, -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 ]
print 'handling', e
def key_down(self, when, event): super(GraphWidget, self).key_down(when, event) if when == 'post': return False e = event.pygame_event if (e.mod & pygame.KMOD_CTRL): print 'handling', e self.handle_control_key(e) return True else: return False
951fd62b0fb90afdc8decf0dc9d28c1dd9f32a43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5406/951fd62b0fb90afdc8decf0dc9d28c1dd9f32a43/GraphWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 2378, 12, 2890, 16, 1347, 16, 871, 4672, 2240, 12, 4137, 4609, 16, 365, 2934, 856, 67, 2378, 12, 13723, 16, 871, 13, 309, 1347, 422, 296, 2767, 4278, 327, 1083, 225, 425, 273, 871, 18, 2074, 13957, 67, 2575, 309, 261, 73, 18, 1711, 473, 2395, 13957, 18, 47, 6720, 67, 23876, 48, 4672, 365, 18, 4110, 67, 7098, 67, 856, 12, 73, 13, 327, 1053, 469, 30, 327, 1083, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2890, 16, 1347, 16, 871, 4672, 2240, 12, 4137, 4609, 16, 365, 2934, 856, 67, 2378, 12, 13723, 16, 871, 13, 309, 1347, 422, 296, 2767, 4278, 327, 1083, 225, 425, 273, 871, 18, 2074, 13957, 67, 2575, 309, 261, 73, 18, 1711, 473, 2395, 13957, 18, 47, 6720, 67, 23876, 48, 4672, 365, 18, 4110, 67, 7098, 67, 856, 12, 73, 13, 327, 1053, 469, 30, 327, 1083, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return S_ERROR()
if doNotExit: return S_ERROR() error = 'MySQL not properly Installed' gLogger.error( error ) if exitOnError: exit( -1 ) return S_ERROR( error )
def mysqlInstalled(): """ Check if MySQL is already installed """ if os.path.exists( mysqlDbDir ) or os.path.exists( mysqlLogDir ): return S_OK() return S_ERROR()
19ec07f0c2998016b3e98f643782f5cf2dff8b15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/19ec07f0c2998016b3e98f643782f5cf2dff8b15/InstallTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7219, 16747, 13332, 3536, 2073, 309, 13485, 353, 1818, 5876, 3536, 225, 309, 1140, 18, 803, 18, 1808, 12, 7219, 4331, 1621, 262, 578, 1140, 18, 803, 18, 1808, 12, 7219, 1343, 1621, 262, 30, 327, 348, 67, 3141, 1435, 309, 741, 1248, 6767, 30, 327, 348, 67, 3589, 1435, 225, 555, 273, 296, 28723, 486, 8214, 13448, 4502, 11, 314, 3328, 18, 1636, 12, 555, 262, 309, 2427, 11427, 30, 2427, 12, 300, 21, 262, 327, 348, 67, 3589, 12, 555, 262, 225, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7219, 16747, 13332, 3536, 2073, 309, 13485, 353, 1818, 5876, 3536, 225, 309, 1140, 18, 803, 18, 1808, 12, 7219, 4331, 1621, 262, 578, 1140, 18, 803, 18, 1808, 12, 7219, 1343, 1621, 262, 30, 327, 348, 67, 3141, 1435, 309, 741, 1248, 6767, 30, 327, 348, 67, 3589, 1435, 225, 555, 273, 296, 28723, 486, 8214, 13448, 4502, 11, 314, 3328, 18, 1636, 12, 555, 262, 309, 2427, 11427, 30, 2427, 12, 300, 21, 262, 327, 348, 67, 3589, 12, 555, 262, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
allocator.mc.MOV(loc, srcop)
try: allocator.mc.MOV(loc, srcop) except FailedToImplement: tmpop = allocator.create_scratch_reg(srcop) allocator.mc.MOV(loc, tmpop) allocator.end_clobber(tmpop)
def generate(self, allocator): assert allocator.operation_result_is_used(self), "place not absorbed!" loc = allocator._use_another_stack_loc() allocator._created(self, loc) if self.x is not None: srcop = allocator.get_operand(self.x) allocator.mc.MOV(loc, srcop) allocator.release(self.x) self.x = None # hack to avoid that the Place keeps a lot of # memory around self.offset = loc.ofs_relative_to_ebp()
58ea92aa7188f83f0d4df7d77469d0b4b3f568b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/58ea92aa7188f83f0d4df7d77469d0b4b3f568b8/regalloc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 16, 26673, 4672, 1815, 26673, 18, 7624, 67, 2088, 67, 291, 67, 3668, 12, 2890, 3631, 315, 964, 486, 2417, 280, 2992, 4442, 1515, 273, 26673, 6315, 1202, 67, 304, 3011, 67, 3772, 67, 1829, 1435, 26673, 6315, 4824, 12, 2890, 16, 1515, 13, 309, 365, 18, 92, 353, 486, 599, 30, 1705, 556, 273, 26673, 18, 588, 67, 4063, 464, 12, 2890, 18, 92, 13, 775, 30, 26673, 18, 13952, 18, 5980, 58, 12, 1829, 16, 1705, 556, 13, 1335, 11175, 774, 5726, 30, 225, 1853, 556, 273, 26673, 18, 2640, 67, 24638, 505, 67, 1574, 12, 4816, 556, 13, 282, 26673, 18, 13952, 18, 5980, 58, 12, 1829, 16, 1853, 556, 13, 26673, 18, 409, 67, 71, 1295, 744, 12, 5645, 556, 13, 26673, 18, 9340, 12, 2890, 18, 92, 13, 365, 18, 92, 273, 599, 377, 468, 11769, 358, 4543, 716, 326, 13022, 20948, 279, 17417, 434, 468, 3778, 6740, 365, 18, 3348, 273, 1515, 18, 792, 87, 67, 11626, 67, 869, 67, 73, 17152, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2103, 12, 2890, 16, 26673, 4672, 1815, 26673, 18, 7624, 67, 2088, 67, 291, 67, 3668, 12, 2890, 3631, 315, 964, 486, 2417, 280, 2992, 4442, 1515, 273, 26673, 6315, 1202, 67, 304, 3011, 67, 3772, 67, 1829, 1435, 26673, 6315, 4824, 12, 2890, 16, 1515, 13, 309, 365, 18, 92, 353, 486, 599, 30, 1705, 556, 273, 26673, 18, 588, 67, 4063, 464, 12, 2890, 18, 92, 13, 775, 30, 26673, 18, 13952, 18, 5980, 58, 12, 1829, 16, 1705, 556, 13, 1335, 11175, 774, 5726, 30, 225, 1853, 556, 273, 26673, 18, 2640, 67, 24638, 505, 67, 1574, 12, 4816, 556, 13, 282, 26673, 18, 13952, 18, 5980, 58, 12, 1829, 16, 1853, 556, 13, 26673, 2 ]
return cls(path, slow, allow_oom, tmflags, valgrind)
return cls(path, slow, allow_oom, tmflags, valgrind or options.valgrind_all)
def from_file(cls, path, options): slow = allow_oom = valgrind = False tmflags = ''
f8466b6f9b9714813f0e5143095ffb499b6a3b39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/f8466b6f9b9714813f0e5143095ffb499b6a3b39/trace-test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 768, 12, 6429, 16, 589, 16, 702, 4672, 11816, 273, 1699, 67, 4252, 273, 1244, 3197, 728, 273, 1083, 6118, 7133, 273, 875, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 628, 67, 768, 12, 6429, 16, 589, 16, 702, 4672, 11816, 273, 1699, 67, 4252, 273, 1244, 3197, 728, 273, 1083, 6118, 7133, 273, 875, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(1/5 + 2/5*T + 2/5*T^2)/(1 - 3*T + 2*T^2)
(2/5*T^2 + 2/5*T + 1/5)/(2*T^2 - 3*T + 1)
def zeta_function(self,mode=None): """ Returns the Duursma zeta function of the code. mode = "dual" computes both the zeta function of C and that of C* mode = "normalized" computes the normalized zeta function of C, zeta_C(T)*T(1-genus(C)) (NOTE: if xi(T,C) denotes the normalized zeta function then xi(T,C*) = xi(1/(qT),C) is equivalent to zeta_{C*}(T) = zeta_C(1/(qT))*q^(gamma-1)T^(gamma+gamma*-2), where gamma = gamma(C) and gamma* = gamma(C*).)
3f2502b7e616a90e4647903a0572f6e04040241f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3f2502b7e616a90e4647903a0572f6e04040241f/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 1066, 67, 915, 12, 2890, 16, 3188, 33, 7036, 4672, 3536, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 445, 434, 326, 981, 18, 225, 1965, 273, 315, 72, 1462, 6, 15881, 3937, 326, 998, 1066, 445, 434, 385, 471, 716, 434, 385, 14, 1965, 273, 315, 17762, 6, 15881, 326, 5640, 998, 1066, 445, 434, 385, 16, 998, 1066, 67, 39, 12, 56, 17653, 56, 12, 21, 17, 4507, 407, 12, 39, 3719, 261, 17857, 30, 309, 14087, 12, 56, 16, 39, 13, 5545, 6366, 326, 5640, 998, 1066, 445, 1508, 14087, 12, 56, 16, 39, 12437, 273, 14087, 12, 21, 19, 12, 85, 56, 3631, 39, 13, 353, 7680, 358, 998, 1066, 14147, 39, 23237, 12, 56, 13, 273, 998, 1066, 67, 39, 12, 21, 19, 12, 85, 56, 3719, 14, 85, 29020, 20589, 17, 21, 13, 56, 29020, 20589, 15, 20589, 14, 17, 22, 3631, 1625, 9601, 273, 9601, 12, 39, 13, 471, 9601, 14, 273, 9601, 12, 39,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0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 1066, 67, 915, 12, 2890, 16, 3188, 33, 7036, 4672, 3536, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 445, 434, 326, 981, 18, 225, 1965, 273, 315, 72, 1462, 6, 15881, 3937, 326, 998, 1066, 445, 434, 385, 471, 716, 434, 385, 14, 1965, 273, 315, 17762, 6, 15881, 326, 5640, 998, 1066, 445, 434, 385, 16, 998, 1066, 67, 39, 12, 56, 17653, 56, 12, 21, 17, 4507, 407, 12, 39, 3719, 261, 17857, 30, 309, 14087, 12, 56, 16, 39, 13, 5545, 6366, 326, 5640, 998, 1066, 445, 1508, 14087, 12, 56, 16, 39, 12437, 273, 14087, 12, 21, 19, 12, 85, 56, 3631, 39, 13, 353, 7680, 358, 998, 1066, 14147, 39, 23237, 2 ]
self.func = lambda y, t: hstack([func(ooT.vector2point(hstack((y, t)))) for func in Funcs]) self.derivative = lambda y, t: vstack([ooT.pointDerivative2array(func.D(ooT.vector2point(hstack((y, t))))) for func in Funcs])
def func (y, t): tmp = dict(ooT.vector2point(y)) tmp[timeVariable] = t return hstack([func(tmp) for func in Funcs]) self.func = func def derivative(y, t): tmp = dict(ooT.vector2point(y)) tmp[timeVariable] = t return vstack([ooT.pointDerivative2array(func.D(tmp)) for func in Funcs]) self.derivative = derivative
def __init__(self, equations, startPoint, timeVariable, timeArray, *args, **kwargs): if len(args) > 0: FuncDesignerException('incorrect ode definition, too many args are obtained') if not isinstance(equations, dict): raise FuncDesignerException('1st argument of ode constructor should be Python dict')
86780e6a1c8ff8db89bad73d3145404217dc7c42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/86780e6a1c8ff8db89bad73d3145404217dc7c42/ode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 30369, 16, 787, 2148, 16, 813, 3092, 16, 813, 1076, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 562, 12, 1968,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2738, 972, 12, 2890, 16, 30369, 16, 787, 2148, 16, 813, 3092, 16, 813, 1076, 16, 380, 1968, 16, 2826, 4333, 4672, 309, 562, 12, 1968, 13, 405, 374, 30, 225, 6165, 15478, 264, 503, 2668, 267, 6746, 320, 323, 2379, 16, 4885, 4906, 833, 854, 12700, 6134, 225, 309, 486, 1549, 12, 14298, 1012, 16, 2065, 4672, 1002, 6165, 15478, 264, 503, 2668, 21, 334, 1237, 434, 320, 323, 3885, 1410, 506, 6600, 2065, 6134, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def syncHandBoard(self):
def syncHandBoard(self, tileName=None):
def syncHandBoard(self): pass
9489a557ae7db013d2ca169da4d05057d465488f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/9489a557ae7db013d2ca169da4d05057d465488f/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3792, 1144, 22233, 12, 2890, 16, 4769, 461, 33, 7036, 4672, 1342, 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, -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, -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, -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, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(tarinfo.mtime, os.path.getmtime(path))
self.assertEqual(tarinfo.mtime, int(os.path.getmtime(path)))
def test_extractall(self): # Test if extractall() correctly restores directory permissions # and times (see issue1735). tar = tarfile.open(tarname, encoding="iso8859-1") try: directories = [t for t in tar if t.isdir()] tar.extractall(TEMPDIR, directories) for tarinfo in directories: path = os.path.join(TEMPDIR, tarinfo.name) if sys.platform != "win32": # Win32 has no support for fine grained permissions. self.assertEqual(tarinfo.mode & 0o777, os.stat(path).st_mode & 0o777) self.assertEqual(tarinfo.mtime, os.path.getmtime(path)) finally: tar.close()
453106bf4853f8ee668f2737b8c553462a50a392 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/453106bf4853f8ee668f2737b8c553462a50a392/test_tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8004, 454, 12, 2890, 4672, 468, 7766, 309, 2608, 454, 1435, 8783, 3127, 3485, 1867, 4371, 468, 471, 4124, 261, 5946, 5672, 4033, 4763, 2934, 8232, 273, 25857, 18, 3190, 12, 11718, 529, 16, 2688, 1546, 9699, 17258, 17, 21, 7923, 775, 30, 6402, 273, 306, 88, 364, 268, 316, 8232, 309, 268, 18, 291, 1214, 1435, 65, 8232, 18, 8004, 454, 12, 10258, 4537, 16, 6402, 13, 364, 8232, 1376, 316, 6402, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 10258, 4537, 16, 8232, 1376, 18, 529, 13, 309, 2589, 18, 9898, 480, 315, 8082, 1578, 6877, 468, 21628, 1578, 711, 1158, 2865, 364, 11079, 3087, 1920, 4371, 18, 365, 18, 11231, 5812, 12, 11718, 1376, 18, 3188, 473, 374, 83, 14509, 16, 1140, 18, 5642, 12, 803, 2934, 334, 67, 3188, 473, 374, 83, 14509, 13, 365, 18, 11231, 5812, 12, 11718, 1376, 18, 10838, 16, 509, 12, 538, 18, 803, 18, 588, 10838, 12, 803, 20349, 3095, 30, 8232, 18, 4412, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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18, 3190, 12, 11718, 529, 16, 2688, 1546, 9699, 17258, 17, 21, 7923, 775, 30, 6402, 273, 306, 88, 364, 268, 316, 8232, 309, 268, 18, 291, 1214, 1435, 65, 8232, 18, 8004, 454, 12, 10258, 4537, 16, 6402, 13, 364, 8232, 1376, 316, 6402, 30, 589, 273, 1140, 18, 803, 18, 5701, 12, 10258, 4537, 16, 8232, 1376, 18, 529, 13, 309, 2589, 18, 9898, 480, 315, 8082, 1578, 6877, 468, 21628, 1578, 711, 1158, 2865, 364, 11079, 3087, 1920, 4371, 18, 365, 18, 11231, 5812, 12, 2 ]
if len(w_value.digits) == 1: if w_value.digits[0] & SIGN_MASK == 0: return space.newint(int(w_value.digits[0]) * w_value.sign) elif w_value.sign == -1 and w_value.digits[0] & NONSIGN_MASK == 0: return space.newint(intmask(w_value.digits[0])) return long__Long(space, w_value)
try: x = _AsLong(w_value) except OverflowError: return long__Long(space, w_value) else: return space.newint(x)
def int__Long(space, w_value): if len(w_value.digits) == 1: if w_value.digits[0] & SIGN_MASK == 0: return space.newint(int(w_value.digits[0]) * w_value.sign) elif w_value.sign == -1 and w_value.digits[0] & NONSIGN_MASK == 0: return space.newint(intmask(w_value.digits[0])) #subtypes of long are converted to long! return long__Long(space, w_value)
ad929a678777d2ef2df66adef7cd3564d723bca6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ad929a678777d2ef2df66adef7cd3564d723bca6/longobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 509, 972, 3708, 12, 2981, 16, 341, 67, 1132, 4672, 309, 562, 12, 91, 67, 1132, 18, 16649, 13, 422, 404, 30, 309, 341, 67, 1132, 18, 16649, 63, 20, 65, 473, 12057, 67, 11704, 422, 374, 30, 327, 3476, 18, 2704, 474, 12, 474, 12, 91, 67, 1132, 18, 16649, 63, 20, 5717, 380, 341, 67, 1132, 18, 2977, 13, 1327, 341, 67, 1132, 18, 2977, 422, 300, 21, 471, 341, 67, 1132, 18, 16649, 63, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 972, 3708, 12, 2981, 16, 341, 67, 1132, 4672, 309, 562, 12, 91, 67, 1132, 18, 16649, 13, 422, 404, 30, 309, 341, 67, 1132, 18, 16649, 63, 20, 65, 473, 12057, 67, 11704, 422, 374, 30, 327, 3476, 18, 2704, 474, 12, 474, 12, 91, 67, 1132, 18, 16649, 63, 20, 5717, 380, 341, 67, 1132, 18, 2977, 13, 1327, 341, 67, 1132, 18, 2977, 422, 300, 21, 471, 341, 67, 1132, 18, 16649, 63, 20, 65, 473, 18708, 11260, 67, 11704, 422, 374, 30, 327, 3476, 18, 2704, 474, 12, 474, 4455, 12, 91, 67, 1132, 18, 16649, 63, 20, 22643, 468, 1717, 2352, 434, 1525, 854, 5970, 358, 1525, 5, 327, 1525, 972, 3708, 2 ]
and OpenSSL functions that expect BIO *. If you wish to manipulate files in Python, use Python's file object."""
and OpenSSL functions that expect BIO *. For general file manipulation in Python, use Python's file object."""
def read_all(self): try: return m2.bio_read(self.bio, m2.bio_ctrl_pending(self.bio)) except: return ''
5fae622b3e57f5376d76a6820f3aaa8c50cce5d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/5fae622b3e57f5376d76a6820f3aaa8c50cce5d5/BIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 454, 12, 2890, 4672, 775, 30, 327, 312, 22, 18, 21010, 67, 896, 12, 2890,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 855, 67, 454, 12, 2890, 4672, 775, 30, 327, 312, 22, 18, 21010, 67, 896, 12, 2890, 18, 21010, 16, 312, 22, 18, 21010, 67, 16277, 67, 9561, 12, 2890, 18, 21010, 3719, 1335, 30, 327, 875, 225, 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, -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, -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, -100, -100, -100, -100, -100 ]
None, [cty.POINTER(FL_OBJECT), STRING, STRING],
None, [cty.POINTER(FL_OBJECT), STRING, STRING],
def fl_set_xyplot_grid_linestyle(obj, style): """ fl_set_xyplot_grid_linestyle(obj, style) -> num. """ retval = _fl_set_xyplot_grid_linestyle(obj, style) return retval
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, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 13, 327, 5221, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 4672, 3536, 1183, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 542, 67, 1698, 4032, 67, 5222, 67, 7511, 19706, 12, 2603, 16, 2154, 13, 327, 5221, 282, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertRaises(ValueError, rmltopdf_test, 'pdf/11.xml')
self.assertRaises((IndexError, ValueError), rmltopdf_test, 'pdf/11.xml')
def test_error(self): self.assertRaises(ValueError, rmltopdf_test, 'pdf/11.xml')
651db1d6311ba7b43baa789921305d2f65fde308 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/651db1d6311ba7b43baa789921305d2f65fde308/test_pdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1636, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 436, 781, 3669, 2180, 67, 3813, 16, 296, 7699, 19, 2499, 18, 2902, 6134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 1636, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 23610, 16, 436, 781, 3669, 2180, 67, 3813, 16, 296, 7699, 19, 2499, 18, 2902, 6134, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _isDeadEnd(self, obj):
def _isDeadEnd(self, obj, objName=None):
def _isDeadEnd(self, obj): if type(obj) in (types.BooleanType, types.BuiltinFunctionType, types.BuiltinMethodType, types.ComplexType, types.FloatType, types.IntType, types.LongType, types.NoneType, types.NotImplementedType, types.TypeType, types.CodeType, types.FunctionType): return True # if it's an internal object, ignore it if id(obj) in ContainerLeakDetector.PrivateIds: return True if id(obj) in self._id2ref: return True return False
88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 11852, 1638, 12, 2890, 16, 1081, 16, 1081, 461, 33, 7036, 4672, 309, 618, 12, 2603, 13, 316, 261, 2352, 18, 5507, 559, 16, 1953, 18, 28032, 2083, 559, 16, 1953, 18, 28032, 21988, 16, 1953, 18, 12795, 559, 16, 1953, 18, 4723, 559, 16, 1953, 18, 1702, 559, 16, 1953, 18, 3708, 559, 16, 1953, 18, 7036, 559, 16, 1953, 18, 1248, 8644, 559, 16, 1953, 18, 559, 559, 16, 1953, 18, 1085, 559, 16, 1953, 18, 2083, 559, 4672, 327, 1053, 468, 309, 518, 1807, 392, 2713, 733, 16, 2305, 518, 309, 612, 12, 2603, 13, 316, 4039, 1682, 581, 12594, 18, 6014, 2673, 30, 327, 1053, 309, 612, 12, 2603, 13, 316, 365, 6315, 350, 22, 1734, 30, 327, 1053, 327, 1083, 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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0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 11852, 1638, 12, 2890, 16, 1081, 16, 1081, 461, 33, 7036, 4672, 309, 618, 12, 2603, 13, 316, 261, 2352, 18, 5507, 559, 16, 1953, 18, 28032, 2083, 559, 16, 1953, 18, 28032, 21988, 16, 1953, 18, 12795, 559, 16, 1953, 18, 4723, 559, 16, 1953, 18, 1702, 559, 16, 1953, 18, 3708, 559, 16, 1953, 18, 7036, 559, 16, 1953, 18, 1248, 8644, 559, 16, 1953, 18, 559, 559, 16, 1953, 18, 1085, 559, 16, 1953, 18, 2083, 559, 4672, 327, 1053, 468, 309, 518, 1807, 392, 2713, 733, 16, 2305, 518, 309, 612, 12, 2603, 13, 316, 4039, 1682, 581, 12594, 18, 6014, 2673, 30, 327, 1053, 309, 612, 12, 2603, 13, 316, 365, 2 ]
hexobj = re.compile('0x[0123456789abcdef]+')
hexobj = re.compile('0x[0123456789abcdef]+L?')
def method(self): pass
bd17bf2510b4dd5b92130a4fdaade1bbb8272302 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/bd17bf2510b4dd5b92130a4fdaade1bbb8272302/test__greenlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 12, 2890, 4672, 1342, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 707, 12, 2890, 4672, 1342, 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, -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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
r = len(v) == len(w)
try: r = len(v) == len(w) except TypeError: print 'info: comparing different types in Vec (%s)' % v.__class__.__name__ return False
def __eq__(v, w): r = len(v) == len(w) for a, b in zip(v, w): if not r: break r = r and eq(a, b, v.eqMargin) return r
01766ba4dd04bc77b0640dd736c36fcde5c8bc17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14814/01766ba4dd04bc77b0640dd736c36fcde5c8bc17/GeomTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 90, 16, 341, 4672, 775, 30, 436, 273, 562, 12, 90, 13, 422, 562, 12, 91, 13, 1335, 3580, 30, 1172, 296, 1376, 30, 17553, 3775, 1953, 316, 12969, 6142, 87, 2506, 738, 331, 16186, 1106, 972, 16186, 529, 972, 327, 1083, 364, 279, 16, 324, 316, 3144, 12, 90, 16, 341, 4672, 309, 486, 436, 30, 898, 436, 273, 436, 471, 7555, 12, 69, 16, 324, 16, 331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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11253, 972, 12, 90, 16, 341, 4672, 775, 30, 436, 273, 562, 12, 90, 13, 422, 562, 12, 91, 13, 1335, 3580, 30, 1172, 296, 1376, 30, 17553, 3775, 1953, 316, 12969, 6142, 87, 2506, 738, 331, 16186, 1106, 972, 16186, 529, 972, 327, 1083, 364, 279, 16, 324, 316, 3144, 12, 90, 16, 341, 4672, 309, 486, 436, 30, 898, 436, 273, 436, 471, 7555, 12, 69, 16, 324, 16, 331, 18, 11253, 9524, 13, 327, 436, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return html.UL( [html.LI(isinstance(elt, tuple) and html(html.STRONG(elt[0]), render_groups(elt[1])) or html.A(wiki.format_page_name(elt), href=formatter.href.wiki(elt)))
return tag.ul( [tag.li(isinstance(elt, tuple) and tag(tag.strong(elt[0]), render_groups(elt[1])) or tag.a(wiki.format_page_name(elt), href=formatter.href.wiki(elt)))
def render_groups(groups): return html.UL( [html.LI(isinstance(elt, tuple) and html(html.STRONG(elt[0]), render_groups(elt[1])) or html.A(wiki.format_page_name(elt), href=formatter.href.wiki(elt))) for elt in groups])
323d0e18c5ae20ddb3266c249630f97ce431aab8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/323d0e18c5ae20ddb3266c249630f97ce431aab8/macros.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 4650, 12, 4650, 4672, 327, 1047, 18, 332, 12, 306, 2692, 18, 549, 12, 291, 1336, 12, 20224, 16, 3193, 13, 471, 1047, 12, 2692, 18, 9110, 12, 20224, 63, 20, 65, 3631, 1743, 67, 4650, 12, 20224, 63, 21, 22643, 578, 1047, 18, 69, 12, 13044, 18, 2139, 67, 2433, 67, 529, 12, 20224, 3631, 3897, 33, 12354, 18, 7547, 18, 13044, 12, 20224, 20349, 364, 11572, 316, 3252, 5717, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1743, 67, 4650, 12, 4650, 4672, 327, 1047, 18, 332, 12, 306, 2692, 18, 549, 12, 291, 1336, 12, 20224, 16, 3193, 13, 471, 1047, 12, 2692, 18, 9110, 12, 20224, 63, 20, 65, 3631, 1743, 67, 4650, 12, 20224, 63, 21, 22643, 578, 1047, 18, 69, 12, 13044, 18, 2139, 67, 2433, 67, 529, 12, 20224, 3631, 3897, 33, 12354, 18, 7547, 18, 13044, 12, 20224, 20349, 364, 11572, 316, 3252, 5717, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def setup_pxe_boot(self): """ Sets up a PXE boot environment using the built in qemu TFTP server. Copies the PXE Linux bootloader pxelinux.0 from the host (needs the pxelinux package or equivalent for your distro), and vmlinuz and initrd.img files from the CD to a directory that qemu will serve trough TFTP to the VM. """ print "Setting up PXE boot using TFTP root %s" % self.tftp pxe_file = None pxe_paths = ['/usr/lib/syslinux/pxelinux.0', '/usr/share/syslinux/pxelinux.0'] for path in pxe_paths: if os.path.isfile(path): pxe_file = path break if not pxe_file: raise SetupError('Cannot find PXE boot loader pxelinux.0. Make ' 'sure pxelinux or equivalent package for your ' 'distro is installed.') pxe_dest = os.path.join(self.tftp, 'pxelinux.0') shutil.copyfile(pxe_file, pxe_dest)
def setup_cdrom(self): """ Mount cdrom and copy vmlinuz and initrd.img. """ print "Copying vmlinuz and initrd.img from cdrom" m_cmd = ('mount -t iso9660 -v -o loop,ro %s %s' % (self.cdrom_cd1, self.cdrom_cd1_mount)) run(m_cmd, info='Could not mount CD image %s.' % self.cdrom_cd1)
def setup_pxe_boot(self): """ Sets up a PXE boot environment using the built in qemu TFTP server. Copies the PXE Linux bootloader pxelinux.0 from the host (needs the pxelinux package or equivalent for your distro), and vmlinuz and initrd.img files from the CD to a directory that qemu will serve trough TFTP to the VM. """ print "Setting up PXE boot using TFTP root %s" % self.tftp
05c7b87678411674e1b8b8228fe97a5b64354c3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/05c7b87678411674e1b8b8228fe97a5b64354c3b/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 4430, 73, 67, 7137, 12, 2890, 4672, 3536, 11511, 731, 279, 453, 60, 41, 4835, 3330, 1450, 326, 6650, 316, 1043, 24995, 399, 17104, 1438, 18, 28506, 606, 326, 453, 60, 41, 13318, 4835, 6714, 10318, 292, 9534, 18, 20, 628, 326, 1479, 261, 20600, 326, 10318, 292, 9534, 2181, 578, 7680, 364, 3433, 27450, 3631, 471, 331, 781, 6860, 94, 471, 1208, 13623, 18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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3875, 67, 4430, 73, 67, 7137, 12, 2890, 4672, 3536, 11511, 731, 279, 453, 60, 41, 4835, 3330, 1450, 326, 6650, 316, 1043, 24995, 399, 17104, 1438, 18, 28506, 606, 326, 453, 60, 41, 13318, 4835, 6714, 10318, 292, 9534, 18, 20, 628, 326, 1479, 261, 20600, 326, 10318, 292, 9534, 2181, 578, 7680, 364, 3433, 27450, 3631, 471, 331, 781, 6860, 94, 471, 1208, 13623, 18, 6081, 1390, 628, 326, 21508, 358, 279, 1867, 716, 1043, 24995, 903, 12175, 268, 2642, 399, 17104, 358, 326, 8251, 18, 3536, 1172, 315, 5568, 731, 453, 60, 41, 4835, 1450, 399, 17104, 1365, 738, 87, 6, 738, 365, 18, 88, 11727, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cmd = 'tar cfz '+tarname+'.tar.gz '+' -C '+directory+' '+tarname
cmd = 'tar cfz ' + tarname + '.tar.gz ' + ' -C ' + directory + ' ' + tarname
def _resolveInputSandbox(self, inputSandbox): """ Internal function.
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 1210, 17881, 12, 2890, 16, 810,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10828, 1210, 17881, 12, 2890, 16, 810, 17881, 4672, 3536, 3186, 445, 18, 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, -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, -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, -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, -100, -100, -100, -100 ]
plus = patch.rsplit('+', 1) if len(plus) > 1: res = partial_name(plus[0])
plus = patch.rfind('+') if plus >= 0: res = partial_name(patch[:plus])
def partial_name(s): if s in self.series: return s matches = [x for x in self.series if s in x] if len(matches) > 1: self.ui.warn(_('patch name "%s" is ambiguous:\n') % s) for m in matches: self.ui.warn(' %s\n' % m) return None if matches: return matches[0] if len(self.series) > 0 and len(self.applied) > 0: if s == 'qtip': return self.series[self.series_end()-1] if s == 'qbase': return self.series[0] return None
8b8bd89e1ae17638b0d3e852258b8807f49a2222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/8b8bd89e1ae17638b0d3e852258b8807f49a2222/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4702, 67, 529, 12, 87, 4672, 309, 272, 316, 365, 18, 10222, 30, 327, 272, 1885, 273, 306, 92, 364, 619, 316, 365, 18, 10222, 309, 272, 316, 619, 65, 309, 562, 12, 8436, 13, 405, 404, 30, 365, 18, 4881, 18, 8935, 24899, 2668, 2272, 508, 2213, 87, 6, 353, 20399, 5581, 82, 6134, 738, 272, 13, 364, 312, 316, 1885, 30, 365, 18, 4881, 18, 8935, 2668, 225, 738, 87, 64, 82, 11, 738, 312, 13, 327, 599, 309, 1885, 30, 327, 1885, 63, 20, 65, 309, 562, 12, 2890, 18, 10222, 13, 405, 374, 471, 562, 12, 2890, 18, 438, 3110, 13, 405, 374, 30, 309, 272, 422, 296, 85, 14587, 4278, 327, 365, 18, 10222, 63, 2890, 18, 10222, 67, 409, 1435, 17, 21, 65, 309, 272, 422, 296, 85, 1969, 4278, 327, 365, 18, 10222, 63, 20, 65, 327, 599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4702, 67, 529, 12, 87, 4672, 309, 272, 316, 365, 18, 10222, 30, 327, 272, 1885, 273, 306, 92, 364, 619, 316, 365, 18, 10222, 309, 272, 316, 619, 65, 309, 562, 12, 8436, 13, 405, 404, 30, 365, 18, 4881, 18, 8935, 24899, 2668, 2272, 508, 2213, 87, 6, 353, 20399, 5581, 82, 6134, 738, 272, 13, 364, 312, 316, 1885, 30, 365, 18, 4881, 18, 8935, 2668, 225, 738, 87, 64, 82, 11, 738, 312, 13, 327, 599, 309, 1885, 30, 327, 1885, 63, 20, 65, 309, 562, 12, 2890, 18, 10222, 13, 405, 374, 471, 562, 12, 2890, 18, 438, 3110, 13, 405, 374, 30, 309, 272, 422, 296, 85, 14587, 4278, 327, 365, 18, 2 ]
self.SetCellBackgroundColour(row, col, "WhiteSmoke")
self.SetCellBackgroundColour(row, col, wx.Colour(245, 245, 245))
def RefreshLedger(self, focusEntry=None, sync=True, sort=True): col = None if sort: col = self.sortByCol self.GetTable().RefreshLedger(focusEntry=focusEntry, sync=sync, sortByCol=col) for row in xrange(self.GetNumberRows()): for col in xrange(self.GetNumberCols()): if row % 2: self.SetCellBackgroundColour(row, col, "WhiteSmoke")
0c41b27bb303681293679c0cf5c9ec589d758627 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2380/0c41b27bb303681293679c0cf5c9ec589d758627/accountLedger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14179, 28731, 12, 2890, 16, 7155, 1622, 33, 7036, 16, 3792, 33, 5510, 16, 1524, 33, 5510, 4672, 645, 273, 599, 309, 1524, 30, 645, 273, 365, 18, 3804, 858, 914, 365, 18, 967, 1388, 7675, 8323, 28731, 12, 13923, 1622, 33, 13923, 1622, 16, 3792, 33, 8389, 16, 14021, 914, 33, 1293, 13, 364, 1027, 316, 12314, 12, 2890, 18, 967, 1854, 4300, 1435, 4672, 364, 645, 316, 12314, 12, 2890, 18, 967, 1854, 8011, 1435, 4672, 309, 1027, 738, 576, 30, 365, 18, 694, 4020, 8199, 26404, 12, 492, 16, 645, 16, 315, 13407, 9552, 3056, 7923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14179, 28731, 12, 2890, 16, 7155, 1622, 33, 7036, 16, 3792, 33, 5510, 16, 1524, 33, 5510, 4672, 645, 273, 599, 309, 1524, 30, 645, 273, 365, 18, 3804, 858, 914, 365, 18, 967, 1388, 7675, 8323, 28731, 12, 13923, 1622, 33, 13923, 1622, 16, 3792, 33, 8389, 16, 14021, 914, 33, 1293, 13, 364, 1027, 316, 12314, 12, 2890, 18, 967, 1854, 4300, 1435, 4672, 364, 645, 316, 12314, 12, 2890, 18, 967, 1854, 8011, 1435, 4672, 309, 1027, 738, 576, 30, 365, 18, 694, 4020, 8199, 26404, 12, 492, 16, 645, 16, 315, 13407, 9552, 3056, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
major = config.get(sect, 'define-major') minor = config.get(sect, 'define-minor') subrel = config.get(sect, 'define-subrelease') buildnum = config.get(sect, 'define-buildnumber')
if config.has_option(sect, 'define-major'): major = config.get(sect, 'define-major') if config.has_option(sect, 'define-minor'): minor = config.get(sect, 'define-minor') if config.has_option(sect, 'define-subrelease'): subrel = config.get(sect, 'define-subrelease') if config.has_option(sect, 'define-buildnumber'): buildnum = config.get(sect, 'define-buildnumber')
def process_CDefine(filename, config, sect): '''Read version number information for setting it into C/C++ #defines.''' ver = config.get(sect, 'version') file = config.get(sect, 'path') desc = config.get(sect, 'description') # Macro names to use major = config.get(sect, 'define-major') minor = config.get(sect, 'define-minor') subrel = config.get(sect, 'define-subrelease') buildnum = config.get(sect, 'define-buildnumber') if len(major) == 0 and len(minor) == 0 and len(subrel) == 0: print ' ERROR: You must set at least one of major/minor/subrelease version numbers.' return False print '%s : %s' % (sect, desc) print ' File: ' + file print ' Version: ' + ver print ' Macros:' print ' Major: ' + major print ' Minor: ' + minor print ' Subrelease: ' + subrel print ' Buildnumber: ' + buildnum inidir = os.path.dirname(filename) cfile = os.path.join(inidir, file) ret = set_CDefine_ver(cfile, ver, major, minor, subrel, buildnum) return ret
2bfe942d97e7c5ace17408eefdad90dbb4f5b229 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/618/2bfe942d97e7c5ace17408eefdad90dbb4f5b229/SetVersions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 39, 11644, 12, 3459, 16, 642, 16, 29140, 4672, 9163, 1994, 1177, 1300, 1779, 364, 3637, 518, 1368, 385, 19, 39, 9904, 468, 536, 1465, 1093, 6309, 225, 1924, 273, 642, 18, 588, 12, 5709, 16, 296, 1589, 6134, 585, 273, 642, 18, 588, 12, 5709, 16, 296, 803, 6134, 3044, 273, 642, 18, 588, 12, 5709, 16, 296, 3384, 6134, 225, 468, 31203, 1257, 358, 999, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 14019, 11, 4672, 7888, 273, 642, 18, 588, 12, 5709, 16, 296, 11255, 17, 14019, 6134, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 17364, 11, 4672, 8439, 273, 642, 18, 588, 12, 5709, 16, 296, 11255, 17, 17364, 6134, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 1717, 9340, 11, 4672, 720, 2878, 273, 642, 18, 588, 12, 5709, 16, 296, 11255, 17, 1717, 9340, 6134, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 3510, 2696, 11, 4672, 1361, 2107, 273, 642, 18, 588, 12, 5709, 16, 296, 11255, 17, 3510, 2696, 6134, 225, 309, 562, 12, 14019, 13, 422, 374, 471, 562, 12, 17364, 13, 422, 374, 471, 562, 12, 1717, 2878, 13, 422, 374, 30, 1172, 296, 225, 5475, 30, 4554, 1297, 444, 622, 4520, 1245, 434, 7888, 19, 17364, 19, 1717, 9340, 1177, 5600, 1093, 327, 1083, 225, 1172, 1995, 87, 294, 738, 87, 11, 738, 261, 5709, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 67, 39, 11644, 12, 3459, 16, 642, 16, 29140, 4672, 9163, 1994, 1177, 1300, 1779, 364, 3637, 518, 1368, 385, 19, 39, 9904, 468, 536, 1465, 1093, 6309, 225, 1924, 273, 642, 18, 588, 12, 5709, 16, 296, 1589, 6134, 585, 273, 642, 18, 588, 12, 5709, 16, 296, 803, 6134, 3044, 273, 642, 18, 588, 12, 5709, 16, 296, 3384, 6134, 225, 468, 31203, 1257, 358, 999, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 14019, 11, 4672, 7888, 273, 642, 18, 588, 12, 5709, 16, 296, 11255, 17, 14019, 6134, 309, 642, 18, 5332, 67, 3482, 12, 5709, 16, 296, 11255, 17, 17364, 11, 4672, 8439, 273, 642, 18, 588, 12, 2 ]
while (True):
while True:
def read_from_client(client_address,server_address): while (True): # if this client or server is not connected break try: this_client = client[client_address][server_address] this_server = server[server_address] except KeyError: print "stopping read thread for client: "+client_address+" to server: "+server_address break # read from the client the amount specified in server_buff_size buffer_avialable = this_client['server_buff_size'] data='' try: data = this_client['socket'].recv(buffer_avialable) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured reading from client: "+client_address drop_client(client_address,server_address) print "Dropped client: "+client_address break #stops this thread # if data is non null send it to the to_server_buffer if (len(data) != 0): frame = NATFrame() frame.initAsDataFrame(client_address,data) if TRACE: print "recived "+data+" from client" # send the frame as a string to the outgoing buffer this_server['to_server_buff'].append(frame.toString()) #decrement server_buf_size by len(data) (make atomic) this_client['buff_size_lock'].acquire() this_client['server_buff_size'] -= len(data) this_client['buff_size_lock'].release() sleep(SAMPLE_TIME)
af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9/forwarder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 2625, 12, 2625, 67, 2867, 16, 3567, 67, 2867, 4672, 377, 1323, 1053, 30, 225, 468, 309, 333, 1004, 578, 1438, 353, 486, 5840, 898, 775, 30, 333, 67, 2625, 273, 1004, 63, 2625, 67, 2867, 6362, 3567, 67, 2867, 65, 333, 67, 3567, 273, 1438, 63, 3567, 67, 2867, 65, 1335, 4999, 30, 1172, 315, 5681, 1382, 855, 2650, 364, 1004, 30, 13773, 2625, 67, 2867, 9078, 358, 1438, 30, 13773, 3567, 67, 2867, 898, 225, 468, 855, 628, 326, 1004, 326, 3844, 1269, 316, 1438, 67, 20664, 67, 1467, 1613, 67, 69, 522, 287, 429, 273, 333, 67, 2625, 3292, 3567, 67, 20664, 67, 1467, 3546, 501, 2218, 11, 225, 775, 30, 501, 273, 333, 67, 2625, 3292, 7814, 29489, 18334, 12, 4106, 67, 69, 522, 287, 429, 13, 1335, 1185, 16, 425, 30, 309, 315, 7814, 6, 486, 316, 609, 12, 723, 12, 73, 3719, 471, 315, 4534, 6, 486, 316, 609, 12, 73, 4672, 1002, 1172, 315, 4534, 668, 16206, 6453, 628, 1004, 30, 13773, 2625, 67, 2867, 3640, 67, 2625, 12, 2625, 67, 2867, 16, 3567, 67, 2867, 13, 1172, 315, 23683, 1004, 30, 13773, 2625, 67, 2867, 898, 468, 334, 4473, 333, 2650, 282, 468, 309, 501, 353, 1661, 446, 1366, 518, 358, 326, 358, 67, 3567, 67, 4106, 309, 261, 1897, 12, 892, 13, 480, 374, 4672, 2623, 273, 31395, 3219, 1435, 2623, 18, 2738, 1463, 25696, 12, 2625, 67, 2867, 16, 892, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 67, 2080, 67, 2625, 12, 2625, 67, 2867, 16, 3567, 67, 2867, 4672, 377, 1323, 1053, 30, 225, 468, 309, 333, 1004, 578, 1438, 353, 486, 5840, 898, 775, 30, 333, 67, 2625, 273, 1004, 63, 2625, 67, 2867, 6362, 3567, 67, 2867, 65, 333, 67, 3567, 273, 1438, 63, 3567, 67, 2867, 65, 1335, 4999, 30, 1172, 315, 5681, 1382, 855, 2650, 364, 1004, 30, 13773, 2625, 67, 2867, 9078, 358, 1438, 30, 13773, 3567, 67, 2867, 898, 225, 468, 855, 628, 326, 1004, 326, 3844, 1269, 316, 1438, 67, 20664, 67, 1467, 1613, 67, 69, 522, 287, 429, 273, 333, 67, 2625, 3292, 3567, 67, 20664, 67, 1467, 3546, 501, 2218, 11, 225, 775, 30, 2 ]
systemId != None):
systemId != None and systemId != "about:legacy-compat"):
def processDoctype(self, token):
5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3244, 12387, 12, 2890, 16, 1147, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3244, 12387, 12, 2890, 16, 1147, 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, -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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif self.plate is not None: return list(self.conn.listFiles("plate", self.plate.id)) elif self.screen is not None: return list(self.conn.listFiles("screen", self.screen.id))
def listFiles(self): if self.image is not None: return list(self.conn.listFiles("image", self.image.id)) elif self.dataset is not None: return list(self.conn.listFiles("dataset", self.dataset.id)) elif self.project is not None: return list(self.conn.listFiles("project", self.project.id)) elif self.plate is not None: return list(self.conn.listFiles("plate", self.plate.id)) elif self.screen is not None: return list(self.conn.listFiles("screen", self.screen.id))
9d3645a071be54765cc11a84ebab08417b86e6e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/9d3645a071be54765cc11a84ebab08417b86e6e7/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17852, 12, 2890, 4672, 309, 365, 18, 2730, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 2730, 3113, 365, 18, 2730, 18, 350, 3719, 1327, 365, 18, 8682, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 8682, 3113, 365, 18, 8682, 18, 350, 3719, 1327, 365, 18, 4406, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 4406, 3113, 365, 18, 4406, 18, 350, 3719, 1377, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17852, 12, 2890, 4672, 309, 365, 18, 2730, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 2730, 3113, 365, 18, 2730, 18, 350, 3719, 1327, 365, 18, 8682, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 8682, 3113, 365, 18, 8682, 18, 350, 3719, 1327, 365, 18, 4406, 353, 486, 599, 30, 327, 666, 12, 2890, 18, 4646, 18, 1098, 2697, 2932, 4406, 3113, 365, 18, 4406, 18, 350, 3719, 1377, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if pkg["name"] in self.always_install: self.opresolver.append(pkg) else: self.opresolver.append(pkg)
self.__appendPkg(self.pkgs[i]) i += 1
def runDepRes(self): # Add packages to be updated to our operation resolver self.opresolver = RpmResolver(self.pydb.getPkgList(), OP_UPDATE) for pkg in self.pkgs: if self.command in ("update", "upgrade", "groupupdate", "groupupgrade"): name = pkg["name"] for ipkg in self.pydb.getPkgList(): if ipkg["name"] == name: if name in self.always_install: self.opresolver.append(pkg) else: self.opresolver.append(pkg) break else: if pkg["name"] in self.always_install: self.opresolver.append(pkg) else: self.opresolver.append(pkg) # Look for obsoletes and add them to our update packages for repo in self.repos: for pkg in repo.getList(): if pkg in self.pkgs: continue for u in pkg["obsoletes"]: s = self.opresolver.searchDependency(u) if len(s) > 0: self.opresolver.append(pkg) del self.pkgs self.pkgs = [] self.__runDepResolution()
11e31557ed329a80c28dc4dd5f98950a5e67f5da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/11e31557ed329a80c28dc4dd5f98950a5e67f5da/yum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 16316, 607, 12, 2890, 4672, 468, 1436, 5907, 358, 506, 3526, 225, 358, 3134, 1674, 5039, 365, 18, 556, 14122, 273, 534, 7755, 4301, 12, 2890, 18, 2074, 1966, 18, 588, 11264, 682, 9334, 7247, 67, 8217, 13, 364, 3475, 316, 365, 18, 25376, 30, 309, 365, 18, 3076, 316, 7566, 2725, 3113, 315, 15097, 3113, 315, 1655, 2725, 3113, 315, 1655, 15097, 6, 4672, 508, 273, 3475, 9614, 529, 11929, 364, 2359, 14931, 316, 365, 18, 2074, 1966, 18, 588, 11264, 682, 13332, 309, 2359, 14931, 9614, 529, 11929, 422, 508, 30, 309, 508, 316, 365, 18, 17737, 67, 5425, 30, 365, 18, 556, 14122, 18, 6923, 12, 10657, 13, 469, 30, 365, 18, 556, 14122, 18, 6923, 12, 10657, 13, 898, 469, 30, 365, 16186, 6923, 11264, 12, 2890, 18, 25376, 63, 77, 5717, 277, 1011, 404, 468, 10176, 364, 7160, 355, 278, 281, 471, 527, 2182, 358, 3134, 1089, 5907, 364, 3538, 316, 365, 18, 15564, 30, 364, 3475, 316, 3538, 18, 588, 682, 13332, 309, 3475, 316, 365, 18, 25376, 30, 1324, 364, 582, 316, 3475, 9614, 10992, 355, 278, 281, 11929, 30, 272, 273, 365, 18, 556, 14122, 18, 3072, 7787, 12, 89, 13, 309, 562, 12, 87, 13, 405, 374, 30, 365, 18, 556, 14122, 18, 6923, 12, 10657, 13, 1464, 365, 18, 25376, 365, 18, 25376, 273, 5378, 365, 16186, 2681, 16316, 11098, 1435, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 16316, 607, 12, 2890, 4672, 468, 1436, 5907, 358, 506, 3526, 225, 358, 3134, 1674, 5039, 365, 18, 556, 14122, 273, 534, 7755, 4301, 12, 2890, 18, 2074, 1966, 18, 588, 11264, 682, 9334, 7247, 67, 8217, 13, 364, 3475, 316, 365, 18, 25376, 30, 309, 365, 18, 3076, 316, 7566, 2725, 3113, 315, 15097, 3113, 315, 1655, 2725, 3113, 315, 1655, 15097, 6, 4672, 508, 273, 3475, 9614, 529, 11929, 364, 2359, 14931, 316, 365, 18, 2074, 1966, 18, 588, 11264, 682, 13332, 309, 2359, 14931, 9614, 529, 11929, 422, 508, 30, 309, 508, 316, 365, 18, 17737, 67, 5425, 30, 365, 18, 556, 14122, 18, 6923, 12, 10657, 13, 469, 30, 365, 18, 556, 14122, 2 ]
module = _normalize_module(module) tests = _find_tests(module, "") test = [doc for (tname, doc, dummy, dummy) in tests if tname == name]
module = _normalizeModule(module) tests = _findTests(module, "") test = [doc for (tname, doc, f, l) in tests if tname == name]
def testsource(module, name): """Extract the doctest examples from a docstring. Provide the module (or dotted name of the module) containing the tests to be extracted, and the name (within the module) of the object with the docstring containing the tests to be extracted. The doctest examples are returned as a string containing Python code. The expected output blocks in the examples are converted to Python comments. """ module = _normalize_module(module) tests = _find_tests(module, "") test = [doc for (tname, doc, dummy, dummy) in tests if tname == name] if not test: raise ValueError(name, "not found in tests") test = test[0] examples = [source + _expect(expect) for source, expect, dummy in _extract_examples(test)] return '\n'.join(examples)
1323871f770a1332c44031c18abe670abdf6c641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1323871f770a1332c44031c18abe670abdf6c641/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3168, 12, 2978, 16, 508, 4672, 3536, 4976, 326, 31263, 395, 10991, 628, 279, 14525, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 7434, 358, 506, 9438, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 4191, 326, 7434, 358, 506, 9438, 18, 225, 1021, 31263, 395, 10991, 854, 2106, 487, 279, 533, 4191, 6600, 981, 18, 225, 1021, 2665, 876, 4398, 316, 326, 10991, 854, 5970, 358, 6600, 5678, 18, 3536, 1605, 273, 389, 12237, 3120, 12, 2978, 13, 7434, 273, 389, 4720, 14650, 12, 2978, 16, 1408, 13, 1842, 273, 306, 2434, 364, 261, 88, 529, 16, 997, 16, 284, 16, 328, 13, 316, 7434, 309, 27829, 422, 508, 65, 309, 486, 1842, 30, 1002, 2068, 12, 529, 16, 315, 902, 1392, 316, 7434, 7923, 1842, 273, 1842, 63, 20, 65, 10991, 273, 306, 3168, 397, 389, 12339, 12, 12339, 13, 364, 1084, 16, 4489, 16, 9609, 316, 389, 8004, 67, 16858, 12, 3813, 25887, 327, 2337, 82, 10332, 5701, 12, 16858, 13, 225, 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, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 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, 3168, 12, 2978, 16, 508, 4672, 3536, 4976, 326, 31263, 395, 10991, 628, 279, 14525, 18, 225, 26569, 326, 1605, 261, 280, 20965, 508, 434, 326, 1605, 13, 4191, 326, 7434, 358, 506, 9438, 16, 471, 326, 508, 261, 25850, 326, 1605, 13, 434, 326, 733, 598, 326, 14525, 4191, 326, 7434, 358, 506, 9438, 18, 225, 1021, 31263, 395, 10991, 854, 2106, 487, 279, 533, 4191, 6600, 981, 18, 225, 1021, 2665, 876, 4398, 316, 326, 10991, 854, 5970, 358, 6600, 5678, 18, 3536, 1605, 273, 389, 12237, 3120, 12, 2978, 13, 7434, 273, 389, 4720, 14650, 12, 2978, 16, 1408, 13, 1842, 273, 306, 2434, 364, 261, 88, 529, 16, 997, 16, 284, 16, 328, 2 ]
curses.wrapper (hyltMain, config["documentation"]["documentation_root"]) curses.reset_prog_mode () curses.curs_set(1) curses.curs_set(0) main_needs_redraw = True
current_directory = os.getcwd() hyltMain(meta_screen,config["documentation"]["documentation_root"]) os.chdir(current_directory)
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Change to the base path. os.chdir (os.path.dirname (starting_filename)) core_state["curr_base_path"] = "" # There are three windows: a top status bar, a primary screen, and a bottom # status bar. There is also the main screen, of course. Create them. top = meta_screen.subwin (1, meta_x, 0, 0) main = meta_screen.subwin (meta_y - 2, meta_x, 1, 0) bottom = meta_screen.subwin (1, meta_x, meta_y - 1, 0) # Read in the configuration. config = core_state["config"] = generateConfiguration () editor = config["pyui"]["editor"] # Okay. History's actually a bad name for this right now, but it'll have # to do. This is a list of pages; it normally tracks history, but can # also track search results. At the beginning, the only element in the # history is the starting page; others will be added, subtracted, etc. core_state["history"] = [] historyAdd(core_state, os.path.basename (starting_filename)) core_state["history_position"] = 0 fresh_page = True done = False curses.def_prog_mode () main_needs_redraw = True while not done: current_loc = core_state["history"][core_state["history_position"]] if fresh_page: filename = current_loc["filename"] core_state["curr_base_path"] = os.path.dirname (filename) readHyltFile (filename, core_state)
abaed14eedb676b0ff096e2bb515f66b65bcfdd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/abaed14eedb676b0ff096e2bb515f66b65bcfdd6/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 3459, 3719, 2922, 67, 2019, 9614, 17016, 67, 1969, 67, 803, 11929, 273, 1408, 282, 468, 6149, 854, 8925, 9965, 30, 279, 1760, 1267, 4653, 16, 279, 3354, 5518, 16, 471, 279, 5469, 468, 1267, 4653, 18, 225, 6149, 353, 2546, 326, 2774, 5518, 16, 434, 4362, 18, 225, 1788, 2182, 18, 1760, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 374, 16, 374, 13, 2774, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 3901, 67, 93, 300, 576, 16, 2191, 67, 92, 16, 404, 16, 374, 13, 5469, 273, 2191, 67, 9252, 18, 1717, 8082, 261, 21, 16, 2191, 67, 92, 16, 2191, 67, 93, 300, 404, 16, 374, 13, 225, 468, 2720, 316, 326, 1664, 18, 642, 273, 2922, 67, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471, 1427, 603, 18, 3536, 225, 30436, 18, 2789, 67, 542, 12, 20, 13, 225, 468, 23133, 30, 7012, 854, 316, 326, 1353, 434, 261, 93, 16, 619, 2934, 2191, 67, 93, 16, 2191, 67, 92, 273, 2191, 67, 9252, 18, 588, 1896, 93, 92, 1435, 2922, 67, 2019, 273, 12528, 93, 6877, 2191, 67, 93, 16, 315, 92, 6877, 2191, 67, 92, 97, 225, 468, 7576, 358, 326, 1026, 589, 18, 1140, 18, 343, 1214, 261, 538, 18, 803, 18, 12287, 261, 18526, 67, 2 ]
print "Executing nmake over the ssl makefiles..."
makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile) print "Executing ssl makefiles:", makeCommand
def main(): build_all = "-a" in sys.argv if sys.argv[1] == "Release": arch = "x86" debug = False configure = "VC-WIN32" do_script = "ms\\do_masm" makefile = "ms\\nt.mak" elif sys.argv[1] == "Debug": arch = "x86" debug = True configure = "VC-WIN32" do_script = "ms\\do_masm" makefile="ms\\d32.mak" elif sys.argv[1] == "ReleaseItanium": arch = "ia64" debug = False configure = "VC-WIN64I" do_script = "ms\\do_win64i" makefile = "ms\\nt.mak" os.environ["VSEXTCOMP_USECL"] = "MS_ITANIUM" elif sys.argv[1] == "ReleaseAMD64": arch="amd64" debug=False configure = "VC-WIN64A" do_script = "ms\\do_win64a" makefile = "ms\\nt.mak" os.environ["VSEXTCOMP_USECL"] = "MS_OPTERON" make_flags = "" if build_all: make_flags = "-a" # perl should be on the path, but we also look in "\perl" and "c:\\perl" # as "well known" locations perls = find_all_on_path("perl.exe", ["\\perl\\bin", "C:\\perl\\bin"]) perl = find_working_perl(perls) if perl is None: sys.exit(1) print "Found a working perl at '%s'" % (perl,) sys.stdout.flush() # Look for SSL 2 levels up from pcbuild - ie, same place zlib etc all live. ssl_dir = find_best_ssl_dir(("..\\..",)) if ssl_dir is None: sys.exit(1) old_cd = os.getcwd() try: os.chdir(ssl_dir) # If the ssl makefiles do not exist, we invoke Perl to generate them. if not os.path.isfile(makefile): print "Creating the makefiles..." sys.stdout.flush() # Put our working Perl at the front of our path os.environ["PATH"] = os.path.dirname(perl) + \ os.pathsep + \ os.environ["PATH"] if arch=="x86" and debug: # the do_masm script in openssl doesn't generate a debug # build makefile so we generate it here: os.system("perl util\mk1mf.pl debug "+configure+" >"+makefile) run_configure(configure, do_script) # Now run make. print "Executing nmake over the ssl makefiles..." sys.stdout.flush() rc = os.system("nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)) if rc: print "Executing "+makefile+" failed" print rc sys.exit(rc) finally: os.chdir(old_cd) # And finally, we can build the _ssl module itself for Python. defs = "SSL_DIR=\"%s\"" % (ssl_dir,) if debug: defs = defs + " " + "DEBUG=1" makeCommand = 'nmake /nologo -f _ssl.mak ' + defs + " " + make_flags print "Executing:", makeCommand sys.stdout.flush() rc = os.system(makeCommand) sys.exit(rc)
552262409dffc06b57c64ca8bfe011b8a10b2453 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/552262409dffc06b57c64ca8bfe011b8a10b2453/build_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1361, 67, 454, 273, 3701, 69, 6, 316, 2589, 18, 19485, 309, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1083, 5068, 273, 315, 13464, 17, 24572, 1578, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 15260, 81, 6, 1221, 768, 273, 315, 959, 1695, 496, 18, 81, 581, 6, 1327, 2589, 18, 19485, 63, 21, 65, 422, 315, 2829, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1053, 5068, 273, 315, 13464, 17, 24572, 1578, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 15260, 81, 6, 1221, 768, 1546, 959, 1695, 72, 1578, 18, 81, 581, 6, 1327, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 7193, 304, 5077, 6877, 6637, 273, 315, 1155, 1105, 6, 1198, 273, 1083, 5068, 273, 315, 13464, 17, 24572, 1105, 45, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 8082, 1105, 77, 6, 1221, 768, 273, 315, 959, 1695, 496, 18, 81, 581, 6, 1140, 18, 28684, 9614, 58, 1090, 3983, 10057, 67, 8001, 5017, 11929, 273, 315, 3537, 67, 1285, 1258, 22619, 6, 1327, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 2192, 40, 1105, 6877, 6637, 1546, 301, 72, 1105, 6, 1198, 33, 8381, 5068, 273, 315, 13464, 17, 24572, 1105, 37, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 8082, 1105, 69, 6, 1221, 768, 273, 315, 959, 1695, 496, 18, 81, 581, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 67, 454, 273, 3701, 69, 6, 316, 2589, 18, 19485, 309, 2589, 18, 19485, 63, 21, 65, 422, 315, 7391, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1083, 5068, 273, 315, 13464, 17, 24572, 1578, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 15260, 81, 6, 1221, 768, 273, 315, 959, 1695, 496, 18, 81, 581, 6, 1327, 2589, 18, 19485, 63, 21, 65, 422, 315, 2829, 6877, 6637, 273, 315, 92, 5292, 6, 1198, 273, 1053, 5068, 273, 315, 13464, 17, 24572, 1578, 6, 741, 67, 4263, 273, 315, 959, 1695, 2896, 67, 15260, 81, 6, 1221, 768, 1546, 959, 1695, 72, 1578, 18, 81, 581, 6, 1327, 2589, 18, 2 ]
t.average_number_of_triplets_per_reflection() new_phases = t.refine_phases(MillerIndices.H, e_values, phases)
tprs.average_number_of_triplets_per_reflection() new_phases = tprs.refine_phases(MillerIndices.H, e_values, phases)
def exercise(SgInfo, number_of_point_atoms = 10, d_min=1., e_min=1.2, loop_k_equiv=0, use_weights=0, verbose=0): elements = ["const"] * number_of_point_atoms xtal = debug_utils.random_structure( SgInfo, elements, volume_per_atom=50., min_distance=1.5, general_positions_only=0, no_random_u=1) print xtal.UnitCell debug_utils.print_sites(xtal) MillerIndices = xutils.build_miller_indices(xtal, friedel_flag=1,d_min=d_min) Fcalc = xutils.calculate_structure_factors(MillerIndices, xtal, abs_F=1) e_values = Fcalc.F inplace_divide( e_values, math.sqrt(xtal.SgOps.OrderZ() * number_of_point_atoms)) dmtbx.inplace_sort(MillerIndices.H, e_values, 1) s = shared.statistics(e_values) print "mean2:", s.mean2() print "number of structure factors:", e_values.size() erase_small(MillerIndices.H, e_values, e_min) print "number of structure factors:", e_values.size() Fcalc = xutils.calculate_structure_factors(MillerIndices, xtal, abs_F=0) dummy, phases = ampl_phase_rad(Fcalc.F) Fcalc.F = e_values if (0 or verbose): debug_utils.print_structure_factors(Fcalc) t = dmtbx.triplet_invariants( xtal.SgInfo, MillerIndices.H, e_values, loop_k_equiv, use_weights) print "total_number_of_triplets:", \ t.total_number_of_triplets() print "average_number_of_triplets_per_reflection:", \ t.average_number_of_triplets_per_reflection() new_phases = t.refine_phases(MillerIndices.H, e_values, phases) sum_w_phase_error = 0 sum_w = 0 for i in xrange(MillerIndices.H.size()): phase_error = debug_utils.phase_error( phases[i], new_phases[i], deg=0) * 180/math.pi if (0 or verbose): print MillerIndices.H[i], "%.3f %.3f %.3f" % ( phases[i], new_phases[i], phase_error) sum_w_phase_error += e_values[i] * phase_error sum_w += e_values[i] print "mean weighted phase error: %.2f" % (sum_w_phase_error / sum_w,) print
af60c03796349ce44c17b4c2775b9af7ba928487 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/af60c03796349ce44c17b4c2775b9af7ba928487/dbg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 12, 55, 75, 966, 16, 1300, 67, 792, 67, 1153, 67, 14937, 273, 1728, 16, 302, 67, 1154, 33, 21, 12990, 425, 67, 1154, 33, 21, 18, 22, 16, 2798, 67, 79, 67, 14298, 427, 33, 20, 16, 999, 67, 9727, 33, 20, 16, 3988, 33, 20, 4672, 2186, 273, 8247, 10248, 11929, 380, 1300, 67, 792, 67, 1153, 67, 14937, 26508, 287, 273, 1198, 67, 5471, 18, 9188, 67, 7627, 12, 348, 75, 966, 16, 2186, 16, 3940, 67, 457, 67, 7466, 33, 3361, 12990, 1131, 67, 8969, 33, 21, 18, 25, 16, 7470, 67, 12388, 67, 3700, 33, 20, 16, 1158, 67, 9188, 67, 89, 33, 21, 13, 1172, 26508, 287, 18, 2802, 4020, 1198, 67, 5471, 18, 1188, 67, 12180, 12, 15239, 287, 13, 490, 24462, 8776, 273, 619, 5471, 18, 3510, 67, 81, 24462, 67, 6836, 12, 15239, 287, 16, 284, 24012, 292, 67, 6420, 33, 21, 16, 72, 67, 1154, 33, 72, 67, 1154, 13, 478, 12448, 273, 619, 5471, 18, 11162, 67, 7627, 67, 22108, 12, 49, 24462, 8776, 16, 26508, 287, 16, 2417, 67, 42, 33, 21, 13, 425, 67, 2372, 273, 478, 12448, 18, 42, 11783, 67, 2892, 831, 12, 425, 67, 2372, 16, 4233, 18, 24492, 12, 15239, 287, 18, 55, 75, 8132, 18, 2448, 62, 1435, 380, 1300, 67, 792, 67, 1153, 67, 14937, 3719, 302, 1010, 70, 92, 18, 267, 964, 67, 3804, 12, 49, 24462, 8776, 18, 44, 16, 425, 67, 2372, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24165, 12, 55, 75, 966, 16, 1300, 67, 792, 67, 1153, 67, 14937, 273, 1728, 16, 302, 67, 1154, 33, 21, 12990, 425, 67, 1154, 33, 21, 18, 22, 16, 2798, 67, 79, 67, 14298, 427, 33, 20, 16, 999, 67, 9727, 33, 20, 16, 3988, 33, 20, 4672, 2186, 273, 8247, 10248, 11929, 380, 1300, 67, 792, 67, 1153, 67, 14937, 26508, 287, 273, 1198, 67, 5471, 18, 9188, 67, 7627, 12, 348, 75, 966, 16, 2186, 16, 3940, 67, 457, 67, 7466, 33, 3361, 12990, 1131, 67, 8969, 33, 21, 18, 25, 16, 7470, 67, 12388, 67, 3700, 33, 20, 16, 1158, 67, 9188, 67, 89, 33, 21, 13, 1172, 26508, 287, 18, 2802, 4020, 1198, 2 ]
def do_turn(pw): my_strongest = -1 their_weakest = 99999999 for x in range (0, len(pw.planets)): planet = pw.planets[x] if planet.owner == 1 and planet.num_ships > my_strongest: my_strongest = x elif planet.owner != 1 and planet.num_ships < their_weakest: their_weakest = x
class StringUtils: @staticmethod def input(): string = stdin.readline() return string
def do_turn(pw): my_strongest = -1 their_weakest = 99999999 for x in range (0, len(pw.planets)): planet = pw.planets[x] if planet.owner == 1 and planet.num_ships > my_strongest: my_strongest = x elif planet.owner != 1 and planet.num_ships < their_weakest: their_weakest = x if my_strongest != -1 and their_weakest != 99999999: pw.issue_order(my_strongest, their_weakest, pw.planets[my_strongest].num_ships / 2) pw.end_turn()
302ec9497e372d08f7b2e2e956a195678352374b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13129/302ec9497e372d08f7b2e2e956a195678352374b/planetwars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 667, 5778, 30, 632, 3845, 2039, 1652, 810, 13332, 533, 273, 8801, 18, 896, 1369, 1435, 327, 533, 225, 309, 3399, 67, 9110, 395, 480, 300, 21, 471, 3675, 67, 26008, 395, 480, 23841, 11984, 30, 8772, 18, 13882, 67, 1019, 12, 4811, 67, 9110, 395, 16, 3675, 67, 26008, 395, 16, 8772, 18, 7088, 2413, 63, 4811, 67, 9110, 395, 8009, 2107, 67, 3261, 87, 342, 576, 13, 8772, 18, 409, 67, 20922, 1435, 225, 2, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 667, 5778, 30, 632, 3845, 2039, 1652, 810, 13332, 533, 273, 8801, 18, 896, 1369, 1435, 327, 533, 225, 309, 3399, 67, 9110, 395, 480, 300, 21, 471, 3675, 67, 26008, 395, 480, 23841, 11984, 30, 8772, 18, 13882, 67, 1019, 12, 4811, 67, 9110, 395, 16, 3675, 67, 26008, 395, 16, 8772, 18, 7088, 2413, 63, 4811, 67, 9110, 395, 8009, 2107, 67, 3261, 87, 342, 576, 13, 8772, 18, 409, 67, 20922, 1435, 225, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
availwidth = self.colwidth - indent_amount else: availwidth = pdfstyles.print_width - indent_amount
availwidth = self.colwidth - 2 * pdfstyles.cell_padding else: availwidth = pdfstyles.print_width
def getAvailWidth(self): indent_amount = self.paraIndentLevel * pdfstyles.para_left_indent \ + self.listIndentation * pdfstyles.list_left_indent if self.table_nesting > 1 and self.colwidth !=0: availwidth = self.colwidth - indent_amount else: availwidth = pdfstyles.print_width - indent_amount return availwidth
757adc3bc0068dbcac10fc3524d173ee6173270a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/757adc3bc0068dbcac10fc3524d173ee6173270a/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3769, 671, 2384, 12, 2890, 4672, 3504, 67, 8949, 273, 365, 18, 25072, 7790, 2355, 380, 8169, 10218, 18, 25072, 67, 4482, 67, 9355, 521, 397, 365, 18, 1098, 24438, 380, 8169, 10218, 18, 1098, 67, 4482, 67, 9355, 309, 365, 18, 2121, 67, 82, 10100, 405, 404, 471, 365, 18, 1293, 2819, 480, 20, 30, 15783, 2819, 273, 365, 18, 1293, 2819, 300, 576, 380, 8169, 10218, 18, 3855, 67, 9598, 469, 30, 15783, 2819, 273, 8169, 10218, 18, 1188, 67, 2819, 327, 15783, 2819, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3769, 671, 2384, 12, 2890, 4672, 3504, 67, 8949, 273, 365, 18, 25072, 7790, 2355, 380, 8169, 10218, 18, 25072, 67, 4482, 67, 9355, 521, 397, 365, 18, 1098, 24438, 380, 8169, 10218, 18, 1098, 67, 4482, 67, 9355, 309, 365, 18, 2121, 67, 82, 10100, 405, 404, 471, 365, 18, 1293, 2819, 480, 20, 30, 15783, 2819, 273, 365, 18, 1293, 2819, 300, 576, 380, 8169, 10218, 18, 3855, 67, 9598, 469, 30, 15783, 2819, 273, 8169, 10218, 18, 1188, 67, 2819, 327, 15783, 2819, 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, -100, -100, -100, -100, -100, -100 ]
repositoryData.append(libraryData)
repositoryData.append(libraryData)
def buildAllDemos(self, buildTarget="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") repositoryData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "classname": libraryName, "children" : [] } validDemo = False for versionName in library: version = library[versionName] versionData = { "classname" : versionName, #"tags" : [libraryName], "tests" : [], "manifest" : version.getManifest() } qxVersions = version.getManifest()["info"]["qooxdoo-versions"] #for ver in qxVersions: # versionData["tags"].append("qxVersion_" + ver) # getting the library's top-level readme here since we only have path # information for the library versions if not "readme" in libraryData: libDir = os.path.dirname(version.path) readme = self.getReadmeContent(libDir) if readme: libraryData["readme"] = readme else: libraryData["readme"] = "No readme file found." # get the version's readme if not "readme" in versionData: readme = self.getReadmeContent(version.path) if readme: versionData["readme"] = readme else: versionData["readme"] = "No readme file found." if not version.hasDemoDir: continue buildStatus = [] for variant in version.demos: if buildTarget == "build": #get the compatible qooxdoo versions of the library version for qxVersion in qxVersions: macro = { "BUILD_PATH" : "./" + qxVersion, "QOOXDOO_PATH" : "../../../../qooxdoo/" + qxVersion } status = variant.build("build", macro) status["qxVersion"] = qxVersion status["variant"] = variant.name buildStatus.append(status) else: status = variant.build(buildTarget) buildStatus.append(status) if demoBrowser: if copyDemos: demoBrowserBase = os.path.split(demoBrowser)[0] for demoStatus in buildStatus: qxVersion = demoStatus["qxVersion"] if demoStatus["buildError"]: console.warn("%s %s demo %s %s generation against qooxdoo %s failed!" %(libraryName, versionName, variant.name, buildTarget, qxVersion)) console.warn(demoStatus["buildError"]) continue sourceDir = os.path.join(version.path, "demo", variant.name, qxVersion) targetDir = os.path.join(demoBrowser, "demo", libraryName, versionName, variant.name) console.debug("Copying from %s to %s" %(sourceDir, targetDir)) copier = CopyTool() copier.parse_args(["-u", sourceDir, targetDir]) copier.do_work() #self.copyHtmlFile(libraryName, versionName, variant.name, buildTarget, demoBrowserBase, qxVersion, local=True) demoData = self.getDemoData(libraryName, versionName, variant.name, qxVersion) demoData["manifest"] = version.getDemoManifest(variant.name) versionData["tests"].append(demoData) else: self.copyHtmlFile(libraryName, versionName, variant.name, buildTarget, demoBrowser) demoData = self.getDemoData(libraryName, versionName, variant.name) versionData["tests"].append(demoData) #demoData["manifest"] = version.getDemoManifest(variant.name) #if copyDemos: # demoData["manifest"]["linkedAgainst"] = [] # for demoStatus in buildStatus: # if not demoStatus["buildError"]: # demoData["manifest"]["linkedAgainst"].append(demoStatus["qxVersion"]) libraryData["children"].append(versionData) repositoryData.append(libraryData)
22de2c8cf078403311eb9034400e79fc75345d29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/22de2c8cf078403311eb9034400e79fc75345d29/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 1546, 3510, 3113, 21477, 9132, 33, 7036, 16, 1610, 15058, 538, 33, 8381, 4672, 309, 21477, 9132, 30, 21477, 9132, 273, 1140, 18, 803, 18, 5113, 803, 12, 27928, 9132, 13, 2983, 18, 1376, 2932, 21755, 9626, 538, 364, 777, 4846, 14732, 7923, 3352, 751, 273, 5378, 2983, 18, 9355, 1435, 225, 364, 5313, 461, 316, 365, 18, 31417, 30, 5313, 273, 365, 18, 31417, 63, 12083, 461, 65, 5313, 751, 273, 288, 315, 18340, 6877, 5313, 461, 16, 315, 5906, 6, 294, 5378, 289, 225, 923, 27126, 273, 1083, 364, 1177, 461, 316, 5313, 30, 1177, 273, 5313, 63, 1589, 461, 65, 225, 1177, 751, 273, 288, 315, 18340, 6, 294, 1177, 461, 16, 31526, 4156, 6, 294, 306, 12083, 461, 6487, 315, 16341, 6, 294, 5378, 16, 315, 14357, 6, 294, 1177, 18, 588, 9121, 1435, 289, 225, 1043, 92, 5940, 273, 1177, 18, 588, 9121, 1435, 9614, 1376, 6, 6362, 6, 85, 83, 2409, 2896, 83, 17, 10169, 11929, 468, 1884, 1924, 316, 1043, 92, 5940, 30, 468, 225, 1177, 751, 9614, 4156, 6, 8009, 6923, 2932, 85, 92, 1444, 9548, 397, 1924, 13, 225, 468, 8742, 326, 5313, 1807, 1760, 17, 2815, 24778, 2674, 3241, 732, 1338, 1240, 589, 468, 1779, 364, 326, 5313, 5244, 309, 486, 315, 896, 3501, 6, 316, 5313, 751, 30, 2561, 1621, 273, 1140, 18, 803, 18, 12287, 12, 1589, 18, 803, 13, 24778, 273, 365, 18, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 15058, 538, 12, 2890, 16, 1361, 2326, 1546, 3510, 3113, 21477, 9132, 33, 7036, 16, 1610, 15058, 538, 33, 8381, 4672, 309, 21477, 9132, 30, 21477, 9132, 273, 1140, 18, 803, 18, 5113, 803, 12, 27928, 9132, 13, 2983, 18, 1376, 2932, 21755, 9626, 538, 364, 777, 4846, 14732, 7923, 3352, 751, 273, 5378, 2983, 18, 9355, 1435, 225, 364, 5313, 461, 316, 365, 18, 31417, 30, 5313, 273, 365, 18, 31417, 63, 12083, 461, 65, 5313, 751, 273, 288, 315, 18340, 6877, 5313, 461, 16, 315, 5906, 6, 294, 5378, 289, 225, 923, 27126, 273, 1083, 364, 1177, 461, 316, 5313, 30, 1177, 273, 5313, 63, 1589, 461, 65, 225, 1177, 751, 273, 288, 315, 2 ]
rc, output, m = self.shell.cmd1('%s%s' % (self.__get_cmd_prefix_hack__(binary=True),cmd),allowed_exit=[0,255])
rc, output, m = self.shell.cmd1('%s%s' % (self.__get_cmd_prefix_hack__(binary=exec_bin),cmd),allowed_exit=[0,255])
def get_output(self,jobid,directory,wms_proxy=False): '''Retrieve the output of a job on the grid'''
ccdaf9c21baff52cb6e7248f0892c69ca3083c28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/ccdaf9c21baff52cb6e7248f0892c69ca3083c28/Grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 12, 2890, 16, 4688, 350, 16, 5149, 16, 91, 959, 67, 5656, 33, 8381, 4672, 9163, 5767, 326, 876, 434, 279, 1719, 603, 326, 3068, 26418, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2844, 12, 2890, 16, 4688, 350, 16, 5149, 16, 91, 959, 67, 5656, 33, 8381, 4672, 9163, 5767, 326, 876, 434, 279, 1719, 603, 326, 3068, 26418, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buildExample("ClassicalField/Diffusion/LinearConvergenceTest") buildExample("ClassicalField/Diffusion/QuadraticConvergenceTest") buildExample("ClassicalField/Diffusion/CubicConvergenceTest")
logExample(path="ClassicalField/Diffusion/LinearConvergenceTest") logExample(path="ClassicalField/Diffusion/QuadraticConvergenceTest") logExample(path="ClassicalField/Diffusion/CubicConvergenceTest")
def logExample(path) : global logDir,logs; intellibrarylog=[] gnulibrarylog=[] intelexamplelog=[] gnuexamplelog=[] inteltestlog=[] gnutestlog=[] for log in logs : if log.startswith('intel_library_build') : intellibrarylog=log.split('|'); if log.startswith('gnu_library_build') : gnulibrarylog=log.split('|'); if log.startswith('intel_'+path+'_build') : intelexamplelog=log.split('|'); if log.startswith('gnu_'+path+'_build') : gnuexamplelog=log.split('|'); if log.startswith('intel_'+path+'_test') : inteltestlog=log.split('|'); if log.startswith('gnu_'+path+'_test') : gnutestlog=log.split('|'); newDir = logDir; for folder in path.split('/') : newDir = newDir + '/' + folder if not os.path.isdir(newDir): os.mkdir(newDir) os.chdir(logDir+"/"+path) if os.path.exists(newDir + "/history.html") : os.remove(newDir + "/history.html") f = open(newDir + "/history.html","w") f.write("<h2>Testing Status:</h2>\n") f.write("<table><tr><td/><td>Status</td><td>Latest Execution Time</td></tr>\n") f.write("<tr><td><b>Intel Build</b></td><td/><td/></tr>") f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/build-intel'>OpenCMISS Library</a></td>") if(intellibrarylog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+intellibrarylog[2]+"</td></tr>") f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/"+path+"/build-intel'>Example Build</a></td>") if(intelexamplelog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+intelexamplelog[2]+"</td></tr>") if(len(inteltestlog)>1) : f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/"+path+"/test1-intel'>Example Test</a></td>") if(inteltestlog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+inteltestlog[2]+"</td></tr>") f.write("<tr><td><b>GNU Build</b></td><td/><td/></tr>") f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/build-gnu'>OpenCMISS Library</a></td>") if(gnulibrarylog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+gnulibrarylog[2]+"</td></tr>") f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/"+path+"/build-gnu'>Example Build</a></td>") if(gnuexamplelog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+gnuexamplelog[2]+"</td></tr>") if(len(gnutestlog)>1) : f.write("<tr><td><a href='"+rootUrl+"logs_x86_64-linux/"+path+"/test1-gnu'>Example Test</a></td>") if(gnutestlog[1].startswith('success')) : f.write("<td><font color='green'>Success</font></td>") else : f.write("<td><font color='red'>Fail</font></td>") f.write("<td>"+gnutestlog[2]+"</td></tr>") f.write("</table>") f.close() return;
70f8678a1bce22fff817b706f77a4aa5408aff32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1766/70f8678a1bce22fff817b706f77a4aa5408aff32/examplesLogger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 10908, 12, 803, 13, 294, 2552, 31101, 16, 10011, 31, 509, 1165, 495, 3345, 1330, 33, 8526, 22908, 332, 495, 3345, 1330, 33, 8526, 509, 292, 338, 2475, 12970, 33, 8526, 314, 13053, 338, 2475, 12970, 33, 8526, 509, 292, 3813, 1330, 33, 8526, 22908, 322, 395, 1330, 33, 8526, 364, 613, 316, 5963, 294, 309, 613, 18, 17514, 1918, 2668, 474, 292, 67, 12083, 67, 3510, 6134, 294, 509, 1165, 495, 3345, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 1600, 89, 67, 12083, 67, 3510, 6134, 294, 22908, 332, 495, 3345, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 474, 292, 4623, 15, 803, 6797, 67, 3510, 6134, 294, 509, 292, 338, 2475, 12970, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 1600, 89, 4623, 15, 803, 6797, 67, 3510, 6134, 294, 314, 13053, 338, 2475, 12970, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 474, 292, 4623, 15, 803, 6797, 67, 3813, 6134, 294, 509, 292, 3813, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 1600, 89, 4623, 15, 803, 6797, 67, 3813, 6134, 294, 22908, 322, 395, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 394, 1621, 273, 31101, 31, 364, 3009, 316, 589, 18, 4939, 2668, 2473, 13, 294, 394, 1621, 273, 394, 1621, 397, 2023, 397, 3009, 309, 486, 1140, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 613, 10908, 12, 803, 13, 294, 2552, 31101, 16, 10011, 31, 509, 1165, 495, 3345, 1330, 33, 8526, 22908, 332, 495, 3345, 1330, 33, 8526, 509, 292, 338, 2475, 12970, 33, 8526, 314, 13053, 338, 2475, 12970, 33, 8526, 509, 292, 3813, 1330, 33, 8526, 22908, 322, 395, 1330, 33, 8526, 364, 613, 316, 5963, 294, 309, 613, 18, 17514, 1918, 2668, 474, 292, 67, 12083, 67, 3510, 6134, 294, 509, 1165, 495, 3345, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 1600, 89, 67, 12083, 67, 3510, 6134, 294, 22908, 332, 495, 3345, 1330, 33, 1330, 18, 4939, 2668, 96, 8284, 309, 613, 18, 17514, 1918, 2668, 474, 292, 4623, 15, 2 ]
newscript = open(os.path.join(src,newscriptpath), "w") newclient = open(os.path.join(src, newclientpath), "w") langfile = open(path)
newscript = codecs.open(os.path.join(src,newscriptpath), "w", encoding="utf_8_sig") newclient = codecs.open(os.path.join(src, newclientpath), "w", encoding="utf_8_sig") langfile = codecs.open(path, "r", encoding="utf_8_sig")
def _localize_buildout(src, langdir): """Make a localized version of the build dir. That is, with one script.js for each language, with a prefix suffix for each language src: directory containing the finished build language: dir containing language files. NOT in build dir! Note, this function knows much more than it should about the structure of the build. The whole thing should possibly be refactored :( """ scriptpath = os.path.normpath(os.path.join(src, "script/dragonfly.js")) fp = open(scriptpath) script_data = fp.read() fp.close() clientpath = os.path.normpath(os.path.join(src, "client-en.xml")) fp = open(clientpath) clientdata = fp.read() fp.close() for lang, newscriptpath, newclientpath, path in [ (f[11:13], "script/dragonfly-"+f[11:13]+".js", "client-"+f[11:13]+".xml", os.path.join(langdir, f)) for f in os.listdir(langdir) if f.startswith("ui_strings-") and f.endswith(".js") ]: newscript = open(os.path.join(src,newscriptpath), "w") newclient = open(os.path.join(src, newclientpath), "w") langfile = open(path) newscript.write(_concatcomment % path) newscript.write(langfile.read()) newscript.write(script_data) newclient.write(clientdata.replace("dragonfly.js", "dragonfly" + "-" + lang +".js")) newclient.close() langfile.close() newscript.close() os.unlink(os.path.join(src, "script/dragonfly.js"))
6ecc6fe7502c9c4430389a2eaf650b256a17f163 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10922/6ecc6fe7502c9c4430389a2eaf650b256a17f163/dfbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3729, 554, 67, 3510, 659, 12, 4816, 16, 3303, 1214, 4672, 3536, 6464, 279, 13596, 1177, 434, 326, 1361, 1577, 18, 12466, 353, 16, 598, 1245, 2728, 18, 2924, 364, 1517, 2653, 16, 598, 279, 1633, 3758, 364, 1517, 2653, 1705, 30, 1867, 4191, 326, 6708, 1361, 2653, 30, 1577, 4191, 2653, 1390, 18, 4269, 316, 1361, 1577, 5, 225, 3609, 16, 333, 445, 21739, 9816, 1898, 2353, 518, 1410, 2973, 326, 3695, 434, 326, 1361, 18, 1021, 7339, 7757, 1410, 10016, 506, 283, 3493, 7653, 294, 12, 3536, 2728, 803, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 4816, 16, 315, 4263, 19, 15997, 265, 29670, 18, 2924, 6, 3719, 4253, 273, 1696, 12, 4263, 803, 13, 2728, 67, 892, 273, 4253, 18, 896, 1435, 4253, 18, 4412, 1435, 225, 1004, 803, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 4816, 16, 315, 2625, 17, 275, 18, 2902, 6, 3719, 4253, 273, 1696, 12, 2625, 803, 13, 1004, 892, 273, 4253, 18, 896, 1435, 4253, 18, 4412, 1435, 282, 364, 3303, 16, 394, 4263, 803, 16, 394, 2625, 803, 16, 589, 316, 306, 261, 74, 63, 2499, 30, 3437, 6487, 315, 4263, 19, 15997, 265, 29670, 10951, 15, 74, 63, 2499, 30, 3437, 3737, 9654, 2924, 3113, 315, 2625, 10951, 15, 74, 63, 2499, 30, 3437, 3737, 9654, 2902, 3113, 1140, 18, 803, 18, 5701, 12, 4936, 1214, 16, 284, 3719, 364, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3729, 554, 67, 3510, 659, 12, 4816, 16, 3303, 1214, 4672, 3536, 6464, 279, 13596, 1177, 434, 326, 1361, 1577, 18, 12466, 353, 16, 598, 1245, 2728, 18, 2924, 364, 1517, 2653, 16, 598, 279, 1633, 3758, 364, 1517, 2653, 1705, 30, 1867, 4191, 326, 6708, 1361, 2653, 30, 1577, 4191, 2653, 1390, 18, 4269, 316, 1361, 1577, 5, 225, 3609, 16, 333, 445, 21739, 9816, 1898, 2353, 518, 1410, 2973, 326, 3695, 434, 326, 1361, 18, 1021, 7339, 7757, 1410, 10016, 506, 283, 3493, 7653, 294, 12, 3536, 2728, 803, 273, 1140, 18, 803, 18, 7959, 803, 12, 538, 18, 803, 18, 5701, 12, 4816, 16, 315, 4263, 19, 15997, 265, 29670, 18, 2924, 6, 3719, 2 ]
resources = [ r['slug'] for r in rel_info['resources'] ]
resources = [ '.'.join([r['project_slug'], r['slug']]) for r in rel_info['resources'] ]
def _auto_remote(path_to_tx, url): """ Initialize a remote release/project/resource to the current directory. """ utils.MSG("Auto configuring local project from remote URL...") type, vars = utils.parse_tx_url(url) prj = project.Project(path_to_tx) username, password = prj.getset_host_credentials(vars['hostname']) if type == 'project': utils.MSG("Getting details for project %s" % vars['project']) proj_info = utils.get_project_details(vars['hostname'], username, password, vars['project']) resources = [ r['slug'] for r in proj_info['resources'] ] utils.MSG("%s resources found. Configuring..." % len(resources)) elif type == 'release': utils.MSG("Getting details for release %s" % vars['release']) rel_info = utils.get_release_details(vars['hostname'], username, password, vars['project'], vars['release']) resources = [ r['slug'] for r in rel_info['resources'] ] utils.MSG("%s resources found. Configuring..." % len(resources)) elif type == 'resource': utils.MSG("Getting details for resource %s" % vars['resource']) resources = [vars['resource']] else: raise("Url '%s' is not recognized." % url) for resource in resources: utils.MSG("Configuring resource %s." % resource) res_info = utils.get_resource_details(vars['hostname'], username, password, vars['project'], resource) try: source_lang = res_info['source_language']['code'] i18n_type = res_info['i18n_type'] except KeyError: raise Exception("Remote server seems to be running an unsupported version" " of Transifex. Either update your server software of fallback" " to a previous version of transifex-client.") prj.set_remote_resource( resource='.'.join([vars['project'], resource]), host = vars['hostname'], source_lang = source_lang, i18n_type = i18n_type) prj.save()
3f70d3d1ad6f69aa4c60fda46133f74a8468a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11326/3f70d3d1ad6f69aa4c60fda46133f74a8468a8a6/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6079, 67, 7222, 12, 803, 67, 869, 67, 978, 16, 880, 4672, 3536, 9190, 279, 2632, 3992, 19, 4406, 19, 3146, 358, 326, 783, 1867, 18, 3536, 2990, 18, 11210, 2932, 4965, 642, 4017, 1191, 1984, 628, 2632, 1976, 7070, 13, 282, 618, 16, 4153, 273, 2990, 18, 2670, 67, 978, 67, 718, 12, 718, 13, 27378, 273, 1984, 18, 4109, 12, 803, 67, 869, 67, 978, 13, 2718, 16, 2201, 273, 27378, 18, 588, 542, 67, 2564, 67, 11687, 12, 4699, 3292, 10358, 19486, 282, 309, 618, 422, 296, 4406, 4278, 2990, 18, 11210, 2932, 19213, 3189, 364, 1984, 738, 87, 6, 738, 4153, 3292, 4406, 19486, 10296, 67, 1376, 273, 2990, 18, 588, 67, 4406, 67, 6395, 12, 4699, 3292, 10358, 17337, 2718, 16, 2201, 16, 4153, 3292, 4406, 19486, 2703, 273, 306, 436, 3292, 6436, 3546, 364, 436, 316, 10296, 67, 1376, 3292, 4683, 3546, 308, 2990, 18, 11210, 27188, 87, 2703, 1392, 18, 1903, 4017, 7070, 738, 562, 12, 4683, 3719, 1327, 618, 422, 296, 9340, 4278, 2990, 18, 11210, 2932, 19213, 3189, 364, 3992, 738, 87, 6, 738, 4153, 3292, 9340, 19486, 1279, 67, 1376, 273, 2990, 18, 588, 67, 9340, 67, 6395, 12, 4699, 3292, 10358, 17337, 2718, 16, 2201, 16, 4153, 3292, 4406, 17337, 4153, 3292, 9340, 19486, 2703, 273, 306, 2611, 18, 5701, 3816, 86, 3292, 4406, 67, 6436, 17337, 436, 3292, 6436, 3546, 5717, 364, 436, 316, 1279, 67, 1376, 3292, 4683, 3546, 308, 2990, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6079, 67, 7222, 12, 803, 67, 869, 67, 978, 16, 880, 4672, 3536, 9190, 279, 2632, 3992, 19, 4406, 19, 3146, 358, 326, 783, 1867, 18, 3536, 2990, 18, 11210, 2932, 4965, 642, 4017, 1191, 1984, 628, 2632, 1976, 7070, 13, 282, 618, 16, 4153, 273, 2990, 18, 2670, 67, 978, 67, 718, 12, 718, 13, 27378, 273, 1984, 18, 4109, 12, 803, 67, 869, 67, 978, 13, 2718, 16, 2201, 273, 27378, 18, 588, 542, 67, 2564, 67, 11687, 12, 4699, 3292, 10358, 19486, 282, 309, 618, 422, 296, 4406, 4278, 2990, 18, 11210, 2932, 19213, 3189, 364, 1984, 738, 87, 6, 738, 4153, 3292, 4406, 19486, 10296, 67, 1376, 273, 2990, 18, 588, 67, 4406, 2 ]
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 144) else quickfix.StringField.__init__(self, 144, 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, 30457, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 30457, 16, 501, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 30457, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 30457, 16, 501, 13, 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, -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, -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 ]
parser.set_defaults(dryrun=False, nosrc=False, nounzip=False)
parser.add_option("--progress", action="store_true", dest="progress", help="Report download progress") parser.set_defaults(dryrun=False, nosrc=False, nounzip=False, progress=False)
def downloadkit(version): global headers global options urlbase = 'http://developer.symbian.org/main/tools_and_kits/downloads/' viewid = 5 # default to Symbian^3 if version[0] == 2: viewid= 1 # Symbian^2 if version[0] == 3: viewid= 5 # Symbian^3 url = urlbase + ('view.php?id=%d'% viewid) + 'vId=' + version req = urllib2.Request(url, None, headers) response = urllib2.urlopen(req) doc=response.read() # BeatifulSoup chokes on some javascript, so we cut away everything before the <body> try: bodystart=doc.find('<body>') doc = doc[bodystart:] except: pass threadlist = [] # let's hope the HTML format never changes... # <a href='download.php?id=27&cid=60&iid=270' title='src_oss_mw.zip'> ...</a> soup=BeautifulSoup(doc) results=soup.findAll('a', href=re.compile("^download"), title=re.compile("\.(zip|xml)$")) results.sort(orderResults) for result in results: downloadurl = urlbase + result['href'] filename = result['title'] if options.nosrc and re.match(r"(src_sfl|src_oss)", filename) : continue # no snapshots of Mercurial source thanks... if download_file(filename, downloadurl) != True : continue # download failed # unzip the file (if desired) if re.match(r"patch", filename): complete_outstanding_unzips() # ensure that the thing we are patching is completed first if re.match(r"(bin|tools).*\.zip", filename): schedule_unzip(filename, 1, 0) # unzip once, don't delete elif re.match(r"src_.*\.zip", filename): schedule_unzip(filename, 1, 1) # zip of zips, delete top level elif re.match(r"build_BOM.zip", filename): schedule_unzip(filename, 1, 1) # unpack then delete zip as it's not needed again # wait for the unzipping threads to complete complete_outstanding_unzips() return 1
251bf8eaf341d307725143abf0794e0a25cb9e43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4206/251bf8eaf341d307725143abf0794e0a25cb9e43/downloadkit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 8691, 12, 1589, 4672, 2552, 1607, 2552, 702, 880, 1969, 273, 296, 2505, 2207, 23669, 18, 9009, 1627, 2779, 18, 3341, 19, 5254, 19, 6642, 67, 464, 67, 79, 1282, 19, 7813, 87, 2473, 225, 1476, 350, 273, 1381, 282, 468, 805, 358, 16455, 1627, 2779, 66, 23, 309, 1177, 63, 20, 65, 422, 576, 30, 1476, 350, 33, 404, 225, 468, 16455, 1627, 2779, 66, 22, 309, 1177, 63, 20, 65, 422, 890, 30, 1476, 350, 33, 1381, 225, 468, 16455, 1627, 2779, 66, 23, 880, 273, 880, 1969, 397, 7707, 1945, 18, 2684, 35, 350, 5095, 72, 11, 9, 1476, 350, 13, 397, 296, 90, 548, 2218, 397, 1177, 225, 1111, 273, 11527, 22, 18, 691, 12, 718, 16, 599, 16, 1607, 13, 766, 273, 11527, 22, 18, 295, 18589, 12, 3658, 13, 997, 33, 2740, 18, 896, 1435, 225, 468, 4823, 270, 25278, 27069, 462, 601, 281, 603, 2690, 11341, 16, 1427, 732, 6391, 10804, 7756, 1865, 326, 411, 3432, 34, 775, 30, 1417, 1937, 33, 2434, 18, 4720, 2668, 32, 3432, 1870, 13, 997, 273, 997, 63, 3432, 1937, 26894, 1335, 30, 1342, 225, 2650, 1098, 273, 5378, 468, 2231, 1807, 27370, 326, 3982, 740, 5903, 3478, 2777, 468, 411, 69, 3897, 2218, 7813, 18, 2684, 35, 350, 33, 5324, 10, 13478, 33, 4848, 10, 77, 350, 33, 5324, 20, 11, 2077, 2218, 4816, 67, 8464, 67, 81, 91, 18, 4450, 29256, 1372, 1757, 69, 34, 225, 15418, 33, 1919, 25432, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4224, 8691, 12, 1589, 4672, 2552, 1607, 2552, 702, 880, 1969, 273, 296, 2505, 2207, 23669, 18, 9009, 1627, 2779, 18, 3341, 19, 5254, 19, 6642, 67, 464, 67, 79, 1282, 19, 7813, 87, 2473, 225, 1476, 350, 273, 1381, 282, 468, 805, 358, 16455, 1627, 2779, 66, 23, 309, 1177, 63, 20, 65, 422, 576, 30, 1476, 350, 33, 404, 225, 468, 16455, 1627, 2779, 66, 22, 309, 1177, 63, 20, 65, 422, 890, 30, 1476, 350, 33, 1381, 225, 468, 16455, 1627, 2779, 66, 23, 880, 273, 880, 1969, 397, 7707, 1945, 18, 2684, 35, 350, 5095, 72, 11, 9, 1476, 350, 13, 397, 296, 90, 548, 2218, 397, 1177, 225, 1111, 273, 11527, 22, 18, 2 ]
return ExpatParser()
return xml.sax.make_parser()
def _getParser(): return ExpatParser()
b798c0109f56dc077bdd7d24fefb7b2c44afe98b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b798c0109f56dc077bdd7d24fefb7b2c44afe98b/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 2678, 13332, 327, 2025, 18, 87, 651, 18, 6540, 67, 4288, 1435, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 588, 2678, 13332, 327, 2025, 18, 87, 651, 18, 6540, 67, 4288, 1435, 225, 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, -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, -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, -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, -100, -100, -100 ]
results = asGrammar.source.parseString(src) for obj in results: self.model.append(obj) if obj.getType() == "package": if obj.getName() in self.__packages: curPkg = self.__packages[obj.getName()] for cls in obj.getClasses().items(): if curPkg.hasClass(cls[1].getName()): pass else: curPkg.addClass(cls[1]) else: self.__packages[obj.getName()] = obj return results def getPackage(self,name): return self.__packages.get(name,None) def getPackages(self): return self.__packages def hasPackage(self,name): return name in self.__packages
asGrammar.PROGRAM.parseString(src) pkg = asGrammar.package asGrammar.package = asModel.ASPackage() print pkg.classes if pkg.name in self.packages: print pkg.classes for cls in pkg.classes.values(): self.packages[pkg.name].classes[cls.name] = cls else: self.packages[pkg.name] = pkg
def parseSource(self,src): self.sources.append( src ) results = asGrammar.source.parseString(src) for obj in results: self.model.append(obj) if obj.getType() == "package": # Test if package currently exists in dictionary if obj.getName() in self.__packages: curPkg = self.__packages[obj.getName()] for cls in obj.getClasses().items(): if curPkg.hasClass(cls[1].getName()): # Do nothing if class already exists pass else: curPkg.addClass(cls[1]) else: # Add package object to dictionary using the # package name as the key. self.__packages[obj.getName()] = obj return results
e0b470097dfecc092fb724d07cc417651aac2b76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/e0b470097dfecc092fb724d07cc417651aac2b76/asBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1830, 12, 2890, 16, 4816, 4672, 365, 18, 10141, 18, 6923, 12, 1705, 262, 1686, 273, 487, 18576, 18, 3168, 18, 2670, 780, 12, 4816, 13, 225, 364, 1081, 316, 1686, 30, 365, 18, 2284, 18, 6923, 12, 2603, 13, 309, 1081, 18, 588, 559, 1435, 422, 315, 5610, 6877, 468, 7766, 309, 2181, 4551, 1704, 316, 3880, 309, 1081, 18, 17994, 1435, 316, 365, 16186, 10308, 30, 662, 11264, 273, 365, 16186, 10308, 63, 2603, 18, 17994, 1435, 65, 364, 2028, 316, 1081, 18, 588, 4818, 7675, 3319, 13332, 309, 662, 11264, 18, 5332, 797, 12, 6429, 63, 21, 8009, 17994, 1435, 4672, 468, 2256, 5083, 309, 667, 1818, 1704, 1342, 469, 30, 662, 11264, 18, 1289, 797, 12, 6429, 63, 21, 5717, 469, 30, 468, 1436, 2181, 733, 358, 3880, 1450, 326, 468, 2181, 508, 487, 326, 498, 18, 365, 16186, 10308, 63, 2603, 18, 17994, 1435, 65, 273, 1081, 327, 1686, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1109, 1830, 12, 2890, 16, 4816, 4672, 365, 18, 10141, 18, 6923, 12, 1705, 262, 1686, 273, 487, 18576, 18, 3168, 18, 2670, 780, 12, 4816, 13, 225, 364, 1081, 316, 1686, 30, 365, 18, 2284, 18, 6923, 12, 2603, 13, 309, 1081, 18, 588, 559, 1435, 422, 315, 5610, 6877, 468, 7766, 309, 2181, 4551, 1704, 316, 3880, 309, 1081, 18, 17994, 1435, 316, 365, 16186, 10308, 30, 662, 11264, 273, 365, 16186, 10308, 63, 2603, 18, 17994, 1435, 65, 364, 2028, 316, 1081, 18, 588, 4818, 7675, 3319, 13332, 309, 662, 11264, 18, 5332, 797, 12, 6429, 63, 21, 8009, 17994, 1435, 4672, 468, 2256, 5083, 309, 667, 1818, 1704, 1342, 469, 30, 662, 11264, 18, 2 ]
idstring = "$Id: notation3.py,v 1.48 2001-01-19 03:56:17 timbl Exp $"
idstring = "$Id: notation3.py,v 1.49 2001-01-22 02:02:39 timbl Exp $"
def startDoc(self):
09b971391fd0cd45214449804ce2b02cb5724bab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/09b971391fd0cd45214449804ce2b02cb5724bab/notation3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1759, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 1759, 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, -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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sys.stdin.readline()
unittest.main()
def setUpGIT(self): """Creates git repositories and start the servers.""" assert not self.gitdaemon join = os.path.join root = join(self.repos_dir, 'git') rmtree(root) os.mkdir(root) # Repo 1 repo = join(root, 'repo_1') subprocess.check_call(['git', 'init', '-q', repo]) write(join(repo, 'DEPS'), """
84585302b34d4580994a4cb364d190689cb455ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/84585302b34d4580994a4cb364d190689cb455ed/gclient_smoketest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 43, 1285, 12, 2890, 4672, 3536, 2729, 5071, 14531, 471, 787, 326, 7084, 12123, 1815, 486, 365, 18, 6845, 21511, 1233, 273, 1140, 18, 803, 18, 5701, 1365, 273, 1233, 12, 2890, 18, 15564, 67, 1214, 16, 296, 6845, 6134, 17941, 12, 3085, 13, 1140, 18, 26686, 12, 3085, 13, 468, 15118, 404, 3538, 273, 1233, 12, 3085, 16, 296, 7422, 67, 21, 6134, 6652, 18, 1893, 67, 1991, 12, 3292, 6845, 2187, 296, 2738, 2187, 2400, 85, 2187, 3538, 5717, 1045, 12, 5701, 12, 7422, 16, 296, 1639, 5857, 19899, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24292, 43, 1285, 12, 2890, 4672, 3536, 2729, 5071, 14531, 471, 787, 326, 7084, 12123, 1815, 486, 365, 18, 6845, 21511, 1233, 273, 1140, 18, 803, 18, 5701, 1365, 273, 1233, 12, 2890, 18, 15564, 67, 1214, 16, 296, 6845, 6134, 17941, 12, 3085, 13, 1140, 18, 26686, 12, 3085, 13, 468, 15118, 404, 3538, 273, 1233, 12, 3085, 16, 296, 7422, 67, 21, 6134, 6652, 18, 1893, 67, 1991, 12, 3292, 6845, 2187, 296, 2738, 2187, 2400, 85, 2187, 3538, 5717, 1045, 12, 5701, 12, 7422, 16, 296, 1639, 5857, 19899, 3536, 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 ]
return config[section][item_name]
return self.config[section][item_name]
def get_item(self, section, item_name): return config[section][item_name]
86a4df03ea2633950c42e84a6675c5a28d0dd16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7705/86a4df03ea2633950c42e84a6675c5a28d0dd16c/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 2890, 16, 2442, 16, 761, 67, 529, 4672, 327, 642, 63, 3464, 6362, 1726, 67, 529, 65, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1726, 12, 2890, 16, 2442, 16, 761, 67, 529, 4672, 327, 642, 63, 3464, 6362, 1726, 67, 529, 65, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print " /* %-6s */ {" % (pixel_depth_name(B)),
print ' /* %-6s */ {' % (pixel_depth_name(B)),
def print_function_table_name(filename, function_table): print "" print "char *%s_name[%d][%d][%d][%d] = {" % (functionnameify(filename), len(composite_modes), len(pixel_format)-1, len(pixel_format)-1, len(pixel_format)-1) for mode in composite_modes: print " { /* %s */" % (mode) for A in filter(lambda pf: pf != "GIMP_PIXELFORMAT_ANY", pixel_format): print " { /* A = %s */" % (pixel_depth_name(A)) for B in filter(lambda pf: pf != "GIMP_PIXELFORMAT_ANY", pixel_format): print " /* %-6s */ {" % (pixel_depth_name(B)), for D in filter(lambda pf: pf != "GIMP_PIXELFORMAT_ANY", pixel_format): key = "%s_%s_%s_%s" % (string.lower(mode), pixel_depth_name(A), pixel_depth_name(B), pixel_depth_name(D)) if function_table.has_key(key): print '"%s", ' % (function_table[key][0]), else: print '"%s", ' % (""), pass pass print "}," pass print " }," pass print " }," pass print "};\n" return
9d2b63962e152dcb9fc4a73e6b91c9ae2c358d95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/9d2b63962e152dcb9fc4a73e6b91c9ae2c358d95/make-gimp-composite-dispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 915, 67, 2121, 67, 529, 12, 3459, 16, 445, 67, 2121, 4672, 225, 1172, 1408, 1172, 315, 3001, 380, 9, 87, 67, 529, 14451, 72, 6362, 9, 72, 6362, 9, 72, 6362, 9, 72, 65, 273, 12528, 738, 261, 915, 529, 1164, 12, 3459, 3631, 562, 12, 27676, 67, 19282, 3631, 562, 12, 11743, 67, 2139, 24950, 21, 16, 562, 12, 11743, 67, 2139, 24950, 21, 16, 562, 12, 11743, 67, 2139, 24950, 21, 13, 364, 1965, 316, 9635, 67, 19282, 30, 1172, 315, 288, 1748, 738, 87, 1195, 6, 738, 261, 3188, 13, 364, 432, 316, 1034, 12, 14661, 10811, 30, 10811, 480, 315, 43, 9883, 67, 27381, 2247, 7254, 67, 15409, 3113, 4957, 67, 2139, 4672, 1172, 315, 225, 288, 1748, 432, 273, 738, 87, 1195, 6, 738, 261, 11743, 67, 5979, 67, 529, 12, 37, 3719, 364, 605, 316, 1034, 12, 14661, 10811, 30, 10811, 480, 315, 43, 9883, 67, 27381, 2247, 7254, 67, 15409, 3113, 4957, 67, 2139, 4672, 1172, 296, 282, 1748, 738, 17, 26, 87, 1195, 13666, 738, 261, 11743, 67, 5979, 67, 529, 12, 38, 13, 3631, 364, 463, 316, 1034, 12, 14661, 10811, 30, 10811, 480, 315, 43, 9883, 67, 27381, 2247, 7254, 67, 15409, 3113, 4957, 67, 2139, 4672, 498, 273, 2213, 87, 10185, 87, 10185, 87, 10185, 87, 6, 738, 261, 1080, 18, 8167, 12, 3188, 3631, 4957, 67, 5979, 67, 529, 12, 37, 3631, 4957, 67, 5979, 67, 529, 12, 38, 3631, 4957, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 67, 915, 67, 2121, 67, 529, 12, 3459, 16, 445, 67, 2121, 4672, 225, 1172, 1408, 1172, 315, 3001, 380, 9, 87, 67, 529, 14451, 72, 6362, 9, 72, 6362, 9, 72, 6362, 9, 72, 65, 273, 12528, 738, 261, 915, 529, 1164, 12, 3459, 3631, 562, 12, 27676, 67, 19282, 3631, 562, 12, 11743, 67, 2139, 24950, 21, 16, 562, 12, 11743, 67, 2139, 24950, 21, 16, 562, 12, 11743, 67, 2139, 24950, 21, 13, 364, 1965, 316, 9635, 67, 19282, 30, 1172, 315, 288, 1748, 738, 87, 1195, 6, 738, 261, 3188, 13, 364, 432, 316, 1034, 12, 14661, 10811, 30, 10811, 480, 315, 43, 9883, 67, 27381, 2247, 7254, 67, 15409, 3113, 4957, 67, 2 ]
d = readmodule(n, path, inpackage)
d = readmodule_ex(n, path, inpackage)
def readmodule_ex(module, path=[], inpackage=0): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module.''' dict = {} i = module.rfind('.') if i >= 0: # Dotted module name package = module[:i].strip() submodule = module[i+1:].strip() parent = readmodule(package, path, inpackage) child = readmodule(submodule, parent['__path__'], 1) return child if _modules.has_key(module): # we've seen this module before... return _modules[module] if module in sys.builtin_module_names: # this is a built-in module _modules[module] = dict return dict # search the path for the module f = None if inpackage: try: f, file, (suff, mode, type) = \ imp.find_module(module, path) except ImportError: f = None if f is None: fullpath = list(path) + sys.path f, file, (suff, mode, type) = imp.find_module(module, fullpath) if type == imp.PKG_DIRECTORY: dict['__path__'] = [file] _modules[module] = dict path = [file] + path f, file, (suff, mode, type) = \ imp.find_module('__init__', [file]) if type != imp.PY_SOURCE: # not Python source, can't do anything with this module f.close() _modules[module] = dict return dict _modules[module] = dict classstack = [] # stack of (class, indent) pairs src = f.read() f.close() # To avoid having to stop the regexp at each newline, instead # when we need a line number we simply string.count the number of # newlines in the string since the last time we did this; i.e., # lineno = lineno + \ # string.count(src, '\n', last_lineno_pos, here) # last_lineno_pos = here countnl = string.count lineno, last_lineno_pos = 1, 0 i = 0 while 1: m = _getnext(src, i) if not m: break start, i = m.span() if m.start("Method") >= 0: # found a method definition or function thisindent = _indent(m.group("MethodIndent")) meth_name = m.group("MethodName") lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] if classstack: # it's a class method cur_class = classstack[-1][0] cur_class._addmethod(meth_name, lineno) else: # it's a function f = Function(module, meth_name, file, lineno) dict[meth_name] = f elif m.start("String") >= 0: pass elif m.start("Class") >= 0: # we found a class definition thisindent = _indent(m.group("ClassIndent")) # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start class_name = m.group("ClassName") inherit = m.group("ClassSupers") if inherit: # the class inherits from other classes inherit = inherit[1:-1].strip() names = [] for n in inherit.split(','): n = n.strip() if dict.has_key(n): # we know this super class n = dict[n] else: c = n.split('.') if len(c) > 1: # super class # is of the # form module.class: # look in # module for class m = c[-2] c = c[-1] if _modules.has_key(m): d = _modules[m] if d.has_key(c): n = d[c] names.append(n) inherit = names # remember this class cur_class = Class(module, class_name, inherit, file, lineno) dict[class_name] = cur_class classstack.append((cur_class, thisindent)) elif m.start("Import") >= 0: # import module for n in m.group("ImportList").split(','): n = n.strip() try: # recursively read the imported module d = readmodule(n, path, inpackage) except: ##print 'module', n, 'not found' pass elif m.start("ImportFrom") >= 0: # from module import stuff mod = m.group("ImportFromPath") names = m.group("ImportFromList").split(',') try: # recursively read the imported module d = readmodule(mod, path, inpackage) except: ##print 'module', mod, 'not found' continue # add any classes that were defined in the # imported module to our name space if they # were mentioned in the list for n in names: n = n.strip() if d.has_key(n): dict[n] = d[n] elif n == '*': # only add a name if not # already there (to mimic what # Python does internally) # also don't add names that # start with _ for n in d.keys(): if n[0] != '_' and \ not dict.has_key(n): dict[n] = d[n] else: assert 0, "regexp _getnext found something unexpected" return dict
cb5da4b4d7bf5db97d84f27e38144505c7ff2458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cb5da4b4d7bf5db97d84f27e38144505c7ff2458/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 1093, 6309, 225, 2065, 273, 2618, 225, 277, 273, 1605, 18, 86, 4720, 2668, 1093, 13, 309, 277, 1545, 374, 30, 468, 17502, 2344, 1605, 508, 2181, 273, 1605, 10531, 77, 8009, 6406, 1435, 27314, 273, 1605, 63, 77, 15, 21, 30, 8009, 6406, 1435, 982, 273, 855, 2978, 12, 5610, 16, 589, 16, 316, 5610, 13, 1151, 273, 855, 2978, 12, 1717, 2978, 16, 982, 3292, 972, 803, 972, 17337, 404, 13, 327, 1151, 225, 309, 389, 6400, 18, 5332, 67, 856, 12, 2978, 4672, 468, 732, 8081, 5881, 333, 1605, 1865, 2777, 327, 389, 6400, 63, 2978, 65, 309, 1605, 316, 2589, 18, 24553, 67, 2978, 67, 1973, 30, 468, 333, 353, 279, 6650, 17, 267, 1605, 389, 6400, 63, 2978, 65, 273, 2065, 327, 2065, 225, 468, 1623, 326, 589, 364, 326, 1605, 284, 273, 599, 309, 316, 5610, 30, 775, 30, 284, 16, 585, 16, 261, 87, 3809, 16, 1965, 16, 618, 13, 273, 521, 1646, 18, 4720, 67, 2978, 12, 2978, 16, 589, 13, 1335, 11308, 30, 284, 273, 599, 309, 284, 353, 599, 30, 15170, 273, 666, 12, 803, 13, 397, 2589, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 2978, 67, 338, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 1093, 6309, 225, 2065, 273, 2618, 225, 277, 273, 1605, 18, 86, 4720, 2668, 1093, 13, 309, 277, 1545, 374, 30, 468, 17502, 2344, 1605, 508, 2181, 273, 1605, 10531, 77, 8009, 6406, 1435, 27314, 273, 1605, 63, 77, 15, 21, 30, 8009, 6406, 1435, 982, 273, 855, 2978, 12, 5610, 16, 589, 16, 316, 5610, 13, 1151, 273, 855, 2978, 2 ]
msg += ex
msg += str(ex)
def publishStatusToDashboard(self, jobSpecId, data): """ _publishStatusToDashboard_
5a5dbe1212c44c83bc3260919c0ce68f5227766a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/5a5dbe1212c44c83bc3260919c0ce68f5227766a/CondorG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 1482, 774, 14830, 12, 2890, 16, 1719, 1990, 548, 16, 501, 4672, 3536, 389, 6543, 1482, 774, 14830, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3808, 1482, 774, 14830, 12, 2890, 16, 1719, 1990, 548, 16, 501, 4672, 3536, 389, 6543, 1482, 774, 14830, 67, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.shuffle == 2:
if self.shuffle == 1: random.shuffle(self.__playlist) elif (self.shuffle == 2 and (len(self.__playlist) == len(self.__orig_playlist))):
def __get_song(self): self.__lock.acquire() if self.shuffle == 2: # weighted random plist = self.__orig_playlist total_rating = sum([song.get("~#rating", 2) for song in plist]) choice = random.random() * total_rating current = 0.0 for song in plist: current += song.get("~#rating", 2) if current >= choice: break else: song = self.__playlist.pop(0) if self.shuffle: random.shuffle(self.__playlist) fn = song['~filename'] config.set("memory", "song", fn) try: player = self.__output.open(song) except Exception, err: sys.stderr.write(str(err) + "\n") player = None self.paused = True self.info.missing(song) else: self.info.song_started(song) self.__played.append(song) self.__lock.release() return song, player
ab0a30594392d00f9a751ac7aed7f9420ff50a8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/ab0a30594392d00f9a751ac7aed7f9420ff50a8b/player.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 816, 75, 12, 2890, 4672, 365, 16186, 739, 18, 1077, 1039, 1435, 309, 365, 18, 31980, 422, 404, 30, 2744, 18, 31980, 12, 2890, 16186, 1601, 1098, 13, 1327, 261, 2890, 18, 31980, 422, 576, 471, 261, 1897, 12, 2890, 16186, 1601, 1098, 13, 422, 562, 12, 2890, 16186, 4949, 67, 1601, 1098, 3719, 4672, 225, 468, 13747, 2744, 21074, 273, 365, 16186, 4949, 67, 1601, 1098, 2078, 67, 17326, 273, 2142, 3816, 816, 75, 18, 588, 2932, 98, 7, 17326, 3113, 576, 13, 364, 17180, 316, 21074, 5717, 6023, 273, 2744, 18, 9188, 1435, 380, 2078, 67, 17326, 783, 273, 374, 18, 20, 364, 17180, 316, 21074, 30, 783, 1011, 17180, 18, 588, 2932, 98, 7, 17326, 3113, 576, 13, 309, 783, 1545, 6023, 30, 898, 469, 30, 17180, 273, 365, 16186, 1601, 1098, 18, 5120, 12, 20, 13, 309, 365, 18, 31980, 30, 2744, 18, 31980, 12, 2890, 16186, 1601, 1098, 13, 2295, 273, 17180, 3292, 98, 3459, 3546, 642, 18, 542, 2932, 7858, 3113, 315, 816, 75, 3113, 2295, 13, 775, 30, 7291, 273, 365, 16186, 2844, 18, 3190, 12, 816, 75, 13, 1335, 1185, 16, 393, 30, 2589, 18, 11241, 18, 2626, 12, 701, 12, 370, 13, 397, 1548, 82, 7923, 7291, 273, 599, 365, 18, 8774, 3668, 273, 1053, 365, 18, 1376, 18, 7337, 12, 816, 75, 13, 469, 30, 365, 18, 1376, 18, 816, 75, 67, 14561, 12, 816, 75, 13, 365, 16186, 1601, 329, 18, 6923, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 816, 75, 12, 2890, 4672, 365, 16186, 739, 18, 1077, 1039, 1435, 309, 365, 18, 31980, 422, 404, 30, 2744, 18, 31980, 12, 2890, 16186, 1601, 1098, 13, 1327, 261, 2890, 18, 31980, 422, 576, 471, 261, 1897, 12, 2890, 16186, 1601, 1098, 13, 422, 562, 12, 2890, 16186, 4949, 67, 1601, 1098, 3719, 4672, 225, 468, 13747, 2744, 21074, 273, 365, 16186, 4949, 67, 1601, 1098, 2078, 67, 17326, 273, 2142, 3816, 816, 75, 18, 588, 2932, 98, 7, 17326, 3113, 576, 13, 364, 17180, 316, 21074, 5717, 6023, 273, 2744, 18, 9188, 1435, 380, 2078, 67, 17326, 783, 273, 374, 18, 20, 364, 17180, 316, 21074, 30, 783, 1011, 17180, 18, 588, 2932, 2 ]
self._spacegroup = sg_node.getElementsbyTagName(
self._spacegroup = sg_node.getElementsByTagName(
def decide_spacegroup(self): '''Given data indexed in the correct pointgroup, have a guess at the spacegroup.'''
28ac80475963d52a8047b79fafa31fd10219b03b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3290/28ac80475963d52a8047b79fafa31fd10219b03b/Pointless.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16288, 67, 2981, 1655, 12, 2890, 4672, 9163, 6083, 501, 8808, 316, 326, 3434, 1634, 1655, 16, 1240, 279, 7274, 622, 326, 3476, 1655, 1093, 6309, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16288, 67, 2981, 1655, 12, 2890, 4672, 9163, 6083, 501, 8808, 316, 326, 3434, 1634, 1655, 16, 1240, 279, 7274, 622, 326, 3476, 1655, 1093, 6309, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
unittest.TestResult.addFailure(self, test, err)
self.failures.append((test, err))
def addFailure(self, test, err): unittest.TestResult.addFailure(self, test, err) if self.showAll: self.stream.writeln("DIFFER") elif self.dots: self.stream.write("D")
ecb742f904067814aade339e0a35903ae04887ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/ecb742f904067814aade339e0a35903ae04887ab/gstestutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 5247, 12, 2890, 16, 1842, 16, 393, 4672, 365, 18, 26268, 18, 6923, 12443, 3813, 16, 393, 3719, 309, 365, 18, 4500, 1595, 30, 365, 18, 3256, 18, 5363, 292, 82, 2932, 2565, 9303, 7923, 1327, 365, 18, 72, 6968, 30, 365, 18, 3256, 18, 2626, 2932, 40, 7923, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 18, 5363, 292, 82, 2932, 2565, 9303, 7923, 1327, 365, 18, 72, 6968, 30, 365, 18, 3256, 18, 2626, 2932, 40, 7923, 225, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.handle_UIUpdate('speed')
self.handle_UIUpdate('virtualSpeed')
def updateAll(self): self.handle_UIUpdate('funds') self.handle_UIUpdate('date') self.handle_UIUpdate('history') self.handle_UIUpdate('evaluation') self.handle_UIUpdate('paused') self.handle_UIUpdate('speed') self.handle_UIUpdate('demand') self.handle_UIUpdate('options') self.handle_UIUpdate('gamelevel') self.handle_UIUpdate('cityname') self.updateMapView()
14b2acc074530e8a6710261615202e97b1b8b23b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/14b2acc074530e8a6710261615202e97b1b8b23b/micropolisturbogearsengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1595, 12, 2890, 4672, 365, 18, 4110, 67, 5370, 1891, 2668, 74, 19156, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 712, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 8189, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 14168, 367, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 8774, 3668, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 12384, 16562, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 323, 889, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 2116, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 75, 301, 6516, 941, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 14240, 529, 6134, 365, 18, 2725, 863, 1767, 1435, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 1595, 12, 2890, 4672, 365, 18, 4110, 67, 5370, 1891, 2668, 74, 19156, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 712, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 8189, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 14168, 367, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 8774, 3668, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 12384, 16562, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 323, 889, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 2116, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 75, 301, 6516, 941, 6134, 365, 18, 4110, 67, 5370, 1891, 2668, 14240, 529, 6134, 365, 18, 2725, 863, 1767, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
for scheme_id in self.list_fs_skinfiles(portal_meta, skin_id, True): for file_id in self.list_fs_schemefiles(portal_meta, skin_id, scheme_id, ftype='styles'):
for scheme_id in self.list_fs_skinfiles(portal, skin_id, True): for file_id in self.list_fs_schemefiles(portal, skin_id, scheme_id, ftype='styles'):
def updateLayoutForms(self, portal, locator, skin_id, f_action, file_id): """ reload Naaya portal layout files""" report = {} portal_path = portal.absolute_url(1) portal_meta = portal.meta_type file_custom = [] for fid in file_id.split(','): file_custom.append(fid.strip())
0116da894b0fd06e2befe1c4b6331ce460957cbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/0116da894b0fd06e2befe1c4b6331ce460957cbc/NaayaUpdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 11899, 67, 803, 273, 11899, 18, 12547, 67, 718, 12, 21, 13, 11899, 67, 3901, 273, 11899, 18, 3901, 67, 723, 585, 67, 3662, 273, 5378, 364, 13444, 316, 585, 67, 350, 18, 4939, 12, 17023, 4672, 585, 67, 3662, 18, 6923, 12, 27268, 18, 6406, 10756, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 11899, 67, 803, 273, 11899, 18, 12547, 67, 718, 12, 21, 13, 11899, 67, 3901, 273, 11899, 18, 3901, 67, 723, 585, 67, 3662, 273, 5378, 364, 13444, 316, 585, 67, 350, 18, 4939, 12, 17023, 4672, 585, 67, 3662, 18, 6923, 12, 27268, 18, 6406, 10756, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
attrs = {"IAccessible::state_%s"%oleacc.STATE_SYSTEM_READONLY: [None]}
attrs = {"IAccessible::role": [oleacc.ROLE_SYSTEM_PUSHBUTTON, oleacc.ROLE_SYSTEM_RADIOBUTTON, oleacc.ROLE_SYSTEM_CHECKBUTTON, oleacc.ROLE_SYSTEM_COMBOBOX, oleacc.ROLE_SYSTEM_LIST, oleacc.ROLE_SYSTEM_OUTLINE, oleacc.ROLE_SYSTEM_TEXT], "IAccessible::state_%s" % oleacc.STATE_SYSTEM_READONLY: [None]}
def _searchableAttribsForNodeType(self,nodeType): if nodeType in ("link", "unvisitedLink"): attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_LINK]} elif nodeType=="table": attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_TABLE]} elif nodeType.startswith("heading") and nodeType[7:].isdigit(): attrs = {"acrobat::stdname": ["H%s" % nodeType[7:]]} elif nodeType == "heading": attrs = {"acrobat::stdname": ["H1", "H2", "H3", "H4", "H5", "H6"]} elif nodeType == "formField": attrs = {"IAccessible::state_%s"%oleacc.STATE_SYSTEM_READONLY: [None]} elif nodeType == "list": attrs = {"acrobat::stdname": ["L"]} elif nodeType == "listItem": attrs = {"acrobat::stdname": ["LI"]} elif nodeType=="button": attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_PUSHBUTTON]} elif nodeType=="edit": attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_TEXT],"IAccessible::state_%s"%oleacc.STATE_SYSTEM_READONLY:[None]} elif nodeType=="radioButton": attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_RADIOBUTTON]} elif nodeType=="checkBox": attrs={"IAccessible::role":[oleacc.ROLE_SYSTEM_CHECKBUTTON]} elif nodeType == "blockQuote": attrs = {"acrobat::stdname": ["BlockQuote"]} elif nodeType=="focusable": attrs={"IAccessible::state_%s"%oleacc.STATE_SYSTEM_FOCUSABLE:[1]} else: return None return attrs
7fc998b68c659a01304f9e743f36448134f67046 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/7fc998b68c659a01304f9e743f36448134f67046/adobeAcrobat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 429, 12399, 28388, 15101, 12, 2890, 16, 2159, 559, 4672, 309, 9507, 316, 7566, 1232, 3113, 315, 318, 30129, 2098, 6, 4672, 3422, 5899, 6, 45, 10451, 2866, 4615, 6877, 63, 790, 8981, 18, 16256, 67, 14318, 67, 10554, 18322, 1327, 9507, 31713, 2121, 6877, 3422, 5899, 6, 45, 10451, 2866, 4615, 6877, 63, 790, 8981, 18, 16256, 67, 14318, 67, 7775, 18322, 1327, 9507, 18, 17514, 1918, 2932, 19948, 7923, 471, 9507, 63, 27, 30, 8009, 291, 11052, 13332, 3422, 273, 12528, 1077, 303, 28260, 2866, 5084, 529, 6877, 8247, 44, 9, 87, 6, 738, 9507, 63, 27, 30, 13563, 97, 1327, 9507, 422, 315, 19948, 6877, 3422, 273, 12528, 1077, 303, 28260, 2866, 5084, 529, 6877, 8247, 44, 21, 3113, 315, 44, 22, 3113, 315, 44, 23, 3113, 315, 44, 24, 3113, 315, 44, 25, 3113, 315, 44, 26, 11929, 97, 1327, 9507, 422, 315, 687, 974, 6877, 3422, 273, 12528, 45, 10451, 2866, 4615, 6877, 306, 790, 8981, 18, 16256, 67, 14318, 67, 30348, 20068, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 28829, 4294, 20068, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 10687, 20068, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 4208, 5315, 16876, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 7085, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 5069, 5997, 16, 320, 298, 8981, 18, 16256, 67, 14318, 67, 5151, 6487, 315, 45, 10451, 2866, 2019, 10185, 87, 6, 738, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3072, 429, 12399, 28388, 15101, 12, 2890, 16, 2159, 559, 4672, 309, 9507, 316, 7566, 1232, 3113, 315, 318, 30129, 2098, 6, 4672, 3422, 5899, 6, 45, 10451, 2866, 4615, 6877, 63, 790, 8981, 18, 16256, 67, 14318, 67, 10554, 18322, 1327, 9507, 31713, 2121, 6877, 3422, 5899, 6, 45, 10451, 2866, 4615, 6877, 63, 790, 8981, 18, 16256, 67, 14318, 67, 7775, 18322, 1327, 9507, 18, 17514, 1918, 2932, 19948, 7923, 471, 9507, 63, 27, 30, 8009, 291, 11052, 13332, 3422, 273, 12528, 1077, 303, 28260, 2866, 5084, 529, 6877, 8247, 44, 9, 87, 6, 738, 9507, 63, 27, 30, 13563, 97, 1327, 9507, 422, 315, 19948, 6877, 3422, 273, 12528, 1077, 303, 28260, 2866, 5084, 2 ]
mod_line, last_char = revert_unicode_line(document, i, last_char, insets, spec_chars)
mod_line = revert_unicode_line(document, i, insets, spec_chars)
def revert_unicode(document): '''Transform unicode characters that can not be written using the
b03bc9691212caf7dc3f524e4163b2cb73a6a9f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/b03bc9691212caf7dc3f524e4163b2cb73a6a9f0/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 9124, 12, 5457, 4672, 9163, 4059, 5252, 3949, 716, 848, 486, 506, 5941, 1450, 326, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15226, 67, 9124, 12, 5457, 4672, 9163, 4059, 5252, 3949, 716, 848, 486, 506, 5941, 1450, 326, 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, -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, -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, -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, -100 ]
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(331635635998274737472200656430763,1510028911088401971189590305498785,1,1) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) return self._b[n] def list(self, n): self._eval(n) return self._b[:n] class A083105(SloaneSequence): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 62638280004239857$, $a(1) = 49463435743205655$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found by Donald Knuth in 1990. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A083105;a Second-order linear recurrence sequence with a(n) = a(n-1) + a(n-2). sage: a(1) 49463435743205655 sage: a(2) 112101715747445512 sage: a(3) 161565151490651167 sage: a.offset 0 sage: a(8) 1853029790662436896 sage: a(20) 596510791500513098192 sage: a.list(4) [62638280004239857, 49463435743205655, 112101715747445512, 161565151490651167] AUTHOR: -- Jaap Spies (2007-01-23) """ def __init__(self):
class A083105(RecurrenceSequence2): def __init__(self): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 62638280004239857$, $a(1) = 49463435743205655$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found by Donald Knuth in 1990. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A083105;a Second-order linear recurrence sequence with a(n) = a(n-1) + a(n-2). sage: a(1) 49463435743205655 sage: a(2) 112101715747445512 sage: a(3) 161565151490651167 sage: a.offset 0 sage: a(8) 1853029790662436896 sage: a(20) 596510791500513098192 sage: a.list(4) [62638280004239857, 49463435743205655, 112101715747445512, 161565151490651167] AUTHOR: -- Jaap Spies (2007-01-23) """
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(331635635998274737472200656430763,1510028911088401971189590305498785,1,1) f = self._f self._b += [f.next() for i in range(how_many)]
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 9200, 12, 2890, 16, 3661, 67, 9353, 33, 2163, 4672, 775, 30, 284, 273, 365, 6315, 74, 1335, 6394, 30, 365, 6315, 74, 273, 8112, 67, 4507, 22, 12, 3707, 30886, 4313, 4763, 2733, 28, 5324, 24, 9036, 5608, 27, 3787, 713, 9222, 1105, 5082, 27, 4449, 16, 3600, 6625, 6030, 12416, 21770, 5193, 1611, 10580, 2499, 6675, 6162, 4630, 6260, 7616, 11035, 7140, 16, 21, 16, 21, 13, 284, 273, 365, 6315, 74, 365, 6315, 70, 1011, 306, 74, 18, 4285, 1435, 364, 277, 316, 1048, 12, 13606, 67, 9353, 25887, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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27, 4449, 16, 3600, 6625, 6030, 12416, 21770, 5193, 1611, 10580, 2499, 6675, 6162, 4630, 6260, 7616, 11035, 7140, 16, 21, 16, 21, 13, 284, 273, 365, 6315, 74, 365, 6315, 70, 1011, 306, 74, 18, 4285, 1435, 364, 277, 316, 1048, 12, 13606, 67, 9353, 25887, 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 ]
name = self.create_tmp_folder(ftp_ip,ftp_login,ftp_password,ftp_folder)
try: name = self.create_tmp_folder(ftp_ip,ftp_login,ftp_password,ftp_folder) except ExtractError, error: show_error(error.message) return
def extract_xiso(self): self.extracted_filename = None
a6ef4f25fa15a2156938c04a6c69e5a33e8780ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/a6ef4f25fa15a2156938c04a6c69e5a33e8780ad/gxiso.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 5674, 83, 12, 2890, 4672, 365, 18, 8004, 329, 67, 3459, 273, 599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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30, 1652, 2608, 67, 5674, 83, 12, 2890, 4672, 365, 18, 8004, 329, 67, 3459, 273, 599, 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, -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, -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, -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, -100, -100, -100 ]
self._send_method_frame(0, (10, 60), args)
self._send_method_frame((10, 60), args)
def close(self, reply_code=0, reply_text='', method_sig=(0, 0)): """ request a connection close
53019bb5fd2a3405591b5928a9feefa8d7b950c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10764/53019bb5fd2a3405591b5928a9feefa8d7b950c8/client_0_8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 4332, 67, 710, 33, 20, 16, 4332, 67, 955, 2218, 2187, 707, 67, 7340, 28657, 20, 16, 374, 3719, 30, 3536, 590, 279, 1459, 1746, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 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, 1746, 12, 2890, 16, 4332, 67, 710, 33, 20, 16, 4332, 67, 955, 2218, 2187, 707, 67, 7340, 28657, 20, 16, 374, 3719, 30, 3536, 590, 279, 1459, 1746, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.system('mkisofs %s %s %s -o %s/%s %s' % (mkisofsargs, volname, bootargs, isofile, self.topdir))
os.system('mkisofs %s %s %s -o %s %s' % (mkisofsargs, volname, bootargs, isofile, self.topdir))
def doCreateIsos(self): anaruntime = '/usr/lib/anaconda-runtime/boot' discinfofile = os.path.join(self.topdir, '.discinfo') # we use this a fair amount mkisofsargs = '-v -U -J -R -T -V' # common mkisofs flags bootargs = '' x86bootargs = '-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table' ia64bootargs = '-b images/boot.img -no-emul-boot' ppcbootargs = '-part -hfs -r -l -sysid PPC -map %s -magic %s -no-desktop -allow-multidot -chrp-boot -hfs-bless' % (os.path.join(anaruntime, 'mapping'), os.path.join(anaruntime, 'magic')) os.makedirs(self.isodir) isolist=[] for disc in range(1, self.config.getint('default', 'discs') + 1): # cycle through the CD isos volname = '"%s %s %s Disc %s"' % (self.config.get('default', 'product_name'), self.config.get('default', 'version'), self.config.get('default', 'arch'), disc) # hacky :/ isoname = '%s-%s-%s-disc%s.iso' % (self.config.get('default', 'iso_basename'), self.config.get('default', 'version'), self.config.get('default', 'arch'), disc) if disc == 1: # if this is the first disc, we want to set boot flags if self.config.get('default', 'arch') == 'i386' or self.config.get('default', 'arch') == 'x86_64': bootargs = x86bootargs elif self.config.get('default', 'arch') == 'ia64': bootargs = ia64bootargs elif self.config.get('default', 'arch') == 'ppc': bootargs = "%s %s" % (ppcbootargs, os.path.join('%s-disc%s' % (self.topdir, disc), "ppc/mac")) else: bootargs = '' # clear out any existing bootargs
8bb0495b634407cc85cacc920c1c45873db6ed6e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/8bb0495b634407cc85cacc920c1c45873db6ed6e/pungi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1684, 2520, 538, 12, 2890, 4672, 392, 297, 29332, 273, 1173, 13640, 19, 2941, 19, 13848, 591, 2414, 17, 9448, 19, 7137, 11, 19169, 1376, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3669, 1214, 16, 2418, 2251, 71, 1376, 6134, 468, 732, 999, 333, 279, 284, 1826, 3844, 5028, 291, 792, 87, 1968, 273, 2400, 90, 300, 57, 300, 46, 300, 54, 300, 56, 300, 58, 11, 468, 2975, 5028, 291, 792, 87, 2943, 4835, 1968, 273, 875, 619, 5292, 7137, 1968, 273, 2400, 70, 16249, 9534, 19, 291, 355, 9534, 18, 4757, 300, 71, 16249, 9534, 19, 7137, 18, 2574, 300, 2135, 17, 351, 332, 17, 7137, 300, 7137, 17, 945, 17, 1467, 1059, 300, 7137, 17, 1376, 17, 2121, 11, 20389, 1105, 7137, 1968, 273, 2400, 70, 4602, 19, 7137, 18, 6081, 300, 2135, 17, 351, 332, 17, 7137, 11, 293, 2436, 7137, 1968, 273, 2400, 2680, 300, 76, 2556, 300, 86, 300, 80, 300, 9499, 350, 453, 3513, 300, 1458, 738, 87, 300, 11179, 738, 87, 300, 2135, 17, 31949, 300, 5965, 17, 5421, 350, 352, 300, 343, 13832, 17, 7137, 300, 76, 2556, 17, 70, 2656, 11, 738, 261, 538, 18, 803, 18, 5701, 12, 304, 297, 29332, 16, 296, 6770, 19899, 1140, 18, 803, 18, 5701, 12, 304, 297, 29332, 16, 296, 11179, 26112, 1140, 18, 81, 9477, 10539, 12, 2890, 18, 291, 369, 481, 13, 16249, 376, 33, 8526, 364, 19169, 316, 1048, 12, 21, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1684, 2520, 538, 12, 2890, 4672, 392, 297, 29332, 273, 1173, 13640, 19, 2941, 19, 13848, 591, 2414, 17, 9448, 19, 7137, 11, 19169, 1376, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3669, 1214, 16, 2418, 2251, 71, 1376, 6134, 468, 732, 999, 333, 279, 284, 1826, 3844, 5028, 291, 792, 87, 1968, 273, 2400, 90, 300, 57, 300, 46, 300, 54, 300, 56, 300, 58, 11, 468, 2975, 5028, 291, 792, 87, 2943, 4835, 1968, 273, 875, 619, 5292, 7137, 1968, 273, 2400, 70, 16249, 9534, 19, 291, 355, 9534, 18, 4757, 300, 71, 16249, 9534, 19, 7137, 18, 2574, 300, 2135, 17, 351, 332, 17, 7137, 300, 7137, 17, 945, 17, 1467, 2 ]
result = t.absfile( result )
result = T.absfile( result )
def get_local( self, existing=0 ): """ Return a valid, absolute path. Either the existing original or with all substitutions for which environment variables exist. This function is time consuming (absfile - os.realpath is the culprit). @param existing: don't return a non-existing path @type existing: 0|1 @return: valid absolute path in current environment @rtype: str @raise LocalPathError: if existing==1 and no existing path can be constructed via environment variables """ result = string.join( [ f[0] for f in self.fragments ], '' ) result = t.absfile( result )
3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3729, 12, 365, 16, 2062, 33, 20, 262, 30, 3536, 2000, 279, 923, 16, 4967, 589, 18, 14635, 326, 2062, 2282, 578, 598, 777, 23368, 364, 1492, 3330, 3152, 1005, 18, 1220, 445, 353, 813, 27815, 261, 5113, 768, 300, 1140, 18, 7688, 803, 353, 326, 276, 14290, 583, 2934, 225, 632, 891, 2062, 30, 2727, 1404, 327, 279, 1661, 17, 11711, 589, 632, 723, 225, 2062, 30, 374, 96, 21, 225, 632, 2463, 30, 923, 4967, 589, 316, 783, 3330, 632, 86, 723, 30, 609, 225, 632, 11628,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3729, 12, 365, 16, 2062, 33, 20, 262, 30, 3536, 2000, 279, 923, 16, 4967, 589, 18, 14635, 326, 2062, 2282, 578, 598, 777, 23368, 364, 1492, 3330, 3152, 1005, 18, 1220, 445, 353, 813, 27815, 261, 5113, 768, 300, 1140, 18, 7688, 803, 353, 326, 276, 14290, 583, 2934, 225, 632, 891, 2062, 30, 2727, 1404, 327, 279, 1661, 17, 11711, 589, 632, 723, 225, 2062, 30, 374, 96, 21, 225, 632, 2463, 30, 923, 4967, 589, 316, 783, 3330, 632, 86, 723, 30, 609, 225, 632, 11628, 3566, 743, 668, 30, 309, 2062, 631, 21, 471, 1158, 2062, 589, 848, 506, 15688, 3970, 3330, 3152, 3536, 563, 273, 533, 18, 5701, 12, 306, 284, 2 ]
if not found:
if not any(loc.lower().startswith("en") for loc in localeSet):
def setLocaleSet(self, localeSet=None, fallback=True): """ Resets the c{I18nManager locale set c{List}.
c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9228/c9efc6d061529bd9cd11f7029c50fd2b6b69b7d9/i18nmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19848, 694, 12, 2890, 16, 2573, 694, 33, 7036, 16, 5922, 33, 5510, 4672, 3536, 1124, 2413, 326, 276, 95, 45, 2643, 82, 1318, 2573, 444, 276, 95, 682, 5496, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19848, 694, 12, 2890, 16, 2573, 694, 33, 7036, 16, 5922, 33, 5510, 4672, 3536, 1124, 2413, 326, 276, 95, 45, 2643, 82, 1318, 2573, 444, 276, 95, 682, 5496, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import pdb;pdb.set_trace()
def test_getPAZ(self): """ Test for the Client.getPAZ function. As reference the EHZ channel of MANZ is taken, the result is compared to the entries of the local response file of the Bavarian network. """ # reference values zeros = [0j, 0j] poles = [-3.700400e-02 + 3.701600e-02j, -3.700400e-02 - 3.701600e-02j, - 2.513300e+02 + 0.000000e+00j, -1.310400e+02 - 4.672900e+02j, - 1.310400e+02 + 4.672900e+02j] gain = 6.0077e+07 sensitivity = 2.5168e+09 # initialize client client = Client() start = UTCDateTime(2009, 1, 1) end = start + 1 # fetch poles and zeros paz = client.getPAZ('BW', 'MANZ', '', 'EHZ', start, end) self.assertEqual(gain, paz['gain']) self.assertEqual(poles, paz['poles']) self.assertEqual(zeros, paz['zeros']) # can only compare four decimal places self.assertAlmostEqual(sensitivity / 1e9, paz['sensitivity'] / 1e9, places=4) import pdb;pdb.set_trace()
ae6b97446ca425e5af726d7660005e5203d1dc9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/ae6b97446ca425e5af726d7660005e5203d1dc9f/test_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 4066, 62, 12, 2890, 4672, 3536, 7766, 364, 326, 2445, 18, 588, 4066, 62, 445, 18, 225, 2970, 2114, 326, 512, 44, 62, 1904, 434, 20972, 62, 353, 9830, 16, 326, 563, 353, 15843, 358, 326, 3222, 434, 326, 1191, 766, 585, 434, 326, 605, 842, 297, 2779, 2483, 18, 3536, 468, 2114, 924, 4922, 273, 306, 20, 78, 16, 374, 78, 65, 2952, 281, 273, 23059, 23, 18, 26874, 16010, 73, 17, 3103, 397, 890, 18, 27, 24171, 713, 73, 17, 3103, 78, 16, 300, 23, 18, 26874, 16010, 73, 17, 3103, 300, 890, 18, 27, 24171, 713, 73, 17, 3103, 78, 16, 300, 576, 18, 25, 3437, 19249, 73, 15, 3103, 397, 374, 18, 9449, 73, 15, 713, 78, 16, 300, 21, 18, 23, 2163, 16010, 73, 15, 3103, 300, 1059, 18, 9599, 5540, 713, 73, 15, 3103, 78, 16, 300, 404, 18, 23, 2163, 16010, 73, 15, 3103, 397, 1059, 18, 9599, 5540, 713, 73, 15, 3103, 78, 65, 17527, 273, 1666, 18, 713, 4700, 73, 15, 8642, 15390, 20862, 273, 576, 18, 25, 23329, 73, 15, 5908, 468, 4046, 1004, 1004, 273, 2445, 1435, 787, 273, 9951, 5096, 12, 6976, 29, 16, 404, 16, 404, 13, 679, 273, 787, 397, 404, 468, 2158, 2952, 281, 471, 4922, 293, 1561, 273, 1004, 18, 588, 4066, 62, 2668, 38, 59, 2187, 296, 9560, 62, 2187, 10226, 296, 41, 44, 62, 2187, 787, 16, 679, 13, 365, 18, 11231, 5812, 12, 25540, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 4066, 62, 12, 2890, 4672, 3536, 7766, 364, 326, 2445, 18, 588, 4066, 62, 445, 18, 225, 2970, 2114, 326, 512, 44, 62, 1904, 434, 20972, 62, 353, 9830, 16, 326, 563, 353, 15843, 358, 326, 3222, 434, 326, 1191, 766, 585, 434, 326, 605, 842, 297, 2779, 2483, 18, 3536, 468, 2114, 924, 4922, 273, 306, 20, 78, 16, 374, 78, 65, 2952, 281, 273, 23059, 23, 18, 26874, 16010, 73, 17, 3103, 397, 890, 18, 27, 24171, 713, 73, 17, 3103, 78, 16, 300, 23, 18, 26874, 16010, 73, 17, 3103, 300, 890, 18, 27, 24171, 713, 73, 17, 3103, 78, 16, 300, 576, 18, 25, 3437, 19249, 73, 15, 3103, 397, 374, 2 ]
v[1] = list(sorted((si, se) for (si, (se, void)) in v[1].iteritems()))
v[1] = sorted((si, se) for (si, (se, void)) in v[1].iteritems())
def keyfunc((k, v), ltrs=uppercase+'_'): # hack: mutate the subitems dicts to a list v[1] = list(sorted((si, se) for (si, (se, void)) in v[1].iteritems())) # now calculate the key letter = k[0].upper() if letter in ltrs: return letter else: # get all other symbols under one heading return 'Symbols'
eb6bc55cf6a2f60dae70f2c9c0dff83addc51cae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/eb6bc55cf6a2f60dae70f2c9c0dff83addc51cae/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 644, 12443, 79, 16, 331, 3631, 328, 28007, 33, 5797, 3593, 6797, 4623, 4672, 468, 11769, 30, 15887, 326, 720, 3319, 15838, 358, 279, 666, 331, 63, 21, 65, 273, 3115, 12443, 7722, 16, 695, 13, 364, 261, 7722, 16, 261, 307, 16, 918, 3719, 316, 331, 63, 21, 8009, 2165, 3319, 10756, 468, 2037, 4604, 326, 498, 9471, 273, 417, 63, 20, 8009, 5797, 1435, 309, 9471, 316, 328, 28007, 30, 327, 9471, 469, 30, 468, 336, 777, 1308, 7963, 3613, 1245, 11053, 327, 296, 14821, 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, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 498, 644, 12443, 79, 16, 331, 3631, 328, 28007, 33, 5797, 3593, 6797, 4623, 4672, 468, 11769, 30, 15887, 326, 720, 3319, 15838, 358, 279, 666, 331, 63, 21, 65, 273, 3115, 12443, 7722, 16, 695, 13, 364, 261, 7722, 16, 261, 307, 16, 918, 3719, 316, 331, 63, 21, 8009, 2165, 3319, 10756, 468, 2037, 4604, 326, 498, 9471, 273, 417, 63, 20, 8009, 5797, 1435, 309, 9471, 316, 328, 28007, 30, 327, 9471, 469, 30, 468, 336, 777, 1308, 7963, 3613, 1245, 11053, 327, 296, 14821, 11, 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, -100, -100, -100, -100 ]
self.log.verbose( 'Priority for TaskQueue: %s' % taskQueuePriority ) taskQueueCPU = taskQueueDict['CPUTime'] self.log.verbose( 'CPUTime for TaskQueue: %s' % taskQueueCPU )
self.log.verbose( 'Priority for TaskQueue %s:' % taskQueueID, taskQueuePriority ) taskQueueCPU = max( taskQueueDict['CPUTime'], self.am_getOption('lowestCPUBoost') ) self.log.verbose( 'CPUTime for TaskQueue %s:' % taskQueueID, taskQueueCPU )
def submitPilotsForTaskQueue(self, taskQueueDict, waitingPilots, pilotsPerPriority ):
6271afc9c4bbb66e2201ad46655c110521589002 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6271afc9c4bbb66e2201ad46655c110521589002/TaskQueueDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 52, 330, 6968, 1290, 2174, 3183, 12, 2890, 16, 1562, 3183, 5014, 16, 7336, 52, 330, 6968, 16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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4879, 52, 330, 6968, 1290, 2174, 3183, 12, 2890, 16, 1562, 3183, 5014, 16, 7336, 52, 330, 6968, 16, 24970, 6968, 2173, 8183, 262, 30, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import profile, pstats
try: import cProfile as profile profile except ImportError: import profile import pstats
def publish_module_profiled(module_name, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr, environ=os.environ, debug=0, request=None, response=None): import profile, pstats global _pstat _plock.acquire() try: if request is not None: path_info=request.get('PATH_INFO') else: path_info=environ.get('PATH_INFO') if path_info[-14:]=='manage_profile': return _pfunc(module_name, stdin=stdin, stdout=stdout, stderr=stderr, environ=environ, debug=debug, request=request, response=response) pobj=profile.Profile() pobj.runcall(pm, module_name, stdin, stdout, stderr, environ, debug, request, response) result=sys._pr_ pobj.create_stats() if _pstat is None: from cStringIO import StringIO stream = StringIO() _pstat = sys._ps_ = pstats.Stats(pobj, stream=stream) else: _pstat.add(pobj) finally: _plock.release() if result is None: try: error=sys.exc_info() file=open(_pfile, 'w') file.write( "See the url " "http://www.python.org/doc/current/lib/module-profile.html" "\n for information on interpreting profiler statistics.\n\n" ) sys.stdout=file _pstat.strip_dirs().sort_stats('cumulative').print_stats(250) _pstat.strip_dirs().sort_stats('time').print_stats(250) file.flush() file.close() except: pass raise error[0], error[1], error[2] return result
7c6f7af213e492374a6b6e0ffb53acf21bb7a155 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/7c6f7af213e492374a6b6e0ffb53acf21bb7a155/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 67, 2978, 67, 5040, 72, 12, 2978, 67, 529, 16, 8801, 33, 9499, 18, 21772, 16, 3909, 33, 9499, 18, 10283, 16, 4514, 33, 9499, 18, 11241, 16, 5473, 33, 538, 18, 28684, 16, 1198, 33, 20, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 775, 30, 1930, 276, 4029, 487, 3042, 3042, 1335, 11308, 30, 1930, 3042, 1930, 293, 5296, 2552, 389, 84, 5642, 389, 84, 739, 18, 1077, 1039, 1435, 775, 30, 309, 590, 353, 486, 599, 30, 589, 67, 1376, 33, 2293, 18, 588, 2668, 4211, 67, 5923, 6134, 469, 30, 589, 67, 1376, 33, 28684, 18, 588, 2668, 4211, 67, 5923, 6134, 309, 589, 67, 1376, 18919, 3461, 26894, 18920, 12633, 67, 5040, 4278, 327, 389, 84, 644, 12, 2978, 67, 529, 16, 8801, 33, 21772, 16, 3909, 33, 10283, 16, 4514, 33, 11241, 16, 5473, 33, 28684, 16, 1198, 33, 4148, 16, 590, 33, 2293, 16, 766, 33, 2740, 13, 293, 2603, 33, 5040, 18, 4029, 1435, 293, 2603, 18, 86, 551, 454, 12, 7755, 16, 1605, 67, 529, 16, 8801, 16, 3909, 16, 4514, 16, 5473, 16, 1198, 16, 590, 16, 766, 13, 563, 33, 9499, 6315, 683, 67, 293, 2603, 18, 2640, 67, 5296, 1435, 309, 389, 84, 5642, 353, 599, 30, 628, 276, 780, 4294, 1930, 15777, 1407, 273, 15777, 1435, 389, 84, 5642, 273, 2589, 6315, 1121, 67, 273, 293, 5296, 18, 4195, 12, 1631, 441, 16, 1407, 33, 3256, 13, 469, 30, 389, 84, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3808, 67, 2978, 67, 5040, 72, 12, 2978, 67, 529, 16, 8801, 33, 9499, 18, 21772, 16, 3909, 33, 9499, 18, 10283, 16, 4514, 33, 9499, 18, 11241, 16, 5473, 33, 538, 18, 28684, 16, 1198, 33, 20, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 775, 30, 1930, 276, 4029, 487, 3042, 3042, 1335, 11308, 30, 1930, 3042, 1930, 293, 5296, 2552, 389, 84, 5642, 389, 84, 739, 18, 1077, 1039, 1435, 775, 30, 309, 590, 353, 486, 599, 30, 589, 67, 1376, 33, 2293, 18, 588, 2668, 4211, 67, 5923, 6134, 469, 30, 589, 67, 1376, 33, 28684, 18, 588, 2668, 4211, 67, 5923, 6134, 309, 589, 67, 1376, 18919, 3461, 26894, 18920, 12633, 67, 2 ]
outl.color=CreateCMYKColor(0, 0, 0, ord(chunk.data[offset+0x38]) /255.0)
outl.color=CreateCMYKColor(0, 0, 0, 1.0 - ord(chunk.data[offset+0x38]) /255.0)
def process_outline(self, chunk, usual): cdr_version=self.cdr_version outl = Outline() outl.outlineIndex='%02X'%ord(chunk.data[0]) + '%02X'%ord(chunk.data[1]) + '%02X'%ord(chunk.data[2]) + '%02X'%ord(chunk.data[3])
955d280f53fe166578f3136fa19c88305fad76c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3123/955d280f53fe166578f3136fa19c88305fad76c7/cdrloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 25134, 12, 2890, 16, 2441, 16, 25669, 4672, 276, 3069, 67, 1589, 33, 2890, 18, 71, 3069, 67, 1589, 596, 80, 273, 2976, 1369, 1435, 596, 80, 18, 25134, 1016, 28713, 3103, 60, 11, 9, 517, 12, 6551, 18, 892, 63,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25134, 12, 2890, 16, 2441, 16, 25669, 4672, 276, 3069, 67, 1589, 33, 2890, 18, 71, 3069, 67, 1589, 596, 80, 273, 2976, 1369, 1435, 596, 80, 18, 25134, 1016, 28713, 3103, 60, 11, 9, 517, 12, 6551, 18, 892, 63, 20, 5717, 397, 1995, 3103, 60, 11, 9, 517, 12, 6551, 18, 892, 63, 21, 5717, 397, 1995, 3103, 60, 11, 9, 517, 12, 6551, 18, 892, 63, 22, 5717, 397, 1995, 3103, 60, 11, 9, 517, 12, 6551, 18, 892, 63, 23, 5717, 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, -100, -100, -100, -100, -100, -100 ]
if line == '\n' or line == '':
if line == '\n' or not line:
def _install_message(self, message): """Write message contents and return (start, stop).""" start = self._file.tell() if isinstance(message, BabylMessage): special_labels = [] labels = [] for label in message.get_labels(): if label in self._special_labels: special_labels.append(label) else: labels.append(label) self._file.write('1') for label in special_labels: self._file.write(', ' + label) self._file.write(',,') for label in labels: self._file.write(' ' + label + ',') self._file.write(os.linesep) else: self._file.write('1,,' + os.linesep) if isinstance(message, email.message.Message): orig_buffer = StringIO.StringIO() orig_generator = email.generator.Generator(orig_buffer, False, 0) orig_generator.flatten(message) orig_buffer.seek(0) while True: line = orig_buffer.readline() self._file.write(line.replace('\n', os.linesep)) if line == '\n' or line == '': break self._file.write('*** EOOH ***' + os.linesep) if isinstance(message, BabylMessage): vis_buffer = StringIO.StringIO() vis_generator = email.generator.Generator(vis_buffer, False, 0) vis_generator.flatten(message.get_visible()) while True: line = vis_buffer.readline() self._file.write(line.replace('\n', os.linesep)) if line == '\n' or line == '': break else: orig_buffer.seek(0) while True: line = orig_buffer.readline() self._file.write(line.replace('\n', os.linesep)) if line == '\n' or line == '': break while True: buffer = orig_buffer.read(4096) # Buffer size is arbitrary. if buffer == '': break self._file.write(buffer.replace('\n', os.linesep)) elif isinstance(message, str): body_start = message.find('\n\n') + 2 if body_start - 2 != -1: self._file.write(message[:body_start].replace('\n', os.linesep)) self._file.write('*** EOOH ***' + os.linesep) self._file.write(message[:body_start].replace('\n', os.linesep)) self._file.write(message[body_start:].replace('\n', os.linesep)) else: self._file.write('*** EOOH ***' + os.linesep + os.linesep) self._file.write(message.replace('\n', os.linesep)) elif hasattr(message, 'readline'): original_pos = message.tell() first_pass = True while True: line = message.readline() self._file.write(line.replace('\n', os.linesep)) if line == '\n' or line == '': self._file.write('*** EOOH ***' + os.linesep) if first_pass: first_pass = False message.seek(original_pos) else: break while True: buffer = message.read(4096) # Buffer size is arbitrary. if buffer == '': break self._file.write(buffer.replace('\n', os.linesep)) else: raise TypeError('Invalid message type: %s' % type(message)) stop = self._file.tell() return (start, stop)
3ae5cf1ce9baf6330ccf73291ebfeaee2c111013 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3ae5cf1ce9baf6330ccf73291ebfeaee2c111013/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 2150, 12, 2890, 16, 883, 4672, 3536, 3067, 883, 2939, 471, 327, 261, 1937, 16, 2132, 13, 12123, 787, 273, 365, 6315, 768, 18, 88, 1165, 1435, 309, 1549, 12, 2150, 16, 605, 24383, 80, 1079, 4672, 4582, 67, 5336, 273, 5378, 3249, 273, 5378, 364, 1433, 316, 883, 18, 588, 67, 5336, 13332, 309, 1433, 316, 365, 6315, 9371, 67, 5336, 30, 4582, 67, 5336, 18, 6923, 12, 1925, 13, 469, 30, 3249, 18, 6923, 12, 1925, 13, 365, 6315, 768, 18, 2626, 2668, 21, 6134, 364, 1433, 316, 4582, 67, 5336, 30, 365, 6315, 768, 18, 2626, 12, 2187, 296, 397, 1433, 13, 365, 6315, 768, 18, 2626, 12, 2187, 16, 6134, 364, 1433, 316, 3249, 30, 365, 6315, 768, 18, 2626, 2668, 296, 397, 1433, 397, 3316, 13, 365, 6315, 768, 18, 2626, 12, 538, 18, 3548, 881, 13, 469, 30, 365, 6315, 768, 18, 2626, 2668, 21, 16, 11189, 397, 1140, 18, 3548, 881, 13, 309, 1549, 12, 2150, 16, 2699, 18, 2150, 18, 1079, 4672, 1647, 67, 4106, 273, 15777, 18, 780, 4294, 1435, 1647, 67, 8812, 273, 2699, 18, 8812, 18, 3908, 12, 4949, 67, 4106, 16, 1083, 16, 374, 13, 1647, 67, 8812, 18, 16940, 12, 2150, 13, 1647, 67, 4106, 18, 16508, 12, 20, 13, 1323, 1053, 30, 980, 273, 1647, 67, 4106, 18, 896, 1369, 1435, 365, 6315, 768, 18, 2626, 12, 1369, 18, 2079, 2668, 64, 82, 2187, 1140, 18, 3548, 881, 3719, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5425, 67, 2150, 12, 2890, 16, 883, 4672, 3536, 3067, 883, 2939, 471, 327, 261, 1937, 16, 2132, 13, 12123, 787, 273, 365, 6315, 768, 18, 88, 1165, 1435, 309, 1549, 12, 2150, 16, 605, 24383, 80, 1079, 4672, 4582, 67, 5336, 273, 5378, 3249, 273, 5378, 364, 1433, 316, 883, 18, 588, 67, 5336, 13332, 309, 1433, 316, 365, 6315, 9371, 67, 5336, 30, 4582, 67, 5336, 18, 6923, 12, 1925, 13, 469, 30, 3249, 18, 6923, 12, 1925, 13, 365, 6315, 768, 18, 2626, 2668, 21, 6134, 364, 1433, 316, 4582, 67, 5336, 30, 365, 6315, 768, 18, 2626, 12, 2187, 296, 397, 1433, 13, 365, 6315, 768, 18, 2626, 12, 2187, 16, 6134, 364, 2 ]
`G`. The columns represent the the conjugacy classes of
`G`. The columns represent the conjugacy classes of
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3)]]) sage: G.order() 12 sage: G.character_table() [ 1 1 1 1] [ 1 1 -zeta3 - 1 zeta3] [ 1 1 zeta3 -zeta3 - 1] [ 3 -1 0 0] sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3)]]) sage: CT = gap(G).CharacterTable() Type ``print gap.eval("Display(%s)"%CT.name())`` to display this nicely. :: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: G.order() 8 sage: G.character_table() [ 1 1 1 1 1] [ 1 -1 -1 1 1] [ 1 -1 1 -1 1] [ 1 1 -1 -1 1] [ 2 0 0 0 -2] sage: CT = gap(G).CharacterTable() Again, type ``print gap.eval("Display(%s)"%CT.name())`` to display this nicely. :: sage: SymmetricGroup(2).character_table() [ 1 -1] [ 1 1] sage: SymmetricGroup(3).character_table() [ 1 -1 1] [ 2 0 -1] [ 1 1 1] sage: SymmetricGroup(5).character_table() [ 1 -1 1 1 -1 -1 1] [ 4 -2 0 1 1 0 -1] [ 5 -1 1 -1 -1 1 0] [ 6 0 -2 0 0 0 1] [ 5 1 1 -1 1 -1 0] [ 4 2 0 1 -1 0 -1] [ 1 1 1 1 1 1 1] sage: list(AlternatingGroup(6).character_table()) [(1, 1, 1, 1, 1, 1, 1), (5, 1, 2, -1, -1, 0, 0), (5, 1, -1, 2, -1, 0, 0), (8, 0, -1, -1, 0, zeta5^3 + zeta5^2 + 1, -zeta5^3 - zeta5^2), (8, 0, -1, -1, 0, -zeta5^3 - zeta5^2, zeta5^3 + zeta5^2 + 1), (9, 1, 0, 0, 1, -1, -1), (10, -2, 1, 1, 0, 0, 0)] Suppose that you have a class function `f(g)` on `G` and you know the values `v_1, ..., v_n` on the conjugacy class elements in ``conjugacy_classes_representatives(G)`` = `[g_1, \ldots, g_n]`. Since the irreducible characters `\rho_1, \ldots, \rho_n` of `G` form an `E`-basis of the space of all class functions (`E` a "sufficiently large" cyclotomic field), such a class function is a linear combination of these basis elements, `f = c_1\rho_1 + \cdots + c_n\rho_n`. To find the coefficients `c_i`, you simply solve the linear system ``character_table_values(G)``\*`[v_1, ..., v_n] = [c_1, ..., c_n]`, where `[v_1, ...,v_n]` = ``character_table_values(G)`` `^{-1}[c_1, ...,c_n]`. AUTHORS: - David Joyner and William Stein (2006-01-04)
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 8338, 1021, 2168, 2406, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 68, 471, 326, 2595, 2406, 326, 3775, 9482, 1118, 5286, 1523, 3949, 316, 326, 9543, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 611, 18, 1019, 1435, 2593, 272, 410, 30, 611, 18, 11560, 67, 2121, 1435, 306, 540, 404, 1850, 404, 1850, 404, 1850, 404, 65, 306, 540, 404, 1850, 404, 300, 94, 1066, 23, 300, 404, 1377, 998, 1066, 23, 65, 306, 540, 404, 1850, 404, 1377, 998, 1066, 23, 300, 94, 1066, 23, 300, 404, 65, 306, 540, 890, 540, 300, 21, 1850, 374, 1850, 374, 65, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 21088, 273, 9300, 12, 43, 2934, 7069, 1388, 1435, 225, 1412, 12176, 1188, 9300, 18, 8622, 2932, 4236, 9275, 87, 2225, 9, 1268, 18, 529, 10756, 10335, 358, 2562, 333, 11562, 2357, 18, 225, 493, 225, 272, 410, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 8338, 1021, 2168, 2406, 326, 10550, 637, 3505, 3318, 434, 1375, 43, 68, 471, 326, 2595, 2406, 326, 3775, 9482, 1118, 5286, 1523, 3949, 316, 326, 9543, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 25887, 5717, 272, 410, 30, 611, 18, 1019, 1435, 2593, 272, 410, 30, 611, 18, 11560, 2 ]
colfuncs[name.lower()] = (self._ambiguous_processor(origname), i, "ambiguous")
colfuncs[origname.lower()] = (self._ambiguous_processor(origname), i, "ambiguous")
def getcol(row): return processor(row[index])
463f73f80dcc3a35d9b4fe114445aa41bc2e933b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/463f73f80dcc3a35d9b4fe114445aa41bc2e933b/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1293, 12, 492, 4672, 327, 6659, 12, 492, 63, 1615, 5717, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 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, 1293, 12, 492, 4672, 327, 6659, 12, 492, 63, 1615, 5717, 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, -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, -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, -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, -100, -100, -100, -100, -100, -100 ]
originalDepth = lfnDict.get('AncestorDepth',1) ancestors = lfnDict.get('Ancestors',[])
originalDepth = lfnDict.get( 'AncestorDepth', 1 ) ancestors = lfnDict.get( 'Ancestors', [] )
def _populateFileAncestors(self,lfns,connection=False): connection = self._getConnection(connection) successful = {} failed = {} for lfn,lfnDict in lfns.items(): originalFileID = lfnDict['FileID'] originalDepth = lfnDict.get('AncestorDepth',1) ancestors = lfnDict.get('Ancestors',[]) if lfn in ancestors: ancestors.remove(lfn) if not ancestors: successful[lfn] = True continue res = self._findFiles(ancestors,connection=connection) if res['Value']['Failed']: failed[lfn] = "Failed to resolve ancestor files" continue ancestorIDs = res['Value']['Successful'] fileIDLFNs = {} toInsert = {} for ancestor in ancestorIDs.keys(): fileIDLFNs[ancestorIDs[ancestor]['FileID']] = ancestor toInsert[ancestorIDs[ancestor]['FileID']] = originalDepth res = self._getFileAncestors(fileIDLFNs.keys()) if not res['OK']: failed[lfn] = "Failed to obtain all ancestors" continue fileIDAncestorDict = res['Value'] for fileID,fileIDDict in fileIDAncestorDict.items(): for ancestorID,relativeDepth in fileIDDict.items(): toInsert[ancestorID] = relativeDepth+originalDepth res = self._insertFileAncestors(originalFileID,toInsert,connection=connection) if not res['OK']: failed[lfn] = "Failed to insert ancestor files" else: successful[lfn] = True return S_OK({'Successful':successful,'Failed':failed})
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19936, 812, 28304, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 2535, 273, 2618, 364, 328, 4293, 16, 80, 4293, 5014, 316, 18594, 2387, 18, 3319, 13332, 2282, 812, 734, 273, 328, 4293, 5014, 3292, 812, 734, 3546, 2282, 6148, 273, 328, 4293, 5014, 18, 588, 12, 296, 15637, 6148, 2187, 404, 262, 14322, 273, 328, 4293, 5014, 18, 588, 12, 296, 28304, 2187, 5378, 262, 309, 328, 4293, 316, 14322, 30, 14322, 18, 4479, 12, 80, 4293, 13, 309, 486, 14322, 30, 6873, 63, 80, 4293, 65, 273, 1053, 1324, 400, 273, 365, 6315, 4720, 2697, 12, 304, 11116, 16, 4071, 33, 4071, 13, 309, 400, 3292, 620, 21712, 2925, 3546, 30, 2535, 63, 80, 4293, 65, 273, 315, 2925, 358, 2245, 9731, 1390, 6, 1324, 9731, 5103, 273, 400, 3292, 620, 21712, 14277, 3546, 585, 734, 9105, 10386, 273, 2618, 358, 4600, 273, 2618, 364, 9731, 316, 9731, 5103, 18, 2452, 13332, 585, 734, 9105, 10386, 63, 28798, 5103, 63, 28798, 23962, 812, 734, 3546, 65, 273, 9731, 358, 4600, 63, 28798, 5103, 63, 28798, 23962, 812, 734, 3546, 65, 273, 2282, 6148, 400, 273, 365, 6315, 29925, 28304, 12, 768, 734, 9105, 10386, 18, 2452, 10756, 309, 486, 400, 3292, 3141, 3546, 30, 2535, 63, 80, 4293, 65, 273, 315, 2925, 358, 7161, 777, 14322, 6, 1324, 585, 734, 15637, 5014, 273, 400, 3292, 620, 3546, 364, 585, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19936, 812, 28304, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 2535, 273, 2618, 364, 328, 4293, 16, 80, 4293, 5014, 316, 18594, 2387, 18, 3319, 13332, 2282, 812, 734, 273, 328, 4293, 5014, 3292, 812, 734, 3546, 2282, 6148, 273, 328, 4293, 5014, 18, 588, 12, 296, 15637, 6148, 2187, 404, 262, 14322, 273, 328, 4293, 5014, 18, 588, 12, 296, 28304, 2187, 5378, 262, 309, 328, 4293, 316, 14322, 30, 14322, 18, 4479, 12, 80, 4293, 13, 309, 486, 14322, 30, 6873, 63, 80, 4293, 65, 273, 1053, 1324, 400, 273, 365, 6315, 4720, 2697, 12, 304, 11116, 16, 4071, 33, 2 ]
hostbuf, _c.NI_MAXHOST, portbuf, _c.NI_MAXSERV, flags)
hostbuf, maxhost, portbuf, _c.size_t(_c.NI_MAXSERV), flags)
def getnameinfo(space, w_sockaddr, flags): """getnameinfo(sockaddr, flags) --> (host, port) Get host and port for a sockaddr.""" w_flowinfo = w_scope_id = space.wrap(0) sockaddr_len = space.int_w(space.len(w_sockaddr)) if sockaddr_len == 2: w_host, w_port = space.unpackiterable(w_sockaddr, 2) elif sockaddr_len == 3: w_host, w_port, w_flowinfo = space.unpackiterable(w_sockaddr, 3) elif sockaddr_len == 4: w_host, w_port, w_flowinfo, w_scope_id = space.unpackiterable(w_sockaddr, 4) else: raise OperationError(space.w_TypeError, space.wrap('argument 1 should be 2-4 items (%d given)' % sockaddr_len)) host = space.str_w(w_host) port = space.int_w(w_port) flowinfo = space.int_w(w_flowinfo) scope_id = space.int_w(w_scope_id) res = _c.addrinfo_ptr() hints = _c.addrinfo() hints.ai_family = _c.AF_UNSPEC hints.ai_socktype = _c.SOCK_DGRAM retval = _c.getaddrinfo(host, str(port), ctypes.pointer(hints), ctypes.pointer(res)) if retval != 0: raise w_get_socketgaierror(space, None, retval) family = res.contents.ai_family if family == _c.AF_INET: if sockaddr_len != 2: if res: _c.freeaddrinfo(res) raise OperationError(space.w_TypeError, space.wrap('argument 1 should be 2 items (%d given)' % sockaddr_len)) elif family == _c.AF_INET6: sin6_ptr = ctypes.cast(res.contents.ai_addr, ctypes.POINTER(_c.sockaddr_in6)) sin6_ptr.contents.sin6_flowinfo = flowinfo sin6_ptr.contents.sin6_scope_id = scope_id hostbuf = ctypes.create_string_buffer(_c.NI_MAXHOST) portbuf = ctypes.create_string_buffer(_c.NI_MAXSERV) error = _c.getnameinfo(res.contents.ai_addr, res.contents.ai_addrlen, hostbuf, _c.NI_MAXHOST, portbuf, _c.NI_MAXSERV, flags) if res: _c.freeaddrinfo(res) if error: raise w_get_socketgaierror(space, None, error) return space.newtuple([space.wrap(hostbuf.value), space.wrap(portbuf.value)])
88948e99d98ca6bfcb16333811cc2a968de45870 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/88948e99d98ca6bfcb16333811cc2a968de45870/interp_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 529, 1376, 12, 2981, 16, 341, 67, 15031, 4793, 16, 2943, 4672, 3536, 588, 529, 1376, 12, 15031, 4793, 16, 2943, 13, 15431, 261, 2564, 16, 1756, 13, 225, 968, 1479, 471, 1756, 364, 279, 7313, 4793, 12123, 341, 67, 2426, 1376, 273, 341, 67, 4887, 67, 350, 273, 3476, 18, 4113, 12, 20, 13, 7313, 4793, 67, 1897, 273, 3476, 18, 474, 67, 91, 12, 2981, 18, 1897, 12, 91, 67, 15031, 4793, 3719, 309, 7313, 4793, 67, 1897, 422, 576, 30, 341, 67, 2564, 16, 341, 67, 655, 273, 3476, 18, 17309, 15364, 12, 91, 67, 15031, 4793, 16, 576, 13, 1327, 7313, 4793, 67, 1897, 422, 890, 30, 341, 67, 2564, 16, 341, 67, 655, 16, 341, 67, 2426, 1376, 273, 3476, 18, 17309, 15364, 12, 91, 67, 15031, 4793, 16, 890, 13, 1327, 7313, 4793, 67, 1897, 422, 1059, 30, 341, 67, 2564, 16, 341, 67, 655, 16, 341, 67, 2426, 1376, 16, 341, 67, 4887, 67, 350, 273, 3476, 18, 17309, 15364, 12, 91, 67, 15031, 4793, 16, 1059, 13, 469, 30, 1002, 4189, 668, 12, 2981, 18, 91, 67, 19030, 16, 3476, 18, 4113, 2668, 3446, 404, 1410, 506, 576, 17, 24, 1516, 6142, 72, 864, 2506, 738, 7313, 4793, 67, 1897, 3719, 1479, 273, 3476, 18, 701, 67, 91, 12, 91, 67, 2564, 13, 1756, 273, 3476, 18, 474, 67, 91, 12, 91, 67, 655, 13, 4693, 1376, 273, 3476, 18, 474, 67, 91, 12, 91, 67, 2426, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 529, 1376, 12, 2981, 16, 341, 67, 15031, 4793, 16, 2943, 4672, 3536, 588, 529, 1376, 12, 15031, 4793, 16, 2943, 13, 15431, 261, 2564, 16, 1756, 13, 225, 968, 1479, 471, 1756, 364, 279, 7313, 4793, 12123, 341, 67, 2426, 1376, 273, 341, 67, 4887, 67, 350, 273, 3476, 18, 4113, 12, 20, 13, 7313, 4793, 67, 1897, 273, 3476, 18, 474, 67, 91, 12, 2981, 18, 1897, 12, 91, 67, 15031, 4793, 3719, 309, 7313, 4793, 67, 1897, 422, 576, 30, 341, 67, 2564, 16, 341, 67, 655, 273, 3476, 18, 17309, 15364, 12, 91, 67, 15031, 4793, 16, 576, 13, 1327, 7313, 4793, 67, 1897, 422, 890, 30, 341, 67, 2564, 16, 341, 67, 2 ]
print 'b', len(tmp)
def load_strokemap_from_file(self, f, translate_x, translate_y): assert not self.strokes brushes = [] while True: t = f.read(1) if t == 'b': length, = struct.unpack('>I', f.read(4)) tmp = f.read(length) brushes.append(zlib.decompress(tmp)) print 'b', len(tmp) elif t == 's': brush_id, length = struct.unpack('>II', f.read(2*4)) stroke = strokemap.StrokeShape() tmp = f.read(length) stroke.init_from_string(tmp, translate_x, translate_y) stroke.brush_string = brushes[brush_id] self.strokes.append(stroke) print 's', len(tmp) elif t == '}': break else: assert False, 'invalid strokemap'
52d49c8b4081c4cd637f92f1af8841571f79b3ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/52d49c8b4081c4cd637f92f1af8841571f79b3ec/layer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 334, 3250, 25248, 67, 2080, 67, 768, 12, 2890, 16, 284, 16, 4204, 67, 92, 16, 4204, 67, 93, 4672, 1815, 486, 365, 18, 334, 3250, 281, 5186, 1218, 281, 273, 5378, 1323, 1053, 30, 268, 273, 284, 18, 896, 12, 21, 13, 309, 268, 422, 296, 70, 4278, 769, 16, 273, 1958, 18, 17309, 2668, 34, 45, 2187, 284, 18, 896, 12, 24, 3719, 1853, 273, 284, 18, 896, 12, 2469, 13, 5186, 1218, 281, 18, 6923, 12, 94, 2941, 18, 323, 14706, 12, 5645, 3719, 1327, 268, 422, 296, 87, 4278, 5186, 1218, 67, 350, 16, 769, 273, 1958, 18, 17309, 2668, 34, 6954, 2187, 284, 18, 896, 12, 22, 14, 24, 3719, 11040, 273, 384, 3250, 25248, 18, 14602, 8500, 1435, 1853, 273, 284, 18, 896, 12, 2469, 13, 11040, 18, 2738, 67, 2080, 67, 1080, 12, 5645, 16, 4204, 67, 92, 16, 4204, 67, 93, 13, 11040, 18, 2848, 1218, 67, 1080, 273, 5186, 1218, 281, 63, 2848, 1218, 67, 350, 65, 365, 18, 334, 3250, 281, 18, 6923, 12, 16181, 13, 1172, 296, 87, 2187, 562, 12, 5645, 13, 1327, 268, 422, 9571, 30, 898, 469, 30, 1815, 1083, 16, 296, 5387, 384, 3250, 25248, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 334, 3250, 25248, 67, 2080, 67, 768, 12, 2890, 16, 284, 16, 4204, 67, 92, 16, 4204, 67, 93, 4672, 1815, 486, 365, 18, 334, 3250, 281, 5186, 1218, 281, 273, 5378, 1323, 1053, 30, 268, 273, 284, 18, 896, 12, 21, 13, 309, 268, 422, 296, 70, 4278, 769, 16, 273, 1958, 18, 17309, 2668, 34, 45, 2187, 284, 18, 896, 12, 24, 3719, 1853, 273, 284, 18, 896, 12, 2469, 13, 5186, 1218, 281, 18, 6923, 12, 94, 2941, 18, 323, 14706, 12, 5645, 3719, 1327, 268, 422, 296, 87, 4278, 5186, 1218, 67, 350, 16, 769, 273, 1958, 18, 17309, 2668, 34, 6954, 2187, 284, 18, 896, 12, 22, 14, 24, 3719, 11040, 2 ]
dest_repo = repository(ui, dest, create=True)
try: dest_repo = repository(ui, dest, create=True) except OSError, inst: if inst.errno == errno.EEXIST: dir_cleanup.close() raise util.Abort(_("destination '%s' already exists") % dest) raise
def force_copy(src, dst): try: util.copyfiles(src, dst) except OSError, inst: if inst.errno != errno.ENOENT: raise
75ba4db3dbc6e6e42055ad13295a0ede358f5b00 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/75ba4db3dbc6e6e42055ad13295a0ede358f5b00/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3530, 12, 4816, 16, 3046, 4672, 775, 30, 1709, 18, 3530, 2354, 12, 4816, 16, 3046, 13, 1335, 10002, 16, 1804, 30, 309, 1804, 18, 19088, 480, 8402, 18, 1157, 51, 2222, 30, 1002, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2944, 67, 3530, 12, 4816, 16, 3046, 4672, 775, 30, 1709, 18, 3530, 2354, 12, 4816, 16, 3046, 13, 1335, 10002, 16, 1804, 30, 309, 1804, 18, 19088, 480, 8402, 18, 1157, 51, 2222, 30, 1002, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100 ]
request.theme.add_msg('<strong>%s</strong><br>%s' % (
request.theme.add_msg('<strong>%s</strong><br>' % (
def send_page(self, **keywords): """ Output the formatted page.
06a4349c3d48a551cc02c2bfe66bcd631ddce69e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/06a4349c3d48a551cc02c2bfe66bcd631ddce69e/Page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 2433, 12, 2890, 16, 2826, 11771, 4672, 3536, 3633, 326, 4955, 1363, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 2433, 12, 2890, 16, 2826, 11771, 4672, 3536, 3633, 326, 4955, 1363, 18, 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, -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, -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, -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, -100, -100, -100 ]
if self.timeout <= 0.0 or self.fd < 0:
if self.timeout <= 0.0 or self.fd == _c.INVALID_SOCKET:
def _select(self, for_writing): """Returns 0 when reading/writing is possible, 1 when timing out and -1 on error.""" if self.timeout <= 0.0 or self.fd < 0: # blocking I/O or no socket. return 0 tv = rffi.make(_c.timeval) rffi.setintfield(tv, 'tv_sec', int(self.timeout)) rffi.setintfield(tv, 'tv_usec', int((self.timeout-int(self.timeout)) * 1000000)) fds = rffi.make(_c.fd_set) rffi.setintfield(fds, 'fd_count', 1) fds.fd_array[0] = rffi.cast(socketfd_type, self.fd) null = lltype.nullptr(fd_set) if for_writing: n = _c.select(self.fd + 1, null, fds, null, tv) else: n = _c.select(self.fd + 1, fds, null, null, tv) lltype.free(fds, flavor='raw') lltype.free(tv, flavor='raw') if n < 0: return -1 if n == 0: return 1 return 0
7d6fe35b18e8a20cd02bce56209ad0aa1f4cf1f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/7d6fe35b18e8a20cd02bce56209ad0aa1f4cf1f0/rsocket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4025, 12, 2890, 16, 364, 67, 14345, 4672, 3536, 1356, 374, 1347, 6453, 19, 14345, 353, 3323, 16, 404, 1347, 15538, 596, 471, 300, 21, 603, 555, 12123, 309, 365, 18, 4538, 1648, 374, 18, 20, 578, 365, 18, 8313, 422, 389, 71, 18, 9347, 67, 25699, 30, 468, 9445, 467, 19, 51, 578, 1158, 2987, 18, 327, 374, 13521, 273, 436, 1403, 77, 18, 6540, 24899, 71, 18, 957, 1125, 13, 436, 1403, 77, 18, 542, 474, 1518, 12, 24161, 16, 296, 24161, 67, 3321, 2187, 509, 12, 2890, 18, 4538, 3719, 436, 1403, 77, 18, 542, 474, 1518, 12, 24161, 16, 296, 24161, 67, 1202, 71, 2187, 509, 12443, 2890, 18, 4538, 17, 474, 12, 2890, 18, 4538, 3719, 380, 15088, 3719, 284, 2377, 273, 436, 1403, 77, 18, 6540, 24899, 71, 18, 8313, 67, 542, 13, 436, 1403, 77, 18, 542, 474, 1518, 12, 74, 2377, 16, 296, 8313, 67, 1883, 2187, 404, 13, 284, 2377, 18, 8313, 67, 1126, 63, 20, 65, 273, 436, 1403, 77, 18, 4155, 12, 7814, 8313, 67, 723, 16, 365, 18, 8313, 13, 446, 273, 6579, 723, 18, 2011, 6723, 12, 8313, 67, 542, 13, 309, 364, 67, 14345, 30, 290, 273, 389, 71, 18, 4025, 12, 2890, 18, 8313, 397, 404, 16, 446, 16, 284, 2377, 16, 446, 16, 13521, 13, 469, 30, 290, 273, 389, 71, 18, 4025, 12, 2890, 18, 8313, 397, 404, 16, 284, 2377, 16, 446, 16, 446, 16, 13521, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4025, 12, 2890, 16, 364, 67, 14345, 4672, 3536, 1356, 374, 1347, 6453, 19, 14345, 353, 3323, 16, 404, 1347, 15538, 596, 471, 300, 21, 603, 555, 12123, 309, 365, 18, 4538, 1648, 374, 18, 20, 578, 365, 18, 8313, 422, 389, 71, 18, 9347, 67, 25699, 30, 468, 9445, 467, 19, 51, 578, 1158, 2987, 18, 327, 374, 13521, 273, 436, 1403, 77, 18, 6540, 24899, 71, 18, 957, 1125, 13, 436, 1403, 77, 18, 542, 474, 1518, 12, 24161, 16, 296, 24161, 67, 3321, 2187, 509, 12, 2890, 18, 4538, 3719, 436, 1403, 77, 18, 542, 474, 1518, 12, 24161, 16, 296, 24161, 67, 1202, 71, 2187, 509, 12443, 2890, 18, 4538, 17, 474, 12, 2 ]
L2 = L
L2 = L[:]
def test_long(self): self.assertEqual(long(314), 314L) self.assertEqual(long(3.14), 3L) self.assertEqual(long(314L), 314L) # Check that conversion from float truncates towards zero self.assertEqual(long(-3.14), -3L) self.assertEqual(long(3.9), 3L) self.assertEqual(long(-3.9), -3L) self.assertEqual(long(3.5), 3L) self.assertEqual(long(-3.5), -3L) self.assertEqual(long("-3"), -3L) if have_unicode: self.assertEqual(long(unicode("-3")), -3L) # Different base: self.assertEqual(long("10",16), 16L) if have_unicode: self.assertEqual(long(unicode("10"),16), 16L) # Check conversions from string (same test set as for int(), and then some) LL = [ ('1' + '0'*20, 10L**20), ('1' + '0'*100, 10L**100) ] L2 = L if have_unicode: L2 += [ (unicode('1') + unicode('0')*20, 10L**20), (unicode('1') + unicode('0')*100, 10L**100), ] for s, v in L2 + LL: for sign in "", "+", "-": for prefix in "", " ", "\t", " \t\t ": ss = prefix + sign + s vv = v if sign == "-" and v is not ValueError: vv = -v try: self.assertEqual(long(ss), long(vv)) except v: pass
8451455586a8a1e8d8beeda491e0c5f1f6bdbbac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8451455586a8a1e8d8beeda491e0c5f1f6bdbbac/test_builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5748, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 5748, 12, 23, 3461, 3631, 890, 3461, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 3461, 3631, 890, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 3461, 48, 3631, 890, 3461, 48, 13, 468, 2073, 716, 4105, 628, 1431, 6956, 815, 23248, 3634, 365, 18, 11231, 5812, 12, 5748, 19236, 23, 18, 3461, 3631, 300, 23, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 29, 3631, 890, 48, 13, 365, 18, 11231, 5812, 12, 5748, 19236, 23, 18, 29, 3631, 300, 23, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 25, 3631, 890, 48, 13, 365, 18, 11231, 5812, 12, 5748, 19236, 23, 18, 25, 3631, 300, 23, 48, 13, 365, 18, 11231, 5812, 12, 5748, 2932, 17, 23, 6, 3631, 300, 23, 48, 13, 309, 1240, 67, 9124, 30, 365, 18, 11231, 5812, 12, 5748, 12, 9124, 2932, 17, 23, 7923, 3631, 300, 23, 48, 13, 468, 21104, 3518, 1026, 30, 365, 18, 11231, 5812, 12, 5748, 2932, 2163, 3113, 2313, 3631, 2872, 48, 13, 309, 1240, 67, 9124, 30, 365, 18, 11231, 5812, 12, 5748, 12, 9124, 2932, 2163, 6, 3631, 2313, 3631, 2872, 48, 13, 468, 2073, 22586, 628, 533, 261, 14307, 1842, 444, 487, 364, 509, 9334, 471, 1508, 2690, 13, 29863, 273, 306, 7707, 21, 11, 397, 296, 20, 11, 14, 3462, 16, 1728, 48, 636, 3462, 3631, 7707, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5748, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 5748, 12, 23, 3461, 3631, 890, 3461, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 3461, 3631, 890, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 3461, 48, 3631, 890, 3461, 48, 13, 468, 2073, 716, 4105, 628, 1431, 6956, 815, 23248, 3634, 365, 18, 11231, 5812, 12, 5748, 19236, 23, 18, 3461, 3631, 300, 23, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 29, 3631, 890, 48, 13, 365, 18, 11231, 5812, 12, 5748, 19236, 23, 18, 29, 3631, 300, 23, 48, 13, 365, 18, 11231, 5812, 12, 5748, 12, 23, 18, 25, 3631, 890, 48, 13, 365, 2 ]
backrefname = column4ID.backref_make_name( klas, k)
backrefname = column4ID.backref_make_name( klas, attr_name)
def fix_one2many_relations( klas, builder, mapcontext): dbg = 'table' in config.debug or 'relation' in config.debug if dbg: print 'make_one2many_table_columns', klas for k,collect_klas in mapcontext.iter_attr_local( klas, attr_base_klas= relation.Collection, dbg=dbg ): child_klas = collect_klas.assoc_klas if isinstance( child_klas, str): try: child_klas = builder.klasi[ child_klas] except KeyError: assert 0, '''undefined relation/association class %(child_klas)r in %(klas)s.%(name)s''' % locals() #one2many rels can be >1 between 2 tables #and many classes can relate to one child klas with relation with same name backref = collect_klas.backref if backref: #if isinstance( backref, dict): backrefname = backref[ 'name'] #else: backrefname = backref else: backrefname = column4ID.backref_make_name( klas, k) collect_klas.backrefname = backrefname fk_column_name = backrefname fk_column = make_table_column4struct_reference( klas, fk_column_name, klas, mapcontext) if dbg: print ' attr:', k, 'child_klas:', repr(child_klas), 'fk_column:', repr(fk_column) child_tbl = builder.tables[ child_klas] child_tbl.append_column( fk_column) class assoc_details: primary_key= True nullable= True relation_attr= k relation._associate( child_klas, klas, assoc_details, fk_column)
ffae4ebf3afc515593a27491b1fb2ace02f918c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/ffae4ebf3afc515593a27491b1fb2ace02f918c3/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 476, 22, 9353, 67, 15018, 12, 417, 9521, 16, 2089, 16, 852, 2472, 4672, 28966, 273, 296, 2121, 11, 316, 642, 18, 4148, 578, 296, 5488, 11, 316, 642, 18, 4148, 309, 28966, 30, 1172, 296, 6540, 67, 476, 22, 9353, 67, 2121, 67, 5112, 2187, 417, 9521, 225, 364, 417, 16, 14676, 67, 79, 9521, 316, 852, 2472, 18, 2165, 67, 1747, 67, 3729, 12, 417, 9521, 16, 1604, 67, 1969, 67, 79, 9521, 33, 2533, 18, 2532, 16, 28966, 33, 1966, 75, 262, 30, 1151, 67, 79, 9521, 273, 3274, 67, 79, 9521, 18, 14578, 67, 79, 9521, 309, 1549, 12, 1151, 67, 79, 9521, 16, 609, 4672, 775, 30, 1151, 67, 79, 9521, 273, 2089, 18, 79, 9521, 77, 63, 1151, 67, 79, 9521, 65, 1335, 4999, 30, 1815, 374, 16, 9163, 5978, 2533, 19, 19358, 667, 8975, 3624, 67, 79, 9521, 13, 86, 316, 8975, 79, 9521, 13, 87, 7866, 12, 529, 13, 87, 26418, 738, 8985, 1435, 468, 476, 22, 9353, 19214, 848, 506, 405, 21, 3086, 576, 4606, 468, 464, 4906, 3318, 848, 1279, 340, 358, 1245, 1151, 417, 9521, 598, 2533, 598, 1967, 508, 225, 1473, 1734, 273, 3274, 67, 79, 9521, 18, 823, 1734, 309, 1473, 1734, 30, 468, 430, 1549, 12, 1473, 1734, 16, 2065, 4672, 1473, 1734, 529, 273, 1473, 1734, 63, 296, 529, 3546, 468, 12107, 30, 1473, 1734, 529, 273, 1473, 1734, 469, 30, 1473, 1734, 529, 273, 1057, 24, 734, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 67, 476, 22, 9353, 67, 15018, 12, 417, 9521, 16, 2089, 16, 852, 2472, 4672, 28966, 273, 296, 2121, 11, 316, 642, 18, 4148, 578, 296, 5488, 11, 316, 642, 18, 4148, 309, 28966, 30, 1172, 296, 6540, 67, 476, 22, 9353, 67, 2121, 67, 5112, 2187, 417, 9521, 225, 364, 417, 16, 14676, 67, 79, 9521, 316, 852, 2472, 18, 2165, 67, 1747, 67, 3729, 12, 417, 9521, 16, 1604, 67, 1969, 67, 79, 9521, 33, 2533, 18, 2532, 16, 28966, 33, 1966, 75, 262, 30, 1151, 67, 79, 9521, 273, 3274, 67, 79, 9521, 18, 14578, 67, 79, 9521, 309, 1549, 12, 1151, 67, 79, 9521, 16, 609, 4672, 775, 30, 1151, 67, 79, 9521, 2 ]
success = success and compile_dir(dir, maxlevels, None, force)
success = success and compile_dir(dir, maxlevels, None, force, quiet=quiet)
def compile_path(skip_curdir=1, maxlevels=0, force=0): """Byte-compile all module on sys.path. Arguments (all optional): skip_curdir: if true, skip current directory (default true) maxlevels: max recursion level (default 0) force: as for compile_dir() (default 0) """ success = 1 for dir in sys.path: if (not dir or dir == os.curdir) and skip_curdir: print 'Skipping current directory' else: success = success and compile_dir(dir, maxlevels, None, force) return success
83a4dbbe38faea87784738af8d69e340d796bf47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/83a4dbbe38faea87784738af8d69e340d796bf47/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 803, 12, 7457, 67, 1397, 1214, 33, 21, 16, 943, 12095, 33, 20, 16, 2944, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 1605, 603, 2589, 18, 803, 18, 225, 13599, 261, 454, 3129, 4672, 225, 2488, 67, 1397, 1214, 30, 309, 638, 16, 2488, 783, 1867, 261, 1886, 638, 13, 943, 12095, 30, 282, 943, 13917, 1801, 261, 1886, 374, 13, 2944, 30, 487, 364, 4074, 67, 1214, 1435, 261, 1886, 374, 13, 225, 3536, 2216, 273, 404, 364, 1577, 316, 2589, 18, 803, 30, 309, 261, 902, 1577, 578, 1577, 422, 1140, 18, 1397, 1214, 13, 471, 2488, 67, 1397, 1214, 30, 1172, 296, 16877, 783, 1867, 11, 469, 30, 2216, 273, 2216, 471, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 16, 599, 16, 2944, 16, 10902, 33, 20380, 13, 327, 2216, 225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 2488, 67, 1397, 1214, 30, 309, 638, 16, 2488, 783, 1867, 261, 1886, 638, 13, 943, 12095, 30, 282, 943, 13917, 1801, 261, 1886, 374, 13, 2944, 30, 487, 364, 4074, 67, 1214, 1435, 261, 1886, 374, 13, 225, 3536, 2216, 273, 404, 364, 1577, 316, 2589, 18, 803, 30, 309, 261, 902, 1577, 578, 1577, 422, 1140, 18, 1397, 1214, 13, 471, 2488, 67, 1397, 1214, 30, 1172, 296, 16877, 783, 1867, 11, 469, 30, 2216, 273, 2216, 471, 2 ]
if kw.get(field): if current_val != True: activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, "True" ) system.activity.append(activity) else: if current_val != False: activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, "False" ) system.activity.append(activity)
new_val = str(kw.get(field) or False) if current_val != new_val: activity = SystemActivity(identity.current.user, 'WEBUI', 'Changed', field, current_val, new_val ) system.activity.append(activity)
def save(self, **kw): if kw.get('id'): try: system = System.by_id(kw['id'],identity.current.user) except InvalidRequestError: flash( _(u"Unable to save %s" % kw['id']) ) redirect("/") system.fqdn = kw['fqdn'] else: if System.query().filter(System.fqdn == kw['fqdn']).count() != 0: flash( _(u"%s already exists!" % kw['fqdn']) ) redirect("/") system = System(fqdn=kw['fqdn'],owner=identity.current.user)
9a849996b6c948aa2626749fdacccc2303455431 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/9a849996b6c948aa2626749fdacccc2303455431/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 2826, 9987, 4672, 309, 5323, 18, 588, 2668, 350, 11, 4672, 775, 30, 2619, 273, 2332, 18, 1637, 67, 350, 12, 9987, 3292, 350, 17337, 10781, 18, 2972, 18, 1355, 13, 1335, 1962, 28963, 30, 9563, 12, 389, 12, 89, 6, 3370, 358, 1923, 738, 87, 6, 738, 5323, 3292, 350, 19486, 262, 3136, 2932, 4898, 13, 2619, 18, 19206, 5176, 273, 5323, 3292, 19206, 5176, 3546, 469, 30, 309, 2332, 18, 2271, 7675, 2188, 12, 3163, 18, 19206, 5176, 422, 5323, 3292, 19206, 5176, 3546, 2934, 1883, 1435, 480, 374, 30, 9563, 12, 389, 12, 89, 28385, 87, 1818, 1704, 4442, 738, 5323, 3292, 19206, 5176, 19486, 262, 3136, 2932, 4898, 13, 2619, 273, 2332, 12, 19206, 5176, 33, 9987, 3292, 19206, 5176, 17337, 8443, 33, 10781, 18, 2972, 18, 1355, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1923, 12, 2890, 16, 2826, 9987, 4672, 309, 5323, 18, 588, 2668, 350, 11, 4672, 775, 30, 2619, 273, 2332, 18, 1637, 67, 350, 12, 9987, 3292, 350, 17337, 10781, 18, 2972, 18, 1355, 13, 1335, 1962, 28963, 30, 9563, 12, 389, 12, 89, 6, 3370, 358, 1923, 738, 87, 6, 738, 5323, 3292, 350, 19486, 262, 3136, 2932, 4898, 13, 2619, 18, 19206, 5176, 273, 5323, 3292, 19206, 5176, 3546, 469, 30, 309, 2332, 18, 2271, 7675, 2188, 12, 3163, 18, 19206, 5176, 422, 5323, 3292, 19206, 5176, 3546, 2934, 1883, 1435, 480, 374, 30, 9563, 12, 389, 12, 89, 28385, 87, 1818, 1704, 4442, 738, 5323, 3292, 19206, 5176, 19486, 262, 3136, 2932, 4898, 13, 2619, 2 ]
charset = 'CHARSET ' + charset typ, dat = apply(self._simple_command, (name, charset) + criteria)
typ, dat = apply(self._simple_command, (name, 'CHARSET', charset) + criteria) else: typ, dat = apply(self._simple_command, (name,) + criteria)
def search(self, charset, *criteria): """Search mailbox for matching messages.
e214b2c6633ccc3350e1aa71f3b25bdfc09a38d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e214b2c6633ccc3350e1aa71f3b25bdf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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1623, 12, 2890, 16, 4856, 16, 380, 9714, 4672, 3536, 2979, 14187, 364, 3607, 2743, 18, 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, -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, -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, -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, -100, -100 ]
class EXTCREATEFONTINDIRECTW(EMR_UNKNOWN):
class _EXTCREATEFONTINDIRECTW(_EMR_UNKNOWN):
def __init__(self,bounds=(0,0,0,0)): EMR_UNKNOWN.__init__(self) self.setBounds(bounds)
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10576, 28657, 20, 16, 20, 16, 20, 16, 20, 3719, 30, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 5694, 12, 10576, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2738, 972, 12, 2890, 16, 10576, 28657, 20, 16, 20, 16, 20, 16, 20, 3719, 30, 7141, 54, 67, 14737, 16186, 2738, 972, 12, 2890, 13, 365, 18, 542, 5694, 12, 10576, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (total-1)/items_per_page * page != 0:
if (total-1)/(items_per_page * page) != 0:
def search_in_author(request, lang, tag, response_type, items_per_page, page, start_index, main_title): ''' search only by authors''' tags = Tag.objects.all().order_by("name") langs = available_languages() author = request.GET['author'] if not author: return no_results(request, response_type, main_title) main_title['author'] = author #TODO language in author_search authors = SEARCH_ENGINE.author_search(author=author, lang=lang, tag=tag, max_length=10) if not authors: return no_results(request, response_type, main_title, authors.suggestion) total = len(authors) next = None if (total-1)/items_per_page * page != 0: next = page+1 if response_type == "atom": return render_response(request, 'book/opds/authors_search_response.xml', {'authors': authors[start_index:start_index+items_per_page], 'title': main_title, 'curr': page, 'next':next, 'author': author, 'items_per_page':items_per_page, 'total':total }) if response_type == "xhtml": return render_response(request, 'book/xhtml/authors_search_response.xml', {'authors': authors, 'author': author, 'title':main_title, 'items_per_page':items_per_page, 'tags': tags, 'langs':langs, 'suggestions':authors.suggestion}, context_instance=RequestContext(request))
8262e603b5f1869c1f8573176613bbfab195b4b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4508/8262e603b5f1869c1f8573176613bbfab195b4b6/search_views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 267, 67, 4161, 12, 2293, 16, 3303, 16, 1047, 16, 766, 67, 723, 16, 1516, 67, 457, 67, 2433, 16, 1363, 16, 787, 67, 1615, 16, 2774, 67, 2649, 4672, 9163, 1623, 1338, 635, 14494, 26418, 2342, 273, 4034, 18, 6911, 18, 454, 7675, 1019, 67, 1637, 2932, 529, 7923, 26467, 273, 2319, 67, 14045, 1435, 2869, 273, 590, 18, 3264, 3292, 4161, 3546, 225, 309, 486, 2869, 30, 327, 1158, 67, 4717, 12, 2293, 16, 766, 67, 723, 16, 2774, 67, 2649, 13, 225, 2774, 67, 2649, 3292, 4161, 3546, 273, 2869, 225, 468, 6241, 2653, 316, 2869, 67, 3072, 14494, 273, 24053, 67, 28980, 18, 4161, 67, 3072, 12, 4161, 33, 4161, 16, 3303, 33, 4936, 16, 1047, 33, 2692, 16, 943, 67, 2469, 33, 2163, 13, 309, 486, 14494, 30, 327, 1158, 67, 4717, 12, 2293, 16, 766, 67, 723, 16, 2774, 67, 2649, 16, 14494, 18, 87, 21166, 13, 225, 2078, 273, 562, 12, 19368, 13, 1024, 273, 599, 309, 261, 4963, 17, 21, 13176, 12, 3319, 67, 457, 67, 2433, 380, 1363, 13, 480, 374, 30, 1024, 273, 1363, 15, 21, 309, 766, 67, 723, 422, 315, 7466, 6877, 327, 1743, 67, 2740, 12, 2293, 16, 296, 3618, 19, 556, 2377, 19, 19368, 67, 3072, 67, 2740, 18, 2902, 2187, 13666, 19368, 4278, 14494, 63, 1937, 67, 1615, 30, 1937, 67, 1615, 15, 3319, 67, 457, 67, 2433, 6487, 296, 2649, 4278, 2774, 67, 2649, 16, 225, 296, 17016, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 67, 267, 67, 4161, 12, 2293, 16, 3303, 16, 1047, 16, 766, 67, 723, 16, 1516, 67, 457, 67, 2433, 16, 1363, 16, 787, 67, 1615, 16, 2774, 67, 2649, 4672, 9163, 1623, 1338, 635, 14494, 26418, 2342, 273, 4034, 18, 6911, 18, 454, 7675, 1019, 67, 1637, 2932, 529, 7923, 26467, 273, 2319, 67, 14045, 1435, 2869, 273, 590, 18, 3264, 3292, 4161, 3546, 225, 309, 486, 2869, 30, 327, 1158, 67, 4717, 12, 2293, 16, 766, 67, 723, 16, 2774, 67, 2649, 13, 225, 2774, 67, 2649, 3292, 4161, 3546, 273, 2869, 225, 468, 6241, 2653, 316, 2869, 67, 3072, 14494, 273, 24053, 67, 28980, 18, 4161, 67, 3072, 12, 4161, 33, 4161, 16, 3303, 2 ]
elif self.displayHint and self.__octetString.isSuperTypeOf(self):
elif self.displayHint and self.__octetString.isSuperTypeOf(value):
def prettyOut(self, value): # override asn1 type method """Implements DISPLAY-HINT evaluation""" if self.displayHint and self.__integer.isSuperTypeOf(self): t, f = apply(lambda t, f=0: (t, f), split(self.displayHint, '-')) if t == 'x': return '0x%x' % value elif t == 'd': try: return '%.*f' % (int(f), float(value)/pow(10, int(f))) except StandardError, why: raise error.SmiError( 'float num evaluation error: %s' % why ) elif t == 'o': return '0%o' % value elif t == 'b': v = value; r = ['B'] while v: r.insert(0, '%d' % (v&0x01)) v = v>>1 return join(r, '') else: raise error.SmiError( 'Unsupported numeric type spec: %s' % t ) elif self.displayHint and self.__octetString.isSuperTypeOf(self): r = '' v = str(self) d = self.displayHint while v and d: # 1 if d[0] == '*': repeatIndicator = repeatCount = int(v[0]) d = d[1:]; v = v[1:] else: repeatCount = 1; repeatIndicator = None # 2 octetLength = '' while d and d[0] in digits: octetLength = octetLength + d[0] d = d[1:] try: octetLength = int(octetLength) except StandardError, why: raise error.SmiError( 'Bad octet length: %s' % octetLength ) if not d: raise error.SmiError( 'Short octet length: %s' % self.displayHint ) # 3 displayFormat = d[0] d = d[1:]
6e0ae426aa8f975a3b82a43b5a44ff5a4f9bf178 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/6e0ae426aa8f975a3b82a43b5a44ff5a4f9bf178/SNMPv2-TC.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 1182, 12, 2890, 16, 460, 4672, 225, 468, 3849, 12211, 21, 618, 707, 3536, 17516, 25214, 17, 44, 3217, 9873, 8395, 309, 365, 18, 5417, 7002, 471, 365, 16186, 7745, 18, 291, 8051, 559, 951, 12, 2890, 4672, 268, 16, 284, 273, 2230, 12, 14661, 268, 16, 284, 33, 20, 30, 261, 88, 16, 284, 3631, 1416, 12, 2890, 18, 5417, 7002, 16, 4014, 3719, 309, 268, 422, 296, 92, 4278, 327, 296, 20, 92, 9, 92, 11, 738, 460, 1327, 268, 422, 296, 72, 4278, 775, 30, 327, 1995, 4509, 74, 11, 738, 261, 474, 12, 74, 3631, 1431, 12, 1132, 13176, 23509, 12, 2163, 16, 509, 12, 74, 20349, 1335, 31160, 16, 11598, 30, 1002, 555, 18, 55, 9197, 668, 12, 296, 5659, 818, 9873, 555, 30, 738, 87, 11, 738, 11598, 262, 1327, 268, 422, 296, 83, 4278, 327, 296, 20, 9, 83, 11, 738, 460, 1327, 268, 422, 296, 70, 4278, 331, 273, 460, 31, 436, 273, 10228, 38, 3546, 1323, 331, 30, 436, 18, 6387, 12, 20, 16, 1995, 72, 11, 738, 261, 90, 10, 20, 92, 1611, 3719, 331, 273, 331, 9778, 21, 327, 1233, 12, 86, 16, 28707, 469, 30, 1002, 555, 18, 55, 9197, 668, 12, 296, 8544, 6389, 618, 857, 30, 738, 87, 11, 738, 268, 262, 1327, 365, 18, 5417, 7002, 471, 365, 16186, 17909, 780, 18, 291, 8051, 559, 951, 12, 1132, 4672, 436, 273, 875, 331, 273, 609, 12, 2890, 13, 302, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7517, 1182, 12, 2890, 16, 460, 4672, 225, 468, 3849, 12211, 21, 618, 707, 3536, 17516, 25214, 17, 44, 3217, 9873, 8395, 309, 365, 18, 5417, 7002, 471, 365, 16186, 7745, 18, 291, 8051, 559, 951, 12, 2890, 4672, 268, 16, 284, 273, 2230, 12, 14661, 268, 16, 284, 33, 20, 30, 261, 88, 16, 284, 3631, 1416, 12, 2890, 18, 5417, 7002, 16, 4014, 3719, 309, 268, 422, 296, 92, 4278, 327, 296, 20, 92, 9, 92, 11, 738, 460, 1327, 268, 422, 296, 72, 4278, 775, 30, 327, 1995, 4509, 74, 11, 738, 261, 474, 12, 74, 3631, 1431, 12, 1132, 13176, 23509, 12, 2163, 16, 509, 12, 74, 20349, 1335, 31160, 16, 11598, 30, 1002, 2 ]
in and be registered by your system administrator for \ this kind of task. If you have a login, use the link \
in and be authorized for this kind of task. If you have a \ login, use the link \
def please_login(req, journal_name, ln="en", title="", message="", backlink=""): """ """ _ = gettext_set_language(ln) if title == "": title_out = _("Please login to perform this action.") else: title_out = title if message == "": message_out = _("In order to publish webjournal issues you must be logged \ in and be registered by your system administrator for \ this kind of task. If you have a login, use the link \ below to login.") else: message_out = message if backlink == "": backlink_out = "%s/journal/issue_control?name=%s" % (weburl, journal_name) else: backlink_out = backlink title_msg = _("We need you to login") body_out = '''<div style="text-align: center;"> <fieldset style="width:400px; margin-left: auto; margin-right: auto;background: url('%s/img/blue_gradient.gif') top left repeat-x;"> <legend style="color:#a70509;background-color:#fff;"><i>%s</i></legend> <p style="text-align:center;">%s</p> <br/> <p><a href="%s/youraccount/login?referer=%s">Login</a></p> <br/> <div style="text-align:right;">Mail<a href="mailto:%s"> the Administrator.</a></div> </fieldset> </div> ''' % (weburl, title_msg, message_out, weburl, backlink_out, adminemail) return page(title = title_out, body = body_out, description = "", keywords = "", language = ln, req = req)
95302ea88121546ed68c8b38bb6cd6cf4b324cd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/95302ea88121546ed68c8b38bb6cd6cf4b324cd0/webjournal_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9582, 67, 5819, 12, 3658, 16, 13001, 67, 529, 16, 7211, 1546, 275, 3113, 2077, 1546, 3113, 883, 1546, 3113, 1473, 1232, 1546, 6, 4672, 3536, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 309, 2077, 422, 1408, 30, 2077, 67, 659, 273, 389, 2932, 8496, 3925, 358, 3073, 333, 1301, 1199, 13, 469, 30, 2077, 67, 659, 273, 2077, 309, 883, 422, 1408, 30, 883, 67, 659, 273, 389, 2932, 382, 1353, 358, 3808, 732, 441, 7116, 8296, 1846, 1297, 506, 7545, 521, 316, 471, 506, 10799, 364, 333, 3846, 434, 1562, 18, 971, 1846, 1240, 279, 521, 3925, 16, 999, 326, 1692, 521, 5712, 358, 3925, 1199, 13, 469, 30, 883, 67, 659, 273, 883, 225, 309, 1473, 1232, 422, 1408, 30, 1473, 1232, 67, 659, 273, 2213, 87, 19, 22644, 19, 13882, 67, 7098, 35, 529, 5095, 87, 6, 738, 261, 4875, 718, 16, 13001, 67, 529, 13, 469, 30, 1473, 1232, 67, 659, 273, 1473, 1232, 225, 2077, 67, 3576, 273, 389, 2932, 3218, 1608, 1846, 358, 3925, 7923, 1417, 67, 659, 273, 9163, 32, 2892, 2154, 1546, 955, 17, 7989, 30, 4617, 4868, 34, 411, 23397, 2154, 1546, 2819, 30, 16010, 4430, 31, 7333, 17, 4482, 30, 3656, 31, 7333, 17, 4083, 30, 3656, 31, 9342, 30, 880, 29909, 87, 19, 6081, 19, 14081, 67, 20219, 18, 13905, 6134, 1760, 2002, 7666, 17, 92, 4868, 34, 411, 16292, 2154, 1546, 3266, 27363, 69, 7301, 5995, 31, 9342, 17, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9582, 67, 5819, 12, 3658, 16, 13001, 67, 529, 16, 7211, 1546, 275, 3113, 2077, 1546, 3113, 883, 1546, 3113, 1473, 1232, 1546, 6, 4672, 3536, 3536, 389, 273, 24972, 67, 542, 67, 4923, 12, 2370, 13, 309, 2077, 422, 1408, 30, 2077, 67, 659, 273, 389, 2932, 8496, 3925, 358, 3073, 333, 1301, 1199, 13, 469, 30, 2077, 67, 659, 273, 2077, 309, 883, 422, 1408, 30, 883, 67, 659, 273, 389, 2932, 382, 1353, 358, 3808, 732, 441, 7116, 8296, 1846, 1297, 506, 7545, 521, 316, 471, 506, 10799, 364, 333, 3846, 434, 1562, 18, 971, 1846, 1240, 279, 521, 3925, 16, 999, 326, 1692, 521, 5712, 358, 3925, 1199, 13, 469, 30, 883, 67, 659, 2 ]
percent = taskcount*100./total_tasks
if total_tasks: percent = taskcount*100./total_tasks else: percent = 0
def stats_processing(request): """ Returns stats about processings """ total_tasks = Processing_task.objects.all().count() kinds = Processing_kind.objects.all().order_by('name') tasks_per_kind = [] for k in kinds: taskcount = Processing_task.objects.filter(kind = k).count() percent = taskcount*100./total_tasks tasks_per_kind.append({'kind': str(k.name), 'count': int(taskcount), 'percent': percent}) failed_tasks = Processing_task.objects.filter(success = 0).count() data = { 'tasksTotal' : int(total_tasks), 'failedTasks' : int(failed_tasks), 'tasksPerKind' : tasks_per_kind, } return HttpResponse(str({'info': data}), mimetype = 'text/plain')
ba7bf8d363e4769fb521f2cb22cf10a9cccf6214 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/ba7bf8d363e4769fb521f2cb22cf10a9cccf6214/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3177, 67, 10632, 12, 2293, 4672, 3536, 2860, 3177, 2973, 1207, 899, 3536, 225, 2078, 67, 9416, 273, 19652, 67, 4146, 18, 6911, 18, 454, 7675, 1883, 1435, 21961, 273, 19652, 67, 9224, 18, 6911, 18, 454, 7675, 1019, 67, 1637, 2668, 529, 6134, 4592, 67, 457, 67, 9224, 273, 5378, 364, 417, 316, 21961, 30, 1562, 1883, 273, 19652, 67, 4146, 18, 6911, 18, 2188, 12, 9224, 273, 417, 2934, 1883, 1435, 309, 2078, 67, 9416, 30, 5551, 273, 1562, 1883, 14, 6625, 18, 19, 4963, 67, 9416, 469, 30, 5551, 273, 374, 4592, 67, 457, 67, 9224, 18, 6923, 12590, 11, 9224, 4278, 609, 12, 79, 18, 529, 3631, 296, 1883, 4278, 509, 12, 4146, 1883, 3631, 296, 8849, 4278, 5551, 6792, 225, 2535, 67, 9416, 273, 19652, 67, 4146, 18, 6911, 18, 2188, 12, 4768, 273, 374, 2934, 1883, 1435, 225, 501, 273, 288, 296, 9416, 5269, 11, 225, 202, 30, 509, 12, 4963, 67, 9416, 3631, 296, 7307, 6685, 11, 202, 30, 509, 12, 7307, 67, 9416, 3631, 296, 9416, 2173, 5677, 11, 225, 202, 30, 4592, 67, 457, 67, 9224, 16, 289, 225, 327, 9476, 12, 701, 12590, 11, 1376, 4278, 501, 97, 3631, 12595, 273, 296, 955, 19, 7446, 6134, 225, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3177, 67, 10632, 12, 2293, 4672, 3536, 2860, 3177, 2973, 1207, 899, 3536, 225, 2078, 67, 9416, 273, 19652, 67, 4146, 18, 6911, 18, 454, 7675, 1883, 1435, 21961, 273, 19652, 67, 9224, 18, 6911, 18, 454, 7675, 1019, 67, 1637, 2668, 529, 6134, 4592, 67, 457, 67, 9224, 273, 5378, 364, 417, 316, 21961, 30, 1562, 1883, 273, 19652, 67, 4146, 18, 6911, 18, 2188, 12, 9224, 273, 417, 2934, 1883, 1435, 309, 2078, 67, 9416, 30, 5551, 273, 1562, 1883, 14, 6625, 18, 19, 4963, 67, 9416, 469, 30, 5551, 273, 374, 4592, 67, 457, 67, 9224, 18, 6923, 12590, 11, 9224, 4278, 609, 12, 79, 18, 529, 3631, 296, 1883, 4278, 509, 12, 4146, 1883, 2 ]