rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.url = "xroot://%s@%s:%d//query/%d" % (user, host, port, chunk) | self.url = "" self.setXrd() | def __init__(self, chunk, query, outputFunc, outputArg): threading.Thread.__init__(self) host = "lsst-dev01" port = 1094 user = "qsmaster" self.chunk = chunk self.query = query self.outputFunc = outputFunc self.outputArg = outputArg self.url = "xroot://%s@%s:%d//query/%d" % (user, host, port, chunk) self.successful = N... | 4546b05a5b4418bcd455438e282c1b78e0aeabdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/4546b05a5b4418bcd455438e282c1b78e0aeabdf/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2441,
16,
843,
16,
876,
2622,
16,
876,
4117,
4672,
17254,
18,
3830,
16186,
2738,
972,
12,
2890,
13,
1479,
273,
315,
3251,
334,
17,
5206,
1611,
6,
1756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2441,
16,
843,
16,
876,
2622,
16,
876,
4117,
4672,
17254,
18,
3830,
16186,
2738,
972,
12,
2890,
13,
1479,
273,
315,
3251,
334,
17,
5206,
1611,
6,
1756,
... |
value = lfc.lfc_statg(lfn,'',fstat) if value == 0: successful[path] = {} successful[path]['Size'] = fstat.filesize successful[path]['CheckSumType'] = fstat.csumtype successful[path]['CheckSumValue'] = fstat.csumvalue successful[path]['GUID'] = fstat.guid successful[path]['Status'] = fstat.status | value = lfc.lfc_statg(fullLfn,'',fstat) if value == 0: successful[lfn] = {} successful[lfn]['Size'] = fstat.filesize successful[lfn]['CheckSumType'] = fstat.csumtype successful[lfn]['CheckSumValue'] = fstat.csumvalue successful[lfn]['GUID'] = fstat.guid successful[lfn]['Status'] = fstat.status | def getFileMetadata(self, path): """ Returns replicas for an LFN or list of LFNs """ if type(path) == types.StringType: lfns = [path] elif type(path) == types.ListType: lfns = path else: return S_ERROR('LFCClient.getFileMetadata: Must supply a path or list of paths') # If we have less than three lfns to query a session... | 24878006a97fc6c0a40ff01095f00d930f79b1e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/24878006a97fc6c0a40ff01095f00d930f79b1e6/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
589,
4672,
3536,
2860,
21545,
364,
392,
18803,
50,
578,
666,
434,
18803,
10386,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
18594,
2387,
273,
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,
6034,
2277,
12,
2890,
16,
589,
4672,
3536,
2860,
21545,
364,
392,
18803,
50,
578,
666,
434,
18803,
10386,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
18594,
2387,
273,
30... |
svg.rect(graph_x+0.5, graph_y+0.5, graph_height, graph_width, 1, hash_color); | svg.rect(graph_x+0.5, graph_y+0.5, graph_height_used, graph_width_used, 1, hash_color); | def Plot(self): """ Calculates and renders the plot """ #cache local variables x = self.x y = self.y x1 = self.x1 y1 = self.y1 xbin = self.xbin ybin = self.ybin xText = self.xText yText = self.yText height = self.height width = self.width bg_color = self.background_color hash_color = self.hash_color text_color = self.... | cd61e2ba9c8f4b03199719ac515a5b788657caa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/cd61e2ba9c8f4b03199719ac515a5b788657caa1/ConfDistFuncs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15211,
12,
2890,
4672,
3536,
26128,
471,
19567,
326,
3207,
3536,
225,
468,
2493,
1191,
3152,
619,
273,
365,
18,
92,
677,
273,
365,
18,
93,
619,
21,
273,
365,
18,
92,
21,
677,
21,
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,
15211,
12,
2890,
4672,
3536,
26128,
471,
19567,
326,
3207,
3536,
225,
468,
2493,
1191,
3152,
619,
273,
365,
18,
92,
677,
273,
365,
18,
93,
619,
21,
273,
365,
18,
92,
21,
677,
21,
273... |
circ = h.c.build_circuit(h.selmgr.select_path()) h.circuits[circ.circ_id] = circ | try: circ = h.c.build_circuit(h.selmgr.select_path()) h.circuits[circ.circ_id] = circ except RestrictionError, e: traceback.print_exc() plog("WARN", "Impossible restrictions: "+str(e)) | def circuit_builder(h): # reschedule if some number n circuits outstanding if h.circ_count - h.circ_succeeded - h.circ_failed > max_circuits: from TorCtl.TorUtil import plog plog("DEBUG", "Too many circuits: "+str(h.circ_count-h.circ_succeeded-h.circ_failed)+", delaying build") h.schedule_low_prio(circuit_builder) retu... | 4cadb667d6ef8e755982b66882dfd6a21c5d52bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/4cadb667d6ef8e755982b66882dfd6a21c5d52bc/buildtimes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12937,
67,
9574,
12,
76,
4672,
468,
400,
2847,
309,
2690,
1300,
290,
5886,
30091,
20974,
309,
366,
18,
11614,
71,
67,
1883,
300,
366,
18,
11614,
71,
67,
87,
20983,
300,
366,
18,
11614,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12937,
67,
9574,
12,
76,
4672,
468,
400,
2847,
309,
2690,
1300,
290,
5886,
30091,
20974,
309,
366,
18,
11614,
71,
67,
1883,
300,
366,
18,
11614,
71,
67,
87,
20983,
300,
366,
18,
11614,... |
setattr(self, gtk.Buildable.get_name(obj), obj) | try: obj_name = gtk.Buildable.get_name(obj) except TypeError: pass else: setattr(self, obj_name, obj) | def _load_builder(self): builder = gtk.Builder() if self.builder_path: if not os.path.exists(self.builder_path): raise LookupError(self.__class__, self.builder_path) builder.add_from_file(self.builder_path) elif self.builder_file: | 42e9e698e5b433a7b51149a85e2d35788f3c3242 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/42e9e698e5b433a7b51149a85e2d35788f3c3242/delegates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
9574,
12,
2890,
4672,
2089,
273,
22718,
18,
1263,
1435,
309,
365,
18,
9574,
67,
803,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
9574,
67,
803,
4672,
1002,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9574,
12,
2890,
4672,
2089,
273,
22718,
18,
1263,
1435,
309,
365,
18,
9574,
67,
803,
30,
309,
486,
1140,
18,
803,
18,
1808,
12,
2890,
18,
9574,
67,
803,
4672,
1002,
883... |
self.stringToBool(unicode(s.value('ConnectionData/InsertTemplateData').toBool()))) | self.stringToBool(unicode(s.value('ConnectionData/InsertTemplateData').toString()))) | def loadConnectionData(self): s = QSettings() return ConnectionData(unicode(s.value('ConnectionData/Host').toString()), unicode(s.value('ConnectionData/Port').toString()), unicode(s.value('ConnectionData/Database').toString()), unicode(s.value('ConnectionData/Schema').toString()), unicode(s.value('ConnectionData/User')... | 70352fa0cb1e3f270af1adc6b4e98f7161818eb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2175/70352fa0cb1e3f270af1adc6b4e98f7161818eb8/Settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1952,
751,
12,
2890,
4672,
272,
273,
2238,
2628,
1435,
327,
4050,
751,
12,
9124,
12,
87,
18,
1132,
2668,
1952,
751,
19,
2594,
16063,
10492,
1435,
3631,
5252,
12,
87,
18,
1132,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
1952,
751,
12,
2890,
4672,
272,
273,
2238,
2628,
1435,
327,
4050,
751,
12,
9124,
12,
87,
18,
1132,
2668,
1952,
751,
19,
2594,
16063,
10492,
1435,
3631,
5252,
12,
87,
18,
1132,
26... |
x/(2*(x^2 - 1)^(1/4)*(x^2 + 1)^(3/4)) - (x*(x^2 + 1)^(1/4)/(2*(x^2 - 1)^(5/4))) | x/(2*(x^2 - 1)^(1/4)*(x^2 + 1)^(3/4)) - x*(x^2 + 1)^(1/4)/(2*(x^2 - 1)^(5/4)) | def derivative(self, *args): """ Returns the derivative of itself. If self has exactly one variable, then it differentiates with respect to that variable. If there is more than one variable in the expression, then you must explicitly supply a variable. If you supply a variable $x$ followed by a number $n$, then it will... | 704a652e2c7e5dbfb231de9aebca508a4fd72309 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/704a652e2c7e5dbfb231de9aebca508a4fd72309/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16417,
12,
2890,
16,
380,
1968,
4672,
3536,
2860,
326,
16417,
434,
6174,
18,
971,
365,
711,
8950,
1245,
2190,
16,
1508,
518,
3775,
16020,
598,
8762,
358,
716,
2190,
18,
971,
1915,
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,
16417,
12,
2890,
16,
380,
1968,
4672,
3536,
2860,
326,
16417,
434,
6174,
18,
971,
365,
711,
8950,
1245,
2190,
16,
1508,
518,
3775,
16020,
598,
8762,
358,
716,
2190,
18,
971,
1915,
353,
... |
g = build_graph (key, data) | g = build_graphs (key, [amc.bones[key] for amc in amcs]) | def load (filename): amc = AMC.from_file (filename) bones = {} for (key, data) in amc.bones.iteritems (): print 'building graph for',key g = build_graph (key, data) if g is not None: f = file ('graphs/%s.dot' % key, 'w') DotPrint (g, f) f.close () | 06c5189cceb33db4082ae4d94ff86fe083fc0935 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/06c5189cceb33db4082ae4d94ff86fe083fc0935/build_motion_graphs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
261,
3459,
4672,
2125,
71,
273,
432,
20022,
18,
2080,
67,
768,
261,
3459,
13,
324,
5322,
273,
2618,
364,
261,
856,
16,
501,
13,
316,
2125,
71,
18,
70,
5322,
18,
2165,
3319,
183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
261,
3459,
4672,
2125,
71,
273,
432,
20022,
18,
2080,
67,
768,
261,
3459,
13,
324,
5322,
273,
2618,
364,
261,
856,
16,
501,
13,
316,
2125,
71,
18,
70,
5322,
18,
2165,
3319,
183... |
dict = {} | def readmodule(module, path=[], inpackage=0): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module.''' i = string.rfind(module, '.') if i >= 0: # Dotted module name package ... | 462dfce99b90ce796273c74b0427879994cb346c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/462dfce99b90ce796273c74b0427879994cb346c/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
20,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
2589,
18,
803... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
20,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
2589,
18,
803... | |
vs_ide_path = os.path.join(vs_path, rel_path) | vs_ide_path = os.path.join(prog.vs_path, rel_path) | def get_vs_ide_bin(): """Gets a full path to the Visual Studio IDE executable to run.""" # These are identical for VS2003.Net, VS2005 and VS2008 rel_path = 'Common7/IDE' vs_bin = 'devenv.com' vs_ide_path = os.path.join(vs_path, rel_path) vs_cmd_path = os.path.join(vs_ide_path, vs_bin) return vs_cmd_path | 7f222394e7f848573cfa1d04c8f7002cca97d45b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5857/7f222394e7f848573cfa1d04c8f7002cca97d45b/create_release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6904,
67,
831,
67,
4757,
13332,
3536,
3002,
279,
1983,
589,
358,
326,
26832,
934,
4484,
1599,
41,
9070,
358,
1086,
12123,
225,
468,
8646,
854,
12529,
364,
776,
55,
6976,
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,
1,
1,
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,
6904,
67,
831,
67,
4757,
13332,
3536,
3002,
279,
1983,
589,
358,
326,
26832,
934,
4484,
1599,
41,
9070,
358,
1086,
12123,
225,
468,
8646,
854,
12529,
364,
776,
55,
6976,
23,
1... |
def email_subject(self) | def email_subject(self): | def email_subject(self) return '#%s %s' % (self.ticket_num, self.summary) | 4ef360c75cf8b3870753c86a954652c88dabefb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/4ef360c75cf8b3870753c86a954652c88dabefb9/ticket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2699,
67,
7857,
12,
2890,
4672,
327,
2946,
9,
87,
738,
87,
11,
738,
261,
2890,
18,
16282,
67,
2107,
16,
365,
18,
7687,
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,
2699,
67,
7857,
12,
2890,
4672,
327,
2946,
9,
87,
738,
87,
11,
738,
261,
2890,
18,
16282,
67,
2107,
16,
365,
18,
7687,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
EXAMPLE: A complete graph is overfull if and only if its number of vertices is odd:: | EXAMPLES: A complete graph of order `n > 1` is overfull if and only if `n` is odd:: | def is_overfull(self): r""" Tests whether the current graph is overfull. | 5791fd30862855b99605b2ceeea7482b18fcf20f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5791fd30862855b99605b2ceeea7482b18fcf20f/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1643,
2854,
12,
2890,
4672,
436,
8395,
7766,
87,
2856,
326,
783,
2667,
353,
1879,
2854,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1643,
2854,
12,
2890,
4672,
436,
8395,
7766,
87,
2856,
326,
783,
2667,
353,
1879,
2854,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sage: F(s) = function('F',s) sage: _inverse_laplace_latex_(F(s),s,t) | sage: F = function('F',s) sage: _inverse_laplace_latex_(0,F,s,t) | def _inverse_laplace_latex_(*args): r""" Return LaTeX expression for inverse Laplace transform of a symbolic function. EXAMPLES:: sage: from sage.calculus.calculus import _inverse_laplace_latex_ sage: var('s,t') (s, t) sage: F(s) = function('F',s) sage: _inverse_laplace_latex_(F(s),s,t) '\\mathcal{L}^{-1}\\left(F\\le... | 4d7d88dc0e2e88a2fc4473ccb94bb557e357cf3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/4d7d88dc0e2e88a2fc4473ccb94bb557e357cf3b/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
22552,
67,
11821,
964,
67,
26264,
67,
30857,
1968,
4672,
436,
8395,
2000,
21072,
21575,
60,
2652,
364,
8322,
21072,
964,
2510,
434,
279,
16754,
445,
18,
225,
5675,
8900,
11386,
2866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22552,
67,
11821,
964,
67,
26264,
67,
30857,
1968,
4672,
436,
8395,
2000,
21072,
21575,
60,
2652,
364,
8322,
21072,
964,
2510,
434,
279,
16754,
445,
18,
225,
5675,
8900,
11386,
2866,
... |
while here.j != id.j: | while here.j != tid.j: | def movetholian(): "Move the Tholian." if not game.tholian or game.justin: return id = coord() if game.tholian.location.i == 0 and game.tholian.location.j == 0: id.i = 0; id.j = QUADSIZE-1 elif game.tholian.location.i == 0 and game.tholian.location.j == QUADSIZE-1: id.i = QUADSIZE-1; id.j = QUADSIZE-1 elif game.tholian... | eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5730,
546,
355,
2779,
13332,
315,
7607,
326,
935,
355,
2779,
1199,
309,
486,
7920,
18,
451,
355,
2779,
578,
7920,
18,
3732,
267,
30,
327,
612,
273,
2745,
1435,
309,
7920,
18,
451,
355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5730,
546,
355,
2779,
13332,
315,
7607,
326,
935,
355,
2779,
1199,
309,
486,
7920,
18,
451,
355,
2779,
578,
7920,
18,
3732,
267,
30,
327,
612,
273,
2745,
1435,
309,
7920,
18,
451,
355,... |
""" force a transition -- for debugging ONLY """ | """ force a transition -- for debugging ONLY """ | def forceTransition(self, aStateName, enterArgList=[], exitArgList=[]): """ force a transition -- for debugging ONLY """ self.request(aStateName, enterArgList, exitArgList, force=1) | 32374b1b273c5130841307c0da81e0e6e1ce336c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/32374b1b273c5130841307c0da81e0e6e1ce336c/ClassicFSM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
8850,
12,
2890,
16,
279,
1119,
461,
16,
6103,
4117,
682,
22850,
6487,
2427,
4117,
682,
33,
8526,
4672,
3536,
2944,
279,
6007,
1493,
364,
10450,
20747,
3536,
365,
18,
2293,
12,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2944,
8850,
12,
2890,
16,
279,
1119,
461,
16,
6103,
4117,
682,
22850,
6487,
2427,
4117,
682,
33,
8526,
4672,
3536,
2944,
279,
6007,
1493,
364,
10450,
20747,
3536,
365,
18,
2293,
12,
69,
... |
PAGE_SPLIT_RE = re.compile(r"([a-z])([A-Z][a-z])") | PAGE_SPLIT_RE = re.compile(r"([a-z])([A-Z])(?=[a-z])") | def wiki_page_version_deleted(self, page): pass | d7f67e5d66e5327465f1e4809013444703cefc7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/d7f67e5d66e5327465f1e4809013444703cefc7d/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
67,
2433,
67,
1589,
67,
8600,
12,
2890,
16,
1363,
4672,
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,
... | [
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,
9050,
67,
2433,
67,
1589,
67,
8600,
12,
2890,
16,
1363,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Group([ (1,2,3,4), (1,3)(2,4), (2,4) ]) | Group( [ (1,2,3,4), (1,3)(2,4), (2,4) ] ) | def normalizer(self,g): """ Returns the normalizer of g in self. | 1b05cfeb7f54ab356322070384decddb4c5ea5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1b05cfeb7f54ab356322070384decddb4c5ea5b1/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19839,
12,
2890,
16,
75,
4672,
3536,
2860,
326,
19839,
434,
314,
316,
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,
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,
19839,
12,
2890,
16,
75,
4672,
3536,
2860,
326,
19839,
434,
314,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
filename = "%s-POWER_%s-%d-%d.xml" % (self.get_ifo(), self.__usertag, int(self.get_start()), int(self.get_end()) - int(self.get_start())) | filename = self.get_output() | def get_output_cache(self): """ Returns a LAL cache of the output file name from the power code. This must be kept synchronized with the name of the output file in power.c. Note in particular the calculation of the "start" and "duration" parts of the name. """ if None in [self.get_start(), self.get_end(), self.get_ifo... | 478c43fe1274973f1d399688ea91f7222fde06ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/478c43fe1274973f1d399688ea91f7222fde06ad/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2844,
67,
2493,
12,
2890,
4672,
3536,
2860,
279,
511,
1013,
1247,
434,
326,
876,
585,
508,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2844,
67,
2493,
12,
2890,
4672,
3536,
2860,
279,
511,
1013,
1247,
434,
326,
876,
585,
508,
628,
326,
7212,
981,
18,
1220,
1297,
506,
16555,
3852,
598,
326,
508,
434,
326,
876,... |
plist = 'Info.plist' rel = os.path.join(bundleDir, 'release', plist) deb = os.path.join(bundleDir, 'debug', plist) | plist = os.path.join(bundleDir, 'Info.plist') | def updatePLists(self): bundleDir = os.path.join(self.chandlerDir, 'distrib', 'osx', 'bundle') plist = 'Info.plist' rel = os.path.join(bundleDir, 'release', plist) deb = os.path.join(bundleDir, 'debug', plist) searchLong = r'(Milestone|Release) \d\.\d\.\d+ ' searchShort = r'>\d\.\d\.\d+<' if self.release: longVersion =... | aa43aa25e7d8f8adc6a5942fcaaa2c451d4004fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/aa43aa25e7d8f8adc6a5942fcaaa2c451d4004fb/release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
52,
7432,
12,
2890,
4672,
3440,
1621,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
343,
464,
749,
1621,
16,
296,
2251,
665,
2187,
296,
538,
92,
2187,
296,
9991,
6134,
21074,
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,
1089,
52,
7432,
12,
2890,
4672,
3440,
1621,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
343,
464,
749,
1621,
16,
296,
2251,
665,
2187,
296,
538,
92,
2187,
296,
9991,
6134,
21074,
273,
... |
def test_svn(): s,o = exec_command(['svn','status']) | def test_svn(**kws): s,o = exec_command(['svn','status'],**kws) | def test_svn(): s,o = exec_command(['svn','status']) assert s,(s,o) | f061375e2cd34559bb1d08fe7e7d82dc700a1792 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f061375e2cd34559bb1d08fe7e7d82dc700a1792/exec_command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31505,
12,
636,
79,
4749,
4672,
272,
16,
83,
273,
1196,
67,
3076,
12,
3292,
31505,
17023,
2327,
17337,
636,
79,
4749,
13,
1815,
272,
16,
12,
87,
16,
83,
13,
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,
1842,
67,
31505,
12,
636,
79,
4749,
4672,
272,
16,
83,
273,
1196,
67,
3076,
12,
3292,
31505,
17023,
2327,
17337,
636,
79,
4749,
13,
1815,
272,
16,
12,
87,
16,
83,
13,
225,
2,
-100,
... |
for route in xml_doc.route: | for route in xml_doc.getchildren(): if 'route' not in route.tag: continue | def getRouting(self, network_id, station_id, start_datetime, end_datetime): """ Get responsible host addresses for given network/stations from ArcLink. | c108523b8de7b72ac170be61790ea5d5f579505b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/c108523b8de7b72ac170be61790ea5d5f579505b/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24740,
310,
12,
2890,
16,
2483,
67,
350,
16,
13282,
67,
350,
16,
787,
67,
6585,
16,
679,
67,
6585,
4672,
3536,
968,
14549,
1479,
6138,
364,
864,
2483,
19,
31478,
628,
24881,
2098,
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,
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,
24740,
310,
12,
2890,
16,
2483,
67,
350,
16,
13282,
67,
350,
16,
787,
67,
6585,
16,
679,
67,
6585,
4672,
3536,
968,
14549,
1479,
6138,
364,
864,
2483,
19,
31478,
628,
24881,
2098,
18,
... |
"not exist" % path) | "not exist" % os.path.dirname(path)) | def save_screenshot_to(self, path): """Saves a screenshot to the specified file. The directory holding the file must exist or an exception is raised. """ if not os.path.exists(os.path.dirname(path)): raise DataError("Directory '%s' where to save the screenshot does " "not exist" % path) screensize = Toolkit.getDefault... | 6e39b48af0911b7c5ba059908f31286f63a16235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/6e39b48af0911b7c5ba059908f31286f63a16235/Screenshot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
29435,
67,
869,
12,
2890,
16,
589,
4672,
3536,
13370,
279,
17179,
358,
326,
1269,
585,
18,
225,
1021,
1867,
19918,
326,
585,
1297,
1005,
578,
392,
1520,
353,
11531,
18,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29435,
67,
869,
12,
2890,
16,
589,
4672,
3536,
13370,
279,
17179,
358,
326,
1269,
585,
18,
225,
1021,
1867,
19918,
326,
585,
1297,
1005,
578,
392,
1520,
353,
11531,
18,
3536,
... |
self.redirect(self.action_url(action)) | self.redirect(self.action_url(self.action)) | def post(self): self.action.put() | 26a70ba9cd56633a766b20434726cb5f1db54309 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14392/26a70ba9cd56633a766b20434726cb5f1db54309/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
365,
18,
1128,
18,
458,
1435,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
365,
18,
1128,
18,
458,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def handle_close_event(self): | def handle_close(self): | def handle_close_event(self): self.closed = True | cceeaedede586cdaa02f131be8842cc30ba62ba9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/cceeaedede586cdaa02f131be8842cc30ba62ba9/test_asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4412,
12,
2890,
4672,
365,
18,
12204,
273,
1053,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
4412,
12,
2890,
4672,
365,
18,
12204,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
list = wrap(list, [optional('channel')]) | list = wrap(list, ['channel',]) | def list(self, irc, msg, args, channel): """[<channel>] | 2bb3ba94433f489305cb6759b3cd4666855aff18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12790/2bb3ba94433f489305cb6759b3cd4666855aff18/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
277,
1310,
16,
1234,
16,
833,
16,
1904,
4672,
3536,
63,
32,
4327,
34,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
277,
1310,
16,
1234,
16,
833,
16,
1904,
4672,
3536,
63,
32,
4327,
34,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
underline=0, accelerator='Ctrl-g') menubar.add_cascade(label='Run', menu=gomenu) | underline=0, accelerator='Alt-g') menubar.add_cascade(label='Run', menu=gomenu, underline=0) | def _init_menubar(self): menubar = Menu(self._top, borderwidth=2, background=BG_COLOR, activebackground=BG_COLOR) filemenu = Menu(menubar, tearoff=0) filemenu.add_command(label='Open Project', underline=0, command=self._open, accelerator='Ctrl-o') filemenu.add_command(label='Save Project', underline=0, command=self._sa... | cd9a037e35aa3ac02f05d4d7bc85c2a899e3132b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd9a037e35aa3ac02f05d4d7bc85c2a899e3132b/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
27617,
373,
297,
12,
2890,
4672,
21247,
373,
297,
273,
9809,
12,
2890,
6315,
3669,
16,
5795,
2819,
33,
22,
16,
5412,
33,
30098,
67,
10989,
16,
2695,
9342,
33,
30098,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
27617,
373,
297,
12,
2890,
4672,
21247,
373,
297,
273,
9809,
12,
2890,
6315,
3669,
16,
5795,
2819,
33,
22,
16,
5412,
33,
30098,
67,
10989,
16,
2695,
9342,
33,
30098,
67,... |
return True | return False | def tool_item_event(self, item, event, tool): | cb06da5636bfb45e863e820d169c8349a05f8c73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/cb06da5636bfb45e863e820d169c8349a05f8c73/anim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5226,
67,
1726,
67,
2575,
12,
2890,
16,
761,
16,
871,
16,
5226,
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,
... | [
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,
5226,
67,
1726,
67,
2575,
12,
2890,
16,
761,
16,
871,
16,
5226,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.personListCtrl.InsertStringItem(idx, to_locale(item.person_title)) | self.personListCtrl.InsertStringItem(idx, to_wx(item.person_title)) | def DoSelectGroup(self, event): """Update member and relationship lists for the selected group. | 37c07bb93a6574354abfe8f76b9c44829e138f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/37c07bb93a6574354abfe8f76b9c44829e138f97/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
3391,
1114,
12,
2890,
16,
871,
4672,
3536,
1891,
3140,
471,
5232,
6035,
364,
326,
3170,
1041,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2256,
3391,
1114,
12,
2890,
16,
871,
4672,
3536,
1891,
3140,
471,
5232,
6035,
364,
326,
3170,
1041,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function' | 'defaults' is an n-tuple of the default values of the last n arguments. """ if ismethod(func): func = func.im_func if not isfunction(func): raise TypeError('arg is not a Python function') | def getargspec(func): """Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tupl... | 22c9da5786df5ad015360983cd01171a0ca1d464 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/22c9da5786df5ad015360983cd01171a0ca1d464/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... |
return data, trans_data | return data def copy_translations(self, cr, uid, old_id, new_id, context=None): trans_obj = self.pool.get('ir.translation') fields = self.fields_get(cr, uid, context=context) translation_records = [] for field_name, field_def in fields.items(): if field_def['type'] in ('one2one', 'one2many'): target_obj = self.pool.... | def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values | 39e866ce70121c8138f7be0079ca7f0ceefb0a42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/39e866ce70121c8138f7be0079ca7f0ceefb0a42/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
5631,
864,
1409,
1807,
501,
598,
777,
2097,
1466,
924,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1610,
67,
892,
12,
2890,
16,
4422,
16,
4555,
16,
612,
16,
805,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
5631,
864,
1409,
1807,
501,
598,
777,
2097,
1466,
924,
2,
-100,
-100,
-100,
-1... |
def __init__(self, filenames=()): | def __init__(self, filenames=(), strict=True): | def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name) | 00f4afff414f17f11401025d4fd9f2f9f25f525b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/00f4afff414f17f11401025d4fd9f2f9f25f525b/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
9066,
33,
9334,
5490,
33,
5510,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9066,
33,
9334,
5490,
33,
5510,
4672,
309,
486,
1208,
329,
30,
1208,
1435,
365,
18,
1331,
369,
899,
67,
1458,
273,
24118,
67,
1458,
18,
3530,
1435,
365,
... |
def stop(self): backend.Backend.stop(self) self.info("Shutting down...") | def is_plaintext(email_message): """Whether a message is plaintext""" return re.match(r"^text/plain", email_message.get_content_type(), re.IGNORECASE) | def stop(self): backend.Backend.stop(self) self.info("Shutting down...") | 6d681d82e58d10f0624caf32b7b289b3a27faefa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/6d681d82e58d10f0624caf32b7b289b3a27faefa/email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
4221,
18,
7172,
18,
5681,
12,
2890,
13,
365,
18,
1376,
2932,
1555,
25387,
2588,
7070,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
4221,
18,
7172,
18,
5681,
12,
2890,
13,
365,
18,
1376,
2932,
1555,
25387,
2588,
7070,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if self.test_code("", "static int test_array [%d+1-sizeof(%s)];\ntest_array [0] = 0;" % (i,t)): | s = "static int test_array [%d+1-sizeof(%s)*2];\ntest_array [0] = 0;" % (i*2,t) if self.test_code("", s): print s print i | self.defines += ["typedef int boolean"] | 05c572c4f4c69f06c70d5c5f391dc303f11e8d7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5722/05c572c4f4c69f06c70d5c5f391dc303f11e8d7e/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
536,
1465,
1011,
8247,
723,
536,
509,
1250,
11929,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
536,
1465,
1011,
8247,
723,
536,
509,
1250,
11929,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
write_message('No plots detected in ' + refno) | write_message('No plots detected in %s' % (refno,)) | def process_single(tarball, sdir = CFG_TMPDIR, xtract_text = False, \ upload_plots = False, force = False, squash = "", \ yes_i_know = False, refno_url = "", \ clean = False): """ Processes one tarball end-to-end. @param: tarball (string): the absolute location of the tarball we wish to process @param: sdir (string): ... | db29de596d58d21210981cce23fa69ad25ba56a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/db29de596d58d21210981cce23fa69ad25ba56a2/plotextractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
7526,
12,
88,
23846,
16,
272,
1214,
273,
7577,
67,
28259,
4537,
16,
619,
1575,
67,
955,
273,
1083,
16,
521,
3617,
67,
13214,
273,
1083,
16,
2944,
273,
1083,
16,
17715,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
7526,
12,
88,
23846,
16,
272,
1214,
273,
7577,
67,
28259,
4537,
16,
619,
1575,
67,
955,
273,
1083,
16,
521,
3617,
67,
13214,
273,
1083,
16,
2944,
273,
1083,
16,
17715,
961,
... |
pass | res = {} if "," in credentials: creds, remainder = credentials.split(",", 1) else: creds, remainder = credentials, "" creds = base64.decodestring(creds.strip()) if not creds.startswith('NTLMSSP\x00'): return res, remainder.strip() type = creds[8] if type==1: res['type'] = 1 domain_len = int(creds[16:18]) domain_off = ... | def parse_ntlm_credentials (credentials): """parse both type1 and type3 credentials""" # XXX pass | 9b3b7bd7d9bd500538e8ae441a173f0dcd4087d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9b3b7bd7d9bd500538e8ae441a173f0dcd4087d4/ntlm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
16681,
81,
67,
11687,
261,
11687,
4672,
3536,
2670,
3937,
618,
21,
471,
618,
23,
4448,
8395,
468,
11329,
455,
273,
2618,
309,
5753,
316,
4448,
30,
12534,
16,
10022,
273,
4448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
16681,
81,
67,
11687,
261,
11687,
4672,
3536,
2670,
3937,
618,
21,
471,
618,
23,
4448,
8395,
468,
11329,
455,
273,
2618,
309,
5753,
316,
4448,
30,
12534,
16,
10022,
273,
4448,
... |
for stripe in stripeset: | for stripe in stripeset: | def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string""" | 8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
12,
2890,
16,
2569,
281,
278,
16,
3598,
33,
20,
16,
819,
1546,
4500,
6,
4672,
3536,
5692,
279,
14268,
578,
2569,
281,
278,
1368,
279,
533,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5341,
12,
2890,
16,
2569,
281,
278,
16,
3598,
33,
20,
16,
819,
1546,
4500,
6,
4672,
3536,
5692,
279,
14268,
578,
2569,
281,
278,
1368,
279,
533,
8395,
2,
-100,
-100,
-100,
-100,
-100,
... |
print >> ssio, self.val_py.strides | print >> ssio, self.val_py.strides, | def str_diagnostic(self): """Return a pretty multiline string representating the cause of the exception""" sio = StringIO() print >> sio, "BadCLinkerOutput" print >> sio, " variable:", self.r print >> sio, " val_py :", self.val_py print >> sio, " val_c :", self.val_c print >> sio, " op :", self.offending_op... | 406674ed9d8b047600bb754f975bde1a5cc7a0ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/406674ed9d8b047600bb754f975bde1a5cc7a0ea/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
12264,
11388,
12,
2890,
4672,
3536,
990,
279,
7517,
19431,
533,
2406,
1776,
326,
4620,
434,
326,
1520,
8395,
272,
1594,
273,
15777,
1435,
1172,
1671,
272,
1594,
16,
315,
6434,
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,
609,
67,
12264,
11388,
12,
2890,
4672,
3536,
990,
279,
7517,
19431,
533,
2406,
1776,
326,
4620,
434,
326,
1520,
8395,
272,
1594,
273,
15777,
1435,
1172,
1671,
272,
1594,
16,
315,
6434,
3... |
('.',['../source/version1/ChangeLog.txt']), | ('.',['../source/ChangeLog.txt']), | def listdirFull(thedir): """ This is just os.listdir() but it returns the full path names. """ files = os.listdir(thedir) for loop in range(len(files)): files[loop] = thedir+os.sep+files[loop] return files | 2f2e970404e660e7affa1df7788230ec078cbd76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/2f2e970404e660e7affa1df7788230ec078cbd76/setup_mac_version1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13529,
5080,
12,
451,
23210,
4672,
3536,
1220,
353,
2537,
1140,
18,
1098,
1214,
1435,
1496,
518,
1135,
326,
1983,
589,
1257,
18,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
451,
23210,
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,
13529,
5080,
12,
451,
23210,
4672,
3536,
1220,
353,
2537,
1140,
18,
1098,
1214,
1435,
1496,
518,
1135,
326,
1983,
589,
1257,
18,
3536,
1390,
273,
1140,
18,
1098,
1214,
12,
451,
23210,
13... |
file_list[x]['relro'], file_list[x]['ssp'], file_list[x]['pie'], file_list[x]['fortify_source'], file_list[x]['nx']) | self.db.sanitize_string(symbol)) | def add_flag_records(self, tag_id, record, flags): """ Function to add flag records to the database """ logging.debug('in Binary.add_flag_records(%s, %s, %s)' % (tag_id, record, flags)) | db3e09aa0517efc638ded0f40524a2b41dc13d44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11154/db3e09aa0517efc638ded0f40524a2b41dc13d44/binary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6420,
67,
7094,
12,
2890,
16,
1047,
67,
350,
16,
1409,
16,
2943,
4672,
3536,
4284,
358,
527,
2982,
3853,
358,
326,
2063,
3536,
2907,
18,
4148,
2668,
267,
7896,
18,
1289,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
6420,
67,
7094,
12,
2890,
16,
1047,
67,
350,
16,
1409,
16,
2943,
4672,
3536,
4284,
358,
527,
2982,
3853,
358,
326,
2063,
3536,
2907,
18,
4148,
2668,
267,
7896,
18,
1289,
67,
... |
self.throttle.setIsForward(self.locoForward.isSelected()) self.throttle.setF0(self.locoHeadlight.isSelected()) self.throttle.setF1(self.locoBell.isSelected()) | self.currentThrottle.setIsForward(self.locoForward.isSelected()) self.currentThrottle.setF0(self.locoHeadlight.isSelected()) self.currentThrottle.setF1(self.locoBell.isSelected()) | def init(self): self.holdMoving = True self.msgText("Getting throttle - ") #add text to scroll field number = int(self.locoAddress.text) dir = self.locoLong.isSelected() self.throttle = self.getThrottle(number, dir) self.currentThrottle = self.throttle if (self.throttle == None) : self.msgText("Couldn't assign throttle... | 79d90690794086da3c9fee9c98395e003d9ba5c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2146/79d90690794086da3c9fee9c98395e003d9ba5c7/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
18,
21056,
49,
13767,
273,
1053,
365,
18,
3576,
1528,
2932,
19213,
18304,
300,
9369,
468,
1289,
977,
358,
5532,
652,
1300,
273,
509,
12,
2890,
18,
1829,
83,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
18,
21056,
49,
13767,
273,
1053,
365,
18,
3576,
1528,
2932,
19213,
18304,
300,
9369,
468,
1289,
977,
358,
5532,
652,
1300,
273,
509,
12,
2890,
18,
1829,
83,
... |
repo = RpmRepo(baseurl, excludes, key) | repo = RpmRepo(baseurl, excludes, key, readsrc) | def readRepos(releasever, configfiles, arch, buildroot, readdebug, readsrc, readcompsfile=0): # Read in /etc/yum.conf config files. repos = [] for c in configfiles: print "Reading config file %s." % c conf = YumConf(releasever, arch, BuildArchTranslate(arch), buildroot, c, "") #print conf.vars for key in conf.vars.keys... | d4a3970fa3f1947aabfdd4eca421bbf58568d6ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d4a3970fa3f1947aabfdd4eca421bbf58568d6ba/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
28453,
12,
9340,
502,
16,
642,
2354,
16,
6637,
16,
1361,
3085,
16,
855,
4148,
16,
855,
4816,
16,
855,
31532,
768,
33,
20,
4672,
468,
2720,
316,
342,
14175,
19,
93,
379,
18,
3923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
28453,
12,
9340,
502,
16,
642,
2354,
16,
6637,
16,
1361,
3085,
16,
855,
4148,
16,
855,
4816,
16,
855,
31532,
768,
33,
20,
4672,
468,
2720,
316,
342,
14175,
19,
93,
379,
18,
3923... |
By default, the diff control lines (those with *** or ---) are | By default, the diff control lines (those with ---, +++, or @@) are | def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n'): r""" Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to... | 0887c732e7d6e162b4b78004af8546b739c77ca7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0887c732e7d6e162b4b78004af8546b739c77ca7/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27136,
67,
5413,
12,
69,
16,
324,
16,
628,
768,
2218,
2187,
358,
768,
2218,
2187,
628,
768,
712,
2218,
2187,
358,
768,
712,
2218,
2187,
290,
33,
23,
16,
4739,
847,
81,
2218,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27136,
67,
5413,
12,
69,
16,
324,
16,
628,
768,
2218,
2187,
358,
768,
2218,
2187,
628,
768,
712,
2218,
2187,
358,
768,
712,
2218,
2187,
290,
33,
23,
16,
4739,
847,
81,
2218,
64,
82,
... |
exp.add(sw) | exp.add_widget(sw, False) | def main(klass): w = gtk.Window() vbox = gtk.VBox() sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) sw.set_size_request(400, 400) exp = klass("miao") exp.add(sw) vbox.pack_start(exp, False, False) sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) exp = klass("miao") exp.add(sw) vbox.pack_start(exp) vbox.pack_star... | da768c9b8873665bf193190ab828897badf72809 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11468/da768c9b8873665bf193190ab828897badf72809/Expander.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
22626,
4672,
341,
273,
22718,
18,
3829,
1435,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
225,
1352,
273,
22718,
18,
1541,
25054,
3829,
1435,
1352,
18,
1289,
12,
4521,
79,
18,
... |
def fl_replace_menu_item(ob, numb, str): """ fl_replace_menu_item(ob, numb, str) """ _fl_replace_menu_item(ob, numb, str) | def fl_replace_menu_item(pObject, numb, item_string): """ fl_replace_menu_item(pObject, numb, item_string) """ _fl_replace_menu_item(pObject, numb, item_string) | def fl_replace_menu_item(ob, numb, str): """ fl_replace_menu_item(ob, numb, str) """ _fl_replace_menu_item(ob, numb, str) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2079,
67,
5414,
67,
1726,
12,
84,
921,
16,
818,
70,
16,
761,
67,
1080,
4672,
3536,
1183,
67,
2079,
67,
5414,
67,
1726,
12,
84,
921,
16,
818,
70,
16,
761,
67,
1080,
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,
1183,
67,
2079,
67,
5414,
67,
1726,
12,
84,
921,
16,
818,
70,
16,
761,
67,
1080,
4672,
3536,
1183,
67,
2079,
67,
5414,
67,
1726,
12,
84,
921,
16,
818,
70,
16,
761,
67,
1080,
13,
... |
command = path_png2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v 1 -f 8 -o '%s'" \ % (totalframes, framespersecond, background, path_mpeg2enc[0], aspectratio, tempvideo) | command = path_jpeg2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v 1 -f 8 -o '%s'" \ % (totalframes, framespersecond, background, path_mpeg2enc[0], aspectratio, tempvideo) | def encodeMenu(background, tempvideo, music, musiclength, tempmovie, xmlfile, finaloutput, aspectratio): if videomode=="pal": framespersecond=frameratePAL else: framespersecond=framerateNTSC totalframes=int(musiclength * framespersecond) command = path_png2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v... | b4b3dc0760dd22f26d036660d08e363e0ebf4ef2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/b4b3dc0760dd22f26d036660d08e363e0ebf4ef2/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
4599,
12,
9342,
16,
1906,
9115,
16,
26225,
16,
26225,
2469,
16,
1906,
8683,
13120,
16,
2025,
768,
16,
727,
2844,
16,
9648,
9847,
4672,
309,
331,
831,
362,
390,
31713,
15081,
6877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
4599,
12,
9342,
16,
1906,
9115,
16,
26225,
16,
26225,
2469,
16,
1906,
8683,
13120,
16,
2025,
768,
16,
727,
2844,
16,
9648,
9847,
4672,
309,
331,
831,
362,
390,
31713,
15081,
6877,
... |
self.dispatch(t.values[0]) for v in t.values[1:]: self.write(" %s " % self.boolops[t.op.__class__]) self.dispatch(v) | s = " %s " % self.boolops[t.op.__class__] interleave(lambda: self.write(s), self.dispatch, t.values) | def _BoolOp(self, t): self.write("(") self.dispatch(t.values[0]) for v in t.values[1:]: self.write(" %s " % self.boolops[t.op.__class__]) self.dispatch(v) self.write(")") | 643abd1e07e9d2d1312ef50fdf241af321625a3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/643abd1e07e9d2d1312ef50fdf241af321625a3e/unparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7464,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
272,
273,
315,
738,
87,
315,
738,
365,
18,
6430,
4473,
63,
88,
18,
556,
16186,
1106,
972,
65,
1554,
19574,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7464,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
2932,
2932,
13,
272,
273,
315,
738,
87,
315,
738,
365,
18,
6430,
4473,
63,
88,
18,
556,
16186,
1106,
972,
65,
1554,
19574,
12... |
@type content: L{Object} | @type content: L{Content} | def resume(self, content): """ Appending this content has resumed. @param content: The content for which proccessing has been resumed. @type content: L{Object} """ pass | 119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10774,
12,
2890,
16,
913,
4672,
3536,
6181,
310,
333,
913,
711,
24632,
329,
18,
632,
891,
913,
30,
1021,
913,
364,
1492,
450,
850,
310,
711,
2118,
24632,
329,
18,
632,
723,
913,
30,
... |
self.faultQuadrature = self.inventory.quadrature | self.faultQuadrature = self.inventory.faultQuadrature | def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.faultQuadrature = self.inventory.quadrature self.upDir = map(float, self.inventory.upDir) self.normalDir = map(float, self.inventory.normalDir) self.matDB = self.inventory.matDB ModuleFault.id(self, self.inventory.matId) M... | a2e0072f01bd39a351b478ca91d641ce2212b264 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/a2e0072f01bd39a351b478ca91d641ce2212b264/Fault.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
12,
2890,
4672,
3536,
10939,
4833,
1450,
13086,
18,
3536,
453,
278,
1017,
1841,
6315,
14895,
12,
2890,
13,
365,
18,
643,
24483,
86,
1231,
273,
365,
18,
26024,
18,
643,
24483,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14895,
12,
2890,
4672,
3536,
10939,
4833,
1450,
13086,
18,
3536,
453,
278,
1017,
1841,
6315,
14895,
12,
2890,
13,
365,
18,
643,
24483,
86,
1231,
273,
365,
18,
26024,
18,
643,
24483,... |
max_count=self.options.num_instances, instance_type=instance_type) | max_count=self.options.num_instances, instance_type=instance_type, security_groups=[security_group]) | def do_start(self): ami_id = self.sd.get('ami_id') instance_type = self.sd.get('instance_type', 'm1.small') if not ami_id: self.parser.error('ami_id option is required when starting the service') ec2 = boto.connect_ec2() if not self.sd.has_section('Credentials'): self.sd.add_section('Credentials') self.sd.set('Credenti... | 9ffaba57b2ade5b63c6a07e64fb912e907cd60be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/9ffaba57b2ade5b63c6a07e64fb912e907cd60be/bs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
12,
2890,
4672,
2125,
77,
67,
350,
273,
365,
18,
6427,
18,
588,
2668,
26223,
67,
350,
6134,
791,
67,
723,
273,
365,
18,
6427,
18,
588,
2668,
1336,
67,
723,
2187,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
12,
2890,
4672,
2125,
77,
67,
350,
273,
365,
18,
6427,
18,
588,
2668,
26223,
67,
350,
6134,
791,
67,
723,
273,
365,
18,
6427,
18,
588,
2668,
1336,
67,
723,
2187,
296,
... |
assert i != -1, "Impossible line %d to reflow: %s" % (size, `s`) | assert i != -1, "Impossible line %d to reflow: %r" % (size, s) | def reflow_lines(s, depth): """Reflow the line s indented depth tabs. Return a sequence of lines where no line extends beyond MAX_COL when properly indented. The first line is properly indented based exclusively on depth * TABSIZE. All following lines -- these are the reflowed lines generated by this function -- sta... | 7b7d1c8282fa2599e2f132c401defde3c9b42e3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7b7d1c8282fa2599e2f132c401defde3c9b42e3f/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
821,
67,
3548,
12,
87,
16,
3598,
4672,
3536,
1957,
821,
326,
980,
272,
23786,
3598,
10920,
18,
225,
2000,
279,
3102,
434,
2362,
1625,
1158,
980,
3231,
17940,
4552,
67,
4935,
1347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
821,
67,
3548,
12,
87,
16,
3598,
4672,
3536,
1957,
821,
326,
980,
272,
23786,
3598,
10920,
18,
225,
2000,
279,
3102,
434,
2362,
1625,
1158,
980,
3231,
17940,
4552,
67,
4935,
1347,
... |
templateWithParamsR = re.compile(r'{{(.*?[^ ])\|([^ ].*?)}}') | templateWithParamsR = re.compile(r'{{(.*?[^ ])\|([^ ].*?)}}', re.DOTALL) | def weblinksIn(text, withoutBracketed = False, onlyBracketed = False): text = wikipedia.removeDisabledParts(text) # MediaWiki parses templates before parsing external links. Thus, there # might be a | or a } directly after a URL which does not belong to # the URL itself. # Blow up templates with spaces to avoid these ... | 302e9dffc9e1adf47f6cae2da35df343edac5e75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/302e9dffc9e1adf47f6cae2da35df343edac5e75/weblinkchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3311,
7135,
382,
12,
955,
16,
2887,
11450,
329,
273,
1083,
16,
1338,
11450,
329,
273,
1083,
4672,
977,
273,
21137,
18,
4479,
8853,
4305,
12,
955,
13,
225,
468,
6128,
25438,
8940,
5539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3311,
7135,
382,
12,
955,
16,
2887,
11450,
329,
273,
1083,
16,
1338,
11450,
329,
273,
1083,
4672,
977,
273,
21137,
18,
4479,
8853,
4305,
12,
955,
13,
225,
468,
6128,
25438,
8940,
5539,
... |
return self.__finish('Invalid Proxy') | return self.__rescheduleFailedJob( jobID , 'Proxy has no group properties defined') | def execute(self): """The JobAgent execution method. """ jobManager = RPCClient('WorkloadManagement/JobManager') #TODO: Initially adding timeleft utility for information, not yet instrumented # to perform scheduling based on the output. if self.jobCount: #Only call timeLeft utility after a job has been picked up ... | e246b1ac753f5835981de1ab24be9c02f2e46b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/e246b1ac753f5835981de1ab24be9c02f2e46b1d/JobAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1986,
3956,
3630,
4588,
707,
18,
3536,
1719,
1318,
225,
273,
8295,
1227,
2668,
2421,
945,
10998,
19,
2278,
1318,
6134,
468,
6241,
30,
4378,
6261,
6534,
1658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1986,
3956,
3630,
4588,
707,
18,
3536,
1719,
1318,
225,
273,
8295,
1227,
2668,
2421,
945,
10998,
19,
2278,
1318,
6134,
468,
6241,
30,
4378,
6261,
6534,
1658,
... |
group = pattern.getgroup(name) if group: subpattern.append((MARK, (group-1)*2)) | group = state.getgroup(name) | def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: ... | 815d5b934b8e8c0b7832353593050a6db660f517 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/815d5b934b8e8c0b7832353593050a6db660f517/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
1936,
16,
2943,
33,
1435,
4672,
225,
468,
1109,
6736,
2652,
1936,
1368,
392,
3726,
666,
18,
225,
720,
4951,
273,
2592,
3234,
12,
4951,
13,
225,
333,
273,
599,
... |
threshs[det]=min_threshold*(horizons[det]/worst_horizon) | threshs[det]=min_threshold*(horizons[det]/worst_horizon) | def detector_thresholds(horizons,min_threshold,max_threshold=7.5): """ Return a set of detector thresholds adjusted for a particular set of inspiral horizon distances (calculated with directional_horizon). The min_threshold specified the minimum threshold which will be set for all detectors less sensitive than the best... | 71005aa7c5c0e51e741c51b585aa70ac798ca4f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/71005aa7c5c0e51e741c51b585aa70ac798ca4f6/grbsummary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13826,
67,
8699,
87,
12,
76,
5331,
7008,
16,
1154,
67,
8699,
16,
1896,
67,
8699,
33,
27,
18,
25,
4672,
3536,
2000,
279,
444,
434,
13826,
19983,
13940,
364,
279,
6826,
444,
434,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13826,
67,
8699,
87,
12,
76,
5331,
7008,
16,
1154,
67,
8699,
16,
1896,
67,
8699,
33,
27,
18,
25,
4672,
3536,
2000,
279,
444,
434,
13826,
19983,
13940,
364,
279,
6826,
444,
434,
316,
... |
ld_args = self.ldflags_shared + lib_opts + \ | if debug: ldflags = self.ldflags_shared_debug basename, ext = os.path.splitext (output_filename) output_filename = basename + '_d' + ext else: ldflags = self.ldflags_shared ld_args = ldflags + lib_opts + \ | def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): """Link a bunch of stuff together to create a shared object file. Much like 'link_shared_lib()', except the output filename is explicitly supplied as 'output_filename'."... | c9db91300cada056e565e829810030a89aaff9b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c9db91300cada056e565e829810030a89aaff9b4/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
33,
7036,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
33,
7036,... |
res = {'name': name, 'type': type, 'view_id': view_id, 'domain': domain, 'context': context, 'res_model': res_model, 'src_model': src_model, 'view_type': view_type, 'view_mode': view_mode, 'usage': usage } | limit = rec.hasAttribute('limit') and rec.getAttribute('limit').encode('utf-8') auto_refresh = rec.hasAttribute('auto_refresh') \ and rec.getAttribute('auto_refresh').encode('utf-8') res = { 'name': name, 'type': type, 'view_id': view_id, 'domain': domain, 'context': context, 'res_model': res_model, 'src_model': src_m... | def _tag_act_window(self, cr, rec, data_node=None): name = rec.hasAttribute('name') and rec.getAttribute('name').encode('utf-8') xml_id = rec.getAttribute('id').encode('utf8') self._test_xml_id(xml_id) type = rec.hasAttribute('type') and rec.getAttribute('type').encode('utf-8') or 'ir.actions.act_window' view_id = Fals... | 292f955bc304c8bcabddcc3272a70aa058797e28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/292f955bc304c8bcabddcc3272a70aa058797e28/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
621,
67,
5668,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
508,
273,
1950,
18,
5332,
1499,
2668,
529,
6134,
471,
1950,
18,
588,
1499,
2668,
529,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2692,
67,
621,
67,
5668,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
508,
273,
1950,
18,
5332,
1499,
2668,
529,
6134,
471,
1950,
18,
588,
1499,
2668,
529,
1... |
self.body.append('''\ | request['body'].append('''\ | def page_footer(self, form_contents): """Render the page footer""" if not form_contents: form_contents = '' | 3613973e0dba8bc750646a30918b4dc7828ea1b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3613973e0dba8bc750646a30918b4dc7828ea1b1/open_id.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1363,
67,
14723,
12,
2890,
16,
646,
67,
3980,
4672,
3536,
3420,
326,
1363,
9860,
8395,
309,
486,
646,
67,
3980,
30,
646,
67,
3980,
273,
875,
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,
0,
0,
0,
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,
1363,
67,
14723,
12,
2890,
16,
646,
67,
3980,
4672,
3536,
3420,
326,
1363,
9860,
8395,
309,
486,
646,
67,
3980,
30,
646,
67,
3980,
273,
875,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
<group colspan="4" col="10"> | <group colspan="4" col="7"> | def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): result = super(share_result, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar,submenu) user_obj = self.pool.get('res.users') data_obj = self.pool.get('ir.model.data') existing_user_ids = con... | 8166cedceb0edc65ee8718fcb28479e1c65e4a60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/8166cedceb0edc65ee8718fcb28479e1c65e4a60/wizard_share.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1466,
67,
1945,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1476,
67,
350,
33,
7036,
16,
1476,
67,
723,
2218,
687,
2187,
819,
33,
7036,
16,
12748,
33,
8381,
16,
1717,
5414,
33,
8381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1466,
67,
1945,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
1476,
67,
350,
33,
7036,
16,
1476,
67,
723,
2218,
687,
2187,
819,
33,
7036,
16,
12748,
33,
8381,
16,
1717,
5414,
33,
8381,
... |
statsPHP4, | statsPHP4, | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )])... | 5ef18979fda0361031978311951e5818b19dcb92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4747/5ef18979fda0361031978311951e5818b19dcb92/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
'broker_id' : fields.many2one('res.partner', 'Broker', domain=[('category_id','=','Broker')]), | 'broker_id' : fields.many2one('res.partner', 'Broker', domain=[('category_id','ilike','Broker')]), | def _check_recursion(self, cr, uid, ids): level = 100 while len(ids): cr.execute('select distinct parent_id from dm_offer_category where id in ('+','.join(map(str,ids))+')') ids = filter(None, map(lambda x:x[0], cr.fetchall())) if not level: return False level -= 1 return True | 3405cf0f53f9541761541771721cdc75cde3687c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/3405cf0f53f9541761541771721cdc75cde3687c/offer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
31347,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
1801,
273,
2130,
1323,
562,
12,
2232,
4672,
4422,
18,
8837,
2668,
4025,
10217,
982,
67,
350,
628,
9113,
67,
23322,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
31347,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
4672,
1801,
273,
2130,
1323,
562,
12,
2232,
4672,
4422,
18,
8837,
2668,
4025,
10217,
982,
67,
350,
628,
9113,
67,
23322,
6... |
return map( string.upper, tokenlist ) | return list(map( string.upper, tokenlist )) | def postParse( self, instring, loc, tokenlist ): return map( string.upper, tokenlist ) | c6e5c5fcf7fe09d7390a6d3525397e48c03606ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3693/c6e5c5fcf7fe09d7390a6d3525397e48c03606ea/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
3201,
12,
365,
16,
316,
1080,
16,
1515,
16,
1147,
1098,
262,
30,
327,
852,
12,
533,
18,
5797,
16,
1147,
1098,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
3201,
12,
365,
16,
316,
1080,
16,
1515,
16,
1147,
1098,
262,
30,
327,
852,
12,
533,
18,
5797,
16,
1147,
1098,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
field_value = form[name] | field = form[name] | def assert_formfield(self, form, name, expected_value): try: field_value = form[name] except Exception, inst: msg = "Couldn't read field '%s' from form fields: %s: %s" % ( name, self.get_field_names(form), inst ) raise Exception, msg self.assert_equal(field_value, expected_value) | df6adbaaaf1fc763020f3b13cf72f6c7cd4eb4eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/df6adbaaaf1fc763020f3b13cf72f6c7cd4eb4eb/test_form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
687,
1518,
12,
2890,
16,
646,
16,
508,
16,
2665,
67,
1132,
4672,
775,
30,
652,
273,
646,
63,
529,
65,
1335,
1185,
16,
1804,
30,
1234,
273,
315,
16342,
1404,
855,
652,
1995,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
687,
1518,
12,
2890,
16,
646,
16,
508,
16,
2665,
67,
1132,
4672,
775,
30,
652,
273,
646,
63,
529,
65,
1335,
1185,
16,
1804,
30,
1234,
273,
315,
16342,
1404,
855,
652,
1995,... |
use_rev = rev and node.rev | def get_mime_type(content=None): mime_type = node.content_type if not mime_type or mime_type == 'application/octet-stream': mime_type = get_mimetype(node.name, content) or \ mime_type or 'text/plain' return mime_type | 2520034890636ae992a119fd22202c074b4735a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2520034890636ae992a119fd22202c074b4735a7/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11757,
67,
723,
12,
1745,
33,
7036,
4672,
4892,
67,
723,
273,
756,
18,
1745,
67,
723,
309,
486,
4892,
67,
723,
578,
4892,
67,
723,
422,
296,
3685,
19,
17909,
17,
3256,
4278,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11757,
67,
723,
12,
1745,
33,
7036,
4672,
4892,
67,
723,
273,
756,
18,
1745,
67,
723,
309,
486,
4892,
67,
723,
578,
4892,
67,
723,
422,
296,
3685,
19,
17909,
17,
3256,
4278,... | |
sect('Rendering','',['OpenGLRenderer','GlShapeFunctor','GlStateFunctor','GlBoundFunctor','GlInteractionGeometryFunctor','GlInteractionPhysicsFunctor'])+ | sect('Rendering','',['OpenGLRenderer','GlShapeFunctor','GlStateFunctor','GlBoundFunctor','GlIGeomFunctor','GlIPhysFunctor'])+ | def genWrapperRst(): global docClasses docClasses=set() # reset globals wrapper=file('yade.wrapper.rst','w') wrapper.write(""".. _yade.wrapper | 55aef7bfadd80e0a0692af7d8ddf8a73edcab10b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2081/55aef7bfadd80e0a0692af7d8ddf8a73edcab10b/yadeSphinx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
3611,
54,
334,
13332,
2552,
997,
4818,
997,
4818,
33,
542,
1435,
468,
2715,
10941,
4053,
33,
768,
2668,
93,
2486,
18,
8376,
18,
16114,
17023,
91,
6134,
4053,
18,
2626,
2932,
3660,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
3611,
54,
334,
13332,
2552,
997,
4818,
997,
4818,
33,
542,
1435,
468,
2715,
10941,
4053,
33,
768,
2668,
93,
2486,
18,
8376,
18,
16114,
17023,
91,
6134,
4053,
18,
2626,
2932,
3660,
... |
Martel.Re("[\w]+")) | Martel.Re(r"[\w\-]+")) | def do_nothing(martel_info): return martel_info | 746434d9270f53da6715c2f9125b055ddd6bab19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/746434d9270f53da6715c2f9125b055ddd6bab19/genbank_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
30874,
12,
81,
485,
292,
67,
1376,
4672,
327,
312,
485,
292,
67,
1376,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
30874,
12,
81,
485,
292,
67,
1376,
4672,
327,
312,
485,
292,
67,
1376,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return -1 self.handle_data("&") i = self.updatepos(i, i + 1) | break elif (i + 1) < n: self.handle_data("&") i = self.updatepos(i, i + 1) else: break | def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: match = self.interesting.search(rawdata, i) # < or & if match: j = match.start() else: j = n if i < j: self.handle_data(rawdata[i:j]) i = self.updatepos(i, j) if i == n: break if rawdata[i] == '<': if starttagopen.match(rawdata, i): # < ... | e68452150850c21f81cfb1f04b4416417aad1df3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e68452150850c21f81cfb1f04b4416417aad1df3/HTMLParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
845,
273,
365,
18,
2761,
10100,
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,
1960,
11617,
12,
2890,
16,
679,
4672,
1831,
892,
273,
365,
18,
1899,
892,
277,
273,
374,
290,
273,
562,
12,
1899,
892,
13,
1323,
277,
411,
290,
30,
845,
273,
365,
18,
2761,
10100,
18... |
try: | if '__classcall_private__' in cls.__dict__: return cls.__classcall_private__(cls, *args, **options) elif hasattr(cls, "__classcall__"): | ... def __init__(self): | 083d2581f9172647da2a6e6f7338e869e5aef113 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/083d2581f9172647da2a6e6f7338e869e5aef113/classcall_metaclass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
4202,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
4202,
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,
-1... |
displayMessage(u"There are no Miro watched video items to add as MythTV Recorded videos.") | displayMessage(u"There are no Miro watched items to add to MythVideo") | def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta... | 10d932a66066bdc1fdcfb153a5e76ddb0901ebd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/10d932a66066bdc1fdcfb153a5e76ddb0901ebd0/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6289,
312,
11373,
18337,
628,
326,
1296,
980,
1135,
1053,
3536,
2552,
1191,
10358,
16,
14754,
16,
3988,
16,
2502,
4650,
16,
6875,
19951,
16,
1904,
67,
350,
16,
1904,
6... |
message = 'JobWrapper failed the initialization phase with exception: \n%s' %(str(x)) gLogger.exception(message) | gLogger.exception('JobWrapper failed the initialization phase') | def execute ( arguments ): global jobReport jobID = arguments['Job']['JobID'] os.environ['JOBID'] = jobID jobID = int(jobID) if arguments.has_key('WorkingDirectory'): wdir = os.path.expandvars(arguments['WorkingDirectory']) if os.path.isdir(wdir): os.chdir(wdir) else: try: os.makedirs(wdir) if os.path.isdir(wdir): o... | 98469a5fadf61445869859b880cc54412da80ddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/98469a5fadf61445869859b880cc54412da80ddd/JobWrapperTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
261,
1775,
262,
30,
225,
2552,
1719,
4820,
225,
28913,
273,
1775,
3292,
2278,
21712,
2278,
734,
3546,
1140,
18,
28684,
3292,
18321,
734,
3546,
273,
28913,
28913,
273,
509,
12,
4688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
261,
1775,
262,
30,
225,
2552,
1719,
4820,
225,
28913,
273,
1775,
3292,
2278,
21712,
2278,
734,
3546,
1140,
18,
28684,
3292,
18321,
734,
3546,
273,
28913,
28913,
273,
509,
12,
4688,
... |
- port: port to connect to (default the standard NNTP port)""" | - port: port to connect to (default the standard NNTP port) - user: username to authenticate with - password: password to use with username - readermode: if true, send 'mode reader' command after connecting. readermode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to ca... | def __init__(self, host, port = NNTP_PORT, user=None, password=None): """Initialize an instance. Arguments: - host: hostname to connect to - port: port to connect to (default the standard NNTP port)""" | 9dd78729459478023a46401d8f04e2dc3bf974e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9dd78729459478023a46401d8f04e2dc3bf974e5/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1756,
273,
423,
1784,
52,
67,
6354,
16,
729,
33,
7036,
16,
2201,
33,
7036,
4672,
3536,
7520,
392,
791,
18,
225,
13599,
30,
300,
1479,
30,
519... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1479,
16,
1756,
273,
423,
1784,
52,
67,
6354,
16,
729,
33,
7036,
16,
2201,
33,
7036,
4672,
3536,
7520,
392,
791,
18,
225,
13599,
30,
300,
1479,
30,
519... |
def entries(): | def entries(**map): | def entries(): parity = 0 for k,n in i: yield self.t("tagentry", parity = parity, tag = k, node = hex(n)) parity = 1 - parity | 268bedddddaed84793c541e8d24cbb2a515ccc87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/268bedddddaed84793c541e8d24cbb2a515ccc87/hgweb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3222,
12,
636,
1458,
4672,
19904,
273,
374,
364,
417,
16,
82,
316,
277,
30,
2824,
365,
18,
88,
2932,
2692,
4099,
3113,
19904,
273,
19904,
16,
1047,
273,
417,
16,
756,
273,
3827,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3222,
12,
636,
1458,
4672,
19904,
273,
374,
364,
417,
16,
82,
316,
277,
30,
2824,
365,
18,
88,
2932,
2692,
4099,
3113,
19904,
273,
19904,
16,
1047,
273,
417,
16,
756,
273,
3827,
12,
... |
msg += self.worksheet.fileName.split('/')[-1] or 'untitled' msg += '"?</b><p><small>Otherwise they will get lost.</small>' diag.setInformativeText(msg) | msg += self.worksheet.fileName.split('/')[-1] or 'untitled' + '"?</b><p>' msg += '<font size="-1">Otherwise they will get lost.</font>' diag.setText(msg) | def __savediag(self): diag = QMessageBox(self) msg = '<b>Do you want to save the changes in your worksheet "' msg += self.worksheet.fileName.split('/')[-1] or 'untitled' msg += '"?</b><p><small>Otherwise they will get lost.</small>' diag.setInformativeText(msg) diag.setStandardButtons(QMessageBox.StandardButton.Discard... | 64c03aad72260c69e1fcd6d14f19abc81a6789a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/403/64c03aad72260c69e1fcd6d14f19abc81a6789a2/qrmainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
14077,
8852,
12,
2890,
4672,
6643,
273,
30728,
12,
2890,
13,
1234,
273,
2368,
70,
34,
3244,
1846,
2545,
358,
1923,
326,
3478,
316,
3433,
13622,
2491,
1234,
1011,
365,
18,
1252,
811... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14077,
8852,
12,
2890,
4672,
6643,
273,
30728,
12,
2890,
13,
1234,
273,
2368,
70,
34,
3244,
1846,
2545,
358,
1923,
326,
3478,
316,
3433,
13622,
2491,
1234,
1011,
365,
18,
1252,
811... |
pass | pass | def execute(self): | 333f48866f614aca5ce38c3f94febbea85ca155d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/333f48866f614aca5ce38c3f94febbea85ca155d/sample.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
DV.conf_file_directory=DamnUnicode(DV.conf_file_location+os.sep) | DV.conf_file_directory=DamnUnicode(DV.conf_file_location+DV.sep) | def DamnUnicode(s): if type(s) is type(u''): return s if type(s) is type(''): return unicode(s,errors='ignore') try: return unicode(s) except: return s | 18d91d3a382ccc85706a20ab0defe4fb663ef94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/18d91d3a382ccc85706a20ab0defe4fb663ef94f/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
16532,
12,
87,
4672,
309,
618,
12,
87,
13,
353,
618,
12,
89,
6309,
4672,
327,
272,
309,
618,
12,
87,
13,
353,
618,
2668,
11,
4672,
327,
5252,
12,
87,
16,
4324,
2218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
16532,
12,
87,
4672,
309,
618,
12,
87,
13,
353,
618,
12,
89,
6309,
4672,
327,
272,
309,
618,
12,
87,
13,
353,
618,
2668,
11,
4672,
327,
5252,
12,
87,
16,
4324,
2218,
... |
if final_ended: | if final_ended and len(lines[i].strip()) != 0: | def read(self, filename = 'mdin'): try: file = open(filename, 'r') except IOError: print >> stderr, 'File (%s) can\'t be opened for reading...' % filename return -1 | f9c999d5095b4ecfe3922438c828de517a5f640e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8376/f9c999d5095b4ecfe3922438c828de517a5f640e/mdin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
273,
296,
1264,
267,
11,
4672,
775,
30,
585,
273,
1696,
12,
3459,
16,
296,
86,
6134,
1335,
8340,
30,
1172,
1671,
4514,
16,
296,
812,
6142,
87,
13,
848,
3730,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1544,
273,
296,
1264,
267,
11,
4672,
775,
30,
585,
273,
1696,
12,
3459,
16,
296,
86,
6134,
1335,
8340,
30,
1172,
1671,
4514,
16,
296,
812,
6142,
87,
13,
848,
3730,... |
assert not in_text, "unexpected repeated .text start: %d" % n in_text = True elif self.r_sectionstart.match(line): if in_function: yield in_function, functionlines functionlines = [] in_text = False in_function = False elif in_text and self.FunctionGcRootTracker.r_functionstart.match(line): yield in_function, functionl... | def find_functions(self, iterlines): functionlines = [] in_text = False in_function = False for n, line in enumerate(iterlines): if self.r_textstart.match(line): assert not in_text, "unexpected repeated .text start: %d" % n in_text = True elif self.r_sectionstart.match(line): if in_function: yield in_function, function... | d953accfc24ec5507016cf995e5ea7c7022c9d91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d953accfc24ec5507016cf995e5ea7c7022c9d91/trackgcroot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
10722,
12,
2890,
16,
1400,
3548,
4672,
445,
3548,
273,
5378,
316,
67,
955,
273,
1083,
316,
67,
915,
273,
1083,
364,
290,
16,
980,
316,
4241,
12,
2165,
3548,
4672,
309,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
10722,
12,
2890,
16,
1400,
3548,
4672,
445,
3548,
273,
5378,
316,
67,
955,
273,
1083,
316,
67,
915,
273,
1083,
364,
290,
16,
980,
316,
4241,
12,
2165,
3548,
4672,
309,
365,
... | |
host = [host] try: addr = socket.gethostbyname(host[0]) if addr != host: | rawHost, port = splitport(host) host = [rawHost] try: addr = socket.gethostbyname(rawHost) if addr != rawHost: | def proxy_bypass(host): try: import _winreg import re except ImportError: # Std modules, so should be around - but you never know! return 0 try: internetSettings = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVersion\Internet Settings') proxyEnable = _winreg.QueryValueEx(internetSettin... | c206a1bbc52dc04f2360bc914df5d74cb48b5037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c206a1bbc52dc04f2360bc914df5d74cb48b5037/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
29604,
12,
2564,
4672,
775,
30,
1930,
389,
8082,
1574,
1930,
283,
1335,
11308,
30,
468,
6276,
4381,
16,
1427,
1410,
506,
6740,
300,
1496,
1846,
5903,
5055,
5,
327,
374,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2889,
67,
29604,
12,
2564,
4672,
775,
30,
1930,
389,
8082,
1574,
1930,
283,
1335,
11308,
30,
468,
6276,
4381,
16,
1427,
1410,
506,
6740,
300,
1496,
1846,
5903,
5055,
5,
327,
374,
775,
... |
('todo.recurrence', '=', todo.recurrence or False), | ('recurrence', '=', todo.recurrence or False), | def create(self, cursor, user, values, context=None): todo_obj = self.pool.get('calendar.todo') | 38b0b3e7e05645f2050619f993da230a0851f555 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9296/38b0b3e7e05645f2050619f993da230a0851f555/todo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
10621,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
11650,
18,
9012,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
10621,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
11650,
18,
9012,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
import sys, os | import sys | def handle(self, info=None): import sys, os info = info or sys.exc_info() text = 0 print reset() | 09029ec15c2b61a0aa506286a6bb485f468ac920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/09029ec15c2b61a0aa506286a6bb485f468ac920/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
1123,
33,
7036,
4672,
1930,
2589,
1123,
273,
1123,
578,
2589,
18,
10075,
67,
1376,
1435,
977,
273,
374,
1172,
2715,
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,
1640,
12,
2890,
16,
1123,
33,
7036,
4672,
1930,
2589,
1123,
273,
1123,
578,
2589,
18,
10075,
67,
1376,
1435,
977,
273,
374,
1172,
2715,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return task_to_dict(self.req.get_task(tid)) | toret = task_to_dict(self.req.get_task(tid)) return toret | def get_task(self, tid): # Retrieve a specific task by ID and return the data return task_to_dict(self.req.get_task(tid)) | cebe7c567b291668b1780ee2c9ac070522bf109f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/cebe7c567b291668b1780ee2c9ac070522bf109f/dbuswrapper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4146,
12,
2890,
16,
11594,
4672,
468,
10708,
279,
2923,
1562,
635,
1599,
471,
327,
326,
501,
327,
1562,
67,
869,
67,
1576,
12,
2890,
18,
3658,
18,
588,
67,
4146,
12,
18081,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4146,
12,
2890,
16,
11594,
4672,
468,
10708,
279,
2923,
1562,
635,
1599,
471,
327,
326,
501,
327,
1562,
67,
869,
67,
1576,
12,
2890,
18,
3658,
18,
588,
67,
4146,
12,
18081,
... |
(os.path.join(self.vsts_path, 'vsperfcmd.exe'))) | (os.path.join(self.tools_path, 'vsperfcmd.exe'))) | def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage. | 344bc5c4002d2db2a1d5a6f60dd29a32e3c0d126 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/344bc5c4002d2db2a1d5a6f60dd29a32e3c0d126/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
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,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
1211,
12,
2890,
16,
4158,
5646,
4672,
3536,
694,
731,
326,
4072,
2923,
3330,
471,
10353,
326,
4158,
5646,
364,
11196,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for line in file.readlines(): | for line in file.xreadlines(): | def findnames(file, prefix=""): names = {} for line in file.readlines(): if line[0] == '!': continue fields = line.split() name, tag = fields[0], fields[-1] if tag == 'd' and name.endswith('_H'): continue if name.startswith(prefix): names[name] = tag return names | ea4d2c0241f3f32a7ff0fdc0b1b5c8e4bb58e445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ea4d2c0241f3f32a7ff0fdc0b1b5c8e4bb58e445/undoc_symbols.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
1973,
12,
768,
16,
1633,
1546,
6,
4672,
1257,
273,
2618,
364,
980,
316,
585,
18,
92,
896,
3548,
13332,
309,
980,
63,
20,
65,
422,
11817,
4278,
1324,
1466,
273,
980,
18,
4939,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
1973,
12,
768,
16,
1633,
1546,
6,
4672,
1257,
273,
2618,
364,
980,
316,
585,
18,
92,
896,
3548,
13332,
309,
980,
63,
20,
65,
422,
11817,
4278,
1324,
1466,
273,
980,
18,
4939,
1... |
self.hash[key] = value return self.hash[key] | self[key] = value return self[key] | def setdefault(self, key, value=None): """Returns self[key] if it exists, otherwise returns value and sets self[key]=value.""" if not self.hash.has_key(key): self.hash[key] = value return self.hash[key] | 6e06f58420fbbb6b8fd5de143e018caac5f6d14a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/6e06f58420fbbb6b8fd5de143e018caac5f6d14a/hashlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
460,
33,
7036,
4672,
3536,
1356,
365,
63,
856,
65,
309,
518,
1704,
16,
3541,
1135,
460,
471,
1678,
365,
63,
856,
65,
33,
1132,
12123,
309,
486,
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,
8745,
12,
2890,
16,
498,
16,
460,
33,
7036,
4672,
3536,
1356,
365,
63,
856,
65,
309,
518,
1704,
16,
3541,
1135,
460,
471,
1678,
365,
63,
856,
65,
33,
1132,
12123,
309,
486,
365,
18,
... |
plaintext_to_latex('%s'%doc.canonical_name)) | plaintext_to_latex('%s'%self._base_name(doc))) | def base_tree(self, doc, width=None, linespec=None): if width is None: width = self._find_tree_width(doc)+2 linespec = [] s = ('&'*(width-4)+'\\multicolumn{2}{l}{\\textbf{%s}}\n' % plaintext_to_latex('%s'%doc.canonical_name)) s += '\\end{tabular}\n\n' top = 1 else: s = self._base_tree_line(doc, width, linespec) top = 0... | 7eb8d92b220e636a569fb3d61619e60c3de49ede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7eb8d92b220e636a569fb3d61619e60c3de49ede/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
3413,
12,
2890,
16,
997,
16,
1835,
33,
7036,
16,
2362,
705,
33,
7036,
4672,
309,
1835,
353,
599,
30,
1835,
273,
365,
6315,
4720,
67,
3413,
67,
2819,
12,
2434,
27921,
22,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
3413,
12,
2890,
16,
997,
16,
1835,
33,
7036,
16,
2362,
705,
33,
7036,
4672,
309,
1835,
353,
599,
30,
1835,
273,
365,
6315,
4720,
67,
3413,
67,
2819,
12,
2434,
27921,
22,
23... |
keep_these_nodes : sequence | nodes : sequence | def getSubnet(net,nodes): """Get induced subgraph. Parameters ---------- net: pynet.Net, pynet.SymmNet or pynet.SymmFullNet The original network. keep_these_nodes : sequence The nodes that span the induces subgraph. Return ------ subnet : type(net) The induced subgraph that contains only nodes given in `keep_these_no... | afd1359eb0add8cd17345f35beb894e86d866544 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/afd1359eb0add8cd17345f35beb894e86d866544/transforms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
2758,
12,
2758,
16,
4690,
4672,
3536,
967,
1547,
26372,
21469,
18,
225,
7012,
12181,
2901,
30,
293,
878,
278,
18,
7308,
16,
293,
878,
278,
18,
11901,
81,
7308,
578,
293,
878,
278... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
2758,
12,
2758,
16,
4690,
4672,
3536,
967,
1547,
26372,
21469,
18,
225,
7012,
12181,
2901,
30,
293,
878,
278,
18,
7308,
16,
293,
878,
278,
18,
11901,
81,
7308,
578,
293,
878,
278... |
class Test: """ Test class """ def run( self, local=0, flavour='blastp' ): """ run function test @param local: transfer local variables to global and perform other tasks only when run locally @type local: 1|0 @param flavour: flavour of blast to test, blastp for localBlast OR blastpgp for localPSIBlast (default: bla... | import Biskit.test as BT class TestBase(BT.BiskitTest): """Prepare all Test cases (without providing any itself)""" def prepareOutput(self, ident): """Set up an output folder for a blast run and point self.outfolder and log files to the right location """ | def writeClusteredBlastResult( self, allFile, clustFile, selection ): """ Reads the blast.out file and keeps only centers. @param allFile: all blast results @type allFile: file @param clustFile: output file name @type clustFile: str @param selection: write only sequences in list @type selection: list """ f = open( ... | ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
3629,
329,
38,
2722,
1253,
12,
365,
16,
777,
812,
16,
927,
641,
812,
16,
4421,
262,
30,
3536,
29185,
326,
19047,
18,
659,
585,
471,
20948,
1338,
17723,
18,
225,
632,
891,
777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3629,
329,
38,
2722,
1253,
12,
365,
16,
777,
812,
16,
927,
641,
812,
16,
4421,
262,
30,
3536,
29185,
326,
19047,
18,
659,
585,
471,
20948,
1338,
17723,
18,
225,
632,
891,
777,
... |
reactor.callWhenRunning(CoverGetter,"cover.jpg",aws_key,callback=(got_it, ("a", 1), {'test':1}),asin='B000NJLNPO') reactor.callWhenRunning(CoverGetter,"cover.png",aws_key,callback=(got_it, {'test':2}),artist='Beyonce',title="B'Day [Deluxe]") reactor.callWhenRunning(CoverGetter,"cover2.jpg",aws_key,callback=(got_it, {'h... | aws_key = '1XHSE4FQJ0RK0X3S9WR2' reactor.callWhenRunning(CoverGetter,"cover.jpg",aws_key, callback=(got_it, ("a", 1), {'test':1}),asin='B000NJLNPO') reactor.callWhenRunning(CoverGetter,"cover.png",aws_key, callback=(got_it, {'test':2}),artist='Beyonce',title="B'Day [Deluxe]") reactor.callWhenRunning(CoverGetter,"cover2... | def got_it2(filename, **kwargs): print "Mylady, it is an image and its name is", filename, args, kwargs | 54a4f7f3e20b1ce78e86f8022714fea950bff832 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/54a4f7f3e20b1ce78e86f8022714fea950bff832/covers_by_amazon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
305,
22,
12,
3459,
16,
2826,
4333,
4672,
1172,
315,
12062,
80,
361,
93,
16,
518,
353,
392,
1316,
471,
2097,
508,
353,
3113,
1544,
16,
833,
16,
1205,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2363,
67,
305,
22,
12,
3459,
16,
2826,
4333,
4672,
1172,
315,
12062,
80,
361,
93,
16,
518,
353,
392,
1316,
471,
2097,
508,
353,
3113,
1544,
16,
833,
16,
1205,
2,
-100,
-100,
-100,
-1... |
offsetts += fn1ts-lastts | offsetts += fn1ts-lastts if offset else 0 | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... | 71f96ef73d9915935425b67dfff621761ff6819f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14863/71f96ef73d9915935425b67dfff621761ff6819f/vfr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
293,
273,
2153,
2670,
18,
1895,
2678,
12,
3384,
2218,
14571,
2038,
1712,
291,
878,
451,
2209,
87,
471,
6729,
23580,
585,
16,
22859,
768,
471,
19,
280,
6391,
87,
7447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
293,
273,
2153,
2670,
18,
1895,
2678,
12,
3384,
2218,
14571,
2038,
1712,
291,
878,
451,
2209,
87,
471,
6729,
23580,
585,
16,
22859,
768,
471,
19,
280,
6391,
87,
7447,
... |
class Calendar: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Calendar(self) def roll(*args, **kwargs): val = apply(QuantLibc.Calendar_roll,args, kwargs) if val: val = DatePtr(val) ; val.thisown = 1 return val def advance(*args, **kwargs): val ... | class Array: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_Array,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Array(self) def __getslice__(*args, **kwargs): val = apply(QuantLibc.Array___getslice__,args, kwargs) if val: val = ArrayPtr... | def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = DateVector | b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2211,
4672,
365,
18,
2211,
273,
333,
365,
18,
2211,
995,
273,
374,
365,
16186,
1106,
972,
273,
2167,
5018,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2211,
4672,
365,
18,
2211,
273,
333,
365,
18,
2211,
995,
273,
374,
365,
16186,
1106,
972,
273,
2167,
5018,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'type' : 'document'}) return res | 'type' : 'document'}) return res | def create(self, cr, uid, values, *args, **kwargs): res = super(document_file, self).create(cr, uid, values, *args, **kwargs) cr.commit() document = self.browse(cr, uid, res) if document.res_model == 'project.project' and document.res_id: self.pool.get('project.project')._log_event(cr, uid, document.res_id, { 'res_id' ... | 0944b6859f82afb44e3d9bec8c41e264c9e0a66e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0944b6859f82afb44e3d9bec8c41e264c9e0a66e/project_event.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
380,
1968,
16,
2826,
4333,
4672,
400,
273,
2240,
12,
5457,
67,
768,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
380,
1968,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
924,
16,
380,
1968,
16,
2826,
4333,
4672,
400,
273,
2240,
12,
5457,
67,
768,
16,
365,
2934,
2640,
12,
3353,
16,
4555,
16,
924,
16,
380,
1968,
... |
property = self.property_to_string(prop_name, prop) | property = property_to_string(prop_name, prop) | def test_load(self): """Test loading a simple calendar.""" cal = self.cal1 | 4284d14984f2a4b3da93b77281110353f761aa67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4284d14984f2a4b3da93b77281110353f761aa67/test_ical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
945,
12,
2890,
4672,
3536,
4709,
7153,
279,
4143,
5686,
12123,
1443,
273,
365,
18,
771,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
945,
12,
2890,
4672,
3536,
4709,
7153,
279,
4143,
5686,
12123,
1443,
273,
365,
18,
771,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
while 1: | while True: | def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0" | 273f22459c5052879287efc0c1575734822927da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/273f22459c5052879287efc0c1575734822927da/ColorDelegator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1323,
1053,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
2932,
6241,
3113,
1024,
13,
309,
486,
761,
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,
283,
3266,
554,
67,
5254,
12,
2890,
4672,
1024,
273,
315,
21,
18,
20,
6,
1323,
1053,
30,
761,
273,
365,
18,
2692,
67,
82,
14523,
726,
2932,
6241,
3113,
1024,
13,
309,
486,
761,
30,
... |
str += self._navbar('class', uid) str += self._public_private_link(uid) | str += self._navbar(uid, 1) | def _class_to_html(self, uid): """ @return: An HTML page describing the class identified by C{uid}. @rtype: C{string} @param uid: The unique identifier for the class that should be documented. @type uid: L{UID} """ # Get the module's documentation doc = self._docmap[uid] # Write the header & navigation bar. str = self... | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1106,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
16868,
326,
667,
9283,
635,
385,
95,
1911,
5496,
632,
86,
723,
30,
385,
95,
1080,
97,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1106,
67,
869,
67,
2620,
12,
2890,
16,
4555,
4672,
3536,
632,
2463,
30,
1922,
3982,
1363,
16868,
326,
667,
9283,
635,
385,
95,
1911,
5496,
632,
86,
723,
30,
385,
95,
1080,
97,
6... |
if self.date_lst: self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND l.date IN %s " \ "GROUP BY l.partner_id", (tuple(self.account_ids), tuple(self.date_lst),)) a = self.cr.fetchone()[... | self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND " + self.query + " " \ "GROUP BY l.partner_id", (tuple(self.account_ids), )) a = self.cr.fetchone()[0] or 0.0 if self.cr.fetchone() !... | def _sum_scredit(self, data): if not self.ids: return 0.0 result_tmp = 0.0 a = 0.0 if self.date_lst: self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND l.date IN %s " \ "GROUP BY l.par... | ac1584df430288117e384a231f5a84958ac74009 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ac1584df430288117e384a231f5a84958ac74009/partner_balance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1364,
67,
1017,
10430,
12,
2890,
16,
501,
4672,
309,
486,
365,
18,
2232,
30,
327,
374,
18,
20,
563,
67,
5645,
273,
374,
18,
20,
279,
273,
374,
18,
20,
309,
365,
18,
712,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1364,
67,
1017,
10430,
12,
2890,
16,
501,
4672,
309,
486,
365,
18,
2232,
30,
327,
374,
18,
20,
563,
67,
5645,
273,
374,
18,
20,
279,
273,
374,
18,
20,
309,
365,
18,
712,
67,
... |
try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeErr... | try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeErr... | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
262,
30,
309,
365,
18,
3175,
738,
1728,
422,
1381,
30,
326,
1119,
682,
273,
365,
18,
542,
1119,
682,
1435,
365,
18,
2725,
3328,
24274,
1435,
225,
309,
365,
18,
3328,
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,
1089,
12,
365,
262,
30,
309,
365,
18,
3175,
738,
1728,
422,
1381,
30,
326,
1119,
682,
273,
365,
18,
542,
1119,
682,
1435,
365,
18,
2725,
3328,
24274,
1435,
225,
309,
365,
18,
3328,
2... |
log.debug("Expander: %s" % self.expander) | def __init__(self, path, vcs = None): # Might be None, but that's okay, only subclasses use it self.vcs = vcs rabbitvcs.ui.GladeWidgetWrapper.__init__(self) self.path = path self.get_widget("file_expander_path").set_label(path) # Do a lazy evaluate for this self.file_info = None self.expander = self.get_widget() lo... | bbd3829204236f9052a90cf180802c8552373b10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/bbd3829204236f9052a90cf180802c8552373b10/property_page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
20255,
273,
599,
4672,
225,
468,
490,
750,
506,
599,
16,
1496,
716,
1807,
21194,
16,
1338,
15320,
999,
518,
365,
18,
18982,
273,
20255,
225,
767... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
16,
20255,
273,
599,
4672,
225,
468,
490,
750,
506,
599,
16,
1496,
716,
1807,
21194,
16,
1338,
15320,
999,
518,
365,
18,
18982,
273,
20255,
225,
767... | |
- ``var`` - string (default: 'x') a variable | - ``var`` - string (default: 'x') a variable name | def minpoly(self,var='x'): """ Computes the minimal polynomial. INPUT: - ``var`` - string (default: 'x') a variable OUTPUT: polynomial in var - the minimal polynomial of the endomorphism. EXAMPLES: Compute the minimal polynomial, and check it :: sage: V=GF(7)^3 sage: H=V.Hom(V)([[0,1,2],[-1,0,3],[2,4,1]]) sage:... | 894cddf7d59c87fdda637de94cd68aea251b5e24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/894cddf7d59c87fdda637de94cd68aea251b5e24/free_module_morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
16353,
12,
2890,
16,
1401,
2218,
92,
11,
4672,
3536,
14169,
281,
326,
16745,
16991,
18,
225,
12943,
30,
225,
300,
12176,
1401,
10335,
300,
533,
261,
1886,
30,
296,
92,
6134,
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,
1131,
16353,
12,
2890,
16,
1401,
2218,
92,
11,
4672,
3536,
14169,
281,
326,
16745,
16991,
18,
225,
12943,
30,
225,
300,
12176,
1401,
10335,
300,
533,
261,
1886,
30,
296,
92,
6134,
279,
... |
pass | self.list_counter.pop() | def depart_definition_list(self, node): pass | e20b3a3adf8de70986f2805e2d77e2bc11ff74aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/e20b3a3adf8de70986f2805e2d77e2bc11ff74aa/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
x += 1 | if x > 99: self.respond("450 Can't STOU other files with brand new name.") self.log("Can't STOU other files with brand new name.") return else: x += 1 | def ftp_STOU(self, line): "store a file with a unique name" # note: RFC 959 prohibited STOU parameters, but this prohibition is obsolete. # note2: RFC 959 wants ftpd to respond with code 250 but I've seen a # lot of FTP servers responding with 125 or 150, and this is a better choice, imho, # because STOU works just lik... | 95e7957fd9509ce008091ab59ee8efe4bedf1f36 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/95e7957fd9509ce008091ab59ee8efe4bedf1f36/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
315,
2233,
279,
585,
598,
279,
3089,
508,
6,
468,
4721,
30,
8372,
2468,
6162,
450,
29993,
2347,
26556,
1472,
16,
1496,
333,
450,
15769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
315,
2233,
279,
585,
598,
279,
3089,
508,
6,
468,
4721,
30,
8372,
2468,
6162,
450,
29993,
2347,
26556,
1472,
16,
1496,
333,
450,
15769,
... |
return self.__checkCatalogForSEFiles(storageFileMetadata,storageElement) | return self.__checkCatalogForSEFiles(storageFileMetadata,storageElement) | def storageDirectoryToCatalog(self,lfnDir,storageElement): """ This obtains the file found on the storage element in the supplied directories and determines whether they exist in the catalog and checks their metadata elements """ gLogger.info("-" * 40) gLogger.info("Performing the SE->LFC check at %s" % storageElement)... | 3e5db6415a941fbe3c8701e4383818a18d1b8b84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e5db6415a941fbe3c8701e4383818a18d1b8b84/DataIntegrityClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2502,
2853,
774,
9769,
12,
2890,
16,
80,
4293,
1621,
16,
5697,
1046,
4672,
3536,
1220,
3768,
16598,
326,
585,
1392,
603,
326,
2502,
930,
316,
326,
4580,
6402,
471,
12949,
2856,
2898,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2502,
2853,
774,
9769,
12,
2890,
16,
80,
4293,
1621,
16,
5697,
1046,
4672,
3536,
1220,
3768,
16598,
326,
585,
1392,
603,
326,
2502,
930,
316,
326,
4580,
6402,
471,
12949,
2856,
2898,
100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.