rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
assert nbands > 0 'Error: Number of bands (nbands) not set' assert ecut is not None 'Error: Planewave cutoff energy in eV (ecut) not set' | if not nbands > 0: raise ValueError('Number of bands (nbands) not set') if ecut is None: raise ValueError('Planewave cutoff energy in eV (ecut) not set') | def __init__(self, label='abinit', xc='LDA', kpts=None, nbands=0, width=0.04*Hartree, ecut=None, charge=0, pulay=5, mix=0.1, pps='fhi' ): """Construct ABINIT-calculator object. | 027d62d707da98243cfc9fc83a6fd1ac9479c7d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/027d62d707da98243cfc9fc83a6fd1ac9479c7d2/abinit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
2218,
378,
2738,
2187,
15192,
2218,
48,
9793,
2187,
417,
1092,
33,
7036,
16,
4264,
5708,
33,
20,
16,
1835,
33,
20,
18,
3028,
14,
44,
485,
992,
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,
1001,
2738,
972,
12,
2890,
16,
1433,
2218,
378,
2738,
2187,
15192,
2218,
48,
9793,
2187,
417,
1092,
33,
7036,
16,
4264,
5708,
33,
20,
16,
1835,
33,
20,
18,
3028,
14,
44,
485,
992,
16... |
return re.findall('<span class="tag-chain-item-span">(\w*?)</span>', content, re.IGNORECASE|re.DOTALL) | return re.findall('<span class="(?:tag-chain-item-span|tagItem)">(\w*?)</span>', content, re.IGNORECASE|re.DOTALL) | def _getNGramRelatedTags( content ): """ returns the related tags for the given n-gram @param content of the tags' page @return a list of related tags """ return re.findall('<span class="tag-chain-item-span">(\w*?)</span>', content, re.IGNORECASE|re.DOTALL) | bfb3d835e5489ed882fadc3619f355fc348245c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6604/bfb3d835e5489ed882fadc3619f355fc348245c8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
4960,
1940,
8017,
3453,
12,
913,
262,
30,
3536,
1135,
326,
3746,
2342,
364,
326,
864,
290,
17,
3295,
632,
891,
913,
434,
326,
2342,
11,
1363,
632,
2463,
279,
666,
434,
3746,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4960,
1940,
8017,
3453,
12,
913,
262,
30,
3536,
1135,
326,
3746,
2342,
364,
326,
864,
290,
17,
3295,
632,
891,
913,
434,
326,
2342,
11,
1363,
632,
2463,
279,
666,
434,
3746,
... |
None, [cty.POINTER(FL_OBJECT), cty.c_int], | None, [cty.POINTER(FL_OBJECT), cty.c_int], | def fl_get_xyplot_numdata(obj, id): """ fl_get_xyplot_numdata(obj, id) -> num. """ retval = _fl_get_xyplot_numdata(obj, id) 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,
1698,
4032,
67,
2107,
892,
12,
2603,
16,
612,
4672,
3536,
1183,
67,
588,
67,
1698,
4032,
67,
2107,
892,
12,
2603,
16,
612,
13,
317,
818,
18,
3536,
225,
5221,
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,
1183,
67,
588,
67,
1698,
4032,
67,
2107,
892,
12,
2603,
16,
612,
4672,
3536,
1183,
67,
588,
67,
1698,
4032,
67,
2107,
892,
12,
2603,
16,
612,
13,
317,
818,
18,
3536,
225,
5221,
273,
... |
self.assertEqual(a.next(), 0) self.assertEqual(a.next(), 1) | for i in xrange(100): self.assertEqual(a.next(), i) | def irange(n): for i in xrange(n): yield i | 26cc0e4ef689e7c983a3b4cfbd6904aba50a1c60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/26cc0e4ef689e7c983a3b4cfbd6904aba50a1c60/test_itertools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
3676,
12,
82,
4672,
364,
277,
316,
12314,
12,
82,
4672,
2824,
277,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
3676,
12,
82,
4672,
364,
277,
316,
12314,
12,
82,
4672,
2824,
277,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
assert_equal(cephes.pro_ang1_cv(1,1,1,1,0),(1.0,0.0)) | assert_array_almost_equal(cephes.pro_ang1_cv(1,1,1,1,0), array((1.0,0.0))) | def check_pro_ang1_cv(self): assert_equal(cephes.pro_ang1_cv(1,1,1,1,0),(1.0,0.0)) | 76b070c091fac9b2cebceb2c9e24712a1cd809ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/76b070c091fac9b2cebceb2c9e24712a1cd809ea/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
685,
67,
539,
21,
67,
19774,
12,
2890,
4672,
1815,
67,
9729,
12,
311,
844,
281,
18,
685,
67,
539,
21,
67,
19774,
12,
21,
16,
21,
16,
21,
16,
21,
16,
20,
3631,
12,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
685,
67,
539,
21,
67,
19774,
12,
2890,
4672,
1815,
67,
9729,
12,
311,
844,
281,
18,
685,
67,
539,
21,
67,
19774,
12,
21,
16,
21,
16,
21,
16,
21,
16,
20,
3631,
12,
21,
... |
Return '' if no cooked data available otherwise. Don't block. | Return b'' if no cooked data available otherwise. Don't block. | def read_very_lazy(self): """Return any data available in the cooked queue (very lazy). | 326ef86b41f6cb43653ace4abaf10445c8f1501c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/326ef86b41f6cb43653ace4abaf10445c8f1501c/telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3242,
67,
15998,
12,
2890,
4672,
3536,
990,
1281,
501,
2319,
316,
326,
15860,
329,
2389,
261,
3242,
7962,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3242,
67,
15998,
12,
2890,
4672,
3536,
990,
1281,
501,
2319,
316,
326,
15860,
329,
2389,
261,
3242,
7962,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if 0 <= newItemIndex < len(self.canvasItemsByDate): self.OnSelectItem(self.canvasItemsByDate[newItemIndex].item) | if 0 <= newItemIndex < len(self.canvasItemList): self.OnSelectItem(self.canvasItemList[newItemIndex].item) | def OnNavigateItem(self, direction): | b96b795ca552cb7a2ac10e36a16eb30e3345e962 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b96b795ca552cb7a2ac10e36a16eb30e3345e962/TimedCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
50,
20698,
1180,
12,
2890,
16,
4068,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
50,
20698,
1180,
12,
2890,
16,
4068,
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... |
for rooms in msg.rooms: room, users = rooms self.roomsmodel.append([room, Humanize(users), users, 0]) if len(msg.rooms) < 200 or users > 2: self.rooms.append(room) | for room, users in msg.rooms: self.roomsmodel.append([room, users, users]) self.rooms.append(room) | def SetRoomList(self, msg): if self.autojoin: self.autojoin = 0 if self.joinedrooms.keys(): list = self.joinedrooms.keys() else: list = self.frame.np.config.sections["server"]["autojoin"] | 3461deb06acecf71d609bd51524fb250228a39af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/3461deb06acecf71d609bd51524fb250228a39af/chatrooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
13646,
682,
12,
2890,
16,
1234,
4672,
225,
309,
365,
18,
6079,
5701,
30,
365,
18,
6079,
5701,
273,
374,
309,
365,
18,
5701,
329,
13924,
87,
18,
2452,
13332,
666,
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,
1000,
13646,
682,
12,
2890,
16,
1234,
4672,
225,
309,
365,
18,
6079,
5701,
30,
365,
18,
6079,
5701,
273,
374,
309,
365,
18,
5701,
329,
13924,
87,
18,
2452,
13332,
666,
273,
365,
18,
... |
checker.allowedClasses['div']['latexmacros'] = 1 checker.allowedClasses['span']['latexformula'] = 1 | checker.allowedClasses['div'].__self__['latexmacros'] = 1 checker.allowedClasses['span'].__self__['latexformula'] = 1 | def generate_lint(self, d): checker = lint.getDefaultChecker() checker.allowedClasses = checker.allowedClasses.copy() checker.allowedClasses['div']['latexmacros'] = 1 checker.allowedClasses['span']['latexformula'] = 1 return lambda file, linkrel: lint.doFile(file, checker) | 2cb0892f1084e8afe0a4265a9606590e71096c7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2cb0892f1084e8afe0a4265a9606590e71096c7e/math.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
5671,
12,
2890,
16,
302,
4672,
12489,
273,
19477,
18,
588,
1868,
8847,
1435,
12489,
18,
8151,
4818,
273,
12489,
18,
8151,
4818,
18,
3530,
1435,
12489,
18,
8151,
4818,
3292,
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,
2103,
67,
5671,
12,
2890,
16,
302,
4672,
12489,
273,
19477,
18,
588,
1868,
8847,
1435,
12489,
18,
8151,
4818,
273,
12489,
18,
8151,
4818,
18,
3530,
1435,
12489,
18,
8151,
4818,
3292,
289... |
ret += " Exit: "+socket.inet_ntoa(struct.pack(">I",self.exit_obj.ip))+" "+self.exit_node+" ("+self.exit_name+")\n" | ret += " Exit: "+socket.inet_ntoa(struct.pack(">I",self.exit_ip))+" "+self.exit_node+" ("+self.exit_name+")\n" | def __str__(self): ret = self.__class__.__name__+" for "+self.site+"\n" ret += " Time: "+time.ctime(self.timestamp)+"\n" ret += " Exit: "+socket.inet_ntoa(struct.pack(">I",self.exit_obj.ip))+" "+self.exit_node+" ("+self.exit_name+")\n" ret += " Contact: "+str(self.contact)+"\n" ret += " "+str(RESULT_STRINGS[self.status... | 833140454c12125c17d6c252c271d1af14969ca2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/833140454c12125c17d6c252c271d1af14969ca2/libsoat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
325,
273,
365,
16186,
1106,
972,
16186,
529,
972,
9078,
364,
13773,
2890,
18,
4256,
9078,
64,
82,
6,
325,
1011,
315,
2647,
30,
13773,
957,
18,
21261,
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,
1001,
701,
972,
12,
2890,
4672,
325,
273,
365,
16186,
1106,
972,
16186,
529,
972,
9078,
364,
13773,
2890,
18,
4256,
9078,
64,
82,
6,
325,
1011,
315,
2647,
30,
13773,
957,
18,
21261,
12... |
if cern_urls: ret += '<strong>CERN links</strong>: ' | if CFG_CERN_SITE and cern_urls: link_word = len(cern_urls) == 1 and 'link' or 'links' ret += '<strong>CERN %s</strong>: ' % link_word | def format(bfo, style, separator='; '): """ This is the default format for formatting full-text reference. @param separator the separator between urls. @param style CSS class of the link """ urls = bfo.fields("8564_") ret = "" #ret += "%s<br />" % urls bibarchive = BibRecDocs(bfo.recID) old_version_there = False main... | 078f6396e8ebf59ff7f320b6486f57ac2d0b485d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/078f6396e8ebf59ff7f320b6486f57ac2d0b485d/bfe_fulltext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
70,
617,
16,
2154,
16,
4182,
2218,
31,
296,
4672,
3536,
1220,
353,
326,
805,
740,
364,
10407,
1983,
17,
955,
2114,
18,
632,
891,
4182,
326,
4182,
3086,
6903,
18,
632,
891,
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,
740,
12,
70,
617,
16,
2154,
16,
4182,
2218,
31,
296,
4672,
3536,
1220,
353,
326,
805,
740,
364,
10407,
1983,
17,
955,
2114,
18,
632,
891,
4182,
326,
4182,
3086,
6903,
18,
632,
891,
2... |
if self.pool.get('res.partner').user_id == False: | id = self.browse(cr, uid, ids)[0] if not id.partner_id.user_id: | def onchange_user_id(self, cr, uid, ids,zip_id): | 5e8c0b04df5ba3af2c287c7dc10128ef094f3a8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/5e8c0b04df5ba3af2c287c7dc10128ef094f3a8b/cci_partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
1355,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4450,
67,
350,
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,
... | [
1,
1,
1,
1,
1,
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,
603,
3427,
67,
1355,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4450,
67,
350,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def set_rule(ruleText): self.rule = ruleText | self.isRubyRule = False def set_rule(self, ruleText): self.rule = str(ruleText.rule) self.isRubyRule = ruleText.isRubyRule | def __init__(self, name): global society self.name = name self.fire_count = 0 self.rule = None self.fired = False self.society = None | 9ff22ae88db42c681cf48c074d1c3e51f035b35a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2947/9ff22ae88db42c681cf48c074d1c3e51f035b35a/society_factory2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
2552,
272,
1882,
14369,
365,
18,
529,
273,
508,
365,
18,
12179,
67,
1883,
273,
374,
365,
18,
5345,
273,
599,
365,
18,
74,
2921,
273,
1083,
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,
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,
508,
4672,
2552,
272,
1882,
14369,
365,
18,
529,
273,
508,
365,
18,
12179,
67,
1883,
273,
374,
365,
18,
5345,
273,
599,
365,
18,
74,
2921,
273,
1083,
3... |
_unreachable_names = {DottedName(DottedName.UNREACHABLE):2} | _unreachable_names = {DottedName(DottedName.UNREACHABLE):1} | def link_imports(val_doc, docindex): # Check if the ValueDoc has an unresolved proxy_for link. # If so, then resolve it. while val_doc.proxy_for not in (UNKNOWN, None): # Find the valuedoc that the proxy_for name points to. src_doc = docindex.get_valdoc(val_doc.proxy_for) # If we don't have any valuedoc at that addres... | d6f70ed40e8e374ae1518023f9807be279e3536a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d6f70ed40e8e374ae1518023f9807be279e3536a/docbuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
21350,
12,
1125,
67,
2434,
16,
997,
1615,
4672,
468,
2073,
309,
326,
1445,
1759,
711,
392,
20573,
2889,
67,
1884,
1692,
18,
468,
971,
1427,
16,
1508,
2245,
518,
18,
1323,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1692,
67,
21350,
12,
1125,
67,
2434,
16,
997,
1615,
4672,
468,
2073,
309,
326,
1445,
1759,
711,
392,
20573,
2889,
67,
1884,
1692,
18,
468,
971,
1427,
16,
1508,
2245,
518,
18,
1323,
124... |
self.setVerbosity(menu=self.debugmenu) | self.setVerbosity(menu=self.debugmenu,reset=self.verbose) | def OnInit(self): """ Main application initialization. Called by the wx framework. """ self.debugmenu=DebugClass(None) if self.verbose: self.setVerbosity() BufferApp.OnInit(self) | 4559d631a52501d6330a70b5dfd87813eb9ac010 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11522/4559d631a52501d6330a70b5dfd87813eb9ac010/peppy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
3536,
12740,
2521,
10313,
18,
225,
11782,
635,
326,
7075,
8257,
18,
3536,
365,
18,
4148,
5414,
33,
2829,
797,
12,
7036,
13,
225,
309,
365,
18,
11369,
30,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
3536,
12740,
2521,
10313,
18,
225,
11782,
635,
326,
7075,
8257,
18,
3536,
365,
18,
4148,
5414,
33,
2829,
797,
12,
7036,
13,
225,
309,
365,
18,
11369,
30,
36... |
if self._runMissed and not self._paused and not missedAlready and \ | if 1 or self._runMissed and not self._paused and not missedAlready and \ | def _CalcNextRun(self, missedAlready = False): # calculate when the next task should run # depending on last run time, update frequency, # task start time and day of the week | 495268894c173ed43f18677c6e25064c17735630 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3644/495268894c173ed43f18677c6e25064c17735630/Scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25779,
2134,
1997,
12,
2890,
16,
25143,
9430,
273,
1083,
4672,
468,
4604,
1347,
326,
1024,
1562,
1410,
1086,
468,
8353,
603,
1142,
1086,
813,
16,
1089,
8670,
16,
468,
1562,
787,
813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
25779,
2134,
1997,
12,
2890,
16,
25143,
9430,
273,
1083,
4672,
468,
4604,
1347,
326,
1024,
1562,
1410,
1086,
468,
8353,
603,
1142,
1086,
813,
16,
1089,
8670,
16,
468,
1562,
787,
813... |
if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) | if size < 0: size = sys.maxint readsize = self.min_readsize else: readsize = size bufs = "" | def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) # Read from the file in small chunks while True: if size == 0: return "".join(bufs) # Return resulting line | 8cdb86f4f4e29fe44e6c1f56381203bdad29fefb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8cdb86f4f4e29fe44e6c1f56381203bdad29fefb/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
855,
1467,
273,
365,
18,
1154,
67,
896,
1467,
469,
30,
855,
1467,
273,
963,
225,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
855,
1467,
273,
365,
18,
1154,
67,
896,
1467,
469,
30,
855,
1467,
273,
963,
225,
168... |
path = "%s:%s" % (drive, path) | path = "%s:%s" % (drive, path.replace('\\', '/')) | def find_fragment(path, fragment): if "#" in path: # the fragment is improperly placed in the path path1, fragment1 = path.rsplit("#", 1) if fragment1.isdigit(): return path1, fragment1 return path, fragment | 5666c738b30d1804916ebcfa56b71099d5b14865 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/5666c738b30d1804916ebcfa56b71099d5b14865/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
11956,
12,
803,
16,
5481,
4672,
309,
13092,
316,
589,
30,
468,
326,
5481,
353,
13069,
457,
715,
15235,
316,
326,
589,
589,
21,
16,
5481,
21,
273,
589,
18,
86,
4939,
2932,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
11956,
12,
803,
16,
5481,
4672,
309,
13092,
316,
589,
30,
468,
326,
5481,
353,
13069,
457,
715,
15235,
316,
326,
589,
589,
21,
16,
5481,
21,
273,
589,
18,
86,
4939,
2932,
7... |
bgimage.paste(picture,(int(node.attributes["x"].value), int(node.attributes["y"].value)),picture) | bgimage.paste(picture, (getScaledAttribute(node, "x"), getScaledAttribute(node, "y")), picture) | def drawThemeItem(page, itemsonthispage, itemnum, menuitem, bgimage, draw, bgimagemask, drawmask, spumuxdom, spunode, numberofitems, chapternumber, chapterlist): """Draws text and graphics onto a dvd menu, called by createMenu and createChapterMenu""" #Get the XML containing information about this item infoDOM = xml.do... | 4a04444bb400931195d3d8968b619bcd683cb485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/4a04444bb400931195d3d8968b619bcd683cb485/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
8335,
1180,
12,
2433,
16,
761,
816,
2211,
2433,
16,
761,
2107,
16,
3824,
1726,
16,
7611,
2730,
16,
3724,
16,
7611,
15374,
351,
835,
16,
3724,
4455,
16,
1694,
379,
2616,
9859,
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,
3724,
8335,
1180,
12,
2433,
16,
761,
816,
2211,
2433,
16,
761,
2107,
16,
3824,
1726,
16,
7611,
2730,
16,
3724,
16,
7611,
15374,
351,
835,
16,
3724,
4455,
16,
1694,
379,
2616,
9859,
16,... |
"calling %s returned %s, not a test" % obj,test | "calling %s returned %s, not a test" % (obj,test) | def loadTestsFromName(self, name, module=None): """Return a suite of all tests cases given a string specifier. | 7e911725dcd06f01daec1d3c86a322d0e0df7875 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7e911725dcd06f01daec1d3c86a322d0e0df7875/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14650,
29732,
12,
2890,
16,
508,
16,
1605,
33,
7036,
4672,
3536,
990,
279,
11371,
434,
777,
7434,
6088,
864,
279,
533,
24562,
18,
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,
1262,
14650,
29732,
12,
2890,
16,
508,
16,
1605,
33,
7036,
4672,
3536,
990,
279,
11371,
434,
777,
7434,
6088,
864,
279,
533,
24562,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.linere = re.compile(r'\[(.*)\] ([A-Z]+):([\w\.-]+):(.*)$', re.DOTALL) | self.linere = re.compile(r'\[(.*)\] ([A-Z_]+):([\w\.-]+):(.*)$', re.DOTALL) | def __init__(self, root_path, port, netport, addons_path, pyver=None, srv_mode='v600', timed=False, debug=False, do_warnings=False, ftp_port=None, defines=False, pyargs=False, config=None): threading.Thread.__init__(self) self.root_path = root_path self.port = port # self.addons_path = addons_path self.args = [ 'python... | dd3284a195e0dd5af013f09d638bf6501ad8b221 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12355/dd3284a195e0dd5af013f09d638bf6501ad8b221/base_quality_interrogation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
67,
803,
16,
1756,
16,
2901,
655,
16,
31439,
67,
803,
16,
2395,
502,
33,
7036,
16,
7302,
67,
3188,
2218,
90,
28133,
2187,
7491,
33,
8381,
16,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1365,
67,
803,
16,
1756,
16,
2901,
655,
16,
31439,
67,
803,
16,
2395,
502,
33,
7036,
16,
7302,
67,
3188,
2218,
90,
28133,
2187,
7491,
33,
8381,
16,
119... |
self.checkbuttonPublicEvent = \ self.gla.get_widget("checkbuttonPublicEvent") | self.checkbuttonPublishEvent = \ self.gla.get_widget("checkbuttonPublishEvent") | def __init__(self, client = None, streams = None, options = None): self.client = client self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagWheelZoom = True #Switch use of mousewheel for zooming #this next flag indicates if we zoom on time or amplitude axis self.... | 08072571b11b984a33e9ee53ba52401ff881eaff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/08072571b11b984a33e9ee53ba52401ff881eaff/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1004,
273,
599,
16,
8205,
273,
599,
16,
702,
273,
599,
4672,
365,
18,
2625,
273,
1004,
365,
18,
16320,
273,
8205,
365,
18,
2116,
273,
702,
468,
11644,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1004,
273,
599,
16,
8205,
273,
599,
16,
702,
273,
599,
4672,
365,
18,
2625,
273,
1004,
365,
18,
16320,
273,
8205,
365,
18,
2116,
273,
702,
468,
11644,
... |
self.__conn = TelnetConnection(host, port) | self.__host = host self.__port = port self.__conn = TelnetConnection() self.__kwds = ['outlet/1', 'outlet/2', 'outlet/3', 'outlet/4', 'outlet/5', 'outlet/6', 'outlet/7', 'outlet/8'] def _open(self): self.__conn.open(self.__host, self.__port) | def __init__(self, host='power_strip', port=None): self.__conn = TelnetConnection(host, port) self.__conn.write('guppi\r') self.__conn.write('guppi\r') self.__conn.read_until('iBootBar > ') # For some reason it eats the first character after this... # sending a non-whitespace character seems to fix it # (i.e., sending ... | 0da50c4db386908652d93d5c0216473bf4620593 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/0da50c4db386908652d93d5c0216473bf4620593/powerstrip_agent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
12238,
67,
6406,
2187,
1756,
33,
7036,
4672,
365,
16186,
2564,
273,
1479,
365,
16186,
655,
273,
1756,
365,
16186,
4646,
273,
399,
292,
2758,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
12238,
67,
6406,
2187,
1756,
33,
7036,
4672,
365,
16186,
2564,
273,
1479,
365,
16186,
655,
273,
1756,
365,
16186,
4646,
273,
399,
292,
2758,
19... |
assert theUser.isSubscribedTo([pagename]) | assert theUser.isSubscribedTo([pagename]) | def testSubscriptionSubscribedPage(self): """ user: tests isSubscribedTo """ pagename = u'HelpMiscellaneous' name = u'__Jürgen Herman__' password = name self.createUser(name, password, charset='iso-8859-1') # Login - this should replace the old password in the user file theUser = user.User(self.request, name=name, pas... | 489996b6b06b8148dbbcb33bea9d363ff2f13a36 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/489996b6b06b8148dbbcb33bea9d363ff2f13a36/test_user.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6663,
1676,
15802,
1964,
12,
2890,
4672,
3536,
729,
30,
7434,
16523,
15802,
774,
225,
3536,
4262,
1069,
273,
582,
11,
6696,
11729,
3855,
15522,
11,
508,
273,
582,
11,
972,
46,
132,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6663,
1676,
15802,
1964,
12,
2890,
4672,
3536,
729,
30,
7434,
16523,
15802,
774,
225,
3536,
4262,
1069,
273,
582,
11,
6696,
11729,
3855,
15522,
11,
508,
273,
582,
11,
972,
46,
132,... |
opnum, args, descr = self.parse_op(line) return ResOperation(opnum, args, None, descr) | opnum, args, descr, vdesc = self.parse_op(line) res = ResOperation(opnum, args, None, descr) res.vdesc = vdesc return res | def parse_op_no_result(self, line): opnum, args, descr = self.parse_op(line) return ResOperation(opnum, args, None, descr) | 54081199adc228fda10fa7c2b2863eec932ec413 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/54081199adc228fda10fa7c2b2863eec932ec413/oparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
556,
67,
2135,
67,
2088,
12,
2890,
16,
980,
4672,
1061,
2107,
16,
833,
16,
18426,
273,
365,
18,
2670,
67,
556,
12,
1369,
13,
327,
1124,
2988,
12,
556,
2107,
16,
833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
556,
67,
2135,
67,
2088,
12,
2890,
16,
980,
4672,
1061,
2107,
16,
833,
16,
18426,
273,
365,
18,
2670,
67,
556,
12,
1369,
13,
327,
1124,
2988,
12,
556,
2107,
16,
833,
16,
... |
chr(idaapi.get_byte(ea+1)) + \ chr(idaapi.get_byte(ea+2)) + \ chr(idaapi.get_byte(ea+3)) + \ chr(idaapi.get_byte(ea+4)) + \ chr(idaapi.get_byte(ea+5)) + \ chr(idaapi.get_byte(ea+6)) + \ chr(idaapi.get_byte(ea+7)) | chr(idaapi.get_byte(ea+1)) + \ chr(idaapi.get_byte(ea+2)) + \ chr(idaapi.get_byte(ea+3)) + \ chr(idaapi.get_byte(ea+4)) + \ chr(idaapi.get_byte(ea+5)) + \ chr(idaapi.get_byte(ea+6)) + \ chr(idaapi.get_byte(ea+7)) | def GetDouble(ea): """ Get value of a floating point number (8 bytes) @param ea: linear address @return: double """ str = chr(idaapi.get_byte(ea)) + \ chr(idaapi.get_byte(ea+1)) + \ chr(idaapi.get_byte(ea+2)) + \ chr(idaapi.get_byte(ea+3)) + \ chr(idaapi.get_byte(ea+4)) + \ chr(idaapi.get_byte(ea+5)) + \ chr(idaapi.g... | ef3c3980d318aa030ce35c3391b5e86be138c0b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/ef3c3980d318aa030ce35c3391b5e86be138c0b7/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5265,
12,
24852,
4672,
3536,
968,
460,
434,
279,
13861,
1634,
1300,
261,
28,
1731,
13,
225,
632,
891,
24164,
30,
9103,
1758,
225,
632,
2463,
30,
1645,
3536,
609,
273,
4513,
12,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5265,
12,
24852,
4672,
3536,
968,
460,
434,
279,
13861,
1634,
1300,
261,
28,
1731,
13,
225,
632,
891,
24164,
30,
9103,
1758,
225,
632,
2463,
30,
1645,
3536,
609,
273,
4513,
12,
35... |
print '--Call--' self.interaction(frame, None) | if self.stop_here(frame): print '--Call--' self.interaction(frame, None) | def user_call(self, frame, argument_list): """This method is called when there is the remote possibility that we ever need to stop in this function.""" print '--Call--' self.interaction(frame, None) | a5bf9c50c16918c12a5ba81fc0bfd008d9750563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a5bf9c50c16918c12a5ba81fc0bfd008d9750563/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
1991,
12,
2890,
16,
2623,
16,
1237,
67,
1098,
4672,
3536,
2503,
707,
353,
2566,
1347,
1915,
353,
326,
2632,
25547,
716,
732,
14103,
1608,
358,
2132,
316,
333,
445,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
1991,
12,
2890,
16,
2623,
16,
1237,
67,
1098,
4672,
3536,
2503,
707,
353,
2566,
1347,
1915,
353,
326,
2632,
25547,
716,
732,
14103,
1608,
358,
2132,
316,
333,
445,
12123,
1172,
... |
if render: | if render and not getattr(render, 'base_method', False): | def execute(self, factory, config, context, layer, name, **kw): # Make sure that we have a render Method render = getattr(factory, 'render', None) if render: raise GrokError("View Class '%s' has a render method, use CodeView instead" % factory, factory) | 59c6b60309b4182df1e72a9f77fd789a80e6fbfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9609/59c6b60309b4182df1e72a9f77fd789a80e6fbfa/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
3272,
16,
642,
16,
819,
16,
3018,
16,
508,
16,
2826,
9987,
4672,
468,
4344,
3071,
716,
732,
1240,
279,
1743,
2985,
1743,
273,
3869,
12,
6848,
16,
296,
5902,
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,
1836,
12,
2890,
16,
3272,
16,
642,
16,
819,
16,
3018,
16,
508,
16,
2826,
9987,
4672,
468,
4344,
3071,
716,
732,
1240,
279,
1743,
2985,
1743,
273,
3869,
12,
6848,
16,
296,
5902,
2187,
... |
stime, addr, password, digest = record | stime, addr, password, digest, lang = record os.environ['LANG'] = lang | def __handlesubscription(self, record, value, comment): stime, addr, password, digest = record if value == mm_cfg.REJECT: # refused self.__refuse(_('Subscription request'), addr, comment) else: # subscribe assert value == mm_cfg.SUBSCRIBE self.ApprovedAddMember(addr, password, digest) # TBD: disgusting hack: ApprovedAd... | 5748676a683311882b8786486ba29efe68b3fdcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/5748676a683311882b8786486ba29efe68b3fdcf/ListAdmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
24111,
373,
3100,
12,
2890,
16,
1409,
16,
460,
16,
2879,
4672,
384,
494,
16,
3091,
16,
2201,
16,
5403,
16,
3303,
273,
1409,
1140,
18,
28684,
3292,
10571,
3546,
273,
3303,
309,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24111,
373,
3100,
12,
2890,
16,
1409,
16,
460,
16,
2879,
4672,
384,
494,
16,
3091,
16,
2201,
16,
5403,
16,
3303,
273,
1409,
1140,
18,
28684,
3292,
10571,
3546,
273,
3303,
309,
46... |
optionsroot = util.findDescendantNode(node.templatenode,['options']) assert optionsroot is not None, 'Schema node %s is of type "select", but lacks the "options" child node.' % node | def _validate(self,nodes,usedefault=True,repair=0,callback=None,usehistory=True): | 48c729348cf6f20964ec1b9d599a6f4417976946 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/48c729348cf6f20964ec1b9d599a6f4417976946/xmlstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
12,
2890,
16,
4690,
16,
1202,
1886,
33,
5510,
16,
266,
6017,
33,
20,
16,
3394,
33,
7036,
16,
1202,
8189,
33,
5510,
4672,
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,
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,
389,
5662,
12,
2890,
16,
4690,
16,
1202,
1886,
33,
5510,
16,
266,
6017,
33,
20,
16,
3394,
33,
7036,
16,
1202,
8189,
33,
5510,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
notification_center = NotificationCenter() notification_center.post_notification('BonjourAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData()) | NotificationCenter().post_notification('BonjourAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData()) | def _CH_stop(self, command): if self._discover_timer is not None: self._discover_timer.cancel() self._discover_timer = None if self._register_timer is not None: self._register_timer.cancel() self._register_timer = None old_files = self._files self._files = [] self._select_proc.kill(RestartSelect) self._neighbours = set... | 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,
1792,
67,
5681,
12,
2890,
16,
1296,
4672,
309,
365,
6315,
2251,
3165,
67,
12542,
353,
486,
599,
30,
365,
6315,
2251,
3165,
67,
12542,
18,
10996,
1435,
365,
6315,
2251,
3165,
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,
389,
1792,
67,
5681,
12,
2890,
16,
1296,
4672,
309,
365,
6315,
2251,
3165,
67,
12542,
353,
486,
599,
30,
365,
6315,
2251,
3165,
67,
12542,
18,
10996,
1435,
365,
6315,
2251,
3165,
67,
1... |
impl_decl = func.GetInfo('impl_decl') if impl_decl == None or impl_decl == True: file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n") | file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n") | def WriteGLES2ImplementationDeclaration(self, func, file): """Writes the GLES2 Implemention declaration.""" impl_decl = func.GetInfo('impl_decl') if impl_decl == None or impl_decl == True: file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n") | 51fd18b10aa37d57d2c4a42581e98423629780d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/51fd18b10aa37d57d2c4a42581e98423629780d0/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
6094,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
8266,
12123,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
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,
2598,
43,
11386,
22,
13621,
6094,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
8266,
12123,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
67,
... |
revision=rev)) for rev in revs[:revs_limit] ])) | revision=rev)) for rev in revs[revs_limit:] ])) | def get_cs_links(): if action == 'push': revs_limit = 1000 revs = action_params.split(',') cs_links = " " + ', '.join ([link(rev, url('changeset_home', repo_name=user_log.repository.repo_name, revision=rev)) for rev in revs[:revs_limit] ]) if len(revs) > revs_limit: uniq_id = revs[0] html_tmpl = ('<span> %s ' '<a class... | 379a860546822df147e66eb12554faf23db7f283 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/379a860546822df147e66eb12554faf23db7f283/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2143,
67,
7135,
13332,
309,
1301,
422,
296,
6206,
4278,
5588,
87,
67,
3595,
273,
4336,
5588,
87,
273,
1301,
67,
2010,
18,
4939,
12,
2187,
6134,
2873,
67,
7135,
273,
315,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2143,
67,
7135,
13332,
309,
1301,
422,
296,
6206,
4278,
5588,
87,
67,
3595,
273,
4336,
5588,
87,
273,
1301,
67,
2010,
18,
4939,
12,
2187,
6134,
2873,
67,
7135,
273,
315,
315,
... |
href = ' | href = hash_char + self.document.nameids[node['refname']] | def visit_reference(self, node): # for pdflatex hyperrefs might be supported if node.has_key('refuri'): href = node['refuri'] elif node.has_key('refid'): href = '#' + node['refid'] elif node.has_key('refname'): href = '#' + self.document.nameids[node['refname']] ##self.body.append('[visit_reference]') self.body.append(... | 8c71b8106c318ff7308fe6236ad35489c89508e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/8c71b8106c318ff7308fe6236ad35489c89508e5/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6180,
12,
2890,
16,
756,
4672,
468,
364,
8169,
26264,
9512,
9316,
4825,
506,
3260,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
3897,
273,
756,
3292,
1734,
1650,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6180,
12,
2890,
16,
756,
4672,
468,
364,
8169,
26264,
9512,
9316,
4825,
506,
3260,
309,
756,
18,
5332,
67,
856,
2668,
1734,
1650,
11,
4672,
3897,
273,
756,
3292,
1734,
1650,
... |
assert numpy.allclose(function([i, ii, d, f, c], d/i)(5, 3, 7.0, 11.0, complex(5,3)), | assert numpy.allclose(function([i, ii, d, f, c], d/i)(5, 3, 7.0, 11.0, numpy.complex(5,3)), | def test_impls(self): i = iscalar() ii = lscalar() d = dscalar() f = fscalar() c = cscalar() | 0a3fe4b99e23b2737070818cb32d11a9903eef7c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/0a3fe4b99e23b2737070818cb32d11a9903eef7c/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11299,
87,
12,
2890,
4672,
277,
273,
353,
3473,
1435,
6072,
273,
7180,
3473,
1435,
302,
273,
3780,
3473,
1435,
284,
273,
2662,
3473,
1435,
276,
273,
2873,
3473,
1435,
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,
1842,
67,
11299,
87,
12,
2890,
4672,
277,
273,
353,
3473,
1435,
6072,
273,
7180,
3473,
1435,
302,
273,
3780,
3473,
1435,
284,
273,
2662,
3473,
1435,
276,
273,
2873,
3473,
1435,
2,
-100,
... |
f = open(self.tmpin, 'rb') | f = open(self.tmpin, 'r') | def test_decode(self): try: f = open(self.tmpin, 'wb') f.write(encodedtextwrapped % (0644, self.tmpout)) f.close() | 052cba55a8cabb57613072a38d75177aa271a4d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/052cba55a8cabb57613072a38d75177aa271a4d9/test_uu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3922,
12,
2890,
4672,
775,
30,
284,
273,
1696,
12,
2890,
18,
5645,
267,
16,
296,
9464,
6134,
284,
18,
2626,
12,
10787,
955,
18704,
738,
261,
20,
22087,
16,
365,
18,
5645,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3922,
12,
2890,
4672,
775,
30,
284,
273,
1696,
12,
2890,
18,
5645,
267,
16,
296,
9464,
6134,
284,
18,
2626,
12,
10787,
955,
18704,
738,
261,
20,
22087,
16,
365,
18,
5645,
6... |
(STAGING_SERVER, | (options.staging_server, | def repackBuild(self): zip_cmd = "7za a \"%s\" nonlocalized" % self.build shellCommand(zip_cmd) | d0f9ca8b1b49555604e4d5183d003d16db4dc89b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/d0f9ca8b1b49555604e4d5183d003d16db4dc89b/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
22049,
87,
2412,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
22049,
87,
2412,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
-100,
-100,
... |
rLanguage = "|".join(self.languages.keys() + self.languages.values()) | rLanguage = "|".join(self.languageToLangs.keys() + self.languageToLangs.values()) | def __init__(self): """ >>> t = translate() >>> re.compile(t.rTranslation).search("zh_en").group(1) 'zh' >>> re.compile(t.rTranslation).search("zh_en").group(2) 'en' >>> t.re.match("translate").group(0) 'translate' >>> t.re.match("translate zh_en test").group(2) 'zh' >>> t.re.match("translate chinese to english test").... | fd55c3d5934d42607dcda50b67e16b2c5391c58b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10749/fd55c3d5934d42607dcda50b67e16b2c5391c58b/weblookup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
4080,
268,
273,
4204,
1435,
4080,
283,
18,
11100,
12,
88,
18,
86,
6717,
2934,
3072,
2932,
23121,
67,
275,
20387,
1655,
12,
21,
13,
296,
23121,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
4080,
268,
273,
4204,
1435,
4080,
283,
18,
11100,
12,
88,
18,
86,
6717,
2934,
3072,
2932,
23121,
67,
275,
20387,
1655,
12,
21,
13,
296,
23121,
11... |
sites = [site] + [site for site in site.values() if ISite.providedBy(site)] else: sites = [site] | sites = [site] + [site for site in site.values() if ISite.providedBy(site)] | def principalRemovingHandler(ev): site = getSite() if site is not None: if site.__parent__ is not None: site = site.__parent__ sites = [site] + [site for site in site.values() if ISite.providedBy(site)] else: sites = [site] for site in sites: for name, manager in getUtilitiesFor(IPersonalSpaceManager, context=site): ma... | e23a7e189cfe39c2e20721ab413ddcc035973420 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12561/e23a7e189cfe39c2e20721ab413ddcc035973420/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8897,
18939,
1503,
12,
14965,
4672,
2834,
273,
11021,
1435,
309,
2834,
353,
486,
599,
30,
309,
2834,
16186,
2938,
972,
353,
486,
599,
30,
2834,
273,
2834,
16186,
2938,
972,
9180,
273,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8897,
18939,
1503,
12,
14965,
4672,
2834,
273,
11021,
1435,
309,
2834,
353,
486,
599,
30,
309,
2834,
16186,
2938,
972,
353,
486,
599,
30,
2834,
273,
2834,
16186,
2938,
972,
9180,
273,
30... |
if how_to_index: | if how_to_index is not None: | def build_indexes(verbose = False): """ Using the how_to_index annotations in the table class definitions, construct a set of indexes for the database at the current connection. """ cursor = DBTable_get_connection().cursor() for table_name in DBTable_table_names(): try: # FIXME: figure out how to do this extensibly ho... | 8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/8994913ae6ac57e8ee70b7fa9d9dde61fc8f3bb8/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
11265,
12,
11369,
273,
1083,
4672,
3536,
11637,
326,
3661,
67,
869,
67,
1615,
5617,
316,
326,
1014,
667,
6377,
16,
4872,
279,
444,
434,
5596,
364,
326,
2063,
622,
326,
783,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
11265,
12,
11369,
273,
1083,
4672,
3536,
11637,
326,
3661,
67,
869,
67,
1615,
5617,
316,
326,
1014,
667,
6377,
16,
4872,
279,
444,
434,
5596,
364,
326,
2063,
622,
326,
783,
1... |
'author_id': lambda x,y,z,c: z, | 'author_id': lambda x, y, z, c: z, | def _stock_search(self, cr, uid, obj, name, args): locations = self.pool.get('stock.location').search(cr, uid, [('usage','=','internal')]) cr.execute('''select prodlot_id, sum(name) from stock_report_prodlots where location_id in ('''+','.join(map(str, locations)) +''') group by prodlot_id having sum(name) ''' + str(... | 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,
15381,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
4672,
7838,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
3072,
12,
3353,
16,
4555,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15381,
67,
3072,
12,
2890,
16,
4422,
16,
4555,
16,
1081,
16,
508,
16,
833,
4672,
7838,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
3562,
16063,
3072,
12,
3353,
16,
4555,
16,
3... |
return 1 | return True | def __eq__(self, l): """MUST BE IMPLEMENTED""" if l.x == self.x and l.y == self.y: return 1 else: return 0 | 6c6d84c3ad2857d8a0531038f79a0f65cf5df53e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6661/6c6d84c3ad2857d8a0531038f79a0f65cf5df53e/astar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
328,
4672,
3536,
49,
5996,
9722,
15694,
28485,
6404,
8395,
309,
328,
18,
92,
422,
365,
18,
92,
471,
328,
18,
93,
422,
365,
18,
93,
30,
327,
1053,
469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
328,
4672,
3536,
49,
5996,
9722,
15694,
28485,
6404,
8395,
309,
328,
18,
92,
422,
365,
18,
92,
471,
328,
18,
93,
422,
365,
18,
93,
30,
327,
1053,
469,... |
self.guideOnBtn.setEnable(guideCmdOK and not isExecOrGuiding) self.applyBtn.setEnable(isGuiding and isCurrIm and guideCmdOK and areParamsModified) | self.guideOnBtn.setEnable(showCurrIm and guideCmdOK and not isExecOrGuiding) self.applyBtn.setEnable(showCurrIm and isGuiding and isCurrIm and guideCmdOK and areParamsModified) | def enableCmdButtons(self, wdg=None): """Set enable of command buttons. """ isImage = (self.dispImObj != None) isCurrIm = isImage and not self.nextImWdg.getEnable() isSel = (self.dispImObj != None) and (self.dispImObj.selDataColor != None) isGuiding = self.isGuiding() isExec = (self.doingCmd != None) isExecOrGuiding = ... | dad562967f6ad386f1d658a90b8d5b990a22361f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/dad562967f6ad386f1d658a90b8d5b990a22361f/GuideWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
5931,
14388,
12,
2890,
16,
14452,
75,
33,
7036,
4672,
3536,
694,
4237,
434,
1296,
9502,
18,
3536,
353,
2040,
273,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
353,
20143,
1170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4237,
5931,
14388,
12,
2890,
16,
14452,
75,
33,
7036,
4672,
3536,
694,
4237,
434,
1296,
9502,
18,
3536,
353,
2040,
273,
261,
2890,
18,
25453,
1170,
2675,
480,
599,
13,
353,
20143,
1170,
... |
"""try to push the parser to/over it's limits. | """try to push the parser to/over its limits. | def test_compile_badunicode(self): st = parser.suite('a = "\\U12345678"') self.assertRaises(SyntaxError, parser.compilest, st) st = parser.suite('a = "\\u1"') self.assertRaises(SyntaxError, parser.compilest, st) | 08d1a08d4fc7373bc2ab85572a2235e19607fd7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/08d1a08d4fc7373bc2ab85572a2235e19607fd7b/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11100,
67,
8759,
9124,
12,
2890,
4672,
384,
273,
2082,
18,
30676,
2668,
69,
273,
8422,
57,
28462,
4313,
8285,
5187,
13,
365,
18,
11231,
12649,
6141,
12,
22510,
16,
2082,
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,
11100,
67,
8759,
9124,
12,
2890,
4672,
384,
273,
2082,
18,
30676,
2668,
69,
273,
8422,
57,
28462,
4313,
8285,
5187,
13,
365,
18,
11231,
12649,
6141,
12,
22510,
16,
2082,
18,
... |
return [] | return [], [] | def recurseTrove(sourceRepos, name, version, flavor, callback = ChangesetCallback()): global recursedGroups assert(name.startswith("group-")) # there's nothing much we can recurse from the source if name.endswith(":source"): return [] # avoid grabbing the same group multiple times if (name, version, flavor) in recursed... | 2799f6fd34899a0b190318bab5da59c9dc79411c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/2799f6fd34899a0b190318bab5da59c9dc79411c/mirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11502,
56,
303,
537,
12,
3168,
28453,
16,
508,
16,
1177,
16,
19496,
16,
1348,
273,
17776,
278,
2428,
1435,
4672,
2552,
8112,
730,
3621,
1815,
12,
529,
18,
17514,
1918,
2932,
1655,
10951,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11502,
56,
303,
537,
12,
3168,
28453,
16,
508,
16,
1177,
16,
19496,
16,
1348,
273,
17776,
278,
2428,
1435,
4672,
2552,
8112,
730,
3621,
1815,
12,
529,
18,
17514,
1918,
2932,
1655,
10951,... |
if func.is_method(): container = func.cls() | if func.is_method(): container = func.cls() inherit = (container != cls.uid()) | def _func_summary(self, functions, sort_order, heading='Function Summary'): """ @return: The HTML code for a function summary table. This is used by L{_module_to_html} to list the functions in a module; and by L{_class_to_html} to list member functions. @rtype: C{string} """ functions = self._sort(functions, sort_orde... | c953b2de7aa23b0dce9a80366ed13af227c1f7f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/c953b2de7aa23b0dce9a80366ed13af227c1f7f3/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
7687,
12,
2890,
16,
4186,
16,
1524,
67,
1019,
16,
11053,
2218,
2083,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
4916,
1014,
18,
225,
1220,
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,
644,
67,
7687,
12,
2890,
16,
4186,
16,
1524,
67,
1019,
16,
11053,
2218,
2083,
17967,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
445,
4916,
1014,
18,
225,
1220,
353,... |
m.save_target_file_file(local_filename, request.FILES[FILE]['content']) | m.target_file.save(local_filename, request.FILES[FILE]) | def qsd(request, branch, name, section, action): READ_VERB = 'V/Flags/Public' EDIT_VERB = 'V/Administer/Edit/QSD' # Pages are global per-user (not unique per-user) cache_id = '%s_%s' % (branch.id, name) if action == 'read': base_url = request.path[:-5] else: base_url = request.path[:(-len(action)-6)] # Detect edit ... | e6e624596aa50084caf15a544b13b083db3e8a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/e6e624596aa50084caf15a544b13b083db3e8a14/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
6427,
12,
2293,
16,
3803,
16,
508,
16,
2442,
16,
1301,
4672,
225,
10746,
67,
2204,
38,
273,
296,
58,
19,
5094,
19,
4782,
11,
21307,
67,
2204,
38,
273,
296,
58,
19,
4446,
1249,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1043,
6427,
12,
2293,
16,
3803,
16,
508,
16,
2442,
16,
1301,
4672,
225,
10746,
67,
2204,
38,
273,
296,
58,
19,
5094,
19,
4782,
11,
21307,
67,
2204,
38,
273,
296,
58,
19,
4446,
1249,
... |
"could not create '%s': %s" % (head, errstr) | "could not create '%s': %s" % (head, exc[-1]) | def mkpath (name, mode=0777, verbose=0, dry_run=0): """Create a directory and any missing ancestor directories. If the directory already exists, return silently. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' i... | 739d06689dfd37e9233599c3fd95852bb96f71a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/739d06689dfd37e9233599c3fd95852bb96f71a1/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
803,
261,
529,
16,
1965,
33,
20,
14509,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
1818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5028,
803,
261,
529,
16,
1965,
33,
20,
14509,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
1818,
... |
initialOffset = offset if hasAuthor : if offset < 0x4000 : offset += 0x00010000 else : offset += 0x00800000 if hasDescription : if initialOffset < 0x4000 : offset += 0x00008000 else : offset += 0x00400000 if initialOffset == offset: indxt.write(chr(0)) | flagBits = 0 if hasAuthor : flagBits |= 0x4 if hasDescription : flagBits |= 0x2 indxt.write(pack('>B',flagBits)) | def _write_article_node(self, indxt, indices, index, offset, length, count, parentIndex) : pos = 0xc0 + indxt.tell() indices.write(pack('>H', pos)) # Save the offset for IDXTIndices name = "%04X"%count indxt.write(chr(len(name)) + name) # Write the name indxt.write(INDXT['article']) ... | 9887bba463362fe14afc96438ab074fa98e767c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/9887bba463362fe14afc96438ab074fa98e767c7/writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
11480,
67,
2159,
12,
2890,
16,
1547,
15239,
16,
4295,
16,
770,
16,
1384,
16,
769,
16,
1056,
16,
982,
1016,
13,
294,
949,
273,
374,
6511,
20,
397,
1547,
15239,
18,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
11480,
67,
2159,
12,
2890,
16,
1547,
15239,
16,
4295,
16,
770,
16,
1384,
16,
769,
16,
1056,
16,
982,
1016,
13,
294,
949,
273,
374,
6511,
20,
397,
1547,
15239,
18,
88,
... |
sage: v = sage.rings.number_field.totallyreal_rel.integral_elements_in_box(K, [[0,5],[0,5]]) sage: sorted([str(a) for a in v]) ['-alpha + 2', '-alpha + 3', '0', '1', '2', '3', '4', '5', 'alpha + 2', 'alpha + 3'] | sage: v = sage.rings.number_field.totallyreal_rel.integral_elements_in_box(K, C) sage: sorted(v) [-alpha + 3, -alpha + 2, 5, 4, 3, 2, 1, 0, alpha + 6, alpha + 5, alpha + 4, alpha + 3, alpha + 2, 2*alpha + 7, 2*alpha + 6, 2*alpha + 5, 2*alpha + 4, 2*alpha + 3, 3*alpha + 5] A cubic field:: sage: x = polygen(QQ) sage: K... | def integral_elements_in_box(K, C): r""" EXAMPLES: sage: K.<alpha> = NumberField(x^2-2) sage: ls = sage.rings.number_field.totallyreal_rel.integral_elements_in_box(K, [[0,5],[0,10]]) sage: sorted([ x.trace() for x in ls ]) [0, 2, 4, 4, 4, 6, 6, 6, 6, 8, 8, 8, 10, 10, 10, 10, 12, 12, 14] sage: len(ls) 19 sage: v = sage... | fc94716d5317c1ade2081a6d2259d0dede76417d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/fc94716d5317c1ade2081a6d2259d0dede76417d/totallyreal_rel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21423,
67,
6274,
67,
267,
67,
2147,
12,
47,
16,
385,
4672,
436,
8395,
5675,
8900,
11386,
30,
272,
410,
30,
1475,
22782,
5429,
34,
273,
3588,
974,
12,
92,
66,
22,
17,
22,
13,
272,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21423,
67,
6274,
67,
267,
67,
2147,
12,
47,
16,
385,
4672,
436,
8395,
5675,
8900,
11386,
30,
272,
410,
30,
1475,
22782,
5429,
34,
273,
3588,
974,
12,
92,
66,
22,
17,
22,
13,
272,
4... |
buffer = self.mode.editwin.getFirstSelectedBuffer() | buffer = self.mode.getFirstSelectedBuffer() | def action(self, index=-1, multiplier=1): buffer = self.mode.editwin.getFirstSelectedBuffer() if buffer: self.frame.setBuffer(buffer) | 5cfb102115321ea923828cfe2331e4b8f8a43e20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5cfb102115321ea923828cfe2331e4b8f8a43e20/dired.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
770,
29711,
21,
16,
15027,
33,
21,
4672,
1613,
273,
365,
18,
3188,
18,
588,
3759,
7416,
1892,
1435,
309,
1613,
30,
365,
18,
3789,
18,
542,
1892,
12,
4106,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1613,
273,
365,
18,
3188,
18,
588,
3759,
7416,
1892,
1435,
309,
1613,
30,
365,
18,
3789,
18,
542,
1892,
12,
4106,
13,
2,
... |
self.RescanOnStartup = gtk.CheckButton() self.RescanOnStartup.set_label(_("Rescan shares on startup")) self.RescanOnStartup.show() self.vbox77.pack_start(self.RescanOnStartup, False, False, 0) self.hbox113 = gtk.HBox(False, 0) self.hbox113.show() self.hbox113.set_spacing(5) self.scrolledwindow8 = gtk.ScrolledWindow(... | def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.SharesFrame = gtk.Window() se... | 813bd892e00cbf0bb0b8cac261792e712b6cefeb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/813bd892e00cbf0bb0b8cac261792e712b6cefeb/settings_glade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
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,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
... | |
Although standard (e.g. in the Python constructor '\xhh'), | Although standard (e.g., in the Python constructor '\xhh'), | def encoding(self,S,padic=False): r""" The encoding of the string S, as a hexidecimal string element. | ca219b0206186a194cdf8e11d2082bec654536f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ca219b0206186a194cdf8e11d2082bec654536f8/string_monoid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2688,
12,
2890,
16,
55,
16,
6982,
335,
33,
8381,
4672,
436,
8395,
1021,
2688,
434,
326,
533,
348,
16,
487,
279,
3827,
831,
17668,
533,
930,
18,
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,
0,
0,
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,
2688,
12,
2890,
16,
55,
16,
6982,
335,
33,
8381,
4672,
436,
8395,
1021,
2688,
434,
326,
533,
348,
16,
487,
279,
3827,
831,
17668,
533,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.setDaemon(True) | self.set_daemon(True) | def __init__(self, certfile): self.flag = None self.active = False self.RootedHTTPRequestHandler.root = os.path.split(CERTFILE)[0] self.port = support.find_unused_port() self.server = self.HTTPSServer( (HOST, self.port), self.RootedHTTPRequestHandler, certfile) threading.Thread.__init__(self) self.setDaemon(True) | bc9e85c911497fcb0770b1050cb7e67c38264dbe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/bc9e85c911497fcb0770b1050cb7e67c38264dbe/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3320,
768,
4672,
365,
18,
6420,
273,
599,
365,
18,
3535,
273,
1083,
365,
18,
2375,
329,
23891,
1503,
18,
3085,
273,
1140,
18,
803,
18,
4939,
12,
22367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3320,
768,
4672,
365,
18,
6420,
273,
599,
365,
18,
3535,
273,
1083,
365,
18,
2375,
329,
23891,
1503,
18,
3085,
273,
1140,
18,
803,
18,
4939,
12,
22367,
... |
repo.add(a) | repo.add(u) | def addremove(ui, repo): """add all new files, delete all missing files""" (c, a, d, u) = repo.diffdir(repo.root) repo.add(a) repo.remove(d) | cda98240b63a8bf5d6abeb2259dfc39c5f5ff840 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/cda98240b63a8bf5d6abeb2259dfc39c5f5ff840/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4479,
12,
4881,
16,
3538,
4672,
3536,
1289,
777,
394,
1390,
16,
1430,
777,
3315,
1390,
8395,
261,
71,
16,
279,
16,
302,
16,
582,
13,
273,
3538,
18,
5413,
1214,
12,
7422,
18,
308... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4479,
12,
4881,
16,
3538,
4672,
3536,
1289,
777,
394,
1390,
16,
1430,
777,
3315,
1390,
8395,
261,
71,
16,
279,
16,
302,
16,
582,
13,
273,
3538,
18,
5413,
1214,
12,
7422,
18,
308... |
print 'svn -N co svn://anonsvn.kde.org/home/kde/trunk %s/trunk' % localsvnroot os.system('svn -N co svn://anonsvn.kde.org/home/kde/trunk %s/trunk' % localsvnroot) | print 'svn -N co svn://anonsvn.kde.org/home/kde/trunk "%s/trunk"' % localsvnroot os.system('svn -N co svn://anonsvn.kde.org/home/kde/trunk "%s/trunk"' % localsvnroot) | def validatePage(self): if self.existing.isChecked(): return True if os.system('which svn')!=0: KMessageBox.error(self,i18n("Please install 'subversion' package\nto have Lokalize download KDE translation files."),i18n("Subversion client not found")) return False | 8656db64abbfe8e85055d82856dd6d64c5e780fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1688/8656db64abbfe8e85055d82856dd6d64c5e780fd/newprojectwizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
1964,
12,
2890,
4672,
309,
365,
18,
11711,
18,
291,
11454,
13332,
327,
1053,
309,
1140,
18,
4299,
2668,
12784,
5893,
82,
6134,
5,
33,
20,
30,
1475,
27647,
18,
1636,
12,
2890,
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,
1954,
1964,
12,
2890,
4672,
309,
365,
18,
11711,
18,
291,
11454,
13332,
327,
1053,
309,
1140,
18,
4299,
2668,
12784,
5893,
82,
6134,
5,
33,
20,
30,
1475,
27647,
18,
1636,
12,
2890,
16,... |
def dispatch_departure(self, node, method_name): | def dispatch_departure(self, node): node_name = node.__class__.__name__ | def dispatch_departure(self, node, method_name): method = getattr(self, 'depart_' + method_name, self.unknown_departure) return method(node) | 67f09319de9d69bbab60b7d746e98f5dde98e87d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/67f09319de9d69bbab60b7d746e98f5dde98e87d/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
323,
2680,
594,
12,
2890,
16,
756,
4672,
756,
67,
529,
273,
756,
16186,
1106,
972,
16186,
529,
972,
707,
273,
3869,
12,
2890,
16,
296,
323,
2680,
4623,
397,
707,
67,
529,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
323,
2680,
594,
12,
2890,
16,
756,
4672,
756,
67,
529,
273,
756,
16186,
1106,
972,
16186,
529,
972,
707,
273,
3869,
12,
2890,
16,
296,
323,
2680,
4623,
397,
707,
67,
529,
1... |
if "" == str.translate(idmap, LegalChars): | if len(filter(LegalChars.__contains__, str)) == len(str): | def _quote(str, LegalChars=_LegalChars, idmap=_idmap): # # If the string does not need to be double-quoted, # then just return the string. Otherwise, surround # the string in doublequotes and precede quote (with a \) # special characters. # if "" == str.translate(idmap, LegalChars): return str else: return '"' + _null... | 26547c170d08aef825a140b86868c82fbab44447 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/26547c170d08aef825a140b86868c82fbab44447/Cookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6889,
12,
701,
16,
17167,
287,
7803,
33,
67,
30697,
7803,
16,
612,
1458,
33,
67,
350,
1458,
4672,
468,
468,
971,
326,
533,
1552,
486,
1608,
358,
506,
1645,
17,
15179,
16,
468,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6889,
12,
701,
16,
17167,
287,
7803,
33,
67,
30697,
7803,
16,
612,
1458,
33,
67,
350,
1458,
4672,
468,
468,
971,
326,
533,
1552,
486,
1608,
358,
506,
1645,
17,
15179,
16,
468,
1... |
pattern = re.compile(u'\[\[(' + '|'.join(namespaces) + '):.+?\..+?\]\]', re.UNICODE) | pattern = re.compile(u'\[\[(' + '|'.join(namespaces) + '):.+?\..+?\]\]', re.UNICODE) | def fixArabicLetters(self, text): if self.site.lang=='ckb' or self.site.lang=='fa': exceptions = [ 'gallery', 'hyperlink', 'interwiki', # but changes letters inside wikilinks #'link', 'math', 'pre', 'template', 'timeline', 'ref', 'source', 'startspace', 'inputbox', ] # do not change inside file links namespaces = list(... | 58d3daae8615ef1513350cc21247d413ef111873 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/58d3daae8615ef1513350cc21247d413ef111873/cosmetic_changes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
37,
20727,
335,
24181,
5432,
12,
2890,
16,
977,
4672,
309,
365,
18,
4256,
18,
4936,
18920,
363,
70,
11,
578,
365,
18,
4256,
18,
4936,
18920,
507,
4278,
4798,
273,
306,
296,
21454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
37,
20727,
335,
24181,
5432,
12,
2890,
16,
977,
4672,
309,
365,
18,
4256,
18,
4936,
18920,
363,
70,
11,
578,
365,
18,
4256,
18,
4936,
18920,
507,
4278,
4798,
273,
306,
296,
21454... |
val = int(val) | try: val = int(val) except ValueError: try: val = float(val) except ValueError: val = None | def convert_value(item): '''Берет значение item.value, и конвертирует его в соответствии с типом item'a''' val = item.value if isinstance(item, ExtNumberField): if val: val = int(val) else: val = None elif isinstance(item, ExtStringField): val = unicode(val) elif isinstance(item, ExtDateField): #TODO уточнить формат да... | 2036819592b26f9662e8e59f170f5356952cd008 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5296/2036819592b26f9662e8e59f170f5356952cd008/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
1132,
12,
1726,
4672,
9163,
145,
244,
145,
118,
146,
227,
145,
118,
146,
229,
225,
145,
120,
145,
126,
145,
113,
146,
234,
145,
118,
145,
126,
145,
121,
145,
118,
761,
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,
1765,
67,
1132,
12,
1726,
4672,
9163,
145,
244,
145,
118,
146,
227,
145,
118,
146,
229,
225,
145,
120,
145,
126,
145,
113,
146,
234,
145,
118,
145,
126,
145,
121,
145,
118,
761,
18,
... |
seqWidget.show() | layout = QtGui.QVBoxLayout() layout.addWidget(seqWidget) self.setLayout(layout) | def __init__(self, sequence, parent=None): super(SequenceDlg, self).__init__(parent) seqWidget = SequenceWidget(sequence, parent=self) seqWidget.show() #layout = QtGui.QVBoxLayout() #layout.addWidget(seqWidget) #self.setLayout(layout) self.setWindowTitle('Sequence Dialog') | 4ecf390c875fd81dec418b7fa16e2af45d5d01fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/4ecf390c875fd81dec418b7fa16e2af45d5d01fb/SequenceView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3102,
16,
982,
33,
7036,
4672,
2240,
12,
4021,
40,
23623,
16,
365,
2934,
972,
2738,
972,
12,
2938,
13,
3833,
4609,
273,
8370,
4609,
12,
6178,
16,
982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3102,
16,
982,
33,
7036,
4672,
2240,
12,
4021,
40,
23623,
16,
365,
2934,
972,
2738,
972,
12,
2938,
13,
3833,
4609,
273,
8370,
4609,
12,
6178,
16,
982,
... |
self._list.__del__(name) | del self._list[name] | def remove(self, name): '''Remove an item from the list.''' if name in self._list: self._list.__del__(name) self.emit('item-removed', name) | e712e47a3a5833e05a0cc40c4722bf7accad5b38 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/e712e47a3a5833e05a0cc40c4722bf7accad5b38/namedlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
4672,
9163,
3288,
392,
761,
628,
326,
666,
1093,
6309,
309,
508,
316,
365,
6315,
1098,
30,
1464,
365,
6315,
1098,
63,
529,
65,
365,
18,
18356,
2668,
1726,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
4672,
9163,
3288,
392,
761,
628,
326,
666,
1093,
6309,
309,
508,
316,
365,
6315,
1098,
30,
1464,
365,
6315,
1098,
63,
529,
65,
365,
18,
18356,
2668,
1726,
17,
... |
optionalrepo = ("paths serve showconfig") | optionalrepo = ("identify paths serve showconfig") | def version_(ui): """output version and copyright information""" ui.write(_("Mercurial Distributed SCM (version %s)\n") % version.get_version()) ui.status(_( "\nCopyright (C) 2005-2007 Matt Mackall <mpm@selenic.com> and others\n" "This is free software; see the source for copying conditions. " "There is NO\nwarranty; "... | bb8815f12d2d641a0e5c506f0f577df68a1ebc9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/bb8815f12d2d641a0e5c506f0f577df68a1ebc9c/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
67,
12,
4881,
4672,
3536,
2844,
1177,
471,
22245,
1779,
8395,
5915,
18,
2626,
24899,
2932,
8478,
1397,
649,
27877,
8795,
49,
261,
1589,
738,
87,
5153,
82,
7923,
738,
1177,
18,
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,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
67,
12,
4881,
4672,
3536,
2844,
1177,
471,
22245,
1779,
8395,
5915,
18,
2626,
24899,
2932,
8478,
1397,
649,
27877,
8795,
49,
261,
1589,
738,
87,
5153,
82,
7923,
738,
1177,
18,
588,... |
children[-1].data = string.rstrip(children[-1].data) def fixup_trailing_whitespace(doc, wsmap): queue = [doc] | children[-1].data = children[-1].data.rstrip() def fixup_trailing_whitespace(doc, fragment, wsmap): queue = [fragment] fixups = [] | def handle_labels(doc, fragment): for label in find_all_elements(fragment, "label"): id = label.getAttribute("id") if not id: continue parent = label.parentNode parentTagName = parent.tagName if parentTagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) # now, remove <label i... | 3c171d1b9f1420a6bbce02f1511ffb6b621863ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c171d1b9f1420a6bbce02f1511ffb6b621863ef/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5336,
12,
2434,
16,
5481,
4672,
364,
1433,
316,
1104,
67,
454,
67,
6274,
12,
11956,
16,
315,
1925,
6,
4672,
612,
273,
1433,
18,
588,
1499,
2932,
350,
7923,
309,
486,
612,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5336,
12,
2434,
16,
5481,
4672,
364,
1433,
316,
1104,
67,
454,
67,
6274,
12,
11956,
16,
315,
1925,
6,
4672,
612,
273,
1433,
18,
588,
1499,
2932,
350,
7923,
309,
486,
612,
3... |
"Handle a notation declaration event." | "Handle a notation declaration event." | def notationDecl(self, name, publicId, systemId): | 682285d93e78124fd1e83f8a22824e7b1b261b4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/682285d93e78124fd1e83f8a22824e7b1b261b4f/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12155,
3456,
12,
2890,
16,
508,
16,
1071,
548,
16,
30083,
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,
... | [
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,
12155,
3456,
12,
2890,
16,
508,
16,
1071,
548,
16,
30083,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.ni = atoms.nimages-2 | def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',... | f1d52cfd851a7584be9609c1169d9c87bae506fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/f1d52cfd851a7584be9609c1169d9c87bae506fb/glbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
225,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
225,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
20,
468,
309,
12,
902,
365,
18,
15834,
4672,
... | |
copier = x.__deepcopy__ except AttributeError: | issc = issubclass(type(x), type) except TypeError: issc = 0 if issc: y = _deepcopy_dispatch[type](x, memo) else: | def deepcopy(x, memo = None): """Deep copy operation on arbitrary Python objects. See the module's __doc__ string for more info. """ if memo is None: memo = {} d = id(x) if d in memo: return memo[d] try: copierfunction = _deepcopy_dispatch[type(x)] except KeyError: try: copier = x.__deepcopy__ except AttributeError: ... | 9a66d46f026c9e6a2278551c925defe7d0f21db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9a66d46f026c9e6a2278551c925defe7d0f21db4/copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7217,
12,
92,
16,
11063,
273,
599,
4672,
3536,
13980,
1610,
1674,
603,
11078,
6600,
2184,
18,
225,
2164,
326,
1605,
1807,
1001,
2434,
972,
533,
364,
1898,
1123,
18,
3536,
225,
309,
11063... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7217,
12,
92,
16,
11063,
273,
599,
4672,
3536,
13980,
1610,
1674,
603,
11078,
6600,
2184,
18,
225,
2164,
326,
1605,
1807,
1001,
2434,
972,
533,
364,
1898,
1123,
18,
3536,
225,
309,
11063... |
4*5 + O(5^2) | 4*5 + 3*5^2 + O(5^3) | def padic_height(self, p, prec=20, sigma=None, check_hypotheses=True): r""" Computes the cyclotomic p-adic height. The equation of the curve must be minimal at $p$. | 65c3f320038580074d5807d5c1512949277d8800 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/65c3f320038580074d5807d5c1512949277d8800/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
7299,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4627,
335,
67,
4210,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
7299,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24... |
def GetAssValue(*args): return _micropolisengine.Micropolis_GetAssValue(*args) | def GetAssValue(*args): return _micropolisengine.Micropolis_GetAssValue(*args) | e51b428de62171c4f1422870a70f399e0c7b2d7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/e51b428de62171c4f1422870a70f399e0c7b2d7d/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2610,
620,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
967,
2610,
620,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2610,
620,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
967,
2610,
620,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
print '\n*** Changing thread stack size ***' if thread.stack_size() != 0: raise ValueError, "initial stack_size not 0" | def test_barrier(self): self.bar = Barrier(NUMTASKS) self.running = NUMTASKS for i in range(NUMTASKS): thread.start_new_thread(self.task2, (i,)) verbose_print("waiting for tasks to end") self.done_mutex.acquire() verbose_print("tasks done") | def task2(ident): global running for i in range(numtrips): if ident == 0: # give it a good chance to enter the next # barrier before the others are all out # of the current one delay = 0.001 else: rmutex.acquire() delay = random.random() * numtasks rmutex.release() if verbose: print 'task', ident, 'will run for', round... | 157f92e2b29d073ecbc5a79ea012f85cd0478331 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/157f92e2b29d073ecbc5a79ea012f85cd0478331/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
22,
12,
6392,
4672,
2552,
3549,
364,
277,
316,
1048,
12,
2107,
313,
7146,
4672,
309,
3390,
422,
374,
30,
468,
8492,
518,
279,
7494,
17920,
358,
6103,
326,
1024,
468,
24651,
1865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1562,
22,
12,
6392,
4672,
2552,
3549,
364,
277,
316,
1048,
12,
2107,
313,
7146,
4672,
309,
3390,
422,
374,
30,
468,
8492,
518,
279,
7494,
17920,
358,
6103,
326,
1024,
468,
24651,
1865,
... |
atomName = a.element.symbol """ if mol.protein: res = mol.protein.get_residue(a) if res: resId = res.get_id() resName = res.get_three_letter_code() atomName = res.get_atom_name(a) """ | if a.pdb_info and \ a.pdb_info.has_key('atom_name'): atomName = a.pdb_info['atom_name'] else: atomName = a.element.symbol | def exclude(atm): #bruce 050318 """ Exclude this atom (and bonds to it) from the file under the following conditions (as selected by excludeFlags): - if it is a singlet - if it is not visible - if it is a member of a hidden chunk - some dna-related conditions (see code for details) """ # Added not visible and hidden me... | b421798f406cc4e20840eb3ce4cfa72025e19253 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b421798f406cc4e20840eb3ce4cfa72025e19253/files_pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12,
270,
81,
4672,
468,
2848,
3965,
374,
3361,
23,
2643,
3536,
20760,
333,
3179,
261,
464,
15692,
358,
518,
13,
628,
326,
585,
3613,
326,
3751,
4636,
261,
345,
3170,
635,
4433,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4433,
12,
270,
81,
4672,
468,
2848,
3965,
374,
3361,
23,
2643,
3536,
20760,
333,
3179,
261,
464,
15692,
358,
518,
13,
628,
326,
585,
3613,
326,
3751,
4636,
261,
345,
3170,
635,
4433,
5... |
print >> file, exc_typename, exc_value | print >> file, exc_typename+':', exc_value | def print_detailed_traceback(self, space=None, file=None): """Dump a nice detailed interpreter- and application-level traceback, useful to debug the interpreter.""" if file is None: file = sys.stderr for i in range(len(self.debug_tbs)-1, -1, -1): import traceback interpr_file = LinePrefixer(file, '||') print >> interpr... | 018ce21fbfe94612f4213f8ae09889d688ea51cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/018ce21fbfe94612f4213f8ae09889d688ea51cc/executioncontext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
72,
6372,
67,
21696,
12,
2890,
16,
3476,
33,
7036,
16,
585,
33,
7036,
4672,
3536,
10628,
279,
13752,
6864,
16048,
17,
471,
2521,
17,
2815,
10820,
16,
5301,
358,
1198,
326,
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,
1172,
67,
72,
6372,
67,
21696,
12,
2890,
16,
3476,
33,
7036,
16,
585,
33,
7036,
4672,
3536,
10628,
279,
13752,
6864,
16048,
17,
471,
2521,
17,
2815,
10820,
16,
5301,
358,
1198,
326,
16... |
task_to_scroll_to = None | def update_start_date(self, widget, new_start_date): task_to_scroll_to = None tasks_uid = filter(lambda uid: uid != None, self.get_selected_tasks()) if len(tasks_uid) == 0: return tasks = [self.req.get_task(uid) for uid in tasks_uid] tasks_status = [task.get_status() for task in tasks] for uid, task, status in zip(task... | 268b77a22f21dc21916365ceced213ecabad6d85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/268b77a22f21dc21916365ceced213ecabad6d85/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1937,
67,
712,
12,
2890,
16,
3604,
16,
394,
67,
1937,
67,
712,
4672,
4592,
67,
1911,
273,
1034,
12,
14661,
4555,
30,
4555,
480,
599,
16,
365,
18,
588,
67,
8109,
67,
9416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1937,
67,
712,
12,
2890,
16,
3604,
16,
394,
67,
1937,
67,
712,
4672,
4592,
67,
1911,
273,
1034,
12,
14661,
4555,
30,
4555,
480,
599,
16,
365,
18,
588,
67,
8109,
67,
9416,
... | |
output = output + ' %s="%s"' %(string.upper(key), val) | output = output + ' %s="%s"' % (key.upper(), val) | def ExtractTableInfo(self, info): | 78dbc193610de93633af29f8d736602c868fca14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/78dbc193610de93633af29f8d736602c868fca14/htmlformat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8152,
1388,
966,
12,
2890,
16,
1123,
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,
8152,
1388,
966,
12,
2890,
16,
1123,
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 resname == "LYS": | if residue == "LYS": | def getData(residue, igb): import sys, math | 51918e27ba4c812703cbf670c87833bdcc4a03f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8376/51918e27ba4c812703cbf670c87833bdcc4a03f1/cpin_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4303,
12,
23388,
16,
277,
4490,
4672,
1930,
2589,
16,
4233,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
4303,
12,
23388,
16,
277,
4490,
4672,
1930,
2589,
16,
4233,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if t_movies['year'] < 1886: | if t_movies['year'] < 1900: | def get_details(self): #{{{ w = self.widgets['add'] cast_buffer = w['cast'].get_buffer() notes_buffer = w['notes'].get_buffer() plot_buffer = w['plot'].get_buffer() t_movies = { 'classification' : w['classification'].get_text(), 'color' : w['color'].get_active(), 'cond' : w['color'].get_active(),... | 857111b23ef0b8ccb47e27488f526f4d8dfedbb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/857111b23ef0b8ccb47e27488f526f4d8dfedbb2/add.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6395,
12,
2890,
4672,
3735,
12187,
341,
273,
365,
18,
18148,
3292,
1289,
3546,
225,
4812,
67,
4106,
225,
273,
341,
3292,
4155,
29489,
588,
67,
4106,
1435,
10913,
67,
4106,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6395,
12,
2890,
4672,
3735,
12187,
341,
273,
365,
18,
18148,
3292,
1289,
3546,
225,
4812,
67,
4106,
225,
273,
341,
3292,
4155,
29489,
588,
67,
4106,
1435,
10913,
67,
4106,
273,
... |
def test_add_action(self): assert_equal(len(self.mcp.actions), 0) assert_equal(len(self.mcp.nodes), 0) assert_equal(len(self.mcp.actions), 0) self.mcp.add_job(self.job) assert_equal(len(self.mcp.actions), 1) assert_equal(self.mcp.actions[self.action.name], self.action) assert_equal(len(self.mcp.nodes), 1) assert_equa... | def test_add_action(self): assert_equal(len(self.mcp.actions), 0) assert_equal(len(self.mcp.nodes), 0) assert_equal(len(self.mcp.actions), 0) | 17e2fcbf877ffacf227333eb3668168470abae66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/17e2fcbf877ffacf227333eb3668168470abae66/mcp_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1289,
67,
1128,
12,
2890,
4672,
1815,
67,
9729,
12,
1897,
12,
2890,
18,
81,
4057,
18,
4905,
3631,
374,
13,
1815,
67,
9729,
12,
1897,
12,
2890,
18,
81,
4057,
18,
4690,
3631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
1128,
12,
2890,
4672,
1815,
67,
9729,
12,
1897,
12,
2890,
18,
81,
4057,
18,
4905,
3631,
374,
13,
1815,
67,
9729,
12,
1897,
12,
2890,
18,
81,
4057,
18,
4690,
3631,... | |
raise TypeError, "Oops! There are no quadratic non-residues in Z/2Z." | raise ValueError, "Oops! There are no quadratic non-residues in Z/2Z." | def quadratic_nonresidue(p): """ Returns the smalest positive integer quadratic non-residue in Z/pZ for primes p>2. EXAMPLES: sage: quadratic_nonresidue(5) 2 """ p1 = abs(p) ## Deal with the prime p = 2 and |p| <= 1. if p1 == 2: raise TypeError, "Oops! There are no quadratic non-residues in Z/2Z." if p1 < 2: raise T... | 7f26a943dfbea43bc9f801b67b58b67e9019391e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7f26a943dfbea43bc9f801b67b58b67e9019391e/extras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26146,
67,
5836,
23388,
12,
84,
4672,
3536,
2860,
326,
3029,
287,
395,
6895,
3571,
26146,
1661,
17,
23388,
316,
2285,
19,
84,
62,
364,
846,
4485,
293,
34,
22,
18,
225,
5675,
8900,
1138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26146,
67,
5836,
23388,
12,
84,
4672,
3536,
2860,
326,
3029,
287,
395,
6895,
3571,
26146,
1661,
17,
23388,
316,
2285,
19,
84,
62,
364,
846,
4485,
293,
34,
22,
18,
225,
5675,
8900,
1138... |
if _debug: sys.stderr.write(attrsD['lastmod'] + '\n') | def _cdf_common(self, attrsD): if attrsD.has_key('lastmod'): if _debug: sys.stderr.write(attrsD['lastmod'] + '\n') self._start_modified({}) self.elementstack[-1][-1] = attrsD['lastmod'] self._end_modified() if attrsD.has_key('href'): self._start_link({}) self.elementstack[-1][-1] = attrsD['href'] self._end_link() | 99200d105c483d0627b0c87195d2d3372fe4ba91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99200d105c483d0627b0c87195d2d3372fe4ba91/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
67,
6054,
12,
2890,
16,
3422,
40,
4672,
309,
3422,
40,
18,
5332,
67,
856,
2668,
2722,
1711,
11,
4672,
365,
6315,
1937,
67,
7342,
23506,
13,
365,
18,
2956,
3772,
18919,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24799,
67,
6054,
12,
2890,
16,
3422,
40,
4672,
309,
3422,
40,
18,
5332,
67,
856,
2668,
2722,
1711,
11,
4672,
365,
6315,
1937,
67,
7342,
23506,
13,
365,
18,
2956,
3772,
18919,
21,
... | |
coincs = contents.coincs_near_peaktime(sim.get_time_geocent()) coinc_event_ids = find_exact_coinc_matches(coincs, sim, snglcomparefunc) if coinc_event_ids: add_sim_coinc_coinc(contents, sim, coinc_event_ids, contents.sb_c_e_coinc_def_id) coinc_event_ids = find_near_coinc_matches(coincs, sim, nearcoinccomparefunc) if co... | coincs = contents.coincs_near_peaktime(sim.get_time_geocent(), coinc_peak_time_window) exact_coinc_event_ids = find_exact_coinc_matches(coincs, sim, snglcomparefunc, contents.seglists) near_coinc_event_ids = find_near_coinc_matches(coincs, sim, nearcoinccomparefunc) assert exact_coinc_event_ids.issubset(near_coinc_even... | si_c_n_def = si_c_n_def, | f23162e4f63afbd6a2032de2d75ca44643717584 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/f23162e4f63afbd6a2032de2d75ca44643717584/ligolw_binjfind.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7533,
67,
71,
67,
82,
67,
536,
273,
7533,
67,
71,
67,
82,
67,
536,
16,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7533,
67,
71,
67,
82,
67,
536,
273,
7533,
67,
71,
67,
82,
67,
536,
16,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
@param versionStr: Package version | @param versionStr: Trove version | def findTrove(repos, defaultLabel, name, flavor, versionStr = None): | a9234cbc044dc9c575ad01ac7607f3ce33b1b7d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a9234cbc044dc9c575ad01ac7607f3ce33b1b7d8/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
56,
303,
537,
12,
15564,
16,
805,
2224,
16,
508,
16,
19496,
16,
1177,
1585,
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... | [
1,
1,
1,
1,
1,
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,
1104,
56,
303,
537,
12,
15564,
16,
805,
2224,
16,
508,
16,
19496,
16,
1177,
1585,
273,
599,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
TableStatistic.__init__(self, 'Authors by total number of commits') | TableStatistic.__init__(self, 'authors_by_number_of_commits', 'Authors by total number of commits') | def __init__(self, config, revision_data): """Generate statistics out of revision data. """ TableStatistic.__init__(self, 'Authors by total number of commits') assert(isinstance(revision_data, RevisionData)) | b8888de85047fe93273e5989b691f6b75032d60e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2516/b8888de85047fe93273e5989b691f6b75032d60e/msvnstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
6350,
67,
892,
4672,
3536,
4625,
7691,
596,
434,
6350,
501,
18,
3536,
3555,
20673,
16186,
2738,
972,
12,
2890,
16,
296,
19368,
67,
1637,
67,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
16,
6350,
67,
892,
4672,
3536,
4625,
7691,
596,
434,
6350,
501,
18,
3536,
3555,
20673,
16186,
2738,
972,
12,
2890,
16,
296,
19368,
67,
1637,
67,
269... |
if not aud: return xchat.EAT_ALL | if aud: pos = aud.Position() | def command_np(word, word_eol, userdata): aud = get_aud() if not aud: return xchat.EAT_ALL length = aud.SongLength(aud.Position()) length = (length > 0) and ("%d:%02d" % (length / 60, length % 60)) or "stream" xchat.command("SAY [%s | %d:%02d/%s]" % ( aud.SongTitle(aud.Position()).encode("utf8"), aud.Time() / 1000 / ... | f91236f25fa007316ecfd2ad65365abd608bc633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11853/f91236f25fa007316ecfd2ad65365abd608bc633/xchat-audacious.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
6782,
12,
1095,
16,
2076,
67,
30951,
16,
21518,
4672,
20232,
273,
336,
67,
24901,
1435,
309,
20232,
30,
949,
273,
20232,
18,
2555,
1435,
225,
769,
273,
20232,
18,
55,
932,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
6782,
12,
1095,
16,
2076,
67,
30951,
16,
21518,
4672,
20232,
273,
336,
67,
24901,
1435,
309,
20232,
30,
949,
273,
20232,
18,
2555,
1435,
225,
769,
273,
20232,
18,
55,
932,
17... |
restoreFile(fileObj, filecontents.FromFilesystem(ptrTargets[ptrId]), | if isinstance(ptrTargets[ptrId], str): contents = filecontents.FromFilesystem(ptrTargets[ptrId]) else: contents = ptrTargets[ptrId] ptrTargets[ptrId] = target restoreFile(fileObj, contents, | def restoreFile(fileObj, contents, root, target, journal, opJournal): opJournal.backup(target) | 67d47ccb49ca3204ea6fc5dec25b537048096261 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/67d47ccb49ca3204ea6fc5dec25b537048096261/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
812,
12,
768,
2675,
16,
2939,
16,
1365,
16,
1018,
16,
13001,
16,
1061,
16336,
4672,
1061,
16336,
18,
9572,
12,
3299,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
812,
12,
768,
2675,
16,
2939,
16,
1365,
16,
1018,
16,
13001,
16,
1061,
16336,
4672,
1061,
16336,
18,
9572,
12,
3299,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
w.acom1.chs=options.serial_handshake.get() + \ ' '[:40] | w.acom1.chs=(options.serial_handshake.get() + \ ' ')[:40] | def put_params(param3=NONE): global param20 | 159d93c947d125ff7a35b9de4900c85d38fb87e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/159d93c947d125ff7a35b9de4900c85d38fb87e6/wspr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
2010,
12,
891,
23,
33,
9826,
4672,
2552,
579,
3462,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
2010,
12,
891,
23,
33,
9826,
4672,
2552,
579,
3462,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 843) else quickfix.IntField.__init__(self, 843, 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,
1725,
8942,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1725,
8942,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... |
while sm is not None: | while smlist: sm = smlist.pop() if sm in seen: continue seen.append(sm) smlist += list(sm.__bases__) | def items(self): sm = zope.component.getSiteManager() ifaces = {} while sm is not None: for reg in sm.registeredUtilities(): path = getPythonPath(reg.provided) ifaces[path] = UtilityInterface(self, path, reg.provided) sm = queryNextSiteManager(sm) | d8fe40a510aeb3836b7f535f3e5c96812b50bb9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/d8fe40a510aeb3836b7f535f3e5c96812b50bb9c/utilitymodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
3029,
273,
998,
1306,
18,
4652,
18,
588,
4956,
1318,
1435,
309,
2307,
273,
2618,
1323,
272,
781,
376,
30,
225,
3029,
273,
272,
781,
376,
18,
5120,
1435,
225,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
3029,
273,
998,
1306,
18,
4652,
18,
588,
4956,
1318,
1435,
309,
2307,
273,
2618,
1323,
272,
781,
376,
30,
225,
3029,
273,
272,
781,
376,
18,
5120,
1435,
225,
309,... |
for k, col in enumerate(j): | for k, col in enumerate(seq): | def __setitem__(self, index, x): try: assert len(index) == 2 except (AssertionError, TypeError): raise IndexError, "invalid index" i, j = index if isinstance(i, int): if not (i>=0 and i<self.shape[0]): raise IndexError, "lil_matrix index out of range" else: if isinstance(i, slice): seq = xrange(i.start or 0, i.stop or ... | e65ce38e1e8d829ba1ac01ffbb53bfcb3612e539 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/e65ce38e1e8d829ba1ac01ffbb53bfcb3612e539/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
770,
16,
619,
4672,
775,
30,
1815,
562,
12,
1615,
13,
422,
576,
1335,
261,
14979,
668,
16,
3580,
4672,
1002,
10195,
16,
315,
5387,
770,
6,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
770,
16,
619,
4672,
775,
30,
1815,
562,
12,
1615,
13,
422,
576,
1335,
261,
14979,
668,
16,
3580,
4672,
1002,
10195,
16,
315,
5387,
770,
6,
277,
16... |
return resultDay selectDict['CurrentJobID'] = 0 selectDict['Status'] = 'Done' | return resultDay selectDict['CurrentJobID'] = 0 selectDict['Status'] = 'Done' | def getPilotSummaryWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot jobs status by CE/site in a standard structure """ | 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,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
29538,
19,
4256,
316,
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,
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,
1689,
22797,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
3804,
682,
16,
1937,
1180,
16,
1896,
3126,
4672,
3536,
968,
4916,
434,
326,
293,
22797,
6550,
1267,
635,
29538,
19,
4256,
316,
279,... |
if wolfpack.finditem( gem.serial ): if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == hex2dec( 0x1ea7 ): return gem break | if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == 0x1ea7: return gem break | def getvein( socket, pos, target ): #Check if we have wood_gems near ( range = 4) gems = wolfpack.items( pos.x, pos.y, pos.map, 4 ) for gem in gems: if wolfpack.finditem( gem.serial ): if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == hex2dec( 0x1ea7 ): return gem br... | 885b24a349a38741c41174fd7250a177bce2354e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/885b24a349a38741c41174fd7250a177bce2354e/lumberjacking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
537,
267,
12,
2987,
16,
949,
16,
1018,
262,
30,
468,
1564,
309,
732,
1240,
341,
4773,
67,
26559,
13378,
261,
1048,
273,
1059,
13,
314,
7424,
273,
341,
355,
74,
2920,
18,
3319,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
537,
267,
12,
2987,
16,
949,
16,
1018,
262,
30,
468,
1564,
309,
732,
1240,
341,
4773,
67,
26559,
13378,
261,
1048,
273,
1059,
13,
314,
7424,
273,
341,
355,
74,
2920,
18,
3319,
1... |
(namespace, localName) = split_property(predicate) | (namespace, localName) = split_property(predicate, self.namespaces) prefix = self.namespaces[namespace] | def property(self, predicate, object): (namespace, localName) = split_property(predicate) | 1313813332adaaa3197b56a7142c1558cf12f9f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/1313813332adaaa3197b56a7142c1558cf12f9f2/serializer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1272,
12,
2890,
16,
5641,
16,
733,
4672,
261,
4937,
16,
11927,
13,
273,
1416,
67,
4468,
12,
18344,
13,
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,
1272,
12,
2890,
16,
5641,
16,
733,
4672,
261,
4937,
16,
11927,
13,
273,
1416,
67,
4468,
12,
18344,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def sample(self, s, t): ''' Sample the mipmap level at the coordinates specified by s and t. For performance, s & t should be 1D arrays. | self.varianceXY = 1.3/(2*pi) self.varianceST = 1.3/(2*pi) def rasterCoords(self,s,t): ''' Return the raster coordinates for this mipmap from the texture coordinates (s,t) | def __init__(self, image, offset, mult): ''' image - pixel data; a NxMx3 array offset, mult - length two vectors which specify an affine transformation from texture coordinates to this mipmap's raster coordinates: i = mult[0] * s + offset[0] j = mult[1] * t + offset[1] ''' # store the image with some ghost points to wo... | 93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11560/93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395/mipmap_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1316,
16,
1384,
16,
1778,
4672,
9163,
1316,
300,
4957,
501,
31,
279,
423,
92,
49,
92,
23,
526,
1384,
16,
1778,
300,
769,
2795,
10046,
1492,
4800,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1316,
16,
1384,
16,
1778,
4672,
9163,
1316,
300,
4957,
501,
31,
279,
423,
92,
49,
92,
23,
526,
1384,
16,
1778,
300,
769,
2795,
10046,
1492,
4800,
392,
... |
self.warning("Revision %s is malformed - skipping", revision_id) | self.warning("Revision %s is malformed - skipping" % revision_id) | def _get_revision_trees(self, parent, revision_id): try: tree_old = self.branch.repository.revision_tree(parent) except bazErrors.UnexpectedInventoryFormat: self.warning("Parent is malformed - diffing against previous parent") # We can't find the old parent. Let's diff against his parent pp = self.branch.repository.get... | b1531a1744dd4423e9cafdc857985de004f58758 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/b1531a1744dd4423e9cafdc857985de004f58758/bzr_exporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
13057,
67,
17204,
12,
2890,
16,
982,
16,
6350,
67,
350,
4672,
775,
30,
2151,
67,
1673,
273,
365,
18,
7500,
18,
9071,
18,
13057,
67,
3413,
12,
2938,
13,
1335,
29025,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
13057,
67,
17204,
12,
2890,
16,
982,
16,
6350,
67,
350,
4672,
775,
30,
2151,
67,
1673,
273,
365,
18,
7500,
18,
9071,
18,
13057,
67,
3413,
12,
2938,
13,
1335,
29025,
422... |
output.append( self.style.SQL_KEYWORD('ALTER TABLE ')+ self.style.SQL_TABLE(self.connection.ops.quote_name(table_name)) +self.style.SQL_KEYWORD(' ALTER COLUMN ')+ self.style.SQL_FIELD(self.connection.ops.quote_name(col_name)) +self.style.SQL_KEYWORD(' SET NOT NULL;') ) | output.append( self.style.SQL_KEYWORD('ALTER TABLE ') + \ self.style.SQL_TABLE(qn(table_name)) + \ self.style.SQL_KEYWORD(' ALTER COLUMN ') + \ self.style.SQL_FIELD(qn(col_name)) + \ self.style.SQL_KEYWORD(' SET NOT NULL;') ) | def get_add_column_sql( self, table_name, col_name, col_type, null, unique, primary_key, default ): output = [] output.append( self.style.SQL_KEYWORD('ALTER TABLE ')+ self.style.SQL_TABLE(self.connection.ops.quote_name(table_name)) +self.style.SQL_KEYWORD(' ADD COLUMN ')+ self.style.SQL_FIELD(self.connection.ops.quote_... | 9cdf745fd71e68b3b6453831cb634a4528ced824 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8472/9cdf745fd71e68b3b6453831cb634a4528ced824/postgresql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1289,
67,
2827,
67,
4669,
12,
365,
16,
1014,
67,
529,
16,
645,
67,
529,
16,
645,
67,
723,
16,
446,
16,
3089,
16,
3354,
67,
856,
16,
805,
262,
30,
876,
273,
5378,
876,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1289,
67,
2827,
67,
4669,
12,
365,
16,
1014,
67,
529,
16,
645,
67,
529,
16,
645,
67,
723,
16,
446,
16,
3089,
16,
3354,
67,
856,
16,
805,
262,
30,
876,
273,
5378,
876,
18... |
build("f2.out", "f2.in") | build(["f2.out"], ["f2.in"]) | def build(env, target, source): open(str(target[0]), 'wt').write(open(str(source[0]), 'rt').read()) | 1aaef3aed0f760f14dd4c9b660952f6d54e4f6d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/1aaef3aed0f760f14dd4c9b660952f6d54e4f6d7/timestamp-fallback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3074,
16,
1018,
16,
1084,
4672,
1696,
12,
701,
12,
3299,
63,
20,
65,
3631,
296,
6046,
16063,
2626,
12,
3190,
12,
701,
12,
3168,
63,
20,
65,
3631,
296,
3797,
16063,
896,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3074,
16,
1018,
16,
1084,
4672,
1696,
12,
701,
12,
3299,
63,
20,
65,
3631,
296,
6046,
16063,
2626,
12,
3190,
12,
701,
12,
3168,
63,
20,
65,
3631,
296,
3797,
16063,
896,
107... |
child = parseString(html) | child = minidom.parseString(html) | def processString(self, request, html, node): try: child = parseString(html) except Exception, e: print "damn, error parsing, probably invalid xml", e child = self.d.createTextNode(html) return self.processNode(request, child, node) | aa466abea5fc6dd7ae3d4fafa084db5d01fcacf5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/aa466abea5fc6dd7ae3d4fafa084db5d01fcacf5/domtemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
780,
12,
2890,
16,
590,
16,
1729,
16,
756,
4672,
775,
30,
1151,
273,
1131,
350,
362,
18,
2670,
780,
12,
2620,
13,
1335,
1185,
16,
425,
30,
1172,
315,
72,
301,
82,
16,
555,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
780,
12,
2890,
16,
590,
16,
1729,
16,
756,
4672,
775,
30,
1151,
273,
1131,
350,
362,
18,
2670,
780,
12,
2620,
13,
1335,
1185,
16,
425,
30,
1172,
315,
72,
301,
82,
16,
555,
58... |
3.60555127546399 | 3.60555127546... | def gauss_sum_numerical(self, prec=53, a=1): r""" Return a Gauss sum associated to this Dirichlet character as an approximate complex number with prec bits of precision. | 6fba760234813e3eb139f7f91d33193ed6d61a40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6fba760234813e3eb139f7f91d33193ed6d61a40/dirichlet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
2... |
btn_szr = self.CreateButtons() szr.Add(btn_szr, 0, wx.LEFT|wx.BOTTOM|wx.RIGHT, 5) | self.buttons = wx.BoxSizer(wx.HORIZONTAL) add_btn = self.AddControlButton( label="Add", bitmap=wxtbx.bitmaps.fetch_icon_bitmap("actions", "edit_add", 16)) self.Bind(wx.EVT_BUTTON, self.OnAdd, add_btn) del_btn = self.AddControlButton( label="Delete", bitmap=wxtbx.bitmaps.fetch_icon_bitmap("actions", "editdelete", 16)) s... | def __init__ (self, *args, **kwds) : wx.Panel.__init__(self, *args, **kwds) self._default_label = "---" szr = wx.BoxSizer(wx.VERTICAL) self.SetSizer(szr) self.list = wx.ListCtrl( parent=self, id=-1, style=wx.LC_REPORT|wx.LC_SINGLE_SEL) self.list.InsertColumn(0, self.header_label, width=460) self.list.SetMinSize((480,16... | 09eb33b85334b828e8316844949cc0d1439864d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/09eb33b85334b828e8316844949cc0d1439864d3/listeditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
294,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
365,
6315,
1886,
67,
1925,
273,
523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
294,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
13,
365,
6315,
1886,
67,
1925,
273,
523... |
rlib_add_resultset_follower_n_to_1 = _librlib.rlib_add_resultset_follower_n_to_1 | rlib_add_resultset_follower_n_to_1 = _rlib.rlib_add_resultset_follower_n_to_1 | def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name | 5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... |
png2 = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/icons/lock_on.png")) | png2 = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/lock_on.png")) | def InterfaceEntryComponent(index,name,default,active ): res = [ (index), MultiContentEntryText(pos=(80, 5), size=(430, 25), font=0, text=name) ] num_configured_if = len(iNetwork.getConfiguredAdapters()) if num_configured_if >= 2: if default is True: png = LoadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, "skin_default/butt... | f741c4cc282f2f99b86e6ec305604f27216087ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/f741c4cc282f2f99b86e6ec305604f27216087ba/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6682,
1622,
1841,
12,
1615,
16,
529,
16,
1886,
16,
3535,
262,
30,
400,
273,
306,
261,
1615,
3631,
5991,
1350,
1622,
1528,
12,
917,
28657,
3672,
16,
1381,
3631,
963,
28657,
24,
5082,
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,
6682,
1622,
1841,
12,
1615,
16,
529,
16,
1886,
16,
3535,
262,
30,
400,
273,
306,
261,
1615,
3631,
5991,
1350,
1622,
1528,
12,
917,
28657,
3672,
16,
1381,
3631,
963,
28657,
24,
5082,
16... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.