rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 429) else quickfix.IntField.__init__(self, 429, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 27542, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 27542, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],))
cr.execute('UPDATE ir_sequence SET number_next=number_next+number_increment WHERE id=%s AND active=%s', (res['id'], True))
def get_id(self, cr, uid, sequence_id, test='id=%s', context={}): try: cr.execute('lock table ir_sequence') cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True', (sequence_id,)) res = cr.dictfetchone() if res: cr.execute('update ir_sequence set number_next=number_next+number_increment where id=%s and active=True', (res['id'],)) if res['number_next']: return self._process(res['prefix']) + '%%0%sd' % res['padding'] % res['number_next'] + self._process(res['suffix']) else: return self._process(res['prefix']) + self._process(res['suffix']) finally: cr.commit() return False
7913a8c4695656ab91d7f66f4c05d680b17aacab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7913a8c4695656ab91d7f66f4c05d680b17aacab/ir_sequence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 12938, 4672, 775, 30, 4422, 18, 8837, 2668, 739, 1014, 9482, 67, 6178, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3102, 67, 350, 16, 1842, 2218, 350, 5095, 87, 2187, 819, 12938, 4672, 775, 30, 4422, 18, 8837, 2668, 739, 1014, 9482, 67, 6178, 6134, ...
license=info.get('license', 'GPL-2'),
license='GPL-3',
def add_defaults(self): sdist.sdist.add_defaults(self) if self.distribution.has_pure_modules(): build_py = self.get_finalized_command('build_py') data = [] for package in build_py.packages: src_dir = build_py.get_package_dir(package) data.extend(build_py.find_data_files(package, src_dir)) self.filelist.extend(data)
c1494ad2da09e23c402e042102b4368d24a15f28 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/c1494ad2da09e23c402e042102b4368d24a15f28/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7606, 12, 2890, 4672, 272, 4413, 18, 87, 4413, 18, 1289, 67, 7606, 12, 2890, 13, 309, 365, 18, 16279, 18, 5332, 67, 84, 594, 67, 6400, 13332, 1361, 67, 2074, 273, 365, 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, 527, 67, 7606, 12, 2890, 4672, 272, 4413, 18, 87, 4413, 18, 1289, 67, 7606, 12, 2890, 13, 309, 365, 18, 16279, 18, 5332, 67, 84, 594, 67, 6400, 13332, 1361, 67, 2074, 273, 365, 18, ...
MakeDirectory(PREFIX+"/direct")
def printStatus(header,warnings): global VERBOSE if VERBOSE >= -2: print "" print "-------------------------------------------------------------------" print header tkeep = "" tomit = "" for x in PACKAGES: if (OMIT.count(x)==0): tkeep = tkeep + x + " " else: tomit = tomit + x + " " print "Makepanda: Prefix Directory:",PREFIX print "Makepanda: Compiler:",COMPILER print "Makepanda: Optimize:",OPTIMIZE print "Makepanda: Keep Pkg:",tkeep print "Makepanda: Omit Pkg:",tomit print "Makepanda: Thirdparty dir:",THIRDPARTY print "Makepanda: DirectX SDK dir:",DIRECTXSDK print "Makepanda: Verbose vs. Quiet Level:",VERBOSE if (GENMAN): print "Makepanda: Generate API reference manual" else : print "Makepanda: Don't generate API reference manual" if (sys.platform == "win32"): if INSTALLER: print "Makepanda: Build installer, using",COMPRESSOR else : print "Makepanda: Don't build installer" if PPGAME!=0: print "Makepanda: Build pprepackaged game ",PPGAME,"using",COMPRESSOR else : print "Makepanda: Don't build pprepackaged game" print "Makepanda: Version ID: "+VERSION for x in warnings: print "Makepanda: "+x print "-------------------------------------------------------------------" print "" sys.stdout.flush()
a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1482, 12, 3374, 16, 12103, 4672, 2552, 27857, 309, 27857, 1545, 300, 22, 30, 1172, 1408, 1172, 315, 5802, 6062, 6, 1172, 1446, 268, 10102, 273, 1408, 358, 1938, 273, 1408, 364, 619...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 1482, 12, 3374, 16, 12103, 4672, 2552, 27857, 309, 27857, 1545, 300, 22, 30, 1172, 1408, 1172, 315, 5802, 6062, 6, 1172, 1446, 268, 10102, 273, 1408, 358, 1938, 273, 1408, 364, 619...
"'%s' expects <dir> <pattern>" %
"'%s' expects <dir> <pattern1> <pattern2> ..." %
def read_template (self): """Read and parse the manifest template file named by 'self.template' (usually "MANIFEST.in"). Process all file specifications (include and exclude) in the manifest template and add the resulting filenames to 'self.files'."""
21e295b8fbea21a3383b789b0f44d59a3c2c9d90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/21e295b8fbea21a3383b789b0f44d59a3c2c9d90/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 3202, 261, 2890, 4672, 3536, 1994, 471, 1109, 326, 5643, 1542, 585, 4141, 635, 296, 2890, 18, 3202, 11, 261, 407, 3452, 315, 9560, 30050, 18, 267, 20387, 225, 4389, 777, 585, ...
response = display_options()
display_options() response = get_response()
def list_bugs(): log.msg("\n\nFollowing are the list of bugs present.\n") for each_bug in bugs_number: each_bug = each_bug.split('.')[1] log.msg("%s\n" % (each_bug) )
323c51a1c5d866b7e61d527f890e0c0ea0b2e9b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/323c51a1c5d866b7e61d527f890e0c0ea0b2e9b1/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 19381, 13332, 613, 18, 3576, 31458, 82, 64, 82, 8328, 310, 854, 326, 666, 434, 22398, 3430, 8403, 82, 7923, 364, 1517, 67, 925, 316, 22398, 67, 2696, 30, 1517, 67, 925, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 19381, 13332, 613, 18, 3576, 31458, 82, 64, 82, 8328, 310, 854, 326, 666, 434, 22398, 3430, 8403, 82, 7923, 364, 1517, 67, 925, 316, 22398, 67, 2696, 30, 1517, 67, 925, 273, ...
register = template.get_library("apps.webui.templatetags.webui")
register = template.get_library("apps.webui.templatetags.webui_tags")
def fake_templatetag(f): ''' Adds a fake (rendered -- not curried) templatetag to dashboard's templatetags and returns the original function unchanged so it can be registered normally as a proper templatetag in its home app. ''' from django import template register = template.get_library("apps.webui.templatetags.webui") # add the rendered template to dashboard templatetags library name = position if perm is not None: # add permission to the name so we'll have # 'position_name-app.perm_name' name = name + '-' + perm try: # add the rendered template to dashboard's library of tags register.tags.update({ name : massaman(f, path) }) except Exception,e: # if something goes wrong, pass the error along to the dashboard register.tags.update({ name : "Error loading %s. %s" % (f.func_name, e) }) return f
e9367c373987c8576d8aa43d1dd0672f35615972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/e9367c373987c8576d8aa43d1dd0672f35615972/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10517, 67, 27380, 270, 20788, 12, 74, 4672, 9163, 15605, 279, 10517, 261, 26332, 1493, 486, 662, 24012, 13, 13988, 270, 20788, 358, 11825, 1807, 13988, 270, 278, 1341, 471, 1135, 326, 2282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10517, 67, 27380, 270, 20788, 12, 74, 4672, 9163, 15605, 279, 10517, 261, 26332, 1493, 486, 662, 24012, 13, 13988, 270, 20788, 358, 11825, 1807, 13988, 270, 278, 1341, 471, 1135, 326, 2282...
""" % { 'adminurl' : WEBSUBMITADMIN_WEBURL }
""" % { 'adminurl' : WEBSUBMITADMIN_WEBURL, 'weburl': weburl }
def _create_websubmitadmin_main_menu_header(self): """Create the main menu to be displayed on WebSubmit Admin pages.""" menu_body = """ <div> <table> <tr> <td>0.&nbsp;<small><a href="%(adminurl)s/showall">Show all</a></small></td> <td>&nbsp;1.&nbsp;<small><a href="%(adminurl)s/doctypelist">Available Document Types</a></small></td> <td>&nbsp;2.&nbsp;<small><a href="%(adminurl)s/doctypeadd">Add New Document Type</a></small></td> <td>&nbsp;3.&nbsp;<small><a href="%(adminurl)s/doctyperemove">Remove Document Type</a></small></td> <td>&nbsp;4.&nbsp;<small><a href="%(adminurl)s/actionlist">Available Actions</a></small></td> <td>&nbsp;5.&nbsp;<small><a href="%(adminurl)s/jschecklist">Available Checks</a></small></td> </tr> <tr> <td>6.&nbsp;<small><a href="%(adminurl)s/elementlist">Available Element descriptions</a></small></td> <td>&nbsp;7.&nbsp;<small><a href="%(adminurl)s/functionlist">Available Functions</a></small></td> <td>&nbsp;8.&nbsp;<small><a href="%(adminurl)s/organisesubmissionpage">Organise Main Page</a></small></td> <td colspan=2>&nbsp;9.&nbsp;<small><a href="%(adminurl)s/">WebSubmit Admin Guide</a></small></td> </tr> </table> </div> <br /> """ % { 'adminurl' : WEBSUBMITADMIN_WEBURL } return self._create_adminbox(header="Main Menu", datalist=[menu_body])
ed0b467451e5cdf9843d5090ca83c52f9ace75c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/ed0b467451e5cdf9843d5090ca83c52f9ace75c5/websubmitadmin_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 4875, 9297, 3666, 67, 5254, 67, 5414, 67, 3374, 12, 2890, 4672, 3536, 1684, 326, 2774, 3824, 358, 506, 10453, 603, 2999, 11620, 7807, 4689, 12123, 3824, 67, 3432, 273, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 4875, 9297, 3666, 67, 5254, 67, 5414, 67, 3374, 12, 2890, 4672, 3536, 1684, 326, 2774, 3824, 358, 506, 10453, 603, 2999, 11620, 7807, 4689, 12123, 3824, 67, 3432, 273, 353...
task.sync
task.sync()
def on_addtag_confirm(self, widget=None): tag_entry = self.builder.get_object("tag_entry") addtag_dialog = self.builder.get_object("TaskAddTag") if not tag_entry.get_text()[0] == "@": new_tagname = "@" + tag_entry.get_text() else: new_tagname = tag_entry.get_text() #TODO: What if I _want_ the new tag to be @@something? #TODO: Also--make sure to complain if tag_entry = "" #TODO: Make sure it's a valid name (eg. nothing like "this is a new tag") # On the other hand, if we're adding multiple tags separated by comma space # ("tag1, tag2") then this will probably get in the way (unless we isolate # each tag before doing that, which is probably how it would be done anyway). # Remove any trailing spaces new_tagname.rstrip()
8e42028002dbe1aa9223bcfb0ad670c792bfe961 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/8e42028002dbe1aa9223bcfb0ad670c792bfe961/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1289, 2692, 67, 10927, 12, 2890, 16, 3604, 33, 7036, 4672, 1047, 67, 4099, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 2692, 67, 4099, 7923, 527, 2692, 67, 12730, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1289, 2692, 67, 10927, 12, 2890, 16, 3604, 33, 7036, 4672, 1047, 67, 4099, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 2692, 67, 4099, 7923, 527, 2692, 67, 12730, 273, 365, ...
olderr = seterr(divide='ignore')
olderr = seterr(divide='ignore', invalid='ignore')
def test_neginf(self): olderr = seterr(divide='ignore') try: assert_all(isfinite(array((-1.,))/0.) == 0) finally: seterr(**olderr)
50375e7ea744fe685abd0623446f45de2019437a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/50375e7ea744fe685abd0623446f45de2019437a/test_type_check.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 82, 5022, 74, 12, 2890, 4672, 1592, 370, 273, 444, 370, 12, 2892, 831, 2218, 6185, 2187, 2057, 2218, 6185, 6134, 775, 30, 1815, 67, 454, 12, 291, 9551, 12, 1126, 12443, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 67, 82, 5022, 74, 12, 2890, 4672, 1592, 370, 273, 444, 370, 12, 2892, 831, 2218, 6185, 2187, 2057, 2218, 6185, 6134, 775, 30, 1815, 67, 454, 12, 291, 9551, 12, 1126, 12443, 17, ...
context_wo_lang = context
context_wo_lang = context.copy()
def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values
3fa759a9d5c5e1f860331857377dcfb3e79eee5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3fa759a9d5c5e1f860331857377dcfb3e79eee5d/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 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, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 2, -100, -100, -100, -1...
_open = _mk_single_path_wrapper('file', _open)
_file = _mk_single_path_wrapper('file', _file) _open = _mk_single_path_wrapper('open', _open)
def wrap(self,path,*args,**kw): if self._active: path = self._remap_input(name,path,*args,**kw) return original(path,*args,**kw)
d424393e0fa423eb23d0b0b4ec447b8044b0ff50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8186/d424393e0fa423eb23d0b0b4ec447b8044b0ff50/sandbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2890, 16, 803, 16, 14, 1968, 16, 636, 9987, 4672, 309, 365, 6315, 3535, 30, 589, 273, 365, 6315, 266, 1458, 67, 2630, 12, 529, 16, 803, 16, 14, 1968, 16, 636, 9987, 13, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2890, 16, 803, 16, 14, 1968, 16, 636, 9987, 4672, 309, 365, 6315, 3535, 30, 589, 273, 365, 6315, 266, 1458, 67, 2630, 12, 529, 16, 803, 16, 14, 1968, 16, 636, 9987, 13, 3...
if cwd != None:
if cwd is not None:
def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)"""
d9d8e95d201f8665ecddddf49cd22a62908564ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9d8e95d201f8665ecddddf49cd22a62908564ee/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 67, 3624, 12, 2890, 16, 833, 16, 9070, 16, 675, 4177, 67, 4293, 16, 1746, 67, 74, 2377, 16, 7239, 16, 1550, 16, 26182, 67, 31276, 16, 11850, 1376, 16, 6710, 7133, 16, 5972...
if uidmin <= userid <= uidmax: return 1
if userid == uidmin: print username, userid return False elif uidmin < userid <= uidmax: return True
def isnormal(username): userid = int(pwd.getpwnam(username)[2]) #FIXME: Temporary fix for: https://bugs.launchpad.net/bugs/286529 if userid == "1000" or userid == "500": return 0 logindefs = open('/etc/login.defs') uidminmax = re.compile('^UID_(?:MIN|MAX)\s+(\d+)',re.M).findall(logindefs.read()) if uidminmax[0] < uidminmax[1]: uidmin = int(uidminmax[0]) uidmax = int(uidminmax[1]) else: uidmin = int(uidminmax[1]) uidmax = int(uidminmax[0]) if uidmin <= userid <= uidmax: return 1 else: return 0
bc3f8d334f44f36a68068a3c69525ff270e58205 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/bc3f8d334f44f36a68068a3c69525ff270e58205/timekpr-gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5177, 1687, 12, 5053, 4672, 6709, 273, 509, 12, 27487, 18, 588, 14921, 17808, 12, 5053, 25146, 22, 5717, 468, 25810, 30, 22791, 2917, 364, 30, 2333, 2207, 19381, 18, 20738, 6982, 18, 275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5177, 1687, 12, 5053, 4672, 6709, 273, 509, 12, 27487, 18, 588, 14921, 17808, 12, 5053, 25146, 22, 5717, 468, 25810, 30, 22791, 2917, 364, 30, 2333, 2207, 19381, 18, 20738, 6982, 18, 275...
raise ValueError, "The input idea must be nonzero"
raise ValueError, "The input ideal must be nonzero"
def ramification_index(self): r""" Return the ramification index of this ideal, assuming it is prime and nonzero. Otherwise, raise a ValueError.
8a34d743e6f2a73e726c0d73b5ddc708adaecc78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8a34d743e6f2a73e726c0d73b5ddc708adaecc78/number_field_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24975, 1480, 67, 1615, 12, 2890, 4672, 436, 8395, 2000, 326, 24975, 1480, 770, 434, 333, 23349, 16, 15144, 518, 353, 17014, 471, 16966, 18, 225, 5272, 16, 1002, 279, 2068, 18, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24975, 1480, 67, 1615, 12, 2890, 4672, 436, 8395, 2000, 326, 24975, 1480, 770, 434, 333, 23349, 16, 15144, 518, 353, 17014, 471, 16966, 18, 225, 5272, 16, 1002, 279, 2068, 18, 2, -100, ...
print "DND!!!!"
def is_dnd(self): """Checks if contact is DoNotDisturb The contact is DND if its resource with the highest priority is DND """ max_prio = self.resources[0]['priority'] max_prio_show = self.resources[0]['show'] for res in self.resources: # TODO: check RFC for behaviour when 2 resources have identical priority if res['priority'] > max_prio: max_prio = res['priority'] max_prio_show = res['show'] if max_prio_show == u'dnd': print "DND!!!!" return True else: return False
a1cc2264545cca0c4816c4c22adeab84d31909fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/a1cc2264545cca0c4816c4c22adeab84d31909fd/xmppbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 72, 4880, 12, 2890, 4672, 3536, 4081, 309, 5388, 353, 2256, 1248, 5133, 15850, 225, 1021, 5388, 353, 463, 2908, 309, 2097, 1058, 598, 326, 9742, 4394, 353, 463, 2908, 3536, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 72, 4880, 12, 2890, 4672, 3536, 4081, 309, 5388, 353, 2256, 1248, 5133, 15850, 225, 1021, 5388, 353, 463, 2908, 309, 2097, 1058, 598, 326, 9742, 4394, 353, 463, 2908, 3536, 225,...
self.elc = ELConnection(self.user_txt.get_text(), self.passwd_txt.get_text(), host='game.eternal-lands.com', port=2001) self.elc.connect() if not self.elc.is_connected(): self.show_error('Login failed!')
if self.__login_check(self.user_txt.get_text(), self.passwd_txt.get_text()): self.LOG_IN_OK = True self.window.hide() self.destroy(None)
def login(self, widget, data=None): """Check the username & pass textboxes. If not empty, create a new ELConnection""" if len(self.user_txt.get_text()) >= 3 and len(self.passwd_txt.get_text()) > 0: self.elc = ELConnection(self.user_txt.get_text(), self.passwd_txt.get_text(), host='game.eternal-lands.com', port=2001) self.elc.connect() if not self.elc.is_connected(): self.show_error('Login failed!') else: self.show_error('Please enter a valid password and username')
e9336a953df9a043de95a448a1f396dd28003dde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5162/e9336a953df9a043de95a448a1f396dd28003dde/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 3536, 1564, 326, 2718, 473, 1342, 977, 15918, 18, 971, 486, 1008, 16, 752, 279, 394, 14801, 1952, 8395, 309, 562, 12, 2890, 18, 1355,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3925, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 3536, 1564, 326, 2718, 473, 1342, 977, 15918, 18, 971, 486, 1008, 16, 752, 279, 394, 14801, 1952, 8395, 309, 562, 12, 2890, 18, 1355,...
return self.init_module.application
return self.init_module.application, None
def find_application(self, environ): if (self.init_module and getattr(self.init_module, 'application', None) and not environ.get('paste.urlparser.init_application') == environ['SCRIPT_NAME']): environ['paste.urlparser.init_application'] = environ['SCRIPT_NAME'] return self.init_module.application name, rest_of_path = wsgilib.path_info_split(environ['PATH_INFO']) environ['PATH_INFO'] = rest_of_path if name is not None: environ['SCRIPT_NAME'] = environ.get('SCRIPT_NAME', '') + '/' + name if not name: names = self.option(environ, 'index_names') or [] for index_name in names: filename = self.find_file(environ, index_name) if filename: break else: # None of the index files found filename = None else: filename = self.find_file(environ, name) if filename is None: return None, filename else: return self.get_application(environ, filename), filename
3bd7a262a1951091200b06a0628a0676a711beaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3bd7a262a1951091200b06a0628a0676a711beaf/urlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3685, 12, 2890, 16, 5473, 4672, 309, 261, 2890, 18, 2738, 67, 2978, 471, 3869, 12, 2890, 18, 2738, 67, 2978, 16, 296, 3685, 2187, 599, 13, 471, 486, 5473, 18, 588, 2668, 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, 1104, 67, 3685, 12, 2890, 16, 5473, 4672, 309, 261, 2890, 18, 2738, 67, 2978, 471, 3869, 12, 2890, 18, 2738, 67, 2978, 16, 296, 3685, 2187, 599, 13, 471, 486, 5473, 18, 588, 2668, 29...
self.min = math.log(self.min) self.max = math.log(self.max) self.mid = (self.min + self.max) / 2.0 self.scale = math.pi / float(self.max - self.min)
self.mid = (math.log(self.min) + math.log(self.max)) / 2.0 self.scale = math.pi / float(math.log(self.max) - math.log(self.min))
def __init__(self, min, max, n): Bins.__init__(self, min, max, n) self.min = math.log(self.min) self.max = math.log(self.max) self.mid = (self.min + self.max) / 2.0 self.scale = math.pi / float(self.max - self.min) self.delta = 1.0 / n
cc78d51aa09f39eb5ebfdb8665062f12c737b0fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/cc78d51aa09f39eb5ebfdb8665062f12c737b0fe/rate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1131, 16, 943, 16, 290, 4672, 605, 2679, 16186, 2738, 972, 12, 2890, 16, 1131, 16, 943, 16, 290, 13, 365, 18, 13138, 273, 261, 15949, 18, 1330, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1131, 16, 943, 16, 290, 4672, 605, 2679, 16186, 2738, 972, 12, 2890, 16, 1131, 16, 943, 16, 290, 13, 365, 18, 13138, 273, 261, 15949, 18, 1330, 12, 289...
out.append(ch)
out.append(val) l = ['', s] tokenize.tokenize(l.pop, eater)
def indentify(s): out = [] stack = [] for ch in s: if ch in ['[', '(', '{']: stack.append(ch) elif ch in [']', ')', '}']: stack.pop() if ch == '\t': out.append(' '*len(stack)) else: out.append(ch) return string.join(out, '')
8fe5bd8521c56292cbda81a5e16ab51d100d5840 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8fe5bd8521c56292cbda81a5e16ab51d100d5840/aot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3504, 1164, 12, 87, 4672, 596, 273, 5378, 2110, 273, 5378, 364, 462, 316, 272, 30, 309, 462, 316, 10228, 63, 2187, 7747, 2187, 2292, 3546, 30, 2110, 18, 6923, 12, 343, 13, 1327, 462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3504, 1164, 12, 87, 4672, 596, 273, 5378, 2110, 273, 5378, 364, 462, 316, 272, 30, 309, 462, 316, 10228, 63, 2187, 7747, 2187, 2292, 3546, 30, 2110, 18, 6923, 12, 343, 13, 1327, 462, ...
self["ButtonRedtext"].setText(_("Close"))
self["key_red"].setText(_("Close"))
def closeInfo(self): self["shortcuts"].setEnabled(True) self["infoshortcuts"].setEnabled(False) self["InfoText"].hide() self["InfoTextBorder"].hide() self["ButtonRedtext"].setText(_("Close"))
18dcac668d46858377cc8c1ac55fc72fa62ecc0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/18dcac668d46858377cc8c1ac55fc72fa62ecc0e/NetworkSetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 966, 12, 2890, 4672, 365, 9614, 24744, 87, 6, 8009, 542, 1526, 12, 5510, 13, 365, 9614, 18227, 15571, 5150, 87, 6, 8009, 542, 1526, 12, 8381, 13, 365, 9614, 966, 1528, 6, 8009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 966, 12, 2890, 4672, 365, 9614, 24744, 87, 6, 8009, 542, 1526, 12, 5510, 13, 365, 9614, 18227, 15571, 5150, 87, 6, 8009, 542, 1526, 12, 8381, 13, 365, 9614, 966, 1528, 6, 8009, ...
if self.cp.has_option("hooks", "get_hostname"):
if self.cp.has_option("hooks", "get_hostname_path"):
def setup(self, config_file): """ Setup config object according to config_file content. """
8667a21147a53f85f3605fc77a2bf14ef85e1e9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/8667a21147a53f85f3605fc77a2bf14ef85e1e9b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 16, 642, 67, 768, 4672, 3536, 10939, 642, 733, 4888, 358, 642, 67, 768, 913, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ignore_list = ['skey', 'rkey']
ignore_list = ['skey', 'rkey', 'prj_changed']
def getRequestParams(self, REQUEST=None): """ Returns a REQUEST.QUERY_STRING (using REQUEST.form, REQUEST.form=REQUEST.QUERY_STRING as a dictionary) """ ignore_list = ['skey', 'rkey'] res='' if REQUEST: for key in self.REQUEST.form.keys(): if key not in ignore_list: p_value = self.REQUEST.form[key] if type(p_value) == type([]): l_name = '&%s:list=' % key p_all = l_name.join(p_value) res = res + key + ':list=' + str(p_all) + '&' else: res = res + key + '=' + str(p_value) + '&' return res
a5d7f4f667d1677c99b4aa16e652e4ff5634670a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/a5d7f4f667d1677c99b4aa16e652e4ff5634670a/SMAPSite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4328, 1370, 12, 2890, 16, 12492, 33, 7036, 4672, 3536, 2860, 279, 12492, 18, 10753, 67, 5804, 261, 9940, 12492, 18, 687, 16, 12492, 18, 687, 33, 5519, 18, 10753, 67, 5804, 487, 279, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4328, 1370, 12, 2890, 16, 12492, 33, 7036, 4672, 3536, 2860, 279, 12492, 18, 10753, 67, 5804, 261, 9940, 12492, 18, 687, 16, 12492, 18, 687, 33, 5519, 18, 10753, 67, 5804, 487, 279, 38...
entry = (reponame, repoinfo, None, err)
class InvalidRepo(tuple): message = lambda self: self[0] date = lambda self: self[1] entry = (reponame, repoinfo, None, InvalidRepo((exception_to_unicode(err), 0)))
def _render_repository_index(self, context, all_repositories, order, desc): context.perm.require('BROWSER_VIEW')
ed78c13b60626a62d98e389fd13353c6285b72d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/ed78c13b60626a62d98e389fd13353c6285b72d0/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 9071, 67, 1615, 12, 2890, 16, 819, 16, 777, 67, 26626, 16, 1353, 16, 3044, 4672, 819, 18, 12160, 18, 6528, 2668, 38, 24846, 67, 12145, 6134, 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, 389, 5902, 67, 9071, 67, 1615, 12, 2890, 16, 819, 16, 777, 67, 26626, 16, 1353, 16, 3044, 4672, 819, 18, 12160, 18, 6528, 2668, 38, 24846, 67, 12145, 6134, 2, -100, -100, -100, -100, ...
result = []
pass
def extPaths(): """Return a list of paths to search for extensions and plugins.""" PLATFORM = platform.system().lower() if PLATFORM == 'windows': # load paths from registry import _winreg import win32con # Find the P6 path KEY_PATH = [win32con.HKEY_LOCAL_MACHINE, 'SOFTWARE', 'P6', ] p6key = KEY_PATH[0] for k in KEY_PATH[1:]: p6key = _winreg.OpenKey(p6key, k) P6_SHARE_PATH = _winreg.QueryValueEx(p6key, 'SharedPath')[0] p6_ext_path = os.path.join(P6_SHARE_PATH, 'extensions') if os.path.exists(p6_ext_path): results.append(p6_ext_path) elif PLATFORM == 'linux': # always look in the current working directory # XXX Should this go away? It's sorta needed for dev work result = [os.path.dirname(__file__)] # check if the autopackage non-root share exists ap_local_path = os.path.join(os.path.expanduser('~'), '.local', 'ccpublisher', 'extensions') if os.path.exists(ap_local_path): result.append(ap_local_path) # check for the global autopackage share ap_root_path = os.path.join('/', 'usr', 'local', 'share', 'p6', 'extensions') if os.path.exists(ap_root_path): result.append(ap_root_path) elif PLATFORM == 'darwin': pass else: result = [] print result return result
07423b23d56ef5c719744b229f8f0d76d581bdd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2607/07423b23d56ef5c719744b229f8f0d76d581bdd7/extension.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1110, 4466, 13332, 3536, 990, 279, 666, 434, 2953, 358, 1623, 364, 4418, 471, 4799, 12123, 453, 12190, 4983, 273, 4072, 18, 4299, 7675, 8167, 1435, 225, 309, 453, 12190, 4983, 422, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1110, 4466, 13332, 3536, 990, 279, 666, 434, 2953, 358, 1623, 364, 4418, 471, 4799, 12123, 453, 12190, 4983, 273, 4072, 18, 4299, 7675, 8167, 1435, 225, 309, 453, 12190, 4983, 422, 296, ...
assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL)
assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL)
def test_degrees(self): if not 'rmodelwrap' in self.res2.__module__: assert_almost_equal(self.res1.model.df_model,self.res2.df_model, DECIMAL) assert_almost_equal(self.res1.model.df_resid,self.res2.df_resid, DECIMAL)
74679194056e9f17f68527ec6d607fc36e1318b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/74679194056e9f17f68527ec6d607fc36e1318b1/test_glm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 26943, 12, 2890, 4672, 309, 486, 296, 86, 2284, 4113, 11, 316, 365, 18, 455, 22, 16186, 2978, 972, 30, 1815, 67, 287, 10329, 67, 9729, 12, 2890, 18, 455, 21, 18, 2284, 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, 1842, 67, 26943, 12, 2890, 4672, 309, 486, 296, 86, 2284, 4113, 11, 316, 365, 18, 455, 22, 16186, 2978, 972, 30, 1815, 67, 287, 10329, 67, 9729, 12, 2890, 18, 455, 21, 18, 2284, 18, ...
icursor = icursor-1
def __normalize(self, event=None): ew = event.widget contents = ew.get() icursor = ew.index(INSERT) if contents == '': contents = '0' # figure out what the contents value is in the current base try: if self.__hexp.get(): v = string.atoi(contents, 16) else: v = string.atoi(contents) except ValueError: v = None # if value is not legal, delete the last character inserted and ring # the bell if v is None or v < 0 or v > 255: i = ew.index(INSERT) contents = contents[:i-1] + contents[i:] ew.bell() icursor = icursor-1 elif self.__hexp.get(): contents = hex(v) else: contents = int(v) ew.delete(0, END) ew.insert(0, contents) ew.icursor(icursor)
32d9b9b448f52d2bbfdadc7480c8b92d50692597 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/32d9b9b448f52d2bbfdadc7480c8b92d50692597/TypeinViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12237, 12, 2890, 16, 871, 33, 7036, 4672, 22722, 273, 871, 18, 6587, 2939, 273, 22722, 18, 588, 1435, 277, 9216, 273, 22722, 18, 1615, 12, 11356, 13, 309, 2939, 422, 875, 30, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12237, 12, 2890, 16, 871, 33, 7036, 4672, 22722, 273, 871, 18, 6587, 2939, 273, 22722, 18, 588, 1435, 277, 9216, 273, 22722, 18, 1615, 12, 11356, 13, 309, 2939, 422, 875, 30, 293...
if os.path.split(i[0])[1] == 'CVS': continue if os.path.split(i[0])[1] == '.svn': continue
dirs = i[0].split('/') if 'CVS' in dirs: continue if '.svn' in dirs: continue
def list_directory(path): tree = os.walk(path) for i in tree: if os.path.split(i[0])[1] == 'CVS': continue if os.path.split(i[0])[1] == '.svn': continue for file in i[2]: if file.startswith('.#'): continue if file == '.DS_Store': continue print os.path.join(i[0], file) + ' \\'
4a1191d34e4c69e41d1b0ad6e58bb439d21562bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6321/4a1191d34e4c69e41d1b0ad6e58bb439d21562bb/list_files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 5149, 12, 803, 4672, 2151, 273, 1140, 18, 11348, 12, 803, 13, 364, 277, 316, 2151, 30, 7717, 273, 277, 63, 20, 8009, 4939, 2668, 2473, 13, 309, 296, 39, 14640, 11, 316, 7717...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 67, 5149, 12, 803, 4672, 2151, 273, 1140, 18, 11348, 12, 803, 13, 364, 277, 316, 2151, 30, 7717, 273, 277, 63, 20, 8009, 4939, 2668, 2473, 13, 309, 296, 39, 14640, 11, 316, 7717...
partreg = '(?P<' + var + '>' + default + ')' if self.defaults.has_key(var) and not moregaps: reg = '(/' + partreg + ')?'
partreg = '(?P<' + var + '>[^/]+)' if self.reqs.has_key(var): noreqs = False if noreqs: if self.reqs.has_key(var) and self.defaults.has_key(var): reg = '(/' + partreg + rest + ')?' elif self.reqs.has_key(var): allblank = False reg = '(/' + partreg + ')' + rest elif self.defaults.has_key(var): reg = '(/' + partreg + ')?' + rest else: allblank = False reg = '(/' + partreg + ')' + rest
def buildnextreg(self, path, clist): default = '[^/]+' part = path[0] reg = '' (rest, moregaps) = ('', False) if len(path[1:]) > 0: (rest, moregaps) = self.buildnextreg(path[1:], clist) gaps = False if part.startswith(':'): var = part[1:] partreg = '' if self.reqs.has_key(var) and self.defaults.has_key(var) and not moregaps: gaps = True reg = '(/(?P<' + var + '>' + self.reqs[var] + ')?' reg = reg + rest elif self.reqs.has_key(var) and self.defaults.has_key(var) and moregaps: gaps = True reg = '(/(?P<' + var + '>' + self.reqs[var] + ')' reg = reg + rest elif self.reqs.has_key(var) and not self.defaults.has_key(var) and moregaps: reg = '(/(?P<' + var + '>' + self.reqs[var] + ')' reg = reg + '(' + rest + ')?' if self.reqs.has_key(var): gaps = True partreg = '(?P<' + var + '>' + self.reqs[var] + ')' elif var == 'controller': gaps = True partreg = '(?P<' + var + '>' + '|'.join(clist) + ')' else: partreg = '(?P<' + var + '>' + default + ')' if self.defaults.has_key(var) and not moregaps: reg = '(/' + partreg + ')?' else: reg = '/' + partreg elif part.startswith('*'): var = part[1:] reg = '(/' + '(?P<' + var + '>.*))*' else: gaps = True reg = '/' + part if moregaps and gaps: reg = '(' + reg + rest + ')?' else: reg = reg + rest return (reg, gaps)
d81bae157cb6d2bb0c6c006f5ed0836b19d297a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/d81bae157cb6d2bb0c6c006f5ed0836b19d297a3/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 805, 273, 5271, 66, 19, 30658, 1087, 273, 589, 63, 20, 65, 960, 273, 875, 261, 8792, 16, 1898, 75, 6679, 13, 273, 7707, 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, 1361, 4285, 1574, 12, 2890, 16, 589, 16, 927, 376, 4672, 805, 273, 5271, 66, 19, 30658, 1087, 273, 589, 63, 20, 65, 960, 273, 875, 261, 8792, 16, 1898, 75, 6679, 13, 273, 7707, 2187,...
if (os.path.exists(working)):
if (os.path.exists(working)) and not options.local:
def main(options, args): revision = options.revert or options.merge # Initialize some variables used below. They can be overwritten by # the drover.properties file. BASE_URL = "svn://svn.chromium.org/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = BASE_URL + "/branches/$branch/src" SKIP_CHECK_WORKING = True PROMPT_FOR_AUTHOR = False DEFAULT_WORKING = "drover_" + str(revision) if options.branch: DEFAULT_WORKING += ("_" + options.branch) if not isMinimumSVNVersion(1,5): print "You need to use at least SVN version 1.5.x" sys.exit(1) # Override the default properties if there is a drover.properties file. global file_pattern_ if os.path.exists("drover.properties"): file = open("drover.properties") exec(file) file.close() if FILE_PATTERN: file_pattern_ = FILE_PATTERN if options.revert and options.branch: url = BRANCH_URL.replace("$branch", options.branch) elif options.merge and options.sbranch: url = BRANCH_URL.replace("$branch", options.sbranch) else: url = TRUNK_URL working = options.workdir or DEFAULT_WORKING command = 'svn log ' + url + " -r "+str(revision) + " -v" os.system(command) if not (options.revertbot or prompt("Is this the correct revision?")): sys.exit(0) if (os.path.exists(working)): if not (options.revertbot or SKIP_CHECK_WORKING or prompt("Working directory: '%s' already exists, clobber?" % working)): sys.exit(0) deltree(working) os.makedirs(working) os.chdir(working) if options.merge: action = "Merge" branch_url = BRANCH_URL.replace("$branch", options.branch) # Checkout everything but stuff that got added into a new dir checkoutRevision(url, revision, branch_url) # Merge everything that changed mergeRevision(url, revision) # "Export" files that were added from the source and add them to branch exportRevision(url, revision) # Delete directories that were deleted (file deletes are handled in the # merge). deleteRevision(url, revision) elif options.revert: action = "Revert" if options.branch: url = BRANCH_URL.replace("$branch", options.branch) checkoutRevision(url, revision, url, True) revertRevision(url, revision) revertExportRevision(url, revision) # Check the base url so we actually find the author who made the change if options.auditor: author = options.auditor else: author = getAuthor(url, revision) if not author: author = getAuthor(TRUNK_URL, revision) filename = str(revision)+".txt" out = open(filename,"w") out.write(action +" " + str(revision) + " - ") out.write(getRevisionLog(url, revision)) if (author): out.write("TBR=" + author) out.close() change_cmd = 'change ' + str(revision) + " " + filename if options.revertbot: change_cmd += ' --silent' runGcl(change_cmd) os.unlink(filename) print author print revision print ("gcl upload " + str(revision) + " --send_mail --no_try --no_presubmit --reviewers=" + author) if options.revertbot or prompt("Would you like to upload?"): if PROMPT_FOR_AUTHOR: author = text_prompt("Enter new author or press enter to accept default", author) if options.revertbot and options.revertbot_reviewers: author += "," author += options.revertbot_reviewers gclUpload(revision, author) else: print "Deleting the changelist." print "gcl delete " + str(revision) runGcl("delete " + str(revision)) sys.exit(0) # We commit if the reverbot is set to commit automatically, or if this is # not the revertbot and the user agrees. if options.revertbot_commit or (not options.revertbot and prompt("Would you like to commit?")): print "gcl commit " + str(revision) + " --no_presubmit --force" runGcl("commit " + str(revision) + " --no_presubmit --force") else: sys.exit(0)
d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/d42a8acd1d66ae2ca28a46c1c9f84911bda1b3ad/drover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 6350, 273, 702, 18, 266, 1097, 578, 702, 18, 2702, 225, 468, 9190, 2690, 3152, 1399, 5712, 18, 16448, 848, 506, 15345, 635, 468, 326, 31473, 502, 18, 473...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 6350, 273, 702, 18, 266, 1097, 578, 702, 18, 2702, 225, 468, 9190, 2690, 3152, 1399, 5712, 18, 16448, 848, 506, 15345, 635, 468, 326, 31473, 502, 18, 473...
self.update() gdata.mainGameDlg.update()
if not all: self.win.setStatus(_('Command has been executed.')) if item.text == gdata.fleetActions[FLACTION_WAIT]: fleet = client.get(self.fleetID,forceUpdate=1) self.update() gdata.mainGameDlg.update()
def onDeleteCommand(self, widget, action, data): sel = self.win.vCommands.selection if not sel: self.win.setStatus(_('Select command to delete.')) return item = sel[0] try: self.win.setStatus(_('Executing DELETE COMMAND command...')) fleet = client.get(self.fleetID, noUpdate = 1) fleet.actions, fleet.actionIndex = client.cmdProxy.deleteAction(self.fleetID, item.tIndex - 1) self.win.setStatus(_('Command has been executed.')) self.win.vCommands.selection = [] self.update() gdata.mainGameDlg.update() return 0 except ige.GameException, e: self.win.setStatus(_(e.args[0])) return 1
a1ab413385848f02ac7e74bc03b3a1510af6989e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10927/a1ab413385848f02ac7e74bc03b3a1510af6989e/FleetDlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20468, 2189, 12, 2890, 16, 3604, 16, 1301, 16, 501, 4672, 357, 273, 365, 18, 8082, 18, 90, 9127, 18, 10705, 309, 486, 357, 30, 365, 18, 8082, 18, 542, 1482, 24899, 2668, 3391, 1296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20468, 2189, 12, 2890, 16, 3604, 16, 1301, 16, 501, 4672, 357, 273, 365, 18, 8082, 18, 90, 9127, 18, 10705, 309, 486, 357, 30, 365, 18, 8082, 18, 542, 1482, 24899, 2668, 3391, 1296, ...
w += '="%s%%"' % width
w += '="%s"' % width
def dump_text(self, elem, stylizer, page, tag_stack=[]): if not isinstance(elem.tag, basestring) \ or namespace(elem.tag) != XHTML_NS: return []
37cde21c6d96b9b385f85d543227b0b3806db879 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/37cde21c6d96b9b385f85d543227b0b3806db879/pmlml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 955, 12, 2890, 16, 3659, 16, 16253, 80, 1824, 16, 1363, 16, 1047, 67, 3772, 33, 8526, 4672, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 1981, 12, 10037, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 67, 955, 12, 2890, 16, 3659, 16, 16253, 80, 1824, 16, 1363, 16, 1047, 67, 3772, 33, 8526, 4672, 309, 486, 1549, 12, 10037, 18, 2692, 16, 10699, 13, 521, 578, 1981, 12, 10037, 1...
if __name__ == "__main__": web.run(urls, globals())
web.webapi.internalerror = web.debugerror web.wsgi.runwsgi(web.webapi.wsgifunc(web.webpyfunc(urls, globals())))
def register_callback(sdRef, flags, errorCode, name, regtype, domain): if errorCode == pybonjour.kDNSServiceErr_NoError: print 'Registered service:' print ' name =', name print ' regtype =', regtype print ' domain =', domain
9f8d9088243e0738f7641a27e2c407059d11506e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8691/9f8d9088243e0738f7641a27e2c407059d11506e/spydaap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 3394, 12, 6427, 1957, 16, 2943, 16, 12079, 16, 508, 16, 960, 723, 16, 2461, 4672, 309, 12079, 422, 2395, 18688, 78, 477, 18, 79, 11602, 1179, 2524, 67, 2279, 668, 30, 1172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 67, 3394, 12, 6427, 1957, 16, 2943, 16, 12079, 16, 508, 16, 960, 723, 16, 2461, 4672, 309, 12079, 422, 2395, 18688, 78, 477, 18, 79, 11602, 1179, 2524, 67, 2279, 668, 30, 1172, ...
seg.type = type
seg.type = segtype
def SetSegmentType(segea, type): """ Set segment type @param segea: any address within segment @param type: new segment type: @return: !=0 - ok """ seg = idaapi.getseg(segea) if not seg: return False seg.type = type return seg.update()
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 4131, 559, 12, 307, 908, 69, 16, 618, 4672, 3536, 1000, 3267, 618, 225, 632, 891, 695, 908, 69, 30, 1281, 1758, 3470, 3267, 632, 891, 618, 30, 394, 3267, 618, 30, 225, 632, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 4131, 559, 12, 307, 908, 69, 16, 618, 4672, 3536, 1000, 3267, 618, 225, 632, 891, 695, 908, 69, 30, 1281, 1758, 3470, 3267, 632, 891, 618, 30, 394, 3267, 618, 30, 225, 632, 246...
- ``cliquer`` - This wraps the C program Cliquer, [1].
- ``cliquer`` - This wraps the C program Cliquer [NisOst2003]_.
def cliques_vertex_clique_number(self, algorithm="cliquer", vertices=None, with_labels=False, cliques=None): r""" Returns a list of sizes of the largest maximal cliques containing each vertex. (Returns a single value if only one input vertex). NOTES: - Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. INPUT: - ``algorithm`` - either ``cliquer`` or ``networkx`` - ``cliquer`` - This wraps the C program Cliquer, [1]. - ``networkx`` - This function is based on Networkx's implementation of the Bron and Kerbosch Algorithm, [2].
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, 4942, 29896, 67, 15281, 67, 4857, 1857, 67, 2696, 12, 2890, 16, 4886, 1546, 4857, 25734, 3113, 6928, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 4942, 29896, 33, 7036, 4672, 436, 8395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4942, 29896, 67, 15281, 67, 4857, 1857, 67, 2696, 12, 2890, 16, 4886, 1546, 4857, 25734, 3113, 6928, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 4942, 29896, 33, 7036, 4672, 436, 8395, ...
to_add = self._to_add fs = self.fs if isinstance(handler, Folder): if fs.exists(key): git_path = fs.get_absolute_path('.git') to_del = [ fs.get_relative_path(path) for path in fs.traverse(key) if not fs.is_folder(path) and not path.startswith(git_path) ]
if not isinstance(handler, Folder): self._discard_handler(key) if key in self.added: self.added.remove(key)
def del_handler(self, key): key = self.normalize_key(key) handler = self.get_handler(key) to_add = self._to_add fs = self.fs
3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 67, 4176, 12, 2890, 16, 498, 4672, 498, 273, 365, 18, 12237, 67, 856, 12, 856, 13, 1838, 273, 365, 18, 588, 67, 4176, 12, 856, 13, 358, 67, 1289, 273, 365, 6315, 869, 67, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 67, 4176, 12, 2890, 16, 498, 4672, 498, 273, 365, 18, 12237, 67, 856, 12, 856, 13, 1838, 273, 365, 18, 588, 67, 4176, 12, 856, 13, 358, 67, 1289, 273, 365, 6315, 869, 67, 128...
amount = fields.Numeric('Amount', digits=(16, 2))
currency_digits = fields.Function('get_currency_digits', type='integer', string='Currency Digits', on_change_with=['move_line']) amount = fields.Numeric('Amount', digits="(16, currency_digits)", depends=['currency_digits'])
def update_tax(self, cursor, user, tax, template2tax_code, template2account, context=None, template2tax=None): ''' Update recursively taxes based on template.
44fa088c2f8531f936fefd035247a59ebef9c472 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/44fa088c2f8531f936fefd035247a59ebef9c472/tax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 8066, 12, 2890, 16, 3347, 16, 729, 16, 5320, 16, 1542, 22, 8066, 67, 710, 16, 1542, 22, 4631, 16, 819, 33, 7036, 16, 1542, 22, 8066, 33, 7036, 4672, 9163, 2315, 8536, 5320,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 8066, 12, 2890, 16, 3347, 16, 729, 16, 5320, 16, 1542, 22, 8066, 67, 710, 16, 1542, 22, 4631, 16, 819, 33, 7036, 16, 1542, 22, 8066, 33, 7036, 4672, 9163, 2315, 8536, 5320,...
host_info[s[0].strip()] = s[1].strip()
if s[0] == 'MemTotal': mem_total = int(int(s[1].split()[0].strip()) / 1024) host_info[s[0].strip()] = mem_total elif s[0] == 'MemFree': mem_free = int(int(s[1].split()[0].strip()) / 1024) host_info[s[0].strip()] = mem_free else: host_info[s[0].strip()] = s[1].strip()
def get_host_info(self, platform): host_info = {} host_info['os'] = platform if platform in ('linux', 'linux2', 'cygwin'): cpuinfo = open('/proc/cpuinfo','r').readlines() cpus = 0 for line in cpuinfo: if 'processor' in line: cpus += 1 s = line.split(':') if s != ['\n']: host_info[s[0].strip()] = s[1].strip() host_info['cpus'] = cpus
2a3b734e6337d05cdeda26f0d3fe3bd43db716a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2a3b734e6337d05cdeda26f0d3fe3bd43db716a5/hostinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2564, 67, 1376, 12, 2890, 16, 4072, 4672, 1479, 67, 1376, 273, 2618, 1479, 67, 1376, 3292, 538, 3546, 273, 4072, 309, 4072, 316, 7707, 20132, 2187, 296, 20132, 22, 2187, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2564, 67, 1376, 12, 2890, 16, 4072, 4672, 1479, 67, 1376, 273, 2618, 1479, 67, 1376, 3292, 538, 3546, 273, 4072, 309, 4072, 316, 7707, 20132, 2187, 296, 20132, 22, 2187, 296, ...
weighted or not. See self.weighted()
weighted or not. See ``self.weighted()``
def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. INPUT: - ``partition`` - if given, the canonical label with respect to this partition will be computed. The default is the unit partition. - ``certify`` - if True, a dictionary mapping from the (di)graph to its canonical label will be given. - ``verbosity`` - gets passed to nice: prints helpful output. - ``edge_labels`` - default False, otherwise allows only permutations respecting edge labels. EXAMPLES:: sage: D = graphs.DodecahedralGraph() sage: E = D.canonical_label(); E Dodecahedron: Graph on 20 vertices sage: D.canonical_label(certify=True) (Dodecahedron: Graph on 20 vertices, {0: 0, 1: 19, 2: 16, 3: 15, 4: 9, 5: 1, 6: 10, 7: 8, 8: 14, 9: 12, 10: 17, 11: 11, 12: 5, 13: 6, 14: 2, 15: 4, 16: 3, 17: 7, 18: 13, 19: 18}) sage: D.is_isomorphic(E) True Multigraphs:: sage: G = Graph(multiedges=True,sparse=True) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.add_edge((0,1)) sage: G.canonical_label() Multi-graph on 2 vertices sage: Graph('A?', implementation='c_graph').canonical_label() Graph on 2 vertices
a1371df28f1a50021d7507de4e96bdcb7caafce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a1371df28f1a50021d7507de4e96bdcb7caafce8/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7378, 67, 1925, 12, 2890, 16, 3590, 33, 7036, 16, 3320, 1164, 33, 8381, 16, 11561, 33, 20, 16, 3591, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 7378, 1433, 598, 8762, 358, 326, 3590, ...
self.tk.call(self._w, 'delete', 'entry', entry)
self.tk.call(self._w, 'delete', 'entry', entry)
def delete_entry(self, entry):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 4099, 12, 2890, 16, 1241, 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, 1430, 67, 4099, 12, 2890, 16, 1241, 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,...
if isinstance(l,list):
if isinstance(l, list):
def phi(self, l): r""" Projects state arrays to their algebraic representation.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7706, 12, 2890, 16, 328, 4672, 436, 8395, 30491, 919, 5352, 358, 3675, 524, 29087, 335, 4335, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7706, 12, 2890, 16, 328, 4672, 436, 8395, 30491, 919, 5352, 358, 3675, 524, 29087, 335, 4335, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
new_res_id = create_record(msg)
new_res_id, attachment_ids = create_record(msg)
def create_record(msg): if hasattr(model_pool, 'message_new'): res_id = model_pool.message_new(cr, uid, msg, context) else: data = { 'name': msg.get('subject'), 'email_from': msg.get('from'), 'email_cc': msg.get('cc'), 'user_id': False, 'description': msg.get('body'), 'state' : 'draft', } data.update(self.get_partner(cr, uid, msg.get('from'), context=context)) res_id = model_pool.create(cr, uid, data, context=context)
25f3c114cde830404ca9430e1cd75cadc8bfd6fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/25f3c114cde830404ca9430e1cd75cadc8bfd6fd/mail_gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3366, 12, 3576, 4672, 309, 3859, 12, 2284, 67, 6011, 16, 296, 2150, 67, 2704, 11, 4672, 400, 67, 350, 273, 938, 67, 6011, 18, 2150, 67, 2704, 12, 3353, 16, 4555, 16, 1234, ...
return out, err
return out
def _read(self): if self.closed: raise DataError('Cannot read from a closed process') err = self.stderr.read() out = self.stdout.read() self.close() return out, err
2eeca91c189c12c090a519de7775b97e9e4d0b40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/2eeca91c189c12c090a519de7775b97e9e4d0b40/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 309, 365, 18, 12204, 30, 1002, 1910, 668, 2668, 4515, 855, 628, 279, 4375, 1207, 6134, 393, 273, 365, 18, 11241, 18, 896, 1435, 596, 273, 365, 18, 10283, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 309, 365, 18, 12204, 30, 1002, 1910, 668, 2668, 4515, 855, 628, 279, 4375, 1207, 6134, 393, 273, 365, 18, 11241, 18, 896, 1435, 596, 273, 365, 18, 10283, 18, ...
if len(choice) == 0 or choice[0] in ['y', 'n']:
if len(choice) == 0 or choice in ['y', 'n', 'yes', 'no']:
def userconfirm(self): """gets a yes or no from the user, defaults to No"""
b8284b868d16b478a80222f79b226d60a4fe7433 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/b8284b868d16b478a80222f79b226d60a4fe7433/output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 10927, 12, 2890, 4672, 3536, 14665, 279, 12465, 578, 1158, 628, 326, 729, 16, 3467, 358, 2631, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 729, 10927, 12, 2890, 4672, 3536, 14665, 279, 12465, 578, 1158, 628, 326, 729, 16, 3467, 358, 2631, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if newnick.startswith(cfg.dc_to_irc_prefix): self.sendLine( ":%s KILL %s :%s (nick reserved for Dtella)" % (cfg.my_host, newnick, cfg.my_host))
if self.syncd and matches_dc_to_irc_prefix(newnick): self.pushKill(newnick)
def handleCmd_NICK(self, prefix, args):
02004ebca46b9ef4a32bdaf0d17150117eae70d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11503/02004ebca46b9ef4a32bdaf0d17150117eae70d8/bridge_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 50, 16656, 12, 2890, 16, 1633, 16, 833, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 50, 16656, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
import sybase _sybase = sybase del sybase
import sybase as _sybase
def DBMConnection(*args, **kw): _warn('DBMConnection is deprecated; use connectionForURI("dbm://...") or "from sqlobject.dbm import builder; DBMConnection = builder()"') _dbm.builder()(*args, **kw)
014eeb8d3d7c0716aa5bcee8199f0e6399edfd82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/014eeb8d3d7c0716aa5bcee8199f0e6399edfd82/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2383, 49, 1952, 30857, 1968, 16, 2826, 9987, 4672, 389, 8935, 2668, 2290, 49, 1952, 353, 6849, 31, 999, 1459, 1290, 3098, 2932, 1966, 81, 2207, 7070, 13, 578, 315, 2080, 4744, 383, 489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2383, 49, 1952, 30857, 1968, 16, 2826, 9987, 4672, 389, 8935, 2668, 2290, 49, 1952, 353, 6849, 31, 999, 1459, 1290, 3098, 2932, 1966, 81, 2207, 7070, 13, 578, 315, 2080, 4744, 383, 489, ...
d = dict((seed, web.storage({"editions": 0, "works": 0, "ebooks": 0, "last_update": ""})) for seed in rawseeds)
zeros = {"editions": 0, "works": 0, "ebooks": 0, "last_update": ""} d = dict((seed, web.storage(zeros)) for seed in rawseeds)
def _get_seed_summary(self): rawseeds = self._get_rawseeds() db = self._get_seeds_db() d = dict((seed, web.storage({"editions": 0, "works": 0, "ebooks": 0, "last_update": ""})) for seed in rawseeds) for row in self._couchdb_view(db, "_all_docs", keys=rawseeds, include_docs=True): if 'doc' in row: d[row.key] = web.storage(row.doc) return d
cd76d4cc400d421f4f9f943bb0b89ff70afdd022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/cd76d4cc400d421f4f9f943bb0b89ff70afdd022/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 12407, 67, 7687, 12, 2890, 4672, 1831, 307, 9765, 273, 365, 6315, 588, 67, 1899, 307, 9765, 1435, 225, 1319, 273, 365, 6315, 588, 67, 307, 9765, 67, 1966, 1435, 225, 4922...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 12407, 67, 7687, 12, 2890, 4672, 1831, 307, 9765, 273, 365, 6315, 588, 67, 1899, 307, 9765, 1435, 225, 1319, 273, 365, 6315, 588, 67, 307, 9765, 67, 1966, 1435, 225, 4922...
dotprogs = ['dot', 'neato', 'twopi', 'circo', 'fdp']
def getInterpreterArgs(self): self.dot_output = vfs.reference_with_new_extension(self.buffer.url, self.classprefs.graphic_format) args = "%s -v -T%s -K%s -o%s" % (self.classprefs.interpreter_args, self.classprefs.graphic_format, self.classprefs.layout, str(self.dot_output.path)) return args
def action(self, index=-1, multiplier=1): self.frame.open("about:sample.dot")
21834e12e052ab98f36c3cfa4905e6f6dd89dab8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/21834e12e052ab98f36c3cfa4905e6f6dd89dab8/graphviz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 365, 18, 3789, 18, 3190, 2932, 21071, 30, 6358, 18, 9811, 7923, 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, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 365, 18, 3789, 18, 3190, 2932, 21071, 30, 6358, 18, 9811, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
"external", "repo_browser", self.get_widget("repo_browser").get_text() ) self.settings.set(
def save(self): self.settings.set( "general", "language", self.get_widget("language").get_active_text() ) self.settings.set( "general", "enable_attributes", self.get_widget("enable_attributes").get_active() ) self.settings.set( "general", "enable_emblems", self.get_widget("enable_emblems").get_active() ) self.settings.set( "general", "enable_recursive", self.get_widget("enable_recursive").get_active() ) self.settings.set( "general", "show_debug", self.get_widget("show_debug").get_active() ) self.settings.set( "external", "diff_tool", self.get_widget("diff_tool").get_text() ) self.settings.set( "external", "diff_tool_swap", self.get_widget("diff_tool_swap").get_active() ) self.settings.set( "external", "repo_browser", self.get_widget("repo_browser").get_text() ) self.settings.set( "cache", "number_repositories", self.get_widget("cache_number_repositories").get_text() ) self.settings.set( "cache", "number_messages", self.get_widget("cache_number_messages").get_text() ) self.settings.set( "logging", "type", self.logging_type.get_active_text() ) self.settings.set( "logging", "level", self.logging_level.get_active_text() ) self.settings.write()
91927920523c3e7be7aa144e718ee3ae87894d53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/91927920523c3e7be7aa144e718ee3ae87894d53/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 365, 18, 4272, 18, 542, 12, 315, 12259, 3113, 315, 4923, 3113, 365, 18, 588, 67, 6587, 2932, 4923, 20387, 588, 67, 3535, 67, 955, 1435, 262, 365, 18, 4272, 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, 1923, 12, 2890, 4672, 365, 18, 4272, 18, 542, 12, 315, 12259, 3113, 315, 4923, 3113, 365, 18, 588, 67, 6587, 2932, 4923, 20387, 588, 67, 3535, 67, 955, 1435, 262, 365, 18, 4272, 18, ...
pdfURL generates links to PDFs. It should only be called on subclasses which have cal_type set, so we will temporarily do that.
pdfURL generates links to PDFs. It only works when calendar generation is enabled: >>> from schoolbell.app.browser import pdfcal >>> real_pdfcal_disabled = pdfcal.disabled >>> pdfcal.disabled = True >>> print view.pdfURL() None >>> pdfcal.disabled = False It should only be called on subclasses which have cal_type set, so we will temporarily do that.
def doctest_CalendarViewBase(): """Tests for CalendarViewBase. >>> setUpSessions() >>> from schoolbell.app.browser.cal import CalendarViewBase >>> from schoolbell.app.cal import Calendar >>> calendar = Calendar() >>> directlyProvides(calendar, IContainmentRoot) Set up the checkers for canEdit/canView on events: >>> from schoolbell.app.cal import CalendarEvent >>> from zope.security.checker import defineChecker, Checker >>> defineChecker(CalendarEvent, ... Checker({'description': 'zope.Public'}, ... {'description': 'zope.Public'})) CalendarViewBase has a method calURL used for forming links to other calendar views on other dates. >>> request = TestRequest() >>> view = CalendarViewBase(calendar, request) >>> view.inCurrentPeriod = lambda dt: False >>> view.cursor = date(2005, 2, 3) >>> view.calURL("daily") 'http://127.0.0.1/calendar/2005-02-03' >>> view.calURL("monthly") 'http://127.0.0.1/calendar/2005-02' >>> view.calURL("yearly") 'http://127.0.0.1/calendar/2005' >>> view.calURL("daily", date(2005, 12, 13)) 'http://127.0.0.1/calendar/2005-12-13' >>> view.calURL("monthly", date(2005, 12, 13)) 'http://127.0.0.1/calendar/2005-12' >>> view.calURL("yearly", date(2007, 11, 13)) 'http://127.0.0.1/calendar/2007' The weekly links need some special attention: >>> view.calURL("weekly") 'http://127.0.0.1/calendar/2005-w05' >>> view.calURL("weekly", date(2003, 12, 31)) 'http://127.0.0.1/calendar/2004-w01' >>> view.calURL("weekly", date(2005, 1, 1)) 'http://127.0.0.1/calendar/2004-w53' >>> view.calURL("quarterly") Traceback (most recent call last): ... ValueError: quarterly pdfURL generates links to PDFs. It should only be called on subclasses which have cal_type set, so we will temporarily do that. >>> view.cal_type = 'weekly' >>> view.pdfURL() 'http://127.0.0.1/calendar/2005-w05.pdf' >>> del view.cal_type update() sets the cursor for the view. If it does not find a date in request or the session, it defaults to the current day: >>> view.update() >>> view.cursor == date.today() True The date can be provided in the request: >>> request.form['date'] = '2005-01-02' >>> view.update() >>> view.cursor datetime.date(2005, 1, 2) update() stores the last visited day in the session: >>> from zope.app.session.interfaces import ISession >>> ISession(view.request)['calendar']['last_visited_day'] datetime.date(2005, 1, 2) If not given a date, update() will try the last visited one from the session: >>> view.cursor = None >>> del request.form['date'] >>> view.update() >>> view.cursor datetime.date(2005, 1, 2) It will not update the session data if inCurrentPeriod() returns True: >>> view.inCurrentPeriod = lambda dt: True >>> request.form['date'] = '2005-01-01' >>> view.update() >>> ISession(view.request)['calendar']['last_visited_day'] datetime.date(2005, 1, 2) """
887d3d58a340afa181cec110a7ccce7799c695d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/887d3d58a340afa181cec110a7ccce7799c695d2/test_cal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31263, 395, 67, 7335, 1767, 2171, 13332, 3536, 14650, 364, 5542, 1767, 2171, 18, 225, 4080, 24292, 13566, 1435, 225, 4080, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 11213, 18, 771, 1930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7335, 1767, 2171, 13332, 3536, 14650, 364, 5542, 1767, 2171, 18, 225, 4080, 24292, 13566, 1435, 225, 4080, 628, 18551, 1371, 70, 1165, 18, 2910, 18, 11213, 18, 771, 1930, ...
codewriter.load(last_exc_value_var, lltype_of_exception_value, 'last_exception_value') codewriter.store(lltype_of_exception_type , 'null', 'last_exception_type') codewriter.store(lltype_of_exception_value, 'null', 'last_exception_value')
codewriter.load(last_exc_value_var, 'last_exception_value', []) codewriter.store('last_exception_type' , [], 'null') codewriter.store('last_exception_value', [], 'null')
def fetch_exceptions(self, codewriter, exc_found_labels, lltype_of_exception_type, lltype_of_exception_value): for label, target, last_exc_type_var, last_exc_value_var in exc_found_labels: codewriter.label(label) if last_exc_type_var: codewriter.load(last_exc_type_var, lltype_of_exception_type, 'last_exception_type') if last_exc_value_var: codewriter.load(last_exc_value_var, lltype_of_exception_value, 'last_exception_value') codewriter.store(lltype_of_exception_type , 'null', 'last_exception_type') codewriter.store(lltype_of_exception_value, 'null', 'last_exception_value') codewriter.br_uncond(target)
11354dcb5ef05322fcbe1201ca7cb6f7e5284502 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/11354dcb5ef05322fcbe1201ca7cb6f7e5284502/exception.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 11855, 12, 2890, 16, 981, 6299, 16, 3533, 67, 7015, 67, 5336, 16, 6579, 723, 67, 792, 67, 4064, 67, 723, 16, 6579, 723, 67, 792, 67, 4064, 67, 1132, 4672, 364, 1433, 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, 2158, 67, 11855, 12, 2890, 16, 981, 6299, 16, 3533, 67, 7015, 67, 5336, 16, 6579, 723, 67, 792, 67, 4064, 67, 723, 16, 6579, 723, 67, 792, 67, 4064, 67, 1132, 4672, 364, 1433, 16, ...
pre.append(align_prepost[inline, attrs['align']][0]) post.append(align_prepost[inline, attrs['align']][1])
pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1])
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) # alignment defaults: if not 'align' in attrs: # Set default align of image in a figure to 'center' if isinstance(node.parent, nodes.figure): attrs['align'] = 'center' # query 'align-*' class argument for cls in node.get('classes', ''): if cls.startswith('align-'): attrs['align'] = cls.split('-')[1] pre = [] # in reverse order post = [] include_graphics_options = [] inline = isinstance(node.parent, nodes.TextElement) align_prepost = { # key == (<inline>, <align>) # By default latex aligns the bottom of an image. (True, 'bottom'): ('', ''), (True, 'middle'): (r'\raisebox{-0.5\height}{', '}'), (True, 'top'): (r'\raisebox{-\height}{', '}'), (False, 'center'): (r'\noindent\makebox[\textwidth][c]{', '}'), (False, 'left'): ('{', r'\hfill}'), (False, 'right'): (r'{\hfill', '}'),} if 'align' in attrs: try: pre.append(align_prepost[inline, attrs['align']][0]) post.append(align_prepost[inline, attrs['align']][1]) except KeyError: pass # XXX complain here? if 'height' in attrs: include_graphics_options.append('height=%s' % self.to_latex_length(attrs['height'])) if 'scale' in attrs: include_graphics_options.append('scale=%f' % (attrs['scale'] / 100.0)) ## # Could also be done with ``scale`` option to ## # ``\includegraphics``; doing it this way for consistency. ## pre.append('\\scalebox{%f}{' % (attrs['scale'] / 100.0,)) ## post.append('}') if 'width' in attrs: include_graphics_options.append('width=%s' % self.to_latex_length(attrs['width'])) if not inline: pre.append('\n') post.append('\n') pre.reverse() self.body.extend(pre) options = '' if include_graphics_options: options = '[%s]' % (','.join(include_graphics_options)) self.body.append('\\includegraphics%s{%s}' % (options, attrs['uri'])) self.body.extend(post)
e8dcf1770f4ff007c4e6b16fccea67acc1d4608d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/e8dcf1770f4ff007c4e6b16fccea67acc1d4608d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
self.info_buffer.get_iter_at_offset(start, 0)
start = self.info_buffer.get_iter_at_offset(0)
def selection_cb(self, selection, model): start = Gtk.TextIter() end = Gtk.TextIter() iter = Gtk.TreeIter()
c93935621f2fb1ff5e8c424ae884bd684ea68e50 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/c93935621f2fb1ff5e8c424ae884bd684ea68e50/gtk-demo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 7358, 12, 2890, 16, 4421, 16, 938, 4672, 787, 273, 22132, 18, 1528, 2360, 1435, 679, 273, 22132, 18, 1528, 2360, 1435, 1400, 273, 22132, 18, 2471, 2360, 1435, 2, 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, 4421, 67, 7358, 12, 2890, 16, 4421, 16, 938, 4672, 787, 273, 22132, 18, 1528, 2360, 1435, 679, 273, 22132, 18, 1528, 2360, 1435, 1400, 273, 22132, 18, 2471, 2360, 1435, 2, -100, -100, ...
app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot open file: ", e.filename, "red_foreground")
app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot open file: "+str(e.filename), "red_foreground")
def run(self): from bencode import bencode, bdecode from sha import sha import os try: f = open(self.filename, "r") except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rFATAL ERROR: Cannot open file: ", e.filename , "red_foreground") app.haltplant() sys.exit() file = f.read() f.close() try: bdata = bdecode(file) if bdata.has_key("planted"): app.logbuffer.insert_with_tags_by_name(app.iter, "\rWARNING: The Torrent is being REPLANTED", "red_foreground") except ValueError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rtorrent file is not valid BEncoded data", "red_foreground") app.haltplant() sys.exit(2) infohash = sha(bencode(bdata['info'])).digest() DEFAULTURL = ["http://anatomic.berlios.de/network/node-b/cache.php", "http://anatomic.berlios.de/network/node-a/cache.php"] url = DEFAULTURL # for now until it gets changed by other means if os.path.isfile('strackers.dat') is True and (time.time() - os.path.getmtime('strackers.dat')) < 2592000: # check if file exists and is recent(ish) try: f = open('strackers.dat', "r") except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot open file: ", e.filename, "red_foreground") file = f.read() f.close() try: b2data = bdecode(file) url = b2data except ValueError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rWARNING: local strackers.dat is not valid BEncoded data: Using defaults" , "red_foreground") url = DEFAULTURL else: app.logbuffer.insert_with_tags_by_name(app.iter,"\rWARNING: USING DEFAULT SUPERTRACKER LIST. LOCAL DATA FILE IS NOT PRESENT OR TOO OLD", "red_foreground") from urllib import urlencode from random import shuffle shuffle(url) # Single Plant if self.trackers == 1: app.logbuffer.insert_with_tags_by_name(app.iter,"\rAttempting Single Tracker Plant", "purple_foreground") urldict = {"plant" : 1, "client" : 1} urldict = urlencode(urldict) urlend = "?" urlend += urldict status = 0 # for now for x in url: stracker = x x += urlend try: import urllib2 f = urllib2.Request(x) f.add_header('User-agent', 'Anatomic P2P Planter GUI CVS Edition (S) +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() data = opener.open(f).read() except IOError: pass else: try: bdata3 = bdecode(data) except ValueError: pass else: if len(bdata3) >= 8: status = 1 # i.e. successful first stage url.remove(stracker) # url becomes a list of other supertrackers break # if all of the strackers have been cycled through and nothing useful has been replied then die if status == 0: app.logbuffer.insert_with_tags_by_name(app.iter,"\rError: No Response from any nodes. Please run anaupdatesnodes", "red_foreground") app.haltplant() sys.exit(2) # or else # bdata3 is a single tracker left behind. tracker is going to have the querystring concatenated on it tracker = bdata3 tracker = tracker.replace("/announce", "/plant") tracker += "?" tracker += urlencode({"client" : 1, "plant" : infohash}) try: t = urllib2.Request(tracker) t.add_header('User-agent', 'Anatomic P2P Planter GUI CVS Edition (S) +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() response = opener.open(t).read() except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: Tracker cannot be accessed. Please Try Again"+e, "blue_foreground") else: message = bdecode(response) import types if type(message) == types.DictType and message.has_key("failure reason"): app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: "+message["failure reason"], "red_foreground") app.haltplant() sys.exit(1) else: app.logbuffer.insert_with_tags_by_name(app.iter, "\rMessage from tracker: "+message, "red_foreground") import random strackerlist = [random.choice(url), stracker] # this list contains a stracker and a backup stracker qstring = urlencode({"client" : 1, "tpush" : bdata3}) for z in strackerlist: z += "?" z += qstring try: f3 = urllib2.Request(z) f3.add_header('User-agent', 'Anatomic P2P Planter GUI CVS Edition (S) +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() data = opener.open(f3).read() except IOError: app.logbuffer.insert_with_tags_by_name(app.iter, "\rNo response from Supernode: Please try again.", "red_foreground") app.haltplant() sys.exit(1) try: bdata2 = bdecode(data) if bdata2 == "TRUE": if bdata.has_key("announce-list"): del bdata["announce-list"] #hackwards compatibility announcelist = [] for url in strackerlist: url = url.replace("/cache", "/announce") announcelist.append(url) bdata["announcelist"] = [announcelist] stracker = stracker.replace("/cache", "/announce") bdata["announce"] = stracker bdata["planted"] = 1 bdata = bencode(bdata) try: f = open(self.filename, "w") except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot write to file: "+e.filename, "red_foreground") else: file = f.write(bdata) f.close() app.logbuffer.insert_with_tags_by_name(app.iter, "\rTorrent Successfully Planted on Anatomic P2P", "green_foreground") else: app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: Supernode Response is very unexpected: "+bdata2, "red_foreground") except ValueError: app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: Supernode Response corrupt" , "red_foreground") app.haltplant() sys.exit() else: needed = self.trackers app.logbuffer.insert_with_tags_by_name(app.iter,"\rAttempting MultiPlant", "purple_foreground") qstring = "?" #querystring qstring += urlencode({"multiseed" : needed, "client" : 1}) status = 0 import types # to make sure data is in a list from tracker for x in url: stracker = x x += qstring try: import urllib2 f = urllib2.Request(x) f.add_header('User-agent', 'Anatomic P2P Planter (MS) GUI CVS Edition +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() data = opener.open(f).read() except IOError: pass else: try: bdata3 = bdecode(data) except ValueError: pass else: if type(bdata3) == types.ListType: status = 1 # i.e. successful first stage trackers = bdata3 url.remove(stracker) break if status == 0: app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: No valid Response from any nodes. Please run anaupdatesnodes or lower the required trackers" , "red_foreground") app.haltplant() sys.exit(2) import copy trackers2 = copy.deepcopy(trackers) z = trackers2[0] del(trackers2[0]) trackers2.append(z) for num in range(0,len(trackers)): tracker = trackers[num] tracker = tracker.replace("/announce", "/plant") othertracker = trackers2[num] qstring = "?" qstring += urlencode({"client" : 1, "multiplant" : infohash, "url" : othertracker}) tracker += qstring try: t = urllib2.Request(tracker) t.add_header('User-agent', 'Anatomic P2P Planter (MS) GUI CVS Edition +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() response = opener.open(t).read() except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: Tracker cannot be accessed. Please Try Again - "+e , "red_foreground") else: message = bdecode(response) if type(message) == types.DictType and message.has_key("failure reason"): app.logbuffer.insert_with_tags_by_name(app.iter, "\rError: "+message["failure reason"] , "red_foreground") else: app.logbuffer.insert_with_tags_by_name(app.iter, "\rMessage from tracker: "+message , "purple_foreground") import random strackerlist = [random.choice(url), stracker] for tracker in trackers: qstring = "?" qstring += urlencode({"client" : 1, "tpush" : tracker}) stracker = strackerlist[1] # this is the important stracker. [0] is a backup for z in strackerlist: z += qstring try: import urllib2 f = urllib2.Request(z) f.add_header('User-agent', 'Anatomic P2P Planter (MS) GUI CVS Edition +http://anatomic.berlios.de/' ) opener = urllib2.build_opener() data = opener.open(f).read() except IOError: pass else: try: bdata3 = bdecode(data) app.logbuffer.insert_with_tags_by_name(app.iter, "\rMessage from Supertracker: "+bdata3, "purple_foreground") except ValueError: pass #hackwards compatibility announcelist = [] for url in strackerlist: url = url.replace("/cache", "/announce") announcelist.append(url) bdata["announce-list"] = [announcelist] stracker = stracker.replace("/cache", "/announce") bdata["announce"] = stracker bdata["planted"] = 1 bdata = bencode(bdata) try: f = open(self.filename, "w") except IOError, e: app.logbuffer.insert_with_tags_by_name(app.iter, "\rERROR: Cannot write to file: "+e.filename, "green_foreground") else: file = f.write(bdata) f.close() app.logbuffer.insert_with_tags_by_name(app.iter, "\rTorrent Successfully MultiPlanted on Anatomic P2P (if there are no errors above)", "green_foreground") app.haltplant()
e9570844ab7e20309ea91462122882f4b4c88cd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2999/e9570844ab7e20309ea91462122882f4b4c88cd6/planter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 324, 3015, 1930, 324, 3015, 16, 324, 3922, 628, 6056, 1930, 6056, 1930, 1140, 775, 30, 284, 273, 1696, 12, 2890, 18, 3459, 16, 315, 86, 7923, 1335, 8340, 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, 1086, 12, 2890, 4672, 628, 324, 3015, 1930, 324, 3015, 16, 324, 3922, 628, 6056, 1930, 6056, 1930, 1140, 775, 30, 284, 273, 1696, 12, 2890, 18, 3459, 16, 315, 86, 7923, 1335, 8340, 16,...
log.info("REFTEST INFO | runreftest.py | Running tests: start.\n")
automation.log.info("REFTEST INFO | runreftest.py | Running tests: start.\n")
def processLeakLog(): "Process the leak log." # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469518) if os.path.exists(leakLogFile): leaks = open(leakLogFile, "r") # For the time being, simply copy the log. (Bug 469518) log.info(leaks.read().rstrip()) leaks.close()
cc1645858044da9f25f129ea785d44cc779c896b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/cc1645858044da9f25f129ea785d44cc779c896b/runreftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1682, 581, 1343, 13332, 315, 2227, 326, 20891, 613, 1199, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 353, 486, 1915, 18, 261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1682, 581, 1343, 13332, 315, 2227, 326, 20891, 613, 1199, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 353, 486, 1915, 18, 261,...
a = arange(3, dtype='>f')
a = N.arange(3, dtype='>f')
def check_argmax_byteorder(self, level=rlevel): """Ticket #546""" a = arange(3, dtype='>f') assert a[a.argmax()] == a.max()
907294e4f4a8265418a3bd54912163f66a945c21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/907294e4f4a8265418a3bd54912163f66a945c21/test_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3175, 1896, 67, 7229, 1019, 12, 2890, 16, 1801, 33, 86, 2815, 4672, 3536, 13614, 468, 6564, 26, 8395, 279, 273, 423, 18, 297, 726, 12, 23, 16, 3182, 2218, 34, 74, 6134, 1815...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3175, 1896, 67, 7229, 1019, 12, 2890, 16, 1801, 33, 86, 2815, 4672, 3536, 13614, 468, 6564, 26, 8395, 279, 273, 423, 18, 297, 726, 12, 23, 16, 3182, 2218, 34, 74, 6134, 1815...
len_typeobject = p + 2*l + 15*p + l + 4*p + l + 9*p +\ l + 11*p + self.align(4) self.check_sizeof(class_newstyle, h + len_typeobject + 41*p + 10*p + 3*p + 6*p)
self.check_sizeof(class_newstyle, size('P2P15Pl4PP9PP11PI') +\ size(h + '41P 10P 3P 6P'))
def method(): pass
300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.relay = None
self.relay = relay
def __init__(self, outgoing, relay=None, from_uri=None, to_uri=None, accept_types=['message/cpim'], accept_wrapped_types=['*'], local_uri=None): """Initialize the MSRP connection; connect to the relay if necessary. When done, fire MSRPChatDidInitialize (with 'sdpmedia' attribute, containing the appropriate 'SDPMedia' instance)
0da24be390d17a75c608d005baa7cffdaabc7e76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/0da24be390d17a75c608d005baa7cffdaabc7e76/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 12902, 16, 18874, 33, 7036, 16, 628, 67, 1650, 33, 7036, 16, 358, 67, 1650, 33, 7036, 16, 2791, 67, 2352, 33, 3292, 2150, 19, 4057, 381, 17337, 2791, 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, 2738, 972, 12, 2890, 16, 12902, 16, 18874, 33, 7036, 16, 628, 67, 1650, 33, 7036, 16, 358, 67, 1650, 33, 7036, 16, 2791, 67, 2352, 33, 3292, 2150, 19, 4057, 381, 17337, 2791, 6...
for ij, y in entries:
for ij, y in entries.iteritems():
def dict_to_list(entries, nrows, ncols): v = [0]*(nrows*ncols) for ij, y in entries: i,j = ij v[i*ncols + j] = y return v
f129b0c368a8f4729eb54b5eb20ccdda51a96788 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f129b0c368a8f4729eb54b5eb20ccdda51a96788/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 67, 869, 67, 1098, 12, 8219, 16, 18871, 16, 21330, 4672, 331, 273, 306, 20, 5772, 12, 82, 3870, 14, 82, 6842, 13, 364, 19313, 16, 677, 316, 3222, 18, 2165, 3319, 13332, 277, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 67, 869, 67, 1098, 12, 8219, 16, 18871, 16, 21330, 4672, 331, 273, 306, 20, 5772, 12, 82, 3870, 14, 82, 6842, 13, 364, 19313, 16, 677, 316, 3222, 18, 2165, 3319, 13332, 277, 16...
static const xmlChar *gen_const_xmlChar_ptr(int no) {
static const xmlChar *gen_const_xmlChar_ptr(int no, int nr ATTRIBUTE_UNUSED) {
def is_known_param_type(name): for type in known_param_types: if type == name: return 1 return 0
3d97e669eca6f4849c7b3014f472cacc57817015 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/3d97e669eca6f4849c7b3014f472cacc57817015/gentest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, -100, -100, -100, -100, -100, -100, ...
We create a jQuery HTML slider. If you do the following in the notebook
We create a jQuery range slider. If you do the following in the notebook
def html_rangeslider(id, values, callback, steps, default_l=0, default_r=1, margin=0): """ Return the HTML representation of a jQuery slider. INPUT: id -- string -- the DOM id of the slider (better be unique) values -- 'null' or javascript string containing array of values on slider callback-- javascript that is executed whenever the slider is done moving steps -- number of steps from minimum to maximum value. default_l -- (default: 0) the default position of the left edge of the slider default_r -- (default: 1) the default position of the right edge of the slider margin -- (default: 0) size of margin to insert around the slider EXAMPLES: We create a jQuery HTML slider. If you do the following in the notebook you should obtain a slider that when moved pops up a window showing its current position. sage: from sage.server.notebook.interact import html_rangeslider, html sage: html(html_rangeslider('slider-007', 'null', 'alert(position)', steps=5, default_l=2, default_r=3, margin=5)) <html>...</html> """ s = """<table> <tr><td><div id='%s' class='ui-slider-3' style='padding:0px;margin:%spx;'> <span class='ui-slider-handle'></span><span class='ui-slider-handle'></span> </div></td></tr>"""%(id, int(margin)) if values != "null": s += "<tr><td><font color='black' id='%s-lbl'></font></td></tr>"%id s += "</table>" # We now generate javascript that gets run after the above div # gets inserted. This happens because of the setTimeout function # below which gets passed an anonymous function. s += """<script>(function() { var values = %s; var pos = [%s, %s]; var sel = '#%s'; var updatePos = function() { pos[0]=Math.ceil($(sel).slider('value', 0)); pos[1]=Math.ceil($(sel).slider('value', 1)); if(values!=null) $(sel+'-lbl').text("("+values[pos[0]]+", "+values[pos[1]]+")"); }; setTimeout(function() { $(sel).slider( { range: true, stepping: 1, minValue: 0, maxValue: %s, startValue: [%s, %s], change: function(){ updatePos(); %s; }, slide: updatePos }); updatePos(); }, 1); })();</script>"""%(values, default_l, default_r, id, steps-1, default_l, default_r, callback) # change 'change' to 'slide' and it changes the slider every time it moves; # needs much more work to actually work, since server gets fludded by # requests. return s
1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/1d3f50ebffa376e7bd2e2d89dc307d13a57d23f6/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 14530, 80, 3585, 12, 350, 16, 924, 16, 1348, 16, 6075, 16, 805, 67, 80, 33, 20, 16, 805, 67, 86, 33, 21, 16, 7333, 33, 20, 4672, 3536, 2000, 326, 3982, 4335, 434, 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, 1729, 67, 14530, 80, 3585, 12, 350, 16, 924, 16, 1348, 16, 6075, 16, 805, 67, 80, 33, 20, 16, 805, 67, 86, 33, 21, 16, 7333, 33, 20, 4672, 3536, 2000, 326, 3982, 4335, 434, 279, ...
neurons_list = [Neuron('INPUT', ng.id, 0, 0, ) \ for ng in chromo.node_genes if ng.type == 'INPUT']
neurons_list = [Neuron('INPUT', ng.id, 0, 0) \ for ng in chromo.node_genes[:chromo.sensors] if ng.type == 'INPUT']
def create_ffphenotype(chromo): """ Receives a chromosome and returns its phenotype (a neural network) """ # first create inputs neurons_list = [Neuron('INPUT', ng.id, 0, 0, ) \ for ng in chromo.node_genes if ng.type == 'INPUT'] # Add hidden nodes in the right order for id in chromo.node_order: neurons_list.append(Neuron('HIDDEN', id, chromo.node_genes[id-1].bias, chromo.node_genes[id-1].response, chromo.node_genes[id-1].activation_type)) # finally the output neurons_list.extend(Neuron('OUTPUT', ng.id, ng.bias, ng.response, ng.activation_type) \ for ng in chromo.node_genes if ng.type == 'OUTPUT') assert(len(neurons_list) == len(chromo.node_genes)) conn_list = [(cg.innodeid, cg.outnodeid, cg.weight) \ for cg in chromo.conn_genes if cg.enabled] return Network(neurons_list, conn_list)
343304a20d751255e3f069266b636212f4d869f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4744/343304a20d751255e3f069266b636212f4d869f1/nn_pure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1403, 13819, 10570, 12, 16298, 83, 4672, 3536, 9797, 3606, 279, 22674, 471, 1135, 2097, 28825, 261, 69, 1073, 3766, 2483, 13, 3536, 225, 468, 1122, 752, 4540, 17760, 7008, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1403, 13819, 10570, 12, 16298, 83, 4672, 3536, 9797, 3606, 279, 22674, 471, 1135, 2097, 28825, 261, 69, 1073, 3766, 2483, 13, 3536, 225, 468, 1122, 752, 4540, 17760, 7008, 67, 1...
pattern_codes = pattern_codes[offset:]
def search(space, state, pattern_codes): flags = 0 if pattern_codes[0] == OPCODE_INFO: # optimization info block # <INFO> <1=skip> <2=flags> <3=min> <4=max> <5=prefix info> if pattern_codes[2] & SRE_INFO_PREFIX and pattern_codes[5] > 1: return fast_search(space, state, pattern_codes) flags = pattern_codes[2] offset = pattern_codes[1] + 1 assert offset >= 0 pattern_codes = pattern_codes[offset:] string_position = state.start while string_position <= state.end: state.w_reset() state.start = state.string_position = string_position if match(space, state, pattern_codes): return True string_position += 1 return False
f9f5342124231b561ce698a73352f83ee554e111 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/f9f5342124231b561ce698a73352f83ee554e111/interp_sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2981, 16, 919, 16, 1936, 67, 7000, 4672, 2943, 273, 374, 309, 1936, 67, 7000, 63, 20, 65, 422, 531, 3513, 2712, 67, 5923, 30, 468, 14850, 1123, 1203, 468, 411, 5923, 34, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2981, 16, 919, 16, 1936, 67, 7000, 4672, 2943, 273, 374, 309, 1936, 67, 7000, 63, 20, 65, 422, 531, 3513, 2712, 67, 5923, 30, 468, 14850, 1123, 1203, 468, 411, 5923, 34, 41...
newitems = l.ll_items()
def ll_listslice_startonly(RESLIST, l1, start): len1 = l1.ll_length() newlength = len1 - start l = RESLIST.ll_newlist(newlength) newitems = l.ll_items() j = 0 source = l1.ll_items() i = start while i < len1: newitems[j] = source[i] i += 1 j += 1 return l
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 1098, 6665, 67, 1937, 3700, 12, 7031, 7085, 16, 328, 21, 16, 787, 4672, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 394, 2469, 273, 562, 21, 300, 787, 328, 273, 12915,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6579, 67, 1098, 6665, 67, 1937, 3700, 12, 7031, 7085, 16, 328, 21, 16, 787, 4672, 562, 21, 273, 328, 21, 18, 2906, 67, 2469, 1435, 394, 2469, 273, 562, 21, 300, 787, 328, 273, 12915,...
print "DTV: WARNING, network error scraping You Tube Video URL"
logging.warning("youtube_errback: network error scraping YouTube video url %s", err)
def _youtube_errback(err, callback): print "DTV: WARNING, network error scraping You Tube Video URL" callback(None)
713192cc2cfc2ca010db1a7b08237a99ded44b6a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/713192cc2cfc2ca010db1a7b08237a99ded44b6a/flashscraper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 31749, 67, 370, 823, 12, 370, 16, 1348, 4672, 2907, 18, 8551, 2932, 31749, 67, 370, 823, 30, 2483, 555, 888, 1266, 310, 4554, 27195, 6191, 880, 738, 87, 3113, 393, 13, 1348, 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, 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, 31749, 67, 370, 823, 12, 370, 16, 1348, 4672, 2907, 18, 8551, 2932, 31749, 67, 370, 823, 30, 2483, 555, 888, 1266, 310, 4554, 27195, 6191, 880, 738, 87, 3113, 393, 13, 1348, 12, ...
self.assertEqual(len(Set(map(id, list(self.seq)))), len(self.seq))
self.assertEqual(len(Set(map(id, list(enumerate(self.seq))))), len(self.seq))
def test_tuple_reuse(self): # Tests an implementation detail where tuple is reused # whenever nothing else holds a reference to it self.assertEqual(len(Set(map(id, list(self.seq)))), len(self.seq)) self.assertEqual(len(Set(map(id, enumerate(self.seq)))), min(1,len(self.seq)))
b25a52aac09b725dac76013dfafa60093fb2b576 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b25a52aac09b725dac76013dfafa60093fb2b576/test_enumerate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8052, 67, 266, 1202, 12, 2890, 4672, 468, 7766, 87, 392, 4471, 7664, 1625, 3193, 353, 23312, 468, 17334, 5083, 469, 14798, 279, 2114, 358, 518, 365, 18, 11231, 5812, 12, 1897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8052, 67, 266, 1202, 12, 2890, 4672, 468, 7766, 87, 392, 4471, 7664, 1625, 3193, 353, 23312, 468, 17334, 5083, 469, 14798, 279, 2114, 358, 518, 365, 18, 11231, 5812, 12, 1897, ...
globals = {"_getiter_": getiter}
globals = {"_getiter_": getiter, '_inplacevar_': inplacevar_wrapper}
def getiter(seq): calls.append(seq) return list(seq)
b2ce85ffe09a48858cfc642fcb209fb9fbcc3089 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b2ce85ffe09a48858cfc642fcb209fb9fbcc3089/testRestrictions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2165, 12, 5436, 4672, 4097, 18, 6923, 12, 5436, 13, 327, 666, 12, 5436, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2165, 12, 5436, 4672, 4097, 18, 6923, 12, 5436, 13, 327, 666, 12, 5436, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
from PIL import Image import numpy import osgeo.gdal_array as gdalarray
if numpy: pass
def __init__(self, arguments ): """Constructor function - initialization""" self.input = None self.output = None
c4960cab782eaaed0d0ec95af10325a5941f605f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/c4960cab782eaaed0d0ec95af10325a5941f605f/gdal2tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1775, 262, 30, 3536, 6293, 445, 300, 10313, 8395, 225, 365, 18, 2630, 273, 599, 365, 18, 2844, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1775, 262, 30, 3536, 6293, 445, 300, 10313, 8395, 225, 365, 18, 2630, 273, 599, 365, 18, 2844, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -10...
handler = self.get_handler('/ui/ical/ical_edit_timetables.xml')
handler = self.get_object('/ui/ical/ical_edit_timetables.xml')
def edit_timetables_form(self, context): # Add ical css css = self.get_handler('/ui/ical/calendar.css') context.styles.append(str(self.get_pathto(css)))
9eeff786a523714089fcdf4322362335697cae75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/9eeff786a523714089fcdf4322362335697cae75/ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 8584, 278, 1538, 67, 687, 12, 2890, 16, 819, 4672, 468, 1436, 277, 771, 3747, 3747, 273, 365, 18, 588, 67, 4176, 2668, 19, 4881, 19, 1706, 19, 11650, 18, 5212, 6134, 819, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 8584, 278, 1538, 67, 687, 12, 2890, 16, 819, 4672, 468, 1436, 277, 771, 3747, 3747, 273, 365, 18, 588, 67, 4176, 2668, 19, 4881, 19, 1706, 19, 11650, 18, 5212, 6134, 819, 1...
self.log_file.write("[%s] %s: %s" % \
self.log_file.write("[%s] %s: %s\n" % \
def handle_action(self, protocol, action, user, message): nick = user.split("!", 1)[0] self.log_file.write("[%s] %s: %s" % \ (datetime.datetime.now(), nick, message))
9db6eee7a1d4ca4b93743cdf194ff140030061ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10891/9db6eee7a1d4ca4b93743cdf194ff140030061ac/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1128, 12, 2890, 16, 1771, 16, 1301, 16, 729, 16, 883, 4672, 10909, 273, 729, 18, 4939, 2932, 5, 3113, 404, 25146, 20, 65, 365, 18, 1330, 67, 768, 18, 2626, 2932, 14451, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 1128, 12, 2890, 16, 1771, 16, 1301, 16, 729, 16, 883, 4672, 10909, 273, 729, 18, 4939, 2932, 5, 3113, 404, 25146, 20, 65, 365, 18, 1330, 67, 768, 18, 2626, 2932, 14451, 87,...
$NAME = Factory(name=$PNAME, description=$DESCRIPTION, category=$CATEGORY,
$NAME = Factory(name=$PNAME, description=$DESCRIPTION, category=$CATEGORY,
def save_new_src(self, newsrc): """ Execute the new source and replace the text into the old file containing the source. """ module = self.get_node_module() nodesrc = self.get_node_src(cache=False) # Run src exec newsrc in module.__dict__
0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 2704, 67, 4816, 12, 2890, 16, 394, 4816, 4672, 3536, 7903, 326, 394, 1084, 471, 1453, 326, 977, 1368, 326, 1592, 585, 4191, 326, 1084, 18, 3536, 1605, 273, 365, 18, 588, 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, 1923, 67, 2704, 67, 4816, 12, 2890, 16, 394, 4816, 4672, 3536, 7903, 326, 394, 1084, 471, 1453, 326, 977, 1368, 326, 1592, 585, 4191, 326, 1084, 18, 3536, 1605, 273, 365, 18, 588, 67, ...
[datetime.datetime(2005, 1, 19, 9, 0), datetime.datetime(2005, 1, 20, 9, 0)]
[datetime.datetime(2005, 3, 18, 0, 0), datetime.datetime(2005, 3, 29, 0, 0)]
def prettyPrint(self, level, tabwidth): pre = ' ' * level * tabwidth print pre, self.name print pre, "TZID:", self.tzid[0] print
5a285ccc3499cbedc14fdc498f4f913ec1f83c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9169/5a285ccc3499cbedc14fdc498f4f913ec1f83c87/icalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30410, 12, 2890, 16, 1801, 16, 3246, 2819, 4672, 675, 273, 296, 296, 380, 1801, 380, 3246, 2819, 1172, 675, 16, 365, 18, 529, 1172, 675, 16, 315, 21647, 734, 2773, 16, 365, 18, 12994, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30410, 12, 2890, 16, 1801, 16, 3246, 2819, 4672, 675, 273, 296, 296, 380, 1801, 380, 3246, 2819, 1172, 675, 16, 365, 18, 529, 1172, 675, 16, 315, 21647, 734, 2773, 16, 365, 18, 12994, ...
entry.onAction ()
self.updateData (entry)
def will_focus_out (self, entry, *ignore): entry.onAction ()
e1fb1b82adbe070d6396621e5d155280b09af156 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/e1fb1b82adbe070d6396621e5d155280b09af156/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 903, 67, 13923, 67, 659, 261, 2890, 16, 1241, 16, 380, 6185, 4672, 1241, 18, 265, 1803, 1832, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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, 903, 67, 13923, 67, 659, 261, 2890, 16, 1241, 16, 380, 6185, 4672, 1241, 18, 265, 1803, 1832, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pix_iter = None
def fftmap(fseq, frange, func=np.mean, normL = None, verbose = True, **kwargs): """ Fourier-based functional mapping frange : a range of frequencies in Hz, e.g. (1.0, 1.5) kern : a kernel to convolve each frame with func : range reducing function. np.mean by default, may be np.sum as well """ tick = time.clock() L = fseq.length() shape = fseq.shape(kwargs.has_key('sliceobj') and kwargs['sliceobj'] or None) total = shape[0]*shape[1] out = np.ones(shape, np.float64) k = 0 freqs = np.fft.fftfreq(L, fseq.dt) pix_iter = None pix_iter = fseq.pix_iter(**kwargs) normL = ifnot(normL, L) fstart,fstop = frange fmask = (freqs >= fstart)*(freqs < fstop) for s,i,j in pix_iter: s = s-np.mean(s[:normL]) s_hat = np.fft.fft(s) x = (abs(s_hat)/np.std(s[:normL]))**2 out[i,j] = func(x[fmask]) k+=1 if verbose: sys.stderr.write("\rpixel %05d of %05d"%(k,total)) if verbose: sys.stderr.write("\n Finished in %3.2f s\n"%(time.clock()-tick)) return out
272f87825b11e98efd01405e3f05bafc10f54631 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6360/272f87825b11e98efd01405e3f05bafc10f54631/fnmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15741, 1458, 12, 74, 5436, 16, 284, 3676, 16, 1326, 33, 6782, 18, 7079, 16, 4651, 48, 273, 599, 16, 3988, 273, 1053, 16, 2826, 4333, 4672, 3536, 478, 24775, 17, 12261, 18699, 2874, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15741, 1458, 12, 74, 5436, 16, 284, 3676, 16, 1326, 33, 6782, 18, 7079, 16, 4651, 48, 273, 599, 16, 3988, 273, 1053, 16, 2826, 4333, 4672, 3536, 478, 24775, 17, 12261, 18699, 2874, 284...
test.c[0].child.children[0], test.c[0].child.children[1], test.c.cc.c.d, test.c.cc.c.e,
test.children[0].child.children[0], test.children[0].child.children[1], test.children.cc.children.d, test.children.cc.children.e,
def test_round_trip(self): test = twc.CompoundWidget(id='a', children=[ twc.DisplayOnlyWidget(id='q', child= # TBD twc.RepeatingWidget(id=None, child= twc.Widget(id='b') ) ), twc.CompoundWidget(id='cc', children=[ twc.Widget(id='d'), twc.Widget(id='e'), ]) ])
63e95fe54937a8558192c280d2bd6d29e642b625 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11475/63e95fe54937a8558192c280d2bd6d29e642b625/test_validation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2260, 67, 25125, 12, 2890, 4672, 1842, 273, 2339, 71, 18, 16835, 4609, 12, 350, 2218, 69, 2187, 2325, 22850, 2339, 71, 18, 4236, 3386, 4609, 12, 350, 2218, 85, 2187, 1151, 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, 1842, 67, 2260, 67, 25125, 12, 2890, 4672, 1842, 273, 2339, 71, 18, 16835, 4609, 12, 350, 2218, 69, 2187, 2325, 22850, 2339, 71, 18, 4236, 3386, 4609, 12, 350, 2218, 85, 2187, 1151, 33...
inv.db.dump_checkout_paths()
def ensure_dirs(self, builder, label): """ Make sure all the relevant directories exist. """
b1abba097f33b760d5dd6c7faa24aa2a29b85465 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/b1abba097f33b760d5dd6c7faa24aa2a29b85465/make.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3387, 67, 8291, 12, 2890, 16, 2089, 16, 1433, 4672, 3536, 4344, 3071, 777, 326, 9368, 6402, 1005, 18, 3536, 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, 3387, 67, 8291, 12, 2890, 16, 2089, 16, 1433, 4672, 3536, 4344, 3071, 777, 326, 9368, 6402, 1005, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.load_autostart (defs.APP, defs.TASKS_H_ARROWS, self.wTree.get_widget("autostart"))
def reload(self): self.load_bool (defs.AWN, defs.AUTO_HIDE, self.wTree.get_widget("autohide")) self.load_bool (defs.AWN, defs.KEEP_BELOW, self.wTree.get_widget("keepbelow")) self.load_bool (defs.AWN, defs.PANEL_MODE, self.wTree.get_widget("panelmode")) self.load_bool (defs.APP, defs.NAME_CHANGE_NOTIFY, self.wTree.get_widget("namechangenotify")) self.load_bool (defs.BAR, defs.RENDER_PATTERN, self.wTree.get_widget("patterncheck")) self.load_bool (defs.BAR, defs.ROUNDED_CORNERS, self.wTree.get_widget("roundedcornerscheck")) self.load_bool (defs.WINMAN, defs.SHOW_ALL_WINS, self.wTree.get_widget("allwindowscheck"))
578e7de85087a2fe2729d8795d24467d6202461a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/578e7de85087a2fe2729d8795d24467d6202461a/awnPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 4672, 365, 18, 945, 67, 6430, 261, 12537, 18, 37, 5665, 16, 17588, 18, 18909, 67, 44, 10385, 16, 365, 18, 91, 2471, 18, 588, 67, 6587, 2932, 6079, 11248, 6, 3719, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 12, 2890, 4672, 365, 18, 945, 67, 6430, 261, 12537, 18, 37, 5665, 16, 17588, 18, 18909, 67, 44, 10385, 16, 365, 18, 91, 2471, 18, 588, 67, 6587, 2932, 6079, 11248, 6, 3719, 365...
print 'Sending', event
def sendToZeitgeist(self, track): """ Send track information to Zeitgeist """ import mimetypes, os.path
c9c9aa07ca5086939841ee483f5bda64b98d2bab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1737/c9c9aa07ca5086939841ee483f5bda64b98d2bab/Zeitgeist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29091, 62, 73, 305, 908, 376, 12, 2890, 16, 3298, 4672, 3536, 2479, 3298, 1779, 358, 23587, 305, 908, 376, 3536, 1930, 20369, 15180, 16, 1140, 18, 803, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 29091, 62, 73, 305, 908, 376, 12, 2890, 16, 3298, 4672, 3536, 2479, 3298, 1779, 358, 23587, 305, 908, 376, 3536, 1930, 20369, 15180, 16, 1140, 18, 803, 2, -100, -100, -100, -100, -100, ...
if total<=0.0:
if total <= 0.0:
def _product_reserve(self, cr, uid, ids, product_id, product_qty, context={}): result = [] amount = 0.0 for id in self.search(cr, uid, [('location_id', 'child_of', ids)]): cr.execute("select product_uom,sum(product_qty) as product_qty from stock_move where location_dest_id=%s and location_id<>%s and product_id=%s and state='done' group by product_uom", (id,id,product_id)) results = cr.dictfetchall() cr.execute("select product_uom,-sum(product_qty) as product_qty from stock_move where location_id=%s and location_dest_id<>%s and product_id=%s and state in ('done', 'assigned') group by product_uom", (id,id,product_id)) results += cr.dictfetchall()
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5896, 67, 455, 6527, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 350, 16, 3017, 67, 85, 4098, 16, 819, 12938, 4672, 563, 273, 5378, 3844, 273, 374, 18, 20, 364, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5896, 67, 455, 6527, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 350, 16, 3017, 67, 85, 4098, 16, 819, 12938, 4672, 563, 273, 5378, 3844, 273, 374, 18, 20, 364, 612, ...
Contexteters = Context()
context = Context()
def test_formatting(self): Contexteters = Context() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, Contexteters) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>')
3f5572cf3ff452e63a9867d97740e432a5973b1d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/3f5572cf3ff452e63a9867d97740e432a5973b1d/test_rml2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 819, 273, 1772, 1435, 501, 273, 2368, 84, 34, 29399, 411, 77, 34, 5151, 32, 89, 34, 5151, 1757, 89, 4695, 77, 4695, 84, 1870, 1407, 273, 3167, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 819, 273, 1772, 1435, 501, 273, 2368, 84, 34, 29399, 411, 77, 34, 5151, 32, 89, 34, 5151, 1757, 89, 4695, 77, 4695, 84, 1870, 1407, 273, 3167, 2...
self.jsEnv.executeScriptAsFunction(val, 0.0)
self.js_env.executeScriptAsFunction(val, 0.0)
def jsPopup (self, attrs, name): """check if attrs[name] javascript opens a popup window""" val = resolve_html_entities(attrs[name]) if not val: return self.jsEnv.attachListener(self) try: self.jsEnv.executeScriptAsFunction(val, 0.0) except jslib.error, msg: pass self.jsEnv.detachListener(self) res = self.popup_counter self.popup_counter = 0 return res
475def66113a258d59f287a283585f27e07dd77a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/475def66113a258d59f287a283585f27e07dd77a/Rewriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3828, 13770, 261, 2890, 16, 3422, 16, 508, 4672, 3536, 1893, 309, 3422, 63, 529, 65, 11341, 10400, 279, 10431, 2742, 8395, 1244, 273, 2245, 67, 2620, 67, 9996, 12, 7039, 63, 529, 5717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3828, 13770, 261, 2890, 16, 3422, 16, 508, 4672, 3536, 1893, 309, 3422, 63, 529, 65, 11341, 10400, 279, 10431, 2742, 8395, 1244, 273, 2245, 67, 2620, 67, 9996, 12, 7039, 63, 529, 5717, ...
print "Create binary distribution folder: ' + bin_folder
print 'Create binary distribution folder: ' + bin_folder
def get_and_create_bin_folder(dist_folder, folder): """Formats and creates binary distribution folder.""" bin_folder = os.path.join(dist_folder, folder + '-exe') print "Create binary distribution folder: ' + bin_folder os.mkdir(bin_folder) return bin_folder
21cb8af045d1b6b7dd5ff30835fd67572b8f9979 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5344/21cb8af045d1b6b7dd5ff30835fd67572b8f9979/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 464, 67, 2640, 67, 4757, 67, 5609, 12, 4413, 67, 5609, 16, 3009, 4672, 3536, 8976, 471, 3414, 3112, 7006, 3009, 12123, 225, 4158, 67, 5609, 273, 1140, 18, 803, 18, 5701, 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, 336, 67, 464, 67, 2640, 67, 4757, 67, 5609, 12, 4413, 67, 5609, 16, 3009, 4672, 3536, 8976, 471, 3414, 3112, 7006, 3009, 12123, 225, 4158, 67, 5609, 273, 1140, 18, 803, 18, 5701, 12, ...
prefix = self.peek(4)
def check_document_end(self):
ea23091a5bf580a405a834b17802059fa80edfdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/ea23091a5bf580a405a834b17802059fa80edfdd/scanner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 5457, 67, 409, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 866, 67, 5457, 67, 409, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class="zope.app.component.tests.views.VZMI" layer="zmi" for="zope.app.component.tests.views.IC" permission="zope.Public" attribute="index" />
class="zope.app.component.tests.views.VZMI" layer="zmi" for="zope.app.component.tests.views.IC" permission="zope.Public" attribute="index" />
def testSkinPage(self): self.assertEqual(queryView(ob, 'test', request, None), None)
1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26827, 1964, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2271, 1767, 12, 947, 16, 296, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, 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, 1652, 1842, 26827, 1964, 12, 2890, 4672, 365, 18, 11231, 5812, 12, 2271, 1767, 12, 947, 16, 296, 3813, 2187, 590, 16, 599, 3631, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
print "\n! Warning - MythTV python bindings could not be imported\n"
print u"\n! Warning - MythTV python bindings could not be imported\n"
def __getattr__(self, attr): """Delegate everything but write to the stream""" return getattr(self.out, attr)
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 3536, 9586, 7756, 1496, 1045, 358, 326, 1407, 8395, 327, 3869, 12, 2890, 18, 659, 16, 1604, 13, 2, -100, -100, -100, -100, -100, -100, -...
def find_associate_test_module_by_test_classs(project, module):
def find_associate_test_module_by_test_class(project, module):
def find_associate_test_module_by_test_classs(project, module): """Try to find a test module with most test cases for the given application module. """ def test_classs_number(mod): return len(mod.get_test_cases_for_module(module)) test_module = max_by_not_zero(test_classs_number, project.get_modules()) if test_module: return test_module
3088a24b03acae83f73f6f0d72658d1fed6ae49c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11544/3088a24b03acae83f73f6f0d72658d1fed6ae49c/adder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 11577, 67, 3813, 67, 2978, 67, 1637, 67, 3813, 67, 1106, 12, 4406, 16, 1605, 4672, 3536, 7833, 358, 1104, 279, 1842, 1605, 598, 4486, 1842, 6088, 364, 326, 864, 2521, 1605, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 11577, 67, 3813, 67, 2978, 67, 1637, 67, 3813, 67, 1106, 12, 4406, 16, 1605, 4672, 3536, 7833, 358, 1104, 279, 1842, 1605, 598, 4486, 1842, 6088, 364, 326, 864, 2521, 1605, 1...
return self.__executeOperation('addTaskForTransformation',lfns=lfns,se=se,printOutput=printOutput)
return self.__executeOperation('addTaskForTransformation',lfns,se,printOutput=printOutput)
def addTaskForTransformation(self,lfns=[],se='Unknown', printOutput=False): return self.__executeOperation('addTaskForTransformation',lfns=lfns,se=se,printOutput=printOutput)
9649ac57fd20199fe74637291701ad6b70ce16a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9649ac57fd20199fe74637291701ad6b70ce16a4/Transformation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2174, 1290, 15292, 12, 2890, 16, 20850, 2387, 22850, 6487, 307, 2218, 4874, 2187, 1172, 1447, 33, 8381, 4672, 327, 365, 16186, 8837, 2988, 2668, 1289, 2174, 1290, 15292, 2187, 20850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 2174, 1290, 15292, 12, 2890, 16, 20850, 2387, 22850, 6487, 307, 2218, 4874, 2187, 1172, 1447, 33, 8381, 4672, 327, 365, 16186, 8837, 2988, 2668, 1289, 2174, 1290, 15292, 2187, 20850, ...
try: self.decoder.run(intr, ctrl) except: print >> sys.stderr, "Connection broken or error." traceback.print_exc()
self.decoder.run(intr, ctrl)
def listen(self): intr_sock = self.prepare_socket(L2CAP_PSM_HIDP_INTR) ctrl_sock = self.prepare_socket(L2CAP_PSM_HIDP_CTRL)
85711d88bcf50d45a423ed8add160ec68ed204c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/917/85711d88bcf50d45a423ed8add160ec68ed204c6/ps3joy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 12, 2890, 4672, 28600, 67, 15031, 273, 365, 18, 9366, 67, 7814, 12, 48, 22, 17296, 67, 5857, 49, 67, 44, 734, 52, 67, 3217, 54, 13, 6414, 67, 15031, 273, 365, 18, 9366, 67, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 12, 2890, 4672, 28600, 67, 15031, 273, 365, 18, 9366, 67, 7814, 12, 48, 22, 17296, 67, 5857, 49, 67, 44, 734, 52, 67, 3217, 54, 13, 6414, 67, 15031, 273, 365, 18, 9366, 67, 7...
if gridSite == "Unknown":
if gridSite == "Unknown":
def getPilotMonitorWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot job information in a standard structure """ resultDict = {} last_update = None if selectDict.has_key('LastUpdateTime'): last_update = selectDict['LastUpdateTime'] del selectDict['LastUpdateTime'] # Sorting instructions. Only one for the moment. if sortList: orderAttribute = sortList[0][0]+":"+sortList[0][1] else: orderAttribute = None # Select pilots for the summary result = self.selectPilots(selectDict, orderAttribute=orderAttribute, newer=last_update) if not result['OK']: return S_ERROR('Failed to select pilots: '+result['Message']) pList = result['Value'] nPilots = len(pList) resultDict['TotalRecords'] = nPilots if nPilots == 0: return S_OK(resultDict)
4281b6ebd17e9e6456de007d4a03f9fe1ab6a236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4281b6ebd17e9e6456de007d4a03f9fe1ab6a236/PilotAgentsDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 22797, 7187, 4079, 12, 2890, 16, 4025, 5014, 16, 3804, 682, 16, 1937, 1180, 16, 1896, 3126, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 1719, 1779, 316, 279, 4529, 3695, 3536, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1689, 22797, 7187, 4079, 12, 2890, 16, 4025, 5014, 16, 3804, 682, 16, 1937, 1180, 16, 1896, 3126, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 1719, 1779, 316, 279, 4529, 3695, 3536, 225...
libraries=['ntl', 'gmp']), \
libraries=['ntl', 'gmp', 'pari']), \
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
3a93dea60c5c29d4edbfea22e2e831b22ddc6251 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/3a93dea60c5c29d4edbfea22e2e831b22ddc6251/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 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, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
last_uid = current = None for date, author, field, old, new, permanent in changelog: uid = date, author, permanent if uid != last_uid: last_uid = uid current = { 'date': format_datetime(date), 'author': author, 'fields': {} } changes.append(current) if permanent: autonum += 1 current['cnum'] = autonum if field == 'comment': current['comment'] = wiki_to_html(new, self.env, req, db) if permanent: this_num = str(autonum) if old: if '.' in old: parent_num, this_num = old.split('.', 1) current['replyto'] = parent_num replies.setdefault(parent_num, []).append(this_num) else: this_num = old assert this_num == str(autonum) if replyto == this_num: quote_original(author, new, 'comment:%s' % replyto) elif field == 'description': current['fields'][field] = '' else: current['fields'][field] = {'old': old, 'new': new}
cnum = 0 for change in self.grouped_changelog_entries(ticket, db): changes.append(change) comment = '' if 'comment' in change: comment = change['comment'] change['comment'] = wiki_to_html(comment, self.env, req, db) if change['permanent']: cnum = change['cnum'] if 'replyto' in change: replies.setdefault(change['replyto'], []).append(cnum) if replyto == str(cnum): quote_original(change['author'], comment, 'comment:%s' % replyto)
def quote_original(author, original, link): if not 'comment' in req.args: # i.e. the comment was not yet edited req.hdf['ticket.comment'] = '\n'.join( ['Replying to [%s %s]:' % (link, author)] + ['> %s' % line for line in original.splitlines()] + [''])
10e669f9ff9c4495cefc3e7943da30e0dc2d287f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/10e669f9ff9c4495cefc3e7943da30e0dc2d287f/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 67, 8830, 12, 4161, 16, 2282, 16, 1692, 4672, 309, 486, 296, 3469, 11, 316, 1111, 18, 1968, 30, 468, 277, 18, 73, 18, 326, 2879, 1703, 486, 4671, 18532, 1111, 18, 26428, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3862, 67, 8830, 12, 4161, 16, 2282, 16, 1692, 4672, 309, 486, 296, 3469, 11, 316, 1111, 18, 1968, 30, 468, 277, 18, 73, 18, 326, 2879, 1703, 486, 4671, 18532, 1111, 18, 26428, 3292, ...
self.assertEquals(len(httpauth.password_list.passwords), 1)
self.assertEquals(len(httpauth.password_list.passwords), start_count+1)
def test_basic_two_domains_same_realm(self): # test that if two domains have the same realm, we don't allow 1 # password to overwrite the other #14613 header = 'Basic realm="Protected Space"' url = 'http://example.com/foo/test.html' url2 = 'http://example2.com/foo/test.html' self.assertEquals(len(httpauth.password_list.passwords), 0) self.ask_for_http_auth(url, header) self.assertEquals(len(httpauth.password_list.passwords), 1) self.ask_for_http_auth(url2, header) self.assertEquals(len(httpauth.password_list.passwords), 2) # same thing with digest auth header = 'Digest realm="Protected Space",nonce="123"' self.ask_for_http_auth(url, header) self.assertEquals(len(httpauth.password_list.passwords), 3) self.ask_for_http_auth(url2, header) self.assertEquals(len(httpauth.password_list.passwords), 4)
4b8289b873f0a4753ec0728418ee74d1de9d4fd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4b8289b873f0a4753ec0728418ee74d1de9d4fd7/httpclienttest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13240, 67, 15415, 67, 14180, 67, 14307, 67, 24056, 12, 2890, 4672, 468, 1842, 716, 309, 2795, 10128, 1240, 326, 1967, 11319, 16, 732, 2727, 1404, 1699, 404, 468, 2201, 358, 615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13240, 67, 15415, 67, 14180, 67, 14307, 67, 24056, 12, 2890, 4672, 468, 1842, 716, 309, 2795, 10128, 1240, 326, 1967, 11319, 16, 732, 2727, 1404, 1699, 404, 468, 2201, 358, 615...
dll.jmi_get_cd.argtypes = [ct.c_void_p] dll.jmi_get_ci.argtypes = [ct.c_void_p] dll.jmi_get_dx.argtypes = [ct.c_void_p]
dll.jmi_get_cd.argtypes = [ct.c_void_p] dll.jmi_get_ci.argtypes = [ct.c_void_p] dll.jmi_get_dx.argtypes = [ct.c_void_p]
def load_DLL(libname, path): """Loads a model from a DLL file and returns it. The filepath can be be both with or without file suffixes (as long as standard file suffixes are used, that is). Example inputs that should work: >> lib = loadDLL('model') >> lib = loadDLL('model.dll') >> lib = loadDLL('model.so') . All of the above should work on the JModelica supported platforms. However, the first one is recommended as it is the most platform independent syntax. @param libname Name of the librarym without prefix. @param path The relative or absolute path to the library. @see http://docs.python.org/library/ct.html """ try: dll = Nct.load_library(libname, path) except OSError, e: raise JMIException("Could not load library '%s' in path '%s'." \ % (libname, path)) # Initializing the jmi C struct jmi = ct.c_voidp() assert dll.jmi_new(byref(jmi)) == 0, \ "jmi_new returned non-zero" assert jmi.value is not None, \ "jmi struct not returned correctly" # Initialize the global variables used throughout the tests. n_ci = ct.c_int() n_cd = ct.c_int() n_pi = ct.c_int() n_pd = ct.c_int() n_dx = ct.c_int() n_x = ct.c_int() n_u = ct.c_int() n_w = ct.c_int() n_tp = ct.c_int() n_z = ct.c_int() assert dll.jmi_get_sizes(jmi, \ byref(n_ci), \ byref(n_cd), \ byref(n_pi), \ byref(n_pd), \ byref(n_dx), \ byref(n_x), \ byref(n_u), \ byref(n_w), \ byref(n_tp), \ byref(n_z)) \ is 0, \ "getting sizes failed" # Setting return type to numpy.array for some functions int_res_funcs = [(dll.jmi_get_ci, n_ci.value), (dll.jmi_get_cd, n_cd.value), (dll.jmi_get_pi, n_pi.value), (dll.jmi_get_pd, n_pd.value), (dll.jmi_get_dx, n_dx.value), (dll.jmi_get_x, n_x.value), (dll.jmi_get_u, n_u.value), (dll.jmi_get_w, n_w.value), (dll.jmi_get_t, n_tp.value), (dll.jmi_get_dx_p, n_dx.value), (dll.jmi_get_x_p, n_x.value), (dll.jmi_get_u_p, n_u.value), (dll.jmi_get_w_p, n_w.value), (dll.jmi_get_z, n_z.value)] for (func, length) in int_res_funcs: _returns_ndarray(func, c_jmi_real_t, length, order='C') n_eq_F = ct.c_int() assert dll.jmi_dae_get_sizes(jmi, \ byref(n_eq_F)) \ is 0, \ "getting DAE sizes failed" dF_n_nz = ct.c_int() if dll.jmi_dae_dF_n_nz(jmi, JMI_DER_SYMBOLIC, byref(dF_n_nz)) \ is not 0: dF_n_nz = None dJ_n_nz = ct.c_int() if dll.jmi_opt_dJ_n_nz(jmi, JMI_DER_SYMBOLIC, byref(dJ_n_nz)) \ is not 0: dJ_n_nz = None dJ_n_dense = ct.c_int(n_z.value); dF_n_dense = ct.c_int(n_z.value \ * n_eq_F.value) J = c_jmi_real_t(); #static jmi_opt_sim_t *jmi_opt_sim; #static jmi_opt_sim_ipopt_t *jmi_opt_sim_ipopt; jmi_opt_sim = ct.c_void_p() jmi_opt_sim_ipopt = ct.c_void_p() # The return types for these functions are set in jmi.py's # function load_DLL(...) ci = dll.jmi_get_ci(jmi); cd = dll.jmi_get_cd(jmi); pi = dll.jmi_get_pi(jmi); pd = dll.jmi_get_pd(jmi); dx = dll.jmi_get_dx(jmi); x = dll.jmi_get_x(jmi); u = dll.jmi_get_u(jmi); w = dll.jmi_get_w(jmi); t = dll.jmi_get_t(jmi); dx_p_1 = dll.jmi_get_dx_p(jmi, 0); x_p_1 = dll.jmi_get_x_p(jmi, 0); u_p_1 = dll.jmi_get_u_p(jmi, 0); w_p_1 = dll.jmi_get_w_p(jmi, 0); dx_p_2 = dll.jmi_get_dx_p(jmi, 1); x_p_2 = dll.jmi_get_x_p(jmi, 1); u_p_2 = dll.jmi_get_u_p(jmi, 1); w_p_2 = dll.jmi_get_w_p(jmi, 1); z = dll.jmi_get_z(jmi) # Setting parameter types dll.jmi_dae_F.argtypes = [ct.c_void_p, \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ shape=n_eq_F.value, \ flags='C')] dll.jmi_dae_dF.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] if dF_n_nz is not None: dll.jmi_dae_dF_nz_indices.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ shape=n_z.value, \ flags='C'), \ Nct.ndpointer( dtype=ct.c_int, \ ndim=1, \ shape=dF_n_nz.value, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ shape=dF_n_nz.value, \ flags='C')] else: dll.jmi_dae_dF_nz_indices.errcheck = \ fail_error_check("Functionality not supported.") dll.jmi_dae_dF_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, \ ct.c_int, \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ shape=n_z.value, \ flags='C'), \ ct.POINTER(ct.c_int), \ ct.POINTER(ct.c_int)] dll.jmi_init_F0.argtypes = [ct.c_void_p, \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] dll.jmi_init_dF0.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] dll.jmi_init_dF0_nz_indices.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C')] dll.jmi_init_dF0_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, \ ct.c_int, \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ ct.POINTER(ct.c_int), \ ct.POINTER(ct.c_int)] dll.jmi_init_F1.argtypes = [ct.c_void_p, \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] dll.jmi_init_dF1.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] dll.jmi_init_dF1_nz_indices.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C')] dll.jmi_init_dF1_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, \ ct.c_int, \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ ct.POINTER(ct.c_int), \ ct.POINTER(ct.c_int)] dll.jmi_ode_f.argtypes = [ct.c_void_p] dll.jmi_ode_df.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=c_jmi_real_t, \ ndim=1, \ flags='C')] dll.jmi_ode_df_nz_indices.argtypes = [ct.c_void_p, \ ct.c_int, \ ct.c_int, \ Nct.ndpointer( \ dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C')] dll.jmi_ode_df_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, \ ct.c_int, \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ ct.POINTER(ct.c_int), \ ct.POINTER(ct.c_int)] dll.jmi_get_cd.argtypes = [ct.c_void_p] dll.jmi_get_ci.argtypes = [ct.c_void_p] dll.jmi_get_dx.argtypes = [ct.c_void_p] dll.jmi_get_dx_p.argtypes = [ct.c_void_p, ct.c_int] dll.jmi_get_pd.argtypes = [ct.c_void_p] dll.jmi_get_pi.argtypes = [ct.c_void_p] dll.jmi_get_t.argtypes = [ct.c_void_p] dll.jmi_get_u.argtypes = [ct.c_void_p] dll.jmi_get_u_p.argtypes = [ct.c_void_p, ct.c_int] dll.jmi_get_w.argtypes = [ct.c_void_p] dll.jmi_get_w_p.argtypes = [ct.c_void_p, ct.c_int] dll.jmi_get_x.argtypes = [ct.c_void_p] dll.jmi_get_x_p.argtypes = [ct.c_void_p, ct.c_int] dll.jmi_get_z.argtypes = [ct.c_void_p] assert dll.jmi_delete(jmi) == 0, \ "jmi_delete failed" return dll
eb8f7e855e40c03a39a16ea92f88dd971630efa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/eb8f7e855e40c03a39a16ea92f88dd971630efa3/jmi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 40, 4503, 12, 2941, 529, 16, 589, 4672, 3536, 7968, 279, 938, 628, 279, 463, 4503, 585, 471, 1135, 518, 18, 225, 1021, 3608, 848, 506, 506, 3937, 598, 578, 2887, 585, 18333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 40, 4503, 12, 2941, 529, 16, 589, 4672, 3536, 7968, 279, 938, 628, 279, 463, 4503, 585, 471, 1135, 518, 18, 225, 1021, 3608, 848, 506, 506, 3937, 598, 578, 2887, 585, 18333, ...
self.skin = SkinSelector.skin
def __init__(self, session, args = None):
bff20b44ef4d4885eea730e3dce5e3c890af6083 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/bff20b44ef4d4885eea730e3dce5e3c890af6083/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 833, 273, 599, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 833, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
notification_center.post_notification('BonjourAccountDidRemoveNeighbour', sender=self.account,
NotificationCenter().post_notification('BonjourAccountDidRemoveNeighbour', sender=self.account,
def _browse_cb(self, file, flags, interface_index, error_code, service_name, regtype, reply_domain): notification_center = NotificationCenter() if error_code != bonjour.kDNSServiceErr_NoError: self._discover_timer = reactor.callLater(1, self._command_channel.send, Command('discover')) return if not (flags & bonjour.kDNSServiceFlagsAdd): uri = FrozenSIPURI.parse(service_name.strip('<>').encode('utf-8')) if uri != self.account.contact[uri.parameters.get('transport', 'udp')] and uri in self._neighbours: self._neighbours.remove(uri) notification_center.post_notification('BonjourAccountDidRemoveNeighbour', sender=self.account, data=TimestampedNotificationData(uri=uri)) return try: file = bonjour.DNSServiceResolve(0, interface_index, service_name, regtype, reply_domain, self._resolve_cb) except bonjour.BonjourError: # Maybe we should log the error, but how? -Luci pass else: bonjour_file = BonjourFile(file, 'resolution') self._files.append(bonjour_file) self._select_proc.kill(RestartSelect)
dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25731, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 1156, 67, 529, 16, 960, 723, 16, 4332, 67, 4308, 4672, 3851, 67, 5693, 273, 8050, 8449, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25731, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 1156, 67, 529, 16, 960, 723, 16, 4332, 67, 4308, 4672, 3851, 67, 5693, 273, 8050, 8449, ...
if v is not None and v not in l: l.append(v)
if v is not None: if not isinstance(v, str): v = v.compiler_type if v not in l: l.append(v)
def finalize_options(self): log.info('unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options') build_clib = self.get_finalized_command('build_clib') build_ext = self.get_finalized_command('build_ext') config = self.get_finalized_command('config') build = self.get_finalized_command('build') cmd_list = [self, config, build_clib, build_ext, build] for a in ['fcompiler']: l = [] for c in cmd_list: v = getattr(c,a) if v is not None and v not in l: l.append(v) if not l: v1 = None else: v1 = l[0] if len(l)>1: log.warn(' commands have different --%s options: %s'\ ', using first in list as default' % (a, l)) if v1: for c in cmd_list: if getattr(c,a) is None: setattr(c, a, v1) return
5c2ffbb0da2669cc15c383d378d8ff5f63fda27f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/5c2ffbb0da2669cc15c383d378d8ff5f63fda27f/config_compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 613, 18, 1376, 2668, 318, 430, 310, 642, 67, 7142, 16, 642, 16, 1361, 67, 830, 495, 16, 1361, 67, 408, 16, 1361, 4364, 1493, 74, 9576, 702, 6134, 136...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12409, 67, 2116, 12, 2890, 4672, 613, 18, 1376, 2668, 318, 430, 310, 642, 67, 7142, 16, 642, 16, 1361, 67, 830, 495, 16, 1361, 67, 408, 16, 1361, 4364, 1493, 74, 9576, 702, 6134, 136...
sum/product of the smaller). If r is given and r is True, I.integral_closure() starts with a check whether I is already a
sum/product of the smaller). If $r$ is given and \code{r is True}, \code{I.integral_closure()} starts with a check whether I is already a
def integral_closure(self, p=0, r=True): """ Let I == self. Returns the integral closure of I, ..., I^p, where sI is an ideal in the polynomial ring R=k[x(1),...x(n)]. If p is not given, or p==0, compute the closure of all powers up to the maximum degree in t occurring in the closure of R[It] (so this is the last power whose closure is not just the sum/product of the smaller). If r is given and r is True, I.integral_closure() starts with a check whether I is already a radical ideal.
07f0039d91b8ff804ca8ca77f7d0a12a1b2061be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/07f0039d91b8ff804ca8ca77f7d0a12a1b2061be/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21423, 67, 20823, 12, 2890, 16, 293, 33, 20, 16, 436, 33, 5510, 4672, 3536, 10559, 467, 422, 365, 18, 225, 2860, 326, 21423, 7213, 434, 467, 16, 1372, 16, 467, 66, 84, 16, 1625, 272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21423, 67, 20823, 12, 2890, 16, 293, 33, 20, 16, 436, 33, 5510, 4672, 3536, 10559, 467, 422, 365, 18, 225, 2860, 326, 21423, 7213, 434, 467, 16, 1372, 16, 467, 66, 84, 16, 1625, 272,...
def test_ogrinfo_7():
def test_ogrinfo_8():
def test_ogrinfo_7(): if test_cli_utilities.get_ogrinfo_path() is None: return 'skip' ret = gdaltest.runexternal(test_cli_utilities.get_ogrinfo_path() + ' ../ogr/data/poly.shp poly -spat 479609 4764629 479764 4764817') if ogrtest.have_geos(): if ret.find('Feature Count: 4') == -1: return 'fail' return 'success' else: if ret.find('Feature Count: 5') == -1: return 'fail' return 'success'
0676cbc5d58f30a7a94b1c52b6c833419742f497 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/0676cbc5d58f30a7a94b1c52b6c833419742f497/test_ogrinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 717, 86, 1376, 67, 28, 13332, 309, 1842, 67, 4857, 67, 1367, 1961, 18, 588, 67, 717, 86, 1376, 67, 803, 1435, 353, 599, 30, 327, 296, 7457, 11, 225, 325, 273, 15551, 2390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 717, 86, 1376, 67, 28, 13332, 309, 1842, 67, 4857, 67, 1367, 1961, 18, 588, 67, 717, 86, 1376, 67, 803, 1435, 353, 599, 30, 327, 296, 7457, 11, 225, 325, 273, 15551, 2390, ...
print "seek "+str(self.seek)+" 2\n"
if DEBUG: print "seek "+str(self.seek)+" 2\n"
def eventhandler(self, event): """ eventhandler for mplayer control. If an event is not bound in this function it will be passed over to the items eventhandler """
4d4cbecd1b64b161427892bd2f2bed9b00002280 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/4d4cbecd1b64b161427892bd2f2bed9b00002280/mplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 3536, 871, 4176, 364, 312, 14872, 3325, 18, 971, 392, 871, 353, 486, 2489, 316, 333, 445, 518, 903, 506, 2275, 1879, 358, 326, 1516, 871, 4176, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 3536, 871, 4176, 364, 312, 14872, 3325, 18, 971, 392, 871, 353, 486, 2489, 316, 333, 445, 518, 903, 506, 2275, 1879, 358, 326, 1516, 871, 4176, 3536...
STRING, [cty.POINTER(FL_OBJECT)],
STRING, [cty.POINTER(FL_OBJECT)],
def fl_get_active_folder_number(ob): """ fl_get_active_folder_number(ob) -> num. """ retval = _fl_get_active_folder_number(ob) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 3535, 67, 5609, 67, 2696, 12, 947, 4672, 3536, 1183, 67, 588, 67, 3535, 67, 5609, 67, 2696, 12, 947, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 3535, 67, 5609, 67, 2696, 12, 947, 4672, 3536, 1183, 67, 588, 67, 3535, 67, 5609, 67, 2696, 12, 947, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, ...