rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
while i != (len(ext_list) - 1): | while i < len(ext_list): | def __add_unused_space(self): #Now check if there is free space in Volume Groups #If there is free space, add an LV marked as 'unused' for that available space for vg in self.__VGs.values(): if vg.get_extent_total_used_free()[2] == 0: continue lv_unused = LogicalVolume(UNUSED_SPACE, None, False, None, None) lv_unused.s... | c1dd849704fdeaceec092a1a6a4e39cebe4889b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/c1dd849704fdeaceec092a1a6a4e39cebe4889b5/lvm_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
67,
14375,
67,
2981,
12,
2890,
4672,
468,
8674,
866,
309,
1915,
353,
4843,
3476,
316,
7404,
14712,
468,
2047,
1915,
353,
4843,
3476,
16,
527,
392,
29268,
9350,
487,
296,
1437... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
14375,
67,
2981,
12,
2890,
4672,
468,
8674,
866,
309,
1915,
353,
4843,
3476,
316,
7404,
14712,
468,
2047,
1915,
353,
4843,
3476,
16,
527,
392,
29268,
9350,
487,
296,
1437... |
if not lines[line].strip() or lines[line].startswith(' | if not lines[-1].strip() or lines[-1].startswith(' lines.pop() | def parse_categories(request, text): # We want to parse only the last non-empty line of the text lines = text.rstrip().splitlines() if not lines: return lines, list() confirmed = list() # Start looking at lines from the end to the beginning for line in reversed(range(len(lines))): # Skip empty lines, comments if not l... | f3fe6c2c606d540e13ed5dd15c811e35406e475a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/f3fe6c2c606d540e13ed5dd15c811e35406e475a/editing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8995,
12,
2293,
16,
977,
4672,
468,
1660,
2545,
358,
1109,
1338,
326,
1142,
1661,
17,
5531,
980,
434,
326,
977,
2362,
273,
977,
18,
86,
6406,
7675,
4939,
3548,
1435,
309,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
8995,
12,
2293,
16,
977,
4672,
468,
1660,
2545,
358,
1109,
1338,
326,
1142,
1661,
17,
5531,
980,
434,
326,
977,
2362,
273,
977,
18,
86,
6406,
7675,
4939,
3548,
1435,
309,
486... |
$(obj)/%.o: %.s FORCE_DO_CMD | $(obj)/%.o: $(srcdir)/%.s FORCE_DO_CMD | ifdef V quiet= | f9714e7e6a79a21e64d4d4ea1dd8802d988134a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/f9714e7e6a79a21e64d4d4ea1dd8802d988134a9/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
536,
776,
10902,
33,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def _test(N=200): | def _test(N=20000): | def _test(N=200): print 'TWOPI =', TWOPI print 'LOG4 =', LOG4 print 'NV_MAGICCONST =', NV_MAGICCONST print 'SG_MAGICCONST =', SG_MAGICCONST _test_generator(N, 'random()') _test_generator(N, 'normalvariate(0.0, 1.0)') _test_generator(N, 'lognormvariate(0.0, 1.0)') _test_generator(N, 'cunifvariate(0.0, 1... | b760efb08d509bb2acfdef8f4e59dfafa20ca57f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b760efb08d509bb2acfdef8f4e59dfafa20ca57f/random.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12,
50,
33,
22,
2787,
4672,
1172,
296,
18869,
51,
1102,
540,
273,
2187,
24722,
51,
1102,
1172,
296,
4842,
24,
1850,
273,
2187,
2018,
24,
1172,
296,
11679,
67,
49,
22247,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
12,
50,
33,
22,
2787,
4672,
1172,
296,
18869,
51,
1102,
540,
273,
2187,
24722,
51,
1102,
1172,
296,
4842,
24,
1850,
273,
2187,
2018,
24,
1172,
296,
11679,
67,
49,
22247,
264... |
self._duringAutomatic = False | def displayLevel(self, faceCount): if not self._pyramidCK: self.automaticRegionMerging() | 9c8355b7dd6c0a9c675e9916ae27f5e4750b10db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/9c8355b7dd6c0a9c675e9916ae27f5e4750b10db/workspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
2355,
12,
2890,
16,
7945,
1380,
4672,
309,
486,
365,
6315,
2074,
23083,
3507,
30,
365,
18,
5854,
4941,
5165,
8478,
1998,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
2355,
12,
2890,
16,
7945,
1380,
4672,
309,
486,
365,
6315,
2074,
23083,
3507,
30,
365,
18,
5854,
4941,
5165,
8478,
1998,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
self.angle += 73.0 | self.angle += 73 | def defaultMessageAction(self,args): sentFrom, msg, msgArgs = args[0],args[1],args[2:] if msg == "WORLD_STATE": for actor in msgArgs[0].actors: if actor[0] is self: break self.location = actor[1].location #self.angle += 30.0 * (1.0 / msgArgs[0].updateRate) if self.angle >= 360: self.angle -= 360 updateMsg = (self.chan... | 9efff3c46c5125e3a6f3f2a240cdcd3097710244 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13911/9efff3c46c5125e3a6f3f2a240cdcd3097710244/conceptologic_bots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
1079,
1803,
12,
2890,
16,
1968,
4672,
3271,
1265,
16,
1234,
16,
1234,
2615,
273,
833,
63,
20,
6487,
1968,
63,
21,
6487,
1968,
63,
22,
26894,
309,
1234,
422,
315,
5613,
12069,
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,
805,
1079,
1803,
12,
2890,
16,
1968,
4672,
3271,
1265,
16,
1234,
16,
1234,
2615,
273,
833,
63,
20,
6487,
1968,
63,
21,
6487,
1968,
63,
22,
26894,
309,
1234,
422,
315,
5613,
12069,
67,
... |
print mdata | def Index(self): '''Build internal data structures''' XMLFileBacked.Index(self) self.packages = {} for location in self.entries: for pkg in location.getchildren(): if location.attrib.has_key('type'): pkg.set('type', location.get('type')) if pkg.attrib.has_key("simplefile"): self.packages[pkg.get('name')] = deepcopy(pkg... | f98f889ed2c8d980381253d05cf013ddb067d671 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/f98f889ed2c8d980381253d05cf013ddb067d671/Pkgmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3340,
12,
2890,
4672,
9163,
3116,
2713,
501,
12597,
26418,
3167,
812,
2711,
329,
18,
1016,
12,
2890,
13,
365,
18,
10308,
273,
2618,
364,
2117,
316,
365,
18,
8219,
30,
364,
3475,
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,
3340,
12,
2890,
4672,
9163,
3116,
2713,
501,
12597,
26418,
3167,
812,
2711,
329,
18,
1016,
12,
2890,
13,
365,
18,
10308,
273,
2618,
364,
2117,
316,
365,
18,
8219,
30,
364,
3475,
316,
2... | |
GetValue = wx.StaticText.GetLabel SetValue = wx.StaticText.SetLabel | def GetValue(self): """ Get the label, un-doubling any embedded ampersands """ return self.GetLabel().replace(u'&&', u'&') def SetValue(self, newValue): """ Set the label, doubling any embedded ampersands """ self.SetLabel(newValue.replace(u'&', u'&&')) | def OnEnterPressed(self, event): self.blockItem.postEventByName ('EnterPressed', {'text':self.GetValue()}) event.Skip() | d74c1676299892604a63ca789e0e129aec9c9db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d74c1676299892604a63ca789e0e129aec9c9db4/AttributeEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
10237,
24624,
12,
2890,
16,
871,
4672,
365,
18,
2629,
1180,
18,
2767,
1133,
5911,
7707,
10237,
24624,
2187,
13666,
955,
4278,
2890,
18,
967,
620,
1435,
6792,
871,
18,
6368,
1435,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
10237,
24624,
12,
2890,
16,
871,
4672,
365,
18,
2629,
1180,
18,
2767,
1133,
5911,
7707,
10237,
24624,
2187,
13666,
955,
4278,
2890,
18,
967,
620,
1435,
6792,
871,
18,
6368,
1435,
2... |
v += array(-1+1.j)/0. seterr(**olderr) | try: v += array(-1+1.j)/0. finally: seterr(**olderr) | def test_complex_bad2(self): v = 1+1j olderr = seterr(divide='ignore', invalid='ignore') v += array(-1+1.j)/0. seterr(**olderr) vals = nan_to_num(v) assert_all(isfinite(vals)) #assert_all(vals.imag > 1e10) and assert_all(isfinite(vals)) # !! This is actually (unexpectedly) positive # !! inf. Comment out for now, and ... | 5b22c87bed10fd5c3e028d23590e9b6dd5e8d3af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/5b22c87bed10fd5c3e028d23590e9b6dd5e8d3af/test_type_check.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
14259,
67,
8759,
22,
12,
2890,
4672,
331,
273,
404,
15,
21,
78,
1592,
370,
273,
444,
370,
12,
2892,
831,
2218,
6185,
2187,
2057,
2218,
6185,
6134,
775,
30,
331,
1011,
526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14259,
67,
8759,
22,
12,
2890,
4672,
331,
273,
404,
15,
21,
78,
1592,
370,
273,
444,
370,
12,
2892,
831,
2218,
6185,
2187,
2057,
2218,
6185,
6134,
775,
30,
331,
1011,
526,
... |
self.Page.header = re.sub('{{'+self.tpl+'\n.*?\n}}',self.attr2text(),self.Page.header,re.DOTALL) | rx = re.compile('{{'+self.tpl+'\n.*?\n}}',re.DOTALL) self.Page.header = rx.sub(self.attr2text(),self.Page.header) | def run(self): whys = self.analyzePage() if self.archivedThreads < int(self.get('minthreadstoarchive',2)): return #We might not want to archive a measly few threads (lowers edit frequency) if whys: #Save the archives first (so that bugs don't cause a loss of data) for a in sorted(self.archives.keys()): self.commentPara... | 2689f70d2c9711be5e01f3152382faa9eb1c3317 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2689f70d2c9711be5e01f3152382faa9eb1c3317/archivebot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
600,
1900,
273,
365,
18,
304,
9508,
1964,
1435,
309,
365,
18,
991,
2950,
13233,
411,
509,
12,
2890,
18,
588,
2668,
1154,
5930,
30168,
10686,
2187,
22,
3719,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
600,
1900,
273,
365,
18,
304,
9508,
1964,
1435,
309,
365,
18,
991,
2950,
13233,
411,
509,
12,
2890,
18,
588,
2668,
1154,
5930,
30168,
10686,
2187,
22,
3719,
30,
3... |
except rtm.RTMAPIError as exception: | except rtm.RTMAPIErron, exception: | def synchronize(self): try: self.synchronizeWorker() except rtm.RTMAPIError as exception: self.__log(str(exception)) self.close_gui(str(exception)) except rtm.RTMError as exception: self.__log(str(exception)) self.close_gui(str(exception)) except Exception as exception: self.__log(str(exception)) self.close_gui(_("Sync... | f8ad1caec5debd7e9dcf332b643c62babb5cf237 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/f8ad1caec5debd7e9dcf332b643c62babb5cf237/syncengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
12,
2890,
4672,
775,
30,
365,
18,
87,
2600,
554,
6671,
1435,
1335,
8253,
81,
18,
12185,
49,
2557,
2524,
265,
16,
1520,
30,
365,
16186,
1330,
12,
701,
12,
4064,
3719,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
12,
2890,
4672,
775,
30,
365,
18,
87,
2600,
554,
6671,
1435,
1335,
8253,
81,
18,
12185,
49,
2557,
2524,
265,
16,
1520,
30,
365,
16186,
1330,
12,
701,
12,
4064,
3719,
365,
18,
... |
help="""Run in console (non-GUI mode""") | help="""Run in console (non-GUI mode)""") | def get_opts(): usage = """ | 303596aa29bbe9d94cc1f2d3e0dd6f6866cc8e79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/303596aa29bbe9d94cc1f2d3e0dd6f6866cc8e79/lpreport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4952,
13332,
4084,
273,
3536,
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,
1652,
336,
67,
4952,
13332,
4084,
273,
3536,
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... |
second = int(float(params.get('second', 0))) | second = int(params.get('second', 0)) | def _parse_date_iso8601(dateString): '''Parse a variety of ISO-8601-compatible formats like 20040105''' m = None for _iso8601_match in _iso8601_matches: m = _iso8601_match(dateString) if m: break if not m: return if m.span() == (0, 0): return params = m.groupdict() ordinal = params.get('ordinal', 0) if ordinal: ordinal... | b46d7e4f5773873813bf0c2abf7f311d20f6ee9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/b46d7e4f5773873813bf0c2abf7f311d20f6ee9d/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
712,
67,
9699,
14181,
12,
712,
780,
4672,
9163,
3201,
279,
1394,
14369,
434,
9351,
17,
14181,
17,
10943,
6449,
3007,
4044,
27002,
6260,
26418,
312,
273,
599,
364,
389,
969... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
712,
67,
9699,
14181,
12,
712,
780,
4672,
9163,
3201,
279,
1394,
14369,
434,
9351,
17,
14181,
17,
10943,
6449,
3007,
4044,
27002,
6260,
26418,
312,
273,
599,
364,
389,
969... |
"""Catch shutil.rmtree failures on Windows when files are read-only.""" | """Catch shutil.rmtree failures on Windows when files are read-only, and only remove if root exists.""" | def _rmtree(root): """Catch shutil.rmtree failures on Windows when files are read-only.""" def _handle_error(fn, path, excinfo): os.chmod(path, 0666) fn(path) return shutil.rmtree(root, onerror=_handle_error) | d9b4f43f0a84062cd9c77c699b9b28e5e6d7ba88 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4547/d9b4f43f0a84062cd9c77c699b9b28e5e6d7ba88/slave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
86,
17371,
12,
3085,
4672,
3536,
14842,
11060,
18,
86,
17371,
11720,
603,
8202,
1347,
1390,
854,
855,
17,
3700,
16,
471,
1338,
1206,
309,
1365,
1704,
12123,
1652,
389,
4110,
67,
163... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
86,
17371,
12,
3085,
4672,
3536,
14842,
11060,
18,
86,
17371,
11720,
603,
8202,
1347,
1390,
854,
855,
17,
3700,
16,
471,
1338,
1206,
309,
1365,
1704,
12123,
1652,
389,
4110,
67,
163... |
cAlphaViewer.renderer.deleteAtom(atom.getHashKey()) | self.CalphaViewer.renderer.deleteAtom(atom.getHashKey()) | def removeSelectedAtoms(self): cAlphaViewer = self.app.viewers['calpha'] print 'helices', self.currentChainModel.helices.keys() print 'orphan strands', self.currentChainModel.orphanStrands.keys() print self.currentChainModel.secelList.keys() for resIndex in self.currentChainModel.getSelection(): res = self.currentChain... | 9fefa88d897047cb33ba1b9c7ca873fe31bb572c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/9fefa88d897047cb33ba1b9c7ca873fe31bb572c/structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7416,
14280,
12,
2890,
4672,
276,
9690,
18415,
273,
365,
18,
2910,
18,
1945,
414,
3292,
771,
2762,
3546,
1172,
296,
76,
292,
1242,
2187,
365,
18,
2972,
3893,
1488,
18,
76,
292,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7416,
14280,
12,
2890,
4672,
276,
9690,
18415,
273,
365,
18,
2910,
18,
1945,
414,
3292,
771,
2762,
3546,
1172,
296,
76,
292,
1242,
2187,
365,
18,
2972,
3893,
1488,
18,
76,
292,
1... |
global url_dict | def spamprob(self, wordstream, evidence=False, time_limit=None): global url_dict start_time = time.time() prob, clues = Classifier.spamprob(self, wordstream, True) if len(clues) < options["Classifier", "max_discriminators"] and \ prob > options["Categorization", "ham_cutoff"] and \ prob < options["Categorization", "spa... | 63d2c607181208bb43c4291430a0ecf9a583d380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/63d2c607181208bb43c4291430a0ecf9a583d380/urlslurper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24824,
7748,
12,
2890,
16,
2076,
3256,
16,
14481,
33,
8381,
16,
813,
67,
3595,
33,
7036,
4672,
787,
67,
957,
273,
813,
18,
957,
1435,
3137,
16,
927,
3610,
273,
1659,
1251,
18,
1752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24824,
7748,
12,
2890,
16,
2076,
3256,
16,
14481,
33,
8381,
16,
813,
67,
3595,
33,
7036,
4672,
787,
67,
957,
273,
813,
18,
957,
1435,
3137,
16,
927,
3610,
273,
1659,
1251,
18,
1752,
... | |
class bzread: def __init__(self, f): self.zd = bz2.BZ2Decompressor() self.f = f self.buf = "" def read(self, l): while l > len(self.buf): r = self.f.read(4096) if r: self.buf += self.zd.decompress(r) else: break d, self.buf = self.buf[:l], self.buf[l:] return d repo.addchangegroup(bzread(f)) | def bzgenerator(f): zd = bz2.BZ2Decompressor() for chunk in f: yield zd.decompress(chunk) yield zd.flush() bzgen = bzgenerator(util.filechunkiter(f, 4096)) repo.addchangegroup(util.chunkbuffer(bzgen)) | def unbundle(ui, repo, fname): """apply a changegroup file""" f = urllib.urlopen(fname) if f.read(4) != "HG10": raise util.Abort("%s: not a Mercurial bundle file" % fname) class bzread: def __init__(self, f): self.zd = bz2.BZ2Decompressor() self.f = f self.buf = "" def read(self, l): while l > len(self.buf): r = self... | 0439119d10fed924c10542bed55b97e47983a316 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/0439119d10fed924c10542bed55b97e47983a316/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
9991,
12,
4881,
16,
3538,
16,
5299,
4672,
3536,
9010,
279,
2549,
1655,
585,
8395,
284,
273,
11527,
18,
295,
18589,
12,
12749,
13,
225,
309,
284,
18,
896,
12,
24,
13,
480,
315,
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,
640,
9991,
12,
4881,
16,
3538,
16,
5299,
4672,
3536,
9010,
279,
2549,
1655,
585,
8395,
284,
273,
11527,
18,
295,
18589,
12,
12749,
13,
225,
309,
284,
18,
896,
12,
24,
13,
480,
315,
4... |
def _pull_current_branch(self, buildscript): | def pull_current_branch(self, buildscript): | def _pull_current_branch(self, buildscript): """Pull the current branch if it is tracking a remote branch.""" if not self._is_tracking_a_remote_branch(self._get_current_branch()): return | f3dca446ec51b04ec85ec73c7ed97895744dff87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4596/f3dca446ec51b04ec85ec73c7ed97895744dff87/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
67,
2972,
67,
7500,
12,
2890,
16,
1361,
4263,
4672,
3536,
9629,
326,
783,
3803,
309,
518,
353,
11093,
279,
2632,
3803,
12123,
309,
486,
365,
6315,
291,
67,
6440,
67,
69,
67,
7222... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6892,
67,
2972,
67,
7500,
12,
2890,
16,
1361,
4263,
4672,
3536,
9629,
326,
783,
3803,
309,
518,
353,
11093,
279,
2632,
3803,
12123,
309,
486,
365,
6315,
291,
67,
6440,
67,
69,
67,
7222... |
'--vout', 'image', '--image-out-replace', '--image-out-prefix', 'C:\\default', | '--vout', 'image', | def init_vlc(*args): arg_pointers = make_string_list(*args) vlc = libvlc.libvlc_new(len(arg_pointers), arg_pointers, byref(exception)) check_exception() return vlc | 26fddf2f101f424be4687bbc72e5e4a35336d972 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/26fddf2f101f424be4687bbc72e5e4a35336d972/moviedata_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
27362,
30857,
1968,
4672,
1501,
67,
10437,
87,
273,
1221,
67,
1080,
67,
1098,
30857,
1968,
13,
331,
17704,
273,
2561,
27362,
18,
2941,
27362,
67,
2704,
12,
1897,
12,
3175,
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,
1208,
67,
27362,
30857,
1968,
4672,
1501,
67,
10437,
87,
273,
1221,
67,
1080,
67,
1098,
30857,
1968,
13,
331,
17704,
273,
2561,
27362,
18,
2941,
27362,
67,
2704,
12,
1897,
12,
3175,
67,
... |
configList.append('%s : %s' % (configKey, cValStr)) | configList.append('%s : %s' % (configKey, cValStr.replace('\\', '/'))) | def _exportNetworkAsDOT(self, glyphs, filename): (pmsDict, connectionList, glyphPosDict) = \ self._serialiseNetwork(glyphs) | 8511aacdbe513ff9a8b5841e22d427128a986b0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/8511aacdbe513ff9a8b5841e22d427128a986b0d/graphEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6530,
3906,
1463,
17591,
12,
2890,
16,
23404,
16,
1544,
4672,
261,
84,
959,
5014,
16,
1459,
682,
16,
9440,
1616,
5014,
13,
273,
521,
365,
6315,
8818,
784,
3906,
12,
19426,
87,
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,
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,
6530,
3906,
1463,
17591,
12,
2890,
16,
23404,
16,
1544,
4672,
261,
84,
959,
5014,
16,
1459,
682,
16,
9440,
1616,
5014,
13,
273,
521,
365,
6315,
8818,
784,
3906,
12,
19426,
87,
13,... |
print '!! Identifying member type definitions for %s:' % (self.name(),) | def __completeResolution (self, wxs, body, variety, alternative): if self.__pythonSupport is None: # @todo ERROR multiple references print '%s based on %s' % (self.name(), self.__baseTypeDefinition.name()) self._setPythonSupport(self.__baseTypeDefinition.pythonSupport()) assert self.__variety is None assert variety is ... | d564904c54eda6ecda7cdea92b5f10e44422c2fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/d564904c54eda6ecda7cdea92b5f10e44422c2fc/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6226,
11098,
261,
2890,
16,
7075,
87,
16,
1417,
16,
1394,
14369,
16,
10355,
4672,
309,
365,
16186,
8103,
6289,
353,
599,
30,
468,
632,
9012,
5475,
3229,
5351,
1172,
1995,
87,
2511,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6226,
11098,
261,
2890,
16,
7075,
87,
16,
1417,
16,
1394,
14369,
16,
10355,
4672,
309,
365,
16186,
8103,
6289,
353,
599,
30,
468,
632,
9012,
5475,
3229,
5351,
1172,
1995,
87,
2511,... | |
"on_focus_out" : self.on_focus_out | def __init__(self, task, refresh_callback=None,delete_callback=None,close_callback=None) : self.gladefile = "gtd-gnome.glade" self.wTree = gtk.glade.XML(self.gladefile, "TaskEditor") self.cal_tree = gtk.glade.XML(self.gladefile, "calendar") #Create our dictionay and connect it dic = { "mark_as_done_clicked" : self.cha... | c63a199326bccb116f2c69a25e318d7104d9b153 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8234/c63a199326bccb116f2c69a25e318d7104d9b153/taskeditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1562,
16,
4460,
67,
3394,
33,
7036,
16,
3733,
67,
3394,
33,
7036,
16,
4412,
67,
3394,
33,
7036,
13,
294,
365,
18,
7043,
69,
536,
398,
273,
315,
75,
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,
2738,
972,
12,
2890,
16,
1562,
16,
4460,
67,
3394,
33,
7036,
16,
3733,
67,
3394,
33,
7036,
16,
4412,
67,
3394,
33,
7036,
13,
294,
365,
18,
7043,
69,
536,
398,
273,
315,
75,
4... | |
self.LOG('[style_editor] [Ok] Ok Clicked Closing Window') | self.LOG('[style_editor][info] Ok Clicked Closing Window') | def OnOk(self, evt): """Catches the OK button click and checks if any changes need to be saved before the window closes. @param evt: event that called this handler | b3e38ebc4cf9ab011d5749e203267b22b381195f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/b3e38ebc4cf9ab011d5749e203267b22b381195f/style_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
8809,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
326,
7791,
3568,
4682,
471,
4271,
309,
1281,
3478,
1608,
358,
506,
5198,
1865,
326,
2742,
13445,
18,
632,
891,
6324,
30,
871,
716,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
8809,
12,
2890,
16,
6324,
4672,
3536,
14842,
281,
326,
7791,
3568,
4682,
471,
4271,
309,
1281,
3478,
1608,
358,
506,
5198,
1865,
326,
2742,
13445,
18,
632,
891,
6324,
30,
871,
716,... |
str = self._table_header(heading, 'details')+'</table>' | str = self._table_header(heading, 'details')+'</table>\n' | def _var_details(self, variables, container, heading='Variable Details'): """ @return: The HTML code for a variable details table. This is used by L{_module_to_html} to describe the variables in a module; and by L{_class_to_html} to describe instance variables and class variables. @rtype: C{string} """ variables = sel... | 149531a2cda79700e8a2b9b1cbdefc79ff90296b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/149531a2cda79700e8a2b9b1cbdefc79ff90296b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
1014,
18,
225,
1220,
353,
1399,
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,
389,
1401,
67,
6395,
12,
2890,
16,
3152,
16,
1478,
16,
11053,
2218,
3092,
21897,
11,
4672,
3536,
632,
2463,
30,
1021,
3982,
981,
364,
279,
2190,
3189,
1014,
18,
225,
1220,
353,
1399,
6... |
def recv (self, *args): | def recv(self, *args): | def recv (self, *args): return os.read(self.fd, *args) | 79991224d1b5f3a4ab074ddac83ef59addf853be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79991224d1b5f3a4ab074ddac83ef59addf853be/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
380,
1968,
4672,
327,
1140,
18,
896,
12,
2890,
18,
8313,
16,
380,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
380,
1968,
4672,
327,
1140,
18,
896,
12,
2890,
18,
8313,
16,
380,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.state = (nsdict, ['xml'], []) | self.state = (nsdict, {'xml':''}, {}) | def __init__(self, node, write, **kw): '''Create and run the implementation.''' | eac45ef0ae4c46468fce1a5d88da06c712dbb153 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/eac45ef0ae4c46468fce1a5d88da06c712dbb153/c14n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
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,
1001,
2738,
972,
12,
2890,
16,
756,
16,
1045,
16,
2826,
9987,
4672,
9163,
1684,
471,
1086,
326,
4471,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if self.max_gap < 0: raise Exception, "crash!" | assert self.max_gap >= 0 | def set_time_slides(self, offsetdictlist): """ Set the list of time slides to be considered when deciding the bins in which each file belongs. Must be called before packing any files. The input is a list of dictionaries, each mapping instruments to offsets. """ self.timeslides = offsetdictlist min_offset = min(min(ti... | 5afd00a93e9df3377b0390c41b2e01173c997532 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/5afd00a93e9df3377b0390c41b2e01173c997532/ligolw_cafe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
813,
30119,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
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,
444,
67,
957,
67,
2069,
4369,
12,
2890,
16,
1384,
1576,
1098,
4672,
3536,
1000,
326,
666,
434,
813,
30119,
358,
506,
7399,
1347,
2109,
10415,
326,
8963,
316,
1492,
1517,
585,
11081,
18,
... |
print 'Processing %s...' % filename, | print('Processing %s...' % filename) | def runSampleCode(srcFile, names): begin_re = re.compile('^#begin_file\s*(.*)') end_re = re.compile('^#end_file\s*$') # src = open(srcFile, 'r') tmpSrc = tmpSrcName = None filename = None count = 0 skip = False for lineno, line in enumerate(src.readlines()): if begin_re.match(line): if tmpSrc is not None: print 'ERROR ... | f555bea45dd15b0392d07aa35deb16d0b690f467 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/f555bea45dd15b0392d07aa35deb16d0b690f467/runSampleCode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
8504,
1085,
12,
4816,
812,
16,
1257,
4672,
2376,
67,
266,
273,
283,
18,
11100,
2668,
66,
7,
10086,
67,
768,
64,
87,
14,
7444,
2506,
13,
679,
67,
266,
273,
283,
18,
11100,
2668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
8504,
1085,
12,
4816,
812,
16,
1257,
4672,
2376,
67,
266,
273,
283,
18,
11100,
2668,
66,
7,
10086,
67,
768,
64,
87,
14,
7444,
2506,
13,
679,
67,
266,
273,
283,
18,
11100,
2668,... |
elif mapname == 'Levels/MP_002': return ('Valparaiso') elif mapname == 'Levels/MP_003': return ('Laguna Alta') elif mapname == 'Levels/MP_004': return ('Isla Inocentes') elif mapname == 'Levels/MP_005': return ('Atacama Desert') elif mapname == 'Levels/MP_006': return ('Arica Harbor') elif mapname == 'Levels/MP_00... | elif mapname.startswith('Levels/MP_002'): return 'Valparaiso' elif mapname.startswith('Levels/MP_003'): return 'Laguna Alta' elif mapname.startswith('Levels/MP_004'): return 'Isla Inocentes' elif mapname.startswith('Levels/MP_005'): return 'Atacama Desert' elif mapname.startswith('Levels/MP_006'): return 'Arica Har... | def getEasyName(self, mapname): """ Change levelname to real name """ if mapname == 'Levels/MP_001': return ('Panama Canal') elif mapname == 'Levels/MP_002': return ('Valparaiso') | fb2d204dd4a160f5781626ac3faf974112415f4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/fb2d204dd4a160f5781626ac3faf974112415f4b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
15762,
461,
12,
2890,
16,
852,
529,
4672,
3536,
7576,
1801,
529,
358,
2863,
508,
3536,
309,
852,
529,
422,
296,
12240,
19,
4566,
67,
11664,
4278,
327,
7707,
4069,
20789,
4480,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4774,
15762,
461,
12,
2890,
16,
852,
529,
4672,
3536,
7576,
1801,
529,
358,
2863,
508,
3536,
309,
852,
529,
422,
296,
12240,
19,
4566,
67,
11664,
4278,
327,
7707,
4069,
20789,
4480,
287,... |
this = apply(_quickfix.new_NoCompIDs, args) | this = _quickfix.new_NoCompIDs(*args) | def __init__(self, *args): this = apply(_quickfix.new_NoCompIDs, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
2945,
5103,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2279,
2945,
5103,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
if do_copy: macostools.copy(os.path.join(sys.exec_prefix, src), dst) else: macostools.mkalias(os.path.join(sys.exec_prefix, src), dst) | try: if do_copy: macostools.copy(os.path.join(sys.exec_prefix, src), dst) else: macostools.mkalias(os.path.join(sys.exec_prefix, src), dst) except IOError: return 0 | def mkcorealias(src, altsrc): import string import macostools version = string.split(sys.version)[0] dst = getextensiondirfile(src+ ' ' + version) if not dst: return 0 if not os.path.exists(os.path.join(sys.exec_prefix, src)): if not os.path.exists(os.path.join(sys.exec_prefix, altsrc)): return 0 src = altsrc try: os.u... | 5ee71265c8bcb552489c7e2123551459a896e724 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5ee71265c8bcb552489c7e2123551459a896e724/ConfigurePython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
3644,
4930,
12,
4816,
16,
524,
3428,
1310,
4672,
1930,
533,
1930,
5318,
669,
8192,
1177,
273,
533,
18,
4939,
12,
9499,
18,
1589,
25146,
20,
65,
3046,
273,
336,
6447,
1214,
768,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
3644,
4930,
12,
4816,
16,
524,
3428,
1310,
4672,
1930,
533,
1930,
5318,
669,
8192,
1177,
273,
533,
18,
4939,
12,
9499,
18,
1589,
25146,
20,
65,
3046,
273,
336,
6447,
1214,
768,
1... |
tls.fit_to_chain(cpartition.chain) | try: tls.fit_to_chain(cpartition.chain) except (RuntimeError, numpy.linalg.linalg.LinAlgError), e: console.stdoutln(" Runtime error: %s, trying to continue..." % e) pass progress += 0.4/analysis.num_chains() progress_report = open("progress","w+") print >> progress_report, progress progress_report.close() ... | def FitConstrainedTLSModel(analysis): """ """ console.endln() console.stdoutln("CALCULATING CONSTRAINED TLS MODEL FOR VISUALIZATION") for chain in analysis.iter_chains(): console.stdoutln("CHAIN %s" % (chain.chain_id)) for cpartition in chain.partition_collection.iter_chain_partitions(): console.stdoutln("TLS GROUPS: %... | 1998fbb4c0f1e58f88896c151369e85ebc7a665a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/1998fbb4c0f1e58f88896c151369e85ebc7a665a/tlsmd_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30504,
442,
31142,
9905,
1488,
12,
12746,
4672,
3536,
3536,
2983,
18,
409,
2370,
1435,
2983,
18,
10283,
2370,
2932,
7913,
39,
1506,
28054,
3492,
10383,
706,
2056,
8098,
21700,
12108,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30504,
442,
31142,
9905,
1488,
12,
12746,
4672,
3536,
3536,
2983,
18,
409,
2370,
1435,
2983,
18,
10283,
2370,
2932,
7913,
39,
1506,
28054,
3492,
10383,
706,
2056,
8098,
21700,
12108,
776,
... |
sage: g.plot(layout = "graphviz", prog = "circo") | sage: g.plot(layout = "graphviz", prog = "circo") | def layout_graphviz(self, dim = 2, prog = 'dot', **options): """ Calls ``graphviz`` to compute a layout of the vertices of this graph. | 06f830c7a677dbabf75020fadb7c4c3325a771f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/06f830c7a677dbabf75020fadb7c4c3325a771f8/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
67,
4660,
23167,
12,
2890,
16,
2464,
273,
576,
16,
11243,
273,
296,
9811,
2187,
2826,
2116,
4672,
3536,
23665,
12176,
4660,
23167,
10335,
358,
3671,
279,
3511,
434,
326,
6928,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3511,
67,
4660,
23167,
12,
2890,
16,
2464,
273,
576,
16,
11243,
273,
296,
9811,
2187,
2826,
2116,
4672,
3536,
23665,
12176,
4660,
23167,
10335,
358,
3671,
279,
3511,
434,
326,
6928,
434,
... |
for i in xrange(1, len(args)): benchmark = load_benchmark(args[i]) | for arg in args[1:]: benchmark = load_benchmark(arg) | def main(argv=None): if argv is None: argv = sys.argv from optparse import OptionParser parser = OptionParser() parser.add_option("-d", "--debug", action="store_true", help="enable debug output") (options, args) = parser.parse_args(argv) if len(args) < 2: parser.error("invalid number of arguments") if (options.debug): ... | 01d29fd7c4eee446dacc880576048b23e5e32587 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1073/01d29fd7c4eee446dacc880576048b23e5e32587/benchmark.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
628,
2153,
2670,
1930,
18862,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
628,
2153,
2670,
1930,
18862,
2082,
273,
18862,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
72,
3113,
... |
auto_synomyms.append(atom_name[1:] + atom[0]) | auto_synomyms.append(atom_name[1:] + atom_name[0]) | def _get_mappings(self, mon_lib_srv): self.monomer_atom_dict = atom_dict = self.monomer.atom_dict() processed_atom_names = {} self.expected_atom_i_seqs = {} self.unexpected_atom_i_seqs = {} self.ignored_atom_i_seqs = {} self.duplicate_atom_i_seqs = {} is_rna_dna = (self.monomer.chem_comp.group == "rna_dna_placeholder" ... | 4d7394b39bef96623a18d2e6ffcaf230884672f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/4d7394b39bef96623a18d2e6ffcaf230884672f4/pdb_interpretation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
16047,
12,
2890,
16,
6921,
67,
2941,
67,
20818,
4672,
365,
18,
2586,
362,
264,
67,
7466,
67,
1576,
273,
3179,
67,
1576,
273,
365,
18,
2586,
362,
264,
18,
7466,
67,
1576... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
16047,
12,
2890,
16,
6921,
67,
2941,
67,
20818,
4672,
365,
18,
2586,
362,
264,
67,
7466,
67,
1576,
273,
3179,
67,
1576,
273,
365,
18,
2586,
362,
264,
18,
7466,
67,
1576... |
print "open", askopenfilename(filetypes=[("all files", "*")]).encode(enc) print "saveas", asksaveasfilename().encode(enc) | def askdirectory (**options): "Ask for a directory, and return the file name" return Directory(**options).show() | 1a4fc2cf2ac55d19c7e8763c84f51530689d6694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1a4fc2cf2ac55d19c7e8763c84f51530689d6694/tkFileDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
6827,
5149,
261,
636,
2116,
4672,
315,
23663,
364,
279,
1867,
16,
471,
327,
326,
585,
508,
6,
327,
8930,
12,
636,
2116,
2934,
4500,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
default = 'My Catalog', | default = 'My Books', | def run(self, path_to_output, opts, db, notification=DummyReporter()): from calibre.utils.logging import Log | 073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
589,
67,
869,
67,
2844,
16,
1500,
16,
1319,
16,
3851,
33,
20094,
13289,
1435,
4672,
628,
26139,
266,
18,
5471,
18,
11167,
1930,
1827,
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,
1086,
12,
2890,
16,
589,
67,
869,
67,
2844,
16,
1500,
16,
1319,
16,
3851,
33,
20094,
13289,
1435,
4672,
628,
26139,
266,
18,
5471,
18,
11167,
1930,
1827,
2,
-100,
-100,
-100,
-100,
-10... |
new_obj = AudioObject.init_from_file(self.wav_filename) | new_obj = AudioObject.init_from_file(wav_filename) | def test_init_from_file(self): new_obj = AudioObject.init_from_file(self.wav_filename) filename = 'example.wav' self.assertEqual(filename, new_obj.label) self.assertEqual(filename, new_obj.mods.content.title) self.assertEqual(filename, new_obj.dc.content.title) self.assert_(isinstance(new_obj.audio.content, file), 'aud... | ebf7098ec98c4922b049ba6136693a701aa15f39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6133/ebf7098ec98c4922b049ba6136693a701aa15f39/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2738,
67,
2080,
67,
768,
12,
2890,
4672,
394,
67,
2603,
273,
15045,
921,
18,
2738,
67,
2080,
67,
768,
12,
24801,
67,
3459,
13,
1544,
273,
296,
8236,
18,
24801,
11,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2738,
67,
2080,
67,
768,
12,
2890,
4672,
394,
67,
2603,
273,
15045,
921,
18,
2738,
67,
2080,
67,
768,
12,
24801,
67,
3459,
13,
1544,
273,
296,
8236,
18,
24801,
11,
365,
18,... |
Returns the upper mechanical word. The word `s'_{\alpha,\rho}` is the *upper mechanical word* with slope `\alpha` and intercept `\rho` defined by | Returns the upper mechanical word with slope `\alpha` and intercept `\rho` The upper mechanical word `s'_{\alpha,\rho}` with slope `\alpha` and intercept `\rho` is defined by | def UpperMechanicalWord(self, alpha, rho=0, alphabet=None): r""" Returns the upper mechanical word. | b3fbc1cf28b1612f234458261a8411d34f117fd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b3fbc1cf28b1612f234458261a8411d34f117fd9/word_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29844,
4667,
7472,
1706,
3944,
12,
2890,
16,
4190,
16,
10360,
33,
20,
16,
10877,
33,
7036,
4672,
436,
8395,
2860,
326,
3854,
1791,
7472,
1706,
2076,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29844,
4667,
7472,
1706,
3944,
12,
2890,
16,
4190,
16,
10360,
33,
20,
16,
10877,
33,
7036,
4672,
436,
8395,
2860,
326,
3854,
1791,
7472,
1706,
2076,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
('amount_to_pay', '>',0)], context) | ('amount_to_pay', '>', 0)], context=context) | def search_entries(self, cr, uid, data, context): pool= pooler.get_pool(cr.dbname) # Search for move line to pay: mline_ids = pool.get('account.move.line').search(cr, uid, [('reconcile_id', '=', False), ('amount_to_pay', '>',0)], context) if not mline_ids: ask_fields['entries']['domain']= [('id','in',[])] return {} ... | b9a414ffa11af2380ac05357ed6b354eb0750457 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/b9a414ffa11af2380ac05357ed6b354eb0750457/wizard_payment_order.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
8219,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
2845,
33,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
468,
5167,
364,
3635,
980,
358,
8843,
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,
1623,
67,
8219,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
2845,
33,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
468,
5167,
364,
3635,
980,
358,
8843,
30,
... |
self.partitions_sites = [sj.backend.requirements.sites for sj in sjl] | if stripProxy(self.backend)._name == 'LCG': self.partitions_sites = [sj.backend.requirements.sites for sj in sjl] | def check(self): super(AnaTransform,self).check() if self.inputdata.dataset == "": return logger.warning("Determining partition splitting...") try: if not self.backend.requirements.cloud: self.backend.requirements.cloud = "DE" except: pass if not self.inputdata.dataset: return splitter = DQ2JobSplitter() splitter.numfi... | 2e3348025888947730b3b7b4a3e4b7c9b8259afd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/2e3348025888947730b3b7b4a3e4b7c9b8259afd/AnaTransform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2240,
12,
979,
69,
4059,
16,
2890,
2934,
1893,
1435,
309,
365,
18,
2630,
892,
18,
8682,
422,
1408,
30,
327,
1194,
18,
8551,
2932,
9139,
310,
3590,
20347,
7070,
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,
866,
12,
2890,
4672,
2240,
12,
979,
69,
4059,
16,
2890,
2934,
1893,
1435,
309,
365,
18,
2630,
892,
18,
8682,
422,
1408,
30,
327,
1194,
18,
8551,
2932,
9139,
310,
3590,
20347,
7070,
13,... |
navmenuid='login') | navmenuid='youraccount') | def register(self, req, form): args = wash_urlargd(form, { 'p_nickname': (str, None), 'p_email': (str, None), 'p_pw': (str, None), 'p_pw2': (str, None), 'action': (str, "login"), 'referer': (str, "")}) | 4c876fe64fb130207f0be345ae26cff77b07aac9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/4c876fe64fb130207f0be345ae26cff77b07aac9/websession_webinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2890,
16,
1111,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
288,
296,
84,
67,
17091,
529,
4278,
261,
701,
16,
599,
3631,
296,
84,
67,
3652,
4278,
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,
1744,
12,
2890,
16,
1111,
16,
646,
4672,
833,
273,
341,
961,
67,
718,
3175,
72,
12,
687,
16,
288,
296,
84,
67,
17091,
529,
4278,
261,
701,
16,
599,
3631,
296,
84,
67,
3652,
4278,
2... |
self._remote("openURL '%s'" % url) open_new = open class Grail: | if new == 2: action = "newTab '%s'" % url else: action = "openURL '%s'" % url ok = self._remote(url, action) return ok class Opera(UnixBrowser): "Launcher class for Opera browser." raise_opts = ("", "-raise") remote_cmd = '-remote' remote_action = "openURL(%s)" remote_action_newwin = "openURL(%s,new-window)" remote... | def open(self, url, new=1, autoraise=1): # XXX Currently I know no way to prevent KFM from # opening a new win. assert "'" not in url self._remote("openURL '%s'" % url) | e8f244305ef4f257f6999b69601f4316b31faa5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e8f244305ef4f257f6999b69601f4316b31faa5e/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
21,
16,
2059,
10610,
784,
33,
21,
4672,
468,
11329,
15212,
467,
5055,
1158,
4031,
358,
5309,
1475,
42,
49,
628,
468,
10890,
279,
394,
5657,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
21,
16,
2059,
10610,
784,
33,
21,
4672,
468,
11329,
15212,
467,
5055,
1158,
4031,
358,
5309,
1475,
42,
49,
628,
468,
10890,
279,
394,
5657,
18,
... |
INPUT: | INPUT:: | def explain_picklejar(dir, catch_exceptions=True): r""" Given a directory or a .tar.bz2 of pickles, we unpickle each of them three times: once with cPickle, once with explain_pickle with in_current_sage=True, and once with explain_pickle with in_current_sage=False. We verify that each of these gives the same answer (w... | de4cee906ed150c2753937bd5bc2aa883eeb3987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/de4cee906ed150c2753937bd5bc2aa883eeb3987/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19765,
67,
20847,
11930,
12,
1214,
16,
1044,
67,
11855,
33,
5510,
4672,
436,
8395,
16803,
279,
1867,
578,
279,
263,
11718,
18,
25292,
22,
434,
6002,
1040,
16,
732,
640,
20847,
1517,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19765,
67,
20847,
11930,
12,
1214,
16,
1044,
67,
11855,
33,
5510,
4672,
436,
8395,
16803,
279,
1867,
578,
279,
263,
11718,
18,
25292,
22,
434,
6002,
1040,
16,
732,
640,
20847,
1517,
434,... |
if not seFiles[oldSE].has_key(newSE): | if not seFiles[oldSE].has_key( newSE ): | def setReplicaHost(self,replicaTuples,connection=False): gLogger.info("TransformationDB.setReplicaHost: Attempting to set SE for %s replicas." % len(replicaTuples)) successful = {} failed = {} lfns = [] for lfn,pfn,oldSE,newSE in replicaTuples: lfns.append(lfn) connection = self.__getConnection(connection) res = self._... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14222,
2594,
12,
2890,
16,
30065,
25813,
16,
4071,
33,
8381,
4672,
314,
3328,
18,
1376,
2932,
15292,
2290,
18,
542,
14222,
2594,
30,
12864,
310,
358,
444,
3174,
364,
738,
87,
21545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14222,
2594,
12,
2890,
16,
30065,
25813,
16,
4071,
33,
8381,
4672,
314,
3328,
18,
1376,
2932,
15292,
2290,
18,
542,
14222,
2594,
30,
12864,
310,
358,
444,
3174,
364,
738,
87,
21545,... |
shortargs = "hf:msta" longargs = ["help", "filename=", "fomodel", "somodel", "source", "all"] | shortargs = "hf:mstad" longargs = ["help", "filename=", "fomodel", "somodel", "source", "all", "debug"] | def main(args): """Main function: deal with command line arguments and start calculation as reqd.""" #Start the logging module startlogging() #Set up arguments shortargs = "hf:msta" longargs = ["help", "filename=", "fomodel", "somodel", "source", "all"] try: opts, args = getopt.getopt(args, shortargs, longargs) excep... | ad78a8656d8cde55a2afa1487ae8ad264dbb861c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/ad78a8656d8cde55a2afa1487ae8ad264dbb861c/harness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
3536,
6376,
445,
30,
10490,
598,
1296,
980,
1775,
471,
787,
11096,
487,
1111,
72,
12123,
225,
468,
1685,
326,
2907,
1605,
787,
11167,
1435,
225,
468,
694,
731,
1775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
4672,
3536,
6376,
445,
30,
10490,
598,
1296,
980,
1775,
471,
787,
11096,
487,
1111,
72,
12123,
225,
468,
1685,
326,
2907,
1605,
787,
11167,
1435,
225,
468,
694,
731,
1775... |
checklistDB=fu_utils.followupdqdb(False) | checklistDB=fu_utils.followupdqdb(True) | def getFileMatchingTrigger(jobname,string_id): if os.access(jobname,os.F_OK): filesInDir = os.listdir(jobname) for paramFile in filesInDir: if fnmatch.fnmatch(paramFile, "*"+string_id+"*.html"): return "../"+jobname+"/"+paramFile return False else: return False | 8b5713414ed966a1bb01d6a1a850501bda62e00e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/8b5713414ed966a1bb01d6a1a850501bda62e00e/makeCheckList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
9517,
6518,
12,
4688,
529,
16,
1080,
67,
350,
4672,
309,
1140,
18,
3860,
12,
4688,
529,
16,
538,
18,
42,
67,
3141,
4672,
1390,
382,
1621,
273,
1140,
18,
1098,
1214,
12,
4688,
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,
6034,
9517,
6518,
12,
4688,
529,
16,
1080,
67,
350,
4672,
309,
1140,
18,
3860,
12,
4688,
529,
16,
538,
18,
42,
67,
3141,
4672,
1390,
382,
1621,
273,
1140,
18,
1098,
1214,
12,
4688,
5... |
'--create', '--profileDir=%s' % logDir, '--scriptFile=%s' % testFile] | '--create', '--profileDir=%s' % profileDir, '--scriptFile=%s' % testFile] | def doPerformanceTests(hardhatScript, mode, workingDir, outputDir, buildVersion, log): chandlerDir = os.path.join(workingDir, "chandler") testDir = os.path.join(chandlerDir, 'tools', 'QATestScripts', 'Performance') logDir = os.path.join(chandlerDir, 'test_profile') chandlerLog = os.path.join(logDir, 'chan... | d48588f07295d6f856e73206d7433a5a2e12a046 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d48588f07295d6f856e73206d7433a5a2e12a046/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
25024,
14650,
12,
20379,
11304,
3651,
16,
1965,
16,
5960,
1621,
16,
21412,
16,
1361,
1444,
16,
613,
4672,
462,
464,
749,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
25024,
14650,
12,
20379,
11304,
3651,
16,
1965,
16,
5960,
1621,
16,
21412,
16,
1361,
1444,
16,
613,
4672,
462,
464,
749,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,
1621,
16,
3... |
logging.debug("after auth: user is invalid") if 'user.id' in session: logging.debug("after auth: destroying session: %r" % session) self.destroy_session(request, session) logging.debug("after auth: deleting session cookie!") request.delete_cookie(cookie_name, path=cookie_path, domain=cfg.cookie_domain) | for key in ['user.id', 'user.auth_method', 'user.auth_attribs', 'setuid', ]: if key in session: del session[key] logging.debug("no valid user, cleaned user info from session") | def update_session(key, val): """ put key/val into session, avoid writing if it is unchanged """ try: current_val = session[key] except KeyError: session[key] = val else: if val != current_val: session[key] = val | 32dd277b6685805649c9b16b73f7499d553270b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/32dd277b6685805649c9b16b73f7499d553270b8/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
3184,
12,
856,
16,
1244,
4672,
3536,
1378,
498,
19,
1125,
1368,
1339,
16,
4543,
7410,
309,
518,
353,
14827,
3536,
775,
30,
783,
67,
1125,
273,
1339,
63,
856,
65,
1335,
4999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3184,
12,
856,
16,
1244,
4672,
3536,
1378,
498,
19,
1125,
1368,
1339,
16,
4543,
7410,
309,
518,
353,
14827,
3536,
775,
30,
783,
67,
1125,
273,
1339,
63,
856,
65,
1335,
4999,
... |
does *not* advance the parsing position within the input string, it only verifies that the specified parse expression does *not* match at the current position. Also, NotAny does *not* skip over leading whitespace. NotAny | does *not* advance the parsing position within the input string, it only verifies that the specified parse expression does *not* match at the current position. Also, NotAny does *not* skip over leading whitespace. NotAny | def parseImpl( self, instring, loc, doActions=True ): self.expr.tryParse( instring, loc ) return loc, [] | f734f22ba11a967624c3b1351b79174f1d17c2ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3554/f734f22ba11a967624c3b1351b79174f1d17c2ac/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
365,
18,
8638,
18,
698,
3201,
12,
316,
1080,
16,
1515,
262,
327,
1515,
16,
5378,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
365,
18,
8638,
18,
698,
3201,
12,
316,
1080,
16,
1515,
262,
327,
1515,
16,
5378,
2,
-100,
-100,
-100,
... |
UnknownFiles(argv[2:]) | unknown_files = UnknownFiles(argv[2:]) for file in unknown_files: print "? " + "".join(file) | def main(argv=None): if argv is None: argv = sys.argv if len(argv) == 1: Help() return 0; try: # Create the directories where we store information about changelists if it # doesn't exist. if not os.path.exists(GetInfoDir()): os.mkdir(GetInfoDir()) if not os.path.exists(GetChangesDir()): os.mkdir(GetChangesDir()) # Fo... | ca1158bbb698e1029cd5a59b92043edbac5b937b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/ca1158bbb698e1029cd5a59b92043edbac5b937b/gcl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
309,
562,
12,
19485,
13,
422,
404,
30,
11288,
1435,
327,
374,
31,
225,
775,
30,
468,
1788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
309,
562,
12,
19485,
13,
422,
404,
30,
11288,
1435,
327,
374,
31,
225,
775,
30,
468,
1788,
... |
urlparse(url, bscheme, allow_framents) | urlparse(url, bscheme, allow_fragments) | def urljoin(base, url, allow_framents = 1): if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_framents) scheme, netloc, path, params, query, fragment = \ urlparse(url, bscheme, allow_framents) # XXX Unofficial hack: default netloc to bnetloc even if # schemes diffe... | e47e7c496015d6bf1f8df6187e40ee660f575844 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e47e7c496015d6bf1f8df6187e40ee660f575844/urlparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
74,
1940,
4877,
273,
404,
4672,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
74,
1940,
4877,
273,
404,
4672,
309,
486,
1026,
30,
327,
880,
7081,
2905,
16,
324,
2758,
1829,
16,
324,
803,
16,
324,
2010,
16,
324,
2271,
16,... |
['g obj_1', 'usemtl texture86'] | ['g obj_1', 'usemtl texture87'] | def obj_repr(self, render_params): """ Returns complete representation of the point as a sphere. | 87327e7c8fd18e4438140ec95ad093425fb8d221 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/87327e7c8fd18e4438140ec95ad093425fb8d221/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1081,
67,
12715,
12,
2890,
16,
1743,
67,
2010,
4672,
3536,
2860,
3912,
4335,
434,
326,
1634,
487,
279,
20041,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1081,
67,
12715,
12,
2890,
16,
1743,
67,
2010,
4672,
3536,
2860,
3912,
4335,
434,
326,
1634,
487,
279,
20041,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
passwd = HTTPPassowrdMgr() | passwd = HTTPPasswordMgr() | def __init__(self, passwd=None): if passwd is None: passwd = HTTPPassowrdMgr() self.passwd = passwd self.add_password = self.passwd.add_password self.__current_realm = None | 5bbbd4294ac08f3fc66ccaa5a749c7ff417782f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5bbbd4294ac08f3fc66ccaa5a749c7ff417782f0/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19093,
33,
7036,
4672,
309,
19093,
353,
599,
30,
19093,
273,
2239,
3913,
9455,
1435,
365,
18,
24002,
273,
19093,
365,
18,
1289,
67,
3664,
273,
365,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
19093,
33,
7036,
4672,
309,
19093,
353,
599,
30,
19093,
273,
2239,
3913,
9455,
1435,
365,
18,
24002,
273,
19093,
365,
18,
1289,
67,
3664,
273,
365,
18,
2... |
if isinstance (widget, gtk.Entry): | if isinstance (widget, gtk.SpinButton): value = widget.get_value () elif isinstance (widget, gtk.Entry): | def apply (self, data): values = {} for page in [self.appearance, self.behaviour, self.globals, self.colours]: for property in page: widget = self.widgets[property] | cbf2bcbf5b7ec333322b8903983160004c5c706d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/cbf2bcbf5b7ec333322b8903983160004c5c706d/prefs_profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
261,
2890,
16,
501,
4672,
924,
273,
2618,
364,
1363,
316,
306,
2890,
18,
438,
27668,
16,
365,
18,
31772,
477,
16,
365,
18,
16227,
16,
365,
18,
1293,
4390,
14542,
364,
1272,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
261,
2890,
16,
501,
4672,
924,
273,
2618,
364,
1363,
316,
306,
2890,
18,
438,
27668,
16,
365,
18,
31772,
477,
16,
365,
18,
16227,
16,
365,
18,
1293,
4390,
14542,
364,
1272,
316,
... |
'5.19.1' | '5.20.1' | def version(self): """ Return the version of Maxima that Sage includes. EXAMPLES:: sage: maxima.version() '5.19.1' """ return maxima_version() | 2b006428be4e00afbedaee51d658f607054cfb3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2b006428be4e00afbedaee51d658f607054cfb3a/maxima.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
12,
2890,
4672,
3536,
2000,
326,
1177,
434,
4238,
13888,
716,
348,
410,
6104,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
943,
13888,
18,
1589,
1435,
296,
25,
18,
3462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1177,
12,
2890,
4672,
3536,
2000,
326,
1177,
434,
4238,
13888,
716,
348,
410,
6104,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
943,
13888,
18,
1589,
1435,
296,
25,
18,
3462,
... |
new_doc.childNodes[0].appendChild(lines) | new_doc.append(lines) | def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n) | ce28b92c9e314579334271a58fcf4c5c65873e36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ce28b92c9e314579334271a58fcf4c5c65873e36/custom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
394,
67,
2434,
18,
2640,
1046,
12,
529,
13,
268,
273,
394,
67,
2434,
18,
2640,
17299,
12,
955,
13,
290,
18,
6923,
1763,
12,
8... |
d['debug'] = NO_PARAM, 'Print debugging information' | d['debug'] = COUNT_PARAM, 'Print helpful debugging output (use multiple times for internal debug info)' | def _processArgs(params, cfgMap, cfg, usage, argv=sys.argv, version=None, commonParams=None, useHelp=False, defaultGroup=None, interspersedArgs=True, hobbleShortOpts=False): argSet = {} # don't mangle the command line argv = argv[:] # historically, usage was generally a function to print out the usage # message. We w... | ace7bb741ce93dcc23e847781a2d75a28e17ebae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ace7bb741ce93dcc23e847781a2d75a28e17ebae/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
2615,
12,
2010,
16,
2776,
863,
16,
2776,
16,
4084,
16,
5261,
33,
9499,
18,
19485,
16,
1177,
33,
7036,
16,
2975,
1370,
33,
7036,
16,
999,
6696,
33,
8381,
16,
805,
1114,
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,
389,
2567,
2615,
12,
2010,
16,
2776,
863,
16,
2776,
16,
4084,
16,
5261,
33,
9499,
18,
19485,
16,
1177,
33,
7036,
16,
2975,
1370,
33,
7036,
16,
999,
6696,
33,
8381,
16,
805,
1114,
33,... |
self.makeTree(t) | self.makeRandomTree(t) | def testConstructors(self): """Test BoundedKDTreeBox2d constructors""" for t in self.treeSizes: self.makeTree(t) | 4ad6372a07364aefd9c635be6abf8692f532b8cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/4ad6372a07364aefd9c635be6abf8692f532b8cb/BoundedKDTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
29590,
12,
2890,
4672,
3536,
4709,
605,
12002,
47,
40,
2471,
3514,
22,
72,
19874,
8395,
225,
364,
268,
316,
365,
18,
3413,
11923,
30,
365,
18,
6540,
8529,
2471,
12,
88,
13,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29590,
12,
2890,
4672,
3536,
4709,
605,
12002,
47,
40,
2471,
3514,
22,
72,
19874,
8395,
225,
364,
268,
316,
365,
18,
3413,
11923,
30,
365,
18,
6540,
8529,
2471,
12,
88,
13,
225,
... |
vList.append( Violation(self, line.number) ) | vList.append( Violation(self, line) ) | def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if ( re.search("namespace.*namespace", line.stripped) ): vList.append( Violation(self, line.number) ) if ( re.search("^\s+namespace", line.stripped) ): vList.append( Violation(self, line.number) ) return vList | cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
309,
261,
283,
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,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
309,
261,
283,
18,
... |
('', ''))[data_type is 'thousands_sep'] | ('', ''))[data_type == 'thousands_sep'] | def numeric_tester(self, calc_type, calc_value, data_type, used_locale): """Compare calculation against known value, if available""" try: set_locale = setlocale(LC_NUMERIC) except Error: set_locale = "<not able to determine>" known_value = known_numerics.get(used_locale, ('', ''))[data_type is 'thousands_sep'] if known... | cba24a3fb675c9c20cba494369e6b72513eec740 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/cba24a3fb675c9c20cba494369e6b72513eec740/test__locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
67,
1078,
387,
12,
2890,
16,
7029,
67,
723,
16,
7029,
67,
1132,
16,
501,
67,
723,
16,
1399,
67,
6339,
4672,
3536,
8583,
11096,
5314,
4846,
460,
16,
309,
2319,
8395,
775,
30,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
67,
1078,
387,
12,
2890,
16,
7029,
67,
723,
16,
7029,
67,
1132,
16,
501,
67,
723,
16,
1399,
67,
6339,
4672,
3536,
8583,
11096,
5314,
4846,
460,
16,
309,
2319,
8395,
775,
30,
44... |
newline = newline + line[:res.start(0)] + res.group(1) + \ '=?' + CHARSET + '?Q?' + \ mime_encode(res.group(2), 1) + \ '?=' + res.group(3) line = line[res.end(0):] return newline + line | newline = '%s%s%s=?%s?Q?%s?=%s' % \ (newline, line[pos:res.start(0)], res.group(1), CHARSET, mime_encode(res.group(2), 1), res.group(3)) pos = res.end(0) return newline + line[pos:] | def mime_encode_header(line): '''Code a single header line as quoted-printable.''' newline = '' while 1: res = mime_header.search(line) if res is None: break newline = newline + line[:res.start(0)] + res.group(1) + \ '=?' + CHARSET + '?Q?' + \ mime_encode(res.group(2), 1) + \ '?=' + res.group(3) line = line[res.end(0):... | 4795dec0fc48b083ae2113ae52427d0c8712bd70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4795dec0fc48b083ae2113ae52427d0c8712bd70/mimify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4892,
67,
3015,
67,
3374,
12,
1369,
4672,
9163,
1085,
279,
2202,
1446,
980,
487,
9298,
17,
1188,
429,
1093,
6309,
9472,
273,
875,
1323,
404,
30,
400,
273,
4892,
67,
3374,
18,
3072,
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,
4892,
67,
3015,
67,
3374,
12,
1369,
4672,
9163,
1085,
279,
2202,
1446,
980,
487,
9298,
17,
1188,
429,
1093,
6309,
9472,
273,
875,
1323,
404,
30,
400,
273,
4892,
67,
3374,
18,
3072,
12,... |
elif isize != self.size: | elif isize != (self.size & 0xffffffffL): | def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. Note that the size # stored is the true file size mod 2**32. self.fil... | be9d6939423bb68592a55eaa008d2a40d82e266f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/be9d6939423bb68592a55eaa008d2a40d82e266f/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
9339,
12,
2890,
4672,
468,
1660,
8081,
855,
358,
326,
679,
434,
326,
585,
16,
1427,
732,
1240,
358,
12881,
316,
1353,
468,
358,
436,
264,
684,
326,
1725,
1731,
4191,
326,... |
s.tk.call( s._w, 'cmd', 'pleop' ) | s.cmd( 'pleop' ) | def pleop(s): | 5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
298,
556,
12,
87,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
298,
556,
12,
87,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def test_sndfile( audioio_env, conf ) : result = conf.CheckCHeader( 'sndfile.h' ) if not result : print "Could not find libsndfile headers! Please check your libsndfile installation" return False if sys.platform != 'win32' : result = conf.CheckLib( library='sndfile', symbol='sf_open_fd' ) else : result = conf.CheckLib(... | def test_sndfile( env, conf ) : crosscompiling=env.has_key('crossmingw') and env['crossmingw'] if not conf.CheckCHeader( 'sndfile.h' ) : return config_error( "Could not find libsndfile headers! Please check your libsndfile installation" ) libName = 'sndfile' if sys.platform == 'win32' or crosscompiling : libName = 'li... | def test_sndfile( audioio_env, conf ) : result = conf.CheckCHeader( 'sndfile.h' ) if not result : print "Could not find libsndfile headers! Please check your libsndfile installation" return False if sys.platform != 'win32' : result = conf.CheckLib( library='sndfile', symbol='sf_open_fd' ) else : result = conf.CheckLib(... | 3b2775acdc54a677de237741e3af8ce52371f3d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1456/3b2775acdc54a677de237741e3af8ce52371f3d0/clam_dependent_libs_checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
87,
4880,
768,
12,
7447,
1594,
67,
3074,
16,
2195,
262,
294,
563,
273,
2195,
18,
1564,
39,
1864,
12,
296,
87,
4880,
768,
18,
76,
11,
262,
309,
486,
563,
294,
1172,
315,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
87,
4880,
768,
12,
7447,
1594,
67,
3074,
16,
2195,
262,
294,
563,
273,
2195,
18,
1564,
39,
1864,
12,
296,
87,
4880,
768,
18,
76,
11,
262,
309,
486,
563,
294,
1172,
315,
4... |
if endprog.search(line, pos) >= 0: | if endprog.match(line, pos) >= 0: | def tokenize(readline, tokeneater=printtoken): lnum = parenlev = continued = 0 namechars, numchars = string.letters + '_', string.digits contstr = '' indents = [0] while 1: # loop over lines in stream line = readline() lnum = lnum + 1 pos, max = 0, len(line) if contstr: ... | 36a98271472c23dc45548e0ecd92b59df8d0d07b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/36a98271472c23dc45548e0ecd92b59df8d0d07b/tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13672,
12,
896,
1369,
16,
1147,
73,
2045,
33,
1188,
2316,
4672,
328,
2107,
273,
22146,
298,
90,
273,
17545,
5957,
273,
374,
508,
7549,
16,
818,
7549,
273,
533,
18,
26054,
397,
2070,
21... |
self.AssertSetEqual(tests_run, ['BarTest.Test1', 'BazTest.Test1']) | self.AssertSetEqual(tests_run, ['BarTest.TestOne', 'BazTest.TestOne']) | def testFlagOverridesEnvVar(self): """Tests that the --gtest_filter flag overrides the GTEST_FILTER environment variable.""" | 8811cad3eac09720ff023f0230f7f78253ae10a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14009/8811cad3eac09720ff023f0230f7f78253ae10a9/gtest_filter_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4678,
13084,
3491,
1537,
12,
2890,
4672,
3536,
14650,
716,
326,
1493,
75,
3813,
67,
2188,
2982,
9515,
326,
611,
16961,
67,
11126,
3330,
2190,
12123,
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,
0,
0,
0,
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,
4678,
13084,
3491,
1537,
12,
2890,
4672,
3536,
14650,
716,
326,
1493,
75,
3813,
67,
2188,
2982,
9515,
326,
611,
16961,
67,
11126,
3330,
2190,
12123,
2,
-100,
-100,
-100,
-100,
-100,
... |
self.imagePreview(prevPath=self.picDir+"/thumbs/"+"thumb_"+fileName) | wx.CallAfter(self.imagePreview,self.picDir+"/thumbs/"+"thumb_"+fileName) | def sync(): if self.dirEntry.GetValue()!="" and self.gpxEntry.GetValue!="": wx.CallAfter(self.consolePrint,"\n------\n"+_("Beginning synchronization with ")\ +_("UTC Offset =")+self.utcEntry.GetValue()+\ _(" hours and maximum time difference = ")+self.timerangeEntry.GetValue() +_(" seconds")+"\n") else: pass geo=GpicS... | 1b3ba7e0acbaf2fc6e0fbfb4198c454c566b8dd7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11453/1b3ba7e0acbaf2fc6e0fbfb4198c454c566b8dd7/gpicsync-GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
13332,
309,
365,
18,
1214,
1622,
18,
967,
620,
1435,
5,
1546,
6,
471,
365,
18,
75,
4430,
1622,
18,
967,
620,
5,
1546,
6877,
7075,
18,
1477,
4436,
12,
2890,
18,
8698,
5108,
1083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
13332,
309,
365,
18,
1214,
1622,
18,
967,
620,
1435,
5,
1546,
6,
471,
365,
18,
75,
4430,
1622,
18,
967,
620,
5,
1546,
6877,
7075,
18,
1477,
4436,
12,
2890,
18,
8698,
5108,
1083... |
subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, faceted=faceted) | scatteroptions={} if not faceted: scatteroptions['edgecolors'] = 'none' subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, **scatteroptions) | def _render_on_subplot(self,subplot): options = self.options() c = to_mpl_color(options['rgbcolor']) a = float(options['alpha']) s = int(options['pointsize']) faceted = options['faceted'] #faceted=True colors the edge of point subplot.scatter(self.xdata, self.ydata, s=s, c=c, alpha=a, faceted=faceted) | f74c3aa09a8f26529578aa25ee6ba83620a3b0a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f74c3aa09a8f26529578aa25ee6ba83620a3b0a3/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
265,
67,
24523,
12,
2890,
16,
24523,
4672,
702,
273,
365,
18,
2116,
1435,
276,
273,
358,
67,
10514,
67,
3266,
12,
2116,
3292,
10948,
3266,
19486,
279,
273,
1431,
12,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5902,
67,
265,
67,
24523,
12,
2890,
16,
24523,
4672,
702,
273,
365,
18,
2116,
1435,
276,
273,
358,
67,
10514,
67,
3266,
12,
2116,
3292,
10948,
3266,
19486,
279,
273,
1431,
12,
211... |
def __init__(self, config, plugindir, trayicon, rgbamode, start_hidden, webbrowser): self.frame = NicotineFrame(config, plugindir, trayicon, rgbamode, start_hidden, webbrowser) | def __init__(self, config, plugindir, trayicon, rgbamode, start_hidden, webbrowser, initiallog): self.frame = NicotineFrame(config, plugindir, trayicon, rgbamode, start_hidden, webbrowser, initiallog + log) | def __init__(self, config, plugindir, trayicon, rgbamode, start_hidden, webbrowser): self.frame = NicotineFrame(config, plugindir, trayicon, rgbamode, start_hidden, webbrowser) | b786d8febedb8ab0997869ed81ab498b98f2ea1b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/b786d8febedb8ab0997869ed81ab498b98f2ea1b/frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
642,
16,
15852,
728,
481,
16,
268,
435,
3950,
16,
6917,
301,
390,
16,
787,
67,
6345,
16,
3311,
11213,
16,
2172,
1330,
4672,
365,
18,
3789,
273,
423,
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,
1001,
2738,
972,
12,
2890,
16,
642,
16,
15852,
728,
481,
16,
268,
435,
3950,
16,
6917,
301,
390,
16,
787,
67,
6345,
16,
3311,
11213,
16,
2172,
1330,
4672,
365,
18,
3789,
273,
423,
33... |
html = open(shortname + ".html", "w") html.write("<html>\n") html.write(" <head>\n") html.write(" <title>%s</title>\n" % fullname) html.write(" </head>\n") html.write(" <body>\n") html.write(" <object data=\"%s\" type=\"application/x-panda3d\"></object>\n" % appFilename.getBasename()) html.write(" </body>\n")... | html = open(Filename(outputDir, shortname + ".html").toOsSpecific(), "w") print >>html, "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" print >>html, "<html xmlns=\"http://www.w3.org/1999/xhtml\">" print >>html, " <head>" print >>html, " ... | def usage(code, msg = ''): print >> sys.stderr, usageText % {'prog' : os.path.split(sys.argv[0])[1]} print >> sys.stderr, msg sys.exit(code) | ab8123dc6883b0e80561ab2c8671635288ded6bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/ab8123dc6883b0e80561ab2c8671635288ded6bb/pdeploy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
710,
16,
1234,
273,
875,
4672,
1172,
1671,
2589,
18,
11241,
16,
4084,
1528,
738,
13666,
14654,
11,
294,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
63,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
710,
16,
1234,
273,
875,
4672,
1172,
1671,
2589,
18,
11241,
16,
4084,
1528,
738,
13666,
14654,
11,
294,
1140,
18,
803,
18,
4939,
12,
9499,
18,
19485,
63,
20,
5717,
63,
21,
... |
err_str = 'bad response to pull: %s!' % error_msg | err_str = 'error returned from pull: %s' % error_msg | def err(error_msg): err_str = 'bad response to pull: %s!' % error_msg print err_str self._sock = None raise FileError(err_str) | ede7af67cea5a7535dab09944330c7547884ff33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/ede7af67cea5a7535dab09944330c7547884ff33/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
393,
12,
1636,
67,
3576,
4672,
393,
67,
701,
273,
296,
1636,
2106,
628,
6892,
30,
738,
87,
11,
738,
555,
67,
3576,
1172,
393,
67,
701,
365,
6315,
15031,
273,
599,
1002,
1387,
668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
393,
12,
1636,
67,
3576,
4672,
393,
67,
701,
273,
296,
1636,
2106,
628,
6892,
30,
738,
87,
11,
738,
555,
67,
3576,
1172,
393,
67,
701,
365,
6315,
15031,
273,
599,
1002,
1387,
668,
12... |
res = self._query(req,connection) | res = self._query( req, connection ) | def __getAdditionalParameters(self,transID,connection=False): req = "SELECT ParameterName,ParameterValue,ParameterType FROM AdditionalParameters WHERE TransformationID = %d" % transID res = self._query(req,connection) if not res['OK']: return res paramDict = {} for parameterName,parameterValue,parameterType in res['Val... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
10552,
2402,
12,
2890,
16,
2338,
734,
16,
4071,
33,
8381,
4672,
1111,
273,
315,
4803,
5498,
461,
16,
29655,
16,
28460,
4571,
15119,
2402,
4852,
21274,
734,
273,
738,
72,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
10552,
2402,
12,
2890,
16,
2338,
734,
16,
4071,
33,
8381,
4672,
1111,
273,
315,
4803,
5498,
461,
16,
29655,
16,
28460,
4571,
15119,
2402,
4852,
21274,
734,
273,
738,
72,
6,
... |
if hasattr(self.aq_base,'PUT'): | if hasattr(self.aq_base,'PUT') and hasattr(self.PUT, '__roles__'): | def manage_FTPstat(self,REQUEST): "psuedo stat, used by FTP for directory listings" from AccessControl.User import nobody mode=0100000 # check read permissions if hasattr(self.aq_base,'manage_FTPget'): if REQUEST['AUTHENTICATED_USER'].allowed(self.manage_FTPget, self.manage_FTPget.__roles__): mode=mode | 0440 if nobody... | d6407826189bc19856c4e91520f58e265eda47d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/d6407826189bc19856c4e91520f58e265eda47d4/SimpleItem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
17104,
5642,
12,
2890,
16,
5519,
4672,
315,
1121,
5957,
83,
610,
16,
1399,
635,
19324,
364,
1867,
666,
899,
6,
628,
24349,
18,
1299,
1930,
290,
947,
973,
1965,
33,
1611,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
17104,
5642,
12,
2890,
16,
5519,
4672,
315,
1121,
5957,
83,
610,
16,
1399,
635,
19324,
364,
1867,
666,
899,
6,
628,
24349,
18,
1299,
1930,
290,
947,
973,
1965,
33,
1611,
117... |
for zeo_server in self.server.connections.get(storage_id, ())[:]: try: zeo_server.connection.poll() except ZEO.zrpc.error.DisconnectedError: pass else: break | def invalidate(self, tid, oids, version=''): if version: raise StorageServerError("Versions aren't supported.") storage_id = self.storage_id self.server.invalidate(None, storage_id, tid, oids) for zeo_server in self.server.connections.get(storage_id, ())[:]: try: zeo_server.connection.poll() except ZEO.zrpc.error.Disco... | 181b01cb6ef9b70169b8a72381255cfdda0e9729 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10048/181b01cb6ef9b70169b8a72381255cfdda0e9729/StorageServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11587,
12,
2890,
16,
11594,
16,
26629,
16,
1177,
2218,
11,
4672,
309,
1177,
30,
1002,
5235,
8777,
2932,
5940,
11526,
1404,
3260,
1199,
13,
2502,
67,
350,
273,
365,
18,
5697,
67,
350,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11587,
12,
2890,
16,
11594,
16,
26629,
16,
1177,
2218,
11,
4672,
309,
1177,
30,
1002,
5235,
8777,
2932,
5940,
11526,
1404,
3260,
1199,
13,
2502,
67,
350,
273,
365,
18,
5697,
67,
350,
3... | |
child = self.endDetector() | self.endDetector() | def endElement(self, name): if name == AdcData.tagName: child = self.endAdcData() elif name == AdcInterval.tagName: child = self.endAdcInterval() elif name == Array.tagName: child = self.endArray() elif name == Column.tagName: child = self.endColumn() elif name == Comment.tagName: child = self.endComment() elif name ==... | 19c70d9d2433f3385423e26af544f557b0c477a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/19c70d9d2433f3385423e26af544f557b0c477a4/ligolw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
309,
508,
422,
4052,
71,
751,
18,
2692,
461,
30,
1151,
273,
365,
18,
409,
1871,
71,
751,
1435,
1327,
508,
422,
4052,
71,
4006,
18,
2692,
461,
30,
1151... |
hrule.grid(in_ = frame, column = 2, row = 0, sticky = 'nsew', columnspan = 2) | hrule.grid(in_=frame, column=2, row=0, sticky='nsew', columnspan=2) | def build_window(self): root = self.application.root p_frame = TFrame(root, style='FlatFrame') p_frame.pack(side = 'right', fill = Y) palette_frame = TFrame(p_frame, style='FlatFrame', borderwidth=3) palette_frame.pack(side = 'right', fill = Y) b = TLabel(p_frame, style='VLine3') self.pc=PluginContainer(p_frame,sel... | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
12,
2890,
4672,
1365,
273,
365,
18,
3685,
18,
3085,
225,
293,
67,
3789,
273,
399,
3219,
12,
3085,
16,
2154,
2218,
16384,
3219,
6134,
293,
67,
3789,
18,
2920,
12,
5564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
12,
2890,
4672,
1365,
273,
365,
18,
3685,
18,
3085,
225,
293,
67,
3789,
273,
399,
3219,
12,
3085,
16,
2154,
2218,
16384,
3219,
6134,
293,
67,
3789,
18,
2920,
12,
5564,
... |
cpu = platform.processor ().replace ("-", "_") TARGET.append (cpu) | cpu = platform.processor () if (not cpu) or (len (cpu) == 0): cpu = platform.machine () TARGET.append (cpu.replace ("-", "_")) | def detect_platform (): global HOST, TARGET, DEVNULL if sys.platform [:3] == "win": HOST = ["windows"] TARGET = ["windows"] DEVNULL = "nul" elif sys.platform [:6] == "darwin": HOST = ["mac"] TARGET = ["mac"] DEVNULL = "/dev/null" else: # Default to POSIX HOST = ["posix"] TARGET = ["posix"] DEVNULL = "/dev/null" arch ... | d1d05a728990bf02584bb70d0eca5637dcaae898 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2556/d1d05a728990bf02584bb70d0eca5637dcaae898/tibs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9898,
1832,
30,
2552,
21425,
16,
16964,
16,
2030,
58,
8560,
225,
309,
2589,
18,
9898,
306,
30,
23,
65,
422,
315,
8082,
6877,
21425,
273,
8247,
13226,
11929,
16964,
273,
8247,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
9898,
1832,
30,
2552,
21425,
16,
16964,
16,
2030,
58,
8560,
225,
309,
2589,
18,
9898,
306,
30,
23,
65,
422,
315,
8082,
6877,
21425,
273,
8247,
13226,
11929,
16964,
273,
8247,
... |
b"84983e441c3bd26ebaae4aa1f95129e5e54670f1") | "84983e441c3bd26ebaae4aa1f95129e5e54670f1") | def test_case_sha1_2(self): self.check('sha1', b"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", b"84983e441c3bd26ebaae4aa1f95129e5e54670f1") | 558ca847308cc35ed387cf5800269b647c87a51d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/558ca847308cc35ed387cf5800269b647c87a51d/test_hashlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
67,
7819,
21,
67,
22,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
18947,
9137,
4924,
536,
536,
908,
2137,
76,
2137,
8766,
8302,
76,
8302,
79,
8302,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3593,
67,
7819,
21,
67,
22,
12,
2890,
4672,
365,
18,
1893,
2668,
7819,
21,
2187,
324,
6,
18947,
9137,
4924,
536,
536,
908,
2137,
76,
2137,
8766,
8302,
76,
8302,
79,
8302,
1... |
self.is_workable(task) | self.is_workable(task) and\ self.no_disabled_tag(task) | def workview(self,task,parameters=None): wv = self.active(task) and\ self.is_started(task) and\ self.is_workable(task) return wv | e89a0121bccdbe909de82f83e41104afbdc70c10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/e89a0121bccdbe909de82f83e41104afbdc70c10/treefactory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1440,
1945,
12,
2890,
16,
4146,
16,
3977,
33,
7036,
4672,
25819,
273,
365,
18,
3535,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
14561,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
1252,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1945,
12,
2890,
16,
4146,
16,
3977,
33,
7036,
4672,
25819,
273,
365,
18,
3535,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
14561,
12,
4146,
13,
471,
64,
365,
18,
291,
67,
1252,
... |
target = " | def check_rss(self, c, e): current = time.time() for i in config.feeds: gray = i.title i.feed = feedparser.parse(i.url) for j in i.feed.entries: target = i.target if time.mktime(j.updated_parsed) > i.updated: #c.privmsg("#fdb", "new rss entry!") if i.title == "packages": brown = j.author.split('@')[0] green = j.title i... | 0c79bb753029e9bce71b7846a3b8f2a1b85fac7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10627/0c79bb753029e9bce71b7846a3b8f2a1b85fac7c/events.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
25151,
12,
2890,
16,
276,
16,
425,
4672,
783,
273,
813,
18,
957,
1435,
364,
277,
316,
642,
18,
7848,
87,
30,
16937,
273,
277,
18,
2649,
277,
18,
7848,
273,
4746,
4288,
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,
866,
67,
25151,
12,
2890,
16,
276,
16,
425,
4672,
783,
273,
813,
18,
957,
1435,
364,
277,
316,
642,
18,
7848,
87,
30,
16937,
273,
277,
18,
2649,
277,
18,
7848,
273,
4746,
4288,
18,
... | |
def canonical_name(self): | def _get_canonical_name(self): | def canonical_name(self): if self.container is UNKNOWN: raise ValueError, `self` if (self.container is UNKNOWN or self.container.canonical_name is UNKNOWN): return UNKNOWN else: return self.container.canonical_name + self.name | 75ddcc9012af6994a25e6289117229ad6dcda07d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/75ddcc9012af6994a25e6289117229ad6dcda07d/apidoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
18288,
67,
529,
12,
2890,
4672,
309,
365,
18,
3782,
353,
13598,
30,
1002,
2068,
16,
1375,
2890,
68,
309,
261,
2890,
18,
3782,
353,
13598,
578,
365,
18,
3782,
18,
18288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
18288,
67,
529,
12,
2890,
4672,
309,
365,
18,
3782,
353,
13598,
30,
1002,
2068,
16,
1375,
2890,
68,
309,
261,
2890,
18,
3782,
353,
13598,
578,
365,
18,
3782,
18,
18288,
... |
self.nb.GetCurrentCtrl().FindLexer() | def OnSaveAs(self, evt, title=u'', page=None): """Save As""" dlg = wx.FileDialog(self, _("Choose a Save Location"), u'', title.lstrip(u"*"), self.MenuFileTypes(), wx.SAVE|wx.OVERWRITE_PROMPT) result = dlg.ShowModal() if result == wx.ID_OK: path = dlg.GetPath() if page: ctrl = page else: ctrl = self.nb.GetCurrentCtrl() ... | ecfd0c094e1c7ba81b03317e57373953ba19b787 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/ecfd0c094e1c7ba81b03317e57373953ba19b787/ed_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4755,
1463,
12,
2890,
16,
6324,
16,
2077,
33,
89,
11,
2187,
1363,
33,
7036,
4672,
3536,
4755,
2970,
8395,
25840,
273,
7075,
18,
812,
6353,
12,
2890,
16,
389,
2932,
24529,
279,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4755,
1463,
12,
2890,
16,
6324,
16,
2077,
33,
89,
11,
2187,
1363,
33,
7036,
4672,
3536,
4755,
2970,
8395,
25840,
273,
7075,
18,
812,
6353,
12,
2890,
16,
389,
2932,
24529,
279,
70... | |
self.emit("error", _("No notes are selected.")) | self.emit("error", _("No notes are selected."), None, None) | def on_view_node_external_app(self, app, node=None, kind=None): """View a node with an external app""" # TODO: try to clean up | e219c58bb56e73d8c1eefdf6b4bb2011b5e6a0e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/e219c58bb56e73d8c1eefdf6b4bb2011b5e6a0e8/main_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1945,
67,
2159,
67,
9375,
67,
2910,
12,
2890,
16,
595,
16,
756,
33,
7036,
16,
3846,
33,
7036,
4672,
3536,
1767,
279,
756,
598,
392,
3903,
595,
8395,
225,
468,
2660,
30,
775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1945,
67,
2159,
67,
9375,
67,
2910,
12,
2890,
16,
595,
16,
756,
33,
7036,
16,
3846,
33,
7036,
4672,
3536,
1767,
279,
756,
598,
392,
3903,
595,
8395,
225,
468,
2660,
30,
775,... |
return 10585 | return 85 | def __int__(self): return 10585 | ece6f0e06388df2a512637af2cc4e66cdcd925d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/ece6f0e06388df2a512637af2cc4e66cdcd925d3/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
474,
972,
12,
2890,
4672,
327,
23633,
7140,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
474,
972,
12,
2890,
4672,
327,
23633,
7140,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.StyleSetSpec(stc.STC_P_WORD, "fore: self.StyleSetSpec(stc.STC_P_TRIPLE, "fore: self.StyleSetSpec(stc.STC_P_TRIPLEDOUBLE, "fore: self.StyleSetSpec(stc.STC_P_CLASSNAME, "fore: self.StyleSetSpec(stc.STC_P_DEFNAME, "fore: | self.StyleSetSpec(stc.STC_C_WORD, "fore: | def __init__ (self,parent): wx.stc.StyledTextCtrl.__init__(self,parent) font = wx.Font(10, wx.MODERN, wx.NORMAL, wx.NORMAL, False, "Courier New") self.StyleSetFont(wx.stc.STC_STYLE_DEFAULT, font) self.Bind(wx.EVT_CHAR, self.OnChar) self.SetModEventMask(wx.stc.STC_MOD_INSERTTEXT | wx.stc.STC_MOD_DELETETEXT | wx.stc.STC_... | 50c444321a077c149eeb7545d767e753034d7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/50c444321a077c149eeb7545d767e753034d7fb8/Psycollider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
2938,
4672,
7075,
18,
334,
71,
18,
24273,
1259,
1528,
12418,
16186,
2738,
972,
12,
2890,
16,
2938,
13,
3512,
273,
7075,
18,
5711,
12,
2163,
16,
7075,
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,
1001,
2738,
972,
261,
2890,
16,
2938,
4672,
7075,
18,
334,
71,
18,
24273,
1259,
1528,
12418,
16186,
2738,
972,
12,
2890,
16,
2938,
13,
3512,
273,
7075,
18,
5711,
12,
2163,
16,
7075,
18... |
filelist = os.listdir('instrument_plugins') | pdir = os.path.join(config.get_workdir(), 'instrument_plugins') filelist = os.listdir(pdir) | def get_types(self): ''' Return list of supported instrument types ''' | 144e4622ffb232ffd4636c7b86894903acad098f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/144e4622ffb232ffd4636c7b86894903acad098f/instruments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2352,
12,
2890,
4672,
9163,
2000,
666,
434,
3260,
10353,
1953,
9163,
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,
336,
67,
2352,
12,
2890,
4672,
9163,
2000,
666,
434,
3260,
10353,
1953,
9163,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if type(msg) is types.TupleType: msg = msg[1] | if isinstance(msg, tuple): msg = msg[1] | def delete_multi(self, keys, time=0, key_prefix=''): ''' Delete multiple keys in the memcache doing just one query. | aa973f034fdfe4801db987afda8191177edefc04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/aa973f034fdfe4801db987afda8191177edefc04/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
7027,
12,
2890,
16,
1311,
16,
813,
33,
20,
16,
498,
67,
3239,
2218,
11,
4672,
9163,
2504,
3229,
1311,
316,
326,
20549,
9957,
2537,
1245,
843,
18,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
7027,
12,
2890,
16,
1311,
16,
813,
33,
20,
16,
498,
67,
3239,
2218,
11,
4672,
9163,
2504,
3229,
1311,
316,
326,
20549,
9957,
2537,
1245,
843,
18,
2,
-100,
-100,
-100,
-100,
... |
print "FAIL", | print "FAIL",; failures = failures + 1 | def __eq__(self, other): if isinstance(other, FooStruct): return self.bar == other.bar return 0 | 14105f5c7b7349c63655b5a3c3785fe12d84aa68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/14105f5c7b7349c63655b5a3c3785fe12d84aa68/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
23077,
3823,
4672,
327,
365,
18,
3215,
422,
1308,
18,
3215,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
x = numpy.arange(0.0, 10.0, 0.01) y = lorentzian(x) numpy_curve = Qwt.QwtPlotCurve('y = lorentzian(x)') | def __init__(self, *args): qt.QWidget.__init__(self, *args) | 529c74c34f4cc60b50728fd1baa87d13a65d3910 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5650/529c74c34f4cc60b50728fd1baa87d13a65d3910/MultiDemo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
25672,
18,
53,
4609,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
25672,
18,
53,
4609,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
(boot, partPackages, packageClasses | (script.boot, script.parts, script.packages | def printVariantInfo(variantSetNum, variants, variantSets, variantData): if len(variantSets) < 2: # only log when more than 1 set return variantStr = simplejson.dumps(variants,ensure_ascii=False) self._console.head("Processing variant set %s/%s (%s)" % (variantSetNum+1, len(variantSets), variantStr)) | 7e0a3362aa7c0623d93b525b1aa5ba0fbff87b35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/7e0a3362aa7c0623d93b525b1aa5ba0fbff87b35/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
9356,
966,
12,
8688,
694,
2578,
16,
12935,
16,
5437,
2785,
16,
5437,
751,
4672,
309,
562,
12,
8688,
2785,
13,
411,
576,
30,
225,
468,
1338,
613,
1347,
1898,
2353,
404,
444,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
9356,
966,
12,
8688,
694,
2578,
16,
12935,
16,
5437,
2785,
16,
5437,
751,
4672,
309,
562,
12,
8688,
2785,
13,
411,
576,
30,
225,
468,
1338,
613,
1347,
1898,
2353,
404,
444,
327,
... |
if user.nick == nick: | if user.nick == nick.encode('utf-8'): | def get_user_by_name(self, nick): fd = open('fion', 'w') fd.write(nick) # fd.write('Looking for %s\n' % nick) for user in self.users: # fd.write(user.nick) if user.nick == nick: return user return None | 6f34406477714668898e7a711e96268e2549d6c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/6f34406477714668898e7a711e96268e2549d6c0/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1355,
67,
1637,
67,
529,
12,
2890,
16,
10909,
4672,
5194,
273,
1696,
2668,
74,
285,
2187,
296,
91,
6134,
5194,
18,
2626,
12,
17091,
13,
468,
5194,
18,
2626,
2668,
9794,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
67,
1637,
67,
529,
12,
2890,
16,
10909,
4672,
5194,
273,
1696,
2668,
74,
285,
2187,
296,
91,
6134,
5194,
18,
2626,
12,
17091,
13,
468,
5194,
18,
2626,
2668,
9794,
310,
... |
response = conn_prop.request_post(self.url1, headers=jsonheader, body=C1_full2_wrongtowner1) self.failUnlessEqual('400', response[u'headers']['status']) | self.doTestAndCheckWrongNewPropertyOwner(conn_prop) | def test_AuthorizedAsPropWrongNewTagOwner(self): response = conn_prop.request_post(self.url1, headers=jsonheader, body=C1_full2_wrongtowner1) self.failUnlessEqual('400', response[u'headers']['status']) | 091168d98667491ee6176464a27d5a3e2a269f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6226/091168d98667491ee6176464a27d5a3e2a269f75/cftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15341,
1463,
4658,
13634,
1908,
1805,
5541,
12,
2890,
4672,
766,
273,
1487,
67,
5986,
18,
2293,
67,
2767,
12,
2890,
18,
718,
21,
16,
1607,
33,
1977,
3374,
16,
1417,
33,
39,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15341,
1463,
4658,
13634,
1908,
1805,
5541,
12,
2890,
4672,
766,
273,
1487,
67,
5986,
18,
2293,
67,
2767,
12,
2890,
18,
718,
21,
16,
1607,
33,
1977,
3374,
16,
1417,
33,
39,
... |
</html> | </html> | def create_epub(pages, profile, opts, thumbnail=None): wrappers = [] WRAPPER = textwrap.dedent('''\ <html> <head> <title>Page #%d</title> <style type="text/css">@page {margin:0pt; padding: 0pt;}</style> </head> <body style="margin: 0pt; padding: 0pt"> <div style="text-align:center"> <img src="%s" alt="comic page #%d" /... | ec9111aa7fc506572e8377352d554d32d39ba5dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ec9111aa7fc506572e8377352d554d32d39ba5dc/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
881,
373,
12,
7267,
16,
3042,
16,
1500,
16,
9134,
33,
7036,
4672,
21589,
273,
5378,
12984,
2203,
3194,
273,
30271,
18,
785,
319,
2668,
6309,
64,
411,
2620,
34,
411,
1978,
34,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
373,
12,
7267,
16,
3042,
16,
1500,
16,
9134,
33,
7036,
4672,
21589,
273,
5378,
12984,
2203,
3194,
273,
30271,
18,
785,
319,
2668,
6309,
64,
411,
2620,
34,
411,
1978,
34,
... |
if self.freq <> other.freq: | if self.freq != other.freq: | def __eq__(self, other): if self.freq <> other.freq: raise TypeError("frequencies are not equal!") return int(self) == int(other) | c207acc5c7f49d5bd86329331c20462583407dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c207acc5c7f49d5bd86329331c20462583407dd3/tsdate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
365,
18,
10212,
480,
1308,
18,
10212,
30,
1002,
3580,
2932,
74,
26387,
854,
486,
3959,
4442,
13,
327,
509,
12,
2890,
13,
422,
509,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
309,
365,
18,
10212,
480,
1308,
18,
10212,
30,
1002,
3580,
2932,
74,
26387,
854,
486,
3959,
4442,
13,
327,
509,
12,
2890,
13,
422,
509,
12,
... |
sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] | sage: [F4(fw).branch(B3,rule="levi") for fw in F4.fundamental_weights()] | def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will... | 7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... |
self.vte.set_background_saturation(1 - (self.config['background_darkness'])) | saturation = 1.0 - float(self.config['background_darkness']) dbg('setting background saturation: %f' % saturation) self.vte.set_background_saturation(saturation) | def reconfigure(self, widget=None): """Reconfigure our settings""" dbg('Terminal::reconfigure') self.cnxids.remove_signal(self.vte, 'realize') | 24ff88827e1fc59ae29d8571014d556d59bc4762 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/24ff88827e1fc59ae29d8571014d556d59bc4762/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
12,
2890,
16,
3604,
33,
7036,
4672,
3536,
426,
14895,
3134,
1947,
8395,
28966,
2668,
11336,
2866,
266,
14895,
6134,
365,
18,
10305,
92,
2232,
18,
4479,
67,
10420,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
12,
2890,
16,
3604,
33,
7036,
4672,
3536,
426,
14895,
3134,
1947,
8395,
28966,
2668,
11336,
2866,
266,
14895,
6134,
365,
18,
10305,
92,
2232,
18,
4479,
67,
10420,
12,
2890,
1... |
""" Tests to ensure titlecase follows all of the rules """ | """Tests to ensure titlecase follows all of the rules""" | def titlecase(text): """ This filter changes all words to Title Caps, and attempts to be clever about *un*capitalizing small words like a/an/the in the input. The list of "small words" which are not capped comes from the New York Times Manual of Style, plus 'vs' and 'v'. """ small = 'a|an|and|as|at|but|by|en|for|if|i... | faef923bff691bbede9b642e912e5874bbe1fbb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8761/faef923bff691bbede9b642e912e5874bbe1fbb1/titlecase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2077,
3593,
12,
955,
4672,
225,
3536,
1220,
1034,
3478,
777,
4511,
358,
10984,
385,
6679,
16,
471,
7531,
358,
506,
1619,
502,
2973,
380,
318,
14,
5909,
7053,
6894,
5264,
4511,
3007,
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,
2077,
3593,
12,
955,
4672,
225,
3536,
1220,
1034,
3478,
777,
4511,
358,
10984,
385,
6679,
16,
471,
7531,
358,
506,
1619,
502,
2973,
380,
318,
14,
5909,
7053,
6894,
5264,
4511,
3007,
279,... |
self.msg(columnize.columnize(commands, displaywidth=width, lineprefix=' ')) | self.msg_nocr(columnize.columnize(commands, displaywidth=width, lineprefix=' ')) | def columnize_all_commands(self): """List all commands arranged in an aligned columns""" commands = self.proc.name2cmd.keys() commands.sort() width = self.debugger.settings['width'] self.msg(columnize.columnize(commands, displaywidth=width, lineprefix=' ')) return | c89ad0dd174b39563336029f1305d1ac26bc9bcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6117/c89ad0dd174b39563336029f1305d1ac26bc9bcc/help.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1057,
554,
67,
454,
67,
7847,
12,
2890,
4672,
3536,
682,
777,
4364,
2454,
2330,
316,
392,
13939,
2168,
8395,
4364,
273,
365,
18,
9381,
18,
529,
22,
4172,
18,
2452,
1435,
4364,
18,
3804... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1057,
554,
67,
454,
67,
7847,
12,
2890,
4672,
3536,
682,
777,
4364,
2454,
2330,
316,
392,
13939,
2168,
8395,
4364,
273,
365,
18,
9381,
18,
529,
22,
4172,
18,
2452,
1435,
4364,
18,
3804... |
ids = self.pool.get('ir.values').search(cr, uid, [('model','=','ir.ui.menu'),('res_id','=',id)]) for iv in self.pool.get('ir.values').browse(cr, uid, ids): new_id = self.pool.get('ir.values').copy(cr, uid, iv.id, default={'res_id':res}, context=context) | ids = ir_values_obj.search(cr, uid, [ ('model', '=', 'ir.ui.menu'), ('res_id', '=', id), ]) for iv in ir_values_obj.browse(cr, uid, ids): new_id = ir_values_obj.copy(cr, uid, iv.id, default={'res_id': res}, context=context) | def copy(self, cr, uid, id, default=None, context={}): res = super(ir_ui_menu, self).copy(cr, uid, id, context=context) ids = self.pool.get('ir.values').search(cr, uid, [('model','=','ir.ui.menu'),('res_id','=',id)]) for iv in self.pool.get('ir.values').browse(cr, uid, ids): new_id = self.pool.get('ir.values').copy(cr,... | 6c60d626952de31cb7eb4557fcd98612ca0e0a6d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/6c60d626952de31cb7eb4557fcd98612ca0e0a6d/ir_ui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
12938,
4672,
400,
273,
2240,
12,
481,
67,
4881,
67,
5414,
16,
365,
2934,
3530,
12,
3353,
16,
4555,
16,
612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
12938,
4672,
400,
273,
2240,
12,
481,
67,
4881,
67,
5414,
16,
365,
2934,
3530,
12,
3353,
16,
4555,
16,
612,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.