rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
return translation_directory.child_stores.get(name=pootle_file.store.name)
try: return translation_directory.child_stores.get(name=pootle_file.store.name) except Store.DoesNotExist: return None except Directory.DoesNotExist: return None
def get_translated_store(target_language, pootle_file): translation_directory = get_translated_directory(target_language.code, Directory.objects.root, pootle_file.store.parent) return translation_directory.child_stores.get(name=pootle_file.store.name)
03a8fd8b62f5ccd8b4d8cd047939d704860a0ed8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/03a8fd8b62f5ccd8b4d8cd047939d704860a0ed8/translate_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22899, 67, 2233, 12, 3299, 67, 4923, 16, 293, 1632, 298, 67, 768, 4672, 4794, 67, 5149, 273, 336, 67, 22899, 67, 5149, 12, 3299, 67, 4923, 18, 710, 16, 8930, 18, 6911, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22899, 67, 2233, 12, 3299, 67, 4923, 16, 293, 1632, 298, 67, 768, 4672, 4794, 67, 5149, 273, 336, 67, 22899, 67, 5149, 12, 3299, 67, 4923, 18, 710, 16, 8930, 18, 6911, 18, ...
url, local_fragment = url_pair self.name_table[url] = page if local_fragment and local_fragment not in page.getnames(): self.setbad(url_pair, ("Missing name anchor `%s'" % local_fragment)) for info in page.getlinkinfos():
self.name_table[url] = page if local_fragment and local_fragment not in page.getnames(): self.setbad(url_pair, ("Missing name anchor `%s'" % local_fragment)) for info in page.getlinkinfos():
def dopage(self, url_pair):
a870cf128cdb4a76dc17c103820d903325fd04fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a870cf128cdb4a76dc17c103820d903325fd04fb/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 556, 410, 12, 2890, 16, 880, 67, 6017, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 556, 410, 12, 2890, 16, 880, 67, 6017, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
raise NotImplementedError
return MS_RING_ON & win32file.GetCommModemStatus(self.hComPort) != 0
def getRI(self): """read terminal status line""" if not self.hComPort: raise portNotOpenError raise NotImplementedError
17f177f41de7831d552b3ef3ad6d0ca76e532530 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/17f177f41de7831d552b3ef3ad6d0ca76e532530/serialwin32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2259, 12, 2890, 4672, 3536, 896, 8651, 1267, 980, 8395, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 1002, 11206, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2259, 12, 2890, 4672, 3536, 896, 8651, 1267, 980, 8395, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 1002, 11206, 2, -100, -100, -100, -100, -100, -100, -100, ...
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.img_in_list_next, "ss")
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.goto_next_image, "ss")
def img_in_list_last(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass s...
80bd8b120d791a7c2ba16ac790e82ce97ab073e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/80bd8b120d791a7c2ba16ac790e82ce97ab073e3/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, ...
"in self._config OR in self. Skipping."
"in self._config OR in self. Skipping." % (vtkObjName,)
def configToLogic(self): # go through at least the attributes in self._vtkObjectNames
36947ad2c49585ff2707cf25b2cd0d3bc0a502cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/36947ad2c49585ff2707cf25b2cd0d3bc0a502cf/moduleMixins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 774, 20556, 12, 2890, 4672, 468, 1960, 3059, 622, 4520, 326, 1677, 316, 365, 6315, 11734, 79, 921, 1557, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 642, 774, 20556, 12, 2890, 4672, 468, 1960, 3059, 622, 4520, 326, 1677, 316, 365, 6315, 11734, 79, 921, 1557, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return S_ERROR( "Can't open file %s for writing: %s" % ( fileName, str(e) ) )
return S_ERROR( "Can't open file %s for writing: %s" % ( fileName, str( e ) ) )
def getPlotToFile( self, plotName, fileName ): """ Get the prefabricated plot from the service and store it in a file """ transferClient = self.__getTransferClient() try: destFile = file( fileName, "wb" ) except Exception, e: return S_ERROR( "Can't open file %s for writing: %s" % ( fileName, str(e) ) ) retVal = transfe...
b29a492313d58334c8d949840590cb63407c88cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b29a492313d58334c8d949840590cb63407c88cf/PlottingClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9774, 352, 15450, 12, 365, 16, 3207, 461, 16, 3968, 262, 30, 3536, 968, 326, 11307, 12159, 690, 3207, 628, 326, 1156, 471, 1707, 518, 316, 279, 585, 3536, 7412, 1227, 273, 365, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9774, 352, 15450, 12, 365, 16, 3207, 461, 16, 3968, 262, 30, 3536, 968, 326, 11307, 12159, 690, 3207, 628, 326, 1156, 471, 1707, 518, 316, 279, 585, 3536, 7412, 1227, 273, 365, 16186, ...
struct_elem=[array(E) for E in struct_elem]
struct_elem=[numpy.array(E) for E in struct_elem]
def mmthin(binimg): """ skel = mmthin(binimg) image transformation by thinning rewrite the mmthin function in the morphological toolbox This code is written by yenixsa and Sam in Summer 2004 Last updated on 12/3/2005 Ported to Python by LPC on Feb 2008 """ binimg=binimg.copy() degrees = 45; num_elem = abs(360//degree...
bac0f315ca4895d299b4bea345ca939303156ade /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/bac0f315ca4895d299b4bea345ca939303156ade/mmthin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9740, 451, 267, 12, 4757, 6081, 4672, 3536, 4343, 292, 273, 9740, 451, 267, 12, 4757, 6081, 13, 1316, 8620, 635, 21936, 2093, 225, 10738, 326, 9740, 451, 267, 445, 316, 326, 14354, 18224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9740, 451, 267, 12, 4757, 6081, 4672, 3536, 4343, 292, 273, 9740, 451, 267, 12, 4757, 6081, 13, 1316, 8620, 635, 21936, 2093, 225, 10738, 326, 9740, 451, 267, 445, 316, 326, 14354, 18224...
self.context.append('\n')
def visit_title(self, node): """Only 6 section levels are supported by HTML.""" if isinstance(node.parent, nodes.topic): HTMLTranslator.visit_title(self, node) elif self.section_level == 0: # document title title = node.astext() self.headers['title'] = self.encode(title) self.context.append('\n') else: HTMLTranslator.v...
3b251e0bafb7b7d4e1b7561db73779fca6622248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3b251e0bafb7b7d4e1b7561db73779fca6622248/hthtml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 3536, 3386, 1666, 2442, 7575, 854, 3260, 635, 3982, 12123, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 10476, 4672, 3982, 12233, 18, 11658, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 3536, 3386, 1666, 2442, 7575, 854, 3260, 635, 3982, 12123, 309, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 10476, 4672, 3982, 12233, 18, 11658, 67, ...
ts = title_sort(book.title)
ts = title_sort(title)
def update_text_record(self, record, book, path, bl_index): timestamp = os.path.getctime(path) date = strftime(timestamp) if date != record.get('date', None): if DEBUG: prints('Changing date of', path, 'from', record.get('date', ''), 'to', date) prints('\tctime', strftime(os.path.getctime(path))) prints('\tmtime', strf...
59d2b5fb68a48b50f7ac3aa053478fe6c59d8980 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/59d2b5fb68a48b50f7ac3aa053478fe6c59d8980/sony_cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 955, 67, 3366, 12, 2890, 16, 1409, 16, 6978, 16, 589, 16, 2811, 67, 1615, 4672, 2858, 273, 1140, 18, 803, 18, 588, 21261, 12, 803, 13, 1509, 273, 10405, 12, 5508, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 955, 67, 3366, 12, 2890, 16, 1409, 16, 6978, 16, 589, 16, 2811, 67, 1615, 4672, 2858, 273, 1140, 18, 803, 18, 588, 21261, 12, 803, 13, 1509, 273, 10405, 12, 5508, 13, 309, ...
if len(fields) > 23: i = 23
if len(fields) > 21: i = 21
def __init__(self, rawline):
e16768b884806edd1066b8f51e8ea92f55f7bbc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/e16768b884806edd1066b8f51e8ea92f55f7bbc6/proc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1831, 1369, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1831, 1369, 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...
test_str = "%s: %s(complex(%r, %r))" % (id, fn, ar, ai) self.fail('ValueError not raised in test %s' % test_str)
self.fail('ValueError not raised in test ' '{}: {}(complex({!r}, {!r}))'.format(id, fn, ar, ai))
def polar_complex(z): """Wrapped version of polar that returns a complex number instead of two floats.""" return complex(*polar(z))
603ae9e371fee4e2f61375cd9738559acacae987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/603ae9e371fee4e2f61375cd9738559acacae987/test_cmath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24244, 67, 14259, 12, 94, 4672, 3536, 17665, 1177, 434, 24244, 716, 1135, 279, 7233, 1300, 3560, 434, 2795, 19172, 12123, 327, 7233, 30857, 3915, 297, 12, 94, 3719, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24244, 67, 14259, 12, 94, 4672, 3536, 17665, 1177, 434, 24244, 716, 1135, 279, 7233, 1300, 3560, 434, 2795, 19172, 12123, 327, 7233, 30857, 3915, 297, 12, 94, 3719, 2, -100, -100, -100, ...
for path in ctx.paths:
for path in ctx.brmctx.paths:
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 984, 14077, 7173, 12, 2890, 4672, 938, 273, 365, 18, 2284, 1103, 273, 938, 18, 9177, 18, 2848, 81, 67, 2472, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 866, 984, 14077, 7173, 12, 2890, 4672, 938, 273, 365, 18, 2284, 1103, 273, 938, 18, 9177, 18, 2848, 81, 67, 2472, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
0.20787954
0.20787
def __pow__(self, right): """ EXAMPLES: sage: C, i = ComplexField(20).objgen() sage: a = i^2; a -1.0000000 sage: a.parent() Complex Field with 20 bits of precision sage: a = (1+i)^i; a 0.42882919 + 0.15487170*I sage: (1+i)^(1+i) 0.27395725 + 0.58370113*I sage: a.parent() Complex Field with 20 bits of precision sage: i^...
293427b47ee2bb564117092226099ed44acd171f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/293427b47ee2bb564117092226099ed44acd171f/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
def copytree(src, dst, symlinks=0):
def copytree(src, dst, symlinks=False):
def copytree(src, dst, symlinks=0): """Recursively copy a directory tree using copy2(). The destination directory must not already exist. Error are reported to standard output. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, th...
a4c93b68f164e6e3db881e9af5f0fdc9153680d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4c93b68f164e6e3db881e9af5f0fdc9153680d4/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 1068, 854, 14010, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 3413, 12, 4816, 16, 3046, 16, 23146, 33, 8381, 4672, 3536, 12474, 1610, 279, 1867, 2151, 1450, 1610, 22, 7675, 225, 1021, 2929, 1867, 1297, 486, 1818, 1005, 18, 1068, 854, 14010, 3...
def forward(self,pt): return forward_(pt,self) def inverse(self,pt): return inverse_(pt,self)
def forward(self,obj): return forward_(obj,self) def inverse(self,obj): return inverse_(obj,self)
def forward(self,pt): return forward_(pt,self)
8e071f84c7a2ee94a5ab6b4f883f8bed35184611 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12100/8e071f84c7a2ee94a5ab6b4f883f8bed35184611/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5104, 12, 2890, 16, 337, 4672, 327, 5104, 67, 12, 337, 16, 2890, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5104, 12, 2890, 16, 337, 4672, 327, 5104, 67, 12, 337, 16, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def getlineno(self): return self.lineno def push(self, token): self.tokens.insert(0, token); def debug(self): print "Last token: ", self.last print "Token queue: ", self.tokens print "Line %d end: " % (self.lineno), self.line def token(self): while self.tokens == []: if self.line == "": line = self.getline() else: l...
def getlineno(self): return self.lineno def push(self, token): self.tokens.insert(0, token); def debug(self): print "Last token: ", self.last print "Token queue: ", self.tokens print "Line %d end: " % (self.lineno), self.line def token(self): while self.tokens == []: if self.line == "": line = self.getline() else: l...
def getlineno(self): return self.lineno
c7d1398e49a7858195b4b8e0b9832ded1fb9f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3857/c7d1398e49a7858195b4b8e0b9832ded1fb9f169/apibuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17782, 12, 2890, 4672, 327, 365, 18, 17782, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17782, 12, 2890, 4672, 327, 365, 18, 17782, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def extract_extension_options(field_list, option_spec):
def extract_extension_options(field_list, options_spec):
def extract_extension_options(field_list, option_spec): """ Return a dictionary mapping extension option names to converted values. :Parameters: - `field_list`: A flat field list without field arguments, where each field body consists of a single paragraph only. - `option_spec`: Dictionary mapping known option names t...
1e1bc2cab3450d92db1d8ce1d5d0a2b79a92af08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/1e1bc2cab3450d92db1d8ce1d5d0a2b79a92af08/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2608, 67, 6447, 67, 2116, 12, 1518, 67, 1098, 16, 702, 67, 2793, 4672, 3536, 2000, 279, 3880, 2874, 2710, 1456, 1257, 358, 5970, 924, 18, 225, 294, 2402, 30, 300, 1375, 1518, 67, 1098,...
user, passwd, None, vt_id, None, version)
user, passwd, None, vt_id, None, None, version)
def convert_from_str(value,type): if value is not None: if type == 'str': return str(value) elif value.strip() != '': if type == 'long': return long(value) elif type == 'float': return float(value) elif type == 'int': return int(value) return None
7dcc08c6ff093ea91e1ccdc7fcdf088e631594a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/7dcc08c6ff093ea91e1ccdc7fcdf088e631594a7/locator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 701, 12, 1132, 16, 723, 4672, 309, 460, 353, 486, 599, 30, 309, 618, 422, 296, 701, 4278, 327, 609, 12, 1132, 13, 1327, 460, 18, 6406, 1435, 480, 875, 30, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1765, 67, 2080, 67, 701, 12, 1132, 16, 723, 4672, 309, 460, 353, 486, 599, 30, 309, 618, 422, 296, 701, 4278, 327, 609, 12, 1132, 13, 1327, 460, 18, 6406, 1435, 480, 875, 30, 309, ...
r"""Convert a string giving a list of GAP permutations into a list of elements of G.
r""" Convert a string giving a list of GAP permutations into a list of elements of G.
def from_gap_list(G, src): r"""Convert a string giving a list of GAP permutations into a list of elements of G. EXAMPLES:: sage: from sage.groups.perm_gps.permgroup import from_gap_list sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: L = from_gap_list(G, "[(1,2,3)(4,5), (3,4)]"); L [(1,2,3)(4,5), (3,4)] sa...
6c30e34ec3d82b902bad1cdb9e9cacf73b956af3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6c30e34ec3d82b902bad1cdb9e9cacf73b956af3/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 14048, 67, 1098, 12, 43, 16, 1705, 4672, 436, 8395, 4037, 279, 533, 21057, 279, 666, 434, 611, 2203, 26468, 1368, 279, 666, 434, 2186, 434, 611, 18, 225, 5675, 8900, 11386, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 14048, 67, 1098, 12, 43, 16, 1705, 4672, 436, 8395, 4037, 279, 533, 21057, 279, 666, 434, 611, 2203, 26468, 1368, 279, 666, 434, 2186, 434, 611, 18, 225, 5675, 8900, 11386, 28...
``level`` - (integer): the level. ``weight`` - (integer): the weight.
- ``level`` - (integer): the level. - ``weight`` - (integer): the weight.
def normalize(self, x): """ Returns the normalization of the ModSym ``x`` with respect to this list.
9ae824ec769dcfde5ec83bc3e40af81e971a8b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9ae824ec769dcfde5ec83bc3e40af81e971a8b62/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 12, 2890, 16, 619, 4672, 3536, 2860, 326, 13728, 434, 326, 3431, 11901, 12176, 92, 10335, 598, 8762, 358, 333, 666, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 12, 2890, 16, 619, 4672, 3536, 2860, 326, 13728, 434, 326, 3431, 11901, 12176, 92, 10335, 598, 8762, 358, 333, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ds = gdal.Open("tmp/tiff_write_60.tif");
ds = gdal.Open("tmp/tiff_write_59.tif");
def tiff_write_59(): import struct ret = 'success' for nbands in (1,2): for nbits in (1,8,9,12,16,17,24,32): drv = gdal.GetDriverByName( 'GTiff' ) if nbits <= 8: gdal_type = gdal.GDT_Byte ctype = 'B' elif nbits <= 16: gdal_type = gdal.GDT_UInt16 ctype = 'h' else: gdal_type = gdal.GDT_UInt32 ctype = 'i' ds = drv.Cre...
53cd8d8e974751edf838b3158118a502e6bcea91 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/53cd8d8e974751edf838b3158118a502e6bcea91/tiff_write.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 3048, 67, 2626, 67, 6162, 13332, 1930, 1958, 225, 325, 273, 296, 4768, 11, 225, 364, 4264, 5708, 316, 261, 21, 16, 22, 4672, 364, 4264, 1282, 316, 261, 21, 16, 28, 16, 29, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 3048, 67, 2626, 67, 6162, 13332, 1930, 1958, 225, 325, 273, 296, 4768, 11, 225, 364, 4264, 5708, 316, 261, 21, 16, 22, 4672, 364, 4264, 1282, 316, 261, 21, 16, 28, 16, 29, 16, ...
return dodiff(ui, repo, path, pats, opts) mydiff.__doc__ = '''use %s to diff repository (or selected files)
return dodiff(ui, repo, path, diffopts, pats, opts) mydiff.__doc__ = '''use %(path)r to diff repository (or selected files)
def mydiff(ui, repo, *pats, **opts): return dodiff(ui, repo, path, pats, opts)
89d5c57eb6010fb9150e06d24cd5f8f73fe7226f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/89d5c57eb6010fb9150e06d24cd5f8f73fe7226f/extdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 5413, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 327, 302, 369, 3048, 12, 4881, 16, 3538, 16, 589, 16, 293, 2323, 16, 1500, 13, 2, 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, 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, 3399, 5413, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 327, 302, 369, 3048, 12, 4881, 16, 3538, 16, 589, 16, 293, 2323, 16, 1500, 13, 2, -100, -100, -100, -100, -10...
<Timetable: ('A', 'B'), ...>, <Timetable: ('A', 'B'), ...>,
def doctest_findRelatedTimetables_forTerm(): """Tests for findRelatedTimetables() with terms as arguments >>> from schooltool.timetable import findRelatedTimetables >>> from schooltool.app.interfaces import ISchoolToolApplication >>> app = ISchoolToolApplication(None) >>> directlyProvides(app, IOwnTimetables) Let's a...
5327ab07ac6b37626f0e915d61c2f9b2129a747d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7127/5327ab07ac6b37626f0e915d61c2f9b2129a747d/test_timetable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31263, 395, 67, 4720, 8017, 10178, 278, 1538, 67, 1884, 4065, 13332, 3536, 14650, 364, 1104, 8017, 10178, 278, 1538, 1435, 598, 6548, 487, 1775, 225, 4080, 628, 18551, 1371, 6738, 18, 8584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31263, 395, 67, 4720, 8017, 10178, 278, 1538, 67, 1884, 4065, 13332, 3536, 14650, 364, 1104, 8017, 10178, 278, 1538, 1435, 598, 6548, 487, 1775, 225, 4080, 628, 18551, 1371, 6738, 18, 8584...
matches = self.regex.findall(self.pattern) found = False for match in reversed(matches): if match.end() <= self.position: self.match_span = match.span() found = True
iterator = self.regex.finditer(self.text) match = None while True: try: candidate_match = iterator.next() if candidate_match.end() <= self.position: match = candidate_match else: break except StopIteration:
def previous(self): """ Get previous match of pattern.
753add4627e8663ca10a703588625220bd235396 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/753add4627e8663ca10a703588625220bd235396/finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2416, 12, 2890, 4672, 3536, 968, 2416, 845, 434, 1936, 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...
[ 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, 2416, 12, 2890, 4672, 3536, 968, 2416, 845, 434, 1936, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if line[1:37]=='Orbital Energies, per Irrep and Spin' and not hasattr(self,"mosyms") and nosymflag:
if line[1:37]=='Orbital Energies, per Irrep and Spin' and not hasattr(self,"mosyms") and nosymflag and not unrestrictedflag:
def parse(self,fupdate=0.05,cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename,"r") if self.progress: inputfile.seek(0,2) #go to end of file nstep=inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep=0 # Used to avoid extracting the final geometry twice i...
fecb70315b792e0c22b7c0e49115750ae41e2c05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/fecb70315b792e0c22b7c0e49115750ae41e2c05/adfparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 74, 2725, 33, 20, 18, 6260, 16, 71, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 74, 2725, 33, 20, 18, 6260, 16, 71, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7...
self.Spacer = wx.Panel(id=ID_MAPVARIABLEDIALOGSPACER, name='Spacer', parent=self, pos=wx.Point(0, 0), size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
def _init_ctrls(self, prnt): wx.Dialog.__init__(self, id=ID_NODEINFOSDIALOG, name='NodeInfosDialog', parent=prnt, pos=wx.Point(376, 223), size=wx.Size(300, 280), style=wx.DEFAULT_DIALOG_STYLE, title='Node Infos') self.SetClientSize(wx.Size(300, 280))
5ab34fe9c3802aaa868361ef67351bba7f6a5604 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/5ab34fe9c3802aaa868361ef67351bba7f6a5604/commondialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 7075, 18, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 734, 67, 8744, 5923, 55, 2565, 18683, 16, 508, 2218, 907, 7655, 6353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 7075, 18, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 734, 67, 8744, 5923, 55, 2565, 18683, 16, 508, 2218, 907, 7655, 6353, ...
self.myref.close(True)
self.resetRef.close(True) else: print "we should never come here!"
def getInterfacesDataAvail(self, data): if data is True: if iNetwork.getAdapterAttribute(self.selectedInterface, 'up') is True: self.isInterfaceUp = True else: self.isInterfaceUp = False self.myref.close(True)
d6e258a761abb1074a1157d17b9c42b7f28959ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d6e258a761abb1074a1157d17b9c42b7f28959ce/NetworkWizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29833, 751, 3769, 671, 12, 2890, 16, 501, 4672, 309, 501, 353, 1053, 30, 309, 277, 3906, 18, 588, 4216, 1499, 12, 2890, 18, 8109, 1358, 16, 296, 416, 6134, 353, 1053, 30, 365, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29833, 751, 3769, 671, 12, 2890, 16, 501, 4672, 309, 501, 353, 1053, 30, 309, 277, 3906, 18, 588, 4216, 1499, 12, 2890, 18, 8109, 1358, 16, 296, 416, 6134, 353, 1053, 30, 365, 18, 29...
rflag t1, NT
rflag t1, 14;
def macroop IRET_PROT { .adjust_env oszIn64Override # Check for a nested task. This isn't supported at the moment. rflag t1, NT panic "Task switching with iret is unimplemented!", flags=(nCEZF,) #t1 = temp_RIP #t2 = temp_CS #t3 = temp_RFLAGS #t4 = handy m5 register # Pop temp_RIP, temp_CS, and temp_RFLAGS ld t1, ss,...
239f1dea31144d8ea35065c8e037b88298db616f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/239f1dea31144d8ea35065c8e037b88298db616f/interrupts_and_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 467, 10238, 67, 3373, 56, 288, 263, 13362, 67, 3074, 1140, 94, 382, 1105, 6618, 225, 468, 2073, 364, 279, 4764, 1562, 18, 1220, 5177, 1404, 3260, 622, 326, 10382, 18, 436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11522, 556, 467, 10238, 67, 3373, 56, 288, 263, 13362, 67, 3074, 1140, 94, 382, 1105, 6618, 225, 468, 2073, 364, 279, 4764, 1562, 18, 1220, 5177, 1404, 3260, 622, 326, 10382, 18, 436, ...
else:
elif isinstance(v, ConstFloat): args.append('ConstFloat(%r)' % v.value) elif isinstance(v, ConstInt):
def process_operation(self, s, op, names, subops): args = [] for v in op.args: if v in names: args.append(names[v]) elif isinstance(v, ConstAddr): try: name = ''.join([v.value.ptr.name[i] for i in range(len(v.value.ptr.name)-1)]) except AttributeError: args.append('ConstAddr(...)') else: args.append( 'ConstAddr(llmemor...
45a78e7d604ba45ad803f703f18e21fd6e7dc8bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/45a78e7d604ba45ad803f703f18e21fd6e7dc8bb/test_random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 7624, 12, 2890, 16, 272, 16, 1061, 16, 1257, 16, 720, 4473, 4672, 833, 273, 5378, 364, 331, 316, 1061, 18, 1968, 30, 309, 331, 316, 1257, 30, 833, 18, 6923, 12, 1973, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7624, 12, 2890, 16, 272, 16, 1061, 16, 1257, 16, 720, 4473, 4672, 833, 273, 5378, 364, 331, 316, 1061, 18, 1968, 30, 309, 331, 316, 1257, 30, 833, 18, 6923, 12, 1973, 63, ...
nodeinfo = self.rpc.call_node_info(nodenames, self.cfg.GetVGName(), instance.hypervisor) for node in nodenames: info = nodeinfo[node] info.Raise("Cannot get current information from node %s" % node) vg_free = info.payload.get('vg_free', None) if not isinstance(vg_free, int): raise errors.OpPrereqError("Can't compute fr...
_CheckNodesFreeDisk(self, nodenames, self.op.amount)
def CheckPrereq(self): """Check prerequisites.
701384a9a07d0e9a5f1677b2838f0906967283df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/701384a9a07d0e9a5f1677b2838f0906967283df/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 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, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 822, 85, 12, 2890, 4672, 3536, 1564, 30328, 16608, 2997, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return '<a name="L%s" /><tt class="py-lineno">%s</tt>' \
return '<a name="L%s"></a><tt class="py-lineno">%s</tt>' \
def lineno_to_html(self): template = '%%%ds' % self.linenum_size n = template % self.lineno return '<a name="L%s" /><tt class="py-lineno">%s</tt>' \ % (self.lineno, n)
011cfe23066944a39f3acc042d2c407b91d6dd1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/011cfe23066944a39f3acc042d2c407b91d6dd1d/html_colorize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7586, 67, 869, 67, 2620, 12, 2890, 4672, 1542, 273, 1995, 11438, 2377, 11, 738, 365, 18, 7511, 7924, 67, 1467, 290, 273, 1542, 738, 365, 18, 17782, 327, 2368, 69, 508, 1546, 48, 9, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7586, 67, 869, 67, 2620, 12, 2890, 4672, 1542, 273, 1995, 11438, 2377, 11, 738, 365, 18, 7511, 7924, 67, 1467, 290, 273, 1542, 738, 365, 18, 17782, 327, 2368, 69, 508, 1546, 48, 9, 8...
sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%SAGE_ROOT)
sage: magma.attach('%s/data/extcode/magma/sage/basic2.m'%SAGE_ROOT)
def attach(self, filename): r""" Attach the given file to the running instance of MAGMA.
c04f0ba44cf1a87c258dee9681bb5f4ba8144212 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c04f0ba44cf1a87c258dee9681bb5f4ba8144212/magma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 1544, 4672, 436, 8395, 8659, 326, 864, 585, 358, 326, 3549, 791, 434, 490, 1781, 5535, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 1544, 4672, 436, 8395, 8659, 326, 864, 585, 358, 326, 3549, 791, 434, 490, 1781, 5535, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.TASK_MODEL_DDATE_STR = 2 self.TASK_MODEL_DLEFT_STR = 3 self.TASK_MODEL_TAGS = 4 self.TASK_MODEL_BGCOL = 5 self.TAGS_MODEL_OBJ = 0 self.TAGS_MODEL_COLOR = 1 self.TAGS_MODEL_NAME = 2 self.TAGS_MODEL_COUNT = 3 self.TAGS_MODEL_SEP = 4 self.CTASKS_MODEL_TITLE = 2 self.CTASKS_MODEL_DD...
self.TASK_MODEL_DDATE_STR = 2 self.TASK_MODEL_DLEFT_STR = 3 self.TASK_MODEL_TAGS = 4 self.TASK_MODEL_BGCOL = 5 self.TAGS_MODEL_OBJ = 0 self.TAGS_MODEL_COLOR = 1 self.TAGS_MODEL_NAME = 2 self.TAGS_MODEL_COUNT = 3 self.TAGS_MODEL_SEP = 4 self.CTASKS_MODEL_TITLE = 2 ...
def __init__(self, requester, config): self.priv = {} # Set the configuration dictionary self.config = config #The collapsed tasks self.priv["collapsed_tid"] = [] #Set the Glade file self.gladefile = GnomeConfig.GLADE_FILE self.wTree = gtk.glade.XML(self.gladefile) #Get the Main Window, and connect the "destroy" e...
612537b0c84eca4937fc82d2e663530bca28c69e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/612537b0c84eca4937fc82d2e663530bca28c69e/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19961, 16, 642, 4672, 225, 365, 18, 11365, 273, 2618, 225, 468, 1000, 326, 1664, 3880, 365, 18, 1425, 273, 642, 225, 468, 1986, 17027, 4592, 365, 18, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19961, 16, 642, 4672, 225, 365, 18, 11365, 273, 2618, 225, 468, 1000, 326, 1664, 3880, 365, 18, 1425, 273, 642, 225, 468, 1986, 17027, 4592, 365, 18, 113...
MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name), MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png)
MultiContentEntryText(pos=(80, 5), size=(360, 25), font=0, text=name), MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(60, 50), png = png)
def PluginCategoryComponent(name, png): return [ name, MultiContentEntryText(pos=(120, 5), size=(320, 25), font=0, text=name), MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(100, 50), png = png) ]
2ad9c5a6c173958b693ee32f305c0e6cb6759392 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/2ad9c5a6c173958b693ee32f305c0e6cb6759392/PluginList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6258, 4457, 1841, 12, 529, 16, 14476, 4672, 327, 306, 508, 16, 5991, 1350, 1622, 1528, 12, 917, 28657, 3672, 16, 1381, 3631, 963, 28657, 29751, 16, 6969, 3631, 3512, 33, 20, 16, 977, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6258, 4457, 1841, 12, 529, 16, 14476, 4672, 327, 306, 508, 16, 5991, 1350, 1622, 1528, 12, 917, 28657, 3672, 16, 1381, 3631, 963, 28657, 29751, 16, 6969, 3631, 3512, 33, 20, 16, 977, 3...
perror ("recv")
sockerror("recv")
static def land_net_poll_recv(LandNet *self): int r if self->size == 0 or self->full == self->size: return r = recv (self->sock, self->buffer + self->full, self->size - self->full, 0) if r < 0: #if defined WINDOWS if WSAGetLastError () != WSAEINTR and\ WSAGetLastError () != WSAEWOULDBLOCK: #else if errno != EINTR &&...
592872e308788b926d7358eb0ec411e83ee451d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/592872e308788b926d7358eb0ec411e83ee451d0/net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 760, 1652, 19193, 67, 2758, 67, 13835, 67, 18334, 12, 29398, 7308, 380, 2890, 4672, 509, 436, 225, 309, 365, 2122, 1467, 422, 374, 578, 365, 2122, 2854, 422, 365, 2122, 1467, 30, 327, 225, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1652, 19193, 67, 2758, 67, 13835, 67, 18334, 12, 29398, 7308, 380, 2890, 4672, 509, 436, 225, 309, 365, 2122, 1467, 422, 374, 578, 365, 2122, 2854, 422, 365, 2122, 1467, 30, 327, 225, 4...
self.redirect(action="checkout") except ValueError, errs: self.complain(errs) zebra.show("frm_card", self.model) def act_set_card(self): self.data['cardID'] = int(self.input['cardID']) self.redirect(action = "checkout")
self.next = "checkout" except ValueError, valErrs: errs.extend(valErrs[0]) if ed.object.isExpired(): errs.append("Expired card.") if errs: self.model["errors"] = map(lambda e: {"error":e}, errs) self.next = "get_card" else: self.redirect(action = "checkout")
def act_add_card(self): # Add a new card to the database: import zikebase, zebra try: ed = zikebase.ObjectEditor(zikeshop.Card) ed.do("save") # use the card for the transaction: self.data['cardID'] = ed.object.ID #@TODO: ought to check expiration date... (prolly in Card.py) #@TODO: resolve - cards with secondary billin...
062ecd6bb2eb0bdedba6d95ed5097c95b596be91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/062ecd6bb2eb0bdedba6d95ed5097c95b596be91/checkout.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 1289, 67, 3327, 12, 2890, 4672, 468, 1436, 279, 394, 5270, 358, 326, 2063, 30, 1930, 998, 2547, 1969, 16, 26637, 15397, 775, 30, 1675, 273, 998, 2547, 1969, 18, 921, 6946, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1328, 67, 1289, 67, 3327, 12, 2890, 4672, 468, 1436, 279, 394, 5270, 358, 326, 2063, 30, 1930, 998, 2547, 1969, 16, 26637, 15397, 775, 30, 1675, 273, 998, 2547, 1969, 18, 921, 6946, 12...
fp = open(srcname, "w") fp.write("this is not a legal zip file\n") fp.close() try: zf = zipfile.ZipFile(srcname) except zipfile.BadZipfile: os.unlink(srcname)
self.assertRaises(IOError, zipfile.ZipFile, TESTFN)
def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) # Create the ZIP archive zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close() zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("...
3caf9c1edd0623231489d998a81511c9fa991f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3caf9c1edd0623231489d998a81511c9fa991f5a/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3144, 4709, 12, 74, 16, 9154, 16, 1705, 3980, 4672, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 91, 3113, 9154, 13, 282, 468, 1788, 326, 18277, 5052, 3144, 18, 2626, 12, 4816, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3144, 4709, 12, 74, 16, 9154, 16, 1705, 3980, 4672, 3144, 273, 18823, 18, 29394, 12, 74, 16, 315, 91, 3113, 9154, 13, 282, 468, 1788, 326, 18277, 5052, 3144, 18, 2626, 12, 4816, 529, ...
env.Append(CCFLAGS = '-DLSST_LITTLE_ENDIAN=1')
env.Append(CCFLAGS = ['-DLSST_LITTLE_ENDIAN=1'])
def IsGcc(context): context.Message("Checking if CC is really gcc...") result = context.TryAction(["%s --help | grep gcc" % env['CC']])[0] context.Result(result) return result
50ba4e889e3d144aba422fb2a117a16bf0be3173 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6561/50ba4e889e3d144aba422fb2a117a16bf0be3173/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
self.frame.SetTitle('%d%% %s - BitTorrent' % (int(fractionDone*100), self.filename))
self.frame.SetTitle('%d%% %s - BitTorrent %s' % (int(fractionDone*100), self.filename, version))
def onUpdateStatus(self, fractionDone, timeEst, downRate, upRate, activity): if fractionDone is not None and not self.fin: self.gauge.SetValue(int(fractionDone * 1000)) self.frame.SetTitle('%d%% %s - BitTorrent' % (int(fractionDone*100), self.filename)) if timeEst is not None: self.timeEstText.SetLabel(hours(timeEst)) ...
1837d5770325d3550eb3de5c39a6b107db1bd1ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/1837d5770325d3550eb3de5c39a6b107db1bd1ac/btdownloadgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27728, 1482, 12, 2890, 16, 8330, 7387, 16, 813, 9122, 16, 2588, 4727, 16, 731, 4727, 16, 5728, 4672, 309, 8330, 7387, 353, 486, 599, 471, 486, 365, 18, 926, 30, 365, 18, 75, 8305, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27728, 1482, 12, 2890, 16, 8330, 7387, 16, 813, 9122, 16, 2588, 4727, 16, 731, 4727, 16, 5728, 4672, 309, 8330, 7387, 353, 486, 599, 471, 486, 365, 18, 926, 30, 365, 18, 75, 8305, 18...
sage: C=graphs.PetersenGraph() sage: C.independent_set() [0, 3, 6, 7]
sage: C=graphs.PetersenGraph() sage: C.independent_set() [0, 3, 6, 7]
def independent_set(self): """ Returns a maximal independent set, which is a set of vertices which induces an empty subgraph. Uses Cliquer. NOTES: - Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. EXAMPLES:: sage: C=graphs.PetersenGraph() sage: C.inde...
9e5b138b9189031c2c258c6596d3a3b7fdafb7d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9e5b138b9189031c2c258c6596d3a3b7fdafb7d0/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14807, 67, 542, 12, 2890, 4672, 3536, 2860, 279, 943, 2840, 14807, 444, 16, 1492, 353, 279, 444, 434, 6928, 1492, 1547, 89, 764, 392, 1008, 21469, 18, 14854, 14391, 25734, 18, 225, 5219,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14807, 67, 542, 12, 2890, 4672, 3536, 2860, 279, 943, 2840, 14807, 444, 16, 1492, 353, 279, 444, 434, 6928, 1492, 1547, 89, 764, 392, 1008, 21469, 18, 14854, 14391, 25734, 18, 225, 5219,...
self.gridlayout34.addItem(spacerItem53,1,0,1,1)
self.gridlayout30.addItem(spacerItem53,1,0,1,1)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
while waited <= timeout:
while True:
def WaitUntilPasses( timeout, retry_interval, func, exceptions = (Exception), *args): """Wait until ``func(*args)`` does not raise one of the exceptions in exceptions * **timeout** how long the function will try the function * **retry_interval** how long to wait between retries * **func** the function that will be ...
466a4fefaf442b2d5b48cb51cab3fb3426b84698 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6953/466a4fefaf442b2d5b48cb51cab3fb3426b84698/timings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5838, 9716, 6433, 281, 12, 2021, 16, 3300, 67, 6624, 16, 1326, 16, 4798, 273, 261, 503, 3631, 380, 1968, 4672, 225, 3536, 5480, 3180, 12176, 644, 30857, 1968, 13, 10335, 1552, 486, 1002,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5838, 9716, 6433, 281, 12, 2021, 16, 3300, 67, 6624, 16, 1326, 16, 4798, 273, 261, 503, 3631, 380, 1968, 4672, 225, 3536, 5480, 3180, 12176, 644, 30857, 1968, 13, 10335, 1552, 486, 1002,...
Emin=DEFAULT_MIN_EXPONENT
Emin=DEFAULT_MIN_EXPONENT, capitals=1
def _isnan(num): """Determines whether a string or float is NaN (1, sign, diagnostic info as string) => NaN (2, sign, diagnostic info as string) => sNaN 0 => not a NaN """ num = str(num).lower() if not num: return 0 #get the sign, get rid of trailing [+-] sign = 0 if num[0] == '+': num = num[1:] elif num[0] == '-': ...
e0f1581babe682552d7eadc4e54636b1c2775f0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e0f1581babe682552d7eadc4e54636b1c2775f0b/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 13569, 12, 2107, 4672, 3536, 10114, 2856, 279, 533, 578, 1431, 353, 10180, 225, 261, 21, 16, 1573, 16, 21396, 1123, 487, 533, 13, 516, 10180, 261, 22, 16, 1573, 16, 21396, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 13569, 12, 2107, 4672, 3536, 10114, 2856, 279, 533, 578, 1431, 353, 10180, 225, 261, 21, 16, 1573, 16, 21396, 1123, 487, 533, 13, 516, 10180, 261, 22, 16, 1573, 16, 21396, 11...
if color:
if color is not None:
def drawGL(self,canvas=None,mode=None,color=None,**kargs): """Draw the geometry on the specified canvas.
e0b76b78c77be37ef9eab9643564fa5729951096 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/e0b76b78c77be37ef9eab9643564fa5729951096/actors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 11261, 12, 2890, 16, 15424, 33, 7036, 16, 3188, 33, 7036, 16, 3266, 33, 7036, 16, 636, 79, 1968, 4672, 3536, 6493, 326, 5316, 603, 326, 1269, 5953, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 11261, 12, 2890, 16, 15424, 33, 7036, 16, 3188, 33, 7036, 16, 3266, 33, 7036, 16, 636, 79, 1968, 4672, 3536, 6493, 326, 5316, 603, 326, 1269, 5953, 18, 2, -100, -100, -100, -100,...
return len(self.index)
return self.n
def __len__(self): "Return the number of movable atoms." return len(self.index)
2945a20430c98ee35b4c06af3a613d12f6cea465 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/2945a20430c98ee35b4c06af3a613d12f6cea465/constraints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 315, 990, 326, 1300, 434, 5730, 429, 9006, 1199, 327, 562, 12, 2890, 18, 1615, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1897, 972, 12, 2890, 4672, 315, 990, 326, 1300, 434, 5730, 429, 9006, 1199, 327, 562, 12, 2890, 18, 1615, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return g,self.monomial_quotient(f,t)
return self.monomial_quotient(f,t),g
def monomial_reduce(self, f, G): """ Try to find a g in G where g.lm() divides f. If found (g,flt) is returned, (0,0) otherwise, where flt is f/g.lm().
21fcc20d15a2ea4fd6e085c60745a73666b1d801 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/21fcc20d15a2ea4fd6e085c60745a73666b1d801/multi_polynomial_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 4708, 649, 67, 12498, 12, 2890, 16, 284, 16, 611, 4672, 3536, 6161, 358, 1104, 279, 314, 316, 611, 1625, 314, 18, 25972, 1435, 3739, 4369, 284, 18, 971, 1392, 261, 75, 16, 31864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 4708, 649, 67, 12498, 12, 2890, 16, 284, 16, 611, 4672, 3536, 6161, 358, 1104, 279, 314, 316, 611, 1625, 314, 18, 25972, 1435, 3739, 4369, 284, 18, 971, 1392, 261, 75, 16, 31864, ...
response = self.client.get('/datarequests/10000000000/') self.failUnlessEqual(response.status_code , 404)
try: response = self.client.get('/datarequests/10000000000/') self.failUnlessEqual(response.status_code , 404) except TemplateDoesNotExist: pass
def test404NonExistent(self): response = self.client.get('/datarequests/10000000000/') self.failUnlessEqual(response.status_code , 404)
b433c1f02f1bc1e563a53e9b2b4532e44c0a6b38 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2706/b433c1f02f1bc1e563a53e9b2b4532e44c0a6b38/datarequest_view_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 11746, 3989, 4786, 319, 12, 2890, 4672, 775, 30, 766, 273, 365, 18, 2625, 18, 588, 2668, 19, 892, 11420, 19, 23899, 9449, 2473, 13, 365, 18, 6870, 984, 2656, 5812, 12, 2740, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 11746, 3989, 4786, 319, 12, 2890, 4672, 775, 30, 766, 273, 365, 18, 2625, 18, 588, 2668, 19, 892, 11420, 19, 23899, 9449, 2473, 13, 365, 18, 6870, 984, 2656, 5812, 12, 2740, 18, ...
return [host_from_gpu(new_op(*new_inputs))]
gpu_elemwise = new_op(*new_inputs) else: return False else: return False gpu_elemwise = split_huge_add_or_mul(gpu_elemwise.owner).outputs[0] return [host_from_gpu(gpu_elemwise)]
def local_gpu_elemwise_0(node): """elemwise(..., host_from_gpu, ...) -> host_from_gpu(elemwise(gpu_from_host, ..., gpu_from_host) """ if isinstance(node.op, tensor.Elemwise): if numpy.any([i.owner and isinstance(i.owner.op, HostFromGpu) for i in node.inputs]): if numpy.all([o.type.dtype == 'float32' for o in node.outpu...
15fcf1943d71e2ae348bb1936ac6068058730d34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/15fcf1943d71e2ae348bb1936ac6068058730d34/opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 23162, 67, 10037, 2460, 67, 20, 12, 2159, 4672, 3536, 10037, 2460, 5825, 16, 1479, 67, 2080, 67, 23162, 16, 1372, 13, 317, 1479, 67, 2080, 67, 23162, 12, 10037, 2460, 12, 231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1191, 67, 23162, 67, 10037, 2460, 67, 20, 12, 2159, 4672, 3536, 10037, 2460, 5825, 16, 1479, 67, 2080, 67, 23162, 16, 1372, 13, 317, 1479, 67, 2080, 67, 23162, 12, 10037, 2460, 12, 231...
""" Use the Chinese Remainder Theorem to find some integer x such that x=a (mod m) and x=b (mod n). Note that x is only well-defined modulo m\*n.
r""" Use the Chinese Remainder Theorem to find some integer `x` such that `x=a \bmod m` and `x=b \bmod n`. Note that `x` is only well-defined modulo `m\*n`.
def crt(a,b,m,n): """ Use the Chinese Remainder Theorem to find some integer x such that x=a (mod m) and x=b (mod n). Note that x is only well-defined modulo m\*n. EXAMPLES:: sage: crt(2, 1, 3, 5) -4 sage: crt(13,20,100,301) -2087 You can also use upper case:: sage: c = CRT(2,3, 3, 5); c 8 sage: c % 3 == 2 True sag...
2bbe2334c6ee2df9794388e492bb1effd39e27d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2bbe2334c6ee2df9794388e492bb1effd39e27d2/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30677, 12, 69, 16, 70, 16, 81, 16, 82, 4672, 436, 8395, 2672, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 358, 1104, 2690, 3571, 1375, 92, 68, 4123, 716, 1375, 92, 33, 69, 521, 70,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30677, 12, 69, 16, 70, 16, 81, 16, 82, 4672, 436, 8395, 2672, 326, 1680, 25331, 2663, 25407, 1021, 479, 81, 358, 1104, 2690, 3571, 1375, 92, 68, 4123, 716, 1375, 92, 33, 69, 521, 70,...
fn = QFileDialog.getSaveFileName(self.assy.filename,
fn = QFileDialog.getSaveFileName(sdir,
def fileSaveAs(self): if self.assy: if self.assy.filename: dir, fil, ext = fileparse(self.assy.filename) else: dir, fil = "./", self.assy.name else: print "MWsemantics.py: fileSaveAs(): Part is Empty - nothing to save" return
ea9e6c22906043f53450a5755338c26f6a60d70f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ea9e6c22906043f53450a5755338c26f6a60d70f/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 4755, 1463, 12, 2890, 4672, 309, 365, 18, 428, 93, 30, 309, 365, 18, 428, 93, 18, 3459, 30, 1577, 16, 661, 16, 1110, 273, 585, 2670, 12, 2890, 18, 428, 93, 18, 3459, 13, 469, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 4755, 1463, 12, 2890, 4672, 309, 365, 18, 428, 93, 30, 309, 365, 18, 428, 93, 18, 3459, 30, 1577, 16, 661, 16, 1110, 273, 585, 2670, 12, 2890, 18, 428, 93, 18, 3459, 13, 469, ...
if __name__ == '__main__': _root.mainloop()
def demo2(): speed('fast') width(3) setheading(towards(0,0)) x,y = position() r = (x**2+y**2)**.5/2.0 right(90) pendown = True for i in range(18): if pendown: up() pendown = False else: down() pendown = True circle(r,10) sleep(2) reset() left(90) l = 10 color("green") width(3) left(180) sp = 5 for i in range(-2,...
def demo(): reset() tracer(1) up() backward(100) down() # draw 3 squares; the last filled width(3) for i in range(3): if i == 2: fill(1) for j in range(4): forward(20) left(90) if i == 2: color("maroon") fill(0) up() forward(30) down() width(1) color("black") # move out of the way tracer(0) up() right(90) forward(100) ...
6c71e658f535ce74e59f94a4f5de2adca0b56ccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6c71e658f535ce74e59f94a4f5de2adca0b56ccc/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21477, 13332, 2715, 1435, 13109, 12, 21, 13, 731, 1435, 12555, 12, 6625, 13, 2588, 1435, 468, 3724, 890, 31206, 31, 326, 1142, 6300, 1835, 12, 23, 13, 364, 277, 316, 1048, 12, 23, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21477, 13332, 2715, 1435, 13109, 12, 21, 13, 731, 1435, 12555, 12, 6625, 13, 2588, 1435, 468, 3724, 890, 31206, 31, 326, 1142, 6300, 1835, 12, 23, 13, 364, 277, 316, 1048, 12, 23, 4672...
url='http://www.bipoython.org/',
url='http://www.biopython.org/',
def run(self): # run the normal install and everthing install.run(self)
e2900975718da13c2ded19fb46e7098269c621e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/e2900975718da13c2ded19fb46e7098269c621e6/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1086, 326, 2212, 3799, 471, 14103, 4274, 3799, 18, 2681, 12, 2890, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 1086, 326, 2212, 3799, 471, 14103, 4274, 3799, 18, 2681, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
logger.log("Setting text of %s to '%s'"%(self.getLogString(), value))
if config.debugSearching: logger.log("Setting text of %s to '%s'"%(self.getLogString(), value))
def __setattr__ (self, attr, value): if False: pass # Are we swallowing an AT-SPI object? elif attr.replace('_Node', '') in self.contained: self.__dict__[attr] = value
58b4d614147df39269597588358bced2d5331556 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/58b4d614147df39269597588358bced2d5331556/tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 261, 2890, 16, 1604, 16, 460, 4672, 309, 1083, 30, 1342, 225, 468, 12520, 732, 1352, 5965, 310, 392, 14464, 17, 22694, 733, 35, 1327, 1604, 18, 2079, 2668, 67, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1747, 972, 261, 2890, 16, 1604, 16, 460, 4672, 309, 1083, 30, 1342, 225, 468, 12520, 732, 1352, 5965, 310, 392, 14464, 17, 22694, 733, 35, 1327, 1604, 18, 2079, 2668, 67, 90...
print e.result_obj
logging.error(e.result_obj)
def mkfs(self, fstype=None, args='', record=True): """ Format a partition to filesystem type
662f76bda53f3b39610e52556ebe4e8573de519d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/662f76bda53f3b39610e52556ebe4e8573de519d/base_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 2556, 12, 2890, 16, 20223, 388, 33, 7036, 16, 833, 2218, 2187, 1409, 33, 5510, 4672, 3536, 4077, 279, 3590, 358, 6496, 618, 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, 0, 0, 0, 0, 0, 0, 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, 5028, 2556, 12, 2890, 16, 20223, 388, 33, 7036, 16, 833, 2218, 2187, 1409, 33, 5510, 4672, 3536, 4077, 279, 3590, 358, 6496, 618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if int(seg.get_value_by_ref_des('SE01')) != self.seg_count + 1:
if self._int(seg.get_value_by_ref_des('SE01')) != self.seg_count + 1:
def next(self): """ Iterate over input file segments """ self.errors = [] try: while True: if self.buffer.find(self.seg_term) == -1: # Need more data self.buffer += self.fd.read(DEFAULT_BUFSIZE) while True: # Get first segment in buffer (line, self.buffer) = self.buffer.split(self.seg_term, 1) line = line.strip().repla...
7956012e1977ce74eb452b0f222cacfb52c93c99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11528/7956012e1977ce74eb452b0f222cacfb52c93c99/x12file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 3536, 11436, 1879, 810, 585, 5155, 3536, 365, 18, 4324, 273, 5378, 775, 30, 1323, 1053, 30, 309, 365, 18, 4106, 18, 4720, 12, 2890, 18, 5680, 67, 6408, 13, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1024, 12, 2890, 4672, 3536, 11436, 1879, 810, 585, 5155, 3536, 365, 18, 4324, 273, 5378, 775, 30, 1323, 1053, 30, 309, 365, 18, 4106, 18, 4720, 12, 2890, 18, 5680, 67, 6408, 13, 422, ...
X -- input variables Y -- output variables degree -- integer > 0 (default: 2) groebner -- calculate a reduced Groebner basis of the spanning polynomials to obtain more polynomials (default: False) EXAMPLES:
- ``X`` - input variables - ``Y`` - output variables - ``degree`` - integer > 0 (default: ``2``) - ``groebner`` - calculate a reduced Groebner basis of the spanning polynomials to obtain more polynomials (default: ``False``) EXAMPLES::
def polynomials(self, X=None, Y=None, degree=2, groebner=False): r""" Return a list of polynomials satisfying this S-box.
722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16991, 87, 12, 2890, 16, 1139, 33, 7036, 16, 1624, 33, 7036, 16, 10782, 33, 22, 16, 314, 303, 24008, 1224, 33, 8381, 4672, 436, 8395, 2000, 279, 666, 434, 16991, 87, 9281, 14946, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16991, 87, 12, 2890, 16, 1139, 33, 7036, 16, 1624, 33, 7036, 16, 10782, 33, 22, 16, 314, 303, 24008, 1224, 33, 8381, 4672, 436, 8395, 2000, 279, 666, 434, 16991, 87, 9281, 14946, 333, ...
resource = memory.File(TEST_DATA_1) handler = CSV() handler.columns = ['name', 'url', 'number', 'date'] handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} handler.load_state(resource)
handler = CSV() handler.columns = ['name', 'url', 'number', 'date'] handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} handler.load_state_from_string(TEST_DATA_1)
def test_load_state_with_schema(self): resource = memory.File(TEST_DATA_1) handler = CSV() handler.columns = ['name', 'url', 'number', 'date'] handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} handler.load_state(resource) self.assertEqual(handler.get_rows(), [ [u"python", URI.decode('http:...
7404f7e83f01f05f84fa82ab4b9b9fcd644b8aa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/7404f7e83f01f05f84fa82ab4b9b9fcd644b8aa8/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 945, 67, 2019, 67, 1918, 67, 4821, 12, 2890, 4672, 1838, 273, 10381, 1435, 1838, 18, 5112, 273, 10228, 529, 2187, 296, 718, 2187, 296, 2696, 2187, 296, 712, 3546, 1838, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 67, 2019, 67, 1918, 67, 4821, 12, 2890, 4672, 1838, 273, 10381, 1435, 1838, 18, 5112, 273, 10228, 529, 2187, 296, 718, 2187, 296, 2696, 2187, 296, 712, 3546, 1838, 18, 4...
func(config)
c(config)
def main(global_config, **settings): config = Configurator() config.include('myapp.myconfig.configure')
4a5f9df2c6ecfaea37c231f5c5aa48b92e1b59ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/4a5f9df2c6ecfaea37c231f5c5aa48b92e1b59ad/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 6347, 67, 1425, 16, 2826, 4272, 4672, 642, 273, 1903, 10662, 1435, 642, 18, 6702, 2668, 4811, 2910, 18, 4811, 1425, 18, 14895, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 6347, 67, 1425, 16, 2826, 4272, 4672, 642, 273, 1903, 10662, 1435, 642, 18, 6702, 2668, 4811, 2910, 18, 4811, 1425, 18, 14895, 6134, 2, -100, -100, -100, -100, -100, -100, -100...
self.parentdocs = [moduledoc]
self.parentdocs.append(moduledoc)
def parse(self, filename): """ Parse the given python module, and return a C{ModuleDoc} containing its API documentation. @param filename: The filename of the module to parse. @type filename: C{string} @rtype: L{ModuleDoc} """ # Find the basedir of the package & the full module name. (basedir, module_name) = _find_mod...
d4b62290bc22e63f8cc96e7c77bc6b16300b943b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d4b62290bc22e63f8cc96e7c77bc6b16300b943b/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1544, 4672, 3536, 2884, 326, 864, 5790, 1605, 16, 471, 327, 279, 385, 95, 3120, 1759, 97, 4191, 2097, 1491, 7323, 18, 225, 632, 891, 1544, 30, 1021, 1544, 434, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1544, 4672, 3536, 2884, 326, 864, 5790, 1605, 16, 471, 327, 279, 385, 95, 3120, 1759, 97, 4191, 2097, 1491, 7323, 18, 225, 632, 891, 1544, 30, 1021, 1544, 434, 326,...
def _check_for_process(self):
def _check_for_process(self):
def _check_for_process(self): activate = False for proc in self.ProcMan.get_process_list(): if utils.isProcessRunning(proc): activate = True self.setActivated(True)
4988f0b424713e9c2dade9d5684ccd636e40710f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7152/4988f0b424713e9c2dade9d5684ccd636e40710f/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1884, 67, 2567, 12, 2890, 4672, 10235, 273, 1083, 364, 5418, 316, 365, 18, 15417, 5669, 18, 588, 67, 2567, 67, 1098, 13332, 309, 2990, 18, 291, 2227, 7051, 12, 9381, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1884, 67, 2567, 12, 2890, 4672, 10235, 273, 1083, 364, 5418, 316, 365, 18, 15417, 5669, 18, 588, 67, 2567, 67, 1098, 13332, 309, 2990, 18, 291, 2227, 7051, 12, 9381, 467...
<input class="admin_w200" type="text" name="title" value="%s" /><br> """ % title
<textarea cols="50" rows="1" class="admin_wvar" type="text" name="title">%s</textarea><br> """ % cgi.escape(title)
def perform_modifyportalbox(colID, ln, pbxID=-1, score='', position='', sel_ln='', title='', body='', callback='yes', confirm=-1): """form to modify a portalbox in a collection, or change the portalbox itself. colID - the id of the collection. pbxID - the portalbox to change score - the score of the portalbox connected...
9b53a1ad315de2613c2e01753660f02b55ea8e76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/9b53a1ad315de2613c2e01753660f02b55ea8e76/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 24386, 2147, 12, 1293, 734, 16, 7211, 16, 6386, 92, 734, 29711, 21, 16, 4462, 2218, 2187, 1754, 2218, 2187, 357, 67, 2370, 2218, 2187, 2077, 2218, 2187, 1417, 2218, 2187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 67, 17042, 24386, 2147, 12, 1293, 734, 16, 7211, 16, 6386, 92, 734, 29711, 21, 16, 4462, 2218, 2187, 1754, 2218, 2187, 357, 67, 2370, 2218, 2187, 2077, 2218, 2187, 1417, 2218, 2187...
if osm.bsm and self.main.ircs: for ipmask in self.main.ircs.data.bans:
if osm.bsm and self.main.ism: for ipmask in self.main.ism.bans:
def cb(): self.rebuild_bans_dcall = None osm = self.main.osm self.ban_matcher.clear()
47fc9fd4dd8c01d34519347602640bc70360ebf9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12372/47fc9fd4dd8c01d34519347602640bc70360ebf9/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 13332, 365, 18, 266, 3510, 67, 70, 634, 67, 72, 1991, 273, 599, 1140, 81, 273, 365, 18, 5254, 18, 538, 81, 365, 18, 21515, 67, 22761, 18, 8507, 1435, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 13332, 365, 18, 266, 3510, 67, 70, 634, 67, 72, 1991, 273, 599, 1140, 81, 273, 365, 18, 5254, 18, 538, 81, 365, 18, 21515, 67, 22761, 18, 8507, 1435, 2, -100, -100, -100, -100,...
def expect(self, pattern, timeout = None):
def expect(self, pattern, timeout = -1):
def expect(self, pattern, timeout = None): """This seeks through the stream until an expected pattern is matched. The pattern is overloaded and may take several types including a list. The pattern can be a StringType, EOF, a compiled re, or a list of those types. Strings will be compiled to re types. This returns the i...
17e0ad22c17c5ee791bfef2b284bdef0a6c39e31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/17e0ad22c17c5ee791bfef2b284bdef0a6c39e31/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 2890, 16, 1936, 16, 2021, 273, 300, 21, 4672, 3536, 2503, 6520, 87, 3059, 326, 1407, 3180, 392, 2665, 1936, 353, 4847, 18, 1021, 1936, 353, 1879, 4230, 471, 2026, 4862, 11392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4489, 12, 2890, 16, 1936, 16, 2021, 273, 300, 21, 4672, 3536, 2503, 6520, 87, 3059, 326, 1407, 3180, 392, 2665, 1936, 353, 4847, 18, 1021, 1936, 353, 1879, 4230, 471, 2026, 4862, 11392, ...
def _checkflag(flag):
def _checkflag(flag, file):
def _checkflag(flag): if flag == 'r': flags = db.DB_RDONLY elif flag == 'rw': flags = 0 elif flag == 'w': flags = db.DB_CREATE elif flag == 'c': flags = db.DB_CREATE elif flag == 'n': flags = db.DB_CREATE | db.DB_TRUNCATE else: raise error, "flags should be one of 'r', 'w', 'c' or 'n'" return flags | db.DB_THREAD
fa351d6367130ab630b19d72fec1727b61e0fa50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa351d6367130ab630b19d72fec1727b61e0fa50/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 16, 585, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6420, 12, 6420, 16, 585, 4672, 309, 2982, 422, 296, 86, 4278, 2943, 273, 1319, 18, 2290, 67, 20403, 10857, 1327, 2982, 422, 296, 21878, 4278, 2943, 273, 374, 1327, 2982, 422, ...
return {double : double, cdouble : double}
try: return {double : double, cdouble : double}[t] except KeyError: return double
def _realType(t): return {double : double, cdouble : double}
a7b49529358d6e52c449a739cc09d390e36238db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/a7b49529358d6e52c449a739cc09d390e36238db/linalg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7688, 559, 12, 88, 4672, 775, 30, 327, 288, 9056, 294, 1645, 16, 276, 9056, 294, 1645, 20294, 88, 65, 1335, 4999, 30, 327, 1645, 225, 2, 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, 0, 0, 0, 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, 7688, 559, 12, 88, 4672, 775, 30, 327, 288, 9056, 294, 1645, 16, 276, 9056, 294, 1645, 20294, 88, 65, 1335, 4999, 30, 327, 1645, 225, 2, -100, -100, -100, -100, -100, -100, -100, ...
lines.append(' %s<%s> %s_proxy(' % (
lines.append(ss+' %s<%s> %s_proxy(' % (
def write_wrapper(self, f): special = special_wrappers.get(self.function_name, None) if (special is not None and special[0] is not None): print >> f, special[0] return lines = [ self.return_type, self.wrapper_function_name()+"(" ] for arg in self.args: lines.append(" %s %s," % ( "boost::python::object const&", "py_"+a...
f9fe2424d81ac0cebc2a6dcb7e793dac6b5fbcf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/f9fe2424d81ac0cebc2a6dcb7e793dac6b5fbcf3/generate_functions_bpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 8376, 12, 2890, 16, 284, 4672, 4582, 273, 4582, 67, 4113, 10422, 18, 588, 12, 2890, 18, 915, 67, 529, 16, 599, 13, 309, 261, 9371, 353, 486, 599, 471, 4582, 63, 20, 65, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 8376, 12, 2890, 16, 284, 4672, 4582, 273, 4582, 67, 4113, 10422, 18, 588, 12, 2890, 18, 915, 67, 529, 16, 599, 13, 309, 261, 9371, 353, 486, 599, 471, 4582, 63, 20, 65, 3...
if pos != 0: T2_matrix[pos, j_prev] += 1
if pos != 0: T2_matrix[pos, j_prev] += 1
def supersingular_points(self): r""" This function computes the supersingular j-invariants over the finite field associated to self.
92cd55dac1a723811af08302aa326e1a81ceb4a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/92cd55dac1a723811af08302aa326e1a81ceb4a8/ssmod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 436, 8395, 1220, 445, 15881, 326, 1169, 414, 17830, 525, 17, 267, 15886, 1879, 326, 25922, 652, 3627, 358, 365, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 1169, 414, 17830, 67, 4139, 12, 2890, 4672, 436, 8395, 1220, 445, 15881, 326, 1169, 414, 17830, 525, 17, 267, 15886, 1879, 326, 25922, 652, 3627, 358, 365, 18, 2, -100, -100, -100, -100,...
for d in self.pth_file.get(dist.key,()):
for d in self.pth_file[dist.key]:
def update_pth(self,dist): if self.pth_file is None: return
e7572450f1ff6f862608f0d56ed816607d21905c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/e7572450f1ff6f862608f0d56ed816607d21905c/easy_install.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2397, 12, 2890, 16, 4413, 4672, 309, 365, 18, 2397, 67, 768, 353, 599, 30, 327, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2397, 12, 2890, 16, 4413, 4672, 309, 365, 18, 2397, 67, 768, 353, 599, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
raise ParseError('%s:%d: syntax error', filename, lineno)
raise ParseError('syntax error', filename, lineno)
def error(self, token): global filename, lineno raise ParseError('%s:%d: syntax error', filename, lineno)
88ed56392ec1bb683df86cd9345d244210672adf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2799/88ed56392ec1bb683df86cd9345d244210672adf/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1147, 4672, 2552, 1544, 16, 7586, 1002, 17372, 29909, 87, 5319, 72, 30, 6279, 555, 2187, 1544, 16, 7586, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1147, 4672, 2552, 1544, 16, 7586, 1002, 17372, 29909, 87, 5319, 72, 30, 6279, 555, 2187, 1544, 16, 7586, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.fig.subplots_adjust(bottom=0.20, hspace=0.01, right=0.999, top=0.95, left=0.18)
self.fig.subplots_adjust(bottom=0.10, hspace=0.01, right=0.999, top=0.95, left=0.08)
def drawAxes(self): #XXX wanted to change to seconds on x-axis but there is one problem: # during picking it's convenient to round to the nearest sample # with float seconds on the x-axis it's not so easy anymore npts = self.streams[self.stPt][0].stats.npts smprt = self.streams[self.stPt][0].stats.sampling_rate dt = 1....
4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 26494, 12, 2890, 4672, 468, 15639, 15504, 358, 2549, 358, 3974, 603, 619, 17, 4890, 1496, 1915, 353, 1245, 6199, 30, 468, 4982, 6002, 310, 518, 1807, 26375, 358, 3643, 358, 326, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 26494, 12, 2890, 4672, 468, 15639, 15504, 358, 2549, 358, 3974, 603, 619, 17, 4890, 1496, 1915, 353, 1245, 6199, 30, 468, 4982, 6002, 310, 518, 1807, 26375, 358, 3643, 358, 326, 11...
log.info('save %s' % self.cachefile)
log.debug('save %s' % self.cachefile)
def save(self, later=True): """ Save the cache. """ if not self.changed: return if later: self.__save_timer.start(0) return log.info('save %s' % self.cachefile) cache.save(self.cachefile, self.data, VERSION) self.mtime = os.stat(self.cachefile)[ST_MTIME] self.changed = False
0d82c836dd2c99d809fddf3854e832180fee6e18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/0d82c836dd2c99d809fddf3854e832180fee6e18/db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 5137, 33, 5510, 4672, 3536, 7074, 326, 1247, 18, 3536, 309, 486, 365, 18, 6703, 30, 327, 309, 5137, 30, 365, 16186, 5688, 67, 12542, 18, 1937, 12, 20, 13, 327, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 12, 2890, 16, 5137, 33, 5510, 4672, 3536, 7074, 326, 1247, 18, 3536, 309, 486, 365, 18, 6703, 30, 327, 309, 5137, 30, 365, 16186, 5688, 67, 12542, 18, 1937, 12, 20, 13, 327, 61...
TargetAdd('plugin_standalone_panda3dBase.obj', opts=OPTS, input='panda3dBase.cxx')
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
47d95f60199654175f909c884a657e86fa5b54b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/47d95f60199654175f909c884a657e86fa5b54b7/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
progress = 1.0 * (module_num-1) / len(self.modulelist) self.display_status_line(progress, module_num, msg)
progress_percent = 1.0 * (module_num-1) / len(self.modulelist) self.display_status_line(progress_percent, module_num, msg)
def message(self, msg, module_num=-1): '''Display a message to the user''' if module_num == -1: module_num = self.module_num if module_num > 0: progress = ' [%d/%d]' % (module_num, len(self.modulelist)) else: progress = ''
6ba6d4a9702ec5ea2a5696f19214e73370fda3f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/6ba6d4a9702ec5ea2a5696f19214e73370fda3f1/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 2890, 16, 1234, 16, 1605, 67, 2107, 29711, 21, 4672, 9163, 4236, 279, 883, 358, 326, 729, 26418, 225, 309, 1605, 67, 2107, 422, 300, 21, 30, 1605, 67, 2107, 273, 365, 18, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 2890, 16, 1234, 16, 1605, 67, 2107, 29711, 21, 4672, 9163, 4236, 279, 883, 358, 326, 729, 26418, 225, 309, 1605, 67, 2107, 422, 300, 21, 30, 1605, 67, 2107, 273, 365, 18, 29...
logger.debug("update laws data")
logger.info("update laws data")
def update_laws_data(self): logger.debug("update laws data") laws = self.download_laws() votes = Vote.objects.all().order_by('-time')[:100] for v in votes: search_name = self.get_search_string(v.title.encode('UTF-8')) for l in laws: if search_name.find(l[1]) >= 0: #print "match" v.summary = l[2] v.save() try: (link, cr...
4f8b077920069cfd9afe1afd7ef49e0aa5b8d64b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/4f8b077920069cfd9afe1afd7ef49e0aa5b8d64b/syncdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 80, 6850, 67, 892, 12, 2890, 4672, 1194, 18, 1376, 2932, 2725, 328, 6850, 501, 7923, 328, 6850, 273, 365, 18, 7813, 67, 80, 6850, 1435, 19588, 273, 27540, 18, 6911, 18, 454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 80, 6850, 67, 892, 12, 2890, 4672, 1194, 18, 1376, 2932, 2725, 328, 6850, 501, 7923, 328, 6850, 273, 365, 18, 7813, 67, 80, 6850, 1435, 19588, 273, 27540, 18, 6911, 18, 454, ...
st t1, ds, [scale, index, base], disp
st t1, ds, [0, t0, t7], disp
def macroop SBB_P_R
dd95f0468c599f30303740527ce19d810f43aca6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/dd95f0468c599f30303740527ce19d810f43aca6/add_and_subtract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 348, 9676, 67, 52, 67, 54, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11522, 556, 348, 9676, 67, 52, 67, 54, 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, ...
RE_BEGIN_HASH = re.compile(r'^[ \t]*
RE_BEGIN_HASH = re.compile(r'^[ \t]*
def clean_code(self, text): # remove XML comments text = re.sub(self.RE_XMLCOMMENT, '', text) # remove preprocessor directions text = re.sub(self.RE_PREPROCESSOR, '', text) # substitute multilines with one line text = re.sub(self.RE_MULTILINES, "", text) return text
ee0cba7ed8caf8e8e5efd7b1ddbd40e8fef9fa4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1500/ee0cba7ed8caf8e8e5efd7b1ddbd40e8fef9fa4b/fortrandoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 710, 12, 2890, 16, 977, 4672, 468, 1206, 3167, 5678, 977, 273, 283, 18, 1717, 12, 2890, 18, 862, 67, 4201, 12200, 16, 10226, 977, 13, 468, 1206, 31445, 18558, 977, 273, 283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2721, 67, 710, 12, 2890, 16, 977, 4672, 468, 1206, 3167, 5678, 977, 273, 283, 18, 1717, 12, 2890, 18, 862, 67, 4201, 12200, 16, 10226, 977, 13, 468, 1206, 31445, 18558, 977, 273, 283, ...
for a in self.attributes[XMLSchemaComponent.xsd].keys(): if a not in self.__class__.attributes.keys():
for a in self.attributes.keys(): if (a != XMLSchemaComponent.xmlns) and\ a not in self.__class__.attributes.keys():
def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal. """ for a in self.__class__.required: if not self.attributes[XMLSchemaComponent.xsd].has_key(a): raise SchemaError,\ 'class instance %s, missing required...
e50368f02a007b522df43404acf761191b9356f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/e50368f02a007b522df43404acf761191b9356f0/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 2498, 12, 2890, 4672, 3536, 4081, 716, 1931, 1677, 1240, 2118, 2553, 16, 1677, 341, 19, 1886, 2780, 506, 1931, 18, 282, 13074, 777, 2553, 1677, 854, 19286, 18, 3536, 364, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1893, 2498, 12, 2890, 4672, 3536, 4081, 716, 1931, 1677, 1240, 2118, 2553, 16, 1677, 341, 19, 1886, 2780, 506, 1931, 18, 282, 13074, 777, 2553, 1677, 854, 19286, 18, 3536, 364, 279...
os.chmod(self.rcfile, 0600)
if not rc_exists: os.chmod(self.rcfile, 0600)
def save(self): p = ConfigParser.ConfigParser() loglevelnames = dict(zip(self._LOGLEVELS.values(), self._LOGLEVELS.keys())) p.add_section('options') for opt in self.options.keys(): if opt in ('version', 'language', 'translate_out', 'translate_in', 'init', 'update'): continue if opt in ('log_level', 'assert_exit_level')...
1ae46a075b27542c96e4983e487340ff5bd56a6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/1ae46a075b27542c96e4983e487340ff5bd56a6a/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 293, 273, 25076, 18, 809, 2678, 1435, 21252, 1973, 273, 2065, 12, 4450, 12, 2890, 6315, 4842, 10398, 55, 18, 2372, 9334, 365, 6315, 4842, 10398, 55, 18, 2452, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 293, 273, 25076, 18, 809, 2678, 1435, 21252, 1973, 273, 2065, 12, 4450, 12, 2890, 6315, 4842, 10398, 55, 18, 2372, 9334, 365, 6315, 4842, 10398, 55, 18, 2452, 1435,...
if self.mustquote.search(arg) is None:
if arg and self.mustquote.search(arg) is None:
def _checkquote(self, arg):
9a920592116a537852bf9286846467eeba053101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9a920592116a537852bf9286846467eeba053101/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6889, 12, 2890, 16, 1501, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6889, 12, 2890, 16, 1501, 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...
minScore = prefScore
minScore = currentScore
def _filterByPreferences(self, flavorList, scoreToMatch, preferenceList): if not preferenceList: return 0, flavorList, [] strongList = [ (x.toStrongFlavor(), x) for x in flavorList ] indexedList = list(enumerate(preferenceList[:scoreToMatch + 1])) nomatches = [] minScore = None matchingFlavors = [] for strongFlavor, fl...
a659adf5a1544499f32d150966ec2a461c043c03 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a659adf5a1544499f32d150966ec2a461c043c03/trovesource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 858, 12377, 12, 2890, 16, 19496, 682, 16, 4462, 26726, 16, 11555, 682, 4672, 309, 486, 11555, 682, 30, 327, 374, 16, 19496, 682, 16, 5378, 11773, 682, 273, 306, 261, 92, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2188, 858, 12377, 12, 2890, 16, 19496, 682, 16, 4462, 26726, 16, 11555, 682, 4672, 309, 486, 11555, 682, 30, 327, 374, 16, 19496, 682, 16, 5378, 11773, 682, 273, 306, 261, 92, 18,...
Positive integers indexing the time variable.
Positive integers indexing the time variable.
def _check_index(indices, dates, nctime, calendar): """Return True if the time indices given correspond to the given dates, False otherwise. Parameters ---------- indices : sequence of integers Positive integers indexing the time variable. dates : sequence of datetime objects Reference dates. nctime : netCDF Variable ...
bbd2b412f6583e4d366fbba7cbbd6a40ad4b5276 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8103/bbd2b412f6583e4d366fbba7cbbd6a40ad4b5276/netcdftime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1615, 12, 6836, 16, 7811, 16, 290, 21261, 16, 5686, 4672, 3536, 990, 1053, 309, 326, 813, 4295, 864, 4325, 358, 326, 864, 7811, 16, 1083, 3541, 18, 225, 7012, 12181, 429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1615, 12, 6836, 16, 7811, 16, 290, 21261, 16, 5686, 4672, 3536, 990, 1053, 309, 326, 813, 4295, 864, 4325, 358, 326, 864, 7811, 16, 1083, 3541, 18, 225, 7012, 12181, 429...
oDataOperation.setValueByKey('RegistrationTime',time.time()-start) if not res['OK']: oDataOperation.setValueByKey('RegistrationOK',0) oDataOperation.setValueByKey('FinalStatus','Failed') gDataStoreClient.addRegister(oDataOperation)
oDataOperation.setValueByKey( 'RegistrationTime', time.time() - start ) if not res['OK']: oDataOperation.setValueByKey( 'RegistrationOK', 0 ) oDataOperation.setValueByKey( 'FinalStatus', 'Failed' ) gDataStoreClient.addRegister( oDataOperation )
def __removeCatalogReplica(self,replicaTuple): oDataOperation = self.__initialiseAccountingObject('removeCatalogReplica','',len(replicaTuple)) oDataOperation.setStartTime() start= time.time() #HACK! replicaDict = {} for lfn,pfn,se in replicaTuple: replicaDict[lfn] = {'SE':se,'PFN':pfn} res = self.fileCatalogue.removeRe...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4479, 9769, 14222, 12, 2890, 16, 30065, 9038, 4672, 21864, 2988, 273, 365, 16186, 6769, 784, 3032, 310, 921, 2668, 4479, 9769, 14222, 17023, 2187, 1897, 12, 30065, 9038, 3719, 21864, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 9769, 14222, 12, 2890, 16, 30065, 9038, 4672, 21864, 2988, 273, 365, 16186, 6769, 784, 3032, 310, 921, 2668, 4479, 9769, 14222, 17023, 2187, 1897, 12, 30065, 9038, 3719, 21864, ...
def create_node(self, path, type):
def create_node(self, path, mode): """Create an allocate a new inode, update relevant structures elsewhere"""
def create_node(self, path, type): node_dirname, node_basename = os.path.split(path) parent_dirname, parent_basename = os.path.split(node_dirname) parent_dirent = self.get_dir_entry(node_dirname) parent_inode_struct = self.get_inode_struct(parent_dirent["inode"]) for dirent in self.read_directory(parent_dirent["inode"]...
a2d8f4bc0f5dd94eba8767e5d77b1beb78415227 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4811/a2d8f4bc0f5dd94eba8767e5d77b1beb78415227/clfs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1652, 752, 67, 2159, 12, 2890, 16, 589, 16, 1965, 4672, 3536, 1684, 392, 10101, 279, 394, 17870, 16, 1089, 9368, 12597, 25795, 8395, 225, 756, 67, 12287, 16, 756, 67, 13909, 273, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1652, 752, 67, 2159, 12, 2890, 16, 589, 16, 1965, 4672, 3536, 1684, 392, 10101, 279, 394, 17870, 16, 1089, 9368, 12597, 25795, 8395, 225, 756, 67, 12287, 16, 756, 67, 13909, 273, 1140, ...
os.rename(venkmanpath, venkmancvspath)
try: os.rename(venkmanpath, venkmancvspath) except: sys.excepthook(sys.exc_info()[0], sys.exc_info()[1], None) sys.exit("Error: Venkman directory renaming failed!")
def backup_cvs_venkman(): venkmanpath = os.path.join(topsrcdir, 'mozilla', 'extensions', 'venkman') # Do nothing if there is no Venkman cvs directory. if not os.path.exists(os.path.join(venkmanpath, 'CVS')): return venkmancvspath = venkmanpath + '-cvs' print "Moving venkman to venkman-cvs..." os.rename(venkmanpath, ve...
0bc69e7bf7a88a560dd02422d30a49b58dedc9a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11044/0bc69e7bf7a88a560dd02422d30a49b58dedc9a6/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5114, 67, 71, 6904, 67, 3995, 79, 4728, 13332, 331, 13775, 4728, 803, 273, 1140, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 296, 8683, 15990, 2187, 296, 9489, 2187, 296, 3995, 79, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5114, 67, 71, 6904, 67, 3995, 79, 4728, 13332, 331, 13775, 4728, 803, 273, 1140, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 296, 8683, 15990, 2187, 296, 9489, 2187, 296, 3995, 79, 47...
self._img = ImageReader(self.filename)
self._img = ImageReader(self._file) del self._file
def __getattr__(self,a): if a=='_img': from reportlab.lib.utils import ImageReader #this may raise an error self._img = ImageReader(self.filename) return self._img elif a in ('drawWidth','drawHeight','imageWidth','imageHeight'): self._setup_inner() return self.__dict__[a] raise AttributeError(a)
1c036cda6a558fbdd3287a8f1333b70fa63f54b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/1c036cda6a558fbdd3287a8f1333b70fa63f54b2/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 69, 4672, 309, 279, 18920, 67, 6081, 4278, 628, 2605, 7411, 18, 2941, 18, 5471, 1930, 3421, 2514, 225, 468, 2211, 2026, 1002, 392, 555, 365, 6315, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 69, 4672, 309, 279, 18920, 67, 6081, 4278, 628, 2605, 7411, 18, 2941, 18, 5471, 1930, 3421, 2514, 225, 468, 2211, 2026, 1002, 392, 555, 365, 6315, 6...
return self._metadata.get(key, default)
return self.getMetadata(key, default)
def __getitem__(self, key, default=None): """ Retrieves an item from this dict based on the key given. If the item does not exist, then we return the default. If the item is CONTENT_KEY then we return the result from self.getData().
59504844fd8818e17c3c37e7fd57f7a19af892d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/59504844fd8818e17c3c37e7fd57f7a19af892d3/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 16, 805, 33, 7036, 4672, 3536, 20507, 392, 761, 628, 333, 2065, 2511, 603, 326, 498, 864, 18, 225, 971, 326, 761, 1552, 486, 1005, 16, 1508, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31571, 972, 12, 2890, 16, 498, 16, 805, 33, 7036, 4672, 3536, 20507, 392, 761, 628, 333, 2065, 2511, 603, 326, 498, 864, 18, 225, 971, 326, 761, 1552, 486, 1005, 16, 1508, 732, ...
summary='',
summary=caption,
def insert_media_list(self, album, media_list, tags='', user='default', photo_name=None): """Insert photos or videos into an album.
60e1dd6903c0672676ed9ac2602940222c65a007 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/60e1dd6903c0672676ed9ac2602940222c65a007/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 5829, 67, 1098, 12, 2890, 16, 14844, 16, 3539, 67, 1098, 16, 2342, 2218, 2187, 729, 2218, 1886, 2187, 10701, 67, 529, 33, 7036, 4672, 3536, 4600, 18185, 578, 24752, 1368, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 67, 5829, 67, 1098, 12, 2890, 16, 14844, 16, 3539, 67, 1098, 16, 2342, 2218, 2187, 729, 2218, 1886, 2187, 10701, 67, 529, 33, 7036, 4672, 3536, 4600, 18185, 578, 24752, 1368, 392, ...
evaluatable in the globals of __main__, it will be evaluated and its attributes (as revealed by dir()) are used as possible completions. (For class instances, class members are are also considered.)
evaluatable in self.namespace, it will be evaluated and its attributes (as revealed by dir()) are used as possible completions. (For class instances, class members are are also considered.)
def attr_matches(self, text): """Compute matches when text contains a dot.
5cc8d0a62feffba4debbb7261efc435960ca926b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5cc8d0a62feffba4debbb7261efc435960ca926b/rlcompleter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 8436, 12, 2890, 16, 977, 4672, 3536, 7018, 1885, 1347, 977, 1914, 279, 3928, 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,...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1604, 67, 8436, 12, 2890, 16, 977, 4672, 3536, 7018, 1885, 1347, 977, 1914, 279, 3928, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.body.append('\\tableofcontents\n\n\\bigskip\n') self.body.append('% [depart_topic]\n')
def visit_topic(self, node): self.body.append('% [visit_topic]\n') self.topic_class = node.get('class') if self.latex_toc: self.body.append('\\tableofcontents\n\n\\bigskip\n') self.body.append('% [depart_topic]\n') self.topic_class = '' raise nodes.SkipNode
9e1a1e622fe7515944ab03febc12494ba98aca12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/9e1a1e622fe7515944ab03febc12494ba98aca12/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 29909, 306, 11658, 67, 10476, 13944, 82, 6134, 365, 18, 10476, 67, 1106, 273, 756, 18, 588, 2668, 1106, 6134, 309, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 29909, 306, 11658, 67, 10476, 13944, 82, 6134, 365, 18, 10476, 67, 1106, 273, 756, 18, 588, 2668, 1106, 6134, 309, 36...
wx.ID_NO: False })
wx.ID_NO: False, wx.ID_CANCEL: False})
def yesNo(parent, caption, message): """ Prompt the user with a Yes/No dialog. Return True if Yes, False if No. @param parent: A wx parent @type parent: wx frame @param caption: The caption string for the dialog @type caption: String @param message: A message prompting the user for input @type message: String """ re...
fa020c93f6ab2c5d367cede61399f8a4ca78ceeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/fa020c93f6ab2c5d367cede61399f8a4ca78ceeb/Util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12465, 2279, 12, 2938, 16, 11006, 16, 883, 4672, 3536, 28360, 326, 729, 598, 279, 19925, 19, 2279, 6176, 18, 2000, 1053, 309, 19925, 16, 1083, 309, 2631, 18, 632, 891, 982, 30, 432, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12465, 2279, 12, 2938, 16, 11006, 16, 883, 4672, 3536, 28360, 326, 729, 598, 279, 19925, 19, 2279, 6176, 18, 2000, 1053, 309, 19925, 16, 1083, 309, 2631, 18, 632, 891, 982, 30, 432, 70...
'quantity_cleaned_cleaner' : fields.integer('Cleaned Quantity',
'quantity_cleaned_cleaner': fields.integer('Cleaned Quantity',
def copy(self, cr, uid, id, default=None, context={}): if not default: default = {} segment_id = self.browse(cr, uid, id) if not default.get('name', False): default['name'] = segment_id.name + ' (Copy)' seg_copy_id = super(dm_campaign_proposition_segment, self).copy(cr, uid, id, default, context) return seg_copy_id
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 309, 486, 805, 30, 805, 273, 2618, 3267, 67, 350, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 309, 486, 805, 30, 805, 273, 2618, 3267, 67, 350, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, ...
use_config = local_config
def GetLatestSanityChecks(): """Get the latest copy of the sanity checks config.""" h = httplib2.Http(tempfile.gettempdir(), timeout=10) http_version_usable = False try: resp, content = h.request(SANITY_REFERENCE_URL, 'GET') except exc: print exc http_config = ConfigParser.ConfigParser() if '[base]' in content: fp = S...
d61587e5f4426d5b8777ca86be58fd7d9e8fed3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/d61587e5f4426d5b8777ca86be58fd7d9e8fed3e/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 18650, 55, 10417, 4081, 13332, 3536, 967, 326, 4891, 1610, 434, 326, 16267, 4271, 642, 12123, 366, 273, 15851, 6673, 22, 18, 2940, 12, 5814, 768, 18, 588, 5814, 1214, 9334, 2021, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 18650, 55, 10417, 4081, 13332, 3536, 967, 326, 4891, 1610, 434, 326, 16267, 4271, 642, 12123, 366, 273, 15851, 6673, 22, 18, 2940, 12, 5814, 768, 18, 588, 5814, 1214, 9334, 2021, 33...
views[edit_index] = self.get_first_edit_subview()
first_edit_subview = self.get_first_edit_subview() if first_edit_subview is not None: views[edit_index] = first_edit_subview else: views.pop(edit_index)
def get_views(self): views = Folder.get_views(self) views = list(views) try: edit_index = views.index('edit_document') views[edit_index] = self.get_first_edit_subview() except ValueError: # FO pass return views
b8c701706ffd79bf271472486e4121d974bb3c6e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/b8c701706ffd79bf271472486e4121d974bb3c6e/future.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7061, 12, 2890, 4672, 7361, 273, 12623, 18, 588, 67, 7061, 12, 2890, 13, 7361, 273, 666, 12, 7061, 13, 775, 30, 3874, 67, 1615, 273, 7361, 18, 1615, 2668, 4619, 67, 5457, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7061, 12, 2890, 4672, 7361, 273, 12623, 18, 588, 67, 7061, 12, 2890, 13, 7361, 273, 666, 12, 7061, 13, 775, 30, 3874, 67, 1615, 273, 7361, 18, 1615, 2668, 4619, 67, 5457, 61...
Complex L-series attached to Jacobian of the modular curve associated to the congruence subgroup Gamma0(37)
Complex L-series attached to Abelian variety J0(37) of dimension 2
def lseries(self): """ Return the complex $L$-series of this modular abelian variety.
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 10222, 12, 2890, 4672, 3536, 2000, 326, 7233, 271, 48, 8, 17, 10222, 434, 333, 681, 2490, 1223, 292, 2779, 1394, 14369, 18, 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, 0, 0, 0, 0, 0, 0, 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, 328, 10222, 12, 2890, 4672, 3536, 2000, 326, 7233, 271, 48, 8, 17, 10222, 434, 333, 681, 2490, 1223, 292, 2779, 1394, 14369, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
config.clip = {}
config.clip = {};
def __call__(self, request=None, response=None): """ Returns global configuration of the Flowplayer taken from portal_properties """ self.update() self.request.response.setHeader("Content-type", "text/javascript") if self.show_cb_playlist_buttons: pb_code = """if (playList.length > 1) { config.plugins.controls.playlist...
fe75affb791382fd7ec99859e0ae0dd547576d54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10573/fe75affb791382fd7ec99859e0ae0dd547576d54/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 590, 33, 7036, 16, 766, 33, 7036, 4672, 3536, 2860, 2552, 1664, 434, 326, 9473, 14872, 9830, 628, 11899, 67, 4738, 3536, 365, 18, 2725, 1435, 365, 18, 22...
if line == None and not delete: if text == None: text = '' line = ToolTipLine(line_id, status, text, images_path=self.images_path) line.set_font_name(self.tooltip_font_name) line.set_font_color(self.tooltip_font_color) self.tooltip.add_element(line, 'line_%s' %line_id, expand=True) self.tooltip_lines.append(line)
if line == None: if not delete: if text == None: text = '' line = ToolTipLine(line_id, status, text, images_path=self.images_path) line.set_font_name(self.tooltip_font_name) line.set_font_color(self.tooltip_font_color) self.tooltip.add_element(line, 'line_%s' %line_id, expand=True) self.tooltip_lines.append(line)
def set_tooltip_line(self, line_id, status=None, text=None, delete=False): line = None for tooltip_line in self.tooltip_lines: if line.line_id == line_id: line = tooltip_line if delete: self.tooltip.remove_element('line_%s' %line_id) self.tooltip_lines.remove(line) break if line == None and not delete: if text == None:...
14e64aa5170f635050b1b33bf67753bc42b9319c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5280/14e64aa5170f635050b1b33bf67753bc42b9319c/infoicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 19798, 67, 1369, 12, 2890, 16, 980, 67, 350, 16, 1267, 33, 7036, 16, 977, 33, 7036, 16, 1430, 33, 8381, 4672, 980, 273, 599, 364, 11915, 67, 1369, 316, 365, 18, 19798, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 19798, 67, 1369, 12, 2890, 16, 980, 67, 350, 16, 1267, 33, 7036, 16, 977, 33, 7036, 16, 1430, 33, 8381, 4672, 980, 273, 599, 364, 11915, 67, 1369, 316, 365, 18, 19798, 67, ...
_bm.LCR4_init(fs,
_bm.LCR4_init(float(fs),
def run_bm(fs, signal, mode='v', with_LCR=True): """ Simulate response of the Basilar membrane to audio siganl. fs: sampling frequency signal: audio signal sampled at 48000Hz mode: 'x' return BM displacement 'v' return BM velocity with_LCR: if False skips LCR compression stage return: BM displacement or velocity for ...
3656b284fbaf49f4138d8acdfcc8f8f0bf686ce7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6952/3656b284fbaf49f4138d8acdfcc8f8f0bf686ce7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 25709, 12, 2556, 16, 4277, 16, 1965, 2218, 90, 2187, 598, 67, 48, 5093, 33, 5510, 4672, 3536, 9587, 6243, 766, 434, 326, 605, 345, 5611, 1663, 70, 2450, 73, 358, 7447, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 25709, 12, 2556, 16, 4277, 16, 1965, 2218, 90, 2187, 598, 67, 48, 5093, 33, 5510, 4672, 3536, 9587, 6243, 766, 434, 326, 605, 345, 5611, 1663, 70, 2450, 73, 358, 7447, 3553, ...
bufLen*=2
def _getTextRange(self,start,end): if self.obj.editAPIVersion>=2: if self.obj.editAPIHasITextDocument: return self._getTextRangeWithEmbeddedObjects(start,end) bufLen=(end-start)+1 if self.obj.isWindowUnicode: bufLen*=2 textRange=TextRangeUStruct() else: textRange=TextRangeAStruct() textRange.chrg.cpMin=start textRange....
8ad96e552b452eb9d3575f5d57a840e375f5303b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/8ad96e552b452eb9d3575f5d57a840e375f5303b/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1528, 2655, 12, 2890, 16, 1937, 16, 409, 4672, 309, 365, 18, 2603, 18, 4619, 2557, 1444, 34, 33, 22, 30, 309, 365, 18, 2603, 18, 4619, 2557, 5582, 1285, 408, 2519, 30, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1528, 2655, 12, 2890, 16, 1937, 16, 409, 4672, 309, 365, 18, 2603, 18, 4619, 2557, 1444, 34, 33, 22, 30, 309, 365, 18, 2603, 18, 4619, 2557, 5582, 1285, 408, 2519, 30, 327,...
print "Warning: using fallback texture grabber. Effects will treat " \ "layer transparency as black" _best_grabber = GenericGrabber return _best_grabber()
raise Exception("ERROR: GPU doesn't support Frame Buffers Objects. Can't continue")
def TextureGrabber(): """Returns an instance of the best texture grabbing class""" # Why this isn't done on module import? Because we need an initialized # GL Context to query availability of extensions global _best_grabber if _best_grabber is not None: return _best_grabber() # Preferred method: framebuffer object try...
e92229ad5fc597814e1a1429d9dee4f28911d6b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/e92229ad5fc597814e1a1429d9dee4f28911d6b0/framegrabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28582, 14571, 23709, 13332, 3536, 1356, 392, 791, 434, 326, 3796, 11428, 3087, 9897, 310, 667, 8395, 468, 3497, 93, 333, 5177, 1404, 2731, 603, 1605, 1930, 35, 15191, 732, 1608, 392, 6454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28582, 14571, 23709, 13332, 3536, 1356, 392, 791, 434, 326, 3796, 11428, 3087, 9897, 310, 667, 8395, 468, 3497, 93, 333, 5177, 1404, 2731, 603, 1605, 1930, 35, 15191, 732, 1608, 392, 6454,...
otherwise return - (the signal that killed it). """
otherwise return -SIG, where SIG is the signal that killed it. """
def spawnv(mode, file, args): """spawnv(mode, file, args) -> integer
7da3cc5dfbbc722238a6140acccba469f66e7fac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7da3cc5dfbbc722238a6140acccba469f66e7fac/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 90, 12, 3188, 16, 585, 16, 833, 4672, 3536, 1752, 9533, 90, 12, 3188, 16, 585, 16, 833, 13, 317, 3571, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 90, 12, 3188, 16, 585, 16, 833, 4672, 3536, 1752, 9533, 90, 12, 3188, 16, 585, 16, 833, 13, 317, 3571, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...