rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if param.find('OAuth realm') > -1: | if param.find('realm') > -1: | def _split_header(header): params = {} parts = header.split(',') for param in parts: # ignore realm parameter if param.find('OAuth realm') > -1: continue # remove whitespace param = param.strip() # split key-value param_parts = param.split('=', 1) # remove quotes and unescape the value params[param_parts[0]] = urllib.u... | ff460c3e2d115f6d30dd6256089390c7a895bf80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5393/ff460c3e2d115f6d30dd6256089390c7a895bf80/oauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4939,
67,
3374,
12,
3374,
4672,
859,
273,
2618,
2140,
273,
1446,
18,
4939,
12,
2187,
6134,
364,
579,
316,
2140,
30,
468,
2305,
11319,
1569,
309,
579,
18,
4720,
2668,
24056,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4939,
67,
3374,
12,
3374,
4672,
859,
273,
2618,
2140,
273,
1446,
18,
4939,
12,
2187,
6134,
364,
579,
316,
2140,
30,
468,
2305,
11319,
1569,
309,
579,
18,
4720,
2668,
24056,
6134,
... |
dbData[pref].update( pilotsToAccount[pref] ) | print "Updating\n\t%s\n\t%s" % ( dbData[pref], pilotsToAccount[pref] ) dbData[pref].update( pilotsToAccount[pref] ) | def accountPilots( self, pilotsToAccount, parentsToUpdate, connection ): | 0acad4f30459f7f8dc39fb88ef429c9a6fe11b6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0acad4f30459f7f8dc39fb88ef429c9a6fe11b6c/PilotStatusAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2236,
52,
330,
6968,
12,
365,
16,
24970,
6968,
774,
3032,
16,
6298,
21267,
16,
1459,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2236,
52,
330,
6968,
12,
365,
16,
24970,
6968,
774,
3032,
16,
6298,
21267,
16,
1459,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return self.accessible_views[strippedID] | return self.accessibleViews[strippedID] | def GetAccessibleViews(self, jabberID): strippedID = jabberID.getStripped() if self.accessibleViews.has_key(strippedID): return self.accessible_views[strippedID] | 60aa9aa211cac0941cc271415a00ce1fe66a023f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/60aa9aa211cac0941cc271415a00ce1fe66a023f/ChandlerJabber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
10451,
9959,
12,
2890,
16,
525,
378,
744,
734,
4672,
13300,
734,
273,
525,
378,
744,
734,
18,
588,
16632,
1845,
1435,
309,
365,
18,
26037,
9959,
18,
5332,
67,
856,
12,
6406,
1845,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
10451,
9959,
12,
2890,
16,
525,
378,
744,
734,
4672,
13300,
734,
273,
525,
378,
744,
734,
18,
588,
16632,
1845,
1435,
309,
365,
18,
26037,
9959,
18,
5332,
67,
856,
12,
6406,
1845,... |
def setup_class(cls): | def setup_class(self): | def setup_class(cls): """ Stuff that should be run to init the state of this test class | 6b5ae3c9fe3954ac145eafe2c7307c346e139cbb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/6b5ae3c9fe3954ac145eafe2c7307c346e139cbb/_test_template.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1106,
12,
2890,
4672,
3536,
934,
3809,
716,
1410,
506,
1086,
358,
1208,
326,
919,
434,
333,
1842,
667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1106,
12,
2890,
4672,
3536,
934,
3809,
716,
1410,
506,
1086,
358,
1208,
326,
919,
434,
333,
1842,
667,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
added.append(patchname) | self.added.append(patchname) | def checkfile(patchname): if not force and os.path.exists(self.join(patchname)): raise util.Abort(_('patch "%s" already exists') % patchname) | b97b191a89bbc877ff65aa523408bf6d8e4324af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/b97b191a89bbc877ff65aa523408bf6d8e4324af/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
768,
12,
2272,
529,
4672,
309,
486,
2944,
471,
1140,
18,
803,
18,
1808,
12,
2890,
18,
5701,
12,
2272,
529,
3719,
30,
1002,
1709,
18,
13572,
24899,
2668,
2272,
2213,
87,
6,
1818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
768,
12,
2272,
529,
4672,
309,
486,
2944,
471,
1140,
18,
803,
18,
1808,
12,
2890,
18,
5701,
12,
2272,
529,
3719,
30,
1002,
1709,
18,
13572,
24899,
2668,
2272,
2213,
87,
6,
1818,
... |
return _BindParamClause(key.name, value, type_=key.type, unique=unique, required=required) | return _BindParamClause(key.name, value, type_=key.type, unique=unique, required=required) | def bindparam(key, value=None, type_=None, unique=False, required=False): """Create a bind parameter clause with the given key. value a default value for this bind parameter. a bindparam with a value is called a ``value-based bindparam``. type\_ a sqlalchemy.types.TypeEngine object indicating the type of this bind p... | 0b93f88d2c199737f8d1202bb95240fed122b531 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/0b93f88d2c199737f8d1202bb95240fed122b531/expression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
891,
12,
856,
16,
460,
33,
7036,
16,
618,
67,
33,
7036,
16,
3089,
33,
8381,
16,
1931,
33,
8381,
4672,
3536,
1684,
279,
1993,
1569,
6591,
598,
326,
864,
498,
18,
225,
460,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
891,
12,
856,
16,
460,
33,
7036,
16,
618,
67,
33,
7036,
16,
3089,
33,
8381,
16,
1931,
33,
8381,
4672,
3536,
1684,
279,
1993,
1569,
6591,
598,
326,
864,
498,
18,
225,
460,
279,
... |
Return a string with new line or empty string if their is no data. | Return a string with new line or None if their is no data. | def readline(self, timeout=0, stream="stdout"): """ Read one line from specified stream ('stdout' by default). | 8a6b32d2e2273f0015183fe2e5ab021bb0826317 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/8a6b32d2e2273f0015183fe2e5ab021bb0826317/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
2021,
33,
20,
16,
1407,
1546,
10283,
6,
4672,
3536,
2720,
1245,
980,
628,
1269,
1407,
7707,
10283,
11,
635,
805,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
2021,
33,
20,
16,
1407,
1546,
10283,
6,
4672,
3536,
2720,
1245,
980,
628,
1269,
1407,
7707,
10283,
11,
635,
805,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
m = '%s (%s) Processing spool' %\ (self.getProperty('title', ''), self.getId()) | m = 'processSpool: %s (%s)' % (self.getProperty('title', ''), self.getId()) | def processSpool(self): # # run through the spool, and actually send the mail out # m = '%s (%s) Processing spool' %\ (self.getProperty('title', ''), self.getId()) log.info(m) archive = self.restrictedTraverse(self.getValueFor('storage')) for spoolfilepath in os.listdir(MAILDROP_SPOOL): if os.path.exists(os.path.join(... | 9e9bc1cf28d7cce305bbf98dc16d65ba16f21ef5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/9e9bc1cf28d7cce305bbf98dc16d65ba16f21ef5/XWFMailingList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3389,
1371,
12,
2890,
4672,
468,
468,
1086,
3059,
326,
1694,
1371,
16,
471,
6013,
1366,
326,
4791,
596,
468,
312,
273,
296,
2567,
3389,
1371,
30,
738,
87,
6142,
87,
2506,
738,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
3389,
1371,
12,
2890,
4672,
468,
468,
1086,
3059,
326,
1694,
1371,
16,
471,
6013,
1366,
326,
4791,
596,
468,
312,
273,
296,
2567,
3389,
1371,
30,
738,
87,
6142,
87,
2506,
738,
26... |
def atomFindPositionPossibilities(self): | def atomFindPositionPossibilities(self): | def atomFindPositionPossibilities(self): self.atomEnableTabElements(False) self.possibleAtomsList = [] #self.parentWidget()=>CAlphaSequenceWidget, self.parentWidget().parentWidget() => CAlphaSequenceDock skeletonViewer = self.parentWidget().parentWidget().app.viewers['skeleton'] meshRenderer = skeletonViewer.renderer r... | fa260d49d5d1cf3bc2121cd1959ad051189eb136 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4399/fa260d49d5d1cf3bc2121cd1959ad051189eb136/calpha_structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
3125,
2555,
1616,
24074,
12,
2890,
4672,
365,
18,
7466,
8317,
5661,
3471,
12,
8381,
13,
365,
18,
12708,
14280,
682,
273,
5378,
468,
2890,
18,
2938,
4609,
1435,
9207,
39,
9690,
4021... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3179,
3125,
2555,
1616,
24074,
12,
2890,
4672,
365,
18,
7466,
8317,
5661,
3471,
12,
8381,
13,
365,
18,
12708,
14280,
682,
273,
5378,
468,
2890,
18,
2938,
4609,
1435,
9207,
39,
9690,
4021... |
self.list_win.resize(rows+2, w) | self.list_win.resize(rows +2, w) | def lsize(): wl = max(len(i) for i in v_items) + 1 if not wl: wl = 1 cols = ((max_w - 2) / wl) or 1 rows = len(v_items) / cols | 45530450e8be1c5bbe96c698a7c28cf18212784a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/45530450e8be1c5bbe96c698a7c28cf18212784a/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1467,
13332,
19564,
273,
943,
12,
1897,
12,
77,
13,
364,
277,
316,
331,
67,
3319,
13,
397,
404,
309,
486,
19564,
30,
19564,
273,
404,
5347,
273,
14015,
1896,
67,
91,
300,
576,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1467,
13332,
19564,
273,
943,
12,
1897,
12,
77,
13,
364,
277,
316,
331,
67,
3319,
13,
397,
404,
309,
486,
19564,
30,
19564,
273,
404,
5347,
273,
14015,
1896,
67,
91,
300,
576,
1... |
D = b*b - 4*a*c d = D.numer().squarefree_part() * D.denom().squarefree_part() if d % 4 != 1: d *= 4 self._NumberField_generic__disc = d parts = -b/(2*a), (D/d).sqrt()/(2*a) | Dpoly = b*b - 4*a*c D = Dpoly.numer() * Dpoly.denom() for p in sage.rings.arith.primes(100): p2 = p*p while D % p2 == 0: D //= p2 self._D = D parts = -b/(2*a), (Dpoly/D).sqrt()/(2*a) | def __init__(self, polynomial, name=None, check=True): """ Create a quadratic number field. | 56984c15e306bd2aa0a7f354dd74200414d0e82c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/56984c15e306bd2aa0a7f354dd74200414d0e82c/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16991,
16,
508,
33,
7036,
16,
866,
33,
5510,
4672,
3536,
1788,
279,
26146,
1300,
652,
18,
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,
2738,
972,
12,
2890,
16,
16991,
16,
508,
33,
7036,
16,
866,
33,
5510,
4672,
3536,
1788,
279,
26146,
1300,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class HTTPException(Response, Exception): | class HTTPException(Exception, Response): | def strip_tags(value): value = value.replace('\n', ' ') value = value.replace('\r', '') value = br_re.sub('\n', value) value = comment_re.sub('', value) value = tag_re.sub('', value) return value | ef464b0651e6660d613be3c501b7d451bb2e3a2a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/ef464b0651e6660d613be3c501b7d451bb2e3a2a/exc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
4156,
12,
1132,
4672,
460,
273,
460,
18,
2079,
2668,
64,
82,
2187,
296,
8624,
460,
273,
460,
18,
2079,
2668,
64,
86,
2187,
28707,
460,
273,
5186,
67,
266,
18,
1717,
2668,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
4156,
12,
1132,
4672,
460,
273,
460,
18,
2079,
2668,
64,
82,
2187,
296,
8624,
460,
273,
460,
18,
2079,
2668,
64,
86,
2187,
28707,
460,
273,
5186,
67,
266,
18,
1717,
2668,
6... |
self._playback_event_db.add_event(self._playback_key, "resume", "system") | if self._playback_event_db: self._playback_event_db.add_event(self._playback_key, "resume", "system") | def resume( self ): """ Resume paused playback. """ self._playback_event_db.add_event(self._playback_key, "resume", "system") | b5e90d0f89e924a6cefcd967ce8e1e4f198dc1ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/b5e90d0f89e924a6cefcd967ce8e1e4f198dc1ad/VideoOnDemand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
12,
365,
262,
30,
3536,
1124,
2066,
17781,
26335,
18,
3536,
365,
6315,
1601,
823,
67,
2575,
67,
1966,
18,
1289,
67,
2575,
12,
2890,
6315,
1601,
823,
67,
856,
16,
315,
25158,
311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10774,
12,
365,
262,
30,
3536,
1124,
2066,
17781,
26335,
18,
3536,
365,
6315,
1601,
823,
67,
2575,
67,
1966,
18,
1289,
67,
2575,
12,
2890,
6315,
1601,
823,
67,
856,
16,
315,
25158,
311... |
if key == 'Mythical' | if key == 'Mythical': | def summarize(self): charlevel = int(self.CharLevel.text()) tot = {} tot['Cost'] = 0 tot['Price'] = 0 tot['Utility'] = 0.0 tot['Stats'] = {} tot['Resists'] = {} tot['Skills'] = {} tot['Focus'] = {} tot['OtherBonuses'] = {} tot['PvEBonuses'] = {} for effect in DropLists['All']['Stat'] + ('AF', '% Power Pool'): tot['Stat... | fb7e2dea77ecbd907b4a380dbbfcb41d751f5149 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/fb7e2dea77ecbd907b4a380dbbfcb41d751f5149/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28712,
12,
2890,
4672,
1149,
2815,
273,
509,
12,
2890,
18,
2156,
2355,
18,
955,
10756,
9997,
273,
2618,
9997,
3292,
8018,
3546,
273,
374,
9997,
3292,
5147,
3546,
273,
374,
9997,
3292,
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,
28712,
12,
2890,
4672,
1149,
2815,
273,
509,
12,
2890,
18,
2156,
2355,
18,
955,
10756,
9997,
273,
2618,
9997,
3292,
8018,
3546,
273,
374,
9997,
3292,
5147,
3546,
273,
374,
9997,
3292,
64... |
tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint/', '')) | tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint', '')) | def tester(fn, wantResult): fn = string.replace(fn, "\\", "\\\\") gotResult = eval(fn) if wantResult != gotResult: print "error!" print "evaluated: " + str(fn) print "should be: " + str(wantResult) print " returned: " + str(gotResult) print "" global errors errors = errors + 1 | 630a9a68941205a7ebb8428fe4faeef82429d77d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/630a9a68941205a7ebb8428fe4faeef82429d77d/test_ntpath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
7654,
12,
4293,
16,
2545,
1253,
4672,
2295,
273,
533,
18,
2079,
12,
4293,
16,
14520,
16,
28040,
2412,
13,
2363,
1253,
273,
5302,
12,
4293,
13,
309,
2545,
1253,
480,
2363,
1253,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
7654,
12,
4293,
16,
2545,
1253,
4672,
2295,
273,
533,
18,
2079,
12,
4293,
16,
14520,
16,
28040,
2412,
13,
2363,
1253,
273,
5302,
12,
4293,
13,
309,
2545,
1253,
480,
2363,
1253,
30... |
return "[+ FOR script +]" + under_conditional(each_platform(lambda p: script(p))) + "[+ ENDFOR +]" | return "[+ FOR script +]" + each_platform( lambda p: under_platform_specific_conditionals(p, script(p))) + "[+ ENDFOR +]" | def script_rules(): return "[+ FOR script +]" + under_conditional(each_platform(lambda p: script(p))) + "[+ ENDFOR +]" | c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
7482,
13332,
327,
5158,
15,
12108,
2728,
397,
4279,
397,
1517,
67,
9898,
12,
3195,
293,
30,
3613,
67,
9898,
67,
12524,
67,
4175,
1031,
12,
84,
16,
2728,
12,
84,
20349,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2728,
67,
7482,
13332,
327,
5158,
15,
12108,
2728,
397,
4279,
397,
1517,
67,
9898,
12,
3195,
293,
30,
3613,
67,
9898,
67,
12524,
67,
4175,
1031,
12,
84,
16,
2728,
12,
84,
20349,
397,
... |
if not os.isatty(slave_fd) and sys.platform not in fickle_isatty: | if not os.isatty(slave_fd): | def test_basic_pty(): try: debug("Calling master_open()") master_fd, slave_name = pty.master_open() debug("Got master_fd '%d', slave_name '%s'"%(master_fd, slave_name)) debug("Calling slave_open(%r)"%(slave_name,)) slave_fd = pty.slave_open(slave_name) debug("Got slave_fd '%d'"%slave_fd) except OSError: # " An optional... | 6dbff33be848ed875f3769be6b866438b099aa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6dbff33be848ed875f3769be6b866438b099aa3a/test_pty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
67,
825,
13332,
775,
30,
1198,
2932,
19677,
4171,
67,
3190,
1435,
7923,
4171,
67,
8313,
16,
11735,
67,
529,
273,
293,
4098,
18,
7525,
67,
3190,
1435,
1198,
2932,
15617,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
13240,
67,
825,
13332,
775,
30,
1198,
2932,
19677,
4171,
67,
3190,
1435,
7923,
4171,
67,
8313,
16,
11735,
67,
529,
273,
293,
4098,
18,
7525,
67,
3190,
1435,
1198,
2932,
15617,
... |
if left._base != right._base: | if left.base() != right.base(): | def __and__(left, right): """ Intersect two relative orders or a relative and absolute order (which always results in an absolute order). """ if isinstance(left, AbsoluteOrder): return left & right._absolute_order elif isinstance(right, AbsoluteOrder): return left._absolute_order & right elif isinstance(left, RelativeO... | f172d9471945cdcd52c89a4a5d8c2e411a8c4d13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f172d9471945cdcd52c89a4a5d8c2e411a8c4d13/order.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
464,
972,
12,
4482,
16,
2145,
4672,
3536,
5294,
5709,
2795,
3632,
11077,
578,
279,
3632,
471,
4967,
1353,
261,
12784,
3712,
1686,
316,
392,
4967,
1353,
2934,
3536,
309,
1549,
12,
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,
1001,
464,
972,
12,
4482,
16,
2145,
4672,
3536,
5294,
5709,
2795,
3632,
11077,
578,
279,
3632,
471,
4967,
1353,
261,
12784,
3712,
1686,
316,
392,
4967,
1353,
2934,
3536,
309,
1549,
12,
4... |
def update_cond(self,with): """Short form for RPNParm.update(with,False) """ self.update(with,False) def update_by_dict(self,with): """[Deprecated] Equivalent to RPNParm.update(with) """ self.update(with) def update_by_dict_from(self,frm,with): | def update_cond(self,with1): """Short form for RPNParm.update(with1,False) """ self.update(with1,False) def update_by_dict(self,with1): """[Deprecated] Equivalent to RPNParm.update(with1) """ self.update(with1) def update_by_dict_from(self,frm,with1): | def update_cond(self,with): """Short form for RPNParm.update(with,False) """ self.update(with,False) | 6b17d2335b24a7bfa8604b7b2200391b65b108a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1808/6b17d2335b24a7bfa8604b7b2200391b65b108a4/rpn_helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
10013,
12,
2890,
16,
1918,
4672,
3536,
4897,
646,
364,
534,
15124,
27144,
18,
2725,
12,
1918,
16,
8381,
13,
3536,
365,
18,
2725,
12,
1918,
16,
8381,
13,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
10013,
12,
2890,
16,
1918,
4672,
3536,
4897,
646,
364,
534,
15124,
27144,
18,
2725,
12,
1918,
16,
8381,
13,
3536,
365,
18,
2725,
12,
1918,
16,
8381,
13,
2,
-100,
-100,
-100,
... |
if search_method == 'getNewsListing': list_results = results else: page_info, list_results = results objects = list_results[2] objects = [x[2] for x in objects] | objects = [x.getObject() for x in results[ int(form.get('ps_start', 0)):int(form.get('items', 10))]] | def search_rdf(self, REQUEST=None, **kwargs): """ """ search_mapping = RDF_SEARCH_MAPPING search_query_mapping = RDF_SEARCH_QUERY_MAPPING | 6d0cfb0cfbcce304604cb830535cf771a1cba157 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/6d0cfb0cfbcce304604cb830535cf771a1cba157/SEMIDESite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
19299,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
4333,
4672,
3536,
3536,
1623,
67,
6770,
273,
13539,
67,
17251,
67,
20450,
1623,
67,
2271,
67,
6770,
273,
13539,
67,
17251,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
19299,
12,
2890,
16,
12492,
33,
7036,
16,
2826,
4333,
4672,
3536,
3536,
1623,
67,
6770,
273,
13539,
67,
17251,
67,
20450,
1623,
67,
2271,
67,
6770,
273,
13539,
67,
17251,
67,
... |
print "Testing decrement 1 time ['{0}' : starting at {1} ] ...".format("Decr_Key", "4"), | print "Testing decrement 1 time ['{0}' : starting at {1} ]".format("Decr_Key", "4") print "Initialise at {0} ...".format("4"), | def decr(mc, expected, key, delta = 1): ret = mc.decr(key) if ret == expected: print "OK" else: print "FAIL: returned {0}".format(ret) | 2b9ec7ee551ff24c82f97484b7b1944ac629f82e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14175/2b9ec7ee551ff24c82f97484b7b1944ac629f82e/sample_python_memcached_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2109,
86,
12,
13952,
16,
2665,
16,
498,
16,
3622,
273,
404,
4672,
325,
273,
6108,
18,
323,
3353,
12,
856,
13,
309,
325,
422,
2665,
30,
1172,
315,
3141,
6,
469,
30,
1172,
315,
12319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2109,
86,
12,
13952,
16,
2665,
16,
498,
16,
3622,
273,
404,
4672,
325,
273,
6108,
18,
323,
3353,
12,
856,
13,
309,
325,
422,
2665,
30,
1172,
315,
3141,
6,
469,
30,
1172,
315,
12319,
... |
wikipedia.debugDump('ApiGetDataParse', site, str(error) + '\n%s\n%s' % (site.hostname(), path), jsontext) | def GetData(params, site = None, useAPI = True, retryCount = 5, encodeTitle = True, sysop = False, back_response = False): """Get data from the query api, and convert it into a data object """ if not site: site = wikipedia.getSite() for k,v in params.iteritems(): if not IsString(v): params[k] = unicode(v) params['for... | 63f4808e36df386c1a3a1998f15f389017297b16 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/63f4808e36df386c1a3a1998f15f389017297b16/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30837,
12,
2010,
16,
2834,
273,
599,
16,
999,
2557,
273,
1053,
16,
30084,
273,
1381,
16,
2017,
4247,
273,
1053,
16,
2589,
556,
273,
1083,
16,
1473,
67,
2740,
273,
1083,
4672,
3536,
967... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30837,
12,
2010,
16,
2834,
273,
599,
16,
999,
2557,
273,
1053,
16,
30084,
273,
1381,
16,
2017,
4247,
273,
1053,
16,
2589,
556,
273,
1083,
16,
1473,
67,
2740,
273,
1083,
4672,
3536,
967... | |
special_chars = [ '\"', '\`', '\\\\', '/','\'' ] | special_chars = [ '\"', '\`', '\\\\', '/','~' ] | def replace_special_char(self, string, repl='-'): # Regular Expression Special Chars = . ^ $ * + ? { [ ] \ | ( ) special_chars = [ '\"', '\`', '\\\\', '/','\'' ] """ special_chars = [ '~', '!', '@', '\\$', '%', \ '\\*', '\\|', ':', \ '\"', '\\?', '\`', '\\\\', \ ';', "\'", '/' ] """ # '~', '!', '@', '# ', '\\$', ... | 755d871b6c9f62923469f70da21017c5fc8d2cba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/755d871b6c9f62923469f70da21017c5fc8d2cba/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9371,
67,
3001,
12,
2890,
16,
533,
16,
6831,
2218,
6627,
4672,
468,
24544,
5371,
13409,
3703,
87,
273,
225,
263,
3602,
271,
380,
397,
692,
288,
306,
308,
521,
571,
261,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
9371,
67,
3001,
12,
2890,
16,
533,
16,
6831,
2218,
6627,
4672,
468,
24544,
5371,
13409,
3703,
87,
273,
225,
263,
3602,
271,
380,
397,
692,
288,
306,
308,
521,
571,
261,
262,
... |
raise ValueError("time data did not match format") | raise ValueError("time data did not match format: data=%s fmt=%s" % (data_string, format)) | def strptime(data_string, format="%a %b %d %H:%M:%S %Y"): """Return a time struct based on the input data and the format string.""" global _locale_cache global _regex_cache locale_time = _locale_cache.locale_time # If the language changes, caches are invalidated, so clear them if locale_time.lang != _getlang(): _locale... | 4a6302b6fe1a0acb85267677a9be2ee925cf8248 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4a6302b6fe1a0acb85267677a9be2ee925cf8248/_strptime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17572,
12,
892,
67,
1080,
16,
740,
11613,
69,
738,
70,
738,
72,
738,
44,
5319,
49,
5319,
55,
738,
61,
6,
4672,
3536,
990,
279,
813,
1958,
2511,
603,
326,
810,
501,
471,
326,
740,
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,
17572,
12,
892,
67,
1080,
16,
740,
11613,
69,
738,
70,
738,
72,
738,
44,
5319,
49,
5319,
55,
738,
61,
6,
4672,
3536,
990,
279,
813,
1958,
2511,
603,
326,
810,
501,
471,
326,
740,
5... |
str += ' <TD> <B><FONT SIZE="+1">'+\ '<A HREF="'+`uid.module()`+'.html">'+\ 'Module</A>'+\ '</FONT></B> </TD>\n' | str += I+'<TH CLASS="navbar"> '+\ '<A CLASS="navbar" HREF="'+`uid.module()`+'.html">'+\ 'Module</A> </TH>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') + \ '<TABLE BORDER="0" WIDTH="100%" '+\ 'CELLPADDING="0" BGCOLOR="WHITE" CELLSPACING="0">\n'+\ '<TR>\n<TD COLSPAN=2 BGCOLOR="#a0c0ff">\n'+\ '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING... | 07991a6224980123acb6be68dd2d39634e5ac591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/07991a6224980123acb6be68dd2d39634e5ac591/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
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,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
c = connection.execute(t, table_name=table.name, schema=current_schema) while True: row = c.fetchone() if row is None: break | c = connection.execute(t, table=table_oid) for row in c.fetchall(): | (SELECT substring(d.adsrc for 128) FROM pg_catalog.pg_attrdef d WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a.atthasdef) | 8d81a40589b22e121c61644ff79847726176bc1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/8d81a40589b22e121c61644ff79847726176bc1e/postgres.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
261,
4803,
3019,
12,
72,
18,
361,
4816,
364,
8038,
13,
4571,
7184,
67,
7199,
18,
8365,
67,
1747,
536,
302,
4852,
302,
18,
361,
2878,
350,
273,
279,
18,
4558,
2878,
350,
4116,
302,
18,
361,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
261,
4803,
3019,
12,
72,
18,
361,
4816,
364,
8038,
13,
4571,
7184,
67,
7199,
18,
8365,
67,
1747,
536,
302,
4852,
302,
18,
361,
2878,
350,
273,
279,
18,
4558,
2878,
350,
4116,
302,
18,
361,... |
var control_key_pressed = 0; | def notebook_lib(): s= r""" | 0fdc6452dd9c6e626d1bbbbc6f10e9baa1003ba2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0fdc6452dd9c6e626d1bbbbc6f10e9baa1003ba2/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
if field['type'] == 'select' or field['name'] == 'owner': | if field['type'] == 'select' and field['name'] != 'milestone' \ or field['name'] == 'owner': | def _render_view(self, req, db, milestone): req.hdf['title'] = 'Milestone %s' % milestone.name req.hdf['milestone.mode'] = 'view' | 64df00cea848352a86df55264aff45b9bf7378bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/64df00cea848352a86df55264aff45b9bf7378bc/Milestone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
28664,
4672,
1111,
18,
26428,
3292,
2649,
3546,
273,
296,
49,
18270,
738,
87,
11,
738,
28664,
18,
529,
1111,
18,
26428,
3292,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
28664,
4672,
1111,
18,
26428,
3292,
2649,
3546,
273,
296,
49,
18270,
738,
87,
11,
738,
28664,
18,
529,
1111,
18,
26428,
3292,
81,... |
if options.diagnostic: | if options.sysinfo: | def process_cmd_line(): """Parse the command line and execute given commands.""" # TRANSLATORS: This is the command line usage. Don't translate # %prog, but do translate usage, options, cleaner, and option. # More information about the command line is here # http://bleachbit.sourceforge.net/documentation/command-line ... | b79a4d529ba627a4a29b07327f9a20625dbb6661 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/b79a4d529ba627a4a29b07327f9a20625dbb6661/CLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4172,
67,
1369,
13332,
3536,
3201,
326,
1296,
980,
471,
1836,
864,
4364,
12123,
468,
14996,
4559,
3575,
55,
30,
1220,
353,
326,
1296,
980,
4084,
18,
225,
7615,
1404,
4204,
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,
1207,
67,
4172,
67,
1369,
13332,
3536,
3201,
326,
1296,
980,
471,
1836,
864,
4364,
12123,
468,
14996,
4559,
3575,
55,
30,
1220,
353,
326,
1296,
980,
4084,
18,
225,
7615,
1404,
4204,
468,... |
if hasattr(self, "fp"): del self.infp if hasattr(self, "outfp"): del self.outfp | if self.infp: self.infp.close() self.infp = None if self.outfp: self.outfp.close() self.outfp = None | def stopSendingAndReceiving(self): self.Done = 1 self.rtpListener.stopListening() self.rtcpListener.stopListening() if hasattr(self, "fp"): del self.infp if hasattr(self, "outfp"): del self.outfp | bb9c0b2f3df3403578e2de28d8b74fd768f2cc32 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/bb9c0b2f3df3403578e2de28d8b74fd768f2cc32/rtp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
16322,
1876,
4779,
9288,
12,
2890,
4672,
365,
18,
7387,
273,
404,
365,
18,
3797,
84,
2223,
18,
5681,
31594,
1435,
365,
18,
3797,
4057,
2223,
18,
5681,
31594,
1435,
309,
3859,
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,
2132,
16322,
1876,
4779,
9288,
12,
2890,
4672,
365,
18,
7387,
273,
404,
365,
18,
3797,
84,
2223,
18,
5681,
31594,
1435,
365,
18,
3797,
4057,
2223,
18,
5681,
31594,
1435,
309,
3859,
12,
... |
class TextTestRunner: | class TextTestRunner(object): | def printErrorList(self, flavour, errors): for test, err in errors: self.stream.writeln(self.separator1) self.stream.writeln("%s: %s" % (flavour,self.getDescription(test))) self.stream.writeln(self.separator2) self.stream.writeln("%s" % err) | dae1a6a4889a67d29c7e1638472625cc4ca3cdf3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dae1a6a4889a67d29c7e1638472625cc4ca3cdf3/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
668,
682,
12,
2890,
16,
31227,
477,
16,
1334,
4672,
364,
1842,
16,
393,
316,
1334,
30,
365,
18,
3256,
18,
5363,
292,
82,
12,
2890,
18,
11287,
21,
13,
365,
18,
3256,
18,
5363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
668,
682,
12,
2890,
16,
31227,
477,
16,
1334,
4672,
364,
1842,
16,
393,
316,
1334,
30,
365,
18,
3256,
18,
5363,
292,
82,
12,
2890,
18,
11287,
21,
13,
365,
18,
3256,
18,
5363,
... |
logger.info("SIP server created") def sendto(self, s, con): | logger.info("SIP Session created") def send(self, s): | def __init__(self): connection.__init__(self, 'udp') | d995da2606eccd46f73ea5846930ead736911f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/d995da2606eccd46f73ea5846930ead736911f1a/sip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1459,
16186,
2738,
972,
12,
2890,
16,
296,
26029,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
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,
2738,
972,
12,
2890,
4672,
1459,
16186,
2738,
972,
12,
2890,
16,
296,
26029,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Utility function to create a list of information about a actor. | Utility function to create a list of information about an actor. | def getActorInfo(self): """ Utility function to create a list of information about a actor. Useful for iterating over details of an actor. """ lodInfo = [] for lodName in self.__animControlDict.keys(): partDict = self.__animControlDict[lodName] partInfo = [] for partName in partDict.keys(): partBundle = self.__partBund... | c001d11b96e7842151136f0236e8413f885b1655 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/c001d11b96e7842151136f0236e8413f885b1655/Actor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
17876,
966,
12,
2890,
4672,
3536,
13134,
445,
358,
752,
279,
666,
434,
1779,
2973,
392,
8327,
18,
19256,
364,
13099,
1879,
3189,
434,
392,
8327,
18,
3536,
328,
369,
966,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17876,
966,
12,
2890,
4672,
3536,
13134,
445,
358,
752,
279,
666,
434,
1779,
2973,
392,
8327,
18,
19256,
364,
13099,
1879,
3189,
434,
392,
8327,
18,
3536,
328,
369,
966,
273,
5378,
... |
tarFile.extractall(path=extracted.path) | for info in tarFile: tarFile.extract(info, path=extracted.path) | def test_twistedLayout(self): """ The Twisted tarball contains files that are in the top level of the source directory. """ rootDir = FilePath(self.mktemp()) rootDir.createDirectory() structure = {"README": "HI!@", "setup.py": "import this", "twisted": {"__init__.py": "import this"}} self.createStructure(rootDir, struc... | 81f90b7c6f8c293693aa0bff225cbfe8cb25bd8c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12595/81f90b7c6f8c293693aa0bff225cbfe8cb25bd8c/test_release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11246,
25444,
3744,
12,
2890,
4672,
3536,
1021,
12694,
25444,
29441,
1914,
1390,
716,
854,
316,
326,
1760,
1801,
434,
326,
1084,
1867,
18,
3536,
15393,
273,
24564,
12,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11246,
25444,
3744,
12,
2890,
4672,
3536,
1021,
12694,
25444,
29441,
1914,
1390,
716,
854,
316,
326,
1760,
1801,
434,
326,
1084,
1867,
18,
3536,
15393,
273,
24564,
12,
2890,
18,
... |
context = ContextHandler.openContext(self, widget, domain, encodedDomain) | context, isNew = ContextHandler.findOrCreateContext(self, widget, domain, encodedDomain) if not context: return None, False | def openContext(self, widget, domain): if not domain: return if type(domain) != orange.Domain: domain = domain.domain encodedDomain = self.encodeDomain(domain) context = ContextHandler.openContext(self, widget, domain, encodedDomain) context.encodedDomain = encodedDomain context.orderedDomain = [(attr.name, attr.varTyp... | 5782f02a6212390049929fec3fd22b858ce25d15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/5782f02a6212390049929fec3fd22b858ce25d15/OWBaseWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1042,
12,
2890,
16,
3604,
16,
2461,
4672,
309,
486,
2461,
30,
327,
309,
618,
12,
4308,
13,
480,
578,
726,
18,
3748,
30,
2461,
273,
2461,
18,
4308,
3749,
3748,
273,
365,
18,
301... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1042,
12,
2890,
16,
3604,
16,
2461,
4672,
309,
486,
2461,
30,
327,
309,
618,
12,
4308,
13,
480,
578,
726,
18,
3748,
30,
2461,
273,
2461,
18,
4308,
3749,
3748,
273,
365,
18,
301... |
modlist.append( ("memberUid", self.members) ) | modlist.append( ("memberUid", self.__unames_to_dn( self.members ) ) ) | def __save_new(self): modlist = [ ("objectClass", "posixGroup"), ("cn", self.name), ("gidNumber", str(self.gid)) ] | da8de2d9c5e00d2b86be593664eeea213dd8fd27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6170/da8de2d9c5e00d2b86be593664eeea213dd8fd27/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
67,
2704,
12,
2890,
4672,
681,
1098,
273,
306,
7566,
1612,
797,
3113,
315,
24463,
1114,
6,
3631,
7566,
10305,
3113,
365,
18,
529,
3631,
7566,
15780,
1854,
3113,
609,
12,
2890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
5688,
67,
2704,
12,
2890,
4672,
681,
1098,
273,
306,
7566,
1612,
797,
3113,
315,
24463,
1114,
6,
3631,
7566,
10305,
3113,
365,
18,
529,
3631,
7566,
15780,
1854,
3113,
609,
12,
2890... |
Complete._fields_ = [("a", c_int)] | Complete._fields_ = [("a", c_long)] | def test_endian_types(self): for tp, fmt, shape, itemtp in endian_types: ob = tp() v = memoryview(ob) try: self.failUnlessEqual(v.format, fmt) self.failUnlessEqual(v.size, sizeof(ob)) self.failUnlessEqual(v.itemsize, sizeof(itemtp)) self.failUnlessEqual(v.shape, shape) # ctypes object always have a non-strided memory b... | 5581745e27344be50ca76d77a402caad0258a5f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/5581745e27344be50ca76d77a402caad0258a5f6/test_pep3118.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22910,
67,
2352,
12,
2890,
4672,
364,
8071,
16,
1325,
16,
2179,
16,
761,
6834,
316,
14759,
67,
2352,
30,
3768,
273,
8071,
1435,
331,
273,
3778,
1945,
12,
947,
13,
775,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22910,
67,
2352,
12,
2890,
4672,
364,
8071,
16,
1325,
16,
2179,
16,
761,
6834,
316,
14759,
67,
2352,
30,
3768,
273,
8071,
1435,
331,
273,
3778,
1945,
12,
947,
13,
775,
30,
... |
try: wikipedia.output(u"%s%s" % (message, time_zone)) except UnicodeDecodeError: try: wikipedia.output(u"%s%s" % (message, time_zone.decode('utf-8'))) except UnicodeDecodeError: try: wikipedia.output(u"%s%s" % (message, time_zone.encode(wikipedia.getSite().encoding()))) except Exception, e: print e wikipedia.output(me... | if locale.getlocale()[1]: time_zone = unicode(time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime()), locale.getlocale()[1]) else: time_zone = unicode(time.strftime(u"%d %b %Y %H:%M:%S (UTC)", time.gmtime())) wikipedia.output(u"%s%s" % (message, time_zone)) | def printWithTimeZone(message): """ Function to print the messages followed by the TimeZone encoded correctly. """ if message[-1] != ' ': message = '%s ' % message time_zone = time.strftime("%d %b %Y %H:%M:%S (UTC)", time.localtime()) try: wikipedia.output(u"%s%s" % (message, time_zone)) except UnicodeDecodeError: try:... | 1de00e86f5c162a0783dfa0133935fc3b8d59f91 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/1de00e86f5c162a0783dfa0133935fc3b8d59f91/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1190,
16760,
12,
2150,
4672,
3536,
4284,
358,
1172,
326,
2743,
10860,
635,
326,
16491,
3749,
8783,
18,
3536,
309,
883,
18919,
21,
65,
480,
296,
4290,
883,
273,
1995,
87,
296,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1190,
16760,
12,
2150,
4672,
3536,
4284,
358,
1172,
326,
2743,
10860,
635,
326,
16491,
3749,
8783,
18,
3536,
309,
883,
18919,
21,
65,
480,
296,
4290,
883,
273,
1995,
87,
296,
738,
... |
def finalize(self, num_bins=20): | def finalize(self, num_bins=20, normed=False): | def finalize(self, num_bins=20): # determine binning min_stat, max_stat = determine_common_bin_limits(self.data_sets) bins = numpy.linspace(min_stat, max_stat, num_bins) | 03557d2b1fffbf9a032dbea7673a2aa64d60ec72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/03557d2b1fffbf9a032dbea7673a2aa64d60ec72/plotutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
12,
2890,
16,
818,
67,
11862,
33,
3462,
16,
4651,
329,
33,
8381,
4672,
468,
4199,
4158,
2093,
1131,
67,
5642,
16,
943,
67,
5642,
273,
4199,
67,
6054,
67,
4757,
67,
14270,
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,
12409,
12,
2890,
16,
818,
67,
11862,
33,
3462,
16,
4651,
329,
33,
8381,
4672,
468,
4199,
4158,
2093,
1131,
67,
5642,
16,
943,
67,
5642,
273,
4199,
67,
6054,
67,
4757,
67,
14270,
12,
... |
output.put((None, None, None)) | output.put((None, None, None, None)) | def work(): # A worker thread. try: while True: try: test, args_tuple = pending.popleft() except IndexError: output.put((None, None, None)) return if not quiet: print test sys.stdout.flush() # -E is needed by some tests, e.g. test_import popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.du... | 0b02e9b20963e971a27586451a3eca5bdacf38dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/0b02e9b20963e971a27586451a3eca5bdacf38dc/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
4634,
18,
5120,
4482,
1435,
1335,
10195,
30,
876,
18,
458,
12443,
7036,
16,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
13332,
468,
432,
4322,
2650,
18,
775,
30,
1323,
1053,
30,
775,
30,
1842,
16,
833,
67,
8052,
273,
4634,
18,
5120,
4482,
1435,
1335,
10195,
30,
876,
18,
458,
12443,
7036,
16,
599,
... |
from exprs.basic import InstanceMacro, State | from exprs.instance_helpers import InstanceMacro from exprs.attr_decl_macros import State | def Done(self, new_mode = None, **new_mode_options): ### REVIEW whether it's best to override this vs some other mode api method ### also how does it interact with new_mode arg? probably callers of that need to be revised to say what they really mean. | a1fb12f341ddf3721a49ecadf0d86c027aac4cfb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/a1fb12f341ddf3721a49ecadf0d86c027aac4cfb/test_commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8677,
12,
2890,
16,
394,
67,
3188,
273,
599,
16,
2826,
2704,
67,
3188,
67,
2116,
4672,
11849,
2438,
12145,
2856,
518,
1807,
3796,
358,
3849,
333,
6195,
2690,
1308,
1965,
1536,
707,
11849... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8677,
12,
2890,
16,
394,
67,
3188,
273,
599,
16,
2826,
2704,
67,
3188,
67,
2116,
4672,
11849,
2438,
12145,
2856,
518,
1807,
3796,
358,
3849,
333,
6195,
2690,
1308,
1965,
1536,
707,
11849... |
Field3 | <label>Field3</label> | def test_option_leftover_chunk(self): expected = """<table class="something" id="something" name="something"> | 88609def743d20a7d029c063edd2cea59f15cf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/88609def743d20a7d029c063edd2cea59f15cf61/test_widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3482,
67,
298,
74,
24540,
67,
6551,
12,
2890,
4672,
2665,
273,
3536,
32,
2121,
667,
1546,
30289,
6,
612,
1546,
30289,
6,
508,
1546,
30289,
6441,
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,
0,
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,
3482,
67,
298,
74,
24540,
67,
6551,
12,
2890,
4672,
2665,
273,
3536,
32,
2121,
667,
1546,
30289,
6,
612,
1546,
30289,
6,
508,
1546,
30289,
6441,
2,
-100,
-100,
-100,
-100,
-1... |
if milestone.has_key('date'): | if milestone.has_key('due'): | def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params) | a72b9506d05bbf5d6cca78467dd76408a30fa401 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/a72b9506d05bbf5d6cca78467dd76408a30fa401/roadmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
322,
21261,
12,
529,
16,
460,
16,
859,
12938,
4672,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
23148,
9,
44,
9,
49,
9,
28830,
2187,
460,
3631,
859,
13,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
322,
21261,
12,
529,
16,
460,
16,
859,
12938,
4672,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
23148,
9,
44,
9,
49,
9,
28830,
2187,
460,
3631,
859,
13,
2,
... |
gX = glX | gX = zeros(shape(glX)) | def newEKF(self, glX): print glX gX = glX for i in range(len(glX)): if(self.signed[i] > 0): | 341c1534070ccba2d3ed9c4c9bca5e46ff71096c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14739/341c1534070ccba2d3ed9c4c9bca5e46ff71096c/cwru_ekf_kalibrater_thrun2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
1172,
5118,
60,
314,
60,
273,
4922,
12,
4867,
12,
7043,
60,
3719,
364,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
11325,
42,
12,
2890,
16,
5118,
60,
4672,
1172,
5118,
60,
314,
60,
273,
4922,
12,
4867,
12,
7043,
60,
3719,
364,
277,
316,
1048,
12,
1897,
12,
7043,
60,
3719,
30,
309,
12,
2890,
... |
return self.users.exclude(id=client.avatar.id).all() | self.save() return self.users.exclude(id=client.avatar.id) | def dbOps(): if client.avatar not in self.users.all(): #raise Exception('User not in channel.') return self.users.exclude(id=client.avatar.id) ## who cares self.users.remove(client.avatar) ## FIXME: there should only ever be 1 stats obj per user-channel combo. Fix this elsewhere. Like at creation. #for obj in self.stat... | e37ed80da4657478843706cb2bc89dd87675bd24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10390/e37ed80da4657478843706cb2bc89dd87675bd24/peerchat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
8132,
13332,
309,
1004,
18,
19660,
486,
316,
365,
18,
5577,
18,
454,
13332,
468,
11628,
1185,
2668,
1299,
486,
316,
1904,
1093,
13,
327,
365,
18,
5577,
18,
10157,
12,
350,
33,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
8132,
13332,
309,
1004,
18,
19660,
486,
316,
365,
18,
5577,
18,
454,
13332,
468,
11628,
1185,
2668,
1299,
486,
316,
1904,
1093,
13,
327,
365,
18,
5577,
18,
10157,
12,
350,
33,
26... |
ZGUuDQ0KJAAAAAAAAADqs5WMrtL7367S+9+u0vvf1c7336/S+98tzvXfrNL731Hy/9+s0vvfzM3o 36bS+9+u0vrf89L7367S+9+j0vvfUfLx36PS+99p1P3fr9L731JpY2iu0vvfAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAUEUAAEwBAwD9e9Q5AAAAAAAAAADgAA8BCwEGAABAAAAAEAAAAJAAAADVAAAA | ZGUuDQ0KJAAAAAAAAABwj7aMNO7Y3zTu2N807tjfT/LU3zXu2N+38tbfNu7Y39zx3N827tjfVvHL 3zzu2N807tnfae7Y3zTu2N857tjf3PHS3znu2N+M6N7fNe7Y31JpY2g07tjfAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAUEUAAEwBAwAu6+E5AAAAAAAAAADgAA8BCwEGAABAAAAAEAAAAJAAAPDUAAAA | def get_exe_bytes (self): import base64 return base64.decodestring(EXEDATA) | 20d529be264abd2aa162fc647641b52dbb117656 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/20d529be264abd2aa162fc647641b52dbb117656/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
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,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if navigSizer: navigSizer.SetSizeHints(m_NavigPan) m_NavigPan.Layout() class Cfg: pass m_Cfg = Cfg() m_Cfg.navig_on = 1 m_Cfg.sashpos = 250 | if navigationSizer: navigationSizer.SetSizeHints(self.navigationPanel) self.navigationPanel.Layout() self.navigation = 1 self.sashpos = 250 | def __init__(self, parent, id, title, style = wxHF_DEFAULT_STYLE): wxFrame.__init__(self,parent,-4, title, style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) | a4e2e4e03c3ae8d24817935745aacd63f3d1c84e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2448/a4e2e4e03c3ae8d24817935745aacd63f3d1c84e/wxApp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
16,
2154,
273,
7075,
44,
42,
67,
5280,
67,
15066,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
17,
24,
16,
2077,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
16,
612,
16,
2077,
16,
2154,
273,
7075,
44,
42,
67,
5280,
67,
15066,
4672,
7075,
3219,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
17,
24,
16,
2077,... |
def get_album_by_mbid(mbid, api_key, api_secret, session_key): | def get_album_by_mbid(mbid, api_key, api_secret, session_key=""): | def get_album_by_mbid(mbid, api_key, api_secret, session_key): """Looks up an album by its MusicBrainz ID.""" params = {"mbid": unicode(mbid)} doc = _Request("album.getInfo", params, api_key, api_secret, session_key).execute(True) return Album(_extract(doc, "artist"), _extract(doc, "name"), api_key, api_secret, sess... | 8d8063afe8067477accae5bef5e470a4a3cbfa5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/8d8063afe8067477accae5bef5e470a4a3cbfa5d/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
25090,
67,
1637,
67,
1627,
350,
12,
1627,
350,
16,
1536,
67,
856,
16,
1536,
67,
5875,
16,
1339,
67,
856,
1546,
6,
4672,
3536,
20475,
731,
392,
14844,
635,
2097,
490,
14894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
25090,
67,
1637,
67,
1627,
350,
12,
1627,
350,
16,
1536,
67,
856,
16,
1536,
67,
5875,
16,
1339,
67,
856,
1546,
6,
4672,
3536,
20475,
731,
392,
14844,
635,
2097,
490,
14894,
... |
return PollJob(job_id, cl) | return PollJob(job_id, cl=cl, feedback_fn=feedback_fn) | def SubmitOpCode(op, cl=None, feedback_fn=None): """Legacy function to submit an opcode. This is just a simple wrapper over the construction of the processor instance. It should be extended to better handle feedback and interaction functions. """ if cl is None: cl = GetClient() job_id = SendJob([op], cl) return Pol... | 281606c166b6bcb7d677bb30655fce7d8f41362d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/281606c166b6bcb7d677bb30655fce7d8f41362d/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17320,
3817,
1085,
12,
556,
16,
927,
33,
7036,
16,
10762,
67,
4293,
33,
7036,
4672,
3536,
12235,
445,
358,
4879,
392,
11396,
18,
225,
1220,
353,
2537,
279,
4143,
4053,
1879,
326,
16171,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17320,
3817,
1085,
12,
556,
16,
927,
33,
7036,
16,
10762,
67,
4293,
33,
7036,
4672,
3536,
12235,
445,
358,
4879,
392,
11396,
18,
225,
1220,
353,
2537,
279,
4143,
4053,
1879,
326,
16171,
... |
self.effective_root = norm(open(self.dist_path).readlines()[0][:-1]) | self.effective_root = norm( abspath(open(self.dist_path).readlines()[0][:-1])) | def __init__(self, dist_root, name, must_exist=1): self.dist_root = dist_root self.effective_root = dist_root self.name = name self.dist_path = norm(join(self.effective_root, name)) if (isfile(self.dist_path)): try: self.effective_root = norm(open(self.dist_path).readlines()[0][:-1]) assert len(self.effective_root) > 0... | a6a514728c37fc3842c3ae00bc824c25e262e921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/a6a514728c37fc3842c3ae00bc824c25e262e921/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2411,
67,
3085,
16,
508,
16,
1297,
67,
7398,
33,
21,
4672,
365,
18,
4413,
67,
3085,
273,
2411,
67,
3085,
365,
18,
28894,
67,
3085,
273,
2411,
67,
3085,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2411,
67,
3085,
16,
508,
16,
1297,
67,
7398,
33,
21,
4672,
365,
18,
4413,
67,
3085,
273,
2411,
67,
3085,
365,
18,
28894,
67,
3085,
273,
2411,
67,
3085,... |
if vertex_soul == NULL: | if vertex_soul is None: | def getVertex( self, i ): vertex_soul = lgs.pathGetVertex( addressof(self), i ) # reinterpret the error code as an exception if vertex_soul == NULL: raise IndexError("%d is out of bounds"%i) return Vertex.from_pointer( vertex_soul ) | 3a2d42a888882e42b5836b86138db74f440e1669 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10974/3a2d42a888882e42b5836b86138db74f440e1669/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6475,
12,
365,
16,
277,
262,
30,
5253,
67,
87,
1003,
273,
328,
564,
18,
803,
967,
6475,
12,
1758,
792,
12,
2890,
3631,
277,
262,
225,
468,
283,
24713,
326,
555,
981,
487,
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,
336,
6475,
12,
365,
16,
277,
262,
30,
5253,
67,
87,
1003,
273,
328,
564,
18,
803,
967,
6475,
12,
1758,
792,
12,
2890,
3631,
277,
262,
225,
468,
283,
24713,
326,
555,
981,
487,
392,
... |
buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) | MAXSIZE = 20 import Queue queue = Queue.Queue().init(MAXSIZE) done = thread.allocate_lock() done.acquire_lock() thread.start_new_thread(saveframes, (vout, queue, done)) | def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' ... | dd2d726866c36f9ef98e011ae9958f47d4411fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dd2d726866c36f9ef98e011ae9958f47d4411fed/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,... |
binding_key="console.obj.%s. | binding_key="console.obj.*.*.%s. | def bindPackage(self, packageName): """ """ if not self.userBindings or not self.rcvObjects: raise Exception("userBindings option not set for Session") for broker in self.brokers: broker.amqpSession.exchange_bind(exchange="qpid.management", queue=broker.topicName, binding_key="console.obj.%s.#" % packageName) | 9fa67ab9d0d77ae531fa133dc59bb4aa5176c686 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/9fa67ab9d0d77ae531fa133dc59bb4aa5176c686/qmfconsole.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
2261,
12,
2890,
16,
9929,
4672,
3536,
3536,
309,
486,
365,
18,
1355,
10497,
578,
486,
365,
18,
1310,
90,
4710,
30,
1002,
1185,
2932,
1355,
10497,
1456,
486,
444,
364,
3877,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
2261,
12,
2890,
16,
9929,
4672,
3536,
3536,
309,
486,
365,
18,
1355,
10497,
578,
486,
365,
18,
1310,
90,
4710,
30,
1002,
1185,
2932,
1355,
10497,
1456,
486,
444,
364,
3877,
7923,
... |
assert tokens == [Token(LSQB, None), Token(STRING, "'a'"), Token(RSQB, None), Token(NEWLINE, ''), Token(ENDMARKER, '')] | assert tokens[:4] == [Token(LSQB, None), Token(STRING, "'a'"), Token(RSQB, None), Token(NEWLINE, '')] | def test_several_lines_list(): """tests list definition on several lines""" s = """['a' ]""" tokens = parse_source(s) assert tokens == [Token(LSQB, None), Token(STRING, "'a'"), Token(RSQB, None), Token(NEWLINE, ''), Token(ENDMARKER, '')] | 52b2708f71d9a4ce3a4670019b4aa377cf2d125d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/52b2708f71d9a4ce3a4670019b4aa377cf2d125d/test_pytokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
307,
502,
287,
67,
3548,
67,
1098,
13332,
3536,
16341,
666,
2379,
603,
11392,
2362,
8395,
272,
273,
3536,
3292,
69,
11,
308,
8395,
2430,
273,
1109,
67,
3168,
12,
87,
13,
1815... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
307,
502,
287,
67,
3548,
67,
1098,
13332,
3536,
16341,
666,
2379,
603,
11392,
2362,
8395,
272,
273,
3536,
3292,
69,
11,
308,
8395,
2430,
273,
1109,
67,
3168,
12,
87,
13,
1815... |
self.addDataToDB (['a', 'b', 'c']) | self.addDataToDB ([b'a', b'b', b'c']) | def bad_comparator (l, r): if l == r: # pass the set_bt_compare test return 0 raise RuntimeError("i'm a naughty comparison function") | fc45693524fc1c94ea38d93480acb1677ba300c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc45693524fc1c94ea38d93480acb1677ba300c5/test_compare.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
67,
832,
2528,
261,
80,
16,
436,
4672,
309,
328,
422,
436,
30,
468,
1342,
326,
444,
67,
23602,
67,
9877,
1842,
327,
374,
1002,
7265,
2932,
77,
17784,
279,
290,
16510,
93,
5826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5570,
67,
832,
2528,
261,
80,
16,
436,
4672,
309,
328,
422,
436,
30,
468,
1342,
326,
444,
67,
23602,
67,
9877,
1842,
327,
374,
1002,
7265,
2932,
77,
17784,
279,
290,
16510,
93,
5826,
... |
''' | """ | def opendb(self, username): ''' Open the database and set the current user. | 4381ee4898d6957dcf5870cef670761c11e9b531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4381ee4898d6957dcf5870cef670761c11e9b531/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
409,
70,
12,
2890,
16,
2718,
4672,
3536,
3502,
326,
2063,
471,
444,
326,
783,
729,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
409,
70,
12,
2890,
16,
2718,
4672,
3536,
3502,
326,
2063,
471,
444,
326,
783,
729,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: p = "%s-ast.h" % mod.name f = open(p, "wb") print >> f, auto_gen_msg print >> f, ' c = ChainOfVisitors(TypeDefVisitor(f), StructVisitor(f), PrototypeVisitor(f), ) c.visit(mod) print >>f, "PyObject* PyAST_mod2obj(mod_ty t);" f.close() | f = open(p, "wb") print >> f, auto_gen_msg print >> f, ' c = ChainOfVisitors(TypeDefVisitor(f), StructVisitor(f), PrototypeVisitor(f), ) c.visit(mod) print >>f, "PyObject* PyAST_mod2obj(mod_ty t);" f.close() | def main(srcfile): argv0 = sys.argv[0] components = argv0.split(os.sep) argv0 = os.sep.join(components[-2:]) auto_gen_msg = '/* File automatically generated by %s */\n' % argv0 mod = asdl.parse(srcfile) if not asdl.check(mod): sys.exit(1) if INC_DIR: p = "%s/%s-ast.h" % (INC_DIR, mod.name) else: p = "%s-ast.h" % mod.na... | a16b1f8b52e596b5c88789d7be3825bc42ce64ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a16b1f8b52e596b5c88789d7be3825bc42ce64ad/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
4816,
768,
4672,
5261,
20,
273,
2589,
18,
19485,
63,
20,
65,
4085,
273,
5261,
20,
18,
4939,
12,
538,
18,
10814,
13,
5261,
20,
273,
1140,
18,
10814,
18,
5701,
12,
8119,
1891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
768,
4672,
5261,
20,
273,
2589,
18,
19485,
63,
20,
65,
4085,
273,
5261,
20,
18,
4939,
12,
538,
18,
10814,
13,
5261,
20,
273,
1140,
18,
10814,
18,
5701,
12,
8119,
1891... |
nc = netCDF3.Dataset("/mesonet/data/iemre/%s_hourly.nc" % (ts.year,),'a') | nc = netCDF3.Dataset("/mnt/mesonet/data/iemre/%s_hourly.nc" % (ts.year,),'a') | def merge(ts): """ Process an hour's worth of stage4 data into the hourly RE """ fp = "/mesonet/ARCHIVE/data/%s/stage4/ST4.%s.01h.grib" % ( ts.strftime("%Y/%m/%d"), ts.strftime("%Y%m%d%H") ) grib = Nio.open_file(fp, 'r') # Rough subsample, since the whole enchillata is too much lats = numpy.ravel( grib.variables["g5_... | 932b2ec24eb6399cf2b8e4544720d8764976be8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/932b2ec24eb6399cf2b8e4544720d8764976be8c/stage4_hourlyre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
12,
3428,
4672,
3536,
4389,
392,
6126,
1807,
26247,
434,
6009,
24,
501,
1368,
326,
30662,
2438,
3536,
225,
4253,
273,
2206,
26244,
265,
278,
19,
10586,
5354,
19,
892,
5258,
87,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
12,
3428,
4672,
3536,
4389,
392,
6126,
1807,
26247,
434,
6009,
24,
501,
1368,
326,
30662,
2438,
3536,
225,
4253,
273,
2206,
26244,
265,
278,
19,
10586,
5354,
19,
892,
5258,
87,
19,... |
"paint" : lambda row: paint_host_count(0, row["hostgroup_num_hosts_pending"]) | "paint" : lambda row: paint_host_count(None, row["hostgroup_num_hosts_pending"]) | def paint_host_list(row): h = "<div class=objectlist>" for host, state, checked in row["hostgroup_members_with_state"]: link = "view.py?view_name=host&site=%s&host=%s" % ( htmllib.urlencode(row["site"]), htmllib.urlencode(host)) if checked: css = "hstate%d" % state else: css = "hstatep" h += "<div class=\"%s\"><a href=... | 9e5e756cd2b5a841e8d5fa876ef07a7938d19825 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/9e5e756cd2b5a841e8d5fa876ef07a7938d19825/painters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
2564,
67,
1098,
12,
492,
4672,
366,
273,
3532,
2892,
667,
33,
1612,
1098,
2984,
364,
1479,
16,
919,
16,
5950,
316,
1027,
9614,
2564,
1655,
67,
7640,
67,
1918,
67,
2019,
1192... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
67,
2564,
67,
1098,
12,
492,
4672,
366,
273,
3532,
2892,
667,
33,
1612,
1098,
2984,
364,
1479,
16,
919,
16,
5950,
316,
1027,
9614,
2564,
1655,
67,
7640,
67,
1918,
67,
2019,
1192... |
sage: feedback = dg.feedback_edge_set() | sage: feedback = dg.feedback_edge_set() | def feedback_edge_set(self,value_only=False): r""" Computes the minimum feedback edge set of a digraph ( also called feedback arc set ). | 7578a660786f8ff3bbf35c137ed9f58081e971da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7578a660786f8ff3bbf35c137ed9f58081e971da/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10762,
67,
7126,
67,
542,
12,
2890,
16,
1132,
67,
3700,
33,
8381,
4672,
436,
8395,
14169,
281,
326,
5224,
10762,
3591,
444,
434,
279,
3097,
1483,
261,
2546,
2566,
10762,
8028,
444,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10762,
67,
7126,
67,
542,
12,
2890,
16,
1132,
67,
3700,
33,
8381,
4672,
436,
8395,
14169,
281,
326,
5224,
10762,
3591,
444,
434,
279,
3097,
1483,
261,
2546,
2566,
10762,
8028,
444,
262,
... |
'quantity_wanted_total' : fields.function(_quantity_wanted_total, string='Total Wanted Quantity',type="char",size="64",method=True,readonly=True), 'quantity_delivered_total' : fields.function(_quantity_delivered_total, string='Total Delivered Quantity',type="char",size="64",method=True,readonly=True), 'quantity_usable_... | 'quantity_wanted_total' : fields.function(_quantity_wanted_total, string='Total Wanted Quantity',type="char",size=64,method=True,readonly=True), 'quantity_delivered_total' : fields.function(_quantity_delivered_total, string='Total Delivered Quantity',type="char",size=64,method=True,readonly=True), 'quantity_usable_tota... | def _camp_group_code(self, cr, uid, ids, name, args, context={}): result ={} offer_code = '' offer_name = '' for id in ids: | fd579264445d426cb1816460cf19cfb07cb147aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/fd579264445d426cb1816460cf19cfb07cb147aa/campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
71,
931,
67,
1655,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
10067,
67,
710,
273,
875,
10067,
67,
529,
273,
875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
71,
931,
67,
1655,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
10067,
67,
710,
273,
875,
10067,
67,
529,
273,
875,
... |
bpy.types.unregister(ExportMD3) | def unregister(): bpy.types.unregister(ExportMD3) bpy.types.INFO_MT_file_export.remove(menu_func) | f23bc1e77170909e5927094e4e5ad8e4990c82d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/f23bc1e77170909e5927094e4e5ad8e4990c82d9/io_export_md3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10232,
13332,
324,
2074,
18,
2352,
18,
5923,
67,
6152,
67,
768,
67,
6530,
18,
4479,
12,
5414,
67,
644,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10232,
13332,
324,
2074,
18,
2352,
18,
5923,
67,
6152,
67,
768,
67,
6530,
18,
4479,
12,
5414,
67,
644,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
taxes = self.pool.get('account.tax').browse(cr, uid,prod['supplier_taxes_id']) | taxes = self.pool.get('account.tax').browse(cr, uid,map(lambda x: x.id, prod.supplier_taxes_id)) | def product_id_change(self, cr, uid, ids, pricelist, product, qty, uom, partner_id, date_order=False): if not pricelist: raise osv.except_osv(_('No Pricelist !'), _('You have to select a pricelist in the purchase form !\nPlease set one before choosing a product.')) if not product: return {'value': {'price_unit': 0.0, '... | 080ea6a4fde50250b10ad04b040c296b5ae50372 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/080ea6a4fde50250b10ad04b040c296b5ae50372/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
16,
582,
362,
16,
19170,
67,
350,
16,
1509,
67,
1019,
33,
8381,
4672,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
846,
335,
5449,
16,
3017,
16,
26667,
16,
582,
362,
16,
19170,
67,
350,
16,
1509,
67,
1019,
33,
8381,
4672,
309,
... |
pass | if self._connectedAddr: self.protocol.connectionRefused() | def doRead(self): """Called when my socket is ready for reading.""" read = 0 while read < self.maxThroughput: try: data, addr = self.socket.recvfrom(self.maxPacketSize) read += len(data) self.protocol.datagramReceived(data, addr) except socket.error, se: no = se.args[0] if no in (EAGAIN, EINTR, EWOULDBLOCK): return if ... | 23edc5b661490b32d25a539522b8339b4f2c8195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23edc5b661490b32d25a539522b8339b4f2c8195/udp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1994,
12,
2890,
4672,
3536,
8185,
1347,
3399,
2987,
353,
5695,
364,
6453,
12123,
855,
273,
374,
1323,
855,
411,
365,
18,
1896,
24478,
30,
775,
30,
501,
16,
3091,
273,
365,
18,
781... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1994,
12,
2890,
4672,
3536,
8185,
1347,
3399,
2987,
353,
5695,
364,
6453,
12123,
855,
273,
374,
1323,
855,
411,
365,
18,
1896,
24478,
30,
775,
30,
501,
16,
3091,
273,
365,
18,
781... |
OutLbrace() Output("OSErr _err = ResError();") Output("if (_err != noErr) return PyMac_Error(_err);") OutRbrace() | if self.returntype.__class__ != OSErrType: OutLbrace() Output("OSErr _err = ResError();") Output("if (_err != noErr) return PyMac_Error(_err);") OutRbrace() | def checkit(self): OutLbrace() Output("OSErr _err = ResError();") Output("if (_err != noErr) return PyMac_Error(_err);") OutRbrace() FunctionGenerator.checkit(self) # XXX | cb6cf13261cd7e9566e2682077a214f9788129bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cb6cf13261cd7e9566e2682077a214f9788129bd/ressupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
305,
12,
2890,
4672,
309,
365,
18,
2463,
723,
16186,
1106,
972,
480,
531,
1090,
523,
559,
30,
2976,
48,
70,
9963,
1435,
3633,
2932,
51,
1090,
523,
389,
370,
273,
1124,
668,
26994,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
305,
12,
2890,
4672,
309,
365,
18,
2463,
723,
16186,
1106,
972,
480,
531,
1090,
523,
559,
30,
2976,
48,
70,
9963,
1435,
3633,
2932,
51,
1090,
523,
389,
370,
273,
1124,
668,
26994,... |
return newton(f, date, date + minute) | return Date(newton(f, date, date + minute)) | def f(d): self.date = d body.compute(self) return body.alt - self.horizon | 58aa765e5e5ff2da284b6e4f6dd1a78bd23f9a7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10979/58aa765e5e5ff2da284b6e4f6dd1a78bd23f9a7f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
72,
4672,
365,
18,
712,
273,
302,
1417,
18,
9200,
12,
2890,
13,
327,
1417,
18,
2390,
300,
365,
18,
76,
20648,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
284,
12,
72,
4672,
365,
18,
712,
273,
302,
1417,
18,
9200,
12,
2890,
13,
327,
1417,
18,
2390,
300,
365,
18,
76,
20648,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.getOldFlavor(): | if not self.getOldFlavor().isEmpty(): | def depformat(name, dep, f): f.write('\t%s: %s\n' %(name, str(dep).replace('\n', '\n\t%s' %(' '* (len(name)+2))))) | 16c7d8d09535ba6a109bdcfdd00a820bbb0535cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/16c7d8d09535ba6a109bdcfdd00a820bbb0535cf/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5993,
2139,
12,
529,
16,
5993,
16,
284,
4672,
284,
18,
2626,
2668,
64,
88,
9,
87,
30,
738,
87,
64,
82,
11,
8975,
529,
16,
609,
12,
15037,
2934,
2079,
2668,
64,
82,
2187,
2337,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5993,
2139,
12,
529,
16,
5993,
16,
284,
4672,
284,
18,
2626,
2668,
64,
88,
9,
87,
30,
738,
87,
64,
82,
11,
8975,
529,
16,
609,
12,
15037,
2934,
2079,
2668,
64,
82,
2187,
2337,
82,
... |
work_dir_root = tempfile.mkdtemp() | work_dir_root = tempfile.mkdtemp('-fastmode', 'tmp', os.getcwd()) | def create_partial_patches(patches): """ Given the patches generates a set of partial patches""" shas = {} work_dir_root = None metadata = [] try: work_dir_root = tempfile.mkdtemp() print "Building patches using work dir: %s" % (work_dir_root) # Iterate through every patch set in the patch file patch_num = 1 for patc... | 0b879b98e61c40c25cdf7cf6eef5f6ab88c89915 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/0b879b98e61c40c25cdf7cf6eef5f6ab88c89915/make_incremental_updates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
11601,
67,
30278,
12,
30278,
4672,
3536,
16803,
326,
16482,
6026,
279,
444,
434,
4702,
16482,
8395,
699,
345,
273,
2618,
225,
1440,
67,
1214,
67,
3085,
273,
599,
1982,
273,
5378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
11601,
67,
30278,
12,
30278,
4672,
3536,
16803,
326,
16482,
6026,
279,
444,
434,
4702,
16482,
8395,
699,
345,
273,
2618,
225,
1440,
67,
1214,
67,
3085,
273,
599,
1982,
273,
5378... |
url = u"http://youtube.com/get_video.php?video_id=%s&t=%s" % (videoID, t) callback(url) except: print "DTV: WARNING, unable to scrape You Tube Video URL: %s" % url callback(None) | url = u"http://youtube.com/get_video.php?video_id=%s&t=%s&fmt=18" % (videoID, t) httpclient.grabHeaders(url, lambda x: _youTubeCallback2(redirected_url, url, x, callback), lambda x: _youTubeErrback(x, callback)) except: print "DTV: WARNING, unable to scrape You Tube Video URL: %s" % redirected_url callback(None) def _... | def _youTubeCallback(info, callback): url = info['redirected-url'] try: components = urlparse.urlsplit(url) params = cgi.parse_qs(components[3]) videoID = params['video_id'][0] t = params['t'][0] url = u"http://youtube.com/get_video.php?video_id=%s&t=%s" % (videoID, t) callback(url) except: print "DTV: WARNING, unable ... | 9a5c4a1297a8c1492072c8b6bff9225341166ed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/9a5c4a1297a8c1492072c8b6bff9225341166ed8/flashscraper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19940,
27195,
2428,
12,
1376,
16,
1348,
4672,
880,
273,
1123,
3292,
7590,
329,
17,
718,
3546,
775,
30,
4085,
273,
15185,
18,
718,
4939,
12,
718,
13,
859,
273,
276,
10052,
18,
2670... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19940,
27195,
2428,
12,
1376,
16,
1348,
4672,
880,
273,
1123,
3292,
7590,
329,
17,
718,
3546,
775,
30,
4085,
273,
15185,
18,
718,
4939,
12,
718,
13,
859,
273,
276,
10052,
18,
2670... |
nanny.tattle_quantity('netrecv',64) nanny.tattle_quantity('netsend',128) | if self.on_loopback: nanny.tattle_quantity('looprecv',64) nanny.tattle_quantity('loopsend',128) else: nanny.tattle_quantity('netrecv',64) nanny.tattle_quantity('netsend',128) | def close(self): """ <Purpose> Closes a socket. Pending remote recv() calls will return with the remaining information. Local recv / send calls will fail after this. | cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/cdc73d35527f2e8ba9aecc2ad1a44f2831f9c68c/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
411,
10262,
4150,
34,
22442,
2420,
279,
2987,
18,
282,
16034,
2632,
10665,
1435,
4097,
903,
327,
598,
326,
4463,
1779,
18,
282,
3566,
10665,
342,
1366,
4097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1746,
12,
2890,
4672,
3536,
411,
10262,
4150,
34,
22442,
2420,
279,
2987,
18,
282,
16034,
2632,
10665,
1435,
4097,
903,
327,
598,
326,
4463,
1779,
18,
282,
3566,
10665,
342,
1366,
4097,
... |
ai("def x():\n") | ai("def x():\n") | d719bc74fff5a5121eec1831bd7a934e109f90f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d719bc74fff5a5121eec1831bd7a934e109f90f1/test_codeop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
14679,
2932,
536,
619,
1435,
5581,
82,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
14679,
2932,
536,
619,
1435,
5581,
82,
7923,
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,
-1... | |
""" Log file name. """) | "Log file line number") | def _set_log_lineno(self, log_lineno): self._log_lineno = log_lineno | c92e3451ad113a1d8b80d02f3f9685d9c9c4adcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/c92e3451ad113a1d8b80d02f3f9685d9c9c4adcf/test_result.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
1330,
67,
17782,
12,
2890,
16,
613,
67,
17782,
4672,
365,
6315,
1330,
67,
17782,
273,
613,
67,
17782,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
1330,
67,
17782,
12,
2890,
16,
613,
67,
17782,
4672,
365,
6315,
1330,
67,
17782,
273,
613,
67,
17782,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.addnstr(0, 0, topic[:self.width-1], self.width-1, curses.color_pair(theme.COLOR_TOPIC_BAR)) | self.addstr(0, 0, topic[:self.width-1], curses.color_pair(theme.COLOR_TOPIC_BAR)) | def refresh(self, topic): if not self.visible: return with g_lock: self.win.erase() self.addnstr(0, 0, topic[:self.width-1], self.width-1, curses.color_pair(theme.COLOR_TOPIC_BAR)) (y, x) = self.win.getyx() remaining_size = self.width - x if remaining_size: self.addnstr(' '*remaining_size, remaining_size, curses.color_... | 53a5536cf12cbe8474f37b1c8e31b60489b2b62f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/53a5536cf12cbe8474f37b1c8e31b60489b2b62f/window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
3958,
4672,
309,
486,
365,
18,
8613,
30,
327,
598,
314,
67,
739,
30,
365,
18,
8082,
18,
264,
448,
1435,
365,
18,
1289,
701,
12,
20,
16,
374,
16,
3958,
10531,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
12,
2890,
16,
3958,
4672,
309,
486,
365,
18,
8613,
30,
327,
598,
314,
67,
739,
30,
365,
18,
8082,
18,
264,
448,
1435,
365,
18,
1289,
701,
12,
20,
16,
374,
16,
3958,
10531,
28... |
'gpg': self._sanitise_badge_field(registration.keyid), | def _registration_badge_data(self, registration, stamp = False): if registration: dinner_tickets = 0 ticket = '' for invoice in registration.person.invoices: if invoice.paid() and not invoice.is_void(): for item in invoice.items: if item.description.startswith('Dinner Ticket'): dinner_tickets += item.qty elif item.desc... | aec44a52f53f78c6504806a53cdef80c7e1b6a7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/aec44a52f53f78c6504806a53cdef80c7e1b6a7d/registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14170,
67,
21245,
67,
892,
12,
2890,
16,
7914,
16,
14429,
273,
1083,
4672,
309,
7914,
30,
302,
7872,
67,
6470,
2413,
273,
374,
9322,
273,
875,
364,
9179,
316,
7914,
18,
12479,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14170,
67,
21245,
67,
892,
12,
2890,
16,
7914,
16,
14429,
273,
1083,
4672,
309,
7914,
30,
302,
7872,
67,
6470,
2413,
273,
374,
9322,
273,
875,
364,
9179,
316,
7914,
18,
12479,
18,... | |
'ja': (CAT, u"おすすめ記事"), | 'ja': (BACK,u"Good article"), | def BACK(site,name): name = site.namespace(10) + ':' + name p=wikipedia.Page(site, name) return [page for page in p.getReferences(follow_redirects = False, onlyTemplateInclusion=True)] | abb9e206d11258419fd6e140ed5c59deb8843fdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/abb9e206d11258419fd6e140ed5c59deb8843fdd/featured.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15842,
12,
4256,
16,
529,
4672,
508,
273,
2834,
18,
4937,
12,
2163,
13,
397,
3921,
397,
508,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
327,
306,
2433,
364,
1363,
316,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15842,
12,
4256,
16,
529,
4672,
508,
273,
2834,
18,
4937,
12,
2163,
13,
397,
3921,
397,
508,
293,
33,
11999,
13744,
18,
1964,
12,
4256,
16,
508,
13,
327,
306,
2433,
364,
1363,
316,
2... |
x = [ZZ._coerce_(a) for a in x.list()] | x = [ZZ(a) for a in x.list()] | def __init__(self, parent, x=None, check=True, is_gen=False, construct=False): Polynomial.__init__(self, parent, is_gen=is_gen) | 95344256113633f3acd6280f89285a1bcf7387d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/95344256113633f3acd6280f89285a1bcf7387d9/polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
33,
8381,
16,
4872,
33,
8381,
4672,
6730,
13602,
16186,
2738,
972,
12,
2890,
16,
982,
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,
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,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
33,
8381,
16,
4872,
33,
8381,
4672,
6730,
13602,
16186,
2738,
972,
12,
2890,
16,
982,
16,... |
if self.protocols: random.choice(self.protocols).send_command(command, headers) | call_id = None for header in headers: if header.startswith("call_id: "): call_id = header.split("call_id: ", 1)[1] break if call_id is None: raise RelayError("Could not parse call_id") if call_id in self.sessions: relay = self.sessions[call_id] if relay not in self.protocols: raise RelayError("Relay for this session is... | def send_command(self, command, headers): if self.protocols: random.choice(self.protocols).send_command(command, headers) else: log.error("Could not send command, no relay has connected yet") self.dispatcher.openser.reply("error") | 52c591872af75930b633f50641d72f593784ac59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/52c591872af75930b633f50641d72f593784ac59/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3076,
12,
2890,
16,
1296,
16,
1607,
4672,
745,
67,
350,
273,
599,
364,
1446,
316,
1607,
30,
309,
1446,
18,
17514,
1918,
2932,
1991,
67,
350,
30,
315,
4672,
745,
67,
350,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3076,
12,
2890,
16,
1296,
16,
1607,
4672,
745,
67,
350,
273,
599,
364,
1446,
316,
1607,
30,
309,
1446,
18,
17514,
1918,
2932,
1991,
67,
350,
30,
315,
4672,
745,
67,
350,
27... |
' test ' : ' ', ' testindex ' : ' ', | 'test' : '', 'testindex' : '', | def __init__(self, message): """Initialization.""" self.message = message | 9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
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,
... | [
1,
1,
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,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
args=('test.blah', 'a') | args=(sys.stderr,) | def formatException(self, ei): return "Got a [%s]" % ei[0].__name__ | ef6aa17de0de814aac962f6c87c2b705e2fe25c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/ef6aa17de0de814aac962f6c87c2b705e2fe25c8/test_logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
503,
12,
2890,
16,
13247,
4672,
327,
315,
15617,
279,
9799,
87,
4279,
738,
13247,
63,
20,
8009,
972,
529,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
503,
12,
2890,
16,
13247,
4672,
327,
315,
15617,
279,
9799,
87,
4279,
738,
13247,
63,
20,
8009,
972,
529,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if size == 0: return "".join(bufs) | if size == 0: return bufs | def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) # Read from the file in small chunks while True: if size == 0: return "".join(bufs) # Return resulting line | 0bad1f821b8419d53dfcfeb05d061c69ee8d82e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0bad1f821b8419d53dfcfeb05d061c69ee8d82e9/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
1681,
87,
273,
5378,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
565,
468,
2720,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
1681,
87,
273,
5378,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
565,
468,
2720,
62... |
self.pixbuf = gtk.gdk.pixbuf_new_from_file(icon_path) | self.engine_pixbuf = gtk.gdk.pixbuf_new_from_file(icon_path) icon_path = resources.path('images/clear-image.png') self.clear_pixbuf = gtk.gdk.pixbuf_new_from_file(icon_path) | def __init__(self): gtk.EventBox.__init__(self) self.add_events(gtk.gdk.EXPOSURE_MASK) self.alignment = gtk.Alignment(yalign=0.5, xscale=1.0) self.entry = gtk.Entry() self.entry.set_has_frame(False) self.alignment.add(self.entry) self._align_entry() self.add(self.alignment) self.alignment.show_all() | 33f586bb242065e50a1d5c30f7eafec8b3d0c0b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/33f586bb242065e50a1d5c30f7eafec8b3d0c0b1/searchentry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
1133,
3514,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1289,
67,
5989,
12,
4521,
79,
18,
75,
2883,
18,
2294,
7057,
4830,
67,
11704,
13,
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,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
1133,
3514,
16186,
2738,
972,
12,
2890,
13,
365,
18,
1289,
67,
5989,
12,
4521,
79,
18,
75,
2883,
18,
2294,
7057,
4830,
67,
11704,
13,
365,
... |
file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write(" %s_id_handler_->FreeIds(%s);\n" % (func.name[6:-1].lower(), func.MakeOriginalArgString(""))) file.Write(" helper_->%sImmediate(%s);\n" % (func.name, func.MakeOriginalArgString(""))) file.Write("}\n")... | code = """%(return_type)s %(name)s(%(typed_args)s) { if (%(count_name)s < 0) { SetGLError(GL_INVALID_VALUE, "gl%(name)s: n < 0"); return; } %(resource_type)s_id_handler_->FreeIds(%(args)s); helper_->%(name)sImmediate(%(args)s); } """ file.Write(code % { 'return_type': func.return_type, 'name': func.original_name, 'typ... | def WriteGLES2ImplementationHeader(self, func, file): """Overrriden from TypeHandler.""" impl_decl = func.GetInfo('impl_decl') if impl_decl == None or impl_decl == True: file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write(" %s_id_handler_->FreeIds(%s);\n... | 9e64440a70e0a18ff5b6edcbf10652feb2954b39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/9e64440a70e0a18ff5b6edcbf10652feb2954b39/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
67,
8840,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
67,
8840,
6134,... |
tarinfo.name = normpath(tarinfo.name) if tarinfo.isdir(): tarinfo.name += "/" if tarinfo.linkname: tarinfo.linkname = normpath(tarinfo.linkname) if tarinfo.size > MAXSIZE_MEMBER: if self.posix: raise ValueError("file is too large (>= 8 GB)") else: self._dbg(2, "tarfile: Created GNU tar largefile header") if len(ta... | tarinfo = copy.copy(tarinfo) buf = tarinfo.tobuf(self.posix) self.fileobj.write(buf) self.offset += len(buf) | def addfile(self, tarinfo, fileobj=None): """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation... | 81f02e34efadb27c8e3954e259e5638999815387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/81f02e34efadb27c8e3954e259e5638999815387/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,... |
_CheckInstanceBridgesExist(instance) | _CheckInstanceBridgesExist(self, instance) | def CheckPrereq(self): """Check prerequisites. | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
missing = [] | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] | a444439fb0700ef5568e50ba692161d667718145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/a444439fb0700ef5568e50ba692161d667718145/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15896,
67,
18281,
2496,
12,
2890,
16,
1203,
16,
6637,
16,
7006,
4672,
5907,
273,
5378,
3315,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15896,
67,
18281,
2496,
12,
2890,
16,
1203,
16,
6637,
16,
7006,
4672,
5907,
273,
5378,
3315,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
try: | if name in _attrDict: | def removeAttributeValue(self, name, _attrDict=None, _attrID=None): """ Remove a value for a Chandler attribute. | 02a6117247548c32e6cf68f412e9f8527e859e9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/02a6117247548c32e6cf68f412e9f8527e859e9d/Item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
14942,
12,
2890,
16,
508,
16,
389,
1747,
5014,
33,
7036,
16,
389,
1747,
734,
33,
7036,
4672,
3536,
3581,
279,
460,
364,
279,
1680,
464,
749,
1566,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
14942,
12,
2890,
16,
508,
16,
389,
1747,
5014,
33,
7036,
16,
389,
1747,
734,
33,
7036,
4672,
3536,
3581,
279,
460,
364,
279,
1680,
464,
749,
1566,
18,
2,
-100,
-100,
-100,
-100,
... |
self.job_post(webbrowser.open_new, (WEBSITE_URL, )) | self.job_post(open_new, (WEBSITE_URL, )) | def do_website(self, event): self.job_post(webbrowser.open_new, (WEBSITE_URL, )) | 10ca0d8a9841497794134a4525061e8e56c6cafb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1662/10ca0d8a9841497794134a4525061e8e56c6cafb/winpdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
21868,
12,
2890,
16,
871,
4672,
365,
18,
4688,
67,
2767,
12,
4875,
11213,
18,
3190,
67,
2704,
16,
261,
6950,
12692,
5398,
67,
1785,
16,
8623,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
21868,
12,
2890,
16,
871,
4672,
365,
18,
4688,
67,
2767,
12,
4875,
11213,
18,
3190,
67,
2704,
16,
261,
6950,
12692,
5398,
67,
1785,
16,
8623,
2,
-100,
-100,
-100,
-100,
-100,
... |
if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) | if not isinstance(im_gens, sage.structure.all.Sequence): if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) | def __init__(self, parent, im_gens, check=True): RingHomomorphism.__init__(self, parent) if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) if len(im_gens) != parent.domain().ngens(): raise ValueError, "number of images must equal number of g... | 0b90af77b8db29903bdb9d74692479801e6aecc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0b90af77b8db29903bdb9d74692479801e6aecc3/morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
709,
67,
23730,
16,
866,
33,
5510,
4672,
25463,
44,
362,
362,
7657,
6228,
16186,
2738,
972,
12,
2890,
16,
982,
13,
309,
486,
1549,
12,
381,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
709,
67,
23730,
16,
866,
33,
5510,
4672,
25463,
44,
362,
362,
7657,
6228,
16186,
2738,
972,
12,
2890,
16,
982,
13,
309,
486,
1549,
12,
381,
67... |
cmds[0:0] = [self.__class__.flush, self.__class__.resendSubpictureClut] self.pendingCmds = cmds | for cmd in reversed(cmds): self.mainItr.push(cmd) self.mainItr.push(self.__class__.flush) | def interactiveWrapper(count): """Call the iterator and send an `EndInteractive` operation at the end.""" yield itersched.Call(itr) | 1ccd869773e1734c1574926c68fdfed456aeae0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/1ccd869773e1734c1574926c68fdfed456aeae0d/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12625,
3611,
12,
1883,
4672,
3536,
1477,
326,
2775,
471,
1366,
392,
1375,
1638,
26442,
68,
1674,
622,
326,
679,
12123,
2824,
1400,
87,
2049,
18,
1477,
12,
305,
86,
13,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12625,
3611,
12,
1883,
4672,
3536,
1477,
326,
2775,
471,
1366,
392,
1375,
1638,
26442,
68,
1674,
622,
326,
679,
12123,
2824,
1400,
87,
2049,
18,
1477,
12,
305,
86,
13,
2,
-100,
-100,
-... |
warn('%s failed: %s', (cmd[0], exc)) | warn('%s failed: %s', cmd[0], exc) | def possibly_run(self): # Run the next command in the self.to_run queue. if len(self.to_run)<1: return False | 63400a0cbaa5f68ae18def7f1a39b14de7f48b55 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4586/63400a0cbaa5f68ae18def7f1a39b14de7f48b55/xsettings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10016,
67,
2681,
12,
2890,
4672,
468,
1939,
326,
1024,
1296,
316,
326,
365,
18,
869,
67,
2681,
2389,
18,
225,
309,
562,
12,
2890,
18,
869,
67,
2681,
13,
32,
21,
30,
327,
1083,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10016,
67,
2681,
12,
2890,
4672,
468,
1939,
326,
1024,
1296,
316,
326,
365,
18,
869,
67,
2681,
2389,
18,
225,
309,
562,
12,
2890,
18,
869,
67,
2681,
13,
32,
21,
30,
327,
1083,
2,
-... |
style=wx.SL_RIGHT|wx.SL_LABELS| | style=wx.SL_VERTICAL|wx.SL_LABELS| | def initScoreSlider(self): self.scoreSlider = wx.Slider(self, self.ID_SCORESLIDER, 0, -10, 10, style=wx.SL_RIGHT|wx.SL_LABELS| wx.SL_INVERSE) | 3397fafb87de92b9bbb0fd9516165e95e6624ca1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/3397fafb87de92b9bbb0fd9516165e95e6624ca1/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7295,
21824,
12,
2890,
4672,
365,
18,
6355,
21824,
273,
7075,
18,
21824,
12,
2890,
16,
365,
18,
734,
67,
28520,
4559,
734,
654,
16,
374,
16,
300,
2163,
16,
1728,
16,
2154,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7295,
21824,
12,
2890,
4672,
365,
18,
6355,
21824,
273,
7075,
18,
21824,
12,
2890,
16,
365,
18,
734,
67,
28520,
4559,
734,
654,
16,
374,
16,
300,
2163,
16,
1728,
16,
2154,
33,
... |
logging.error('UPDATE API call failed: %s - %s - %s' % (e.code, e.message, str(e))) | logging.error('UPDATE API call failed: %s - %s - %s' % \ (e.code, e.message, str(e))) | def handle_update(self, msg): """Process an update message.""" | 2b2b5839b23008a8980ab8eeeca606297c51c416 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4157/2b2b5839b23008a8980ab8eeeca606297c51c416/route53d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
2725,
12,
2890,
16,
1234,
4672,
3536,
2227,
392,
1089,
883,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if os.path.exists(debian_file) and not os.path.exists(ubuntu_file): | if os.path.exists(right_file) and not os.path.exists(left_file): | def update_oneside(filename, debian_file, ubuntu_file, base_file, merged_file): """Update files by copying or deleting when they only exist on one side.""" dirname = os.path.dirname(merged_file) # File removed in Ubuntu, leave it removed if os.path.exists(base_file) and not os.path.exists(ubuntu_file): print " + Lea... | 144cd852907c9e860817a286fd32fd93f856e242 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/144cd852907c9e860817a286fd32fd93f856e242/hi_mom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... |
best_info = None | def show_completeness(annotation): print "Completeness of %s map coefficients:" % annotation map_coeffs.setup_binner(auto_binning=True) if (map_coeffs.binner().n_bins_used() > 12): map_coeffs.setup_binner(n_bins=12) map_coeffs.completeness(use_binning=True).show(prefix=" ") print sys.stdout.flush() | 215188a0d48af18a37a5618af8a81a4767a73784 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/215188a0d48af18a37a5618af8a81a4767a73784/lockit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
7806,
15681,
12,
11495,
4672,
1172,
315,
6297,
15681,
434,
738,
87,
852,
14229,
2773,
738,
3204,
852,
67,
30463,
18,
8401,
67,
4757,
1224,
12,
6079,
67,
4757,
2093,
33,
5510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
7806,
15681,
12,
11495,
4672,
1172,
315,
6297,
15681,
434,
738,
87,
852,
14229,
2773,
738,
3204,
852,
67,
30463,
18,
8401,
67,
4757,
1224,
12,
6079,
67,
4757,
2093,
33,
5510,
... | |
outputs[-1:] = \ | outputs.extend ( | def copy_tree (src, dst, preserve_mode=1, preserve_times=1, preserve_symlinks=0, update=0, verbose=0, dry_run=0): """Copy an entire directory tree 'src' to a new location 'dst'. Both 'src' and 'dst' must be directory names. If 'src' is not a directory, raise DistutilsFileError. If 'dst' does not exist, it is creat... | a002edc85b25160cfffe610df9ab7337efc8f0c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a002edc85b25160cfffe610df9ab7337efc8f0c0/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
3413,
261,
4816,
16,
3046,
16,
9420,
67,
3188,
33,
21,
16,
9420,
67,
8293,
33,
21,
16,
9420,
67,
21278,
87,
33,
20,
16,
1089,
33,
20,
16,
3988,
33,
20,
16,
10299,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
3413,
261,
4816,
16,
3046,
16,
9420,
67,
3188,
33,
21,
16,
9420,
67,
8293,
33,
21,
16,
9420,
67,
21278,
87,
33,
20,
16,
1089,
33,
20,
16,
3988,
33,
20,
16,
10299,
67,
2... |
return "%s (status: %s, last updated on %s)" % (self.experiment_metadata.name, self.status, self.last_modified) | return u"%s (status: %s, last updated on %s)" % (self.experiment_metadata.name, self.status, self.last_modified) | def __unicode__(self): return "%s (status: %s, last updated on %s)" % (self.experiment_metadata.name, self.status, self.last_modified) | e0c246b75fbd7beea69fbdb5057dc22d60db6a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7374/e0c246b75fbd7beea69fbdb5057dc22d60db6a17/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
2213,
87,
261,
2327,
30,
738,
87,
16,
1142,
3526,
603,
738,
87,
2225,
738,
261,
2890,
18,
18142,
67,
4165,
18,
529,
16,
365,
18,
2327,
16,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
2213,
87,
261,
2327,
30,
738,
87,
16,
1142,
3526,
603,
738,
87,
2225,
738,
261,
2890,
18,
18142,
67,
4165,
18,
529,
16,
365,
18,
2327,
16,
365,
... |
print "er" | def main(restrictionsfn, program, args): global usercontext global usercode global simpleexec # start the nanny up and read the restrictions files. restrictions.init_restrictions(restrictionsfn) # Armon: Update our IP cache emulcomm.update_ip_cache() if logfile: # time to set up the circular logger loggerfo = loggin... | 5479c6681f519288ee82f6c8c5ac4bcfd06bcd14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/5479c6681f519288ee82f6c8c5ac4bcfd06bcd14/repy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
23954,
87,
4293,
16,
5402,
16,
833,
4672,
2552,
729,
2472,
2552,
729,
710,
2552,
4143,
4177,
225,
468,
787,
326,
290,
1072,
93,
731,
471,
855,
326,
17499,
1390,
18,
17499,
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,
2774,
12,
23954,
87,
4293,
16,
5402,
16,
833,
4672,
2552,
729,
2472,
2552,
729,
710,
2552,
4143,
4177,
225,
468,
787,
326,
290,
1072,
93,
731,
471,
855,
326,
17499,
1390,
18,
17499,
18... | |
self._printPartStats(packageClasses, partPackages) | def getPackages(self, partIncludes, smartExclude, classList, collapseParts, variants, jobContext): # Get config settings jobConfig = jobContext["jobconf"] minPackageSize = jobConfig.get("packages/sizes/min-package", 0) minPackageSizeForUnshared = jobConfig.get("packages/sizes/min-package-unshared", None) | e13fa46bae9b46a89002191681f67bac823b3c1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/e13fa46bae9b46a89002191681f67bac823b3c1a/PartBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
12,
2890,
16,
1087,
16815,
16,
13706,
12689,
16,
16035,
16,
13627,
4305,
16,
12935,
16,
1719,
1042,
4672,
468,
968,
642,
1947,
1719,
809,
273,
1719,
1042,
9614,
4688,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30401,
1023,
12,
2890,
16,
1087,
16815,
16,
13706,
12689,
16,
16035,
16,
13627,
4305,
16,
12935,
16,
1719,
1042,
4672,
468,
968,
642,
1947,
1719,
809,
273,
1719,
1042,
9614,
4688,
3923,
... | |
' old-title ' : ' 246__a:', ' old-t ' : ' 246__a:', ' ex-ti ' : ' 246__a:', ' et ' : ' 246__a:', | 'old-title' : '246__a:', 'old-t' : '246__a:', 'ex-ti' : '246__a:', 'et' : '246__a:', | def __init__(self, message): """Initialization.""" self.message = message | 9ac6f199aca80bde5350b014ceb25041ee84876b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/9ac6f199aca80bde5350b014ceb25041ee84876b/search_engine_query_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
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,
... | [
1,
1,
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,
2738,
972,
12,
2890,
16,
883,
4672,
3536,
17701,
12123,
365,
18,
2150,
273,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if withprob(0.99): | if withprob(0.01): | def phasers(): "Fire phasers at bad guys." hits = [] kz = 0; k = 1; irec=0 # Cheating inhibitor ifast = False; no = False; itarg = True; msgflag = True; rpow=0 automode = "NOTSET" key=0 skip(1) # SR sensors and Computer are needed for automode if damaged(DSRSENS) or damaged(DCOMPTR): itarg = False if game.condition == ... | 9dc207eca02da44642a33bcd84cad07e3d574c93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/9dc207eca02da44642a33bcd84cad07e3d574c93/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1844,
345,
414,
13332,
315,
9723,
1844,
345,
414,
622,
5570,
3058,
1900,
1199,
11076,
273,
5378,
417,
94,
273,
374,
31,
417,
273,
404,
31,
277,
3927,
33,
20,
468,
22682,
1776,
316,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1844,
345,
414,
13332,
315,
9723,
1844,
345,
414,
622,
5570,
3058,
1900,
1199,
11076,
273,
5378,
417,
94,
273,
374,
31,
417,
273,
404,
31,
277,
3927,
33,
20,
468,
22682,
1776,
316,
157... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.