rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
recording.autoincrease = False | self.recording[self.selectedEntry].autoincrease = False | def inputCallback(self, value): if value is not None: print "stopping recording after", int(value), "minutes." if int(value) != 0: recording.autoincrease = False self.recording[self.selectedEntry].end = time() + 60 * int(value) self.session.nav.RecordTimer.timeChanged(self.recording[self.selectedEntry]) | 0663e43025ddbeb02efc57343b10e1304681c290 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/0663e43025ddbeb02efc57343b10e1304681c290/InfoBarGenerics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
810,
2428,
12,
2890,
16,
460,
4672,
309,
460,
353,
486,
599,
30,
1172,
315,
5681,
1382,
14949,
1839,
3113,
509,
12,
1132,
3631,
315,
17916,
1199,
309,
509,
12,
1132,
13,
480,
374,
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,
810,
2428,
12,
2890,
16,
460,
4672,
309,
460,
353,
486,
599,
30,
1172,
315,
5681,
1382,
14949,
1839,
3113,
509,
12,
1132,
3631,
315,
17916,
1199,
309,
509,
12,
1132,
13,
480,
374,
30,
... |
headers.addheader('Trailer', trailer) | headers.addheader('Trailer', trailer+'\r') | def check_trailer_headers (headers): """ Message header fields listed in the Trailer header field MUST NOT include the following header fields: . Transfer-Encoding . Content-Length . Trailer """ if "Trailer" not in headers: return tokeep = [] for trailer in headers.getheaders("Trailer"): if trailer.lower() not in forbi... | 5c84c67327b9b90462d5c1a09f956adea73bc0f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5c84c67327b9b90462d5c1a09f956adea73bc0f1/Headers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
15565,
264,
67,
2485,
261,
2485,
4672,
3536,
2350,
1446,
1466,
12889,
316,
326,
2197,
2895,
1446,
652,
10685,
4269,
2341,
326,
3751,
1446,
1466,
30,
263,
12279,
17,
4705,
263,
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,
866,
67,
15565,
264,
67,
2485,
261,
2485,
4672,
3536,
2350,
1446,
1466,
12889,
316,
326,
2197,
2895,
1446,
652,
10685,
4269,
2341,
326,
3751,
1446,
1466,
30,
263,
12279,
17,
4705,
263,
3... |
if options.params: cmd += [ options.params ] | def runStartupPerfTests(options, timer, largeData=False, repeat=3, logger=log): """ Run startup time tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../rel... | b699ba32e2c975274e5bcf6e3ec7d39769952732 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/b699ba32e2c975274e5bcf6e3ec7d39769952732/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
22178,
22016,
14650,
12,
2116,
16,
5441,
16,
7876,
751,
33,
8381,
16,
7666,
33,
23,
16,
1194,
33,
1330,
4672,
3536,
1939,
11850,
813,
7434,
18,
225,
4080,
702,
273,
1109,
1320,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22178,
22016,
14650,
12,
2116,
16,
5441,
16,
7876,
751,
33,
8381,
16,
7666,
33,
23,
16,
1194,
33,
1330,
4672,
3536,
1939,
11850,
813,
7434,
18,
225,
4080,
702,
273,
1109,
1320,
1... | |
try: record['originalairdate'] = unicode(prog.year, 'utf8') except (UnicodeEncodeError, TypeError): record['originalairdate'] = prog.year | record['originalairdate'] = prog.year | def _getScheduledRecordedProgramList(self): '''Find all Scheduled and Recorded programs return array of found programs, if none then empty array is returned ''' programs=[] | da58d67ff802989f12b584ed8dfcff2d3581d752 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/da58d67ff802989f12b584ed8dfcff2d3581d752/jamu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
10660,
426,
3850,
785,
9459,
682,
12,
2890,
4672,
9163,
3125,
777,
17286,
471,
868,
3850,
785,
25038,
327,
526,
434,
1392,
25038,
16,
309,
6555,
1508,
1008,
526,
353,
2106,
916... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
10660,
426,
3850,
785,
9459,
682,
12,
2890,
4672,
9163,
3125,
777,
17286,
471,
868,
3850,
785,
25038,
327,
526,
434,
1392,
25038,
16,
309,
6555,
1508,
1008,
526,
353,
2106,
916... |
ui.show_msg(self.window, _("File ") + "\"" + tags[0]['fullpath'] + "\"" + _(" not found. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) | ui.show_msg(self.window, _("File ") + "\"" + tags[0]['fullpath'] + "\"" + _(" not found. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, response_cb=self.dialog_destroy) | def on_tags_edit(self, widget): # Try loading module global tagpy if tagpy is None: try: import tagpy try: # Set default tag encoding to utf8.. fixes some reported bugs. import tagpy.id3v2 as id3v2 id3v2.FrameFactory.instance().setDefaultTextEncoding(tagpy.StringType.UTF8) except: pass except: pass if tagpy is None: ui... | 42ec8106d5d9032fcd77e092d270c87208745f84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/42ec8106d5d9032fcd77e092d270c87208745f84/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
3604,
4672,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
775,
30,
468,
1000,
805,
1047,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
3604,
4672,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
775,
30,
468,
1000,
805,
1047,
268... |
,'F':'float' ,'D':'double' | ,'F32':'float:4' ,'F64':'float:8' | def build_simple_str_liststore(l): r = gtk.ListStore(str) for e in l: r.append([e]) return r | 78440d3152e6d6ffda16bfdc0ae622d790564364 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/78440d3152e6d6ffda16bfdc0ae622d790564364/GameConqueror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9647,
67,
701,
67,
1098,
2233,
12,
80,
4672,
436,
273,
22718,
18,
682,
2257,
12,
701,
13,
364,
425,
316,
328,
30,
436,
18,
6923,
3816,
73,
5717,
327,
436,
225,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9647,
67,
701,
67,
1098,
2233,
12,
80,
4672,
436,
273,
22718,
18,
682,
2257,
12,
701,
13,
364,
425,
316,
328,
30,
436,
18,
6923,
3816,
73,
5717,
327,
436,
225,
2,
-100,
-... |
sage: var('m') m | sage: var('m,n') (m, n) | def assume(*args): """ Make the given assumptions. INPUT: - ``*args`` - assumptions EXAMPLES:: sage: assume(x > 0) sage: bool(sqrt(x^2) == x) True sage: forget() sage: bool(sqrt(x^2) == x) False An integer constraint:: sage: var('n, P, r, r2') (n, P, r, r2) sage: assume(n, 'integer') sage: c = P*e^(r*n) sage: d ... | af93235ce102ea3788490bdc96edce12d6067a9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/af93235ce102ea3788490bdc96edce12d6067a9d/assumptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6750,
30857,
1968,
4672,
3536,
4344,
326,
864,
6287,
573,
18,
225,
12943,
30,
225,
300,
225,
12176,
14,
1968,
10335,
300,
6287,
573,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
6750... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6750,
30857,
1968,
4672,
3536,
4344,
326,
864,
6287,
573,
18,
225,
12943,
30,
225,
300,
225,
12176,
14,
1968,
10335,
300,
6287,
573,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
6750... |
if self.debug: log.msg('ftp_USER params: %s' % params) | log.debug('ftp_USER params: %s' % params) | def ftp_USER(self, params): """Get the login name, and reset the session PASS is expected to follow | cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cdcaf038ab7a8d9d6eba20fa49c93c98c9d905a0/jdftp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4714,
12,
2890,
16,
859,
4672,
3536,
967,
326,
3925,
508,
16,
471,
2715,
326,
1339,
17882,
353,
2665,
358,
2805,
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,
13487,
67,
4714,
12,
2890,
16,
859,
4672,
3536,
967,
326,
3925,
508,
16,
471,
2715,
326,
1339,
17882,
353,
2665,
358,
2805,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.adjustSize() | def __init__(self,parent=None, signalManager = None, name = "Imputer"): OWWidget.__init__(self, parent, signalManager, name) self.inputs = [("Classified Examples", ExampleTableWithClass, self.cdata, Default)] self.outputs = [("Classified Examples", ExampleTableWithClass, Default), ("Imputer", orange.ImputerConstructor... | c851d11d09284089edf54d1ccc2d14f74a5be5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c851d11d09284089edf54d1ccc2d14f74a5be5e7/OWImputer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
1170,
458,
264,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
1170,
458,
264,
6,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
... | |
self.graph.add((subj, dcterms["tableOfContents"], toc_resource)) | self.graph.add((toc_resource, dct["isPartOf"], self.dataset_resource)) self.graph.add((subj, dct["tableOfContents"], toc_resource)) | def convert(self, indata): data = json.read(indata) if data["key"].startswith("/user/"): return | 02cf5291fc029decc1161f03e51e28c2900474a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4788/02cf5291fc029decc1161f03e51e28c2900474a0/json2rdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2890,
16,
316,
892,
4672,
501,
273,
1163,
18,
896,
12,
728,
396,
13,
225,
309,
501,
9614,
856,
6,
8009,
17514,
1918,
2932,
19,
1355,
4898,
4672,
327,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
2890,
16,
316,
892,
4672,
501,
273,
1163,
18,
896,
12,
728,
396,
13,
225,
309,
501,
9614,
856,
6,
8009,
17514,
1918,
2932,
19,
1355,
4898,
4672,
327,
2,
-100,
-100,
-100,
-... |
node = repo.changectx(opts['rev']).node() | ctx = repo.changectx(opts['rev']) if not ctx: raise util.Abort(_('repository has no revisions')) node = ctx.node() | def archive(ui, repo, dest, **opts): '''create unversioned archive of a repository revision By default, the revision used is the parent of the working directory; use "-r" to specify a different revision. To specify the type of archive to create, use "-t". Valid types are: "files" (default): a directory full of file... | 26bfcd2f4b5df01e4c297e7b81f13551ca5523ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/26bfcd2f4b5df01e4c297e7b81f13551ca5523ff/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5052,
12,
4881,
16,
3538,
16,
1570,
16,
2826,
4952,
4672,
9163,
2640,
29645,
5052,
434,
279,
3352,
6350,
225,
2525,
805,
16,
326,
6350,
1399,
353,
326,
982,
434,
326,
5960,
1867,
31,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5052,
12,
4881,
16,
3538,
16,
1570,
16,
2826,
4952,
4672,
9163,
2640,
29645,
5052,
434,
279,
3352,
6350,
225,
2525,
805,
16,
326,
6350,
1399,
353,
326,
982,
434,
326,
5960,
1867,
31,
9... |
TixSubWidget.__init__(self, master, name, destroy_physically) | TixSubWidget.__init__(self, master, name, destroy_physically) | def __init__(self, master, name, destroy_physically=1): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
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,
... | [
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
path=basedir.save_config_path(site, dir, leaf) | path=basedir.save_config_path(site, dir) path=os.path.join(path, leaf) | def save_path(site, dir, leaf, create=1): parent=basedir.save_config_path(site, dir) if os.path.isdir(parent): path=basedir.save_config_path(site, dir, leaf) else: path=choices.save(dir, leaf, create) return path | e6eb2cc22cdef290eb0e3ae781ee887012194dee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/e6eb2cc22cdef290eb0e3ae781ee887012194dee/mime_handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
803,
12,
4256,
16,
1577,
16,
7839,
16,
752,
33,
21,
4672,
982,
33,
31722,
18,
5688,
67,
1425,
67,
803,
12,
4256,
16,
1577,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
2938... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
803,
12,
4256,
16,
1577,
16,
7839,
16,
752,
33,
21,
4672,
982,
33,
31722,
18,
5688,
67,
1425,
67,
803,
12,
4256,
16,
1577,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
2938... |
items = l.items | def ll_pop_zero(func, l): length = l.length if func is dum_checkidx and (length == 0): raise IndexError newlength = length - 1 res = l.items[0] j = 0 items = l.items j1 = j+1 while j < newlength: items[j] = items[j1] j = j1 j1 += 1 ITEM = typeOf(l).TO.ITEM if isinstance(ITEM, Ptr): items[newlength] = nullptr(ITEM.TO) _... | afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
5120,
67,
7124,
12,
644,
16,
328,
4672,
769,
273,
328,
18,
2469,
309,
1326,
353,
4569,
67,
1893,
3465,
471,
261,
2469,
422,
374,
4672,
1002,
10195,
394,
2469,
273,
769,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
5120,
67,
7124,
12,
644,
16,
328,
4672,
769,
273,
328,
18,
2469,
309,
1326,
353,
4569,
67,
1893,
3465,
471,
261,
2469,
422,
374,
4672,
1002,
10195,
394,
2469,
273,
769,
300,
... | |
print "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] | msg = "P Pick polarity set to %s"%self.dicts[self.stPt]['PPol'] appendTextview(self.textviewStdOut, msg) | def pick(self, event): #import ipdb; ipdb.set_trace() #We want to round from the picking location to #the time value of the nearest time sample: samp_rate = self.streams[self.stPt][0].stats.sampling_rate pickSample = event.xdata * samp_rate pickSample = round(pickSample) pickSample = pickSample / samp_rate # we need th... | b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
12,
2890,
16,
871,
4672,
468,
5666,
2359,
1966,
31,
2359,
1966,
18,
542,
67,
5129,
1435,
468,
3218,
2545,
358,
3643,
628,
326,
6002,
310,
2117,
358,
468,
5787,
813,
460,
434,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
12,
2890,
16,
871,
4672,
468,
5666,
2359,
1966,
31,
2359,
1966,
18,
542,
67,
5129,
1435,
468,
3218,
2545,
358,
3643,
628,
326,
6002,
310,
2117,
358,
468,
5787,
813,
460,
434,
326... |
actor = vtk.vtkTextActor() | actor = vtk.vtkTextActor() | def __init__(self): | 5d5cd99a1c1efaf0ffb78b152f96c66ac44cfd60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/5d5cd99a1c1efaf0ffb78b152f96c66ac44cfd60/vtk_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
-1... |
if v.message != 32 or not self.auto_open: | if v.args[0] != 32 or not self.auto_open: | def request(self, method, url, body=None, headers={}): """Send a complete request to the server.""" | 1d6ba71bcaa05e769688a67865f6a2377c37bff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1d6ba71bcaa05e769688a67865f6a2377c37bff0/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
12938,
4672,
3536,
3826,
279,
3912,
590,
358,
326,
1438,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
12938,
4672,
3536,
3826,
279,
3912,
590,
358,
326,
1438,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'coordinates': get_coordinates(geometry)} | 'coordinates': get_coordinates(self)} | def get_coordinates(geometry): gtype = geometry.GetGeometryType() geom_count = geometry.GetGeometryCount() coordinates = [] | f3c97359caf81e28f92b4ec9b4bd28269c54ae44 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/f3c97359caf81e28f92b4ec9b4bd28269c54ae44/ogr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16941,
12,
14330,
4672,
314,
723,
273,
5316,
18,
967,
9823,
559,
1435,
7364,
67,
1883,
273,
5316,
18,
967,
9823,
1380,
1435,
5513,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16941,
12,
14330,
4672,
314,
723,
273,
5316,
18,
967,
9823,
559,
1435,
7364,
67,
1883,
273,
5316,
18,
967,
9823,
1380,
1435,
5513,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
... |
slen, raw = ord(raw[0]), raw[1:] | slen, raw = consume_utf8_length(raw) | def _read_manifest(self): if '/manifest' not in self.entries: raise LitError('Lit file does not have a valid manifest') raw = self.get_file('/manifest') self.manifest = {} while raw: slen, raw = ord(raw[0]), raw[1:] if slen == 0: break root, raw = raw[:slen].decode('utf8'), raw[slen:] if not raw: raise LitError('Trunca... | 1eba7afa35284fba49addae1594c0ae0751f3555 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/1eba7afa35284fba49addae1594c0ae0751f3555/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
14357,
12,
2890,
4672,
309,
1173,
14357,
11,
486,
316,
365,
18,
8219,
30,
1002,
511,
305,
668,
2668,
23707,
585,
1552,
486,
1240,
279,
923,
5643,
6134,
1831,
273,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
14357,
12,
2890,
4672,
309,
1173,
14357,
11,
486,
316,
365,
18,
8219,
30,
1002,
511,
305,
668,
2668,
23707,
585,
1552,
486,
1240,
279,
923,
5643,
6134,
1831,
273,
365,
18... |
self.exportAttributes(outfile, level, namespace_, name_='ContinuousChar') | self.exportAttributes(outfile, level, [], namespace_, name_='ContinuousChar') | def export(self, outfile, level, namespace_='', name_='ContinuousChar', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='ContinuousChar') if self.hasContent_(): outfile.wri... | 10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
26509,
2156,
2187,
1981,
536,
67,
2218,
11,
4672,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
8756,
16,
1801,
16,
1981,
67,
2218,
2187,
508,
67,
2218,
26509,
2156,
2187,
1981,
536,
67,
2218,
11,
4672,
2405,
7790,
12,
26050,
16,
1801,
13,
8756,
18,
2626,
2668... |
print_undoc_symbols(PREFIX, docdir, incdir) | print_undoc_symbols(PREFIXES, docdir, incdir) | def print_undoc_symbols(prefix, docdir, incdir): docs = [] for sect in DOCSECTIONS: for file in glob.glob(os.path.join(docdir, sect, "*.tex")): docs.append(open(file).read()) docs = "\n".join(docs) incfiles = os.path.join(incdir, INCLUDEPATTERN) fp = os.popen("ctags -IDL_IMPORT --c-types=%s -f - %s" % (TAG_KINDS, i... | 3765bd23f1517b1a04fc6472a2ca1e8ea61a227f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3765bd23f1517b1a04fc6472a2ca1e8ea61a227f/undoc_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1074,
504,
67,
15536,
12,
3239,
16,
997,
1214,
16,
7290,
1214,
4672,
3270,
273,
5378,
225,
364,
29140,
316,
5467,
39,
19082,
55,
30,
364,
585,
316,
4715,
18,
10581,
12,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1074,
504,
67,
15536,
12,
3239,
16,
997,
1214,
16,
7290,
1214,
4672,
3270,
273,
5378,
225,
364,
29140,
316,
5467,
39,
19082,
55,
30,
364,
585,
316,
4715,
18,
10581,
12,
538,
... |
Example ------- | Examples -------- | def cublasDnrm2(n, x, incx): """ Euclidean norm (2-norm) of real vector. Computes the Euclidean norm of a real double-precision vector. Parameters ---------- n : int Number of elements in input vectors. x : ctypes.c_void_p Pointer to double-precision input vector. incx : int Storage spacing between elements of `x`. ... | f3eb0a79d8c436d509dec60f91ff7a7dcced528c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/f3eb0a79d8c436d509dec60f91ff7a7dcced528c/cublas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
30579,
19053,
8864,
22,
12,
82,
16,
619,
16,
7290,
92,
4672,
3536,
512,
22392,
4651,
261,
22,
17,
7959,
13,
434,
2863,
3806,
18,
225,
14169,
281,
326,
512,
22392,
4651,
434,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
30579,
19053,
8864,
22,
12,
82,
16,
619,
16,
7290,
92,
4672,
3536,
512,
22392,
4651,
261,
22,
17,
7959,
13,
434,
2863,
3806,
18,
225,
14169,
281,
326,
512,
22392,
4651,
434,
279,
... |
_active.append(self) | def __init__(self, args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0): """Create new Popen instance.""" _cleanup() | 091f97ac75923a9f8149f440cdb29114d4267997 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/091f97ac75923a9f8149f440cdb29114d4267997/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
16,
1681,
1467,
33,
20,
16,
9070,
33,
7036,
16,
8801,
33,
7036,
16,
3909,
33,
7036,
16,
4514,
33,
7036,
16,
675,
4177,
67,
4293,
33,
7036,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
16,
1681,
1467,
33,
20,
16,
9070,
33,
7036,
16,
8801,
33,
7036,
16,
3909,
33,
7036,
16,
4514,
33,
7036,
16,
675,
4177,
67,
4293,
33,
7036,
16,
1... | |
self.__character = character | def __init__(self, character, weight): self.__level = character.modulus() self.__character = character self.__P1 = p1list.P1List(self.level()) # The list returned from P1List is guaranteed to be sorted. # Thus each list constructed below is also sorted. This is # important since the index function assumes the list is ... | f01e95305ef47ec6d1b6fc037549dd29c31e2dcf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/f01e95305ef47ec6d1b6fc037549dd29c31e2dcf/manin_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3351,
16,
3119,
4672,
365,
16186,
2815,
273,
3351,
18,
1711,
17284,
1435,
365,
16186,
52,
21,
273,
293,
21,
1098,
18,
52,
21,
682,
12,
2890,
18,
2815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3351,
16,
3119,
4672,
365,
16186,
2815,
273,
3351,
18,
1711,
17284,
1435,
365,
16186,
52,
21,
273,
293,
21,
1098,
18,
52,
21,
682,
12,
2890,
18,
2815,
... | |
command = 'CONVERT_PDF\nPATH=%s\n' % (absdocpath,) result = self.sendRequest(command) return result | return absdocpath | def convertToPDF(self, filename, data): """Send a request to a running pyuno server to convert to PDF. | ddf7bf8471df24d5d021583656effd577dadfe80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9162/ddf7bf8471df24d5d021583656effd577dadfe80/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
17508,
12,
2890,
16,
1544,
16,
501,
4672,
3536,
3826,
279,
590,
358,
279,
3549,
2395,
318,
83,
1438,
358,
1765,
358,
12667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
17508,
12,
2890,
16,
1544,
16,
501,
4672,
3536,
3826,
279,
590,
358,
279,
3549,
2395,
318,
83,
1438,
358,
1765,
358,
12667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def do_forecasts(self, city): | def do_forecasts(self, line): | def do_forecasts(self, city): """ forecasts CITY | 8827b15496f5f474965b352a253dfc2648a268e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8827b15496f5f474965b352a253dfc2648a268e0/wetboobs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1405,
4155,
87,
12,
2890,
16,
980,
4672,
3536,
18763,
87,
385,
4107,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1405,
4155,
87,
12,
2890,
16,
980,
4672,
3536,
18763,
87,
385,
4107,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
form_fs = self.get_fs_layout_content(portal_meta, skin_id, scheme_id, file_id, rtype) | form_fs = self.get_fs_layout_content(portal, skin_id, scheme_id, file_id, rtype) | def updateLayoutForms(self, portal, locator, skin_id, f_action, file_id): """ reload Naaya portal layout files""" report = {} portal_path = portal.absolute_url(1) portal_meta = portal.meta_type file_custom = [] for fid in file_id.split(','): file_custom.append(fid.strip()) | ba7db54416bb4a2a8ec35d231a25c000f8c28f7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/ba7db54416bb4a2a8ec35d231a25c000f8c28f7e/NaayaUpdater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3744,
18529,
12,
2890,
16,
11899,
16,
8871,
16,
18705,
67,
350,
16,
284,
67,
1128,
16,
585,
67,
350,
4672,
3536,
7749,
16350,
528,
69,
11899,
3511,
1390,
8395,
2605,
273,
2618,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3744,
18529,
12,
2890,
16,
11899,
16,
8871,
16,
18705,
67,
350,
16,
284,
67,
1128,
16,
585,
67,
350,
4672,
3536,
7749,
16350,
528,
69,
11899,
3511,
1390,
8395,
2605,
273,
2618,
1... |
newCacheWhitelist[cKey] = res[:-1] | newCacheWhitelist[cKey] = tuple(res[1:]) | def __cacheAllRefresh(self): """This method has to be called from synchronized block.""" if self.allDataCacheRefresh > time.time(): return | 2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2493,
1595,
8323,
12,
2890,
4672,
3536,
2503,
707,
711,
358,
506,
2566,
628,
3852,
1203,
12123,
309,
365,
18,
454,
751,
1649,
8323,
405,
813,
18,
957,
13332,
327,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2493,
1595,
8323,
12,
2890,
4672,
3536,
2503,
707,
711,
358,
506,
2566,
628,
3852,
1203,
12123,
309,
365,
18,
454,
751,
1649,
8323,
405,
813,
18,
957,
13332,
327,
2,
-100,
-100,
... |
sys.stderr.write("'generate_hostconf = True' in main.mk.\n") | sys.stderr.write("'generate_hostconf = False' in main.mk.\n") | def read_all_autochecks(): global autochecks autochecks = [] for f in glob.glob(autochecksdir + '/*.mk'): try: autochecks += eval(file(f).read()) except SyntaxError,e: sys.stderr.write("Syntax error in file %s: %s\n" % (f, e)) sys.exit(3) except Exception, e: sys.stderr.write("Error in file %s:\n%s\n" % (f, e)) sys.exi... | 0797f5629eab93c749801724afe7c6bdf113f63c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/0797f5629eab93c749801724afe7c6bdf113f63c/check_mk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
454,
67,
6079,
12366,
13332,
2552,
3656,
12366,
3656,
12366,
273,
5378,
364,
284,
316,
4715,
18,
10581,
12,
6079,
12366,
1214,
397,
1173,
11146,
24816,
11,
4672,
775,
30,
3656,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
67,
6079,
12366,
13332,
2552,
3656,
12366,
3656,
12366,
273,
5378,
364,
284,
316,
4715,
18,
10581,
12,
6079,
12366,
1214,
397,
1173,
11146,
24816,
11,
4672,
775,
30,
3656,
... |
cmd = "chown %s:%s"%(instr.new_user, instr.new_group) | cmd = "chown --no-dereference %s:%s"%(instr.new_user, instr.new_group) | def apply(self, builder, instr, role, path): #print "path = %s"%path dp = filespec.FSFileSpecDataProvider(path) files = dp.abs_match(instr.filespec) if (instr.new_user is None): cmd = "chgrp %s"%(instr.new_group) elif (instr.new_group is None): cmd = "chown %s"%(instr.new_user) else: cmd = "chown %s:%s"%(instr.new_use... | aa04e24d82d850be1b6ba75142138081011efa52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4427/aa04e24d82d850be1b6ba75142138081011efa52/filedep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2089,
16,
16170,
16,
2478,
16,
589,
4672,
225,
468,
1188,
315,
803,
273,
738,
87,
28385,
803,
9986,
273,
1390,
705,
18,
4931,
812,
1990,
20757,
12,
803,
13,
1390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2089,
16,
16170,
16,
2478,
16,
589,
4672,
225,
468,
1188,
315,
803,
273,
738,
87,
28385,
803,
9986,
273,
1390,
705,
18,
4931,
812,
1990,
20757,
12,
803,
13,
1390,
... |
data = f.read( ) | data = f.read( ).splitlines( ) | def plot_hpgl(file): '''Send an HPGL file to the plotter found connected to the computer.''' f = open(file, 'r') data = f.read( ) f.close( ) plotter = instantiate_plotter( ) plotter.write(data) | 900ee970e8d7085bcf26502d0f42cb437198bd54 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3716/900ee970e8d7085bcf26502d0f42cb437198bd54/plot-hpgl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
15373,
7043,
12,
768,
4672,
9163,
3826,
392,
670,
52,
11261,
585,
358,
326,
3207,
387,
1392,
5840,
358,
326,
26579,
1093,
6309,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
15373,
7043,
12,
768,
4672,
9163,
3826,
392,
670,
52,
11261,
585,
358,
326,
3207,
387,
1392,
5840,
358,
326,
26579,
1093,
6309,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
50... |
gtk.threads_enter() | def _display(): self.__fileview.clear() self.set_long_title(shorten_home_name(directory)) self.__currentdirectory = directory globaldict = {'directory':directory} try: contexts = self.service.boss.call_command('contexts', 'get_contexts', contextname='directory', globaldict=globaldict) self.__toolbar.set_contexts(contex... | dc8a3196a85275351261f3901d9cb0737707794a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/dc8a3196a85275351261f3901d9cb0737707794a/filemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5417,
13332,
365,
16186,
768,
1945,
18,
8507,
1435,
365,
18,
542,
67,
5748,
67,
2649,
12,
6620,
275,
67,
8712,
67,
529,
12,
5149,
3719,
365,
16186,
2972,
5149,
273,
1867,
2552,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5417,
13332,
365,
16186,
768,
1945,
18,
8507,
1435,
365,
18,
542,
67,
5748,
67,
2649,
12,
6620,
275,
67,
8712,
67,
529,
12,
5149,
3719,
365,
16186,
2972,
5149,
273,
1867,
2552,
15... | |
if tag != self.mru[-1] and tag not in self.ignore: self.mru.append(tag) self.mru = self.mru[-10:] | if tag not in self.ignore: if self.idx < -1: self.mru = self.mru[:self.idx + 1] self.idx = -1 if self.mru and datetime.now() - self.lastselect < timedelta(seconds=.5): self.mru[self.idx] = tag elif tag != self.mru[-1]: self.mru.append(tag) self.mru = self.mru[-10:] self.lastselect = datetime.now() | def select(self, tag): if tag is self.PREV: if self.sel.id not in self.ignore: self.idx -= 1 elif tag is self.NEXT: self.idx += 1 else: if isinstance(tag, Tag): tag = tag.id wmii['view'] = tag | 947f9f6dc984f4bf2289c0427070941e2a4cf9e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12629/947f9f6dc984f4bf2289c0427070941e2a4cf9e5/fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
1047,
4672,
309,
1047,
353,
365,
18,
3670,
58,
30,
309,
365,
18,
1786,
18,
350,
486,
316,
365,
18,
6185,
30,
365,
18,
3465,
3947,
404,
1327,
1047,
353,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
1047,
4672,
309,
1047,
353,
365,
18,
3670,
58,
30,
309,
365,
18,
1786,
18,
350,
486,
316,
365,
18,
6185,
30,
365,
18,
3465,
3947,
404,
1327,
1047,
353,
365,
18,
... |
if response.status != 200: self.report(EntryDeletionMustReturn200("Expected an HTTP status code of 200 on sending a DELETE but instead received %d" % response.status)) | if response.status >= 400: self.report(EntryDeletionFailed("HTTP Status %d" % response.status)) | def testDoubleAddWithSameAtomId(self): """POST two Atom entries with the same atom:id to the collection. The response for both MUST be 201 and two new entries must be created.""" toc = self.enumerate_collection() startnum = len(toc) # Add a new entry (response, content) = self.http.request(self.entry_coll_uri, "POST", ... | 62545eb4a0f245496aec57ddf77c32bdf1a873f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/62545eb4a0f245496aec57ddf77c32bdf1a873f9/appclienttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5265,
986,
1190,
8650,
3641,
548,
12,
2890,
4672,
3536,
3798,
2795,
7149,
3222,
598,
326,
1967,
3179,
30,
350,
358,
326,
1849,
18,
1021,
766,
364,
3937,
10685,
506,
3786,
471,
2795... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5265,
986,
1190,
8650,
3641,
548,
12,
2890,
4672,
3536,
3798,
2795,
7149,
3222,
598,
326,
1967,
3179,
30,
350,
358,
326,
1849,
18,
1021,
766,
364,
3937,
10685,
506,
3786,
471,
2795... |
date += timedelta(days= 7 * intfloor(weeks)) | date += datetime.timedelta(days= 7 * intfloor(weeks)) | def add_weeks(self, cursor, user, company, date, weeks, context=None): day_per_week = company.hours_per_work_week / company.hours_per_work_day | 37977ffd4cba2a2b2be5d263a7cf423a44376bec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9282/37977ffd4cba2a2b2be5d263a7cf423a44376bec/work.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
10741,
87,
12,
2890,
16,
3347,
16,
729,
16,
9395,
16,
1509,
16,
17314,
16,
819,
33,
7036,
4672,
2548,
67,
457,
67,
10741,
273,
9395,
18,
16814,
67,
457,
67,
1252,
67,
10741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
10741,
87,
12,
2890,
16,
3347,
16,
729,
16,
9395,
16,
1509,
16,
17314,
16,
819,
33,
7036,
4672,
2548,
67,
457,
67,
10741,
273,
9395,
18,
16814,
67,
457,
67,
1252,
67,
10741,... |
datetable = {'nl': { 'januari':{ 'sl':'%d. januar', 'it':'%d gennaio', 'en':'January %d', 'de':'%d. Januar', 'fr':'%d janvier', 'af':'01-%02d', 'ca':'%d de gener', 'oc':'%d de geni%%C3%%A8r', }, 'februari':{ 'sl':'%d. februar', 'it':'%d febbraio', 'en':'February %d', 'de':'%d. Februar', 'fr':'... | datetable = { 'nl':{ 'januari':{ 'sl':'%d. januar', 'it':'%d gennaio', 'en':'January %d', 'de':'%d. Januar', 'fr':'%d janvier', 'af':'01-%02d', 'ca':'%d de gener', 'oc':'%d de geni%%C3%%A8r', 'is':'%d. janúar', }, 'februari':{ 'sl':'%d. februar', 'it':'%d febbraio', 'en':'February %d', 'de':'%d. Februar', 'fr':'%d fevr... | def __call__(self, m, d): import wikipedia return wikipedia.html2unicode((date_format[m][self.code]) % d, language = self.code) | ca48d3138797b7e59dd655330057f8c316aa4626 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/ca48d3138797b7e59dd655330057f8c316aa4626/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
312,
16,
302,
4672,
1930,
21137,
327,
21137,
18,
2620,
22,
9124,
12443,
712,
67,
2139,
63,
81,
6362,
2890,
18,
710,
5717,
738,
302,
16,
2653,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
312,
16,
302,
4672,
1930,
21137,
327,
21137,
18,
2620,
22,
9124,
12443,
712,
67,
2139,
63,
81,
6362,
2890,
18,
710,
5717,
738,
302,
16,
2653,
273,
365,
... |
print inputPorts[0] | def setInputValues(self, module, inputPorts): """ Function used to set a value inside 'module', given the input port(s). """ if len(inputPorts)==1: ## Cleaning the previous connector... if inputPorts[0] in module.inputPorts: del module.inputPorts[inputPorts[0]] new_connector = ModuleConnector(create_constant(self.eleme... | aff643cb1acbe5c897ed8a0603617697767a2b71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6341/aff643cb1acbe5c897ed8a0603617697767a2b71/fold.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21687,
1972,
12,
2890,
16,
1605,
16,
810,
11107,
4672,
3536,
4284,
1399,
358,
444,
279,
460,
4832,
296,
2978,
2187,
864,
326,
810,
1756,
12,
87,
2934,
3536,
309,
562,
12,
2630,
11107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21687,
1972,
12,
2890,
16,
1605,
16,
810,
11107,
4672,
3536,
4284,
1399,
358,
444,
279,
460,
4832,
296,
2978,
2187,
864,
326,
810,
1756,
12,
87,
2934,
3536,
309,
562,
12,
2630,
11107,
... | |
self.kickCallback((self.host, self.port), channel) | self.kickCallback((self.host, self.port), channel, kicker, message) | def botKicked(self, bot, channel, kicker, message): """Apparently we aren't wanted any longer. Log the event and report to our owner""" log.msg("Bot %r on server %r was kicked from %r by %r: %r" % (bot.nickname, self.host, channel, kicker, message)) if self.kickCallback: self.kickCallback((self.host, self.port), channe... | 6d2b3a04dfeeb39a1ed0edc46d7214348e48601b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/6d2b3a04dfeeb39a1ed0edc46d7214348e48601b/IRC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2512,
47,
1200,
329,
12,
2890,
16,
2512,
16,
1904,
16,
417,
5448,
16,
883,
4672,
3536,
1294,
2938,
715,
732,
11526,
1404,
15504,
1281,
7144,
18,
1827,
326,
871,
471,
2605,
358,
3134,
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,
2512,
47,
1200,
329,
12,
2890,
16,
2512,
16,
1904,
16,
417,
5448,
16,
883,
4672,
3536,
1294,
2938,
715,
732,
11526,
1404,
15504,
1281,
7144,
18,
1827,
326,
871,
471,
2605,
358,
3134,
3... |
if profile.shirt_type is not None and profile.shirt_size is not None: | if profile.shirt_type in shirt_types and profile.shirt_size in shirt_sizes: | def __init__(self, newclslist): self.clslist = newclslist | 5cc85d82c677018ed31b8081254f2e9d9f53639a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/5cc85d82c677018ed31b8081254f2e9d9f53639a/adminvitals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
394,
6429,
1098,
4672,
365,
18,
6429,
1098,
273,
394,
6429,
1098,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
394,
6429,
1098,
4672,
365,
18,
6429,
1098,
273,
394,
6429,
1098,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
res = self.setRequest(requestName,requestString,desiredStatus=requestStatus) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to update status of %s to %s." % (requestName,requestStatus) gLogger.error(errStr,res['Message']) res = self.setRequest(requestName,requestString) return S_ERROR(errStr) gLog... | res = self.setRequest( requestName, requestString, desiredStatus = requestStatus ) if not res['OK']: errStr = "RequestDBFile._setRequestStatus: Failed to update status of %s to %s." % ( requestName, requestStatus ) gLogger.error( errStr, res['Message'] ) res = self.setRequest( requestName, requestString ) return S_ERRO... | def setRequestStatus(self,requestName,requestStatus): """ Set the request status """ gLogger.info("RequestDBFile._setRequestStatus: Attempting to set status of %s to %s." % (requestName,requestStatus)) try: # First obtain the request string res = self.__getRequestString(requestName) if not res['OK']: errStr = "Request... | 457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12475,
1482,
12,
2890,
16,
2293,
461,
16,
2293,
1482,
4672,
3536,
1000,
326,
590,
1267,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
6315,
542,
691,
1482,
30,
12864,
310,
358,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12475,
1482,
12,
2890,
16,
2293,
461,
16,
2293,
1482,
4672,
3536,
1000,
326,
590,
1267,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
6315,
542,
691,
1482,
30,
12864,
310,
358,
444,
... |
g, t = function_deps[x._count] | k = formdata.coefficient_renumbering[x] g, t = function_deps[k] | def function_deps(x): g, t = function_deps[x._count] return make_deps(geometry=g, topology=t, coefficients=True) | f2d44f848c00da19d85bc6bd20c2229b74c1cfa2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/f2d44f848c00da19d85bc6bd20c2229b74c1cfa2/transformations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
14877,
12,
92,
4672,
417,
273,
30642,
18,
8075,
8714,
67,
1187,
1226,
310,
63,
92,
65,
314,
16,
268,
273,
445,
67,
14877,
63,
79,
65,
327,
1221,
67,
14877,
12,
14330,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
14877,
12,
92,
4672,
417,
273,
30642,
18,
8075,
8714,
67,
1187,
1226,
310,
63,
92,
65,
314,
16,
268,
273,
445,
67,
14877,
63,
79,
65,
327,
1221,
67,
14877,
12,
14330,
33,
... |
keep[os.path.dirname(path)] = True | keep[os.path.dirname(relativePath)] = True | def _doCommit(self, uJob, cs, commitFlags, opJournal, tagSet, reposRollback, localRollback, rollbackPhase, fsJob, updateDatabase, callback, tagScript, dbCache, autoPinList, flags, journal, directoryCandidates): if not (commitFlags.justDatabase or commitFlags.test): # run preremove scripts before updating the database, ... | c643900fd788a4de0b8ae30ecdec132bd54fbd7f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/c643900fd788a4de0b8ae30ecdec132bd54fbd7f/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
5580,
12,
2890,
16,
582,
2278,
16,
2873,
16,
3294,
5094,
16,
1061,
16336,
16,
1047,
694,
16,
13686,
12703,
16,
1191,
12703,
16,
8006,
11406,
16,
2662,
2278,
16,
1089,
4254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
5580,
12,
2890,
16,
582,
2278,
16,
2873,
16,
3294,
5094,
16,
1061,
16336,
16,
1047,
694,
16,
13686,
12703,
16,
1191,
12703,
16,
8006,
11406,
16,
2662,
2278,
16,
1089,
4254,
... |
if not nodes: generate_docstring_dictionary() | def __init__(self, maxread=1000, script_subdirectory=None, logfile=None, server=None,server_tmpdir=None): """ EXAMPLES:: sage: singular == loads(dumps(singular)) True """ prompt = '\n> ' Expect.__init__(self, name = 'singular', prompt = prompt, command = "Singular -t --ticks-per-sec 1000", #no tty and fine grained cpu... | 892c8149323efb7e00d91b9ee3b4109a0b54bdfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/892c8149323efb7e00d91b9ee3b4109a0b54bdfc/singular.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
943,
896,
33,
18088,
16,
2728,
67,
1717,
5149,
33,
7036,
16,
15204,
33,
7036,
16,
1438,
33,
7036,
16,
3567,
67,
5645,
1214,
33,
7036,
4672,
3536,
5675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
943,
896,
33,
18088,
16,
2728,
67,
1717,
5149,
33,
7036,
16,
15204,
33,
7036,
16,
1438,
33,
7036,
16,
3567,
67,
5645,
1214,
33,
7036,
4672,
3536,
5675,
... | |
MASTERD_PID = "ganeti-master" | MASTERD_PID = "ganeti-masterd" | def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision) | bff2ddc5b98c2ade7a8d0cfa0e36a50581b1947f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/bff2ddc5b98c2ade7a8d0cfa0e36a50581b1947f/constants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5385,
1444,
12,
1589,
4672,
3536,
16582,
1177,
1300,
4041,
316,
392,
509,
18,
225,
2860,
30,
3193,
31,
261,
14019,
16,
8439,
16,
6350,
13,
225,
3536,
1815,
1549,
12,
1589,
16,
509,
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,
5385,
1444,
12,
1589,
4672,
3536,
16582,
1177,
1300,
4041,
316,
392,
509,
18,
225,
2860,
30,
3193,
31,
261,
14019,
16,
8439,
16,
6350,
13,
225,
3536,
1815,
1549,
12,
1589,
16,
509,
13,... |
by reducing the poits modulo all primes of good reduction up | by reducing the points modulo all primes of good reduction up | def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura... | 1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... |
split_thread.start() | for thread in (split_thread, cpp, cpq): thread.start() | def main(): # init defaults options = Options() max_procs = MAX_PROCS max_transfers_per_host = MAX_TRANSFERS_PER_HOST rm_cmd_template = RM_CMD_TEMPLATE cat_cmd_template = CAT_CMD_TEMPLATE logfile = LOG_FILE cleanonly = False # just remove chunks and exit chunkdir = CHUNK_DIR # get the command line options try: optlist... | 06772f294757c1ad6f6efefb804370839037d93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1260/06772f294757c1ad6f6efefb804370839037d93c/scpTsunamiE.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1208,
3467,
702,
273,
5087,
1435,
943,
67,
27537,
273,
4552,
67,
3373,
4596,
943,
67,
2338,
18881,
67,
457,
67,
2564,
273,
4552,
67,
16596,
6553,
55,
67,
3194,
67,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
1208,
3467,
702,
273,
5087,
1435,
943,
67,
27537,
273,
4552,
67,
3373,
4596,
943,
67,
2338,
18881,
67,
457,
67,
2564,
273,
4552,
67,
16596,
6553,
55,
67,
3194,
67,
89... |
if not options.repository: | if not self.options.repository: | def __call__(self, args): from os.path import join from source import ChangesetApplicationFailure self.__load() | eeda904e2bbeed2d4a2346b6096cf76095964797 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/eeda904e2bbeed2d4a2346b6096cf76095964797/tailor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
833,
4672,
628,
1140,
18,
803,
1930,
1233,
628,
1084,
1930,
17776,
278,
3208,
5247,
225,
365,
16186,
945,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
833,
4672,
628,
1140,
18,
803,
1930,
1233,
628,
1084,
1930,
17776,
278,
3208,
5247,
225,
365,
16186,
945,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
val = 'ptr_%d' % id | val = 'ptr_%d' % self._get_unique_ptr(val) | def register_box(self, id, name, val): try: return self.boxes[id] except KeyError: result = name.lower() + '_' + str(id) self.boxes[id] = result if name.endswith('Ptr'): val = 'ptr_%d' % id self.box_creations.append('%s = %s(%s)' % (result, name, val)) return result | 9c7173ab794b7b65456b91969f6da96bd0d6c2c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/9c7173ab794b7b65456b91969f6da96bd0d6c2c0/loopparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
2147,
12,
2890,
16,
612,
16,
508,
16,
1244,
4672,
775,
30,
327,
365,
18,
15918,
63,
350,
65,
1335,
4999,
30,
563,
273,
508,
18,
8167,
1435,
397,
4427,
397,
609,
12,
350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
2147,
12,
2890,
16,
612,
16,
508,
16,
1244,
4672,
775,
30,
327,
365,
18,
15918,
63,
350,
65,
1335,
4999,
30,
563,
273,
508,
18,
8167,
1435,
397,
4427,
397,
609,
12,
350,
... |
playground_livetime = abs(segs & playground_segs) nonplayground_livetime = abs(seg - playground_segs) | playground_livetime = float(abs(segs & playground_segs)) nonplayground_livetime = float(abs(segs - playground_segs)) | def update_from_db(self, filename, live_time_program = "thinca", vetoes_name = "vetoes", verbose = False): working_filename = dbtables.get_connection_filename(filename, tmp_path = None, verbose = verbose) connection = sqlite3.connect(working_filename) | e19a0e53185df38cc34f86c47f22da7de7b08119 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e19a0e53185df38cc34f86c47f22da7de7b08119/far_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
... |
data_row.append(snpsd.callProbabilities[j][k]) outStr += deliminator.join(data_row) | outStr += deliminator+str(snpsd.callProbabilities[j][k]) outStr +="\n" del snpsd | def writeRawSnpsDatasToFile(filename,snpsds,chromosomes=[1,2,3,4,5], deliminator=", ", missingVal = "NA", accDecoder=None, withArrayIds = False, callProbFile=None): """ 2008-05-17 for callProbFile, modify it to output a row immediately. no memory hoarding, untested. 2008-05-17 modify it to output a row immediately. no ... | 418bb04d946b1524e072b4b071dc11c3801609ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/418bb04d946b1524e072b4b071dc11c3801609ef/snpsdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
4809,
10461,
1121,
14305,
15450,
12,
3459,
16,
8134,
1121,
2377,
16,
16298,
538,
21912,
22850,
21,
16,
22,
16,
23,
16,
24,
16,
25,
6487,
10508,
4240,
1546,
16,
3104,
3315,
3053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
4809,
10461,
1121,
14305,
15450,
12,
3459,
16,
8134,
1121,
2377,
16,
16298,
538,
21912,
22850,
21,
16,
22,
16,
23,
16,
24,
16,
25,
6487,
10508,
4240,
1546,
16,
3104,
3315,
3053,
... |
n = unicode(getattr(self.options, name) or "", "utf-8") | n = getattr(self.options, name) | def setmb(name): n = unicode(getattr(self.options, name) or "", "utf-8") if n: env.metabook[name] = n | dfd7572654b4c30a622f169e0119a13f36e9d72b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/dfd7572654b4c30a622f169e0119a13f36e9d72b/options.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1627,
12,
529,
4672,
290,
273,
3869,
12,
2890,
18,
2116,
16,
508,
13,
309,
290,
30,
1550,
18,
10578,
378,
1184,
63,
529,
65,
273,
290,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1627,
12,
529,
4672,
290,
273,
3869,
12,
2890,
18,
2116,
16,
508,
13,
309,
290,
30,
1550,
18,
10578,
378,
1184,
63,
529,
65,
273,
290,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
with open("rs_dump2.html", "w") as f: f.write(self.html[1]) | def download_serverhtml(self): """downloads html with the important informations """ file_server_url = re.search(r"<form action=\"(.*?)\"", self.html[0]).group(1) self.html[1] = self.req.load(file_server_url, cookies=True, post={"dl.start": "Free"}) with open("rs_dump2.html", "w") as f: f.write(self.html[1]) self.html... | 9107885456c67f46eba52f6bc155c16e3f9b7612 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/9107885456c67f46eba52f6bc155c16e3f9b7612/RapidshareCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
3567,
2620,
12,
2890,
4672,
3536,
7813,
87,
1729,
598,
326,
10802,
26978,
3536,
585,
67,
3567,
67,
718,
273,
283,
18,
3072,
12,
86,
6,
32,
687,
1301,
5189,
21110,
2412,
3113,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
3567,
2620,
12,
2890,
4672,
3536,
7813,
87,
1729,
598,
326,
10802,
26978,
3536,
585,
67,
3567,
67,
718,
273,
283,
18,
3072,
12,
86,
6,
32,
687,
1301,
5189,
21110,
2412,
3113,... | |
print 'extern GimpCompositeFunction %s;' % ("gimp_composite_unsupported") | print 'extern GimpCompositeFunction %s();' % ("gimp_composite_unsupported") | print >>fpout, 'typedef GimpCompositeFunction (*GimpCompositeFunctionTable[%s][%s][%s][%s]);' % ("GIMP_COMPOSITE_N", "GIMP_PIXELFORMAT_N", "GIMP_PIXELFORMAT_N", "GIMP_PIXELFORMAT_N") | f5e839a39c751867051e44f224ab9ad5de4a6598 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/f5e839a39c751867051e44f224ab9ad5de4a6598/make-gimp-composite-dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
1671,
7944,
659,
16,
296,
723,
536,
611,
14532,
9400,
2083,
261,
14,
43,
14532,
9400,
2083,
1388,
14451,
87,
6362,
9,
87,
6362,
9,
87,
6362,
9,
87,
65,
13869,
738,
7566,
43,
9883,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
1671,
7944,
659,
16,
296,
723,
536,
611,
14532,
9400,
2083,
261,
14,
43,
14532,
9400,
2083,
1388,
14451,
87,
6362,
9,
87,
6362,
9,
87,
6362,
9,
87,
65,
13869,
738,
7566,
43,
9883,
67... |
optlist, args = getopt.getopt(sys.argv[1:], "hct", ["help", "clean", "test", "package", "build-stamp="]) | optlist, args = getopt.getopt(sys.argv[1:], "hct", ["help", "clean", "test", "package", "build-stamp=", "publish", "register"]) | def usage(): """This function is used to print out help either by request, or if an invalid option is used.""" print print "Usage: python build.py [command]" print print "\t--help\t\t\tprint this help message" print "\t--clean\t\t\tclean out this build by deleting the %s directory" % properties["targetDir"] print "\t--... | 90990401532f7e6b2d5037c025499a14786b1651 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7713/90990401532f7e6b2d5037c025499a14786b1651/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
3536,
2503,
445,
353,
1399,
358,
1172,
596,
2809,
3344,
635,
590,
16,
578,
309,
392,
2057,
1456,
353,
1399,
12123,
1172,
1172,
315,
5357,
30,
5790,
1361,
18,
2074,
306,
3076... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
3536,
2503,
445,
353,
1399,
358,
1172,
596,
2809,
3344,
635,
590,
16,
578,
309,
392,
2057,
1456,
353,
1399,
12123,
1172,
1172,
315,
5357,
30,
5790,
1361,
18,
2074,
306,
3076... |
for name in self.get_handler_names(): if name.endswith('.metadata'): continue | for name in self.get_names(): | def get_new_id(self, prefix=''): ids = [] for name in self.get_handler_names(): if name.endswith('.metadata'): continue if prefix: if not name.startswith(prefix): continue name = name[len(prefix):] try: id = int(name) except ValueError: continue ids.append(id) | 1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2704,
67,
350,
12,
2890,
16,
1633,
2218,
11,
4672,
3258,
273,
5378,
364,
508,
316,
365,
18,
588,
67,
1973,
13332,
309,
1633,
30,
309,
486,
508,
18,
17514,
1918,
12,
3239,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2704,
67,
350,
12,
2890,
16,
1633,
2218,
11,
4672,
3258,
273,
5378,
364,
508,
316,
365,
18,
588,
67,
1973,
13332,
309,
1633,
30,
309,
486,
508,
18,
17514,
1918,
12,
3239,
46... |
print "***C" | def FillinConAttr(self, attr): if (self.contype == "smi"): if (self.port == ""): print "***A" raise InvalidDomainError("No port specified") attr.extend([ "smi", str(self.port) ]) elif (self.contype == "lan"): if (self.address == ""): print "***B" raise InvalidDomainError("No address specified") attr.append("lan") if (s... | 9a494271213765e6cd1c2cecaa81860143e9e82a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/9a494271213765e6cd1c2cecaa81860143e9e82a/_domain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14192,
267,
442,
3843,
12,
2890,
16,
1604,
4672,
309,
261,
2890,
18,
591,
723,
422,
315,
4808,
77,
6,
4672,
309,
261,
2890,
18,
655,
422,
1408,
4672,
1172,
315,
14465,
37,
6,
1002,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14192,
267,
442,
3843,
12,
2890,
16,
1604,
4672,
309,
261,
2890,
18,
591,
723,
422,
315,
4808,
77,
6,
4672,
309,
261,
2890,
18,
655,
422,
1408,
4672,
1172,
315,
14465,
37,
6,
1002,
1... | |
return min(self.slideNumber + 1, self.last_slide()) | return min((self.slideNumber or 1) + 1, self.last_slide()) | def next_slide(self): return min(self.slideNumber + 1, self.last_slide()) | e38a9f4a565c588f47efdeefb92038d05ab048f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/e38a9f4a565c588f47efdeefb92038d05ab048f4/SlideShow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
26371,
12,
2890,
4672,
327,
1131,
12,
2890,
18,
26371,
1854,
397,
404,
16,
365,
18,
2722,
67,
26371,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1024,
67,
26371,
12,
2890,
4672,
327,
1131,
12,
2890,
18,
26371,
1854,
397,
404,
16,
365,
18,
2722,
67,
26371,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.status_bar = TFrame(root, name = 'statusbar', style='FlatFrame' ) self.status_bar.pack(side = BOTTOM, fill=X) | self.status_bar = TFrame(root, name='statusbar', style='FlatFrame') self.status_bar.pack(side=BOTTOM, fill=X) | def build_window(self): root = self.application.root p_frame = TFrame(root, style='FlatFrame') p_frame.pack(side = 'right', fill = Y) palette_frame = TFrame(p_frame, style='FlatFrame', borderwidth=3) palette_frame.pack(side = 'right', fill = Y) b = TLabel(p_frame, style='VLine3') self.pc=PluginContainer(p_frame,sel... | 5bd05aab08ecc99debb8be46af1003105e4183ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/5bd05aab08ecc99debb8be46af1003105e4183ab/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
12,
2890,
4672,
1365,
273,
365,
18,
3685,
18,
3085,
225,
293,
67,
3789,
273,
399,
3219,
12,
3085,
16,
2154,
2218,
16384,
3219,
6134,
293,
67,
3789,
18,
2920,
12,
5564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
5668,
12,
2890,
4672,
1365,
273,
365,
18,
3685,
18,
3085,
225,
293,
67,
3789,
273,
399,
3219,
12,
3085,
16,
2154,
2218,
16384,
3219,
6134,
293,
67,
3789,
18,
2920,
12,
5564,
... |
self.rating = gutils.trim(self.page, '<b>User Rating:</b>', '/10') | self.rating = gutils.trim(self.page, '<b>User Rating:</b> \n<b>', '/10') | def get_rating(self): self.rating = gutils.trim(self.page, '<b>User Rating:</b>', '/10') if self.rating and self.rating.find('awaiting') == -1: try: self.rating = float(self.rating) except Exception, e: self.rating = 0 else: self.rating = 0 | 6c8bceb9124a5b82c27af1272e6ba63f56b21c8f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2687/6c8bceb9124a5b82c27af1272e6ba63f56b21c8f/PluginMovieIMDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
17326,
12,
2890,
4672,
365,
18,
17326,
273,
314,
5471,
18,
5290,
12,
2890,
18,
2433,
16,
2368,
70,
34,
1299,
534,
1776,
19814,
70,
34,
521,
82,
32,
70,
1870,
16,
1173,
2163,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17326,
12,
2890,
4672,
365,
18,
17326,
273,
314,
5471,
18,
5290,
12,
2890,
18,
2433,
16,
2368,
70,
34,
1299,
534,
1776,
19814,
70,
34,
521,
82,
32,
70,
1870,
16,
1173,
2163,... |
def func_text_html (request, path, mimetype) : | def func_text_html (request, path) : | def func_text_html (request, path, mimetype) : return open(path, "rb").read() | e5879d5f4725acc7589a4f45e6c1975a6092d3b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/e5879d5f4725acc7589a4f45e6c1975a6092d3b1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
955,
67,
2620,
261,
2293,
16,
589,
13,
294,
327,
1696,
12,
803,
16,
315,
6731,
20387,
896,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
67,
955,
67,
2620,
261,
2293,
16,
589,
13,
294,
327,
1696,
12,
803,
16,
315,
6731,
20387,
896,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return {0: '8', 1: '8', 'flag': '0', 'border': '0'} | return {0: '8', 1: '8', 'flag': '0', 'border': '0'} | def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'fla... | f1282503f876232c6a9f48c3d5b7a52bbc481a8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f1282503f876232c6a9f48c3d5b7a52bbc481a8d/SizerCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8281,
950,
1830,
12,
2890,
16,
341,
548,
16,
707,
33,
7036,
4672,
309,
707,
353,
599,
30,
707,
273,
365,
18,
6387,
285,
1305,
225,
309,
707,
422,
296,
986,
3829,
4278,
327,
288,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8281,
950,
1830,
12,
2890,
16,
341,
548,
16,
707,
33,
7036,
4672,
309,
707,
353,
599,
30,
707,
273,
365,
18,
6387,
285,
1305,
225,
309,
707,
422,
296,
986,
3829,
4278,
327,
288,
20,
... |
""" return self.parse(mv) | """ return self.parse(mv) | def __call__(self, mv): """ EXAMPLES: sage: rubik = CubeGroup() sage: rubik(1) () """ return self.parse(mv) | 682d310039cd3f0ff12792c4704e67066e622b98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/682d310039cd3f0ff12792c4704e67066e622b98/cubegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
7701,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
24997,
1766,
273,
385,
4895,
1114,
1435,
272,
410,
30,
24997,
1766,
12,
21,
13,
1832,
3536,
327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
7701,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
24997,
1766,
273,
385,
4895,
1114,
1435,
272,
410,
30,
24997,
1766,
12,
21,
13,
1832,
3536,
327,
3... |
try: doc = etree.parse(fb2file, parser) except: raise logger.info('Parsing failed. Trying to clean up XML...') soup = BeautifulStoneSoup(open(fb2file, 'rb').read()) doc = etree.fromstring(str(soup)) | doc = etree.parse(fb2file, parser) extract_embedded_content(doc) | def generate_html(fb2file, encoding, logger): from lxml import etree tdir = tempfile.mkdtemp(prefix=__appname__+'_') ofile = os.path.join(tdir, 'index.xml') cwd = os.getcwdu() os.chdir(tdir) try: logger.info('Parsing XML...') parser = etree.XMLParser(recover=True, no_network=True) try: doc = etree.parse(fb2file, parser... | 1cf4f8661a06bd405c86f9953e860059cb2ea1f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/1cf4f8661a06bd405c86f9953e860059cb2ea1f7/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
12,
19192,
22,
768,
16,
2688,
16,
1194,
4672,
628,
328,
2902,
1930,
12031,
268,
1214,
273,
13275,
18,
24816,
72,
5814,
12,
3239,
33,
972,
2910,
529,
972,
6797,
4623,
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,
2103,
67,
2620,
12,
19192,
22,
768,
16,
2688,
16,
1194,
4672,
628,
328,
2902,
1930,
12031,
268,
1214,
273,
13275,
18,
24816,
72,
5814,
12,
3239,
33,
972,
2910,
529,
972,
6797,
4623,
13... |
for row in item.Item.select('filename', 'filename IS NOT NULL AND filename LIKE ?', (path,)): if samefile(row[0], path): return True | for item_ in item.Item.make_view('filename LIKE ?', (path,)): if samefile(item_.filename, path): return item_ | def _item_exists_for_path(path): # in SQLite, LIKE is case insensitive, so we can use it to only look at # filenames that possibly will match for row in item.Item.select('filename', 'filename IS NOT NULL AND filename LIKE ?', (path,)): if samefile(row[0], path): return True return False | 3de7f49df391e02824778db881076fdde011aa11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/3de7f49df391e02824778db881076fdde011aa11/commandline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1726,
67,
1808,
67,
1884,
67,
803,
12,
803,
4672,
468,
316,
16192,
16,
13161,
353,
648,
17904,
16,
1427,
732,
848,
999,
518,
358,
1338,
2324,
622,
468,
9066,
716,
10016,
903,
845,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1726,
67,
1808,
67,
1884,
67,
803,
12,
803,
4672,
468,
316,
16192,
16,
13161,
353,
648,
17904,
16,
1427,
732,
848,
999,
518,
358,
1338,
2324,
622,
468,
9066,
716,
10016,
903,
845,... |
return (-1, res, warning, '') | return (-1, res, 'Line ' + str(counter) +' : ' + warning, '') | fields_def = self.fields_get(cr, uid, context=context) | 0e4fa6a5dfc21523ffda8c6169d4dca20776c412 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/0e4fa6a5dfc21523ffda8c6169d4dca20776c412/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
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,
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,
1466,
67,
536,
273,
365,
18,
2821,
67,
588,
12,
3353,
16,
4555,
16,
819,
33,
2472,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
elif str(packet.data) == "!stresstest": | elif str(packet.data) == "!stresstest" and not playing: | def run(self): global restartClient, playbackFile record = None self.logger.debug('creating socket') self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.logger.debug('connecting to server') self.socket.connect((self.ip, self.port)) | 4989f087dd9f1da61280156785b2e1a7d073601d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5557/4989f087dd9f1da61280156785b2e1a7d073601d/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2552,
7870,
1227,
16,
26335,
812,
1409,
273,
599,
365,
18,
4901,
18,
4148,
2668,
23799,
2987,
6134,
365,
18,
7814,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
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,
1086,
12,
2890,
4672,
2552,
7870,
1227,
16,
26335,
812,
1409,
273,
599,
365,
18,
4901,
18,
4148,
2668,
23799,
2987,
6134,
365,
18,
7814,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18... |
proto = code.getFunctionPrototype(method) | proto = code.getFunctionPrototype(method, urlprefix, urlsuffix) | def generateFunctionDocs(code, method): name = code.getFunctionName(method) proto = code.getFunctionPrototype(method) comment = code.getFunctionComment(method) if (comment == ""): comment = "Undocumented function.<br>\n" chunk = '<table bgcolor="e8e8e8" border=0 cellspacing=0 cellpadding=5 width="100%"><tr><td>' + "\n"... | e47fdbe42407a99cef6b7537e6d8c9c841f7c7ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e47fdbe42407a99cef6b7537e6d8c9c841f7c7ac/gendocs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
2083,
12656,
12,
710,
16,
707,
4672,
508,
273,
981,
18,
588,
25258,
12,
2039,
13,
3760,
273,
981,
18,
588,
2083,
15846,
12,
2039,
16,
880,
3239,
16,
6903,
2609,
13,
2879,
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,
2103,
2083,
12656,
12,
710,
16,
707,
4672,
508,
273,
981,
18,
588,
25258,
12,
2039,
13,
3760,
273,
981,
18,
588,
2083,
15846,
12,
2039,
16,
880,
3239,
16,
6903,
2609,
13,
2879,
273,
... |
expected = """ | preamble = """ | def test_mul_ovf(self): ops = """ [i0, i1] i2 = int_and(i0, 255) i3 = int_lt(i1, 5) guard_true(i3) [] i4 = int_gt(i1, -10) guard_true(i4) [] i5 = int_mul_ovf(i2, i1) guard_no_overflow() [] i6 = int_lt(i5, -2550) guard_false(i6) [] i7 = int_ge(i5, 1276) guard_false(i7) [] i8 = int_gt(i5, 126) guard_true(i8) [] jump(i0, ... | addc2b77177b49468137a20034ac27db7b4ba464 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/addc2b77177b49468137a20034ac27db7b4ba464/test_optimizeopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16411,
67,
1527,
74,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
16,
277,
21,
65,
277,
22,
273,
509,
67,
464,
12,
77,
20,
16,
4561,
13,
277,
23,
273,
509,
67,
5618,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16411,
67,
1527,
74,
12,
2890,
4672,
6727,
273,
3536,
306,
77,
20,
16,
277,
21,
65,
277,
22,
273,
509,
67,
464,
12,
77,
20,
16,
4561,
13,
277,
23,
273,
509,
67,
5618,
1... |
else: answer['points'] = 0 answer['feedback'] = self.incor_fb answer['id'] = elixer.m_hash(answer) | answer['id'] = elixer.m_hash(answer) | def build_answers(self): self.single_answer = 1 | cf63ddff404b0bab9edcec3e700be8ea842ee0e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/cf63ddff404b0bab9edcec3e700be8ea842ee0e3/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
22340,
12,
2890,
4672,
365,
18,
7526,
67,
13490,
273,
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,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
22340,
12,
2890,
4672,
365,
18,
7526,
67,
13490,
273,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
user_passwd, host = splituser(host) | if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host | def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) else: host, selector = url urltype, rest = splittype(selector) if string.lower(urltype) == 'https': realhost, rest = splithost(rest) user_passwd, r... | a374199911ecdaaef97384f722058239956bef5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a374199911ecdaaef97384f722058239956bef5d/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
4528,
12,
2890,
16,
880,
16,
501,
33,
7036,
4672,
3536,
3727,
18904,
1771,
12123,
1930,
15851,
6673,
309,
618,
12,
718,
13,
353,
618,
2932,
6,
4672,
1479,
16,
3451,
273,
6121... |
real = (section[-1],) + section[1:] | real = (section[-1],) + section[:-1] | def _read_base(self): config = ConfigParser(self.schemas) config.read(self.config_name) | 81c6ef047a309129437d75af4237e8007ecd20c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5794/81c6ef047a309129437d75af4237e8007ecd20c8/gencontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
1969,
12,
2890,
4672,
642,
273,
25076,
12,
2890,
18,
17928,
13,
642,
18,
896,
12,
2890,
18,
1425,
67,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
1969,
12,
2890,
4672,
642,
273,
25076,
12,
2890,
18,
17928,
13,
642,
18,
896,
12,
2890,
18,
1425,
67,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'time' : time | 'time' : time, | def __init__(self, cr, uid, name, parents=rml_parents, tag=rml_tag, context=None): if not context: context={} self.cr = cr self.uid = uid self.pool = pooler.get_pool(cr.dbname) user = self.pool.get('res.users').browse(cr, uid, uid, context=context) self.localcontext = { 'user': user, 'company': user.company_id, 'repeat... | 3a395e4cf9b6dabffc6d848f49fc52ac78a37541 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3a395e4cf9b6dabffc6d848f49fc52ac78a37541/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
6298,
33,
86,
781,
67,
12606,
16,
1047,
33,
86,
781,
67,
2692,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
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,
1001,
2738,
972,
12,
2890,
16,
4422,
16,
4555,
16,
508,
16,
6298,
33,
86,
781,
67,
12606,
16,
1047,
33,
86,
781,
67,
2692,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
3... |
ALGORITHM: Uses Pari function \emph{idealstar} | ALGORITHM: Uses Pari function ``idealstar`` | def idealstar(self, flag=1): r""" Returns the finite abelian group $(O_K/I)^*$, where I is the ideal self of the number field K, and $O_K$ is the ring of integers of K. | ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ef0819690a4fd01b3d6fba60378c1b5b3e6c0cda/number_field_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
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,
23349,
10983,
12,
2890,
16,
2982,
33,
21,
4672,
436,
8395,
2860,
326,
25922,
1223,
292,
2779,
1041,
27488,
51,
67,
47,
19,
45,
13,
66,
26788,
16,
1625,
467,
353,
326,
23349,
365,
434,
... |
self._sendmail(to, StringIO(msgtext)) | self._sendmail(to_addrs, StringIO(msgtext)) | def sendmail(self, subject, template, data, to_addrs, mime_headers={}): from email.mime.text import MIMEText from email.utils import formatdate from sshg import config if isinstance(to_addrs, basestring): to_addrs = [to_addrs] stream = generate_template('email/%s' % template, **data) body = stream.render('text') header... | 83527fa1d7cc4218076e830c410e17b3bf598770 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5807/83527fa1d7cc4218076e830c410e17b3bf598770/notification.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
3221,
16,
1542,
16,
501,
16,
358,
67,
23305,
16,
4892,
67,
2485,
12938,
4672,
628,
2699,
18,
11757,
18,
955,
1930,
13195,
1528,
628,
2699,
18,
5471,
1930,
740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4408,
12,
2890,
16,
3221,
16,
1542,
16,
501,
16,
358,
67,
23305,
16,
4892,
67,
2485,
12938,
4672,
628,
2699,
18,
11757,
18,
955,
1930,
13195,
1528,
628,
2699,
18,
5471,
1930,
740... |
if 'section' in inspect.getargspec(mod.__init__).args: | if 'section' in inspect.getargspec(mod.__init__)[0]: | def _load_component(self,structured_name,configsection=None): #from: http://mail.python.org/pipermail/python-list/2003-May/204392.html component_names = structured_name.split('.') mod = __import__('.'.join(component_names[:-1])) for component_name in component_names[1:]: mod = getattr(mod, component_name) if configsec... | 84af532e49f72391050a2a0305973f4c1c2435a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/84af532e49f72391050a2a0305973f4c1c2435a5/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
4652,
12,
2890,
16,
17233,
67,
529,
16,
1425,
3464,
33,
7036,
4672,
468,
2080,
30,
1062,
2207,
4408,
18,
8103,
18,
3341,
19,
7259,
457,
4408,
19,
8103,
17,
1098,
19,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4652,
12,
2890,
16,
17233,
67,
529,
16,
1425,
3464,
33,
7036,
4672,
468,
2080,
30,
1062,
2207,
4408,
18,
8103,
18,
3341,
19,
7259,
457,
4408,
19,
8103,
17,
1098,
19,
69... |
args=('test.blah', 'a') | args=(sys.stderr,) | def formatException(self, ei): return "Got a [%s]" % ei[0].__name__ | 64298ce715559bce045d9dbf2007e82f63d8a5c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/64298ce715559bce045d9dbf2007e82f63d8a5c3/test_logging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
503,
12,
2890,
16,
13247,
4672,
327,
315,
15617,
279,
9799,
87,
4279,
738,
13247,
63,
20,
8009,
972,
529,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
503,
12,
2890,
16,
13247,
4672,
327,
315,
15617,
279,
9799,
87,
4279,
738,
13247,
63,
20,
8009,
972,
529,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if xid <> self.lastxid: | if xid != self.lastxid: | def dummy(): pass | e6b5917a3f1232d3676928a6fb5ae07cc948f164 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e6b5917a3f1232d3676928a6fb5ae07cc948f164/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9609,
13332,
1342,
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,
0,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9609,
13332,
1342,
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,
-100,
... |
self.build(tempStory, filename, canvasmaker) | self.build(tempStory, **buildKwds) | def multiBuild(self, story, filename=None, canvasmaker=canvas.Canvas, maxPasses = 10): """Makes multiple passes until all indexing flowables are happy.""" self._indexingFlowables = [] #scan the story and keep a copy for thing in story: if thing.isIndexing(): self._indexingFlowables.append(thing) | 2143778542b93890a6cb784f40391937efdd8ef0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3878/2143778542b93890a6cb784f40391937efdd8ef0/doctemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3309,
3116,
12,
2890,
16,
17285,
16,
1544,
33,
7036,
16,
5953,
29261,
33,
15424,
18,
12971,
16,
943,
6433,
281,
273,
1728,
4672,
3536,
14534,
3229,
11656,
3180,
777,
14403,
4693,
1538,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3309,
3116,
12,
2890,
16,
17285,
16,
1544,
33,
7036,
16,
5953,
29261,
33,
15424,
18,
12971,
16,
943,
6433,
281,
273,
1728,
4672,
3536,
14534,
3229,
11656,
3180,
777,
14403,
4693,
1538,
8... |
elif value == "1": | elif data == "1": | def end_boolean(self, join=string.join): value = join(self._data, "") if value == "0": self.append(False) elif value == "1": self.append(True) else: raise TypeError, "bad boolean value" self._value = 0 | 80ead46c3b0b9513bc116e8fe08faa2f91145a91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/80ead46c3b0b9513bc116e8fe08faa2f91145a91/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
6494,
12,
2890,
16,
1233,
33,
1080,
18,
5701,
4672,
460,
273,
1233,
12,
2890,
6315,
892,
16,
1408,
13,
309,
460,
422,
315,
20,
6877,
365,
18,
6923,
12,
8381,
13,
1327,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
6494,
12,
2890,
16,
1233,
33,
1080,
18,
5701,
4672,
460,
273,
1233,
12,
2890,
6315,
892,
16,
1408,
13,
309,
460,
422,
315,
20,
6877,
365,
18,
6923,
12,
8381,
13,
1327,
501,
... |
f=open(res, "wb") f.write(data) f.close() | open(res, "wb").write(data) | def getDiskPath(self, name, size=None): try: return nget(self.diskpaths, name) except KeyError: pass try: data = self.zf.read('images/%s' % name.replace("'", '-').encode('utf-8')) except KeyError: # no such file if name[0] != name[0].upper(): return self.getDiskPath(name[0].upper() + name[1:], size) return None try: e... | 3eef7b31a38c096d04f05419b663c667358280db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/3eef7b31a38c096d04f05419b663c667358280db/zipwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6247,
743,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
775,
30,
327,
290,
588,
12,
2890,
18,
10863,
4481,
16,
508,
13,
1335,
4999,
30,
1342,
775,
30,
501,
273,
365,
18,
94,
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,
6247,
743,
12,
2890,
16,
508,
16,
963,
33,
7036,
4672,
775,
30,
327,
290,
588,
12,
2890,
18,
10863,
4481,
16,
508,
13,
1335,
4999,
30,
1342,
775,
30,
501,
273,
365,
18,
94,
74... |
raise TestFailed, 'zip(None) - expected TypeError, got', e | raise TestFailed, 'zip(None) - expected TypeError, got %s' % e | def __getitem__(self, i): if i < 0 or i > 2: raise IndexError return i + 4 | 715812667366cc747ac78598d462dd7ff75d4bb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/715812667366cc747ac78598d462dd7ff75d4bb2/test_b2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
411,
374,
578,
277,
405,
576,
30,
1002,
10195,
327,
277,
397,
1059,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
411,
374,
578,
277,
405,
576,
30,
1002,
10195,
327,
277,
397,
1059,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
[[] []] | [[]] | def __iter__(self): """ Returns a generator object which iterates through the elements of self. The order in which the elements are generated is based on a 'weight' of a matrix which is the number of iterations on the base ring that are required to reach that matrix. | fc8668435f7b85920caaf7d3fba000d9ccfadc71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fc8668435f7b85920caaf7d3fba000d9ccfadc71/matrix_space.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2860,
279,
4456,
733,
1492,
16960,
3059,
326,
2186,
434,
365,
18,
225,
1021,
1353,
316,
1492,
326,
2186,
854,
4374,
353,
2511,
603,
279,
296,
4865,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2165,
972,
12,
2890,
4672,
3536,
2860,
279,
4456,
733,
1492,
16960,
3059,
326,
2186,
434,
365,
18,
225,
1021,
1353,
316,
1492,
326,
2186,
854,
4374,
353,
2511,
603,
279,
296,
4865,... |
request.write(xml) | request.write(unicode(xml).encode('utf-8')) | def _render(self, xml, request): if xml: request.setHeader('content-type', 'text/xml') request.write(xml) request.finish() else: request.write(error.NoResource("Message #%d not found" % self.id).render(request)) request.finish() | 73d105bfb80510e2e546cdf32c62fd6ff14c5ce2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/73d105bfb80510e2e546cdf32c62fd6ff14c5ce2/MessageViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
16,
2025,
16,
590,
4672,
309,
2025,
30,
590,
18,
542,
1864,
2668,
1745,
17,
723,
2187,
296,
955,
19,
2902,
6134,
590,
18,
2626,
12,
9124,
12,
2902,
2934,
3015,
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,
389,
5902,
12,
2890,
16,
2025,
16,
590,
4672,
309,
2025,
30,
590,
18,
542,
1864,
2668,
1745,
17,
723,
2187,
296,
955,
19,
2902,
6134,
590,
18,
2626,
12,
9124,
12,
2902,
2934,
3015,
2... |
view_load=%s, select_level=%s, readonly=%s ,required=%s | view_load=%s, select_level=%s, readonly=%s ,required=%s ,relation_field=%s | def _field_create(self, cr, context={}): cr.execute("SELECT id FROM ir_model WHERE model=%s", (self._name,)) if not cr.rowcount: cr.execute('SELECT nextval(%s)', ('ir_model_id_seq',)) model_id = cr.fetchone()[0] cr.execute("INSERT INTO ir_model (id,model, name, info,state) VALUES (%s, %s, %s, %s, %s)", (model_id, self.... | 0e66332749e1f5ab3dcf3ae41d6a7b3c10442ec3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/0e66332749e1f5ab3dcf3ae41d6a7b3c10442ec3/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
2640,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
4422,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
5095,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1518,
67,
2640,
12,
2890,
16,
4422,
16,
819,
12938,
4672,
4422,
18,
8837,
2932,
4803,
612,
4571,
9482,
67,
2284,
4852,
938,
5095,
87,
3113,
261,
2890,
6315,
529,
16,
3719,
309,
48... |
Draw a frame made of 3D rulers, with major and minor ticks. | Draw a frame made of 3-D rulers, with major and minor ticks. | def ruler_frame(lower_left, upper_right, ticks=4, sub_ticks=4, **kwds): """ Draw a frame made of 3D rulers, with major and minor ticks. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, or vector - ``t... | ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
17,
40,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
17,
40,
43... |
def __init__(self, master, buttons): | def __init__(self, master, buttons, callback = None): | def __init__(self, master, buttons): self.master = master self.buttons = buttons | c851d11d09284089edf54d1ccc2d14f74a5be5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c851d11d09284089edf54d1ccc2d14f74a5be5e7/OWImputer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
9502,
16,
1348,
273,
599,
4672,
365,
18,
7525,
273,
4171,
365,
18,
16016,
273,
9502,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
9502,
16,
1348,
273,
599,
4672,
365,
18,
7525,
273,
4171,
365,
18,
16016,
273,
9502,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
textobject.setWordSpace((extra*1.0/(nwords - 1))) | textobject.setWordSpace((basicWidth-length)/(nwords-1.0)) | def draw(self): from reportlab.lib.enums import TA_LEFT, TA_CENTER, TA_RIGHT, TA_JUSTIFY style = self.style lines = self.lines rightIndent = style.rightIndent leftIndent = style.leftIndent leading = style.leading font = style.fontName size = style.fontSize alignment = style.alignment firstindent = style.firstLineIndent... | 8e964059053b9454c9007cadd13e3a4d20c46e8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/8e964059053b9454c9007cadd13e3a4d20c46e8f/para.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
4672,
628,
2605,
7411,
18,
2941,
18,
7924,
87,
1930,
399,
37,
67,
10066,
16,
399,
37,
67,
19835,
16,
399,
37,
67,
11847,
16,
399,
37,
67,
46,
5996,
12096,
2154,
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,
3724,
12,
2890,
4672,
628,
2605,
7411,
18,
2941,
18,
7924,
87,
1930,
399,
37,
67,
10066,
16,
399,
37,
67,
19835,
16,
399,
37,
67,
11847,
16,
399,
37,
67,
46,
5996,
12096,
2154,
273,
... |
path = os.path.join(os.getcwd(), 'icons') | path = os.path.join(os.getcwd(), 'icons/mugshots') | def OnIconButton(self, evt): # get current working directory # TODO: record the last opened path in config file try: path = os.path.join(os.getcwd(), 'icons') except Exception, msg: path = '' # open the image browser dialog dlg = ib.ImageDialog(self, path) | 2343157026e27ad0b5bde78cc13fbd2e47f9427b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9686/2343157026e27ad0b5bde78cc13fbd2e47f9427b/makefriends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5554,
3616,
12,
2890,
16,
6324,
4672,
468,
336,
783,
5960,
1867,
468,
2660,
30,
1409,
326,
1142,
10191,
589,
316,
642,
585,
775,
30,
589,
273,
1140,
18,
803,
18,
5701,
12,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5554,
3616,
12,
2890,
16,
6324,
4672,
468,
336,
783,
5960,
1867,
468,
2660,
30,
1409,
326,
1142,
10191,
589,
316,
642,
585,
775,
30,
589,
273,
1140,
18,
803,
18,
5701,
12,
538,
... |
spg._centrosymmetric = bool(f.readline().split()[1]) | spg._centrosymmetric = bool(int(f.readline().split()[1])) | def _read_datafile_entry(spg, no, symbol, setting, f): """Read space group data from f to spg.""" spg._no = no spg._symbol = symbol.strip() spg._setting = setting spg._centrosymmetric = bool(f.readline().split()[1]) # primitive vectors f.readline() spg._scaled_primitive_cell = np.array([map(float, f.readline().split())... | 4fa6d35fad9042915ad2c1a9831f4dd1fb3509ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/4fa6d35fad9042915ad2c1a9831f4dd1fb3509ee/spacegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
892,
768,
67,
4099,
12,
1752,
75,
16,
1158,
16,
3273,
16,
3637,
16,
284,
4672,
3536,
1994,
3476,
1041,
501,
628,
284,
358,
1694,
75,
12123,
1694,
75,
6315,
2135,
273,
1... |
def __instance(self, cb, *args): | if self.__resume_filename: self.resume_instance(self.__resume_filename) else: self.new_instance() | def __instance(self, cb, *args): for i in self.__postponed_share: self.share_instance(i, self._initiating) self.__postponed_share = [] cb(*args) | 3a49b60a6de588c9ec4840acc5b9555570894754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5598/3a49b60a6de588c9ec4840acc5b9555570894754/shared.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
365,
16186,
25158,
67,
3459,
30,
365,
18,
25158,
67,
1336,
12,
2890,
16186,
25158,
67,
3459,
13,
469,
30,
365,
18,
2704,
67,
1336,
1435,
225,
364,
277,
316,
365,
16186,
2767,
500,
329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
365,
16186,
25158,
67,
3459,
30,
365,
18,
25158,
67,
1336,
12,
2890,
16186,
25158,
67,
3459,
13,
469,
30,
365,
18,
2704,
67,
1336,
1435,
225,
364,
277,
316,
365,
16186,
2767,
500,
329,
... |
sys.stderr.write("props not set correctly for %s\n" % path) | sys.stderr.write("Props issue on: %s\n" % path) sys.stderr.write(hr) | def checkPath(path,autoprops): log_message ("checkPath: [%s]\n" % (path)); #sys.stderr.write ("Checking autoprops on [%s] ...\n" % (path)) okay = 1 is_dir = (path[-1] == '/') for pattern in autoprops.keys(): #log_message("#Pattern [%s] \n" % (pattern)) if fnmatch(path,pattern): #log_message("#Match [%s ~ %s] \n" % (pat... | fef05254d679458dcfa6dfb040cc1761ddbe9dc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/fef05254d679458dcfa6dfb040cc1761ddbe9dc2/checkprops.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
743,
12,
803,
16,
5854,
556,
16703,
4672,
613,
67,
2150,
7566,
1893,
743,
30,
9799,
87,
13944,
82,
6,
738,
261,
803,
10019,
468,
9499,
18,
11241,
18,
2626,
7566,
14294,
2059,
556,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
743,
12,
803,
16,
5854,
556,
16703,
4672,
613,
67,
2150,
7566,
1893,
743,
30,
9799,
87,
13944,
82,
6,
738,
261,
803,
10019,
468,
9499,
18,
11241,
18,
2626,
7566,
14294,
2059,
556,... |
if cmd==f90: cmd = self.compiler_f90[0] | if cmd == f90: cmd = self.compiler_f90[0] | def get_version_cmd(self): """Compiler command to print out version information.""" f77 = self.executables.get('compiler_f77') if f77 is not None: f77 = f77[0] cmd = self.executables.get('version_cmd') if cmd is not None: cmd = cmd[0] if cmd==f77: cmd = self.compiler_f77[0] else: f90 = self.executables.get('compiler_f9... | 888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
67,
4172,
12,
2890,
4672,
3536,
9213,
1296,
358,
1172,
596,
1177,
1779,
12123,
284,
4700,
273,
365,
18,
4177,
322,
1538,
18,
588,
2668,
9576,
67,
74,
4700,
6134,
309,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1589,
67,
4172,
12,
2890,
4672,
3536,
9213,
1296,
358,
1172,
596,
1177,
1779,
12123,
284,
4700,
273,
365,
18,
4177,
322,
1538,
18,
588,
2668,
9576,
67,
74,
4700,
6134,
309,
28... |
class pAdicGeneralExtensionFieldCappedRelative(pAdicGeneralExtensionGeneric, pAdicCappedRelativeFieldGeneric): def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionCappedRelativeElement) | def __init__(self, upoly, epoly, poly, prec, halt, print_mode, names): pAdicGeneralExtensionGeneric.__init__(self, upoly, epoly, poly, prec, print_mode, names, pAdicGeneralExtensionCappedRelativeElement) | ba045ed1184b908554216b56093b975bd5ff14cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ba045ed1184b908554216b56093b975bd5ff14cc/padic_extension_leaves.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
293,
1871,
335,
12580,
3625,
7014,
16186,
2738,
972,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
731,
355,
93,
16,
425,
16353,
16,
7573,
16,
13382,
16,
18389,
16,
1172,
67,
3188,
16,
1257,
4672,
293,
1871,
335,
12580,
3625,
7014,
16186,
2738,
972,
12... | |
obj.doDefaultAction() | def activatePosition(self,pos): ID=self.getIDFromPosition(pos) obj=self._IDs[ID]["node"] if obj is None: return role=getMozillaRole(obj.IAccessibleRole) states=obj.IAccessibleStates if (role==IAccessibleHandler.ROLE_SYSTEM_TEXT and not states&IAccessibleHandler.STATE_SYSTEM_READONLY) or role==IAccessibleHandler.ROLE_SY... | aab9c074a2b596ba809a26d7c0398aafaa0055bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/aab9c074a2b596ba809a26d7c0398aafaa0055bd/adobe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
2555,
12,
2890,
16,
917,
4672,
1599,
33,
2890,
18,
588,
734,
1265,
2555,
12,
917,
13,
1081,
33,
2890,
6315,
5103,
63,
734,
6362,
6,
2159,
11929,
309,
1081,
353,
599,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10235,
2555,
12,
2890,
16,
917,
4672,
1599,
33,
2890,
18,
588,
734,
1265,
2555,
12,
917,
13,
1081,
33,
2890,
6315,
5103,
63,
734,
6362,
6,
2159,
11929,
309,
1081,
353,
599,
30,
327,
... | |
self.mungeMakefiles(util.normpath(self.macros.builddir + os.sep + self.dir), self.command) | self.buildMakeDependencies(util.normpath(self.macros.builddir + os.sep + self.dir), self.command) | def do(self, macros): | c191d02c68c0ba5fd9dc046fc1b7a2dc073d24ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c191d02c68c0ba5fd9dc046fc1b7a2dc073d24ca/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
16,
24302,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if not m: | if m == (None, None): | def quoteaddr(addr): """Quote a subset of the email addresses defined by RFC 821. Should be able to handle anything rfc822.parseaddr can handle. """ m=None try: m=rfc822.parseaddr(addr)[1] except AttributeError: pass if not m: #something weird here.. punt -ddm return addr else: return "<%s>" % m | 342456d5d25be692c3ddd43d0446b52555251ccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/342456d5d25be692c3ddd43d0446b52555251ccc/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
9363,
506,
7752,
358,
1640,
6967,
16590,
24532,
18,
2670,
4793,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4914,
684,
3069,
12,
4793,
4672,
3536,
10257,
279,
7931,
434,
326,
2699,
6138,
2553,
635,
8372,
1725,
5340,
18,
225,
9363,
506,
7752,
358,
1640,
6967,
16590,
24532,
18,
2670,
4793,
848,
... |
self._logger.info("has temp"+str(self._WxCurrent.has_key['th1.temp'])) self._logger.info("has hum"+str(self._WxCurrent.has_key['th1.hum'])) self._logger.info("got pressure "+pressure) if self._WxCurrent.has_key['th1.temp'] and self._WxCurrent.has_key['th1.humidity']: self._logger.info("calculating pressure") pressure =... | try: self._logger.info("has temp"+str(self._WxCurrent.has_key['th1.temp'])) self._logger.info("has hum"+str(self._WxCurrent.has_key['th1.hum'])) self._logger.info("got pressure "+pressure) if self._WxCurrent.has_key['th1.temp'] and self._WxCurrent.has_key['th1.humidity']: self._logger.info("calculating pressure") press... | def _parse_barometer_record(self, record): """ | b8715bfdf374d8da341565ae2d3ee463a0a00c04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3323/b8715bfdf374d8da341565ae2d3ee463a0a00c04/WMRS200Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
3215,
362,
847,
67,
3366,
12,
2890,
16,
1409,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
3215,
362,
847,
67,
3366,
12,
2890,
16,
1409,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
of `w` that qualifies as a Lyndon word. | of `w` that is a Lyndon word. | def standard_factorization(self): r""" Returns the standard factorization of self. | 0392dbfbd4660240610d6340b53857ca3e7aa64c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/0392dbfbd4660240610d6340b53857ca3e7aa64c/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4529,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
4529,
5578,
1588,
434,
365,
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,
4529,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
4529,
5578,
1588,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
except SIPRegistrationDidNotEnd, e: | except (SIPRegistrationDidFail, SIPRegistrationDidNotEnd), e: | def _CH_unregister(self, command): notification_center = NotificationCenter() # Cancel any timer which would restart the registration process if self._refresh_timer is not None and self._refresh_timer.active(): self._refresh_timer.cancel() self._refresh_timer = None self.registered = False if self._registration is not ... | 686915396eedbb7834a5d3e6d7d4954280e2943a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/686915396eedbb7834a5d3e6d7d4954280e2943a/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1792,
67,
318,
4861,
12,
2890,
16,
1296,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
468,
10347,
1281,
5441,
1492,
4102,
7870,
326,
7914,
1207,
309,
365,
6315,
9144,
67,
12542,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1792,
67,
318,
4861,
12,
2890,
16,
1296,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
468,
10347,
1281,
5441,
1492,
4102,
7870,
326,
7914,
1207,
309,
365,
6315,
9144,
67,
12542,
353... |
self.toolsToolbar.setGeometry(QRect(0,312,30,183)) | self.toolsToolbar.setGeometry(QRect(0,322,30,189)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
23... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.