rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
for cmd in ['drop database if exists %s', 'create database %s CHARACTER SET utf8 COLLATE utf8_general_ci']: | for cmd in ['drop database if exists %s', 'create database %s CHARACTER SET utf8 COLLATE utf8_general_ci']: | def delete_db(settings): """Delete the old database.""" engine = settings.DATABASE_ENGINE if engine == 'sqlite3': try: os.unlink(settings.DATABASE_NAME) except OSError: pass elif engine == 'mysql': import _mysql s = _mysql.connect(host=settings.DATABASE_HOST, user=settings.DATABASE_USER, passwd=settings.DATABASE_PASSWO... | 0b5b5bdddb5618fc3777a5e213b03abd527f7ab5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13656/0b5b5bdddb5618fc3777a5e213b03abd527f7ab5/load_data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1966,
12,
4272,
4672,
3536,
2613,
326,
1592,
2063,
12123,
4073,
273,
1947,
18,
22366,
67,
28980,
309,
4073,
422,
296,
19460,
23,
4278,
775,
30,
1140,
18,
318,
1232,
12,
4272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
1966,
12,
4272,
4672,
3536,
2613,
326,
1592,
2063,
12123,
4073,
273,
1947,
18,
22366,
67,
28980,
309,
4073,
422,
296,
19460,
23,
4278,
775,
30,
1140,
18,
318,
1232,
12,
4272,
... |
if test[2]: | if test[2] != "none": | def verify(self, manager, uri, response, respdata, args): #@UnusedVariable # Split into header/value tuples testheader = args.get("header", [])[:] for i in range(len(testheader)): p = testheader[i] present = "single" if p[0] == "!": p = p[1:] present = "none" if p[0] == "*": p = p[1:] present = "multiple" if p.find("$"... | 5e31b354ab5596fb3936f4962814a0e42eeda188 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/129/5e31b354ab5596fb3936f4962814a0e42eeda188/header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
3301,
16,
2003,
16,
766,
16,
1718,
892,
16,
833,
4672,
468,
36,
21106,
3092,
468,
5385,
1368,
1446,
19,
1132,
10384,
1842,
3374,
273,
833,
18,
588,
2932,
3374,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
16,
3301,
16,
2003,
16,
766,
16,
1718,
892,
16,
833,
4672,
468,
36,
21106,
3092,
468,
5385,
1368,
1446,
19,
1132,
10384,
1842,
3374,
273,
833,
18,
588,
2932,
3374,
3113... |
self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0) | self.assertRaises(WindowsError, os.chmod, test_support.TESTFN, 0) | def test_chmod(self): self.assertRaises(WindowsError, os.utime, test_support.TESTFN, 0) | b8a32fa6decbcfe3f1dcd5aa5f44fc32cff28ddc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/b8a32fa6decbcfe3f1dcd5aa5f44fc32cff28ddc/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
343,
1711,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
10399,
668,
16,
1140,
18,
322,
494,
16,
1842,
67,
13261,
18,
16961,
19793,
16,
374,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
343,
1711,
12,
2890,
4672,
365,
18,
11231,
12649,
6141,
12,
10399,
668,
16,
1140,
18,
322,
494,
16,
1842,
67,
13261,
18,
16961,
19793,
16,
374,
13,
2,
-100,
-100,
-100,
-100,... |
self.setup = gConfig.getValue('/DIRAC/Setup','') self.vo = gConfig.getValue('/DIRAC/VirtualOrganization','') self.pilotVersion = gConfig.getValue('/Operations/%s/%s/Versions/PilotVersion' % (self.vo,self.setup),'') def selectJob(self, resourceDescription): | self.setup = gConfig.getValue( '/DIRAC/Setup', '' ) self.vo = gConfig.getValue( '/DIRAC/VirtualOrganization', '' ) self.pilotVersion = gConfig.getValue( '/Operations/%s/%s/Versions/PilotVersion' % ( self.vo, self.setup ), '' ) def selectJob( self, resourceDescription ): | def initialize(self): | 059c4744ef6766e0575a5cd4d6f09d892a66a7df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/059c4744ef6766e0575a5cd4d6f09d892a66a7df/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
MJTableView.initView() | self.view.initView() | def showEvent(self, dummyEvent): """only now get the data set. Not doing this in__init__ would eventually make it easier to subclass from some generic TableEditor class""" self.setQuery() MJTableView.initView() self.selectionChanged() | cb1b3526ff6b31f4756e0b3a244d241811a73c26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/cb1b3526ff6b31f4756e0b3a244d241811a73c26/games.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1133,
12,
2890,
16,
9609,
1133,
4672,
3536,
3700,
2037,
336,
326,
501,
444,
18,
2288,
9957,
333,
316,
972,
2738,
972,
4102,
18011,
1221,
518,
15857,
358,
10177,
628,
2690,
5210,
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,
2405,
1133,
12,
2890,
16,
9609,
1133,
4672,
3536,
3700,
2037,
336,
326,
501,
444,
18,
2288,
9957,
333,
316,
972,
2738,
972,
4102,
18011,
1221,
518,
15857,
358,
10177,
628,
2690,
5210,
35... |
print "rudbase before" | def __before__(self, **kwargs): print 'rudbase before super' if hasattr(super(RUDBase, self), '__before__'): super(RUDBase, self).__before__(**kwargs) print "rudbase before" if 'id' not in kwargs.keys(): raise RuntimeError, "id not in kwargs for %s" % (kwargs['action'],) use_oid = False # Determines if we look up on a... | b5b841a6275042be582c50889821f7601ef38c2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/b5b841a6275042be582c50889821f7601ef38c2c/crud.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5771,
972,
12,
2890,
16,
2826,
4333,
4672,
1172,
296,
86,
1100,
1969,
1865,
2240,
11,
309,
3859,
12,
9565,
12,
54,
12587,
2171,
16,
365,
3631,
4940,
5771,
7250,
4672,
2240,
12,
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,
1001,
5771,
972,
12,
2890,
16,
2826,
4333,
4672,
1172,
296,
86,
1100,
1969,
1865,
2240,
11,
309,
3859,
12,
9565,
12,
54,
12587,
2171,
16,
365,
3631,
4940,
5771,
7250,
4672,
2240,
12,
5... | |
assert(self.debugPrint("deleteCollisions()")) | assert self.notify.debugStateCall(self) | def deleteCollisions(self): assert(self.debugPrint("deleteCollisions()")) del self.cTrav | abc151a082286523619150b15b5dc30864de5bde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/abc151a082286523619150b15b5dc30864de5bde/GravityWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
13535,
12682,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
1464,
365,
18,
71,
1609,
90,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
13535,
12682,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
1464,
365,
18,
71,
1609,
90,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
DECOMPOSITION = [""] | def maketable(): unicode = UnicodeData(UNICODE_DATA) # extract unicode properties dummy = (0, 0, 0, 0, "NULL") table = [dummy] cache = {0: dummy} index = [0] * len(unicode.chars) DECOMPOSITION = [""] for char in unicode.chars: record = unicode.table[char] if record: # extract database properties category = CATEGORY... | 3b2819871af6994be5f5d3966414f615a8697edd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3b2819871af6994be5f5d3966414f615a8697edd/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
278,
429,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
315,
8560,
7923,
1014,
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,
29796,
278,
429,
13332,
225,
5252,
273,
9633,
751,
12,
26642,
67,
4883,
13,
225,
468,
2608,
5252,
1790,
9609,
273,
261,
20,
16,
374,
16,
374,
16,
374,
16,
315,
8560,
7923,
1014,
273,
... | |
if name in frozenset("dd", "dt", "li", "p", "td", "th", "tr") and name != exclude: | if name in frozenset(("dd", "dt", "li", "p", "td", "th", "tr")) and name != exclude: | def generateImpliedEndTags(self, exclude=None): while True: name = self.openElements[-1].name if name in frozenset("dd", "dt", "li", "p", "td", "th", "tr") and name != exclude: self.phase.processEndTag(name) else: break # XXX AT: # name = self.openElements[-1].name # while name in frozenset("dd", "dt", "li", "p", "td",... | b1506b097484802495bf8cc4bd05649a3c331d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b1506b097484802495bf8cc4bd05649a3c331d23/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
2828,
2092,
1638,
3453,
12,
2890,
16,
4433,
33,
7036,
4672,
1323,
1053,
30,
508,
273,
365,
18,
3190,
3471,
18919,
21,
8009,
529,
309,
508,
316,
23462,
12,
2932,
449,
3113,
315,
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,
2103,
2828,
2092,
1638,
3453,
12,
2890,
16,
4433,
33,
7036,
4672,
1323,
1053,
30,
508,
273,
365,
18,
3190,
3471,
18919,
21,
8009,
529,
309,
508,
316,
23462,
12,
2932,
449,
3113,
315,
7... |
self.conn.send.add(item) | self.conn.do.add(item) | def stream_parse_and_add(self, item): # We need to do different things depending on if this is # a normal stream, pls, m3u, etc.. # Note that we will only download the first 2000 bytes f = None try: request = urllib2.Request(item) opener = urllib2.build_opener() f = opener.open(request).read(2000) except: try: request ... | 0da9815c248298a9268c10f25c59ea81e5bd319d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/0da9815c248298a9268c10f25c59ea81e5bd319d/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1407,
67,
2670,
67,
464,
67,
1289,
12,
2890,
16,
761,
4672,
468,
1660,
1608,
358,
741,
3775,
9198,
8353,
603,
309,
333,
353,
468,
279,
2212,
1407,
16,
886,
87,
16,
312,
23,
89,
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,
1407,
67,
2670,
67,
464,
67,
1289,
12,
2890,
16,
761,
4672,
468,
1660,
1608,
358,
741,
3775,
9198,
8353,
603,
309,
333,
353,
468,
279,
2212,
1407,
16,
886,
87,
16,
312,
23,
89,
16,
... |
Returns the clustering coefficient for each node in nbunch | Returns the clustering coefficient for each vertex in nbunch | def clustering_coeff(self, nbunch=None, with_labels=False, weights=False): r""" Returns the clustering coefficient for each node in nbunch as an ordered list. | 139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
18132,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
5376,
33,
8381,
4672,
436,
8395,
2860,
326,
18743,
16554,
364,
1517,
5253,
316,
4264,
4384,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
18132,
12,
2890,
16,
4264,
4384,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
5376,
33,
8381,
4672,
436,
8395,
2860,
326,
18743,
16554,
364,
1517,
5253,
316,
4264,
4384,
487,
... |
editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ | editPrefsText = \ "<u><b>Preferences Dialog</b></u>"\ "<p>"\ "Allows you to edit various user preferences "\ | def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their... | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
... |
remote = _(" from %s") % remote | remote = _(" from %(remote)s") | def AddMember(self, name, password, digest=0, remote=None, lang=None): | d4117e2559487604b13fa55121d903681fad00c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d4117e2559487604b13fa55121d903681fad00c3/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
33,
20,
16,
2632,
33,
7036,
16,
3303,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1436,
4419,
12,
2890,
16,
508,
16,
2201,
16,
5403,
33,
20,
16,
2632,
33,
7036,
16,
3303,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if typ!=typ2: | if typ2 is None: log.warn('source %r does not define swig target, assuming %s swig target' \ % (source, typ)) if is_cpp: target_ext = '.cpp' elif typ!=typ2: | def swig_sources(self, sources, extension): # Assuming SWIG 1.3.14 or later. See compatibility note in # http://www.swig.org/Doc1.3/Python.html#Python_nn6 | a1b13e177d30d80c34897aa55352499785206e7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/a1b13e177d30d80c34897aa55352499785206e7d/build_src.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
12,
2890,
16,
5550,
16,
2710,
4672,
468,
4725,
21249,
16392,
3047,
404,
18,
23,
18,
3461,
578,
5137,
18,
2164,
8926,
4721,
316,
468,
282,
1062,
2207,
5591,
18,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1352,
360,
67,
10141,
12,
2890,
16,
5550,
16,
2710,
4672,
468,
4725,
21249,
16392,
3047,
404,
18,
23,
18,
3461,
578,
5137,
18,
2164,
8926,
4721,
316,
468,
282,
1062,
2207,
5591,
18,
53... |
def atlas_version_c(extension, build_dir,macig=magic): | def atlas_version_c(extension, build_dir,magic=magic): | def atlas_version_c(extension, build_dir,macig=magic): source = os.path.join(build_dir,'atlas_version_%s.c' % (magic)) if os.path.isfile(source): from distutils.dep_util import newer if newer(source,__file__): return source f = open(source,'w') f.write(atlas_version_c_text) f.close() return source | 8957ad32bf04dc802ae86caa8bcf11233679e976 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8957ad32bf04dc802ae86caa8bcf11233679e976/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22339,
67,
1589,
67,
71,
12,
6447,
16,
1361,
67,
1214,
16,
11179,
33,
11179,
4672,
1084,
273,
1140,
18,
803,
18,
5701,
12,
3510,
67,
1214,
11189,
270,
9521,
67,
1589,
10185,
87,
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,
22339,
67,
1589,
67,
71,
12,
6447,
16,
1361,
67,
1214,
16,
11179,
33,
11179,
4672,
1084,
273,
1140,
18,
803,
18,
5701,
12,
3510,
67,
1214,
11189,
270,
9521,
67,
1589,
10185,
87,
18,
... |
elif isinstance(l,tuple): | elif isinstance(l, tuple): | def antiphi(self,l): r""" Inverse of self.phi. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
14587,
12266,
12,
2890,
16,
80,
4672,
436,
8395,
657,
2476,
434,
365,
18,
9973,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
14587,
12266,
12,
2890,
16,
80,
4672,
436,
8395,
657,
2476,
434,
365,
18,
9973,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (not total) or writeoff_acc_id: | if (not round(total,int(config['price_accuracy']))) or writeoff_acc_id: | def pay_and_reconcile(self, cr, uid, ids, pay_amount, pay_account_id, period_id, pay_journal_id, writeoff_acc_id, writeoff_period_id, writeoff_journal_id, context=None, name=''): if context is None: context = {} #TODO check if we can use different period for payment and the writeoff line assert len(ids)==1, "Can only p... | 140aeda37334aef1e0c55448c3365d28b78eac67 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/140aeda37334aef1e0c55448c3365d28b78eac67/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8843,
67,
464,
67,
266,
11504,
398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
8843,
67,
8949,
16,
8843,
67,
4631,
67,
350,
16,
3879,
67,
350,
16,
8843,
67,
22644,
67,
350,
16,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8843,
67,
464,
67,
266,
11504,
398,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
8843,
67,
8949,
16,
8843,
67,
4631,
67,
350,
16,
3879,
67,
350,
16,
8843,
67,
22644,
67,
350,
16,
10... |
filename = filename + extension src = os.path.join(dir, filename) | f = filename + extension src = os.path.join(dir, f) | def find_template(dir, name, view): ''' Find a template in the nominated dir ''' # find the source if view: filename = '%s.%s'%(name, view) else: filename = name # try old-style src = os.path.join(dir, filename) if os.path.exists(src): return (src, filename) # try with a .html or .xml extension (new-style) for extens... | 3fc755a4dd33f0ff10a42faae7d517c0c6ccdd2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3fc755a4dd33f0ff10a42faae7d517c0c6ccdd2b/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
3202,
12,
1214,
16,
508,
16,
1476,
4672,
9163,
4163,
279,
1542,
316,
326,
12457,
7458,
1577,
9163,
468,
1104,
326,
1084,
309,
1476,
30,
1544,
273,
1995,
87,
7866,
87,
11,
171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3202,
12,
1214,
16,
508,
16,
1476,
4672,
9163,
4163,
279,
1542,
316,
326,
12457,
7458,
1577,
9163,
468,
1104,
326,
1084,
309,
1476,
30,
1544,
273,
1995,
87,
7866,
87,
11,
171... |
if self.token == "IHEOL": | if self.token == "\n": | def next(self): # Get a token from the user self.real = 0.0 self.token = '' # Fill the token quue if nothing here while not self.inqueue: line = cgetline() if curwnd==prompt_window: clrscr() setwnd(message_window) clrscr() if line == '': return None if not line: continue else: self.inqueue = line.lstrip().split() + ["I... | d614502aff5603ee8807d706fbbc57b33468b698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/d614502aff5603ee8807d706fbbc57b33468b698/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
468,
968,
279,
1147,
628,
326,
729,
365,
18,
7688,
273,
374,
18,
20,
365,
18,
2316,
273,
875,
468,
14192,
326,
1147,
719,
344,
309,
5083,
2674,
1323,
486,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
12,
2890,
4672,
468,
968,
279,
1147,
628,
326,
729,
365,
18,
7688,
273,
374,
18,
20,
365,
18,
2316,
273,
875,
468,
14192,
326,
1147,
719,
344,
309,
5083,
2674,
1323,
486,
365,
... |
tmp = point.df() | tmp = point.df().flatten() | def __solver__(self, p): h0 = self.h0 | 0034fc2438405fabb74c74b111b9b3cfa5ac8601 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/0034fc2438405fabb74c74b111b9b3cfa5ac8601/gsubg_oo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
27198,
972,
12,
2890,
16,
293,
4672,
225,
366,
20,
273,
365,
18,
76,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
27198,
972,
12,
2890,
16,
293,
4672,
225,
366,
20,
273,
365,
18,
76,
20,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
query = """INSERT INTO %(table)s (username, domain, doc_type, etag, doc, doc_uri) VALUES (%%(username)s, %%(domain)s, %%(doc_type)s, %%(etag)s, %%(document)s, %%(document_path)s)""" % { | query = """INSERT INTO %(table)s (username, domain, doc_type, etag, doc, doc_uri) VALUES (%%(username)s, %%(domain)s, %%(doc_type)s, %%(etag)s, %%(document)s, %%(document_path)s)""" % { | def _put_document(self, trans, uri, document, check_etag): username, domain = uri.user.username, uri.user.domain self._normalize_document_path(uri) doc_type = self.app_mapping[uri.application_id] document_path = uri.doc_selector.document_path query = """SELECT etag FROM %(table)s WHERE username = %%(username)s AND doma... | 6f4d9484230105ae72bda2a86a5bf85186fcc9ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/6f4d9484230105ae72bda2a86a5bf85186fcc9ac/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
67,
5457,
12,
2890,
16,
906,
16,
2003,
16,
1668,
16,
866,
67,
20788,
4672,
2718,
16,
2461,
273,
2003,
18,
1355,
18,
5053,
16,
2003,
18,
1355,
18,
4308,
365,
6315,
12237,
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,
389,
458,
67,
5457,
12,
2890,
16,
906,
16,
2003,
16,
1668,
16,
866,
67,
20788,
4672,
2718,
16,
2461,
273,
2003,
18,
1355,
18,
5053,
16,
2003,
18,
1355,
18,
4308,
365,
6315,
12237,
67... |
return http.Response(stream = message("You are not authorized to move '%s'"%W.name())) | return HTMLResponse(stream = message("You are not authorized to move '%s'"%W.name())) | def render(self, ctx): X = notebook.user(self.username) if user_type(self.username) == 'guest': return http.Response(stream = message("You are not authorized to move '%s'"%W.name())) def send_worksheet_to_folder(filename): W = notebook.get_worksheet_with_filename(filename) self.action(W) if ctx.args.has_key('filename... | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
1139,
273,
14718,
18,
1355,
12,
2890,
18,
5053,
13,
309,
729,
67,
723,
12,
2890,
18,
5053,
13,
422,
296,
18908,
4278,
327,
3982,
1064,
12,
3256,
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,
1743,
12,
2890,
16,
1103,
4672,
1139,
273,
14718,
18,
1355,
12,
2890,
18,
5053,
13,
309,
729,
67,
723,
12,
2890,
18,
5053,
13,
422,
296,
18908,
4278,
327,
3982,
1064,
12,
3256,
273,
... |
dataA = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\STEROLTALK\Sterolgene v.0 mouse\sterolgene v.0 mouse controlGeneRatios.tab') dataB = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\STEROLTALK\Sterolgene v.0 mouse\sterolgene v.0 mouse controlGeneRatios 2 ecoli.tab') | dataA = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\et1.tab') dataB = orange.ExampleTable(r'c:\Documents and Settings\peterjuv\My Documents\et2.tab') | def _sp(self, l, capitalize=True): """Input: list; returns tupple (str(len(l)), "s"/"") """ n = len(l) if n == 0: if capitalize: return "No", "s" else: return "no", "s" elif n == 1: return str(n), '' else: return str(n), 's' | 7ecb6cd437f659f67df45c042913bf12d5cfb9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/7ecb6cd437f659f67df45c042913bf12d5cfb9fb/OWMergeData.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1752,
12,
2890,
16,
328,
16,
17451,
33,
5510,
4672,
3536,
1210,
30,
666,
31,
1135,
15822,
1802,
261,
701,
12,
1897,
12,
80,
13,
3631,
315,
87,
6,
19,
3660,
13,
3536,
290,
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,
389,
1752,
12,
2890,
16,
328,
16,
17451,
33,
5510,
4672,
3536,
1210,
30,
666,
31,
1135,
15822,
1802,
261,
701,
12,
1897,
12,
80,
13,
3631,
315,
87,
6,
19,
3660,
13,
3536,
290,
273,
... |
def display(self, filename_stack, print_traceback=False): | def display(self, filename_stack, print_traceback=debug): | def display(self, filename_stack, print_traceback=False): # Output formatted to work under Emacs compile-mode. Optional # 'print_traceback' arg, if set to True, prints a Python stack # backtrace too (can be handy when trying to debug the parser # itself). | 6ad5a29b18bb90d85aeae8fafd886e76bc78646a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7385/6ad5a29b18bb90d85aeae8fafd886e76bc78646a/isa_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
1544,
67,
3772,
16,
1172,
67,
21696,
33,
4148,
4672,
468,
3633,
4955,
358,
1440,
3613,
512,
5821,
87,
4074,
17,
3188,
18,
225,
4055,
468,
296,
1188,
67,
21696,
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,
2562,
12,
2890,
16,
1544,
67,
3772,
16,
1172,
67,
21696,
33,
4148,
4672,
468,
3633,
4955,
358,
1440,
3613,
512,
5821,
87,
4074,
17,
3188,
18,
225,
4055,
468,
296,
1188,
67,
21696,
11,
... |
namespaces.append(arg[11:]) | pass if not ns in namespaces: namespaces.append(ns) | def main(*args): # read command line parameters # what the bot should do (either resolve double redirs, or delete broken # redirs) action = None # where the bot should get his infos from (either None to load the # maintenance special page from the live wiki, or the filename of a # local XML dump file) xmlFilename = Non... | f97bb8ea050b55944ad5a41bb800341f7674f0a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/f97bb8ea050b55944ad5a41bb800341f7674f0a4/redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
30857,
1968,
4672,
468,
855,
1296,
980,
1472,
468,
4121,
326,
2512,
1410,
741,
261,
73,
2927,
2245,
1645,
283,
8291,
16,
578,
1430,
12933,
468,
283,
8291,
13,
1301,
273,
599,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
30857,
1968,
4672,
468,
855,
1296,
980,
1472,
468,
4121,
326,
2512,
1410,
741,
261,
73,
2927,
2245,
1645,
283,
8291,
16,
578,
1430,
12933,
468,
283,
8291,
13,
1301,
273,
599,
468,
... |
self.command = command | self.command = command.lower() if self.command not in self.command_list: printError("Invalid command") sys.exit(1) if self.command == "upgrade" or self.command == "groupupgrade": self.always_install = [ ] | def setCommand(self, command): self.command = command | 11e31557ed329a80c28dc4dd5f98950a5e67f5da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/11e31557ed329a80c28dc4dd5f98950a5e67f5da/yum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2189,
12,
2890,
16,
1296,
4672,
365,
18,
3076,
273,
1296,
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,
444,
2189,
12,
2890,
16,
1296,
4672,
365,
18,
3076,
273,
1296,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self._room.readAudio(self) | ret = self._room.readAudio(self) | def read(self): try: return self._room.readAudio(self) except ConferenceClosedError: self.app._va_sourceDone(self) | de7ee8367ee00a3dd77564bf6503f2b800630d92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/de7ee8367ee00a3dd77564bf6503f2b800630d92/conferencing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
4672,
775,
30,
325,
273,
365,
6315,
13924,
18,
896,
12719,
12,
2890,
13,
1335,
735,
1134,
7395,
668,
30,
365,
18,
2910,
6315,
15304,
67,
3168,
7387,
12,
2890,
13,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
4672,
775,
30,
325,
273,
365,
6315,
13924,
18,
896,
12719,
12,
2890,
13,
1335,
735,
1134,
7395,
668,
30,
365,
18,
2910,
6315,
15304,
67,
3168,
7387,
12,
2890,
13,
2,
-... |
_interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/%(n)s)*)}' % {'n': NAME_RE}) | _interp = re.compile(r'\$(%(n)s)|\${(%(n)s(?:/[^}]*)*)}' % {'n': NAME_RE}) | def __repr__(self): return '%s:%s' % (self._name, `self._s`) | 530acf3e01bdc7c1247dcbf9a428d241b31dbf6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/530acf3e01bdc7c1247dcbf9a428d241b31dbf6c/Expressions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
1995,
87,
5319,
87,
11,
738,
261,
2890,
6315,
529,
16,
1375,
2890,
6315,
87,
24065,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
1995,
87,
5319,
87,
11,
738,
261,
2890,
6315,
529,
16,
1375,
2890,
6315,
87,
24065,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
makeProject(last,targets,{ last: projects[last]}) | errcode = makeProject(last,targets,{ last: projects[last]}) if errcode > 0: errors += [ name ] | def make(names, targets, dbindex=None): '''invoke the make utility to build a set of projects.''' writetext('### make projects "' + ', '.join(names) \ + '" with targets "' + ', '.join(targets) + '"\n') distHost = context.value('distHost') if 'recurse' in targets: targets.remove('recurse') # Recurse through projects tha... | 3eb90d1f8ec09fc84ae921584bd73c951235b43d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/3eb90d1f8ec09fc84ae921584bd73c951235b43d/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
1973,
16,
5774,
16,
1319,
1615,
33,
7036,
4672,
9163,
14407,
326,
1221,
12788,
358,
1361,
279,
444,
434,
10137,
1093,
6309,
2518,
27830,
2668,
13151,
1221,
10137,
2491,
397,
2265... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
1973,
16,
5774,
16,
1319,
1615,
33,
7036,
4672,
9163,
14407,
326,
1221,
12788,
358,
1361,
279,
444,
434,
10137,
1093,
6309,
2518,
27830,
2668,
13151,
1221,
10137,
2491,
397,
2265... |
sys.path.pop() | sys.path = sav_path | def get_node_module(self): """ Return the python module object (if available) Raise an Import Error if no module is associated """ | 94bc567c0baed51a226c3bd8ed78c0016a9a01f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/94bc567c0baed51a226c3bd8ed78c0016a9a01f1/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2159,
67,
2978,
12,
2890,
4672,
3536,
2000,
326,
5790,
1605,
733,
261,
430,
2319,
13,
20539,
392,
6164,
1068,
309,
1158,
1605,
353,
3627,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2159,
67,
2978,
12,
2890,
4672,
3536,
2000,
326,
5790,
1605,
733,
261,
430,
2319,
13,
20539,
392,
6164,
1068,
309,
1158,
1605,
353,
3627,
3536,
2,
-100,
-100,
-100,
-100,
-100,
... |
res = rpc.getStorageSummary(dir,fileType,prodID,ses) | res = rpc.getStorageSummary( dir, fileType, prodID, ses ) | def usage(): print 'Usage: %s [<options>] <Directory>' % (Script.scriptName) print ' Get a summary of the storage usage <for an optionally supplied directory>.' print ' The usage can be given in any of the following units: (MB,GB,TB,PB)' print ' The sites options should be a space or comma separated list e.g. --Sites="... | d2db378c63ced0c70abdfd0e1e47c60e42f24767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d2db378c63ced0c70abdfd0e1e47c60e42f24767/dirac-dms-storage-usage-summary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
306,
32,
2116,
34,
65,
411,
2853,
1870,
738,
261,
3651,
18,
4263,
461,
13,
1172,
296,
968,
279,
4916,
434,
326,
2502,
4084,
411,
1884,
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,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
306,
32,
2116,
34,
65,
411,
2853,
1870,
738,
261,
3651,
18,
4263,
461,
13,
1172,
296,
968,
279,
4916,
434,
326,
2502,
4084,
411,
1884,
392,
... |
''' | """ | def NStarGraph(self,n): r''' Returns the n-star graph. The vertices of the n-star graph are the set of permutations on n symbols. There is an edge between two vertices if their labels differ only in the first and one other position. INPUT:: - ``n`` EXAMPLES:: sage: g = graphs.NStarGraph(4) sage: g.plot() # long t... | e57a7b736852231f13d906c838b0d978d747387f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e57a7b736852231f13d906c838b0d978d747387f/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
18379,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
290,
17,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
290,
17,
10983,
2667,
854,
326,
444,
434,
26468,
603,
290,
7963,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
18379,
4137,
12,
2890,
16,
82,
4672,
436,
26418,
2860,
326,
290,
17,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
290,
17,
10983,
2667,
854,
326,
444,
434,
26468,
603,
290,
7963,
1... |
"BoostStorage", path) | "BoostStorage", path, {"skyTileId": dataId['skyTile']}) | def map_invalidSource(self, dataId): dataId = self._transformId(dataId) path = os.path.join(self.root, self.invalidSourceHistTemplate % dataId) return ButlerLocation( "lsst.afw.detection.PersistableSourceVector", "PersistableSourceVector", "BoostStorage", path) | 008430bfea98ae553c958389dc752857d4d3fa84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6517/008430bfea98ae553c958389dc752857d4d3fa84/lsstSimMapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
5387,
1830,
12,
2890,
16,
501,
548,
4672,
501,
548,
273,
365,
6315,
6547,
548,
12,
892,
548,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3085,
16,
365,
18,
5387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
5387,
1830,
12,
2890,
16,
501,
548,
4672,
501,
548,
273,
365,
6315,
6547,
548,
12,
892,
548,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3085,
16,
365,
18,
5387,
... |
ignore_modules.append(val) | for mod in val.split(","): ignore_modules.append(mod.strip()) | def main(argv=None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:lT", ["help", "version", "trace", "count", "report", "no-report", "summary", "file=", "missing", "ignore-module=", "ignore-dir=", "coverdir=", "listfuncs", "trackcalls"]) except getopt.error... | 11566982ac3f36b47ea645c252efcb0f7cdac76c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/11566982ac3f36b47ea645c252efcb0f7cdac76c/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... |
def __init__(self,cp,ifo): | def __init__(self,cp,ifo,timeref): | def __init__(self,cp,ifo): depIfoIniConfig = ifo+'config' self.depIfoDir = ifo+'_qscans_config' depQscanList = ['bg-rds-qscan', 'bg-seismic-qscan'] | 8e536e7414dc65d55709c494beca16e846a79e32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/8e536e7414dc65d55709c494beca16e846a79e32/wscan_background.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4057,
16,
20299,
16,
8584,
822,
74,
4672,
5993,
45,
617,
22129,
809,
273,
21479,
6797,
1425,
11,
365,
18,
15037,
45,
617,
1621,
273,
21479,
6797,
67,
85,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4057,
16,
20299,
16,
8584,
822,
74,
4672,
5993,
45,
617,
22129,
809,
273,
21479,
6797,
1425,
11,
365,
18,
15037,
45,
617,
1621,
273,
21479,
6797,
67,
85,... |
except: print | except OSError, err: | def run(self, run_dir=None, rsave=None, verbose=True): "Control the runing of the xds process and parse the output." self.__cancelled = 0 self.running = 1 self.step = 0 self.step_name = "" self.outp = [] self.init_dir = os.getcwd() if run_dir: self.run_dir = run_dir if not self.run_dir: self.run_dir = "."# result = 0 #... | 982e3cdcf693d4d291ff282a248fd53576bba027 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4374/982e3cdcf693d4d291ff282a248fd53576bba027/XDS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1086,
67,
1214,
33,
7036,
16,
3597,
836,
33,
7036,
16,
3988,
33,
5510,
4672,
315,
3367,
326,
1086,
310,
434,
326,
619,
2377,
1207,
471,
1109,
326,
876,
1199,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1086,
67,
1214,
33,
7036,
16,
3597,
836,
33,
7036,
16,
3988,
33,
5510,
4672,
315,
3367,
326,
1086,
310,
434,
326,
619,
2377,
1207,
471,
1109,
326,
876,
1199,
365,
... |
if core_state["history_position"] < 0: return if 0 > core_state["history"][core_state["history_position"]]["cx"]: core_state["history"][core_state["history_position"]]["cx"] = 0 elif core_state["history"][core_state["history_position"]]["cx"] > core_state["mx"] - 1: core_state["history"][core_state["history_position"]... | if core_state["history_position"] >= 0: curr_location = core_state["history"][core_state["history_position"]] if 0 > curr_location["cx"]: curr_location["cx"] = 0 elif curr_location["cx"] > core_state["mx"] - 1: curr_location["cx"] = core_state["mx"] - 1 if 0 > curr_location["cy"]: curr_location["cy"] = 0 elif curr_loca... | def fixCursorCoords (core_state): """Various functions may put the screen cursor out of the possible range. Instead of duplicating the errorchecking everywhere, a single fixCursorCoords before an attempted screen display can fix them up. """ if core_state["history_position"] < 0: return if 0 > core_state["history"][... | cc8d13a824e40b9a940fd836dc827cd36307e513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/cc8d13a824e40b9a940fd836dc827cd36307e513/hylt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
6688,
13089,
261,
3644,
67,
2019,
4672,
3536,
4205,
1481,
4186,
2026,
1378,
326,
5518,
3347,
596,
434,
326,
3323,
1048,
18,
225,
17561,
434,
4977,
1776,
326,
555,
24609,
3614,
6051,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6688,
13089,
261,
3644,
67,
2019,
4672,
3536,
4205,
1481,
4186,
2026,
1378,
326,
5518,
3347,
596,
434,
326,
3323,
1048,
18,
225,
17561,
434,
4977,
1776,
326,
555,
24609,
3614,
6051,
... |
if connection_db_type(self.connection) == "mysql" and "rowid" not in map(str.lower, self.dbcolumnnames): statement += ", ROWID INTEGER UNIQUE AUTO_INCREMENT" | def _end_of_columns(self): table.Table._end_of_columns(self) # dbcolumnnames and types have the "not loaded" columns # removed if self.loadcolumns is not None: self.dbcolumnnames = [name for name in self.columnnames if name in self.loadcolumns] self.dbcolumntypes = [name for i, name in enumerate(self.columntypes) if se... | 72416e2542452aaa56c87e26168d61d6f473ffe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/72416e2542452aaa56c87e26168d61d6f473ffe3/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
792,
67,
5112,
12,
2890,
4672,
1014,
18,
1388,
6315,
409,
67,
792,
67,
5112,
12,
2890,
13,
468,
1319,
2827,
1973,
471,
1953,
1240,
326,
315,
902,
4203,
6,
2168,
468,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
409,
67,
792,
67,
5112,
12,
2890,
4672,
1014,
18,
1388,
6315,
409,
67,
792,
67,
5112,
12,
2890,
13,
468,
1319,
2827,
1973,
471,
1953,
1240,
326,
315,
902,
4203,
6,
2168,
468,
37... | |
return (joins, and_(*queries)) | if queries: return (joins, and_(*queries)) else: return ([],None) | def filter(self): queries = [] joins = [] for child in self: if callable(getattr(child, 'filter', None)): (join, query) = child.filter() queries.append(query) joins.extend(join) return (joins, and_(*queries)) | f9433ac45240043f401b594f8cce9247fed2c608 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/f9433ac45240043f401b594f8cce9247fed2c608/needpropertyxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
12,
2890,
4672,
6218,
273,
5378,
13471,
273,
5378,
364,
1151,
316,
365,
30,
309,
4140,
12,
588,
1747,
12,
3624,
16,
296,
2188,
2187,
599,
3719,
30,
261,
5701,
16,
843,
13,
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,
1034,
12,
2890,
4672,
6218,
273,
5378,
13471,
273,
5378,
364,
1151,
316,
365,
30,
309,
4140,
12,
588,
1747,
12,
3624,
16,
296,
2188,
2187,
599,
3719,
30,
261,
5701,
16,
843,
13,
273,
... |
chunk_x = -13 chunk_y = 44 | def base36encode(number): sign = '' if not isinstance(number, (int, long)): raise TypeError('number must be an integer') if number < 0: #raise ValueError('number must be positive') sign = '-' number = number * -1 | c1e4e7fe8e36b1779bf2033fa548348666cc2322 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13883/c1e4e7fe8e36b1779bf2033fa548348666cc2322/read_chunk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
5718,
3015,
12,
2696,
4672,
1573,
273,
875,
309,
486,
1549,
12,
2696,
16,
261,
474,
16,
1525,
3719,
30,
1002,
3580,
2668,
2696,
1297,
506,
392,
3571,
6134,
309,
1300,
411,
374,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
5718,
3015,
12,
2696,
4672,
1573,
273,
875,
309,
486,
1549,
12,
2696,
16,
261,
474,
16,
1525,
3719,
30,
1002,
3580,
2668,
2696,
1297,
506,
392,
3571,
6134,
309,
1300,
411,
374,
3... | |
h.sock = httplib.FakeSocket(sock, sslSock) | h.sock = sslSock | def proxy_ssl(self): host = '%s:%d' % (self.host, self.port) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: sock.connect((self.proxy, int(self.proxy_port))) except: raise sock.sendall("CONNECT %s HTTP/1.0\r\n" % host) sock.sendall("User-Agent: %s\r\n" % UserAgent) if self.proxy_user and self.proxy_pass: ... | 958f3b74d732d2a84ab1b15ef73b893dd3d3d5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/958f3b74d732d2a84ab1b15ef73b893dd3d3d5f2/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
8157,
12,
2890,
4672,
1479,
273,
1995,
87,
5319,
72,
11,
738,
261,
2890,
18,
2564,
16,
365,
18,
655,
13,
7313,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
8157,
12,
2890,
4672,
1479,
273,
1995,
87,
5319,
72,
11,
738,
261,
2890,
18,
2564,
16,
365,
18,
655,
13,
7313,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,... |
signal.signal(signal.SIGINT, shutDown) signal.signal(signal.SIGTERM, shutDown) if hasattr(signal, "SIGBREAK"): signal.signal(signal.SIGBREAK, shutDown) if platform.getType() == 'posix': signal.signal(signal.SIGCHLD, process.reapProcess) | handleSignals() | def run(installSignalHandlers=1): """Run input/output and dispatched/delayed code. This call never returns. It is the main loop which runs delayed timers (see twisted.python.delay and addDelayed), and the I/O monitor (doSelect). """ global running running = 1 threadable.registerAsIOThread() if installSignalHandlers: ... | 4fc965d5bb5dd435d676c1c94c455c4cd13cf420 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4fc965d5bb5dd435d676c1c94c455c4cd13cf420/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
5425,
11208,
6919,
33,
21,
4672,
3536,
1997,
810,
19,
2844,
471,
25513,
19,
10790,
329,
981,
18,
225,
1220,
745,
5903,
1135,
18,
225,
2597,
353,
326,
2774,
2798,
1492,
7597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
5425,
11208,
6919,
33,
21,
4672,
3536,
1997,
810,
19,
2844,
471,
25513,
19,
10790,
329,
981,
18,
225,
1220,
745,
5903,
1135,
18,
225,
2597,
353,
326,
2774,
2798,
1492,
7597,
... |
'amount': fields.float('Amount', digits=(16, int(config['price_accuracy']))), 'bysal': fields.float('By Salary', digits=(16, int(config['price_accuracy']))), | 'amount': fields.float('Amount', digits=(16, 4)), 'bysal': fields.float('By Salary', digits=(16, 4)), | def cancel_sheet(self, cr, uid, ids, context={}): self.write(cr, uid, ids, {'state':'cancel'}) return True | 21786ff375c69b960b487a69bd1343b8b77f3dec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/21786ff375c69b960b487a69bd1343b8b77f3dec/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
11,
2497,
10996,
11,
6792,
327,
1053,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
11,
2497,
10996,
11,
6792,
327,
1053,
2,
-... |
estr = '%5s: Warning: %s' % ('L'+`startline+1`, warning) estr = epytext.wordwrap(estr, 6, 75-6).strip() print >>stream, estr | estr =' Warning: %s' % warning estr = epytext.wordwrap(estr, 7, 75-7).strip() print >>stream, '%5s: %s' % ('L'+`startline+1`, estr) | def _print_errors(self, stream=sys.stderr): """ Print any errors that were encountered while constructing this C{ObjDoc} to C{stream}. This method should be called at the end of the constructor of every class that is derived from C{ObjDoc}. @rtype: C{None} """ parse_warnings = self._parse_warnings parse_errors = self... | 5ec4fab27b610d7f6ef969d5d4bdc54db4ab6693 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/5ec4fab27b610d7f6ef969d5d4bdc54db4ab6693/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
67,
4324,
12,
2890,
16,
1407,
33,
9499,
18,
11241,
4672,
3536,
3038,
1281,
1334,
716,
4591,
9919,
1323,
27389,
333,
385,
95,
2675,
1759,
97,
358,
385,
95,
3256,
5496,
225,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
67,
4324,
12,
2890,
16,
1407,
33,
9499,
18,
11241,
4672,
3536,
3038,
1281,
1334,
716,
4591,
9919,
1323,
27389,
333,
385,
95,
2675,
1759,
97,
358,
385,
95,
3256,
5496,
225,
1... |
'missing_account_revenue': 'It miss ' \ | 'missing_account_revenue': 'It misses ' \ | def __init__(self): super(SaleLine, self).__init__() self._order.insert(0, ('sequence', 'ASC')) self._error_messages.update({ 'missing_account_revenue': 'It miss ' \ 'an "account_revenue" default property!', 'customer_location_required': 'The customer location is required!', }) | 75faa40d113abdfc9857709fc7e711916ee82b13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9306/75faa40d113abdfc9857709fc7e711916ee82b13/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
30746,
1670,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
365,
6315,
1636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2240,
12,
30746,
1670,
16,
365,
2934,
972,
2738,
972,
1435,
365,
6315,
1019,
18,
6387,
12,
20,
16,
7707,
6178,
2187,
296,
8633,
26112,
365,
6315,
1636,
... |
If xk is None, then x=arange(len(yk)) will be assumed | def csprep(yk,xk=None,kind='not-a-knot',conds=None): """Return a (Spp,xk,yk) representation of a cubic spline given data-points yk can be a 2-d array to represent more than one curve, through the same xk points. The first dimension is assumed to be the interpolating dimenion. If xk is None, then x=arange(len(yk)) wil... | deff35fdd9225ffb4dc8424f8e00bbfc804dab49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/deff35fdd9225ffb4dc8424f8e00bbfc804dab49/interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2873,
19109,
12,
93,
79,
16,
92,
79,
33,
7036,
16,
9224,
2218,
902,
17,
69,
17,
79,
902,
2187,
20874,
33,
7036,
4672,
3536,
990,
279,
261,
3389,
84,
16,
92,
79,
16,
93,
79,
13,
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,
2873,
19109,
12,
93,
79,
16,
92,
79,
33,
7036,
16,
9224,
2218,
902,
17,
69,
17,
79,
902,
2187,
20874,
33,
7036,
4672,
3536,
990,
279,
261,
3389,
84,
16,
92,
79,
16,
93,
79,
13,
4... | |
def initializeCollisions(self, collisionTraverser, avatarNodePath, | def initializeCollisions(self, collisionTraverser, avatarNodePath, | def initializeCollisions(self, collisionTraverser, avatarNodePath, wallCollideMask, floorCollideMask, avatarRadius = 1.4, floorOffset = 1.0, reach = 1.0): """ Set up the avatar for collisions """ assert not avatarNodePath.isEmpty() | c876c52dbd1c9c15ce852828fd0f32a967447917 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c876c52dbd1c9c15ce852828fd0f32a967447917/NonPhysicsWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
13535,
12682,
12,
2890,
16,
17740,
15844,
264,
16,
16910,
907,
743,
16,
17662,
914,
8130,
5796,
16,
6346,
914,
8130,
5796,
16,
16910,
10196,
273,
404,
18,
24,
16,
6346,
2335,
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,
4046,
13535,
12682,
12,
2890,
16,
17740,
15844,
264,
16,
16910,
907,
743,
16,
17662,
914,
8130,
5796,
16,
6346,
914,
8130,
5796,
16,
16910,
10196,
273,
404,
18,
24,
16,
6346,
2335,
273,
... |
return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority')) | queries = { 'Easy bugs': 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority', 'Documentation bugs': 'http://twistedmatrix.com/trac/query?status=assigned&status=new&status=reopened&format=csv&order=priority&keywords=~documentation' } return self.gen... | def generate_list_of_bug_ids_to_look_at(self): # Just index bitesized bugs return mysite.customs.bugtrackers.trac.csv_url2list_of_bug_ids( mysite.customs.bugtrackers.trac.csv_of_bugs( 'http://twistedmatrix.com/trac/query?status=new&status=assigned&status=reopened&format=csv&keywords=%7Eeasy&order=priority')) | 2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/2c3cf8caa89ec134ddcdd3eb56ce6a0ad41045fb/trac_instances.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1098,
67,
792,
67,
925,
67,
2232,
67,
869,
67,
7330,
67,
270,
12,
2890,
4672,
468,
12526,
770,
2831,
281,
1235,
22398,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1098,
67,
792,
67,
925,
67,
2232,
67,
869,
67,
7330,
67,
270,
12,
2890,
4672,
468,
12526,
770,
2831,
281,
1235,
22398,
327,
312,
1900,
1137,
18,
3662,
87,
18,
925,
4101,
41... |
def UpdateView(self): | def GetTile(self, x, y): return self.mapRows[y][x] def TranslateTileForDisplay(self, tile): dtile = displayTiles.get(tile, None) if dtile is not None: return dtile return tile def GetDisplayTile(self, x, y): tile = self.mapRows[y][x] return self.TranslateTileForDisplay(tile) def UpdateView(self, sio=None): | def UpdateView(self): # REUSE? Useful for centering of the world or view or something. # # playerX = self.playerX = self.user.connection.consoleColumns / 2 # playerY = self.playerY = self.windowOffset + windowLength/2 | 2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
9337,
12,
2890,
16,
619,
16,
677,
4672,
327,
365,
18,
1458,
4300,
63,
93,
6362,
92,
65,
225,
1652,
16820,
9337,
1290,
4236,
12,
2890,
16,
4769,
4672,
3681,
398,
273,
2562,
27669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9337,
12,
2890,
16,
619,
16,
677,
4672,
327,
365,
18,
1458,
4300,
63,
93,
6362,
92,
65,
225,
1652,
16820,
9337,
1290,
4236,
12,
2890,
16,
4769,
4672,
3681,
398,
273,
2562,
27669,
... |
Actor.notify.warning("couldn't find part: %s" % (partName)) | Actor.notify.warning("couldn't find part: %s" % (pName)) | def getAnimControls(self, animName=None, partName=None, lodName=None): """getAnimControls(self, string, string=None, string=None) | f27cf426e1d544aac938e5bbdfe9d7f560354a86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f27cf426e1d544aac938e5bbdfe9d7f560354a86/Actor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20892,
16795,
12,
2890,
16,
10536,
461,
33,
7036,
16,
1087,
461,
33,
7036,
16,
328,
369,
461,
33,
7036,
4672,
3536,
588,
20892,
16795,
12,
2890,
16,
533,
16,
533,
33,
7036,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20892,
16795,
12,
2890,
16,
10536,
461,
33,
7036,
16,
1087,
461,
33,
7036,
16,
328,
369,
461,
33,
7036,
4672,
3536,
588,
20892,
16795,
12,
2890,
16,
533,
16,
533,
33,
7036,
16,
... |
local_path = dist_path | local_path = dist_path + 'LANG/' | def run(self): | 3c1bd2ce586436dc69f103b13f97661ca5cbb84d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/61/3c1bd2ce586436dc69f103b13f97661ca5cbb84d/proximity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if isinstance(v, FloatType): | if isinstance(v, float): | def simple_marshal(v): if isinstance(v, StringType): return '' if isinstance(v, BooleanType): return ':boolean' if isinstance(v, IntType): return ':int' if isinstance(v, FloatType): return ':float' if isinstance(v, DateTime): return ':date' return '' | e04ad27486fef71c955bba35808f255f7768fbde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e04ad27486fef71c955bba35808f255f7768fbde/Zope.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
67,
3108,
12,
90,
4672,
309,
1549,
12,
90,
16,
31570,
4672,
327,
875,
309,
1549,
12,
90,
16,
3411,
559,
4672,
327,
4290,
6494,
11,
309,
1549,
12,
90,
16,
3094,
559,
4672,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
67,
3108,
12,
90,
4672,
309,
1549,
12,
90,
16,
31570,
4672,
327,
875,
309,
1549,
12,
90,
16,
3411,
559,
4672,
327,
4290,
6494,
11,
309,
1549,
12,
90,
16,
3094,
559,
4672,
327,
... |
bs_ids = map(lambda bs:bs[1], q1) | bs_ids = map(lambda bs: bs[1], q1) | def getPossibleImagesOrMaster(self, target_uuid, target_type, is_master, start, end, filt): session = create_session() menu = self.getTargetsMenuTUUID(target_uuid) q1 = self.__PossibleImages(session, target_uuid, is_master, filt) q1 = q1.group_by(self.image.c.id) if end != -1: q1 = q1.offset(int(start)).limit(int(end)-... | 33638c4343bc0f46138a62717e8111ce7599be42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/33638c4343bc0f46138a62717e8111ce7599be42/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
13576,
8946,
1162,
7786,
12,
2890,
16,
1018,
67,
7080,
16,
1018,
67,
723,
16,
353,
67,
7525,
16,
787,
16,
679,
16,
18553,
4672,
1339,
273,
752,
67,
3184,
1435,
3824,
273,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
13576,
8946,
1162,
7786,
12,
2890,
16,
1018,
67,
7080,
16,
1018,
67,
723,
16,
353,
67,
7525,
16,
787,
16,
679,
16,
18553,
4672,
1339,
273,
752,
67,
3184,
1435,
3824,
273,
365,
1... |
size = size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file) | size = FileUtilities.size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file) | def run(self): """Execute the cleaning operation and iterate (bytes deleted, size of file)""" for file in self.list_files(self): size = size_of_file.file(file) FileUtilities.delete_file(file) yield (size, file) | ece8c3e99f8a702d7e0267938ec012476dbadf5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/ece8c3e99f8a702d7e0267938ec012476dbadf5f/CleanerBackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
5289,
326,
24225,
1674,
471,
7401,
261,
3890,
4282,
16,
963,
434,
585,
15574,
364,
585,
316,
365,
18,
1098,
67,
2354,
12,
2890,
4672,
963,
273,
963,
67,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
5289,
326,
24225,
1674,
471,
7401,
261,
3890,
4282,
16,
963,
434,
585,
15574,
364,
585,
316,
365,
18,
1098,
67,
2354,
12,
2890,
4672,
963,
273,
963,
67,
792... |
if file[-4:]=='.dat': sedlist.append(file) | if tmp[-4:]=='.dat': sedlist.append(tmp) | def readAsteroids(self, rootdir='', verbose=True): """ Initialize all asteroid seds""" sedlist = [] tmplist = os.listdir(rootdir) for tmp in tmplist: if file[-4:]=='.dat': sedlist.append(file) self.sedlist, self.seds = self.readSeds(sedlist, rootdir=rootdir, verbose=verbose) self.type='asteroid' return | 7b587ba2c75dee4821476e4d9147038671073bba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/7b587ba2c75dee4821476e4d9147038671073bba/SedSet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
37,
8190,
21061,
12,
2890,
16,
1365,
1214,
2218,
2187,
3988,
33,
5510,
4672,
3536,
9190,
777,
30977,
839,
272,
9765,
8395,
24336,
1098,
273,
5378,
10720,
376,
273,
1140,
18,
1098,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
37,
8190,
21061,
12,
2890,
16,
1365,
1214,
2218,
2187,
3988,
33,
5510,
4672,
3536,
9190,
777,
30977,
839,
272,
9765,
8395,
24336,
1098,
273,
5378,
10720,
376,
273,
1140,
18,
1098,
1... |
label=_(u'Telefon (ve tvaru +420 111 222 333)')) | label=_(u'Telefon (ve tvaru +420111222333)')) | def _(msg): return msg | 7644a0e36651bcf2d8ba453eb3c9a48462d29c5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7994/7644a0e36651bcf2d8ba453eb3c9a48462d29c5d/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12,
3576,
4672,
327,
1234,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12,
3576,
4672,
327,
1234,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ntext = [] | tokens = [] | def main(fn, lexer=None): if lexer is not None: lx = get_lexer_by_name(lexer) else: try: lx = get_lexer_for_filename(os.path.basename(fn)) except ValueError: try: name, rest = fn.split('_', 1) lx = get_lexer_by_name(name) except ValueError: raise AssertionError('no lexer found for file %r' % fn) debug_lexer = False # d... | aa82d10c79a247547303d83826359f2a0ab11a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/aa82d10c79a247547303d83826359f2a0ab11a92/find_error.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
4293,
16,
8512,
33,
7036,
4672,
309,
8512,
353,
486,
599,
30,
15855,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
31731,
13,
469,
30,
775,
30,
15855,
273,
336,
67,
31731,
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,
2774,
12,
4293,
16,
8512,
33,
7036,
4672,
309,
8512,
353,
486,
599,
30,
15855,
273,
336,
67,
31731,
67,
1637,
67,
529,
12,
31731,
13,
469,
30,
775,
30,
15855,
273,
336,
67,
31731,
67... |
result = super(view, self).write(cr, uid, vids, vals, context) | result = super(view, self).write(cr, uid, ids, vals, context) | def write(self, cr, uid, ids, vals, context={}): | bb31f33da6b344413c38842a6a07998be8536555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/bb31f33da6b344413c38842a6a07998be8536555/ir_ui_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return gof.Apply(self, [x, shp], [tensor(x.type.dtype, [False]*self.ndim)]) | bcasts = [False] * self.ndim for index in xrange(self.ndim): y = shp_orig[index] try: bcasts[index] = (hasattr(y, 'get_constant_value') and y.get_constant_value() == 1) except TypeError: pass return gof.Apply(self, [x, shp], [tensor(x.type.dtype, bcasts)]) | def make_node(self, x, shp): x = as_tensor_variable(x) shp = as_tensor_variable(shp, ndim=1) if not shp.dtype.startswith('int'): raise TypeError("Shape must be integers") assert shp.ndim == 1 if isinstance(shp, TensorConstant): bcast = [s==1 for s in shp.data] return gof.Apply(self, [x, shp], [tensor(x.type.dtype, bcas... | fe246e7b736a9c5b076b9d0fdb4dd8c6b6c96686 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/fe246e7b736a9c5b076b9d0fdb4dd8c6b6c96686/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2159,
12,
2890,
16,
619,
16,
25771,
4672,
619,
273,
487,
67,
13720,
67,
6105,
12,
92,
13,
25771,
273,
487,
67,
13720,
67,
6105,
12,
674,
84,
16,
9209,
33,
21,
13,
309,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2159,
12,
2890,
16,
619,
16,
25771,
4672,
619,
273,
487,
67,
13720,
67,
6105,
12,
92,
13,
25771,
273,
487,
67,
13720,
67,
6105,
12,
674,
84,
16,
9209,
33,
21,
13,
309,
48... |
return instance_url(None, path='') + "/img/icons/vote_" + str(size) + ".png" | return instance_url(None, path='') + u"/img/icons/vote_" + str(size) + u".png" | def proposal_icon(proposal, size=16): if proposal.adopted: return instance_url(None, path='') + "/img/icons/proposal_adopted_" + str(size) + ".png" if proposal.is_adopt_polling(): return instance_url(None, path='') + "/img/icons/vote_" + str(size) + ".png" else: return instance_url(None, path='') + "/img/icons/proposal... | d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14708,
67,
3950,
12,
685,
8016,
16,
963,
33,
2313,
4672,
309,
14708,
18,
361,
3838,
329,
30,
327,
791,
67,
718,
12,
7036,
16,
589,
2218,
6134,
397,
2206,
6081,
19,
14516,
19,
685,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14708,
67,
3950,
12,
685,
8016,
16,
963,
33,
2313,
4672,
309,
14708,
18,
361,
3838,
329,
30,
327,
791,
67,
718,
12,
7036,
16,
589,
2218,
6134,
397,
2206,
6081,
19,
14516,
19,
685,
80... |
self._vte.set_cursor_blinks = (self.conf.cursor_blink) | self._vte.set_cursor_blinks (self.conf.cursor_blink) | def reconfigure_vte (self): # Set our emulation self._vte.set_emulation (self.conf.emulation) | c6dc9cb214ba887b68858b529b215f2670ca492b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6502/c6dc9cb214ba887b68858b529b215f2670ca492b/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
67,
90,
736,
261,
2890,
4672,
468,
1000,
3134,
801,
6234,
365,
6315,
90,
736,
18,
542,
67,
351,
6234,
261,
2890,
18,
3923,
18,
351,
6234,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
67,
90,
736,
261,
2890,
4672,
468,
1000,
3134,
801,
6234,
365,
6315,
90,
736,
18,
542,
67,
351,
6234,
261,
2890,
18,
3923,
18,
351,
6234,
13,
2,
-100,
-100,
-100,
-100,
-... |
curs = conn.cursor() | logging.info(" ... dropping old data") | def store_entries(entries_list, dbmodel, conn): """ Given a list of entries to be stored, try to store as much data as possible in the given database model.""" curs = conn.cursor() # Drop the old data from this document from the previous tables. tables = [x.table for x in entries_list] sources = [x.source for x in en... | 2e36541c90224154027f2b76859da3220e27cb68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/2e36541c90224154027f2b76859da3220e27cb68/rstlime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
8219,
12,
8219,
67,
1098,
16,
1319,
2284,
16,
1487,
4672,
3536,
16803,
279,
666,
434,
3222,
358,
506,
4041,
16,
775,
358,
1707,
487,
9816,
501,
487,
3323,
316,
326,
864,
2063... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
8219,
12,
8219,
67,
1098,
16,
1319,
2284,
16,
1487,
4672,
3536,
16803,
279,
666,
434,
3222,
358,
506,
4041,
16,
775,
358,
1707,
487,
9816,
501,
487,
3323,
316,
326,
864,
2063... |
errors.ECODE_INVAL) if (self.op.disk_template == constants.DT_FILE and not constants.ENABLE_FILE_STORAGE): raise errors.OpPrereqError("File storage disabled at configure time", | def CheckArguments(self): """Check arguments. | f276c4b5558338ba7832b5a92b822f0695a5ac6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/f276c4b5558338ba7832b5a92b822f0695a5ac6c/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
4628,
12,
2890,
4672,
3536,
1564,
1775,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2073,
4628,
12,
2890,
4672,
3536,
1564,
1775,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
args += self._get_override("-m", "umask") | args += self._get_override("-m", "umask", oct(self.options.umask)) | def do_start(self, arg): self.get_status() if not self.zd_up: args = [ self.options.python, self.options.zdrun, ] args += self._get_override("-S", "schemafile") args += self._get_override("-C", "configfile") args += self._get_override("-b", "backofflimit") args += self._get_override("-d", "daemon", flag=1) args += self... | 52e69f62a5d47c310d30f1e170a193e0aa2ed30c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/52e69f62a5d47c310d30f1e170a193e0aa2ed30c/zdctl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
12,
2890,
16,
1501,
4672,
365,
18,
588,
67,
2327,
1435,
309,
486,
365,
18,
94,
72,
67,
416,
30,
833,
273,
306,
365,
18,
2116,
18,
8103,
16,
365,
18,
2116,
18,
94,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
12,
2890,
16,
1501,
4672,
365,
18,
588,
67,
2327,
1435,
309,
486,
365,
18,
94,
72,
67,
416,
30,
833,
273,
306,
365,
18,
2116,
18,
8103,
16,
365,
18,
2116,
18,
94,
... |
this = apply(_quickfix.new_CreditRating, args) | this = _quickfix.new_CreditRating(*args) | def __init__(self, *args): this = apply(_quickfix.new_CreditRating, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
16520,
20388,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
16520,
20388,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
... |
array([[ 0.], [ 1.]]) | array([[ 0., 0., 0.], [ 1., 1., 1.]]) | def meshgrid(x=None, y=None, z=None, sparse=False, indexing='xy', memoryorder=None): """ Extension of numpy.meshgrid to 1D, 2D and 3D problems. This extended version makes 1D/2D/3D coordinate arrays for vectorized evaluations of 1D/2D/3D scalar/vector fields over 1D/2D/3D grids, given one-dimensional coordinate arrays... | f31a5becba7083fdfe0984037ade3202bc54bbd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4727/f31a5becba7083fdfe0984037ade3202bc54bbd3/numpyutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6986,
5222,
12,
92,
33,
7036,
16,
677,
33,
7036,
16,
998,
33,
7036,
16,
9387,
33,
8381,
16,
14403,
2218,
1698,
2187,
3778,
1019,
33,
7036,
4672,
3536,
10021,
434,
3972,
18,
15557,
5222... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6986,
5222,
12,
92,
33,
7036,
16,
677,
33,
7036,
16,
998,
33,
7036,
16,
9387,
33,
8381,
16,
14403,
2218,
1698,
2187,
3778,
1019,
33,
7036,
4672,
3536,
10021,
434,
3972,
18,
15557,
5222... |
r %= q while self._gcf(r, q-1) != 1: r = (r+1) % q | def _getRelPrime(self, q): # We /dev/random instead of /dev/urandom. This was not a mistake; # we want the most random data available rand=open('/dev/random','r') b = self._bitLen(q)/8 + 1 r = 0L for i in range(b): r = r*256 + ord(rand.read(1)) rand.close() r %= q while self._gcf(r, q-1) != 1: r = (r+1) % q return r | 9ced5edc8eec08d01186a8abf63c148ebda474ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9ced5edc8eec08d01186a8abf63c148ebda474ec/openpgpkey.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1971,
23327,
12,
2890,
16,
1043,
4672,
468,
1660,
342,
5206,
19,
9188,
3560,
434,
342,
5206,
19,
295,
2111,
18,
1220,
1703,
486,
279,
27228,
911,
31,
468,
732,
2545,
326,
448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1971,
23327,
12,
2890,
16,
1043,
4672,
468,
1660,
342,
5206,
19,
9188,
3560,
434,
342,
5206,
19,
295,
2111,
18,
1220,
1703,
486,
279,
27228,
911,
31,
468,
732,
2545,
326,
448... | |
rdata = self.tryToResolveConflict(oid, oserial, serial, data) if rdata is None: raise POSException.ConflictError( oid=oid, serials=(oserial, serial), data=data) else: data = rdata | data=self.tryToResolveConflict(oid, oserial, serial, data) if not data: raise POSException.ConflictError(oid=oid, serials=(oserial, serial)) | def store(self, oid, serial, data, version, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) if version: # we allow a version to be in use although we don't # support versions in the storage. LOG('TemporaryStorage', BLATHER, ('versions in use with Temp... | 33ced447062612703186f787c8e834a28792b067 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9663/33ced447062612703186f787c8e834a28792b067/TemporaryStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
12,
2890,
16,
7764,
16,
2734,
16,
501,
16,
1177,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
12,
2890,
16,
7764,
16,
2734,
16,
501,
16,
1177,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
309,
1... |
for i in range (len (start)): | for i in range(len(start)): | def linear_interp (start, end, pos, len): result = [] for i in range (len (start)): compstart = start[i] compend = end[i] pos = compstart + ((compend - compstart) * (float(pos) / float(len))) result.append (pos) return result | 07d9044de24812334fbc0e0919fbef89c45b6f19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/07d9044de24812334fbc0e0919fbef89c45b6f19/shuffle-interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
67,
24940,
261,
1937,
16,
679,
16,
949,
16,
562,
4672,
563,
273,
5378,
364,
277,
316,
1048,
12,
1897,
12,
1937,
3719,
30,
1161,
1937,
273,
787,
63,
77,
65,
1161,
409,
282,
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,
9103,
67,
24940,
261,
1937,
16,
679,
16,
949,
16,
562,
4672,
563,
273,
5378,
364,
277,
316,
1048,
12,
1897,
12,
1937,
3719,
30,
1161,
1937,
273,
787,
63,
77,
65,
1161,
409,
282,
273,... |
extern int _QdRGB_Convert(PyObject *, RGBColorPtr *); | extern int _QdRGB_Convert(PyObject *, RGBColorPtr); | #ifdef USE_TOOLBOX_OBJECT_GLUE | 256f5e7f97578368518da0e67325746bc170e172 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/256f5e7f97578368518da0e67325746bc170e172/qdsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
14988,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self._command_channel.send_exception(GreenletExit) | self._command_channel.send_exception(api.GreenletExit) | def stop(self): notification_center = NotificationCenter() notification_center.remove_observer(self, name='SystemIPAddressDidChange') notification_center.remove_observer(self, name='SystemDidWakeUpFromSleep') self._select_proc.kill() self._command_channel.send_exception(GreenletExit) | 8f9c03b088a42fa0d31f53b4684bf8a1bc715366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/8f9c03b088a42fa0d31f53b4684bf8a1bc715366/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
3851,
67,
5693,
18,
4479,
67,
30971,
12,
2890,
16,
508,
2218,
3163,
22507,
18250,
3043,
6134,
3851,
67,
5693,
18,
4479,
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,
2132,
12,
2890,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
3851,
67,
5693,
18,
4479,
67,
30971,
12,
2890,
16,
508,
2218,
3163,
22507,
18250,
3043,
6134,
3851,
67,
5693,
18,
4479,
67,
... |
logger.warning('!!! Number of subjobs %s is larger than maximum allowed of %s - reducing to %s !!!', nrjobs, config['MaxJobsDQ2JobSplitter'], config['MaxJobsDQ2JobSplitter'] ) | logger.warning('!!! Number of subjobs %s is larger than maximum allowed of %s - reducing to %s !!!', nrjob, config['MaxJobsDQ2JobSplitter'], config['MaxJobsDQ2JobSplitter'] ) | def split(self,job): | d28657c9128d2b8e4a8d8a21e42486f4ee0fd956 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/d28657c9128d2b8e4a8d8a21e42486f4ee0fd956/DQ2JobSplitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
c.post(task['url'], data=body, content_type=task['headers']['Content-Type']) | c.post(task['url'], data=body, content_type=content_type) | def _Dynamic_Add(self, request, response): # TODO(slamm): Handle task errors taskqueue_stub.TaskQueueServiceStub._Dynamic_Add(self, request, response) for queue in self.GetQueues(): queue_name = queue['name'] for task in self.GetTasks(queue_name): headers = task['headers'] c = client.Client() if task['method'] == 'GET'... | 2ede1b0ebbf0e3fbbe2671f34eadbb19116a4b5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5745/2ede1b0ebbf0e3fbbe2671f34eadbb19116a4b5e/gaeunit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9791,
67,
986,
12,
2890,
16,
590,
16,
766,
4672,
468,
2660,
12,
2069,
301,
81,
4672,
5004,
1562,
1334,
1562,
4000,
67,
12847,
18,
2174,
3183,
1179,
11974,
6315,
9791,
67,
986,
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,
389,
9791,
67,
986,
12,
2890,
16,
590,
16,
766,
4672,
468,
2660,
12,
2069,
301,
81,
4672,
5004,
1562,
1334,
1562,
4000,
67,
12847,
18,
2174,
3183,
1179,
11974,
6315,
9791,
67,
986,
12,... |
if cont_handler.__class__ != handler.ContentHandler: | if isinstance(cont_handler, Dispatch.Dispatcher): _do_dispatch_callback(s, 0, pos, taglist, cont_handler._start_table.get, cont_handler, cont_handler._save_stack, cont_handler._end_table.get, attrlookup) elif cont_handler.__class__ != handler.ContentHandler: | def _parse_elements(s, tagtable, cont_handler, debug_level, attrlookup): """parse the string with the tagtable and send the ContentHandler events Specifically, it sends the startElement, endElement and characters events but not startDocument and endDocument. """ if debug_level: import Generate Generate._position = 0 ... | 56b20d647994dd441c270b4348b094087b4671ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/56b20d647994dd441c270b4348b094087b4671ea/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
6274,
12,
87,
16,
1047,
2121,
16,
466,
67,
4176,
16,
1198,
67,
2815,
16,
1604,
8664,
4672,
3536,
2670,
326,
533,
598,
326,
1047,
2121,
471,
1366,
326,
3697,
1503,
2641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
67,
6274,
12,
87,
16,
1047,
2121,
16,
466,
67,
4176,
16,
1198,
67,
2815,
16,
1604,
8664,
4672,
3536,
2670,
326,
533,
598,
326,
1047,
2121,
471,
1366,
326,
3697,
1503,
2641,
... |
if (numlocales == 0 or (os.getenv('CHPL_COMM')=='none')): | if (os.getenv('CHPL_COMM', 'none')=='none'): | def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return | 469a09fcb4fe6f256fa57e8e16e691db1d278b44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/469a09fcb4fe6f256fa57e8e16e691db1d278b44/sub_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
67,
9381,
12,
84,
16,
2021,
4672,
417,
273,
6652,
18,
52,
3190,
12,
3292,
16418,
2187,
701,
12,
84,
18,
6610,
13,
5717,
417,
18,
7048,
1435,
2037,
273,
813,
18,
957,
1435,
679,... |
self.assertEqual(memio.readlines(15), [buf] * 2) | self.assertEqual(memio.readlines(15L), [buf] * 2) | def test_readlines(self): buf = self.buftype("1234567890\n") memio = self.ioclass(buf * 10) | 7daf686e5bf7bf4619c65c9621961cb29f316de0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/7daf686e5bf7bf4619c65c9621961cb29f316de0/test_memoryio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
12,
2890,
4672,
1681,
273,
365,
18,
4385,
723,
2932,
28462,
20277,
20,
64,
82,
7923,
1663,
1594,
273,
365,
18,
77,
504,
459,
12,
4385,
380,
1728,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
12,
2890,
4672,
1681,
273,
365,
18,
4385,
723,
2932,
28462,
20277,
20,
64,
82,
7923,
1663,
1594,
273,
365,
18,
77,
504,
459,
12,
4385,
380,
1728,
13,
2,
-100,
-1... |
"EPIPE", "ETIMEDOUT", "ECONNREFUSED", "ECONNRESET", | "EPIPE", "ETIMEDOUT", "WSAETIMEDOUT", "ECONNREFUSED", "WSAECONNREFUSED", "ECONNRESET", "WSAECONNRESET", "ECONNABORTED", "WSAECONNABORTED", "ENETRESET", "WSAENETRESET", | def plat_specific_errors(*errnames): """Return error numbers for all errors in errnames on this platform. The 'errno' module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. """ errno_names = dir(errno... | e1abad5c9bb062a456870c5332102c618e85b7c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/e1abad5c9bb062a456870c5332102c618e85b7c6/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29838,
67,
12524,
67,
4324,
30857,
370,
1973,
4672,
3536,
990,
555,
5600,
364,
777,
1334,
316,
393,
1973,
603,
333,
4072,
18,
225,
1021,
296,
19088,
11,
1605,
1914,
3775,
2552,
6810,
835... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29838,
67,
12524,
67,
4324,
30857,
370,
1973,
4672,
3536,
990,
555,
5600,
364,
777,
1334,
316,
393,
1973,
603,
333,
4072,
18,
225,
1021,
296,
19088,
11,
1605,
1914,
3775,
2552,
6810,
835... |
drawsphere(black, self.c1, TubeRadius, level) if v2: drawcylinder(color2, self.a2pos, self.c2, TubeRadius) else: drawsphere(black, self.c2, TubeRadius, level) | drawsphere(black, c2, TubeRadius, level) | via dispdef from the calling molecule -- this might cause bugs if some | 8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3970,
16232,
536,
628,
326,
4440,
13661,
1493,
333,
4825,
4620,
22398,
309,
2690,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3970,
16232,
536,
628,
326,
4440,
13661,
1493,
333,
4825,
4620,
22398,
309,
2690,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
]) | ]) | def IfFrameWork(name, packages, extensions, headername=None): """ Return the packages and extensions if the framework exists, or two empty lists if not. """ | c7327c87d5a2f44301555206c46d8ef6ed97cf84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/c7327c87d5a2f44301555206c46d8ef6ed97cf84/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
971,
3219,
2421,
12,
529,
16,
5907,
16,
4418,
16,
1446,
529,
33,
7036,
4672,
3536,
2000,
326,
5907,
471,
4418,
309,
326,
8257,
1704,
16,
578,
2795,
1008,
6035,
309,
486,
18,
3536,
2,
... |
r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.+?)(>\s*(?P<nick2>\S+))?$" | r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.*?)(>\s*(?P<nick2>\S+).*)?$" | def showfactoid(self, irc, msg, match): r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.+?)(>\s*(?P<nick2>\S+))?$" withnick = bool(match.group(1)) and msg.args[1].startswith('ubotu') db = self._precheck(irc, msg, withnick=True, timeout=(msg.args[0], match.group('nick'), match.grou... | 01f443b02020754b77ae2d59e7040a244cbd5b7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3105/01f443b02020754b77ae2d59e7040a244cbd5b7c/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3493,
839,
12,
2890,
16,
277,
1310,
16,
1234,
16,
845,
4672,
436,
6,
29020,
5,
96,
5,
35,
373,
352,
89,
64,
55,
10936,
87,
9945,
3680,
52,
32,
2135,
4930,
34,
17,
9945,
64,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
3493,
839,
12,
2890,
16,
277,
1310,
16,
1234,
16,
845,
4672,
436,
6,
29020,
5,
96,
5,
35,
373,
352,
89,
64,
55,
10936,
87,
9945,
3680,
52,
32,
2135,
4930,
34,
17,
9945,
64,
... |
ns3.CsmaHelper.EnablePcap("mixed-wireless", appSink.GetId(), 0, False) | csma = ns3.CsmaHelper() csma.EnablePcapAll("mixed-wireless", False) | def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplica... | 32b15e4e92b899f86e44dab3caaf207302c4b0cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11087/32b15e4e92b899f86e44dab3caaf207302c4b0cc/mixed-wireless.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
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,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
3... |
methods=self.fields['paymentmethod'].choices, | methods=payment_choices, | def __init__(self, *args, **kwargs): try: cart = kwargs['cart'] del kwargs['cart'] except KeyError: cart = None try: order = kwargs['order'] del kwargs['order'] except KeyError: order = None super(forms.Form, self).__init__(*args, **kwargs) # Send a signal to perform additional filtering of available payment methods. #... | df0f3de832a94b27730d514b614678808aa9626f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/df0f3de832a94b27730d514b614678808aa9626f/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
7035,
273,
1205,
3292,
11848,
3546,
1464,
1205,
3292,
11848,
3546,
1335,
4999,
30,
7035,
273,
599,
775,
30,
1353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
7035,
273,
1205,
3292,
11848,
3546,
1464,
1205,
3292,
11848,
3546,
1335,
4999,
30,
7035,
273,
599,
775,
30,
1353,... |
MSRPSession.index += 1 self.index = MSRPSession.index | def __init__(self, session_manager, credentials, write_traffic, play_wav_func=None, sip=None, msrp=None): self.myman = session_manager self.credentials = credentials self.write_traffic = write_traffic self.play_wav_func = play_wav_func self.sip = sip if sip is not None: self.sip.call_on_disconnect(self._on_disconnect) ... | 51579bc611dc683c1ea8cc0e9af01fccd4bf1852 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/51579bc611dc683c1ea8cc0e9af01fccd4bf1852/sip_im_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
67,
4181,
16,
4448,
16,
1045,
67,
19231,
16,
6599,
67,
24801,
67,
644,
33,
7036,
16,
10341,
33,
7036,
16,
4086,
13832,
33,
7036,
4672,
365,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
67,
4181,
16,
4448,
16,
1045,
67,
19231,
16,
6599,
67,
24801,
67,
644,
33,
7036,
16,
10341,
33,
7036,
16,
4086,
13832,
33,
7036,
4672,
365,
18,
8... | |
login = account = password = None | login = '' account = password = None | # Look for a machine, default, or macdef top-level keyword | b34ef94d460ec0dcf8bdd12da8834bf097f826f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b34ef94d460ec0dcf8bdd12da8834bf097f826f6/netrc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
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,
468,
10176,
364,
279,
5228,
16,
805,
16,
578,
5318,
536,
1760,
17,
2815,
4932,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
... form={'field.foo': u'<h1>&copy;</h1>'}) | ... form={'field.foo': u'<h1>©</h1>'}) | >>> def normalize(s): | 2005e00d7910b62d32c087ca76cf1b24a20f990c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9530/2005e00d7910b62d32c087ca76cf1b24a20f990c/textwidgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3883,
12,
87,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
3883,
12,
87,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
sage: p = Tableau([[1, 4, 7], [2, 5], [3], [6]]) sage: q = Tableau([[1, 2, 5], [3, 6], [4], [7]]) | sage: p = [[1, 4, 7], [2, 5], [3], [6]] sage: q = [[1, 2, 5], [3, 6], [4], [7]] sage: P = Tableau(p) sage: Q = Tableau(q) | def Permutation(l): """ Converts l to a permutation. INPUT: - an instance of Permutation_class, - list of integers, viewed as one-line permutation notation, - string, expressing the permutation in cycle notation, - list of tuples of integers, the permutation in cycle notation. - a PermutationGroupElement -... | bb47ab2a2c4bd9a71263ccdcacccf181a1408806 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/bb47ab2a2c4bd9a71263ccdcacccf181a1408806/permutation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
12,
80,
4672,
3536,
20377,
328,
358,
279,
17440,
18,
225,
12943,
30,
282,
300,
225,
392,
791,
434,
13813,
9245,
67,
1106,
16,
225,
300,
225,
666,
434,
12321,
16,
1476,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13813,
9245,
12,
80,
4672,
3536,
20377,
328,
358,
279,
17440,
18,
225,
12943,
30,
282,
300,
225,
392,
791,
434,
13813,
9245,
67,
1106,
16,
225,
300,
225,
666,
434,
12321,
16,
1476,
329... |
zip.writestr(os.path.join(parent_path, filename), f) | full_path = os.path.join(parent_path, filename) try: full_path = full_path.encode('ascii') except: try: full_path = full_path.decode('utf-8').encode('ascii') except: pass zip.writestr(full_path, f) | def get(self, obj, field, context=None, zip=None, parent_path=''): """ """ f = obj.Schema().getField(field).get(obj) if not f : return '' else: filename = f.filename if zip is not None: #logger.error(obj.Schema().getField(field).getType()) if obj.Schema().getField(field).getType() in \ ("plone.app.blob.subtypes.file.Ex... | 7405b193fcff1eee7ce5c52a04579d29315bcb33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11226/7405b193fcff1eee7ce5c52a04579d29315bcb33/file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1081,
16,
652,
16,
819,
33,
7036,
16,
3144,
33,
7036,
16,
982,
67,
803,
2218,
11,
4672,
3536,
3536,
284,
273,
1081,
18,
3078,
7675,
588,
974,
12,
1518,
2934,
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,
336,
12,
2890,
16,
1081,
16,
652,
16,
819,
33,
7036,
16,
3144,
33,
7036,
16,
982,
67,
803,
2218,
11,
4672,
3536,
3536,
284,
273,
1081,
18,
3078,
7675,
588,
974,
12,
1518,
2934,
588,
... |
upper = string.upper | def __init__(self, environ): UserDict.UserDict.__init__(self) data = self.data upper = string.upper for k, v in environ.items(): data[upper(k)] = v | 1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
4672,
2177,
5014,
18,
1299,
5014,
16186,
2738,
972,
12,
2890,
13,
501,
273,
365,
18,
892,
364,
417,
16,
331,
316,
5473,
18,
3319,
13332,
501,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
4672,
2177,
5014,
18,
1299,
5014,
16186,
2738,
972,
12,
2890,
13,
501,
273,
365,
18,
892,
364,
417,
16,
331,
316,
5473,
18,
3319,
13332,
501,
63,
... | |
match_literal = re_literal.match (term) match_field = re_field.match (term) if match_literal: push (literal_generator (match_literal)) elif match_field: push (field_generator (match_field)) else: proc = compile_procedure (term) if proc: func = proc['func'] nargs = proc['nargs'] if (len (vals) < nargs): spec_die ("proce... | re_choose ([(re_literal, handle_literal), (re_field, handle_field), (None, handle_procedure)], term) | def pop (n=1): vv = vals[0:n] del vals[0:n] return vv | 3e14bb7d7160914c0dda910d1cfa09a05915f488 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/3e14bb7d7160914c0dda910d1cfa09a05915f488/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
261,
82,
33,
21,
4672,
13405,
273,
5773,
63,
20,
30,
82,
65,
1464,
5773,
63,
20,
30,
82,
65,
327,
13405,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
261,
82,
33,
21,
4672,
13405,
273,
5773,
63,
20,
30,
82,
65,
1464,
5773,
63,
20,
30,
82,
65,
327,
13405,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
missing_refs = [(key, value) for key, value in item.iteritems() if isinstance(value,basestring) and value.startswith('*')] self.log_error(sys.exc_info()[2], data, klass, item) if missing_refs: log.error('*'*80) log.error('It is very possible you are missing a reference, or require a "flush:" between blocks to store the... | if hasattr(item, 'iteritems'): missing_refs = [(key, value) for key, value in item.iteritems() if isinstance(value,basestring) and value.startswith('*')] self.log_error(e, data, klass, item) if missing_refs: log.error('*'*80) log.error('It is very possible you are missing a reference, or require a "flush:" between bloc... | def from_list(self, session, data): """ extract data from a list of groups in the form: [ { #start of the first grouping ObjectName:[ #start of objects of type ObjectName {'attribute':'value', 'attribute':'value' ... more attributes}, {'attribute':'value', 'attribute':'value' ... more attributes}, ... } ] ObjectName: ... | b8c5d226004179f266b64de11d011dcf37f7c357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5449/b8c5d226004179f266b64de11d011dcf37f7c357/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
1098,
12,
2890,
16,
1339,
16,
501,
4672,
3536,
2608,
501,
628,
279,
666,
434,
3252,
316,
326,
646,
30,
225,
306,
288,
468,
1937,
434,
326,
1122,
12116,
21013,
30,
63,
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,
628,
67,
1098,
12,
2890,
16,
1339,
16,
501,
4672,
3536,
2608,
501,
628,
279,
666,
434,
3252,
316,
326,
646,
30,
225,
306,
288,
468,
1937,
434,
326,
1122,
12116,
21013,
30,
63,
468,
1... |
if not isinstance(prec, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(prec, (int, long)): prec = Integer(prec) if not isinstance(halt, (int, long, Integer)): raise TypeError, "prec must be an integer" elif isinstance(halt, (int, long)): halt = Integer(halt) | def Qp(p, prec = 20, type = 'capped-rel', print_mode = None, halt = 40, names = None, check = True): """ A creation function for p-adic fields. INPUT: p -- integer: the p in Q_p prec -- integer (default: 20) the precision cap of the field. Individual elements keep track of their own precision. type -- string (default... | 3d6a2f6640c9f91d771a4d25cd85172364acd9a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3d6a2f6640c9f91d771a4d25cd85172364acd9a1/factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2238,
84,
12,
84,
16,
13382,
273,
4200,
16,
618,
273,
296,
5909,
1845,
17,
2878,
2187,
1172,
67,
3188,
273,
599,
16,
18389,
273,
8063,
16,
1257,
273,
599,
16,
866,
273,
1053,
4672,
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,
2238,
84,
12,
84,
16,
13382,
273,
4200,
16,
618,
273,
296,
5909,
1845,
17,
2878,
2187,
1172,
67,
3188,
273,
599,
16,
18389,
273,
8063,
16,
1257,
273,
599,
16,
866,
273,
1053,
4672,
3... | |
AddPoint = context.application.plugins.get_action("AddPoint") self.assert_(AddPoint.analyze_selection()) AddPoint() context.application.model.universe.children[-1].transformation.t = numpy.random.uniform(-5, 5, 3) | Point = context.application.plugins.get_node("Point") point = Point(transformation=Translation(numpy.random.uniform(-5, 5, 3))) context.application.model.universe.add(point) | def fn(): FileNew = context.application.plugins.get_action("FileNew") FileNew() | 7a04879924e3f3d84878d3f180ce82b923f67939 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11052/7a04879924e3f3d84878d3f180ce82b923f67939/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
13332,
1387,
1908,
273,
819,
18,
3685,
18,
8057,
18,
588,
67,
1128,
2932,
812,
1908,
7923,
1387,
1908,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2295,
13332,
1387,
1908,
273,
819,
18,
3685,
18,
8057,
18,
588,
67,
1128,
2932,
812,
1908,
7923,
1387,
1908,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
old_node = repos.get_node(base_path or path, base_rev) new_node = repos.get_node(path, chgset.rev) | if change is Changeset.ADD: old_node = None else: old_node = repos.get_node(base_path or path, base_rev) if change is Changeset.DELETE: new_node = None else: new_node = repos.get_node(path, chgset.rev) | def render_diff(self, req, repos, chgset, diff_options): """Raw Unified Diff version""" req.send_response(200) req.send_header('Content-Type', 'text/plain;charset=utf-8') req.send_header('Content-Disposition', 'filename=Changeset%s.diff' % req.args.get('rev')) req.end_headers() | 398635c4cfc9e6edb00c3397a70ab8f227d434aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/398635c4cfc9e6edb00c3397a70ab8f227d434aa/Changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
5413,
12,
2890,
16,
1111,
16,
13686,
16,
462,
75,
542,
16,
3122,
67,
2116,
4672,
3536,
4809,
1351,
939,
13008,
1177,
8395,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
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,
1743,
67,
5413,
12,
2890,
16,
1111,
16,
13686,
16,
462,
75,
542,
16,
3122,
67,
2116,
4672,
3536,
4809,
1351,
939,
13008,
1177,
8395,
1111,
18,
4661,
67,
2740,
12,
6976,
13,
1111,
18,
... |
self.__result.append(CallException(callinfo, e)) | self.result.append(CallException(callinfo, e)) | def __call__(self, *args, **kwargs): callinfo = CallInfo(self.__name, self.__func, args, kwargs) self.__result.append(CallBegin(callinfo)) | d468f6dcc073ac80504ccc266b13ca3f918d86e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d468f6dcc073ac80504ccc266b13ca3f918d86e4/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
745,
1376,
273,
3049,
966,
12,
2890,
16186,
529,
16,
365,
16186,
644,
16,
833,
16,
1205,
13,
365,
16186,
2088,
18,
6923,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
745,
1376,
273,
3049,
966,
12,
2890,
16186,
529,
16,
365,
16186,
644,
16,
833,
16,
1205,
13,
365,
16186,
2088,
18,
6923,... |
l = [nodeid, date, user, action, export_data] | params = export_data l = [nodeid, date, user, action, params] | def export_journals(self): '''Export a class's journal - generate a list of lists of CSV-able data: | d8b2e95ca9878f1f8e0fa0917b6102d24246fea6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/d8b2e95ca9878f1f8e0fa0917b6102d24246fea6/back_anydbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
78,
6561,
1031,
12,
2890,
4672,
9163,
6144,
279,
667,
1807,
13001,
300,
2103,
279,
666,
434,
6035,
434,
10381,
17,
429,
501,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
78,
6561,
1031,
12,
2890,
4672,
9163,
6144,
279,
667,
1807,
13001,
300,
2103,
279,
666,
434,
6035,
434,
10381,
17,
429,
501,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def A(x, m, n): return op * x def AT(x, m, n): return op.T * x | def A(x, m, n): return op * x | de1a58547a1b6b099a77ae558d50869fb6198306 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12843/de1a58547a1b6b099a77ae558d50869fb6198306/iterative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
432,
12,
92,
16,
312,
16,
290,
4672,
327,
1061,
380,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
432,
12,
92,
16,
312,
16,
290,
4672,
327,
1061,
380,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
return tuple(x/dim_prod % dims) | return tuple(x//dim_prod % dims) | def unravel_index(x,dims): """ Convert a flat index to an index tuple for an array of given shape. Parameters ---------- x : int Flattened index. dims : tuple of ints Input shape, the shape of an array into which indexing is required. Returns ------- idx : tuple of ints Tuple of the same shape as `dims`, containing t... | e8a7df65457531e986a65483ffe79c98c7e811a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/e8a7df65457531e986a65483ffe79c98c7e811a8/index_tricks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
354,
941,
67,
1615,
12,
92,
16,
8550,
4672,
3536,
4037,
279,
3569,
770,
358,
392,
770,
3193,
364,
392,
526,
434,
864,
2179,
18,
225,
7012,
12181,
619,
294,
509,
24226,
329,
770,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
354,
941,
67,
1615,
12,
92,
16,
8550,
4672,
3536,
4037,
279,
3569,
770,
358,
392,
770,
3193,
364,
392,
526,
434,
864,
2179,
18,
225,
7012,
12181,
619,
294,
509,
24226,
329,
770,
... |
s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L | if "latex" in self._input[n]: s+= "\\begin{verbatim}%s\\end{verbatim}" %L else: s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L | def _get_output(self, n): s = '' self._after_output = True if self._in_verbatim: s += '\\end{verbatim}\n' self._in_verbatim = False L = latex.latex(self._output[n]) s += '\n\\begin{center}$\\displaystyle %s $\\end{center}\n'%L return s | 88c21ab18e6327f137093dec53417bbc774b09b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/88c21ab18e6327f137093dec53417bbc774b09b9/log.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2844,
12,
2890,
16,
290,
4672,
272,
273,
875,
365,
6315,
5205,
67,
2844,
273,
1053,
309,
365,
6315,
267,
67,
16629,
22204,
30,
272,
1011,
3718,
409,
95,
16629,
22204,
628... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2844,
12,
2890,
16,
290,
4672,
272,
273,
875,
365,
6315,
5205,
67,
2844,
273,
1053,
309,
365,
6315,
267,
67,
16629,
22204,
30,
272,
1011,
3718,
409,
95,
16629,
22204,
628... |
body = self.merge_message(cr, uid, str(action.message), action, context) | body = self.merge_message(cr, uid, action.message, action, context) | def run(self, cr, uid, ids, context={}): logger = netsvc.Logger() act_ids = [] for action in self.browse(cr, uid, ids, context): obj_pool = self.pool.get(action.model_id.model) obj = obj_pool.browse(cr, uid, context['active_id'], context=context) cxt = { 'context':context, 'object': obj, 'time':time, 'cr': cr, 'pool'... | b1196cdc4269dae3e902a0f7216ee3514c7c4264 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/b1196cdc4269dae3e902a0f7216ee3514c7c4264/serveraction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
225,
1328,
67,
2232,
273,
5378,
225,
364,
1301,
316,
365,
18,
25731,
12,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
1194,
273,
21954,
4227,
18,
3328,
1435,
225,
1328,
67,
2232,
273,
5378,
225,
364,
1301,
316,
365,
18,
25731,
12,
335... |
format = '\n<span style="font-family: monospace"> %s</span>' | format = '\n<span style="font-family: monospace"> %s</span>' | def lines(m): format = '\n%s' if m.group(1).startswith('|'): format = '\n<span style="font-family: monospace"> %s</span>' elif m.group(1).startswith('>'): format = '\n<span style="font-family: monospace">%s</span>' return format % m.group(1) | e5e3b49d100c236fd7843346d5c64dfd2cd3fbf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12705/e5e3b49d100c236fd7843346d5c64dfd2cd3fbf8/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2362,
12,
81,
4672,
740,
273,
2337,
82,
9,
87,
11,
309,
312,
18,
1655,
12,
21,
2934,
17514,
1918,
2668,
16637,
4672,
740,
273,
2337,
82,
32,
3969,
2154,
1546,
5776,
17,
9309,
30,
692... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2362,
12,
81,
4672,
740,
273,
2337,
82,
9,
87,
11,
309,
312,
18,
1655,
12,
21,
2934,
17514,
1918,
2668,
16637,
4672,
740,
273,
2337,
82,
32,
3969,
2154,
1546,
5776,
17,
9309,
30,
692... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.