rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
checked and "Unstamped" or "Stamped")) | "Stamped" if checked else "Unstamped")) | def synchronizeWidget(self): # toggle this icon to reflect the read only status of the selected item super(ReadOnlyIconBlock, self).synchronizeWidget() | bc96fe3914a32ecace56f7f21fbe90832d032739 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/bc96fe3914a32ecace56f7f21fbe90832d032739/detail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
4609,
12,
2890,
4672,
468,
10486,
333,
4126,
358,
3037,
326,
855,
1338,
1267,
434,
326,
3170,
761,
2240,
12,
12066,
5554,
1768,
16,
365,
2934,
87,
2600,
554,
4609,
1435,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16978,
4609,
12,
2890,
4672,
468,
10486,
333,
4126,
358,
3037,
326,
855,
1338,
1267,
434,
326,
3170,
761,
2240,
12,
12066,
5554,
1768,
16,
365,
2934,
87,
2600,
554,
4609,
1435,
2,
-100,
... |
if str(YT_FMT[i]) in fmts: fmt = YT_FMT[i] | if str(YOUTUBE_FMT[i]) in fmts: fmt = YOUTUBE_FMT[i] | def GetYouTubeVideo(video_id): yt_page = HTTP.Request(YT_VIDEO_PAGE % (video_id), cacheTime=1).content t = re.findall('&t=([^&]+)', yt_page)[0] fmt_list = re.findall('&fmt_list=([^&]+)', yt_page)[0] fmt_list = String.Unquote(fmt_list, usePlus=False) fmts = re.findall('([0-9]+)[^,]*', fmt_list) index = YT_VIDEO_FORMATS.index( Prefs.Get('ytfmt') ) if YT_FMT[index] in fmts: fmt = YT_FMT[index] else: for i in reversed( range(0, index+1) ): if str(YT_FMT[i]) in fmts: fmt = YT_FMT[i] break else: fmt = 5 url = YT_GET_VIDEO_URL % (video_id, t, fmt) return url | f4c8dcb66d81d6ad90a3b46a428caddbc823b2dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14350/f4c8dcb66d81d6ad90a3b46a428caddbc823b2dd/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
6225,
27195,
10083,
12,
9115,
67,
350,
4672,
677,
88,
67,
2433,
273,
2239,
18,
691,
12,
61,
56,
67,
58,
27242,
67,
11219,
738,
261,
9115,
67,
350,
3631,
1247,
950,
33,
21,
2934,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
6225,
27195,
10083,
12,
9115,
67,
350,
4672,
677,
88,
67,
2433,
273,
2239,
18,
691,
12,
61,
56,
67,
58,
27242,
67,
11219,
738,
261,
9115,
67,
350,
3631,
1247,
950,
33,
21,
2934,... |
discretizer = self.catData.domain['D_'+att].getValueFrom.transformer | discretizer = self.discData.domain['D_'+att.name].getValueFrom.transformer | def setTable(self): self.res.setNumCols(2) self.res.setNumRows(len(self.discretizedAtts) - len(self.removedAtt)) | dd1d765dc3e19161f4c3e8769c6d619e4b07ec77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/dd1d765dc3e19161f4c3e8769c6d619e4b07ec77/OWCategorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
2578,
8011,
12,
22,
13,
365,
18,
455,
18,
542,
2578,
4300,
12,
1897,
12,
2890,
18,
2251,
71,
1349,
1235,
3075,
87,
13,
300,
562,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30146,
12,
2890,
4672,
365,
18,
455,
18,
542,
2578,
8011,
12,
22,
13,
365,
18,
455,
18,
542,
2578,
4300,
12,
1897,
12,
2890,
18,
2251,
71,
1349,
1235,
3075,
87,
13,
300,
562,
12,
2... |
matches = re.compile("""(msgid|msgstr)((\s*".*?")+)""").findall(gettext) | matches = re.compile("""(msgid|msgstr)((\s*".*?")+)""").finditer(gettext) | def __init__(self, textdomain, isocode, topdir=""): self.textdomain = textdomain self.isocode = isocode self.gettext = {} if self.isocode != "C": isocode2 = isocode[:isocode.rfind("_")] for code in [isocode, isocode2]: fn = "po/%s/%s.po" % (textdomain, code) if topdir: fn = os.path.join(topdir, fn) try: f = file(fn) break except IOError: pass else: raise TranslationError(textdomain, self.isocode) | 8880d09e45212480ad34f22f671d1cf6d58a7259 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9355/8880d09e45212480ad34f22f671d1cf6d58a7259/wmltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
4308,
16,
353,
19373,
16,
1760,
1214,
1546,
6,
4672,
365,
18,
955,
4308,
273,
977,
4308,
365,
18,
291,
19373,
273,
353,
19373,
365,
18,
29967,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
977,
4308,
16,
353,
19373,
16,
1760,
1214,
1546,
6,
4672,
365,
18,
955,
4308,
273,
977,
4308,
365,
18,
291,
19373,
273,
353,
19373,
365,
18,
29967,
273,
... |
j += 1 | else : j += 1 | def find_and_replace_scope (current_phil, new_scope, scope_name) : i = 0 while (i < len(current_phil.objects)) : full_path = current_phil.objects[i].full_path() if (full_path == scope_name) : #assert (not current_phil.objects[i].multiple) new_scope.change_primary_parent_scope(current_phil) j = i while (j < len(current_phil.objects)) : if (current_phil.objects[j].full_path() == scope_name) : del current_phil.objects[j] j += 1 current_phil.objects[i:i] = new_scope.objects break elif (scope_name.startswith(full_path)) : find_and_replace_scope( current_phil=current_phil.objects[i], new_scope=new_scope, scope_name=scope_name) i += 1 | 149ead33a5a7996e7726d9907942e0447e7a002c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/149ead33a5a7996e7726d9907942e0447e7a002c/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
464,
67,
2079,
67,
4887,
261,
2972,
67,
844,
330,
16,
394,
67,
4887,
16,
2146,
67,
529,
13,
294,
277,
273,
374,
1323,
261,
77,
411,
562,
12,
2972,
67,
844,
330,
18,
6911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
464,
67,
2079,
67,
4887,
261,
2972,
67,
844,
330,
16,
394,
67,
4887,
16,
2146,
67,
529,
13,
294,
277,
273,
374,
1323,
261,
77,
411,
562,
12,
2972,
67,
844,
330,
18,
6911,... |
if bdist_msi: class my_bdist_msi(bdist_msi): def get_installer_filename(self, fullname): plat = distutils.util.get_platform() installer_name = os.path.join(self.dist_dir, "%s.%s-py%s.msi" % (fullname, plat, self.target_version)) return installer_name | def run(self): install.run(self) # Custom script we run at the end of installing - this is the same script # run by bdist_wininst # This child process won't be able to install the system DLLs until our # process has terminated (as distutils imports win32api!), so we must use # some 'no wait' executor - spawn seems fine! We pass the PID of this # process so the child will wait for us. # XXX - hmm - a closer look at distutils shows it only uses win32api # if _winreg fails - and this never should. Need to revisit this! if not self.dry_run and not self.skip_build: # What executable to use? This one I guess. filename = os.path.join(os.path.dirname(this_file), "pywin32_postinstall.py") if not os.path.isfile(filename): raise RuntimeError, "Can't find '%s'" % (filename,) print "Executing post install script..." os.spawnl(os.P_NOWAIT, sys.executable, sys.executable, filename, "-quiet", "-wait", str(os.getpid()), "-install") | f6dfdc5ee1898eaba97fe194719e75daf4a60728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/992/f6dfdc5ee1898eaba97fe194719e75daf4a60728/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3799,
18,
2681,
12,
2890,
13,
468,
6082,
2728,
732,
1086,
622,
326,
679,
434,
3799,
310,
300,
333,
353,
326,
1967,
2728,
468,
1086,
635,
324,
4413,
67,
8082,
8591... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3799,
18,
2681,
12,
2890,
13,
468,
6082,
2728,
732,
1086,
622,
326,
679,
434,
3799,
310,
300,
333,
353,
326,
1967,
2728,
468,
1086,
635,
324,
4413,
67,
8082,
8591... | |
font-family: "Courier New",courier, monospace; | font-family: courier, monospace; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | b06f57c141677c48645b63c858e936c2da7c279f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b06f57c141677c48645b63c858e936c2da7c279f/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... |
RunAction(g, make_action(make_tuple(${args}), return_val)); | RunAction(g, make_action(boost::make_tuple(${args}), return_val)); | props += ("typedef typename %s_prop_t::template as<%s >::type" + \ " %sprop_%s_t;\n") % \ (d,t,d[0],t.replace(" ","_").replace("::","_")\ .replace("<","_").replace(">","_")) | cfb623518c99b89a2e2646018147efb08df60380 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/cfb623518c99b89a2e2646018147efb08df60380/inline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3458,
1011,
7566,
723,
536,
26735,
738,
87,
67,
5986,
67,
88,
2866,
3202,
487,
32,
9,
87,
405,
2866,
723,
6,
397,
521,
315,
738,
87,
5986,
10185,
87,
67,
88,
9747,
82,
7923,
738,
521,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3458,
1011,
7566,
723,
536,
26735,
738,
87,
67,
5986,
67,
88,
2866,
3202,
487,
32,
9,
87,
405,
2866,
723,
6,
397,
521,
315,
738,
87,
5986,
10185,
87,
67,
88,
9747,
82,
7923,
738,
521,
26... |
display:inline; | def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r""" | 992e2040e93f6e20762e8bd72e7e30c088878fd4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/992e2040e93f6e20762e8bd72e7e30c088878fd4/css.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3747,
12,
3266,
2218,
1886,
11,
4672,
436,
8395,
2000,
326,
6765,
1446,
1399,
635,
326,
348,
2833,
3609,
3618,
18,
225,
12943,
30,
2036,
1493,
533,
578,
3082,
434,
1729,
5740,
16,
425,
... | |
cat_class = '('+string.join(idxsi)+')' | cat_class = '(%s)' % string.join(idxsi) | def changeit(buf, pp): global onlylatexspecial, hist, out i, length = 0, len(pp) while 1: # sanity check: length should always equal len(pp) if len(pp) != length: print i, pp[i] raise 'FATAL', 'inconsistent length. thought ' + `length` + ', but should really be ' + `len(pp)` if i >= length: break ch = pp[i] i = i + 1 if type(ch) is StringType: #normally, only chunks are present in pp, # but in some cases, some extra info # has been inserted, e.g., the \end{...} clauses raise 'FATAL', 'got string, probably too many ' + `end` if ch.chtype == chunk_type[GROUP]: # check for {\em ...} constructs data = ch.data if data and \ data[0].chtype == chunk_type[CSNAME] and \ fontchanges.has_key(s(buf, data[0].data)): k = s(buf, data[0].data) del data[0] pp.insert(i-1, chunk(CSNAME, ch.where, fontchanges[k])) length, i = length+1, i+1 elif data: if len(data) \ and data[0].chtype == chunk_type[GROUP] \ and len(data[0].data) \ and data[0].data[0].chtype == chunk_type[CSNAME] \ and s(buf, data[0].data[0].data) == 'e': data[0] = data[0].data[0] print "invoking \\e magic group transform..." else: | 0841b804630150bd79a6d09ce37f1045a77fefdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0841b804630150bd79a6d09ce37f1045a77fefdf/partparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
305,
12,
4385,
16,
8228,
4672,
2552,
1338,
26264,
9371,
16,
5356,
16,
596,
225,
277,
16,
769,
273,
374,
16,
562,
12,
11858,
13,
1323,
404,
30,
468,
16267,
866,
30,
769,
1410,
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,
2549,
305,
12,
4385,
16,
8228,
4672,
2552,
1338,
26264,
9371,
16,
5356,
16,
596,
225,
277,
16,
769,
273,
374,
16,
562,
12,
11858,
13,
1323,
404,
30,
468,
16267,
866,
30,
769,
1410,
3... |
for i in range(argumentCount, min(argumentCount + 100, len(self.shownResults))): | for i in range(self.argumentCount, min(self.argumentCount + 100, len(self.shownResults))): | def findArguments(self, selectBest = 1, showClassification = 1, example = None): self.cancelArgumentation = 0 self.clearArguments() self.arguments = [[] for i in range(self.classValueList.count())] snapshots = self.createSnapshots if not example and self.subsetdata == None: QMessageBox.information( None, "VizRank Argumentation", 'To find arguments you first have to provide a new example that you wish to classify. \nYou can do this by sending the example to the visualization widget through the "Example Subset" signal.', QMessageBox.Ok + QMessageBox.Default) return (None,None) if len(self.shownResults) == 0: QMessageBox.information( None, "VizRank Argumentation", 'To find arguments you first have to evaluate some projections by clicking "Start evaluating projections" in the Main tab.', QMessageBox.Ok + QMessageBox.Default) return (None,None) | 1922e1c90901187992cd760d65376cde614d1a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/1922e1c90901187992cd760d65376cde614d1a7a/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4628,
12,
2890,
16,
2027,
14173,
273,
404,
16,
2405,
19168,
273,
404,
16,
3454,
273,
599,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
8507,
4628,
1435,
365,
18,
7099,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4628,
12,
2890,
16,
2027,
14173,
273,
404,
16,
2405,
19168,
273,
404,
16,
3454,
273,
599,
4672,
365,
18,
10996,
1379,
367,
273,
374,
365,
18,
8507,
4628,
1435,
365,
18,
7099,
273... |
EXAMPLES: | EXAMPLES:: | def __getattr__(self, a): r""" Get an 'append' method from a TestAppendNonlist. We have this method so that we can distinguish how many times the append method is fetched. | 3bed29c45c1270055cd235e22fd02f632971b39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3bed29c45c1270055cd235e22fd02f632971b39e/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
279,
4672,
436,
8395,
968,
392,
296,
6923,
11,
707,
628,
279,
7766,
5736,
3989,
1098,
18,
225,
1660,
1240,
333,
707,
1427,
716,
732,
848,
23926,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
279,
4672,
436,
8395,
968,
392,
296,
6923,
11,
707,
628,
279,
7766,
5736,
3989,
1098,
18,
225,
1660,
1240,
333,
707,
1427,
716,
732,
848,
23926,
366... |
None, [cty.POINTER(FL_OBJECT), cty.c_int], | None, [cty.POINTER(FL_OBJECT), cty.c_int], | def fl_set_positioner_ystep(ob, value): """ fl_set_positioner_ystep(ob, value) """ _fl_set_positioner_ystep(ob, value) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
947,
16,
460,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
947,
16,
460,
13,
3536,
225,
389,
2242,
67,
542,
67,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
947,
16,
460,
4672,
3536,
1183,
67,
542,
67,
3276,
264,
67,
1094,
881,
12,
947,
16,
460,
13,
3536,
225,
389,
2242,
67,
542,
67,
327... |
self.out.append( '\\end{verbatim}\n' ) self.verbatim = False | self.depart_literal_block(node) | def depart_doctest_block(self, node): self.out.append( '\\end{verbatim}\n' ) self.verbatim = False | 230860cff0f553b5bcb53e4e6c7c19aeacd5e602 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/230860cff0f553b5bcb53e4e6c7c19aeacd5e602/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2896,
299,
395,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
659,
18,
6923,
12,
3718,
409,
95,
16629,
22204,
6280,
82,
11,
262,
365,
18,
16629,
22204,
273,
1083,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
2896,
299,
395,
67,
2629,
12,
2890,
16,
756,
4672,
365,
18,
659,
18,
6923,
12,
3718,
409,
95,
16629,
22204,
6280,
82,
11,
262,
365,
18,
16629,
22204,
273,
1083,
2,
-100,
-... |
t += [ p**(k-1)*(p-1) for p,k in L ] | t += [p**(k - 1) * (p - 1) for p, k in L] | sage: def my_carmichael(n): | 625cf44d0475aaee9bd5981a533cb7fd5a2f9abb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/625cf44d0475aaee9bd5981a533cb7fd5a2f9abb/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
3399,
67,
71,
4610,
1354,
69,
292,
12,
82,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
3399,
67,
71,
4610,
1354,
69,
292,
12,
82,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
>>> | def factorize(x): r''' >>> factorize(a) [3, 41] >>> factorize(b) [2, 2, 2, 3, 19] >>> ''' savex=x prime=2 x=_g.mpz(x) factors=[] while x>=prime: newx,mult=x.remove(prime) if mult: factors.extend([int(prime)]*mult) x=newx prime=_g.next_prime(prime) for factor in factors: assert _g.is_prime(factor) from operator import mul from functools import reduce assert reduce(mul, factors)==savex return factors | cecbf247cd13bf775f352cd8911e5154d87df4d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/137/cecbf247cd13bf775f352cd8911e5154d87df4d6/gmpy_test_mpz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
554,
12,
92,
4672,
436,
26418,
5578,
554,
12,
69,
13,
306,
23,
16,
20170,
65,
5578,
554,
12,
70,
13,
306,
22,
16,
576,
16,
576,
16,
890,
16,
5342,
65,
9163,
4087,
338,
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,
5578,
554,
12,
92,
4672,
436,
26418,
5578,
554,
12,
69,
13,
306,
23,
16,
20170,
65,
5578,
554,
12,
70,
13,
306,
22,
16,
576,
16,
576,
16,
890,
16,
5342,
65,
9163,
4087,
338,
33,
... | |
events = kq.control(None, 4, 1) | time.sleep(1.0) else: self.fail('timeout waiting for event notifications') | def test_queue_event(self): serverSocket = socket.socket() serverSocket.bind(('127.0.0.1', 0)) serverSocket.listen(1) client = socket.socket() client.setblocking(False) try: client.connect(('127.0.0.1', serverSocket.getsockname()[1])) except socket.error, e: self.assertEquals(e.args[0], errno.EINPROGRESS) else: #raise AssertionError("Connect should have raised EINPROGRESS") pass # FreeBSD doesn't raise an exception here server, addr = serverSocket.accept() | 775a8be88102188ef01c4375690d9c88def7559d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/775a8be88102188ef01c4375690d9c88def7559d/test_kqueue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4000,
67,
2575,
12,
2890,
4672,
1438,
4534,
273,
2987,
18,
7814,
1435,
1438,
4534,
18,
4376,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
374,
3719,
1438,
4534,
18,
18085,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4000,
67,
2575,
12,
2890,
4672,
1438,
4534,
273,
2987,
18,
7814,
1435,
1438,
4534,
18,
4376,
12,
2668,
14260,
18,
20,
18,
20,
18,
21,
2187,
374,
3719,
1438,
4534,
18,
18085,
... |
dlg.add_button (gtk.STOCK_OK, gtk.RESPONSE_OK) | dlg.add_button (gtk.STOCK_ADD, gtk.RESPONSE_OK) | def ProfileNameDialog (self): dlg = gtk.Dialog (_("Enter a profile name"), self.Main, gtk.DIALOG_MODAL) dlg.add_button (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) dlg.add_button (gtk.STOCK_OK, gtk.RESPONSE_OK) entry = gtk.Entry () label = gtk.Label (_("Please enter a name for the new profile:")) dlg.vbox.pack_start (label, False, False, 5) dlg.vbox.pack_start (entry, False, False, 5) | ed9d24f899beffe924ed61004b685bab0f54609a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1272/ed9d24f899beffe924ed61004b685bab0f54609a/Pages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11357,
461,
6353,
261,
2890,
4672,
25840,
273,
22718,
18,
6353,
261,
67,
2932,
10237,
279,
3042,
508,
6,
3631,
365,
18,
6376,
16,
22718,
18,
2565,
18683,
67,
6720,
1013,
13,
25840,
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,
11357,
461,
6353,
261,
2890,
4672,
25840,
273,
22718,
18,
6353,
261,
67,
2932,
10237,
279,
3042,
508,
6,
3631,
365,
18,
6376,
16,
22718,
18,
2565,
18683,
67,
6720,
1013,
13,
25840,
18,
... |
def copytree(src, dst, symlinks=False): | def copytree(src, dst, symlinks=False, ignore_errors=False): | def copytree(src, dst, symlinks=False): """ Recursively copy a directory tree using copy2(). The destination directory must not already exist. If exception(s) occur, an Error is raised with a list of reasons. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied. XXX Consider this example code rather than the ultimate tool. """ names = os.listdir(src) mkdir(dst) errors = [] for name in names: srcname = os.path.join(src, name) dstname = os.path.join(dst, name) try: if symlinks and os.path.islink(srcname): linkto = os.readlink(srcname) os.symlink(linkto, dstname) elif os.path.isdir(srcname): shutil.copytree(srcname, dstname, symlinks) else: shutil.copy2(srcname, dstname) # XXX What about devices, sockets etc.? except (IOError, os.error), why: errors.append((srcname, dstname, str(why))) # catch the Error from the recursive copytree so that we can # continue with other files except Error, err: errors.extend(err.args[0]) try: shutil.copystat(src, dst) except WindowsError: # can't copy file access times on Windows pass except OSError, why: errors.extend((src, dst, str(why))) if errors: raise Error, errors | 98beff0cb86adf6e43634bc12feb49a48bc2a177 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/98beff0cb86adf6e43634bc12feb49a48bc2a177/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
3413,
12,
4816,
16,
3046,
16,
23146,
33,
8381,
16,
2305,
67,
4324,
33,
8381,
4672,
3536,
31362,
1610,
279,
1867,
2151,
1450,
1610,
22,
7675,
225,
1021,
2929,
1867,
1297,
486,
1818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
3413,
12,
4816,
16,
3046,
16,
23146,
33,
8381,
16,
2305,
67,
4324,
33,
8381,
4672,
3536,
31362,
1610,
279,
1867,
2151,
1450,
1610,
22,
7675,
225,
1021,
2929,
1867,
1297,
486,
1818,... |
'.ps': 'application/postscript', | '.pyo': 'application/x-python-code', | def read_mime_types(file): try: f = open(file) except IOError: return None map = {} while 1: line = f.readline() if not line: break words = line.split() for i in range(len(words)): if words[i][0] == '#': del words[i:] break if not words: continue type, suffixes = words[0], words[1:] for suff in suffixes: map['.'+suff] = type f.close() return map | 1fc263487966080a23ac9cc7e3516b76781b94cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1fc263487966080a23ac9cc7e3516b76781b94cd/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
11757,
67,
2352,
12,
768,
4672,
775,
30,
284,
273,
1696,
12,
768,
13,
1335,
8340,
30,
327,
599,
852,
273,
2618,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
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,
855,
67,
11757,
67,
2352,
12,
768,
4672,
775,
30,
284,
273,
1696,
12,
768,
13,
1335,
8340,
30,
327,
599,
852,
273,
2618,
1323,
404,
30,
980,
273,
284,
18,
896,
1369,
1435,
309,
486,
... |
default = cgi.escape(param['default']) | default = cgi.escape(str(param['default'])) | def tmpl_admin_print_format_element_documentation(self, ln, name, attributes, print_see_also=True): """ Prints the formatted documentation of a single element. Used in main documentation of element and in creation of floater for Dreamweaver. | 3a21af5c478829dd68a80adb90e466bbc886533f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12027/3a21af5c478829dd68a80adb90e466bbc886533f/bibformat_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
3666,
67,
1188,
67,
2139,
67,
2956,
67,
26941,
12,
2890,
16,
7211,
16,
508,
16,
1677,
16,
1172,
67,
5946,
67,
31144,
33,
5510,
4672,
3536,
3038,
87,
326,
4955,
7323,
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,
10720,
67,
3666,
67,
1188,
67,
2139,
67,
2956,
67,
26941,
12,
2890,
16,
7211,
16,
508,
16,
1677,
16,
1172,
67,
5946,
67,
31144,
33,
5510,
4672,
3536,
3038,
87,
326,
4955,
7323,
434,
... |
def test_prepare_diff(self): | def test_prepare(self): | def test_prepare_diff(self): self.assert_execute_outputs(Prepare(), []) | 24409337ee759a1c310102dc6d13f0d2a852afcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/24409337ee759a1c310102dc6d13f0d2a852afcf/upload_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9366,
12,
2890,
4672,
365,
18,
11231,
67,
8837,
67,
12295,
12,
7543,
9334,
5378,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9366,
12,
2890,
4672,
365,
18,
11231,
67,
8837,
67,
12295,
12,
7543,
9334,
5378,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self._x = e self._y = f | self._x0 = self._x = e self._y0 = self._y = f | def setTextTransform(self, a, b, c, d, e, f): "Like setTextOrigin, but does rotation, scaling etc." if not self._canvas.bottomup: c = -c #reverse bottom row of the 2D Transform d = -d self._code.append('%s Tm' % fp_str(a, b, c, d, e, f)) #we only measure coords relative to present text matrix self._x = e self._y = f | c8807bcce56d0da528e6e56ed9baa7e7f4382f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/c8807bcce56d0da528e6e56ed9baa7e7f4382f44/textobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7883,
4059,
12,
2890,
16,
279,
16,
324,
16,
276,
16,
302,
16,
425,
16,
284,
4672,
315,
8804,
7883,
7571,
16,
1496,
1552,
6752,
16,
10612,
5527,
1199,
309,
486,
365,
6315,
15424,
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,
7883,
4059,
12,
2890,
16,
279,
16,
324,
16,
276,
16,
302,
16,
425,
16,
284,
4672,
315,
8804,
7883,
7571,
16,
1496,
1552,
6752,
16,
10612,
5527,
1199,
309,
486,
365,
6315,
15424,
18,
... |
(?: _ | (`?) (?![ `]) ( | ( _ | (?P<quote>`?) (?![ `]) (?P<name> | def build_table_row(self, rowdata, tableline): row = nodes.row() for cell in rowdata: if cell is None: continue morerows, morecols, offset, cellblock = cell attributes = {} if morerows: attributes['morerows'] = morerows if morecols: attributes['morecols'] = morecols entry = nodes.entry(**attributes) row += entry if ''.join(cellblock): self.nested_parse(cellblock, input_offset=tableline+offset, node=entry) return row | 9aa86b66cf632d24cd8412c352ecb461084727da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/9aa86b66cf632d24cd8412c352ecb461084727da/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
2121,
67,
492,
12,
2890,
16,
1027,
892,
16,
3246,
80,
3027,
4672,
1027,
273,
2199,
18,
492,
1435,
364,
2484,
316,
1027,
892,
30,
309,
2484,
353,
599,
30,
1324,
312,
8922,
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,
1361,
67,
2121,
67,
492,
12,
2890,
16,
1027,
892,
16,
3246,
80,
3027,
4672,
1027,
273,
2199,
18,
492,
1435,
364,
2484,
316,
1027,
892,
30,
309,
2484,
353,
599,
30,
1324,
312,
8922,
5... |
ah.update(bh) | ah.append([n for n in bh if n not in ah]) | def warn(msg): self.ui.warn(_("%s, line %s: %s\n") % (fn, count, msg)) | ad764463845d829f6853631904d2d7ea878fc7f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/ad764463845d829f6853631904d2d7ea878fc7f4/localrepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
12,
3576,
4672,
365,
18,
4881,
18,
8935,
24899,
27188,
87,
16,
980,
738,
87,
30,
738,
87,
64,
82,
7923,
738,
261,
4293,
16,
1056,
16,
1234,
3719,
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,
1894,
12,
3576,
4672,
365,
18,
4881,
18,
8935,
24899,
27188,
87,
16,
980,
738,
87,
30,
738,
87,
64,
82,
7923,
738,
261,
4293,
16,
1056,
16,
1234,
3719,
2,
-100,
-100,
-100,
-100,
-10... |
print to("Queuing: %s - %s" % (store["artist"], store["title"])) | log(to("Queuing: %s - %s" % (store["artist"], store["title"]))) | def submit_song_helper(self): if self.__enabled: print "Plugin re-enabled - accepting new songs." if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 else: print "Plugin disabled - not accepting any new songs." if len(self.queue) > 0: self.submission_tid = gobject.timeout_add(120 * 1000, self.submit_song_helper) print "Attempts will continue to submit the last %d songs." % len(self.queue) | 6813e514c46661f83b0631485a195a56144fb77d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6813e514c46661f83b0631485a195a56144fb77d/qlscrobbler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
309,
365,
16186,
5745,
30,
1172,
315,
3773,
283,
17,
5745,
300,
25806,
394,
272,
7260,
1199,
309,
365,
18,
12684,
67,
18081,
480,
300,
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,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
309,
365,
16186,
5745,
30,
1172,
315,
3773,
283,
17,
5745,
300,
25806,
394,
272,
7260,
1199,
309,
365,
18,
12684,
67,
18081,
480,
300,
21,
... |
gtk.Button.set_label (self.label) | gtk.Button.set_label (self, self.label) | def set_label (self, key = None, mods = None): if self.label: gtk.Button.set_label (self.label) return if key == None and mods == None: key = self.key mods = self.mods label = gtk.accelerator_name (key, mods) if not len (label): label = _("Disabled") gtk.Button.set_label (self, label) | 5773218944e6a46040f4b9ec909716f428820344 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7183/5773218944e6a46040f4b9ec909716f428820344/Widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1925,
261,
2890,
16,
498,
273,
599,
16,
15546,
273,
599,
4672,
309,
365,
18,
1925,
30,
22718,
18,
3616,
18,
542,
67,
1925,
261,
2890,
16,
365,
18,
1925,
13,
327,
309,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1925,
261,
2890,
16,
498,
273,
599,
16,
15546,
273,
599,
4672,
309,
365,
18,
1925,
30,
22718,
18,
3616,
18,
542,
67,
1925,
261,
2890,
16,
365,
18,
1925,
13,
327,
309,
498,
... |
import core.system | import core.vistrail _UGLY_HACK = 0 | def cleanup(): core.interpreter.cached.CachedInterpreter.cleanup() | 14a90a50411f181568f948a58df92d2fb17d421b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/14a90a50411f181568f948a58df92d2fb17d421b/console_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
13332,
2922,
18,
2761,
11599,
18,
7097,
18,
9839,
30010,
18,
16732,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
13332,
2922,
18,
2761,
11599,
18,
7097,
18,
9839,
30010,
18,
16732,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for x in self.cartesian_product: yield self(*x) | """ EXAMPLES: sage: C = CrystalOfLetters(['A',2]) sage: T = TensorProductOfCrystals(C,C) sage: list(T.iterator()) [[1, 1], [1, 2], [1, 3], [2, 1], [2, 2], [2, 3], [3, 1], [3, 2], [3, 3]] sage: _[0].parent() Full tensor product of the crystals [The crystal of letters for type ['A', 2], The crystal of letters for type ['A', 2]] """ for x in self.cartesian_product: yield self(*x) | def iterator(self): | c5d941975d8524ea910254f690f372b2fde30bea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c5d941975d8524ea910254f690f372b2fde30bea/tensor_product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2775,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
raise FormError, 'You have submitted a %s action for'\ ' the property "%s" which doesn\'t exist'%(mlaction, propname) | raise FormError, self._('You have submitted a %(action)s ' 'action for the property "%(property)s" ' 'which doesn\'t exist') % { 'action': mlaction, 'property':propname} | propdef = all_propdef[cn] | b7e0b3ed6412d17921124a07b91ee81dde8e7ed7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b7e0b3ed6412d17921124a07b91ee81dde8e7ed7/form_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2270,
536,
273,
777,
67,
5986,
536,
63,
10305,
65,
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,
... | [
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,
2270,
536,
273,
777,
67,
5986,
536,
63,
10305,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
str += ' <DL><DT><B>Parameters:</B>\n' | str += ' <dl><dt><b>Parameters:</b></dt>\n' | def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>' | 1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
4186,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
644,
67,
6395,
12,
2890,
16,
4186,
16,
2028,
16,
11053,
2218,
2083,
21897,
11,
4672,
3536,
1189,
2000,
279,
6864,
2477,
434,
326,
4186,
316,
279,
667,
578,
1605,
12123,
4186,
273,
... |
expect(f.read(1), 'a') | expect(f.read(1), b'a') | def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes') | 6344d6c1d81593e2a7896fa9237ea294deb05218 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/6344d6c1d81593e2a7896fa9237ea294deb05218/test_largefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... |
binary not in self.binaries[suite][arch][0] and \ | binary not in self.binaries[suite][parch][0] and \ | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` | b8d4deefd1e15dc48987f2d10c01b6f060204f30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b8d4deefd1e15dc48987f2d10c01b6f060204f30/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
except AttributeError: | except: | def height(self, precision=None): """ The Neron-Tate canonical height of the point. | 5225286d386445a5ca0cebf5b317c2e6c240fb95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/5225286d386445a5ca0cebf5b317c2e6c240fb95/ell_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2072,
12,
2890,
16,
6039,
33,
7036,
4672,
3536,
1021,
423,
264,
265,
17,
56,
340,
7378,
2072,
434,
326,
1634,
18,
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,
2072,
12,
2890,
16,
6039,
33,
7036,
4672,
3536,
1021,
423,
264,
265,
17,
56,
340,
7378,
2072,
434,
326,
1634,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.queue.append(item) self.queueSem.release() | self.pool.queue.append(item) self.pool.queueSem.release() self.pool.running = False | def run(self): """Thread-safe queue management, to feed items into download() and enqueue children. """ while True: self.queueSem.acquire() if len(self.queue) <= 0: self.queueSem.release() break queueItem = self.queue.pop() self.queueSem.release() newItems = self.download(queueItem) if newItems: self.queueSem.acquire() for item in newItems: self.queue.append(item) self.queueSem.release() | 8b8cb24e56a503e1911722dbae68cb7469a4a3a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/8b8cb24e56a503e1911722dbae68cb7469a4a3a5/MiniSVN.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
3830,
17,
4626,
2389,
11803,
16,
358,
4746,
1516,
1368,
4224,
1435,
471,
12850,
2325,
18,
3536,
1323,
1053,
30,
365,
18,
4000,
13185,
18,
1077,
1039,
1435,
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,
1086,
12,
2890,
4672,
3536,
3830,
17,
4626,
2389,
11803,
16,
358,
4746,
1516,
1368,
4224,
1435,
471,
12850,
2325,
18,
3536,
1323,
1053,
30,
365,
18,
4000,
13185,
18,
1077,
1039,
1435,
30... |
pos = scaledBasePoint | pos = arrowBasePoint | def drawDirectionArrow(color, tailPoint, arrowBasePoint, tailRadius, scale, flipDirection = False, opacity = 1.0, numberOfSides = 20 ): """ Draw a directional arrow staring at <tailPoint> with an endpoint decided by the vector between <arrowBasePoint> and <tailPoint> and the glpane scale <scale> @param color : The arrow color @type color: Array @param tailPoint: The point on the arrow tail where the arrow begins. @type tailPoint: V @param arrowBasePoint: A point on the arrow where the arrow head begins(?? @type arrowBasePoint: V @param tailRadius: The radius of the arrow tail (cylinder radius representing the arrow tail) @type tailRaius: float @param opacity: The opacity decides the opacity (or transparent display) of the rendered arrow. By default it is rendered as a solid arrow. It varies between 0.0 to 1.0 ... 1.0 represents the solid arrow renderring style @type opacity: float @param numberOfSides: The total number of sides for the arrow head (a glePolycone) The default value if 20 (20 sided polycone) @type numberOfSides: int """ vec = arrowBasePoint - tailPoint vec = scale*0.07*vec arrowBase = tailRadius*3.0 arrowHeight = arrowBase*1.5 axis = norm(vec) scaledBasePoint = tailPoint + vlen(vec)*axis drawcylinder(color, tailPoint, arrowBasePoint, tailRadius, capped = True, opacity = opacity) pos = scaledBasePoint arrowRadius = arrowBase gleSetNumSides(numberOfSides) drawpolycone(color, [[pos[0] - 1 * axis[0], pos[1] - 1 * axis[1], pos[2] - 1 * axis[2]], [pos[0],# - axis[0], pos[1], #- axis[1], pos[2]], #- axis[2]], [pos[0] + arrowHeight * axis[0], pos[1] + arrowHeight * axis[1], pos[2] + arrowHeight * axis[2]], [pos[0] + (arrowHeight + 1) * axis[0], pos[1] + (arrowHeight + 1) * axis[1], pos[2] + (arrowHeight + 1) * axis[2]]], # Point array (the two end # points not drawn) [arrowRadius, arrowRadius, 0, 0], # Radius array opacity = opacity ) #reset the gle number of sides to the gle default of '20' gleSetNumSides(20) | d5ae1f731a88b51f2cdeb9cf3873bd9dee88c6e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/d5ae1f731a88b51f2cdeb9cf3873bd9dee88c6e5/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
8212,
18691,
12,
3266,
16,
5798,
2148,
16,
12274,
2171,
2148,
16,
5798,
10196,
16,
3159,
16,
9668,
8212,
273,
1083,
16,
12636,
273,
404,
18,
20,
16,
7922,
55,
4369,
273,
4200,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
8212,
18691,
12,
3266,
16,
5798,
2148,
16,
12274,
2171,
2148,
16,
5798,
10196,
16,
3159,
16,
9668,
8212,
273,
1083,
16,
12636,
273,
404,
18,
20,
16,
7922,
55,
4369,
273,
4200,
26... |
print line elif line in ('PyObject_HEAD','PyObject_VAR_HEAD','_PyTZINFO_HEAD', '_PyDateTime_TIMEHEAD','_PyDateTime_DATETIMEHEAD'): | print >> sys.stderr, line elif line == 'PyObject_HEAD': | def parse_filetext(filetext): for struct in structsRe.findall(filetext): body,name = struct print "NAME", name startComment = body.find("/*") while startComment >= 0: #strip multiline comments endComment = body.find("*/",startComment) + 2 body = body[:startComment] + body[endComment:] startComment = body.find("/*") lines = body.split("\n") for line in lines: line = line.strip() if line.startswith("#"): print >> sys.stderr, "PREPROCESSOR DIRECTIVE" print line elif line in ('PyObject_HEAD','PyObject_VAR_HEAD','_PyTZINFO_HEAD', '_PyDateTime_TIMEHEAD','_PyDateTime_DATETIMEHEAD'): print >> sys.stderr, "HEADER" , line elif line: typeof,rest = typeofRe.match(line).groups() print >> sys.stderr, "TYPE", typeof vars = variablesRe.findall(rest) vars.reverse() while vars: var = vars.pop() if var == '*': var = vars.pop() print >> sys.stderr, "POINTER", var else: print >> sys.stderr, "normal", var | 1c4cf2f864bd37e8534406b57db8c8e2b94d0114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11637/1c4cf2f864bd37e8534406b57db8c8e2b94d0114/makeStructs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7540,
27830,
12,
7540,
27830,
4672,
364,
1958,
316,
8179,
426,
18,
4720,
454,
12,
7540,
27830,
4672,
1417,
16,
529,
273,
1958,
1172,
315,
1985,
3113,
508,
225,
787,
4469,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
7540,
27830,
12,
7540,
27830,
4672,
364,
1958,
316,
8179,
426,
18,
4720,
454,
12,
7540,
27830,
4672,
1417,
16,
529,
273,
1958,
1172,
315,
1985,
3113,
508,
225,
787,
4469,
273,
... |
if elem.tag in ('RGB','CMYK','Lab','Gray','CMY','XYZ','YIQ'): | if elem.tag in ('RGB','CMYK','Lab','Gray','CMY','XYZ','YIQ','HSL','HSV','RGBa','PC6'): | def readitem(parent,item): if item.tag == 'group': bitem = Group() for elem in item: if elem.tag in ('group','color'): sbxml.readitem(bitem,elem) elif elem.tag in ('name','description'): if elem.tag not in bitem.info: bitem.info[elem.tag] = {} if 'lang' in elem.attrib: bitem.info[elem.tag][elem.attrib['lang']] = elem.text else: bitem.info[elem.tag][0] = elem.text elif item.tag == 'color': bitem = Color() if 'spot' in item.attrib and item.attrib['spot'] == '1': bitem.attr.append('spot') for elem in item: if elem.tag in ('RGB','CMYK','Lab','Gray','CMY','XYZ','YIQ'): values = elem.text.split() for i in range(len(values)): values[i] = eval(values[i]) if 'space' in elem.attrib: bitem.values[(elem.tag,elem.attrib['space'])] = values else: bitem.values[elem.tag] = values elif elem.tag in ('name','description','copyright'): if elem.tag not in bitem.info: bitem.info[elem.tag] = {} if 'lang' in elem.attrib: bitem.info[elem.tag][elem.attrib['lang']] = elem.text else: bitem.info[elem.tag][0] = elem.text elif item.tag == 'spacer': bitem = Spacer() parent.items.append(bitem) | e6182105e87ecda93b2b58ee05d590535c004246 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9936/e6182105e87ecda93b2b58ee05d590535c004246/codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1726,
12,
2938,
16,
1726,
4672,
309,
761,
18,
2692,
422,
296,
1655,
4278,
324,
1726,
273,
3756,
1435,
364,
3659,
316,
761,
30,
309,
3659,
18,
2692,
316,
7707,
1655,
17023,
3266,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
1726,
12,
2938,
16,
1726,
4672,
309,
761,
18,
2692,
422,
296,
1655,
4278,
324,
1726,
273,
3756,
1435,
364,
3659,
316,
761,
30,
309,
3659,
18,
2692,
316,
7707,
1655,
17023,
3266,
1... |
model = g.TreeStore(gobject.TYPE_STRING, g.Widget.__gtype__) | model = g.TreeStore(gobject.TYPE_STRING, gobject.TYPE_INT) | def build_window_frame(self): "Create the main structure of the window." hbox = g.HBox(FALSE, 4) self.vbox.pack_start(hbox, TRUE, TRUE, 0) | 9a54743e6b78e61343dedb7055a797ed3f51e8b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/9a54743e6b78e61343dedb7055a797ed3f51e8b1/OptionsBox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
67,
3789,
12,
2890,
4672,
315,
1684,
326,
2774,
3695,
434,
326,
2742,
1199,
366,
2147,
273,
314,
18,
44,
3514,
12,
21053,
16,
1059,
13,
365,
18,
90,
2147,
18,
2920,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
67,
3789,
12,
2890,
4672,
315,
1684,
326,
2774,
3695,
434,
326,
2742,
1199,
366,
2147,
273,
314,
18,
44,
3514,
12,
21053,
16,
1059,
13,
365,
18,
90,
2147,
18,
2920,
6... |
implement this functionality | implement this functionality. | def gens(self): """ Placeholder function to return generators of an elliptic curve: derived classes such as EllipticCurve_rational_field implement this functionality | 09e345b25236d5bd15eecd86cc093a836e7ba6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/09e345b25236d5bd15eecd86cc093a836e7ba6db/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
773,
12,
2890,
4672,
3536,
13022,
4505,
445,
358,
327,
13327,
434,
392,
415,
549,
21507,
8882,
30,
10379,
3318,
4123,
487,
10426,
549,
21507,
9423,
67,
7034,
287,
67,
1518,
2348,
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,
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,
314,
773,
12,
2890,
4672,
3536,
13022,
4505,
445,
358,
327,
13327,
434,
392,
415,
549,
21507,
8882,
30,
10379,
3318,
4123,
487,
10426,
549,
21507,
9423,
67,
7034,
287,
67,
1518,
2348,
33... |
def fields_view_get(self, cr, uid, view_id=None, view_type='form', | def fields_view_get(self, cr, uid, view_id=None, view_type='form', | def view_init(self, cr, uid, fields_list, context=None): """ Creates view dynamically and adding fields at runtime. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param context: A standard dictionary @return: New arch of view with new columns. """ res = super(stock_return_picking, self).view_init(cr, uid, fields_list, context=context) record_id = context and context.get('active_id', False) if record_id: pick_obj = self.pool.get('stock.picking') pick = pick_obj.browse(cr, uid, record_id) if pick.state not in ['done','confirmed','assigned']: raise osv.except_osv(_('Warning !'), _("You may only return pickings that are Confirmed, Available or Done!")) return_history = {} valid_lines = 0 for m in [line for line in pick.move_lines]: if m.state == 'done': return_history[m.id] = 0 for rec in m.move_history_ids2: return_history[m.id] += (rec.product_qty * rec.product_uom.factor) if m.product_qty * m.product_uom.factor > return_history[m.id]: valid_lines += 1 if 'return%s'%(m.id) not in self._columns: self._columns['return%s'%(m.id)] = fields.float(string=m.name, required=True) if 'invoice_state' not in self._columns: self._columns['invoice_state'] = fields.selection([('2binvoiced', 'To be refunded/invoiced'), ('none', 'No invoicing')], string='Invoicing', required=True) if not valid_lines: raise osv.except_osv(_('Warning !'), _("There are no products to return (only lines in Done state and not fully returned yet can be returned)!")) return res | efa0acb9cd92500502f3689f3efb3b43430de046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/efa0acb9cd92500502f3689f3efb3b43430de046/stock_return_picking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
2738,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
67,
1098,
16,
819,
33,
7036,
4672,
3536,
10210,
1476,
18373,
471,
6534,
1466,
622,
3099,
18,
632,
891,
365,
30,
1021,
733,
4407,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
2738,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
67,
1098,
16,
819,
33,
7036,
4672,
3536,
10210,
1476,
18373,
471,
6534,
1466,
622,
3099,
18,
632,
891,
365,
30,
1021,
733,
4407,... |
clevel = None | def get_outline(source): last_start = 0 last_line = 1 cpath = (None,) cname = None clevel = None for match in matcher.finditer(source): last_line = last_line + source.count('\n', last_start, match.start()) last_start = match.start() level, name = match.group('level', 'name') level = len(level) if clevel is None or level < clevel: cpath = cpath[:-1] elif level > clevel: cpath += (cname,) yield cpath, name, last_line clevel = level cname = name | 0638edeac7762d759a398fa42eca3f90189a0e56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/0638edeac7762d759a398fa42eca3f90189a0e56/outline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
25134,
12,
3168,
4672,
1142,
67,
1937,
273,
374,
1142,
67,
1369,
273,
404,
276,
803,
273,
261,
7036,
16,
13,
18290,
273,
599,
364,
845,
316,
4546,
18,
4720,
2165,
12,
3168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25134,
12,
3168,
4672,
1142,
67,
1937,
273,
374,
1142,
67,
1369,
273,
404,
276,
803,
273,
261,
7036,
16,
13,
18290,
273,
599,
364,
845,
316,
4546,
18,
4720,
2165,
12,
3168,
... | |
'AND month_id IN %s ',(parent_ids, month_ids,)) | 'AND month_id IN %s ',(parent_ids, tuple(month_ids),)) | def _unit_amount(self, cr, uid, ids, name, arg, context=None): res = {} account_obj = self.pool.get('account.analytic.account') account_ids = [int(str(int(x))[:-6]) for x in ids] month_ids = [int(str(int(x))[-6:]) for x in ids] parent_ids = tuple(self.search(cr, uid, [('parent_id', 'child_of', account_ids)])) if parent_ids: cr.execute('SELECT id, unit_amount ' \ 'FROM account_analytic_analysis_summary_month ' \ 'WHERE account_id IN %s ' \ 'AND month_id IN %s ',(parent_ids, month_ids,)) for sum_id, unit_amount in cr.fetchall(): res[sum_id] = unit_amount for obj_id in ids: res.setdefault(obj_id, 0.0) for child_id in account_obj.search(cr, uid, [('parent_id', 'child_of', [int(str(int(obj_id))[:-6])])]): if child_id != int(str(int(obj_id))[:-6]): res[obj_id] += res.get(int(child_id * 1000000 + int(str(int(obj_id))[-6:])), 0.0) for id in ids: res[id] = round(res.get(id, 0.0), 2) return res | a0e414ad08d1b9ac704dc1cb18dc7a500bcf9123 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/a0e414ad08d1b9ac704dc1cb18dc7a500bcf9123/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4873,
67,
8949,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
2236,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4873,
67,
8949,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
400,
273,
2618,
2236,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
... |
C = store.any((experience, store.hasContent, doc, None)) | C = store.any((store.engine._experience, store.hasContent, doc, None)) | def evaluateObject2(self, store, subj): if isinstance(subj, Fragment): doc = subj.resource else: doc = subj C = store.any((experience, store.hasContent, doc, None)) if C: return C if chatty > 10: progress("Reading " + `doc`) inputURI = doc.uriref() netStream = urllib.urlopen(inputURI) str = netStream.read() # May be big - buffered in memory! C = store.engine.intern((LITERAL, str)) return C | e38cc47b9a0f70321a279b89a166fe036f9e8c47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/e38cc47b9a0f70321a279b89a166fe036f9e8c47/cwm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
921,
22,
12,
2890,
16,
1707,
16,
15333,
4672,
309,
1549,
12,
1717,
78,
16,
18009,
4672,
997,
273,
15333,
18,
3146,
469,
30,
997,
273,
15333,
385,
273,
1707,
18,
2273,
12443,
2233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
921,
22,
12,
2890,
16,
1707,
16,
15333,
4672,
309,
1549,
12,
1717,
78,
16,
18009,
4672,
997,
273,
15333,
18,
3146,
469,
30,
997,
273,
15333,
385,
273,
1707,
18,
2273,
12443,
2233... |
content = cached_value.split('\r\n\r\n', 1)[1] | info, content = cached_value.split('\r\n\r\n', 1) feedparser = email.FeedParser.FeedParser() feedparser.feed(info) info = feedparser.close() feedparser._parse = None | def request(self, uri, method="GET", body=None, headers=None, redirections=DEFAULT_MAX_REDIRECTS, connection_type=None): """ Performs a single HTTP request. | 71a014d4117ad7b92726e63aeca6bcef4ba50b15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13138/71a014d4117ad7b92726e63aeca6bcef4ba50b15/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
2003,
16,
707,
1546,
3264,
3113,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
19611,
87,
33,
5280,
67,
6694,
67,
25103,
55,
16,
1459,
67,
723,
33,
7036,
4672,
3536,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
2003,
16,
707,
1546,
3264,
3113,
1417,
33,
7036,
16,
1607,
33,
7036,
16,
19611,
87,
33,
5280,
67,
6694,
67,
25103,
55,
16,
1459,
67,
723,
33,
7036,
4672,
3536,
273... |
open(fileloc, 'w').write(open(temploc).read()) open(publoc, 'w').write(open("%s.pub" % temploc).read()) | shutil.copy(temploc, fileloc) shutil.copy("%s.pub" % temploc, publoc) | def GenerateHostKeys(self, client): '''Generate new host keys for client''' keylist = [keytmpl % client for keytmpl in self.hostkeys] for hostkey in keylist: if 'ssh_host_rsa_key.H_' == hostkey[:19]: keytype = 'rsa' elif 'ssh_host_dsa_key.H_' == hostkey[:19]: keytype = 'dsa' else: keytype = 'rsa1' | 8999c249ccc3d93f08060fbfb0b7598e7e15cfda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/8999c249ccc3d93f08060fbfb0b7598e7e15cfda/SSHbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
2594,
2396,
12,
2890,
16,
1004,
4672,
9163,
4625,
394,
1479,
1311,
364,
1004,
26418,
498,
1098,
273,
306,
856,
24717,
738,
1004,
364,
498,
24717,
316,
365,
18,
2564,
2452,
65,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
2594,
2396,
12,
2890,
16,
1004,
4672,
9163,
4625,
394,
1479,
1311,
364,
1004,
26418,
498,
1098,
273,
306,
856,
24717,
738,
1004,
364,
498,
24717,
316,
365,
18,
2564,
2452,
65,
364,... |
visitor.document.reporter.debug('visit_' + self.__class__.__name__, category='nodes.Node.walk') | visitor.document.reporter.debug( 'calling dispatch_visit for %s' % self.__class__.__name__, category='nodes.Node.walk') | def walk(self, visitor): """ Traverse a tree of `Node` objects, calling ``visit_...`` methods of `visitor` when entering each node. If there is no ``visit_particular_node`` method for a node of type ``particular_node``, the ``unknown_visit`` method is called. (The `walkabout()` method is similar, except it also calls ``depart_...`` methods before exiting each node.) | 3837e1561a35079abf202ea3b59429bef574c00d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3837e1561a35079abf202ea3b59429bef574c00d/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... |
description = Backquote(['git', 'cl', 'status', '--field=desc']) | description = cl.GetDescription() | def __init__(self, commit=None, upstream_branch=None): self.commit = commit self.verbose = None self.default_presubmit = None self.may_prompt = None | 1d28b864ef328f44b14f9ad93f1e0639851fdf1e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/1d28b864ef328f44b14f9ad93f1e0639851fdf1e/git_cl_hooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3294,
33,
7036,
16,
13505,
67,
7500,
33,
7036,
4672,
365,
18,
7371,
273,
3294,
365,
18,
11369,
273,
599,
365,
18,
1886,
67,
12202,
373,
1938,
273,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3294,
33,
7036,
16,
13505,
67,
7500,
33,
7036,
4672,
365,
18,
7371,
273,
3294,
365,
18,
11369,
273,
599,
365,
18,
1886,
67,
12202,
373,
1938,
273,
599,
... |
while name: i = name.find('.') if i >= 0: name, tail = name[:i], name[i+1:] else: tail = '' w = w.children[name] name = tail | for n in name: if not n: break w = w.children[n] | def nametowidget(self, name): """Return the Tkinter instance of a widget identified by its Tcl name NAME.""" w = self if name[0] == '.': w = w._root() name = name[1:] while name: i = name.find('.') if i >= 0: name, tail = name[:i], name[i+1:] else: tail = '' w = w.children[name] name = tail return w | aabf404ecc06f1ddbb4c003508dff78c7ac06012 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/aabf404ecc06f1ddbb4c003508dff78c7ac06012/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15135,
278,
543,
2208,
12,
2890,
16,
508,
4672,
3536,
990,
326,
399,
79,
2761,
791,
434,
279,
3604,
9283,
635,
2097,
399,
830,
508,
6048,
12123,
341,
273,
365,
309,
508,
63,
20,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15135,
278,
543,
2208,
12,
2890,
16,
508,
4672,
3536,
990,
326,
399,
79,
2761,
791,
434,
279,
3604,
9283,
635,
2097,
399,
830,
508,
6048,
12123,
341,
273,
365,
309,
508,
63,
20,
65,
... |
deps.InstructionSetDependency)).name if targetArch != currentArchName: if targetArch in setArchOk.get(currentArchName, []): | deps.InstructionSetDependency)) if not targetArch: return False, None targetArchName = targetArch.name if targetArchName != currentArchName: if targetArchName in setArchOk.get(currentArchName, []): | def getTargetArch(flavor, currentArch = None): if currentArch is None: currentArchName = arch.getMajorArch(arch.currentArch[0]).name | be69916359af5a65c8f3fcf60d692c640e365481 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/be69916359af5a65c8f3fcf60d692c640e365481/flavorutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8571,
12269,
12,
2242,
9444,
16,
783,
12269,
273,
599,
4672,
309,
783,
12269,
353,
599,
30,
783,
12269,
461,
273,
6637,
18,
588,
17581,
12269,
12,
991,
18,
2972,
12269,
63,
20,
65,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8571,
12269,
12,
2242,
9444,
16,
783,
12269,
273,
599,
4672,
309,
783,
12269,
353,
599,
30,
783,
12269,
461,
273,
6637,
18,
588,
17581,
12269,
12,
991,
18,
2972,
12269,
63,
20,
65,
293... |
elif self.c in (chr(4), '^D'): | elif self.c in key_dispatch['C-d']: | def p_key(self): """Process a keypress""" | c0488d0794c984ec4c760b6d4a3855227d97f8d1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/c0488d0794c984ec4c760b6d4a3855227d97f8d1/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
856,
12,
2890,
4672,
3536,
2227,
279,
498,
1028,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
856,
12,
2890,
4672,
3536,
2227,
279,
498,
1028,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.setAxisAutoScaled() | self.setAxisAutoScale(self.xBottom) self.setAxisAutoScale(self.yLeft) | def zoomExtent(self): self.setAxisAutoScaled() self.replot() self.setAxisFixedScale() | 85386b0efeeca1e1b4d6f60b2ffc66eab19d85fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/85386b0efeeca1e1b4d6f60b2ffc66eab19d85fb/OWNetworkCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7182,
17639,
12,
2890,
4672,
365,
18,
542,
6558,
4965,
5587,
12,
2890,
18,
92,
10393,
13,
365,
18,
542,
6558,
4965,
5587,
12,
2890,
18,
93,
3910,
13,
365,
18,
266,
4032,
1435,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7182,
17639,
12,
2890,
4672,
365,
18,
542,
6558,
4965,
5587,
12,
2890,
18,
92,
10393,
13,
365,
18,
542,
6558,
4965,
5587,
12,
2890,
18,
93,
3910,
13,
365,
18,
266,
4032,
1435,
365,
1... |
reduce_positive(Q, coeffs, offset) | reduce_positive(Q, p, coeffs, offset) | def reduce_all(Q, p, coeffs, offset): """ Applies cohomology relations to reduce all terms to a linear combination of $dx/y$ and $x dx/y$. INPUT: Q -- cubic polynomial coeffs -- list of length 3 lists. The i^th list [a, b, c] represents $y^{2(i - offset)} (a + bx + cx^2) dx/y$. offset -- nonnegative integer OUTPUT: A, B -- pair such that the input differential is cohomologous to (A + Bx) dx/y. NOTE: The algorithm operates in-place, so the data in coeffs is destroyed. EXAMPLE: sage: R.<x> = Integers(5^3)['x'] sage: Q = x^3 - x + R(1/4) sage: coeffs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] sage: coeffs = [[R.base_ring()(a) for a in row] for row in coeffs] sage: monsky_washnitzer.reduce_all(Q, 5, coeffs, 1) (21, 106) """ R = Q.base_ring() while len(coeffs) <= offset: coeffs.append([R(0), R(0), R(0)]) reduce_negative(Q, p, coeffs, offset) reduce_positive(Q, coeffs, offset) reduce_zero(Q, coeffs, offset) return coeffs[int(offset)][0], coeffs[int(offset)][1] | 27b77e28ae3b8fbd3ab5545206e95e0ab8882088 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/27b77e28ae3b8fbd3ab5545206e95e0ab8882088/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
67,
454,
12,
53,
16,
293,
16,
16530,
16,
1384,
4672,
3536,
1716,
5259,
1825,
17125,
4676,
7467,
358,
5459,
777,
6548,
358,
279,
9103,
10702,
434,
271,
13437,
19,
93,
8,
471,
271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5459,
67,
454,
12,
53,
16,
293,
16,
16530,
16,
1384,
4672,
3536,
1716,
5259,
1825,
17125,
4676,
7467,
358,
5459,
777,
6548,
358,
279,
9103,
10702,
434,
271,
13437,
19,
93,
8,
471,
271,... |
self.log.verbose( 'Submitting %s pilots for TaskQueue %s' % ( pilotsToSubmit, taskQueueID ) ) | self.log.verbose( 'Submitting %s pilots for TaskQueue %s' % ( pilotsToSubmit, taskQueueID ) ) | def submitPilotsForTaskQueue(self, taskQueueDict, waitingPilots ): | 2167c40fe092d0205e599c452b700e4f2aaec45c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2167c40fe092d0205e599c452b700e4f2aaec45c/TaskQueueDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
52,
330,
6968,
1290,
2174,
3183,
12,
2890,
16,
1562,
3183,
5014,
16,
7336,
52,
330,
6968,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
52,
330,
6968,
1290,
2174,
3183,
12,
2890,
16,
1562,
3183,
5014,
16,
7336,
52,
330,
6968,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'pilotScript': os.path.basename(self.pilot), \ 'installScript': os.path.basename(self.install), | 'pilotScript': os.path.basename( self.pilot ), \ 'installScript': os.path.basename( self.install ), | def __writePilotScript(self,workingDirectory, pilotOptions, proxy='', httpProxy=''): """ Bundle together and write out the pilot executable script, admixt the proxy if given """ try: compressedAndEncodedProxy = '' proxyFlag = 'False' if proxy: compressedAndEncodedProxy = base64.encodestring( bz2.compress( proxy.dumpAllToString()['Value'] ) ).replace('\n','') proxyFlag = 'True' compressedAndEncodedPilot = base64.encodestring( bz2.compress( open( self.pilot, "rb" ).read(), 9 ) ).replace('\n','') compressedAndEncodedInstall = base64.encodestring( bz2.compress( open( self.install, "rb" ).read(), 9 ) ).replace('\n','') except: self.log.exception('Exception during file compression of proxy, dirac-pilot or dirac-install') return S_ERROR('Exception during file compression of proxy, dirac-pilot or dirac-install') | fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2626,
52,
22797,
3651,
12,
2890,
16,
20478,
2853,
16,
293,
22797,
1320,
16,
2889,
2218,
2187,
1062,
3886,
2218,
11,
4672,
3536,
8539,
9475,
471,
1045,
596,
326,
293,
22797,
9070,
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,
1001,
2626,
52,
22797,
3651,
12,
2890,
16,
20478,
2853,
16,
293,
22797,
1320,
16,
2889,
2218,
2187,
1062,
3886,
2218,
11,
4672,
3536,
8539,
9475,
471,
1045,
596,
326,
293,
22797,
9070,
2... |
branch = models.CharField("Branch", maxlength=30) | branch = models.CharField("Branch", maxlength=30, blank=True) | def get_absolute_url(self): return "/groups/%s/" % self.name | 9bee09df99eefcc131f7c6bac6f9fcc23f750aa3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/9bee09df99eefcc131f7c6bac6f9fcc23f750aa3/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
2206,
4650,
5258,
87,
4898,
738,
365,
18,
529,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12547,
67,
718,
12,
2890,
4672,
327,
2206,
4650,
5258,
87,
4898,
738,
365,
18,
529,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return '\\texttt{%s}' % val | if len(val) > maxwidth: val = val[:maxwidth-3] + '...' if '\n' in val: return ('\\begin{alltt}\n%s\\end{alltt}' % self._text_to_latex(val, 0, 1)) else: return '{\\tt %s}' % self._text_to_latex(val, 1, 1) | def _pprint_var_value(self, var, maxwidth=100): val = var.uid().value() try: val = `val` if len(val) > maxwidth: val = val[:maxwidth-3] + '...' val = self._text_to_latex(val, 1, 1) except: val = '...' return '\\texttt{%s}' % val | f84aee6945de1bd0d9a58c39dc9c17b7755e8f52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/f84aee6945de1bd0d9a58c39dc9c17b7755e8f52/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
84,
1188,
67,
1401,
67,
1132,
12,
2890,
16,
569,
16,
943,
2819,
33,
6625,
4672,
1244,
273,
569,
18,
1911,
7675,
1132,
1435,
775,
30,
1244,
273,
1375,
1125,
68,
309,
562,
12,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
84,
1188,
67,
1401,
67,
1132,
12,
2890,
16,
569,
16,
943,
2819,
33,
6625,
4672,
1244,
273,
569,
18,
1911,
7675,
1132,
1435,
775,
30,
1244,
273,
1375,
1125,
68,
309,
562,
12,
112... |
"event_id": "int_8s" } | "event_id": "ilwd:char" } | def __init__(self, n = 0): ilwd.ILWD.__init__(self, "sngl_ringdown", "event_id", n) | 49a6986f6f61c0bb516472ac19446341eb31d74d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/49a6986f6f61c0bb516472ac19446341eb31d74d/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
273,
374,
4672,
14254,
3623,
18,
2627,
16006,
16186,
2738,
972,
12,
2890,
16,
315,
87,
3368,
80,
67,
8022,
2378,
3113,
315,
2575,
67,
350,
3113,
290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
290,
273,
374,
4672,
14254,
3623,
18,
2627,
16006,
16186,
2738,
972,
12,
2890,
16,
315,
87,
3368,
80,
67,
8022,
2378,
3113,
315,
2575,
67,
350,
3113,
290... |
return result.split('\r\n')[0] | return result | def execute(self, commands, login=1): ftp = self.getFTPConnection(login) | 90d04321f031c84ce099735d79abab9afd55bb34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9635/90d04321f031c84ce099735d79abab9afd55bb34/test_ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4364,
16,
3925,
33,
21,
4672,
13487,
273,
365,
18,
588,
17104,
1952,
12,
5819,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
4364,
16,
3925,
33,
21,
4672,
13487,
273,
365,
18,
588,
17104,
1952,
12,
5819,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "shlex: in state " + repr(self.state) + " I see character: " + repr(nextchar) | print "shlex: in state", repr(self.state), \ "I see character:", repr(nextchar) | def read_token(self): "Read a token from the input stream (no pushback or inclusions)" tok = '' while 1: nextchar = self.instream.read(1); if nextchar == '\n': self.lineno = self.lineno + 1 if self.debug >= 3: print "shlex: in state " + repr(self.state) + " I see character: " + repr(nextchar) if self.state == None: self.token = ''; # past end of file break elif self.state == ' ': if not nextchar: self.state = None; # end of file break elif nextchar in self.whitespace: if self.debug >= 2: print "shlex: I see whitespace in whitespace state" if self.token: break # emit current token else: continue elif nextchar in self.commenters: self.instream.readline() self.lineno = self.lineno + 1 elif nextchar in self.wordchars: self.token = nextchar self.state = 'a' elif nextchar in self.quotes: self.token = nextchar self.state = nextchar else: self.token = nextchar if self.token: break # emit current token else: continue elif self.state in self.quotes: self.token = self.token + nextchar if nextchar == self.state: self.state = ' ' break elif self.state == 'a': if not nextchar: self.state = None; # end of file break elif nextchar in self.whitespace: if self.debug >= 2: print "shlex: I see whitespace in word state" self.state = ' ' if self.token: break # emit current token else: continue elif nextchar in self.commenters: self.instream.readline() self.lineno = self.lineno + 1 elif nextchar in self.wordchars or nextchar in self.quotes: self.token = self.token + nextchar else: self.pushback = [nextchar] + self.pushback if self.debug >= 2: print "shlex: I see punctuation in word state" self.state = ' ' if self.token: break # emit current token else: continue result = self.token self.token = '' if self.debug > 1: if result: print "shlex: raw token=" + `result` else: print "shlex: raw token=EOF" return result | 217753d03e01f703df7d9f3b9460417fdafa6037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/217753d03e01f703df7d9f3b9460417fdafa6037/shlex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2316,
12,
2890,
4672,
315,
1994,
279,
1147,
628,
326,
810,
1407,
261,
2135,
1817,
823,
578,
2823,
16377,
2225,
946,
273,
875,
1323,
404,
30,
1024,
3001,
273,
365,
18,
267,
325... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2316,
12,
2890,
4672,
315,
1994,
279,
1147,
628,
326,
810,
1407,
261,
2135,
1817,
823,
578,
2823,
16377,
2225,
946,
273,
875,
1323,
404,
30,
1024,
3001,
273,
365,
18,
267,
325... |
.split(), stdout=fnull, stderr=fnull, | .split(), stderr=fnull, | def compile(self, output_name): ''' Compiles all games given by the specified filemask into one video file. The file will be saved into the log folder. ''' controllers = [] for filename in os.listdir(self.working_dir): if re.search(self.file_mask, filename): controllers.append(self._get_game_controller(os.path.join( self.working_dir, filename))) # The games should be given in the right order: controllers = list(sorted(controllers)) | b7b495388a59e6de808cce6201f32b24e10aa257 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10732/b7b495388a59e6de808cce6201f32b24e10aa257/visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
876,
67,
529,
4672,
9163,
5427,
1449,
777,
28422,
864,
635,
326,
1269,
585,
4455,
1368,
1245,
6191,
585,
18,
1021,
585,
903,
506,
5198,
1368,
326,
613,
3009,
18,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
876,
67,
529,
4672,
9163,
5427,
1449,
777,
28422,
864,
635,
326,
1269,
585,
4455,
1368,
1245,
6191,
585,
18,
1021,
585,
903,
506,
5198,
1368,
326,
613,
3009,
18,
91... |
bgbox = clutter.ActorBox() bgbox.x1 = 0 bgbox.y1 = 0 bgbox.x2 = main_width bgbox.y2 = self.border + round(y) - self.spacing self.background.allocate(bgbox, flags) | if self._horizontal is True: bgbox = clutter.ActorBox() bgbox.x1 = 0 bgbox.y1 = 0 bgbox.x2 = self.border + round(x) - self.spacing bgbox.y2 = main_height self.background.allocate(bgbox, flags) else: bgbox = clutter.ActorBox() bgbox.x1 = 0 bgbox.y1 = 0 bgbox.x2 = main_width bgbox.y2 = self.border + round(y) - self.spacing self.background.allocate(bgbox, flags) | def do_allocate(self, box, flags): main_width = box.x2 - box.x1 main_height = box.y2 - box.y1 inner_width = main_width - 2*self.border inner_height = main_height - 2*self.border #find size available for resizable elements resizable_elements = list() resizable_width = inner_width resizable_height = inner_height for element in self.elements: if element.get('resizable', 0) != 0: if element['resizable'] > 1: element['resizable'] = 1 elif element['resizable'] < 0: element['resizable'] = 0 resizable_elements.append(element) else: if element.get('expand') is True: if element.get('keep_ratio') is True: obj_height = element['object'].get_preferred_size()[3] obj_width = element['object'].get_preferred_size()[2] if self._horizontal is True: if obj_height != 0: ratio = float(obj_width/obj_height) obj_width = int(inner_height*ratio) resizable_width -= obj_width resizable_height -= inner_height else: if obj_width != 0: ratio = float(obj_width/obj_height) obj_height = int(inner_width/ratio) resizable_width -= inner_width resizable_height -= obj_height else: resizable_width -= element['object'].get_preferred_size()[2] resizable_height -= element['object'].get_preferred_size()[3] else: resizable_width -= element['object'].get_preferred_size()[2] resizable_height -= element['object'].get_preferred_size()[3] resizable_width -= self.spacing resizable_height -= self.spacing resizable_width += self.spacing resizable_height += self.spacing #find resizable elements who will bypass box size for element in self.elements: if element.get('resizable', 0) != 0: original_width, original_height = element['object'].get_preferred_size()[2:] if self._horizontal is True: if element.get('keep_ratio') is True and original_width != 0: obj_width = element['resizable'] * resizable_width ratio = float(obj_width/original_width) obj_height = int(original_height*ratio) if obj_height > inner_height: # reduce resizable property ratio = float(inner_height/original_height) obj_width = int(original_width*ratio) element['resizable'] = float(obj_width/resizable_width) else: if element.get('keep_ratio') is True and original_height != 0: obj_height = element['resizable'] * resizable_height ratio = float(obj_height/original_height) obj_width = int(original_width*ratio) if obj_width > inner_width: # reduce resizable property ratio = float(inner_width/original_width) obj_height = int(original_height*ratio) element['resizable'] = float(obj_height/resizable_height) x = self.border y = self.border for element in self.elements: obj_width, obj_height = element['object'].get_preferred_size()[2:] if element.get('expand') is True: if self._horizontal is True: original_height = obj_height obj_height = inner_height if element.get('keep_ratio') is True and original_height != 0: ratio = float(obj_height/original_height) obj_width = int(obj_width*ratio) else: original_width = obj_width obj_width = inner_width if element.get('keep_ratio') is True and original_width != 0: ratio = float(obj_width/original_width) obj_height = int(obj_height*ratio) if element in resizable_elements: if self._horizontal is True: original_width = obj_width obj_width = element['resizable'] * resizable_width if element.get('keep_ratio') is True and original_width != 0: ratio = float(obj_width/original_width) obj_height = int(obj_height*ratio) else: original_height = obj_height obj_height = element['resizable'] * resizable_height if element.get('keep_ratio') is True and original_height != 0: ratio = float(obj_height/original_height) obj_width = int(obj_width*ratio) # Manage centering x_offset = 0 y_offset = 0 if element.get('center') is True: if self._horizontal is True: y_offset = max(0, (inner_height - obj_height) / 2) else: x_offset = max(0, (inner_width - obj_width) / 2) objbox = clutter.ActorBox() objbox.x1 = round(x + x_offset) objbox.y1 = round(y + y_offset) objbox.x2 = round(x + x_offset + obj_width) objbox.y2 = round(y + y_offset + obj_height) element['object'].allocate(objbox, flags) if self._horizontal is True: x += obj_width + self.spacing else: y += obj_height + self.spacing #box background if self.background: if self.bg_ignore_allocation_box == True and len(self.elements) > 0: bgbox = clutter.ActorBox() bgbox.x1 = 0 bgbox.y1 = 0 bgbox.x2 = main_width bgbox.y2 = self.border + round(y) - self.spacing self.background.allocate(bgbox, flags) else: bgbox = clutter.ActorBox() bgbox.x1 = 0 bgbox.y1 = 0 bgbox.x2 = main_width bgbox.y2 = main_height self.background.allocate(bgbox, flags) clutter.Actor.do_allocate(self, box, flags) | ea56ae78d261300805eb0ec1a0e6760b7ba6d3a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5279/ea56ae78d261300805eb0ec1a0e6760b7ba6d3a9/box.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
16247,
12,
2890,
16,
3919,
16,
2943,
4672,
2774,
67,
2819,
273,
3919,
18,
92,
22,
300,
3919,
18,
92,
21,
2774,
67,
4210,
273,
3919,
18,
93,
22,
300,
3919,
18,
93,
21,
3443... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
16247,
12,
2890,
16,
3919,
16,
2943,
4672,
2774,
67,
2819,
273,
3919,
18,
92,
22,
300,
3919,
18,
92,
21,
2774,
67,
4210,
273,
3919,
18,
93,
22,
300,
3919,
18,
93,
21,
3443... |
def prefs_art_location_changed(self, combobox): | def _art_location_changed(self, combobox): | def prefs_art_location_changed(self, combobox): if combobox.get_active() == consts.ART_LOCATION_CUSTOM: # Prompt user for playlist name: dialog = ui.dialog(title=_("Custom Artwork"), parent=self.window, flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT, buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT), role='customArtwork', default=gtk.RESPONSE_ACCEPT) hbox = gtk.HBox() hbox.pack_start(ui.label(text=_('Artwork filename') + ':'), False, False, 5) entry = ui.entry() entry.set_activates_default(True) hbox.pack_start(entry, True, True, 5) dialog.vbox.pack_start(hbox) dialog.vbox.show_all() response = dialog.run() if response == gtk.RESPONSE_ACCEPT: self.config.art_location_custom_filename = entry.get_text().replace("/", "") else: # Revert to non-custom item in combobox: combobox.set_active(self.config.art_location) dialog.destroy() self.config.art_location = combobox.get_active() | 7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
485,
67,
3562,
67,
6703,
12,
2890,
16,
3894,
27570,
4672,
309,
3894,
27570,
18,
588,
67,
3535,
1435,
422,
15677,
18,
4928,
67,
15277,
67,
15136,
30,
468,
28360,
729,
364,
16428,
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,
389,
485,
67,
3562,
67,
6703,
12,
2890,
16,
3894,
27570,
4672,
309,
3894,
27570,
18,
588,
67,
3535,
1435,
422,
15677,
18,
4928,
67,
15277,
67,
15136,
30,
468,
28360,
729,
364,
16428,
5... |
pilotRef = os.environ['PBS_JOBID'] cliParams.queueName = os.environ['PBS_QUEUE'] | pilotRef = os.environ['PBS_JOBID'] cliParams.queueName = os.environ['PBS_QUEUE'] | def executeAndGetOutput( cmd ): try: import subprocess p = subprocess.Popen( "%s" % cmd, shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE, close_fds = True ) outData = p.stdout.read().strip() returnCode = p.wait() except ImportError: import popen2 p3 = popen2.Popen3( "%s" % cmd ) outData = p3.fromchild.read().strip() returnCode = p3.wait() return ( returnCode, outData ) | 47c293fe28587532dcc46ce4b1dc8ab0111a614b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/47c293fe28587532dcc46ce4b1dc8ab0111a614b/dirac-pilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
14042,
1447,
12,
1797,
262,
30,
775,
30,
1930,
6652,
293,
273,
6652,
18,
52,
3190,
12,
2213,
87,
6,
738,
1797,
16,
5972,
273,
1053,
16,
3909,
273,
6652,
18,
27602,
16,
4514,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
14042,
1447,
12,
1797,
262,
30,
775,
30,
1930,
6652,
293,
273,
6652,
18,
52,
3190,
12,
2213,
87,
6,
738,
1797,
16,
5972,
273,
1053,
16,
3909,
273,
6652,
18,
27602,
16,
4514,
27... |
'name': fields.char('Field name', size=64, required=True), | 'name': fields.char('Field name', size=64, required=True, translate=True), | def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80): if not args: args=[] if not context: context={} if context.get('contact_display', 'contact')=='partner': ids = self.search(cr, user, [('partner_id',operator,name)], limit=limit, context=context) else: ids = self.search(cr, user, [('zip','=',name)] + args, limit=limit, context=context) if not ids: ids = self.search(cr, user, [('city',operator,name)] + args, limit=limit, context=context) if name: ids += self.search(cr, user, [('name',operator,name)] + args, limit=limit, context=context) ids += self.search(cr, user, [('partner_id',operator,name)] + args, limit=limit, context=context) return self.name_get(cr, user, ids, context=context) | a365e8e27c4a113423b48ba8f3c2069a30f71562 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/a365e8e27c4a113423b48ba8f3c2069a30f71562/partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
3072,
12,
2890,
16,
4422,
16,
729,
16,
508,
16,
833,
33,
7036,
16,
3726,
2218,
330,
2547,
2187,
819,
33,
7036,
16,
1800,
33,
3672,
4672,
309,
486,
833,
30,
833,
33,
8526,
... |
result.result += "<input type=submit value='Next' name=submit>\n" | result.result += "<input type=button value='Next' onclick=\"document.getElementById(\'%s\').value=\'%s\'; document.pyflag_form.submit();\" >\n" % (context, page+1) | def wizard_cb(query,result): """ This callback is responsible for managing the wizard popup window """ result.title="Pyflag Wizard %s" % title try: page=int(query[context]) except: page=0 result.heading(names[page]) new_query=query.clone() del new_query[context] del new_query['submit'] result.start_form(new_query) result.start_table() | a039766e6eb4d9b8d60fe32c97a4bb68093f662d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/a039766e6eb4d9b8d60fe32c97a4bb68093f662d/HTMLUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24204,
67,
7358,
12,
2271,
16,
2088,
4672,
3536,
1220,
1348,
353,
14549,
364,
30632,
326,
24204,
10431,
2742,
3536,
563,
18,
2649,
1546,
9413,
6420,
678,
13412,
738,
87,
6,
738,
2077,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24204,
67,
7358,
12,
2271,
16,
2088,
4672,
3536,
1220,
1348,
353,
14549,
364,
30632,
326,
24204,
10431,
2742,
3536,
563,
18,
2649,
1546,
9413,
6420,
678,
13412,
738,
87,
6,
738,
2077,
77... |
for error in errorList: print "ERROR %s: %s" % error | def usage(): print 'Usage: %s <LFN> <SE>' % ( Script.scriptName ) DIRAC.exit( 2 ) | 34c6aa2a724723da370d842cc99ee6a7af0fdac2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/34c6aa2a724723da370d842cc99ee6a7af0fdac2/dirac-dms-lfn-accessURL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
9105,
50,
34,
411,
1090,
1870,
738,
261,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
576,
262,
225,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
9105,
50,
34,
411,
1090,
1870,
738,
261,
7739,
18,
4263,
461,
262,
18544,
2226,
18,
8593,
12,
576,
262,
225,
2,
-100,
-100,
-100,
-100,
... | |
if (inspect.getmodule(value) or object) is object: classes.append(value) | if visible(key) and ( inspect.getmodule(value) or object) is object: classes.append((key, value)) | def docmodule(self, object): """Produce HTML documentation for a module object.""" name = object.__name__ parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) linkedname = join(links + parts[-1:], '.') head = '<big><big><strong>%s</strong></big></big>' % linkedname try: path = inspect.getabsfile(object) filelink = '<a href="file:%s">%s</a>' % (path, path) except TypeError: filelink = '(built-in)' info = [] if hasattr(object, '__version__'): version = str(object.__version__) if version[:11] == '$' + 'Revision: ' and version[-1:] == '$': version = strip(version[11:-1]) info.append('version %s' % self.escape(version)) if hasattr(object, '__date__'): info.append(self.escape(str(object.__date__))) if info: head = head + ' (%s)' % join(info, ', ') result = self.heading( head, '#ffffff', '#7799ee', '<a href=".">index</a><br>' + filelink) | 54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
2140,
273,
1416,
12,
529,
16,
2611,
13,
4716,
273,
5378,
364,
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,
997,
2978,
12,
2890,
16,
733,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
2140,
273,
1416,
12,
529,
16,
2611,
13,
4716,
273,
5378,
364,
2... |
def foolish( self ): import pdb; pdb.set_trace() return None _p_jar = property( lambda self: None, foolish ) | def foolish( self ): import pdb; pdb.set_trace() return None | 878abcac764b61e85d2c72cfce6f1ce95a1de4b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4360/878abcac764b61e85d2c72cfce6f1ce95a1de4b3/domain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1371,
1468,
12,
365,
262,
30,
1930,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
1371,
1468,
12,
365,
262,
30,
1930,
10892,
31,
10892,
18,
542,
67,
5129,
1435,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
global h_fd | global h_fd, debug if debug: print "Removing Handle %s" % str(h_fd) | def myRemoveHandle(watch): global h_fd #print "Removing Handle %s" % str(h_fd) mypoll.unregister(h_fd) h_fd = 0 return h_opaque | 7c99cb93c573104eb9be1261c50dc22894c4ddb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11279/7c99cb93c573104eb9be1261c50dc22894c4ddb2/event-test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
3288,
3259,
12,
7585,
4672,
2552,
366,
67,
8313,
468,
1188,
315,
18939,
5004,
738,
87,
6,
738,
609,
12,
76,
67,
8313,
13,
312,
879,
22382,
18,
318,
4861,
12,
76,
67,
8313,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
3288,
3259,
12,
7585,
4672,
2552,
366,
67,
8313,
468,
1188,
315,
18939,
5004,
738,
87,
6,
738,
609,
12,
76,
67,
8313,
13,
312,
879,
22382,
18,
318,
4861,
12,
76,
67,
8313,
13,
... |
page_url, prev_oldrev, oldrev, _("Previous change"), enabled(oldrev > 1), | page_url, "left", prev_oldrev, oldrev, _("Previous change"), enabled(oldrev > 1), | def enabled(val): return not val and u' disabled="disabled"' or u'' | 4140ae7b3afc098fc947866f5aab53d4247a00f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/4140ae7b3afc098fc947866f5aab53d4247a00f6/diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3696,
12,
1125,
4672,
327,
486,
1244,
471,
582,
11,
5673,
1546,
9278,
5187,
578,
582,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3696,
12,
1125,
4672,
327,
486,
1244,
471,
582,
11,
5673,
1546,
9278,
5187,
578,
582,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
content).replace("/", "_").replace("=", "~") | content)[:-1] cookie = cookie.replace("/", "_").replace("=", "~") | def sign(self, content): """ Sign the content returning a valid cookie (that does not need to be escaped and quoted). The expiration of this cookie is handled server-side in the auth() function. """ cookie = base64.encodestring( hmac.new(self.secret, content, sha1).digest() + make_time(time.time() + 60*self.timeout) + content).replace("/", "_").replace("=", "~") if len(cookie) > self.maxlen: raise CookieTooLarge(content, cookie) return cookie | 32d187f5439c756bc0b908e542f637bccd5bb490 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2097/32d187f5439c756bc0b908e542f637bccd5bb490/cookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
12,
2890,
16,
913,
4672,
3536,
4383,
326,
913,
5785,
279,
923,
3878,
261,
19056,
1552,
486,
1608,
358,
506,
8345,
471,
9298,
2934,
225,
1021,
7686,
434,
333,
3878,
353,
7681,
1438,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1573,
12,
2890,
16,
913,
4672,
3536,
4383,
326,
913,
5785,
279,
923,
3878,
261,
19056,
1552,
486,
1608,
358,
506,
8345,
471,
9298,
2934,
225,
1021,
7686,
434,
333,
3878,
353,
7681,
1438,... |
if self._tmp_type != {}: | if self._tmp_type: | def __init__(self, cls, verbosity=0): self._tmp_ivar = {} self._tmp_cvar = {} self._tmp_type = {} ObjDoc.__init__(self, cls, verbosity) | 065d9e81e0092aa76af93c5f65eb4326d02a3124 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/065d9e81e0092aa76af93c5f65eb4326d02a3124/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2028,
16,
11561,
33,
20,
4672,
365,
6315,
5645,
67,
22647,
273,
2618,
365,
6315,
5645,
67,
71,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
1876... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2028,
16,
11561,
33,
20,
4672,
365,
6315,
5645,
67,
22647,
273,
2618,
365,
6315,
5645,
67,
71,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
1876... |
if self.exit_name: self.exit_rstr.del_restriction(IdHexRestriction) self.exit_rstr.del_restriction(NickRestriction) if self.exit_name[0] == '$': self.exit_rstr.add_restriction(IdHexRestriction(self.exit_name)) else: self.exit_rstr.add_restriction(NickRestriction(self.exit_name)) | def reconfigure(self, sorted_r): """This function is called after a configuration change, to rebuild the RestrictionLists.""" if self.use_all_exits: self.path_rstr = PathRestrictionList([UniqueRestriction()]) else: self.path_rstr = PathRestrictionList( [Subnet16Restriction(), UniqueRestriction()]) if self.use_guards: entry_flags = ["Guard", "Valid", "Running"] else: entry_flags = ["Valid", "Running"] | 4b763ab6ae8784d9f66a654e970b49853ea92450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3224/4b763ab6ae8784d9f66a654e970b49853ea92450/PathSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
12,
2890,
16,
3115,
67,
86,
4672,
3536,
2503,
445,
353,
2566,
1839,
279,
1664,
2549,
16,
358,
13419,
326,
1124,
6192,
7432,
12123,
309,
365,
18,
1202,
67,
454,
67,
338,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
14895,
12,
2890,
16,
3115,
67,
86,
4672,
3536,
2503,
445,
353,
2566,
1839,
279,
1664,
2549,
16,
358,
13419,
326,
1124,
6192,
7432,
12123,
309,
365,
18,
1202,
67,
454,
67,
338,
128... | |
labelFont = QFont( QString("Helvetica"), font_scale) | labelFont = QFont( QString("Lucida Grande"), font_scale) | def get_screen_position_of_strand_atom(strand_atom): """ For a given strand atom, find its on-screen position. """ axis_atom = strand_atom.axis_neighbor() if axis_atom: mol = axis_atom.molecule axis_atoms = mol.ladder.axis_rail.baseatoms n_bases = len(axis_atoms) pos = axis_atoms.index(axis_atom) atom0 = axis_atom if pos<n_bases-1: atom1 = axis_atoms[pos+1] dpos = atom1.posn()-atom0.posn() else: atom1 = axis_atoms[pos-1] atom2 = axis_atoms[pos] dpos = atom2.posn()-atom1.posn() last_dpos = dpos dvec = norm(cross(dpos,glpane.out)) pos0 = axis_atom.posn()#-mol.center pos1 = pos0+7.0*dvec pos2 = pos0-7.0*dvec if mol.ladder.strand_rails[0].baseatoms[pos]==strand_atom: return pos1 elif mol.ladder.strand_rails[1].baseatoms[pos]==strand_atom: return pos2 | cbc143d808cf827d03bc69ee526e2fca8459d46d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cbc143d808cf827d03bc69ee526e2fca8459d46d/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9252,
67,
3276,
67,
792,
67,
701,
464,
67,
7466,
12,
701,
464,
67,
7466,
4672,
3536,
2457,
279,
864,
16706,
3179,
16,
1104,
2097,
603,
17,
9252,
1754,
18,
3536,
2654,
67,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9252,
67,
3276,
67,
792,
67,
701,
464,
67,
7466,
12,
701,
464,
67,
7466,
4672,
3536,
2457,
279,
864,
16706,
3179,
16,
1104,
2097,
603,
17,
9252,
1754,
18,
3536,
2654,
67,
74... |
window = self.FileOpened.GetPage(self.FileOpened.GetSelection()) selection = window.GetSelection() if selection: index, subIndex = selection if self.Manager.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.Manager.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) | selected = self.FileOpened.GetSelection() if selected >= 0: window = self.FileOpened.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.Manager.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.Manager.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) else: for i in xrange(3): self.HelpBar.SetStatusText("", i) | def RefreshStatusBar(self): if self.HelpBar: window = self.FileOpened.GetPage(self.FileOpened.GetSelection()) selection = window.GetSelection() if selection: index, subIndex = selection if self.Manager.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText("Subindex: 0x%02X"%subIndex, 1) entryinfos = self.Manager.GetEntryInfos(index) name = entryinfos["name"] category = "Optional" if entryinfos["need"]: category = "Mandatory" struct = "VAR" number = "" if entryinfos["struct"] & OD_IdenticalIndexes: number = " possibly defined %d times"%entryinfos["nbmax"] if entryinfos["struct"] & OD_IdenticalSubindexes: struct = "REC" elif entryinfos["struct"] & OD_MultipleSubindexes: struct = "ARRAY" text = "%s: %s entry of struct %s%s."%(name,category,struct,number) self.HelpBar.SetStatusText(text, 2) else: for i in xrange(3): self.HelpBar.SetStatusText("", i) else: for i in xrange(3): self.HelpBar.SetStatusText("", i) | 370987e94d29429ee37db223a45ea7e74b88bda7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/370987e94d29429ee37db223a45ea7e74b88bda7/objdictedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
18,
6696,
5190,
30,
3170,
273,
365,
18,
812,
23115,
18,
967,
6233,
1435,
309,
3170,
1545,
374,
30,
2742,
273,
365,
18,
812,
23115,
18,
967,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
18,
6696,
5190,
30,
3170,
273,
365,
18,
812,
23115,
18,
967,
6233,
1435,
309,
3170,
1545,
374,
30,
2742,
273,
365,
18,
812,
23115,
18,
967,... |
'%s does not appear to be installed, so no managed updates...' | '%s does not appear to be installed, so no managed updates...' | def processManagedUpdate(manifestitem, cataloglist, installinfo): """Process a managed_updates item to see if it is installed, and if so, if it needs an update. """ manifestitemname = os.path.split(manifestitem)[1] item_pl = getItemDetail(manifestitem, cataloglist) if not item_pl: munkicommon.display_warning( 'Could not process item %s for update: ' % manifestitem) munkicommon.display_warning( 'No pkginfo for %s found in catalogs: %s' % (manifestitem, ', '.join(cataloglist))) return # check to see if item (any version) is already in the installlist: if isItemInInstallInfo(item_pl, installinfo['managed_installs']): munkicommon.display_debug1( '%s has already been processed for install.' % manifestitemname) return # check to see if item (any version) is already in the removallist: if isItemInInstallInfo(item_pl, installinfo['removals']): munkicommon.display_debug1( '%s has already been processed for removal.' % manifestitemname) return # we only offer to update if some version of the item is already # installed, so let's check if someVersionInstalled(item_pl): unused_result = processInstall(manifestitem, cataloglist, installinfo) else: munkicommon.display_debug1( '%s does not appear to be installed, so no managed updates...' % manifestitemname) | af1df39f6834265e36f8b18f46507bfb3b18dec1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/af1df39f6834265e36f8b18f46507bfb3b18dec1/updatecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
10055,
1891,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
2227,
279,
7016,
67,
14703,
761,
358,
2621,
309,
518,
353,
5876,
16,
471,
309,
1427,
16,
309,
518,
4260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
10055,
1891,
12,
14357,
1726,
16,
6222,
1098,
16,
3799,
1376,
4672,
3536,
2227,
279,
7016,
67,
14703,
761,
358,
2621,
309,
518,
353,
5876,
16,
471,
309,
1427,
16,
309,
518,
4260,
... |
def __init__(self, keyword, choices): Param.__init__(self, keyword) | """Parameter that is restricted to a string from a list of choices, but using the index of the string as the value. A Choice control is its user interface, and the index of the currently selected string is used as the value. """ def __init__(self, keyword, choices, default=None, help=''): Param.__init__(self, keyword, help=help) | def __init__(self, keyword, choices): Param.__init__(self, keyword) self.choices = choices self.default = choices[0] | 1f6160b06a4444687324525ba5d4c2d9892fbf5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/1f6160b06a4444687324525ba5d4c2d9892fbf5c/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
1662,
716,
353,
15693,
358,
279,
533,
628,
279,
666,
434,
7246,
16,
1496,
1450,
326,
770,
434,
326,
533,
487,
326,
460,
18,
225,
432,
16432,
3325,
353,
2097,
729,
1560,
16,
471,
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,
3536,
1662,
716,
353,
15693,
358,
279,
533,
628,
279,
666,
434,
7246,
16,
1496,
1450,
326,
770,
434,
326,
533,
487,
326,
460,
18,
225,
432,
16432,
3325,
353,
2097,
729,
1560,
16,
471,
326,
... |
if self.tools_path == None: logging.error('Lcov converter tool not found') return False self.tools_path = self.tools_path.rstrip('\\') convert_command = ('%s -sym_path=%s -src_root=%s %s' % (os.path.join(self.tools_path, 'coverage_analyzer.exe'), sym_path, src_root, coverage_file)) (retcode, output) = proc.RunCommandFull(convert_command, collect_output=True) if output != 0: logging.error('Conversion to LCOV failed. Exiting.') sys.exit(1) lcov_file = coverage_file + '.lcov' logging.info('Conversion to lcov complete') shutil.copy(lcov_file, upload_path) | lcov_file = os.path.join(upload_path, 'chrome_win32_%s.lcov' % (self.revision)) lcov = open(lcov_file, 'w') for coverage_file in list_coverage: if self.tools_path == None: logging.error('Lcov converter tool not found') return False self.tools_path = self.tools_path.rstrip('\\') convert_command = ('%s -sym_path=%s -src_root=%s %s' % (os.path.join(self.tools_path, 'coverage_analyzer.exe'), sym_path, src_root, coverage_file)) (retcode, output) = proc.RunCommandFull(convert_command, collect_output=True) if output != 0: logging.error('Conversion to LCOV failed. Exiting.') sys.exit(1) tmp_lcov_file = coverage_file + '.lcov' logging.info('Conversion to lcov complete for %s' % (coverage_file)) logging.info('Consolidating LCOV file: %s' % (tmp_lcov_file)) tmp_lcov = open(tmp_lcov_file, 'r') lcov.write(tmp_lcov.read()) tmp_lcov.close() lcov.close() | def Upload(self, coverage_file, upload_path, sym_path=None, src_root=None): """Upload the results to the dashboard. | 9c08cda4aa58cfa7cdbb6a02025a1219305ed383 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/9c08cda4aa58cfa7cdbb6a02025a1219305ed383/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
18,
2,
-100,
-100,
-10... |
security.declarePrivate('manage_beforeDelete') | security.declarePrivate('manage_afterAdd') | def SearchableText(self): """ SeachableText is used for full text seraches of a portal. It should return a concatanation of all useful text. """ return "%s %s" % (self.title, self.description) | a5e9f00e10f79a65fcb0ae8a55603f7b9e0614c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/a5e9f00e10f79a65fcb0ae8a55603f7b9e0614c1/Image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
429,
1528,
12,
2890,
4672,
3536,
3265,
497,
429,
1528,
353,
1399,
364,
1983,
977,
703,
497,
281,
434,
279,
11899,
18,
2597,
1410,
327,
279,
3835,
304,
367,
434,
777,
5301,
977,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5167,
429,
1528,
12,
2890,
4672,
3536,
3265,
497,
429,
1528,
353,
1399,
364,
1983,
977,
703,
497,
281,
434,
279,
11899,
18,
2597,
1410,
327,
279,
3835,
304,
367,
434,
777,
5301,
977,
1... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 949) else quickfix.StringField.__init__(self, 949, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
7616,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
7616,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
... |
if reset: self.reset() else: self.get_all() | self.reset() self.get_all() if not reset: | def __init__(self, name, address, reset=False, change_display=True, change_autozero=True): ''' Initializes the Keithley_2100, and communicates with the wrapper. | 265cb1c56ac1702dce5e8f50264061e28ac6bc97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/265cb1c56ac1702dce5e8f50264061e28ac6bc97/Keithley_2100.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1758,
16,
2715,
33,
8381,
16,
2549,
67,
5417,
33,
5510,
16,
2549,
67,
6079,
7124,
33,
5510,
4672,
9163,
10188,
3128,
326,
1475,
73,
483,
30678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
16,
1758,
16,
2715,
33,
8381,
16,
2549,
67,
5417,
33,
5510,
16,
2549,
67,
6079,
7124,
33,
5510,
4672,
9163,
10188,
3128,
326,
1475,
73,
483,
30678,
... |
def _cmp(a, b, sh): | def _cmp(a, b, sh, abs=abs, cmp=cmp): | def _cmp(a, b, sh): try: return not abs(cmp(a, b, sh)) except os.error: return 2 | cfba4dfc10b1cdf017562bcca7d0a344649d031f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cfba4dfc10b1cdf017562bcca7d0a344649d031f/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9625,
12,
69,
16,
324,
16,
699,
16,
2417,
33,
5113,
16,
9411,
33,
9625,
4672,
775,
30,
327,
486,
2417,
12,
9625,
12,
69,
16,
324,
16,
699,
3719,
1335,
1140,
18,
1636,
30,
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,
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,
9625,
12,
69,
16,
324,
16,
699,
16,
2417,
33,
5113,
16,
9411,
33,
9625,
4672,
775,
30,
327,
486,
2417,
12,
9625,
12,
69,
16,
324,
16,
699,
3719,
1335,
1140,
18,
1636,
30,
327,... |
for (key, values) in defaultConf.items("): if not key in self.configParser.options(): self.configParser.set("default", key, value) | if not configParser.has_section(section): configParser.add_section(section) for (key, value) in self.__class__.defaultConf.items(): if not key in configParser.options(section): configParser.set(section, key, value) return configParser | def _load_Files(self): href = os.path.join( self.Get("config_dir", "config") self.configParser = ConfigParser.ConfigParser() if len( self.configParser.read(href)) == 0: print "No conf file find" for (key, values) in defaultConf.items("): if not key in self.configParser.options(): self.configParser.set("default", key, value) | 7b19abf7d5a6a776a423f65290cc0d136b8b699d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/7b19abf7d5a6a776a423f65290cc0d136b8b699d/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
2697,
12,
2890,
4672,
3897,
273,
1140,
18,
803,
18,
5701,
12,
365,
18,
967,
2932,
1425,
67,
1214,
3113,
315,
1425,
7923,
225,
365,
18,
1425,
2678,
273,
25076,
18,
809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
67,
2697,
12,
2890,
4672,
3897,
273,
1140,
18,
803,
18,
5701,
12,
365,
18,
967,
2932,
1425,
67,
1214,
3113,
315,
1425,
7923,
225,
365,
18,
1425,
2678,
273,
25076,
18,
809,
... |
[1, -alpha - 1] | [1, -a - 1] | def q_eigenform_character(self, names=None): """ Return the Dirichlet character associated to the specific choice of `q`-eigenform attached to this simple cuspidal modular symbols space. | 3829f8cd7df880cc5b6fc6bf5c68568cedea8812 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/3829f8cd7df880cc5b6fc6bf5c68568cedea8812/space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
22663,
275,
687,
67,
11560,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
326,
8446,
1354,
1810,
3351,
3627,
358,
326,
2923,
6023,
434,
1375,
85,
68,
17,
22663,
275,
687,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
67,
22663,
275,
687,
67,
11560,
12,
2890,
16,
1257,
33,
7036,
4672,
3536,
2000,
326,
8446,
1354,
1810,
3351,
3627,
358,
326,
2923,
6023,
434,
1375,
85,
68,
17,
22663,
275,
687,
7... |
try: nodelist.remove(myhostname) except ValueError: pass | def _DistributeConfig(self): """Distribute the configuration to the other nodes. | 6a5b8b4be62fce6794889c36f3b1af5bfa05bd54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/6a5b8b4be62fce6794889c36f3b1af5bfa05bd54/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1669,
887,
809,
12,
2890,
4672,
3536,
1669,
887,
326,
1664,
358,
326,
1308,
2199,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1669,
887,
809,
12,
2890,
4672,
3536,
1669,
887,
326,
1664,
358,
326,
1308,
2199,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
self.update_selected_episode_list_icons() | util.idle_add(self.update_episode_list_icons, [episode.url for episode in episodes]) | def sync_to_ipod_thread(self, widget, device, sync_all_episodes, episodes=None): if sync_all_episodes: device.add_tracks(episodes) # 'only_sync_not_played' must be used or else all the played # tracks will be copied then immediately deleted if self.config.mp3_player_delete_played and self.config.only_sync_not_played: self.ipod_delete_played(device) else: device.add_tracks(episodes, force_played=True) device.close() self.update_selected_episode_list_icons() | d7bfbb16b0c0005ab836eede27e2863d44cd8da7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/d7bfbb16b0c0005ab836eede27e2863d44cd8da7/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
67,
869,
67,
625,
369,
67,
5930,
12,
2890,
16,
3604,
16,
2346,
16,
3792,
67,
454,
67,
881,
27134,
16,
5529,
27134,
33,
7036,
4672,
309,
3792,
67,
454,
67,
881,
27134,
30,
2346,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
869,
67,
625,
369,
67,
5930,
12,
2890,
16,
3604,
16,
2346,
16,
3792,
67,
454,
67,
881,
27134,
16,
5529,
27134,
33,
7036,
4672,
309,
3792,
67,
454,
67,
881,
27134,
30,
2346,... |
start = 'start="0x%x"' % (int (data,16)) | if data == 'x': start = 'start="FIXME: Broken xml from Atmel!"' else: start = 'start="0x%x"' % (int (data,16)) | def dump_boot_info (root): path = ['AVRPART', 'MEMORY', 'BOOT_CONFIG'] info = root.getSubTree (path) if info: # The device has bootloader support. data = info.getElements ('NRWW_START_ADDR')[0].getData () if data[0] == '$': data = '0x' + data[1:] nrww_start = 'nrww_start="0x%x"' % (int (data, 16)) data = info.getElements ('NRWW_STOP_ADDR')[0].getData () if data[0] == '$': data = '0x' + data[1:] nrww_end = 'nrww_end="0x%x"' % (int (data, 16)) data = info.getElements ('RWW_START_ADDR')[0].getData () if data[0] == '$': data = '0x' + data[1:] rww_start = 'rww_start="0x%x"' % (int (data, 16)) data = info.getElements ('RWW_STOP_ADDR')[0].getData () if data[0] == '$': data = '0x' + data[1:] rww_end = 'rww_end="0x%x"' % (int (data, 16)) pagesize = 'pagesize="%d"' % ( \ int (info.getElements ('PAGESIZE')[0].getData ())) print ' <bootloader %s %s %s' % (pagesize, nrww_start, nrww_end) print ' %s %s>' % (rww_start, rww_end) for i in range (8): try: mode = info.getElements ('BOOTSZMODE%d' % (i))[0] except IndexError: continue pages = 'pages="%s"' % (mode.getElements ('PAGES')[0].getData ()) data = mode.getElements ('BOOTSTART')[0].getData () if data[0] == '$': data = '0x' + data[1:] start = 'start="0x%x"' % (int (data,16)) print ' <mode num="%d" %s %s />' % (i, pages, start) print ' </bootloader>' | 65496be2031264614c91230d0175c73a76f32ccd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4046/65496be2031264614c91230d0175c73a76f32ccd/Atmel2libc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
7137,
67,
1376,
261,
3085,
4672,
589,
273,
10228,
5856,
54,
15055,
2187,
296,
24329,
2187,
296,
30124,
67,
7203,
3546,
225,
1123,
273,
1365,
18,
588,
1676,
2471,
261,
803,
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,
4657,
67,
7137,
67,
1376,
261,
3085,
4672,
589,
273,
10228,
5856,
54,
15055,
2187,
296,
24329,
2187,
296,
30124,
67,
7203,
3546,
225,
1123,
273,
1365,
18,
588,
1676,
2471,
261,
803,
13,
... |
category_id, state) \ values (%s, %s, %s, %s, %s, %s, %s, %s)', ( | category_id, state, certificate) \ values (%s, %s, %s, %s, %s, %s, %s, %s, %s)', ( | def init_db(cr): import addons f = addons.get_module_resource('base', 'base.sql') for line in file_open(f).read().split(';'): if (len(line)>0) and (not line.isspace()): cr.execute(line) cr.commit() for i in addons.get_modules(): terp_file = addons.get_module_resource(i, '__terp__.py') mod_path = addons.get_module_path(i) if not mod_path: continue info = False if os.path.isfile(terp_file) or os.path.isfile(mod_path+'.zip'): info = eval(file_open(terp_file).read()) if info: categs = info.get('category', 'Uncategorized').split('/') p_id = None while categs: if p_id is not None: cr.execute('select id \ from ir_module_category \ where name=%s and parent_id=%s', (categs[0], p_id)) else: cr.execute('select id \ from ir_module_category \ where name=%s and parent_id is NULL', (categs[0],)) c_id = cr.fetchone() if not c_id: cr.execute('select nextval(\'ir_module_category_id_seq\')') c_id = cr.fetchone()[0] cr.execute('insert into ir_module_category \ (id, name, parent_id) \ values (%s, %s, %s)', (c_id, categs[0], p_id)) else: c_id = c_id[0] p_id = c_id categs = categs[1:] active = info.get('active', False) installable = info.get('installable', True) if installable: if active: state = 'to install' else: state = 'uninstalled' else: state = 'uninstallable' cr.execute('select nextval(\'ir_module_module_id_seq\')') id = cr.fetchone()[0] cr.execute('insert into ir_module_module \ (id, author, website, name, shortdesc, description, \ category_id, state) \ values (%s, %s, %s, %s, %s, %s, %s, %s)', ( id, info.get('author', ''), info.get('website', ''), i, info.get('name', False), info.get('description', ''), p_id, state)) cr.execute('insert into ir_model_data \ (name,model,module, res_id) values (%s,%s,%s,%s)', ( 'module_meta_information', 'ir.module.module', i, id)) dependencies = info.get('depends', []) for d in dependencies: cr.execute('insert into ir_module_module_dependency \ (module_id,name) values (%s, %s)', (id, d)) cr.commit() | ca6e1c3451e3a2aed75f85039834d84dbbb749d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ca6e1c3451e3a2aed75f85039834d84dbbb749d3/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1966,
12,
3353,
4672,
1930,
31439,
284,
273,
31439,
18,
588,
67,
2978,
67,
3146,
2668,
1969,
2187,
296,
1969,
18,
4669,
6134,
364,
980,
316,
585,
67,
3190,
12,
74,
2934,
896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1966,
12,
3353,
4672,
1930,
31439,
284,
273,
31439,
18,
588,
67,
2978,
67,
3146,
2668,
1969,
2187,
296,
1969,
18,
4669,
6134,
364,
980,
316,
585,
67,
3190,
12,
74,
2934,
896,... |
environment = open('/proc/%d/environ' % page.pid, 'r').read().split('\0') | environment = open('/proc/%d/environ' % page.pid, 'r').read().split('\0') | def selected_cb(terminal, c, row, cb_data): return 1 | 8b3134e082eb3e50149ea7f88b746b58649abe1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6697/8b3134e082eb3e50149ea7f88b746b58649abe1c/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3170,
67,
7358,
12,
15979,
16,
276,
16,
1027,
16,
2875,
67,
892,
4672,
327,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3170,
67,
7358,
12,
15979,
16,
276,
16,
1027,
16,
2875,
67,
892,
4672,
327,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.inExampleTable = et | self.in_data = et | def setExampleTable(self, et): self.inExampleTable = et | cd667906d81f50c59a31a1d4e98077bb9b404cc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/cd667906d81f50c59a31a1d4e98077bb9b404cc7/OWPythonScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10908,
1388,
12,
2890,
16,
3393,
4672,
365,
18,
267,
67,
892,
273,
3393,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10908,
1388,
12,
2890,
16,
3393,
4672,
365,
18,
267,
67,
892,
273,
3393,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if config.use_api and self.targetSite.versionnumber() >= 16: x = self.targetSite.api_address() del x else: raise NotImplementedError | raise NotImplementedError | def upload_image(self, debug=False): """Gets the image at URL self.url, and uploads it to the target wiki. Returns the filename which was used to upload the image. If the upload fails, the user is asked whether to try again or not. If the user chooses not to retry, returns null. """ try: if config.use_api and self.targetSite.versionnumber() >= 16: x = self.targetSite.api_address() del x else: raise NotImplementedError except NotImplementedError: return self._uploadImageOld(debug) if not hasattr(self,'_contents'): self.read_file_content() filename = self.process_filename() params = { 'action': 'upload', 'token': self.targetSite.getToken(), 'comment': self.description, 'filename': filename, #'': '', } if self.uploadByUrl: params['url'] = self.url else: params['file'] = self._contents if self.ignoreWarning: params['ignorewarnings'] = 1 wikipedia.output(u'Uploading file to %s via API....' % self.targetSite) data = query.GetData(params, self.targetSite) if wikipedia.verbose: wikipedia.output("%s" % data) if 'error' in data: # error occured errCode = data['error']['code'] wikipedia.output("%s" % data) else: data = data['upload'] if data['result'] == u'Warning': #upload success but return warning. warn = data['warnings'].keys()[0] wikipedia.output("We got a warning message:", newline=False) warFn = data['warnings'][warn] if warn == 'duplicate-archive': wikipedia.output("The file is duplicate a deleted file %s." % warFn) elif warn == 'was-deleted': wikipedia.output("This file was deleted for %s." % warFn) elif warn == 'emptyfile': wikipedia.output("File %s is an empty file." % warFn) elif warn == 'exists': wikipedia.output("File %s is exists." % warFn) elif warn == 'duplicate': wikipedia.output("Uploaded file is duplicate with %s." % warFn) elif warn == 'badfilename': wikipedia.output("Target filename is invaild.") elif warn == 'filetype-unwanted-type': wikipedia.output("File %s type is unwatched type." % warFn) answer = wikipedia.inputChoice(u"Do you want to ignore?", ['Yes', 'No'], ['y', 'N'], 'N') if answer == "y": self.ignoreWarning = 1 self.keepFilename = True return self.upload_image(debug) else: wikipedia.output("Upload aborted.") return elif data['result'] == u'Success': #No any warning, upload and online complete. wikipedia.output(u"Upload successful.") return filename #data['filename'] | e308dead63ad775ca98a647ef922afe1a25830e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/e308dead63ad775ca98a647ef922afe1a25830e1/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
2730,
12,
2890,
16,
1198,
33,
8381,
4672,
3536,
3002,
326,
1316,
622,
1976,
365,
18,
718,
16,
471,
18427,
518,
358,
326,
1018,
9050,
18,
2860,
326,
1544,
1492,
1703,
1399,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
2730,
12,
2890,
16,
1198,
33,
8381,
4672,
3536,
3002,
326,
1316,
622,
1976,
365,
18,
718,
16,
471,
18427,
518,
358,
326,
1018,
9050,
18,
2860,
326,
1544,
1492,
1703,
1399,
35... |
Info('Using existing VM image') | Info('Using existing VM image %s' % self.vm_image_path) | def PrepareBase(self): """Creates an update-able VM based on base image.""" | 113739c109036eaeaecd28548f6eb14962004b5a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/113739c109036eaeaecd28548f6eb14962004b5a/cros_au_test_harness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7730,
2171,
12,
2890,
4672,
3536,
2729,
392,
1089,
17,
429,
8251,
2511,
603,
1026,
1316,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7730,
2171,
12,
2890,
4672,
3536,
2729,
392,
1089,
17,
429,
8251,
2511,
603,
1026,
1316,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
raise Exception('Invalid Certificat') | raise Exception('Invalid Certificate') | def _check_certificat(self, cr, uid, ids): if not ids: return True | 5418bf7003f9733309f8b82e9ed86e9af25aa71a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/5418bf7003f9733309f8b82e9ed86e9af25aa71a/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
71,
2303,
270,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
309,
486,
3258,
30,
327,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
71,
2303,
270,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
309,
486,
3258,
30,
327,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
in chapSecrets.items.iterkeys()]) | in chapSecrets.items['pptpd'].iterkeys()]) | def _call(self, path, depth, convertToDirList = True): chapSecrets = ChapSecrets() if convertToDirList: return Grimoire.Performer.DirListFilter( path, depth, [(1, [item]) for item in chapSecrets.items.iterkeys()]) return chapSecrets.items | 71032fff4d9b51a3855c878834a988ac48a49726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9377/71032fff4d9b51a3855c878834a988ac48a49726/vpn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
589,
16,
3598,
16,
8137,
1621,
682,
273,
1053,
4672,
462,
438,
20815,
273,
1680,
438,
20815,
1435,
309,
8137,
1621,
682,
30,
327,
611,
86,
381,
19847,
18,
4990... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
12,
2890,
16,
589,
16,
3598,
16,
8137,
1621,
682,
273,
1053,
4672,
462,
438,
20815,
273,
1680,
438,
20815,
1435,
309,
8137,
1621,
682,
30,
327,
611,
86,
381,
19847,
18,
4990... |
open('%s/worksheet.txt'%self.__dir, 'w').write(E) | open(worksheet_txt, 'w').write(E) | def save_snapshot(self, user, E=None): self.uncache_snapshot_data() path = self.snapshot_directory() basename = str(int(time.time())) filename = '%s/%s.bz2'%(path, basename) if E is None: E = self.edit_text() if open('%s/worksheet.txt'%self.__dir).read() == E: # we already wrote it out... return open(filename, 'w').write(bz2.compress(E)) open('%s/worksheet.txt'%self.__dir, 'w').write(E) try: X = self.__saved_by_info except AttributeError: X = {} self.__saved_by_info = X X[basename] = user if self.is_auto_publish(): self.notebook().publish_worksheet(self, user) | 3e5811b10f5bb211dd322846c47f89e77565bf8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3e5811b10f5bb211dd322846c47f89e77565bf8a/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
11171,
12,
2890,
16,
729,
16,
512,
33,
7036,
4672,
365,
18,
551,
807,
67,
11171,
67,
892,
1435,
589,
273,
365,
18,
11171,
67,
5149,
1435,
4882,
273,
609,
12,
474,
12,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
11171,
12,
2890,
16,
729,
16,
512,
33,
7036,
4672,
365,
18,
551,
807,
67,
11171,
67,
892,
1435,
589,
273,
365,
18,
11171,
67,
5149,
1435,
4882,
273,
609,
12,
474,
12,
957,
... |
'faultString' : "%s:%s" % (sys.exc_type, sys.exc_value)} | 'faultString' : "%s:%s" % (exc_type, exc_value)} | def system_multicall(self, call_list): """system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => \ | b303381c9c144da95fae19f5665221483f2a6696 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b303381c9c144da95fae19f5665221483f2a6696/SimpleXMLRPCServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2619,
67,
5421,
335,
454,
12,
2890,
16,
745,
67,
1098,
4672,
3536,
4299,
18,
5421,
335,
454,
3816,
27828,
2039,
461,
4278,
296,
1289,
2187,
296,
2010,
4278,
306,
22,
16,
576,
65,
5779,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2619,
67,
5421,
335,
454,
12,
2890,
16,
745,
67,
1098,
4672,
3536,
4299,
18,
5421,
335,
454,
3816,
27828,
2039,
461,
4278,
296,
1289,
2187,
296,
2010,
4278,
306,
22,
16,
576,
65,
5779,... |
return fn(self, *values[1:]) | try: return fn(self, *values[1:]) except BitmapCreationException, e: log(str(e)) return dict() | def dispatch(self, *values): #log('RECEIVED:%s(%d)' % (values[0], len(values[1:]))) fn = self.MESSAGES.get(values[0]) if fn: return fn(self, *values[1:]) else: log("UNKNOWN:%s" % str(values)) return dict(type='unknown', values=values) | ee10f6d8901b8e487577888c6f2de97ace2c050f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ee10f6d8901b8e487577888c6f2de97ace2c050f/servermessage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
380,
2372,
4672,
468,
1330,
2668,
27086,
20764,
5319,
87,
9275,
72,
2506,
738,
261,
2372,
63,
20,
6487,
562,
12,
2372,
63,
21,
26894,
20349,
2295,
273,
365,
18,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
380,
2372,
4672,
468,
1330,
2668,
27086,
20764,
5319,
87,
9275,
72,
2506,
738,
261,
2372,
63,
20,
6487,
562,
12,
2372,
63,
21,
26894,
20349,
2295,
273,
365,
18,
261... |
(len(res), number_of_atoms) | (len(res), number_of_atoms) | def atoms_in_mmp_file_order(self, mapping = None): #bruce 080321 """ [overrides Chunk method] | 6495273e1d8c1b0570b3f269aedb8ef509f03cd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6495273e1d8c1b0570b3f269aedb8ef509f03cd0/DnaLadderRailChunk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
67,
267,
67,
81,
1291,
67,
768,
67,
1019,
12,
2890,
16,
2874,
273,
599,
4672,
468,
2848,
3965,
374,
3672,
1578,
21,
3536,
306,
19775,
13021,
707,
65,
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,
9006,
67,
267,
67,
81,
1291,
67,
768,
67,
1019,
12,
2890,
16,
2874,
273,
599,
4672,
468,
2848,
3965,
374,
3672,
1578,
21,
3536,
306,
19775,
13021,
707,
65,
2,
-100,
-100,
-100,
-100,
... |
5 + 6*j + k | 11 - i + 4*j + 13*k | def random_element(self, *args, **kwds): """ Return a random element of this quaternion algebra. | 847201ec0c8c2fb99710c5f165a7e692579364eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/847201ec0c8c2fb99710c5f165a7e692579364eb/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
2956,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
930,
434,
333,
26774,
524,
29087,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2744,
67,
2956,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
2000,
279,
2744,
930,
434,
333,
26774,
524,
29087,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.