rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def gen(self): return self.polynomial_ring().gen() | def gen(self): return self.polynomial_ring().gen() | adf9ccf9ef2a50f0d9d6da1d166866ae9bd061e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/adf9ccf9ef2a50f0d9d6da1d166866ae9bd061e6/unramified_ring_extension.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
12,
2890,
4672,
327,
365,
18,
3915,
13602,
67,
8022,
7675,
4507,
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,... | [
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,
3157,
12,
2890,
4672,
327,
365,
18,
3915,
13602,
67,
8022,
7675,
4507,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
(contexts.variable('clause_num'), | (contexts.variable('next_clause_num'), contexts.variable('clause_num'), | def populate(engine): This_rule_base = engine.get_create('compiler') bc_rule.bc_rule('file', This_rule_base, 'compile', file, None, (contexts.variable('generated_root_pkg'), contexts.variable('rb_name'), pattern.pattern_tuple((pattern.pattern_literal('file'), contexts.variable('parent'), pattern.pattern_tuple((context... | bd4e660a9ed69b909bf026a87883b9b1a9562934 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14714/bd4e660a9ed69b909bf026a87883b9b1a9562934/compiler_bc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
12,
8944,
4672,
1220,
67,
5345,
67,
1969,
273,
4073,
18,
588,
67,
2640,
2668,
9576,
6134,
225,
6533,
67,
5345,
18,
13459,
67,
5345,
2668,
768,
2187,
1220,
67,
5345,
67,
1969,
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,
6490,
12,
8944,
4672,
1220,
67,
5345,
67,
1969,
273,
4073,
18,
588,
67,
2640,
2668,
9576,
6134,
225,
6533,
67,
5345,
18,
13459,
67,
5345,
2668,
768,
2187,
1220,
67,
5345,
67,
1969,
16,... |
>>> [x for x in c1] | >>> [x for x in c3] | def __sub__(self,other): """ >>> c1=SparseIntVect(10) >>> c1[0] = 3 >>> c1[2] = 2 >>> c1[4] = 5 >>> c2=SparseIntVect(10) >>> c2[0] = 2 >>> c2[2] = 2 >>> c2[5] = 6 >>> c3 = c1-c2 >>> [x for x in c1] [(0, 1), (4, 5), (5, -6)] | 1f2aff8a3b0d18e01d45b5ef21647527796baefb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9195/1f2aff8a3b0d18e01d45b5ef21647527796baefb/SparseIntVect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
972,
12,
2890,
16,
3011,
4672,
3536,
4080,
276,
21,
33,
20565,
1702,
58,
386,
12,
2163,
13,
4080,
276,
21,
63,
20,
65,
273,
890,
4080,
276,
21,
63,
22,
65,
273,
576,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1717,
972,
12,
2890,
16,
3011,
4672,
3536,
4080,
276,
21,
33,
20565,
1702,
58,
386,
12,
2163,
13,
4080,
276,
21,
63,
20,
65,
273,
890,
4080,
276,
21,
63,
22,
65,
273,
576,
40... |
fileListing=list() | finalList=list() | def __readCache__(self,cacheListing=list()): """ Simple mehtod to read in a cache or list of cache files and return a list of files or an empty list if nothing found """ #Open the cache entry and search for those entrys fileListing=list() for entry in cacheListing: #Cache files listed themselves comment out following l... | 05455322ab6b4df00c83701e9e61844538f87dd5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/05455322ab6b4df00c83701e9e61844538f87dd5/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
1649,
972,
12,
2890,
16,
2493,
19081,
33,
1098,
1435,
4672,
3536,
4477,
1791,
647,
369,
358,
855,
316,
279,
1247,
578,
666,
434,
1247,
1390,
471,
327,
279,
666,
434,
1390,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
896,
1649,
972,
12,
2890,
16,
2493,
19081,
33,
1098,
1435,
4672,
3536,
4477,
1791,
647,
369,
358,
855,
316,
279,
1247,
578,
666,
434,
1247,
1390,
471,
327,
279,
666,
434,
1390,
5... |
... m2, m3, m5, mRes = tee(_m235(), 4) ... return mRes >>> it = m235() | ... m1 = _m235() ... m2, m3, m5, mRes = tee(m1, 4) ... return m1.close, mRes >>> closer, it = m235() | ... def _m235(): | 90a84d4fadd28eb143aaa76463bf14a47954125f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/90a84d4fadd28eb143aaa76463bf14a47954125f/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
389,
81,
30803,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
389,
81,
30803,
13332,
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,
-... |
if ((token is Token.Punctuation and value == ')') or (token is Token.Punctuation and value == u',') and not parendepth): | if (token is Token.Punctuation and (value == ',' or (value == ')' and parendepth == -1))): | def parsekeywordpairs(signature): tokens = PythonLexer().get_tokens(signature) stack = [] substack = [] parendepth = 0 begin = False for token, value in tokens: if not begin: if token is Token.Punctuation and value == u'(': begin = True continue if token is Token.Punctuation: if value == u'(': parendepth += 1 elif val... | 2924c6633b6b760476dc6904aa1ffd5170c87866 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/2924c6633b6b760476dc6904aa1ffd5170c87866/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
11041,
11545,
12,
8195,
4672,
2430,
273,
6600,
13356,
7675,
588,
67,
7860,
12,
8195,
13,
2110,
273,
5378,
720,
3772,
273,
5378,
22146,
5979,
273,
374,
2376,
273,
1083,
364,
1147,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11041,
11545,
12,
8195,
4672,
2430,
273,
6600,
13356,
7675,
588,
67,
7860,
12,
8195,
13,
2110,
273,
5378,
720,
3772,
273,
5378,
22146,
5979,
273,
374,
2376,
273,
1083,
364,
1147,
1... |
{'abcoulomb':'CGS unit defined to be 10 coulombs.', 'coulomb':'SI derived unit of charge.\nDefined to be the amount of electric charge transported by 1 ampere in 1 second.', 'elementary_charge':'Defined to be the amount of electric charge carried by a single proton or negative charge carried by a single electron.\nAppr... | {'abcoulomb':'CGS unit defined to be 10 coulombs.', 'coulomb':'SI derived unit of charge.\nDefined to be the amount of electric charge transported by 1 ampere in 1 second.', 'elementary_charge':'Defined to be the amount of electric charge carried by a single proton or negative charge carried by a single electron.\nAppr... | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | 36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
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,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
self.oldValueStr = {} for channel in self.channels: self.oldValueStr[channel] = None self.updateValues() self.valueUpdateTimeout = gtk.timeout_add(self.valueUpdateInterval, self.updateValues) | if self.valueUpdateInterval: self.oldValueStr = {} for channel in self.channels: self.oldValueStr[channel] = None self.updateValues() self.valueUpdateTimeout = gtk.timeout_add(self.valueUpdateInterval, self.updateValues) | def fillModel(self): """Fills the model with data, must be called after self.window is valid""" for channel in self.channels: i = self.model.append() self.model.set(i, 0, channel, 1, str(channel), 2, gtk.FALSE, 3, gtk.TRUE, 4, self.makeColorSamplePixbuf(channel), 5, "", | 59acd7101d02a60e7dcd31cf40cf07a5a2045926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/59acd7101d02a60e7dcd31cf40cf07a5a2045926/rtgraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
1488,
12,
2890,
4672,
3536,
28688,
326,
938,
598,
501,
16,
1297,
506,
2566,
1839,
365,
18,
5668,
353,
923,
8395,
364,
1904,
316,
365,
18,
9114,
30,
277,
273,
365,
18,
2284,
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,
3636,
1488,
12,
2890,
4672,
3536,
28688,
326,
938,
598,
501,
16,
1297,
506,
2566,
1839,
365,
18,
5668,
353,
923,
8395,
364,
1904,
316,
365,
18,
9114,
30,
277,
273,
365,
18,
2284,
18,
... |
if user: | if user and (user not in users): | def get_moderatorUserObjects(self): """ Get the user objects corresponding to the moderator, assuming we can. """ member_groups = self.getProperty('moderator_groups', []) uids = [] for gid in member_groups: group = self.acl_users.getGroupById(gid) uids += group.getUsers() uids += self.getProperty('moderator_members',... | 6cd237344be4b0794ee3a67c1bcc57ea94657315 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6274/6cd237344be4b0794ee3a67c1bcc57ea94657315/XWFMailingList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1711,
7385,
1299,
4710,
12,
2890,
4672,
3536,
968,
326,
729,
2184,
4656,
358,
326,
681,
7385,
16,
15144,
732,
848,
18,
225,
3536,
3140,
67,
4650,
273,
365,
18,
588,
1396,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1711,
7385,
1299,
4710,
12,
2890,
4672,
3536,
968,
326,
729,
2184,
4656,
358,
326,
681,
7385,
16,
15144,
732,
848,
18,
225,
3536,
3140,
67,
4650,
273,
365,
18,
588,
1396,
2668... |
canvas = treevis.drawTree(tree, autoclose=False, | canvas = treesvg.drawTree(tree, autoclose=False, | def drawParamTree(tree, params, *args, **kargs): tree = tree.copy() kargs.setdefault("legendScale", True) kargs.setdefault("xscale", 100) kargs.setdefault("yscale", 20) kargs.setdefault("minlen", 0) kargs.setdefault("maxlen", util.INF) if "labels" not in kargs: kargs["labels"] = {} for name in tree.nodes: if not tree... | b483115a5fd542a830f9247f3e48635621f1e5dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8482/b483115a5fd542a830f9247f3e48635621f1e5dd/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
786,
2471,
12,
3413,
16,
859,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
2151,
273,
2151,
18,
3530,
1435,
25916,
18,
542,
1886,
2932,
16292,
5587,
3113,
1053,
13,
25916,
18,
542,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
786,
2471,
12,
3413,
16,
859,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
2151,
273,
2151,
18,
3530,
1435,
25916,
18,
542,
1886,
2932,
16292,
5587,
3113,
1053,
13,
25916,
18,
542,
1... |
node[target].value += cur.delta | node[target].value += cur.delta.movepointer(-pointer) | def optimize_propagate(self, node): if not isinstance(node, ComplexNode): return node | 55a86fc4f319ddc89439f1749954cde74fdadcf3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/55a86fc4f319ddc89439f1749954cde74fdadcf3/esotope-bfc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
67,
5986,
346,
340,
12,
2890,
16,
756,
4672,
309,
486,
1549,
12,
2159,
16,
16060,
907,
4672,
327,
756,
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,
10979,
67,
5986,
346,
340,
12,
2890,
16,
756,
4672,
309,
486,
1549,
12,
2159,
16,
16060,
907,
4672,
327,
756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(self.parameters['AppVersions'])> 0: | if self.parameters['JobSpecInstance'].parameters['JobType'] in ("CleanUp", "LogArchive"): swversion=None elif len(self.parameters['AppVersions'])> 0: | def doSubmit(self, wrapperScript, jobTarball): """ _doSubmit_ | b2c52137e90d6ecb64be526f98743a6d87c0e4bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/b2c52137e90d6ecb64be526f98743a6d87c0e4bf/LCGAdvanced.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
11620,
12,
2890,
16,
4053,
3651,
16,
1719,
56,
23846,
4672,
3536,
389,
2896,
11620,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
11620,
12,
2890,
16,
4053,
3651,
16,
1719,
56,
23846,
4672,
3536,
389,
2896,
11620,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
building = 0; | building = 0 | def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive"); ipath = ["built/tmp"] + ipath + ["built/include"] outd = "built/etc/"+outd outc = "built/t... | 4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4a71a3ad56d88a79d9aba6c9d9fa1abc8c3a885e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
15283,
12,
625,
421,
33,
20,
16,
1500,
33,
20,
16,
596,
72,
33,
20,
16,
596,
71,
33,
20,
16,
1705,
33,
20,
16,
1605,
33,
20,
16,
5313,
33,
20,
16,
1390,
33,
20,
4672,
309... |
if '__WXGTK__' not in wx.PlatformInfo: self.timeHeight += 3 y += self.timeHeight | if '__WXGTK__' in wx.PlatformInfo: y += 1 else: y += 3 | def Draw(self, dc, styles, brushOffset, selected, rightSideCutOff=False): # @@@ add a general cutoff parameter? item = self._item if item.isDeleted(): return | 068b53bf5aeb0ce05891f6b3fc355754a1fae262 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/068b53bf5aeb0ce05891f6b3fc355754a1fae262/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
12,
2890,
16,
6744,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
16,
2145,
8895,
15812,
7210,
33,
8381,
4672,
468,
22175,
36,
527,
279,
7470,
13383,
1569,
35,
761,
273,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10184,
12,
2890,
16,
6744,
16,
5687,
16,
5186,
1218,
2335,
16,
3170,
16,
2145,
8895,
15812,
7210,
33,
8381,
4672,
468,
22175,
36,
527,
279,
7470,
13383,
1569,
35,
761,
273,
365,
6315,
... |
if f_o is None: | if f_o is None or f_o == 'NULL': | def GetFeature( self, fid ): f_o = _gdal.OGR_L_GetFeature( self._o, fid ) if f_o is None: return None else: return Feature( obj = f_o ) | b7d449ee48f4c53c685bdaab9372c0c76d37109c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/b7d449ee48f4c53c685bdaab9372c0c76d37109c/ogr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4595,
12,
365,
16,
13444,
262,
30,
284,
67,
83,
273,
389,
19016,
287,
18,
51,
6997,
67,
48,
67,
967,
4595,
12,
365,
6315,
83,
16,
13444,
262,
309,
284,
67,
83,
353,
599,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4595,
12,
365,
16,
13444,
262,
30,
284,
67,
83,
273,
389,
19016,
287,
18,
51,
6997,
67,
48,
67,
967,
4595,
12,
365,
6315,
83,
16,
13444,
262,
309,
284,
67,
83,
353,
599,
578,
... |
self.write(cr, uid, ids, {'state':'draft'}) | self.write(cr, uid, ids, {'state': 'draft'}) | def state_draft_set(self, cr, uid, ids, *args): self.write(cr, uid, ids, {'state':'draft'}) return True | 7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
17153,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
17153,
11,
6792,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
919,
67,
17153,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
17153,
11,
6792,
327,
1... |
node.filename = tokenizer.filename | """Parses the toplevel and def bodies.""" | 8821e4327bfb86a33947d65d4f1015998b0304f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/8821e4327bfb86a33947d65d4f1015998b0304f4/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
6656,
326,
28999,
471,
1652,
25126,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3536,
6656,
326,
28999,
471,
1652,
25126,
12123,
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,
... | |
if obtained != valid: | if not expected_result(obtained, valid): | def expand (file, entry, type = -1): | 2c91226d74c638ff6bcbbbaf53b4a27125f9589b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1356/2c91226d74c638ff6bcbbbaf53b4a27125f9589b/testsuite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
261,
768,
16,
1241,
16,
618,
273,
300,
21,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4542,
261,
768,
16,
1241,
16,
618,
273,
300,
21,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print "%s/sqlite3.h: version %s"%(d, sqlite_version) | if sqlite_setup_debug: print "%s/sqlite3.h: version %s"%(d, sqlite_version) | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 87949ecca00b63f3383a2037a83e9f865ca5b733 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/87949ecca00b63f3383a2037a83e9f865ca5b733/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
print "Scheduling software installation and actions on clients" | print timestamp(), "Scheduling software installation and actions on clients." | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in... | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... |
d_obs = miller.array(miller_set = f_model, data = self.f_obs.data()*k ).phase_transfer(phase_source = f_model) d_model = self.f_model_scaled_with_k1().data()*n return miller.array(miller_set = f_model, data = d_obs.data() - d_model) | return self._map_coeff(f_obs = self.f_obs, f_model = self.f_model(), f_obs_scale = k * f_obs_scale, f_model_scale = n * f_model_scale) | def map_coefficients(self, map_type = None, k = None, n = None, w1 = None, w2 = None): assert map_type in ("k*Fobs-n*Fmodel", "2m*Fobs-D*Fmodel", "m*Fobs-D*Fmodel") if(map_type == "k*Fobs-n*Fmodel"): if([k,n].count(None) != 0): raise Sorry("Map coef... | f19aefb5e2e6f1ee1fe619eeb40f1643efc3d937 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/f19aefb5e2e6f1ee1fe619eeb40f1643efc3d937/f_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
8075,
12344,
12,
2890,
16,
852,
67,
723,
1850,
273,
599,
16,
417,
1171,
273,
599,
16,
290,
1171,
273,
599,
16,
341,
21,
7734,
273,
599,
16,
341,
22,
7734,
273,
599,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
8075,
12344,
12,
2890,
16,
852,
67,
723,
1850,
273,
599,
16,
417,
1171,
273,
599,
16,
290,
1171,
273,
599,
16,
341,
21,
7734,
273,
599,
16,
341,
22,
7734,
273,
599,
4672,
... |
os.write(handle, contents) | os.write(handle, contents.encode('utf-8')) | def preview_changes(self, req, page): """ Preview suggested changes. """ page_id = self.env.get_real_filename(page) if page_id is None: raise NotFound() author = req.form.get('name') email = req.form.get('email') contents = req.form.get('contents') | 98afdb3434bab297611b8a043ea35d50e8d01096 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/98afdb3434bab297611b8a043ea35d50e8d01096/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10143,
67,
6329,
12,
2890,
16,
1111,
16,
1363,
4672,
3536,
22289,
22168,
3478,
18,
3536,
1363,
67,
350,
273,
365,
18,
3074,
18,
588,
67,
7688,
67,
3459,
12,
2433,
13,
309,
1363,
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,
10143,
67,
6329,
12,
2890,
16,
1111,
16,
1363,
4672,
3536,
22289,
22168,
3478,
18,
3536,
1363,
67,
350,
273,
365,
18,
3074,
18,
588,
67,
7688,
67,
3459,
12,
2433,
13,
309,
1363,
67,
... |
self.db.addnode(self.classname, newid, d) | def import_list(self, propnames, proplist): ''' Import a node - all information including "id" is present and should not be sanity checked. Triggers are not triggered. The journal should be initialised using the "creator" and "created" information. | 01f0ef6c6dae68879d65d11a3bdae2c995f2fccc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/01f0ef6c6dae68879d65d11a3bdae2c995f2fccc/rdbms_common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
1098,
12,
2890,
16,
2270,
1973,
16,
450,
17842,
4672,
9163,
6164,
279,
756,
300,
777,
1779,
6508,
315,
350,
6,
353,
3430,
471,
1410,
486,
506,
16267,
5950,
18,
840,
8060,
854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
1098,
12,
2890,
16,
2270,
1973,
16,
450,
17842,
4672,
9163,
6164,
279,
756,
300,
777,
1779,
6508,
315,
350,
6,
353,
3430,
471,
1410,
486,
506,
16267,
5950,
18,
840,
8060,
854... | |
print "Decoded: %s = %s" % (k, v) | def decode_list(self, prop, value): if not isinstance(value, list): value = [value] if hasattr(prop, 'item_type'): item_type = getattr(prop, "item_type") dec_val = {} for val in value: k,v = self.decode_map_element(item_type, val) try: k = int(k) except: k = v dec_val[k] = v print "Decoded: %s = %s" % (k, v) value = de... | 2397b5455d5c906af044f37d3adaecb6c177f43b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/2397b5455d5c906af044f37d3adaecb6c177f43b/sdbmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
1098,
12,
2890,
16,
2270,
16,
460,
4672,
309,
486,
1549,
12,
1132,
16,
666,
4672,
460,
273,
306,
1132,
65,
309,
3859,
12,
5986,
16,
296,
1726,
67,
723,
11,
4672,
761,
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,
2495,
67,
1098,
12,
2890,
16,
2270,
16,
460,
4672,
309,
486,
1549,
12,
1132,
16,
666,
4672,
460,
273,
306,
1132,
65,
309,
3859,
12,
5986,
16,
296,
1726,
67,
723,
11,
4672,
761,
67,
... | |
base_facets.update(self.__facets) if self.__baseTypeDefinition.facets(): assert type(self.__baseTypeDefinition.facets()) == types.DictType base_facets.update(self.__baseTypeDefinition.facets()) | facet_contributors = [ self ] td = self.__baseTypeDefinition while td.facets(): facet_contributors.append(td) td = td.__baseTypeDefinition facet_contributors.reverse() for td in facet_contributors: print 'Adding facets to %s from %s' % (self, td) base_facets.update(td.facets()) | def __updateFacets (self, body): # We want a map from the union of the facet classes from this # STD and the baseTypeDefinition (if present), to None if the # facet has not been constrained, or a ConstrainingFacet # instance if it is. ConstrainingFacet instances created for # local constraints also need a pointer to t... | 078f730e5bb5a3698a24e61b36688335e6bce0b5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/078f730e5bb5a3698a24e61b36688335e6bce0b5/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
6645,
2413,
261,
2890,
16,
1417,
4672,
468,
1660,
2545,
279,
852,
628,
326,
7812,
434,
326,
11082,
3318,
628,
333,
468,
2347,
40,
471,
326,
23937,
1852,
261,
430,
3430,
3631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
6645,
2413,
261,
2890,
16,
1417,
4672,
468,
1660,
2545,
279,
852,
628,
326,
7812,
434,
326,
11082,
3318,
628,
333,
468,
2347,
40,
471,
326,
23937,
1852,
261,
430,
3430,
3631,... |
res.update({user_id:status}) | res.update({user_id:status}) | def _get_user_avail(self, cr, uid, ids, context=None): current_datetime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') res = super(res_users, self)._get_user_avail(cr, uid, ids, context) cr.execute("SELECT crm_case.user_id, 'busy' as status \ FROM crm_meeting meeting, crm_case \ WHERE meeting.inherit_case_id =... | 75258015cae6ae0d493e7eb6204a16eafed73cd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/75258015cae6ae0d493e7eb6204a16eafed73cd9/crm_meeting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
67,
842,
671,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
783,
67,
6585,
273,
3314,
18,
6585,
18,
3338,
7675,
701,
9982,
29909,
61,
6456,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1355,
67,
842,
671,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
783,
67,
6585,
273,
3314,
18,
6585,
18,
3338,
7675,
701,
9982,
29909,
61,
6456,
81,... |
def _getStandardBias( self, dt ): winInfo = self.getWinInfo( dt.year ) | def _getStandardBias(self, dt): winInfo = self.getWinInfo(dt.year) | def _getStandardBias( self, dt ): winInfo = self.getWinInfo( dt.year ) return winInfo.bias + winInfo.standardBiasOffset | c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
8336,
31645,
12,
2890,
16,
3681,
4672,
5657,
966,
273,
365,
18,
588,
18049,
966,
12,
7510,
18,
6874,
13,
327,
5657,
966,
18,
13931,
397,
5657,
966,
18,
10005,
31645,
2335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
8336,
31645,
12,
2890,
16,
3681,
4672,
5657,
966,
273,
365,
18,
588,
18049,
966,
12,
7510,
18,
6874,
13,
327,
5657,
966,
18,
13931,
397,
5657,
966,
18,
10005,
31645,
2335,
2,... |
self._parser.ProcessingInstructionHandler = \ self._cont_handler.processingInstruction self._parser.CharacterDataHandler = self._cont_handler.characters | self._reset_cont_handler() | def reset(self): if self._namespaces: self._parser = expat.ParserCreate(None, " ") self._parser.StartElementHandler = self.start_element_ns self._parser.EndElementHandler = self.end_element_ns else: self._parser = expat.ParserCreate() self._parser.StartElementHandler = self.start_element self._parser.EndElementHandler ... | 97c4c1a3bc3ef2249d8b1174a968d7cd0dfc6b76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/97c4c1a3bc3ef2249d8b1174a968d7cd0dfc6b76/expatreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
309,
365,
6315,
16078,
30,
365,
6315,
4288,
273,
1329,
270,
18,
2678,
1684,
12,
7036,
16,
315,
9369,
365,
6315,
4288,
18,
1685,
1046,
1503,
273,
365,
18,
1937,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
309,
365,
6315,
16078,
30,
365,
6315,
4288,
273,
1329,
270,
18,
2678,
1684,
12,
7036,
16,
315,
9369,
365,
6315,
4288,
18,
1685,
1046,
1503,
273,
365,
18,
1937,
67... |
header, data=line.split(":",1) | header, data = line.split(":", 1) | def ParseReport(self, MetarReport=None): """Take report with raw info only and return it with in parsed values filled in. Note: This function edits the WeatherReport object you supply!""" if self.Report is None and MetarReport is None: raise EmptyReportException, \ "No report given on init and ParseReport()." elif Meta... | fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4602/fe1cdcd11658fbbfba6d30dfe37a2f9dfce6a1a8/pymetar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
4820,
12,
2890,
16,
21604,
297,
4820,
33,
7036,
4672,
3536,
13391,
2605,
598,
1831,
1123,
1338,
471,
327,
518,
598,
316,
2707,
924,
6300,
316,
18,
3609,
30,
1220,
445,
24450,
326,
... |
* *host* is an IPv4 dotted quad or an IPv6 address | * *ip* is an IPv4 dotted quad or an IPv6 address | def listen(self, bind_info, qlen=5): """ Sets the socket to listen. | 90682baa5ab5e105fb31ca84cac0f9a398304906 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/90682baa5ab5e105fb31ca84cac0f9a398304906/sockets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6514,
12,
2890,
16,
1993,
67,
1376,
16,
1043,
1897,
33,
25,
4672,
3536,
11511,
326,
2987,
358,
6514,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6514,
12,
2890,
16,
1993,
67,
1376,
16,
1043,
1897,
33,
25,
4672,
3536,
11511,
326,
2987,
358,
6514,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self._DictIterator(1,self) | return self._DictIterator(1) | def iterkeys(self): """ obj.iterkeys() -> an iterator over the keys of obj ordered by self.field_order """ return self._DictIterator(1,self) | 579d2b0d74c64f5c9a73587dd87d4cda3aafef04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/579d2b0d74c64f5c9a73587dd87d4cda3aafef04/MythBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31664,
12,
2890,
4672,
3536,
1081,
18,
2165,
2452,
1435,
317,
392,
2775,
1879,
326,
1311,
434,
1081,
5901,
635,
365,
18,
1518,
67,
1019,
3536,
327,
365,
6315,
5014,
3198,
12,
21,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31664,
12,
2890,
4672,
3536,
1081,
18,
2165,
2452,
1435,
317,
392,
2775,
1879,
326,
1311,
434,
1081,
5901,
635,
365,
18,
1518,
67,
1019,
3536,
327,
365,
6315,
5014,
3198,
12,
21,
13,
2... |
tmpfile = mkstemp_symlink(dirname, basename, linkto) | tmpfile = mkstemp_symlink(dirname, tmpprefix, linkto) | def extractCpio(self, filedata, read_data, filenamehash, devinode, filenames): filename = filedata[0] data = read_data(filedata[5]) fileinfo = filenamehash.get(filename) if fileinfo == None: self.printErr("cpio file %s not in rpm header" % filename) return (fn, flag, mode, mtime, dev, inode, user, group, rdev, linkto, ... | 73fe5b4e17300fe703da079a2bdf4fefe1e4ee56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/73fe5b4e17300fe703da079a2bdf4fefe1e4ee56/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
28954,
1594,
12,
2890,
16,
585,
892,
16,
855,
67,
892,
16,
1544,
2816,
16,
4461,
267,
390,
16,
9066,
4672,
1544,
273,
585,
892,
63,
20,
65,
501,
273,
855,
67,
892,
12,
768,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
28954,
1594,
12,
2890,
16,
585,
892,
16,
855,
67,
892,
16,
1544,
2816,
16,
4461,
267,
390,
16,
9066,
4672,
1544,
273,
585,
892,
63,
20,
65,
501,
273,
855,
67,
892,
12,
768,
8... |
this = apply(_quickfix.new_LegSettlDate, args) | this = _quickfix.new_LegSettlDate(*args) | def __init__(self, *args): this = apply(_quickfix.new_LegSettlDate, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
694,
6172,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
694,
6172,
1626,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
if timeout != None and time() >= end: break | if timeout != None and timer() >= end: break | def recv(self, n, timeout=None, peek=False, waitall=False): """Reads up to n bytes in a manner identical to socket.recv. Blocks for up to timeout seconds if n > 0 and no data is available (timeout=None means wait forever). If still no data is available, raises BlockError or Timeout. For a closed stream, recv will rea... | 4b100a5a64fb3d1a2c87cd04aa5b2af0b232051e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11109/4b100a5a64fb3d1a2c87cd04aa5b2af0b232051e/samclasses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
290,
16,
2021,
33,
7036,
16,
8032,
33,
8381,
16,
2529,
454,
33,
8381,
4672,
3536,
7483,
731,
358,
290,
1731,
316,
279,
21296,
12529,
358,
2987,
18,
18334,
18,
2271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
290,
16,
2021,
33,
7036,
16,
8032,
33,
8381,
16,
2529,
454,
33,
8381,
4672,
3536,
7483,
731,
358,
290,
1731,
316,
279,
21296,
12529,
358,
2987,
18,
18334,
18,
2271... |
sys.exit(not main()) | exit_status = not main() sys.exit(exit_status) | def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:') except getopt.error, msg: print msg print "usage: compileall [-l] [-f] [-d destdir] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-to-date" print "-d destdir: pu... | c8123ba8709fb01b32659d2d930ad099c5e995e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8123ba8709fb01b32659d2d930ad099c5e995e2/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... |
base_path = request.get_header('X-Base-Path') | base_path = uri.Path(request.get_header('X-Base-Path')) | def __init__(self, request): self.request = request self.response = Response() | 3607004ea82fcaac87f765463271f53ae3e3c265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/3607004ea82fcaac87f765463271f53ae3e3c265/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
365,
18,
2293,
273,
590,
365,
18,
2740,
273,
2306,
1435,
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,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
365,
18,
2293,
273,
590,
365,
18,
2740,
273,
2306,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
output = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout.read() return output.strip() | try: output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] return output.strip() finally: reap_children() | def run_pydoc(module_name, *args): """ Runs pydoc on the specified module. Returns the stripped output of pydoc. """ cmd = [sys.executable, pydoc.__file__, " ".join(args), module_name] output = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout.read() return output.strip() | 8315987803ab15f3c561cdb9b07afa7bcd0aff44 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/8315987803ab15f3c561cdb9b07afa7bcd0aff44/test_pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2074,
2434,
12,
2978,
67,
529,
16,
380,
1968,
4672,
3536,
1939,
87,
2395,
2434,
603,
326,
1269,
1605,
18,
2860,
326,
13300,
876,
434,
2395,
2434,
18,
3536,
1797,
273,
306,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2074,
2434,
12,
2978,
67,
529,
16,
380,
1968,
4672,
3536,
1939,
87,
2395,
2434,
603,
326,
1269,
1605,
18,
2860,
326,
13300,
876,
434,
2395,
2434,
18,
3536,
1797,
273,
306,
94... |
if k.name == s3path_dst: | if _eq_utf8(k.name,s3path_dst): | def copy(self,src,dst,overwrite=False,chunk_size=16384): """Copy a file from 'src' to 'dst'. | 0b5d272c58e42332822190f6d93fa2968f5f91da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5579/0b5d272c58e42332822190f6d93fa2968f5f91da/s3fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4816,
16,
11057,
16,
19274,
33,
8381,
16,
6551,
67,
1467,
33,
2313,
17295,
4672,
3536,
2951,
279,
585,
628,
296,
4816,
11,
358,
296,
11057,
10332,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
16,
4816,
16,
11057,
16,
19274,
33,
8381,
16,
6551,
67,
1467,
33,
2313,
17295,
4672,
3536,
2951,
279,
585,
628,
296,
4816,
11,
358,
296,
11057,
10332,
2,
-100,
-100,
-1... |
p = _RegEnumKey(k,i) | p = RegEnumKey(k,i) | def get_devstudio_versions (): """Get list of devstudio versions from the Windows registry. Return a list of strings containing version numbers; the list will be empty if we were unable to access the registry (eg. couldn't import a registry-access module) or the appropriate registry keys weren't found.""" if not _can... | 01a95b62bc16d9fbe67a94fd58e1c238749ab403 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/01a95b62bc16d9fbe67a94fd58e1c238749ab403/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5206,
334,
4484,
67,
10169,
1832,
30,
3536,
967,
666,
434,
4461,
334,
4484,
5244,
628,
326,
8202,
4023,
18,
225,
2000,
279,
666,
434,
2064,
4191,
1177,
5600,
31,
326,
666,
903... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5206,
334,
4484,
67,
10169,
1832,
30,
3536,
967,
666,
434,
4461,
334,
4484,
5244,
628,
326,
8202,
4023,
18,
225,
2000,
279,
666,
434,
2064,
4191,
1177,
5600,
31,
326,
666,
903... |
schedId = obj['schedulerId'] if obj['schedulerId'] is None: return jobAttributes = self.schedObj.query( schedId, \ self.parameters['service'], 'node' ) for key, value in jobAttributes[schedId].iteritems() : | if not valid( obj ): raise SchedulerError('invalid object', str( obj )) jobAttributes = self.schedObj.query( obj['schedulerId'], self.parameters['service'], 'node' ) for key, value in jobAttributes[obj['schedulerId']].iteritems() : | def query(self, obj, objType='node') : """ query status and eventually other scheduler related information """ | 37c2f876cfac35d07f26047ffc4b3fc1f1b41055 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/37c2f876cfac35d07f26047ffc4b3fc1f1b41055/Scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
30078,
2218,
2159,
6134,
294,
3536,
843,
1267,
471,
18011,
1308,
8129,
3746,
1779,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
843,
12,
2890,
16,
1081,
16,
30078,
2218,
2159,
6134,
294,
3536,
843,
1267,
471,
18011,
1308,
8129,
3746,
1779,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'): | for fmt in ('B', 'H', 'I', 'L', 'Q', 'b', 'h', 'i', 'l', 'q'): | def XXXtest_1530559(self): # XXX This is broken: see the bug report # SF bug 1530559. struct.pack raises TypeError where it used to convert. for endian in ('', '>', '<'): for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'): self.check_float_coerce(endian + fmt, 1.0) self.check_float_coerce(endian + fmt, 1.5) | 3671163d064d0a027d3f172fa8572d590fefeffc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3671163d064d0a027d3f172fa8572d590fefeffc/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
3600,
5082,
2539,
29,
12,
2890,
4672,
468,
11329,
1220,
353,
12933,
30,
2621,
326,
7934,
2605,
468,
21318,
7934,
4711,
5082,
2539,
29,
18,
1958,
18,
2920,
14183,
3580,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11329,
3813,
67,
3600,
5082,
2539,
29,
12,
2890,
4672,
468,
11329,
1220,
353,
12933,
30,
2621,
326,
7934,
2605,
468,
21318,
7934,
4711,
5082,
2539,
29,
18,
1958,
18,
2920,
14183,
3580,
1... |
Run Hart's quadratic sieve and return the distinct prime factors | Run Hart's quadratic sieve and return the distinct proper factors | def qsieve(n, block=True, time=False): """ Run Hart's quadratic sieve and return the distinct prime factors of the integer n that it finds. INPUT: n -- an integer with at least 40 digits block -- (default: True) if True, you must wait until the sieve computation is complete before using SAGE further. If False, SAGE wi... | 644b5150be86509b6978df461f46a88eec2c971b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/644b5150be86509b6978df461f46a88eec2c971b/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
290,
716,
518,
13094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
290,
716,
518,
13094,
... |
self.app.iconname('Dialog') self.app.geometry("+300+200") | def createDialog(self): self.app = tk.Tk() self.app.protocol('WM_DELETE_WINDOW', self.denyWindowManagerClose) self.app.title(self.title) self.app.iconname('Dialog') self.app.geometry("+300+200") # # the main window # self.entryWidgets = [None]*len(self.options) self.labelWidgets = [None]*len(self.options) self.app.bind... | b8dc92ef8ad792606f004235722b9585e2bbe014 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/b8dc92ef8ad792606f004235722b9585e2bbe014/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6353,
12,
2890,
4672,
365,
18,
2910,
273,
13030,
18,
56,
79,
1435,
365,
18,
2910,
18,
8373,
2668,
25173,
67,
6460,
67,
23407,
2187,
365,
18,
13002,
93,
3829,
1318,
4605,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
6353,
12,
2890,
4672,
365,
18,
2910,
273,
13030,
18,
56,
79,
1435,
365,
18,
2910,
18,
8373,
2668,
25173,
67,
6460,
67,
23407,
2187,
365,
18,
13002,
93,
3829,
1318,
4605,
13,
365,
... | |
['.mov','.wmv','.mp4','.mp3','.mpg','.avi']) or | ['.mov','.wmv','.mp4','.m4v','.mp3','.mpg','.avi']) or | def processLinks(self,links, depth = 0,linkNumber = 0): maxDepth = 2 urls = links[0] links = links[1] if depth<maxDepth: for link in urls: if depth == 0: linkNumber += 1 #print "Processing %s (%d)" % (link,linkNumber) | e0b9df9a264fb6133b46584a812bee8e9e0d6287 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/e0b9df9a264fb6133b46584a812bee8e9e0d6287/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
7100,
12,
2890,
16,
7135,
16,
3598,
273,
374,
16,
1232,
1854,
273,
374,
4672,
22074,
273,
576,
6903,
273,
4716,
63,
20,
65,
4716,
273,
4716,
63,
21,
65,
309,
3598,
32,
1896,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7100,
12,
2890,
16,
7135,
16,
3598,
273,
374,
16,
1232,
1854,
273,
374,
4672,
22074,
273,
576,
6903,
273,
4716,
63,
20,
65,
4716,
273,
4716,
63,
21,
65,
309,
3598,
32,
1896,
61... |
if debug != 0: print vals | if debug != 0: print >> sys.stderr, vals | def dprint(*vals): global debug if debug != 0: print vals | 205dc77afcd0947155f1616e31da8b63c19d81a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6154/205dc77afcd0947155f1616e31da8b63c19d81a9/otl2tags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
1188,
30857,
4524,
4672,
2552,
1198,
309,
1198,
480,
374,
30,
1172,
1671,
2589,
18,
11241,
16,
5773,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
302,
1188,
30857,
4524,
4672,
2552,
1198,
309,
1198,
480,
374,
30,
1172,
1671,
2589,
18,
11241,
16,
5773,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
key = string.upper(key) | def __setitem__(self, key, item): key = string.upper(key) putenv(key, item) self.data[key] = item | 6cc104c0bf0129caba359437e946cbe2dca48dcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6cc104c0bf0129caba359437e946cbe2dca48dcb/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
761,
4672,
1378,
3074,
12,
856,
16,
761,
13,
365,
18,
892,
63,
856,
65,
273,
761,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
1726,
972,
12,
2890,
16,
498,
16,
761,
4672,
1378,
3074,
12,
856,
16,
761,
13,
365,
18,
892,
63,
856,
65,
273,
761,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
elif(attribute == 'latest'): | elif attribute == 'latest': | def getTestRun(id, attribute, form): if(attribute == 'values'): return getTestRunValues(id) elif(attribute == 'latest'): return getLatestTestRunValues(id, form) else: sql = """SELECT test_runs.*, builds.id as build_id, builds.ref_build_id as ref_build_id, builds.ref_changeset as changeset FROM test_runs INNER JOIN buil... | d68d641bc29329a4e44a020f6afe2ac195f90439 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14013/d68d641bc29329a4e44a020f6afe2ac195f90439/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29384,
1997,
12,
350,
16,
1566,
16,
646,
4672,
309,
12,
4589,
422,
296,
2372,
11,
4672,
327,
29384,
1997,
1972,
12,
350,
13,
1327,
1566,
422,
296,
13550,
4278,
327,
336,
18650,
4709,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29384,
1997,
12,
350,
16,
1566,
16,
646,
4672,
309,
12,
4589,
422,
296,
2372,
11,
4672,
327,
29384,
1997,
1972,
12,
350,
13,
1327,
1566,
422,
296,
13550,
4278,
327,
336,
18650,
4709,
1... |
if template_string in template_defaults.keys(): template_string = template_defaults[template_string] edit_template = Template(template_string) def edit(obj, bg=False, editor=None): | if not(isinstance(template_string,Template)): template_string = Template(template_string) fields = set(template_fields(template_string)) if not(fields <= set(['file','line']) and ('file' in fields)): raise ValueError, "Only ${file} and ${line} are allowed as template variables, and ${file} must occur." edit_template =... | def set_edit_template(template_string): r""" Sets default edit template string. It should reference ${file} and ${line}. This routine normally needs to be called prior to using 'edit'. However, if the editor set in the shell variable EDITOR is known, then the system will substitute an appropriate template for you. See... | 934f6f084107c1d251c5df48297db1cc748d92df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/934f6f084107c1d251c5df48297db1cc748d92df/edit_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4619,
67,
3202,
12,
3202,
67,
1080,
4672,
436,
8395,
11511,
805,
3874,
1542,
533,
18,
225,
2597,
1410,
2114,
3531,
768,
97,
471,
3531,
1369,
5496,
1220,
12245,
15849,
4260,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4619,
67,
3202,
12,
3202,
67,
1080,
4672,
436,
8395,
11511,
805,
3874,
1542,
533,
18,
225,
2597,
1410,
2114,
3531,
768,
97,
471,
3531,
1369,
5496,
1220,
12245,
15849,
4260,
358,... |
def print_report(self, cr, uid, ids, context=None): | def print_report(self, cr, uid, ids, context={}): | def print_report(self, cr, uid, ids, context=None): | 350cfd98b11acdd6ea3b80d7c6f6edb2299b4fe0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/350cfd98b11acdd6ea3b80d7c6f6edb2299b4fe0/pos_details.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
6006,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
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,
... | [
1,
1,
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,
1172,
67,
6006,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
distutils.sysconfig._config_vars['LDSHARED'] = ld.replace('gcc','g++') | link_cmds = ld.split() if gcc_exists(link_cmds[0]): link_cmds[0] = 'g++' ld = ' '.join(link_cmds) distutils.sysconfig._config_vars['LDSHARED'] = ld | def _init_posix(): old_init_posix() ld = distutils.sysconfig._config_vars['LDSHARED'] distutils.sysconfig._config_vars['LDSHARED'] = ld.replace('gcc','g++') | 525bfa8f809ecb4a14080b5a3b4b055b303b701e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/525bfa8f809ecb4a14080b5a3b4b055b303b701e/build_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
24463,
13332,
1592,
67,
2738,
67,
24463,
1435,
16916,
273,
2411,
5471,
18,
9499,
1425,
6315,
1425,
67,
4699,
3292,
12069,
8325,
5879,
3546,
1377,
1692,
67,
24680,
273,
16916... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24463,
13332,
1592,
67,
2738,
67,
24463,
1435,
16916,
273,
2411,
5471,
18,
9499,
1425,
6315,
1425,
67,
4699,
3292,
12069,
8325,
5879,
3546,
1377,
1692,
67,
24680,
273,
16916... |
args = self._LoadTestNamesFrom(pyauto_tests_file) args = args * self._options.repeat logging.debug("Loading %d tests from %s", len(args), args) loaded_tests = unittest.defaultTestLoader.loadTestsFromNames(args) return loaded_tests def _LoadTestNamesFrom(self, filename): modules= PyUITest.EvalDataFrom(filename) | args = self._ExpandTestNamesFrom(pyauto_tests_file, self._options.suite) return args def _ExpandTestNamesFrom(self, filename, suite): """Load test names from the given file. Args: filename: the file to read the tests from suite: the name of the suite to load from |filename|. Returns: a list of test names [module.tes... | def _LoadTests(self, args): """Returns a suite of tests loaded from the given args. | f46cb9be7f9b81256b5d7388b7f62184f59c54ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/f46cb9be7f9b81256b5d7388b7f62184f59c54ea/pyauto.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2563,
14650,
12,
2890,
16,
833,
4672,
3536,
1356,
279,
11371,
434,
7434,
4203,
628,
326,
864,
833,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2563,
14650,
12,
2890,
16,
833,
4672,
3536,
1356,
279,
11371,
434,
7434,
4203,
628,
326,
864,
833,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.propnames = {} self.classnames = {} self.propcodes = {} self.classcodes = {} self.compcodes = {} self.enumcodes = {} self.othersuites = [] | def __init__(self, fp, basesuite=None): self.fp = fp self.propnames = {} self.classnames = {} self.propcodes = {} self.classcodes = {} self.compcodes = {} self.enumcodes = {} self.othersuites = [] self.basesuite = basesuite | b18e37723e6f3e7fe6bae03f14e954721df23eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b18e37723e6f3e7fe6bae03f14e954721df23eaf/gensuitemodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
16,
8337,
9519,
33,
7036,
4672,
365,
18,
7944,
273,
4253,
365,
18,
18602,
9519,
273,
8337,
9519,
225,
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,
4253,
16,
8337,
9519,
33,
7036,
4672,
365,
18,
7944,
273,
4253,
365,
18,
18602,
9519,
273,
8337,
9519,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
nlp.solve(x0) | x, zl, zu, obj = nlp.solve(x0) | def apply_new(x): return True | 12984cfb6fa7e8be12f36eedcf2d84b376a0fe6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12033/12984cfb6fa7e8be12f36eedcf2d84b376a0fe6b/example.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
2704,
12,
92,
4672,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
2704,
12,
92,
4672,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if isintance(var, VarProxy): | if isinstance(var, VarProxy): | def set_default(var, value): """ Set default value for the given config variable (proxy). """ if isintance(var, VarProxy): var._item._cfg_set(value, default = True) | de426c92fa33421cd68a5ab4226b869bf8834376 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11722/de426c92fa33421cd68a5ab4226b869bf8834376/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
12,
1401,
16,
460,
4672,
3536,
1000,
805,
460,
364,
326,
864,
642,
2190,
261,
5656,
2934,
3536,
309,
1549,
12,
1401,
16,
4562,
3886,
4672,
569,
6315,
1726,
6315,
7066,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1886,
12,
1401,
16,
460,
4672,
3536,
1000,
805,
460,
364,
326,
864,
642,
2190,
261,
5656,
2934,
3536,
309,
1549,
12,
1401,
16,
4562,
3886,
4672,
569,
6315,
1726,
6315,
7066,
6... |
ar = a[45:140, 50:180]- 26000 ax1.imshow(log10(ar)) ax2.semilogx(ar[:,65], arange(len(ar[:,65]))) ax2.set_ylim([0, len(ar[:,65])]) ax2.set_ylim(ax2.get_ylim()[::-1]) ax2.set_xlim([5e2, 1e5]) ax3.semilogy(ar[47,:]) ax3.set_xlim([0, len(ar[47,:])]) ax3.set_ylim([5e2, 1e5]) | ar = a[45:140, 50:180]- 26000 ax1.imshow(log10(ar)) ax2.semilogx(ar[:,65], arange(len(ar[:,65]))) ax2.set_ylim([0, len(ar[:,65])]) ax2.set_ylim(ax2.get_ylim()[::-1]) ax2.set_xlim([5e2, 1e5]) ax3.semilogy(ar[47,:]) ax3.set_xlim([0, len(ar[47,:])]) ax3.set_ylim([5e2, 1e5]) | def _draw(): f = figure() | e3c96a8a40bc1133dc5d36153be8a61ff1575d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/e3c96a8a40bc1133dc5d36153be8a61ff1575d10/plotter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
13332,
284,
273,
7837,
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,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
13332,
284,
273,
7837,
1435,
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,
-... |
if not bingo: val = string.join(vals) | if not bingo: val = sort_pattern + " " + string.join(vals) | def sort_records(req, recIDs, sort_field='', sort_order='d', sort_pattern='', verbose=0): """Sort records in 'recIDs' list according sort field 'sort_field' in order 'sort_order'. If more than one instance of 'sort_field' is found for a given record, try to choose that that is given by 'sort pattern', for example "sort... | 0b416d1dd205d9c4ad94e91fbcaaa9e638ede5dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/0b416d1dd205d9c4ad94e91fbcaaa9e638ede5dd/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
1524,
67,
1518,
2218,
2187,
1524,
67,
1019,
2218,
72,
2187,
1524,
67,
4951,
2218,
2187,
3988,
33,
20,
4672,
3536,
4416,
3853,
316,
296,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
1524,
67,
1518,
2218,
2187,
1524,
67,
1019,
2218,
72,
2187,
1524,
67,
4951,
2218,
2187,
3988,
33,
20,
4672,
3536,
4416,
3853,
316,
296,
39... |
coinc_tables.append_coinc(process_id, node.time_slide_id, coinc_def_id, ntuple) | coinc_tables.append_coinc(process_id, node, coinc_def_id, ntuple) | def ligolw_rinca( xmldoc, process_id, EventListType, CoincTables, coinc_definer_row, event_comparefunc, thresholds, ntuple_comparefunc = lambda events, offset_vector: False, small_coincs = False, veto_segments = None, verbose = False | 33c375988e5fbb955cb57c83b181ddc3e9420c4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/33c375988e5fbb955cb57c83b181ddc3e9420c4e/ligolw_rinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
86,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
86,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,
... |
data.byteswap() | if big_endian: data.byteswap() | def writeframesraw(self, data): self._ensure_header_written(len(data)) nframes = len(data) / (self._sampwidth * self._nchannels) if self._convert: data = self._convert(data) if self._sampwidth > 1: import array data = array.array(_array_fmts[self._sampwidth], data) data.byteswap() data.tofile(self._file) self._datawrit... | 33577efee6ad54c8566f8cd66b5129fe1856c135 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/33577efee6ad54c8566f8cd66b5129fe1856c135/wave.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
10278,
1899,
12,
2890,
16,
501,
4672,
365,
6315,
15735,
67,
3374,
67,
9748,
12,
1897,
12,
892,
3719,
290,
10278,
273,
562,
12,
892,
13,
342,
261,
2890,
6315,
87,
931,
2819,
380,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10278,
1899,
12,
2890,
16,
501,
4672,
365,
6315,
15735,
67,
3374,
67,
9748,
12,
1897,
12,
892,
3719,
290,
10278,
273,
562,
12,
892,
13,
342,
261,
2890,
6315,
87,
931,
2819,
380,
... |
map = socket_map | map = self._map | def del_channel(self, map=None): fd = self._fileno if map is None: map = socket_map if map.has_key(fd): #self.log_info('closing channel %d:%s' % (fd, self)) del map[fd] | d7d53ce226231f47da1516ea2b83efce04ba0c7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d7d53ce226231f47da1516ea2b83efce04ba0c7a/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4327,
12,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
273,
365,
6315,
1458,
309,
852,
18,
5332,
67,
856,
12,
8313,
4672,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
67,
4327,
12,
2890,
16,
852,
33,
7036,
4672,
5194,
273,
365,
6315,
7540,
5764,
309,
852,
353,
599,
30,
852,
273,
365,
6315,
1458,
309,
852,
18,
5332,
67,
856,
12,
8313,
4672,
4... |
raise ValueError, _('Not an interval spec: [+-] [ '[ | raise ValueError, self._('Not an interval spec:' ' [+-] [ | def set(self, spec, allowdate=1, interval_re=re.compile(''' \s*(?P<s>[-+])? # + or - \s*((?P<y>\d+\s*)y)? # year \s*((?P<m>\d+\s*)m)? # month \s*((?P<w>\d+\s*)w)? # week \s*((?P<d>\d+\s*)d)? # day \s*(((?P<H>\d+):(?P<M>\d+))?(:(?P<S>\d+))?)? # time \s*(?P<D> (\d\d\d\d[/-])?(\d\d?)?[/-](\d\d?)? ... | 57c5533dd07b22f90fb954d2494eab65061eef34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/57c5533dd07b22f90fb954d2494eab65061eef34/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
857,
16,
1699,
712,
33,
21,
16,
3673,
67,
266,
33,
266,
18,
11100,
2668,
6309,
521,
87,
14,
3680,
52,
1,
18919,
15,
5717,
35,
540,
468,
397,
578,
300,
521,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
857,
16,
1699,
712,
33,
21,
16,
3673,
67,
266,
33,
266,
18,
11100,
2668,
6309,
521,
87,
14,
3680,
52,
1,
18919,
15,
5717,
35,
540,
468,
397,
578,
300,
521,
87,
... |
t = self.get_time() - self.t if self.dispatch[event](frame,t): self.t = self.get_time() else: self.t = self.get_time()-t | get_time = self.get_time t = get_time() - self.t if self.dispatch[event](self, frame,t): self.t = get_time() else: self.t = get_time() - t | def trace_dispatch_l(self, frame, event, arg): t = self.get_time() - self.t | bc75e8f6af740f0d3b26d6eeaa9a4428ce268142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc75e8f6af740f0d3b26d6eeaa9a4428ce268142/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
67,
10739,
67,
80,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
268,
273,
365,
18,
588,
67,
957,
1435,
300,
365,
18,
88,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2606,
67,
10739,
67,
80,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
268,
273,
365,
18,
588,
67,
957,
1435,
300,
365,
18,
88,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
</datafield> | </datafield> | def setUp(self): """Prepare some ideal outputs""" | e392a2b83cce91ef4d27622e150c5c79211c9eae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/e392a2b83cce91ef4d27622e150c5c79211c9eae/bibformat_regression_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24292,
12,
2890,
4672,
3536,
7543,
2690,
23349,
6729,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
wikipedia.output(fakedata.decode(self.site.encoding())) | def getCookie(self, api = config.use_api_login, remember=True, captcha = None): """ Login to the site. | fe2538f2b95b0327e60d625c5c352ac0d64ffb96 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/fe2538f2b95b0327e60d625c5c352ac0d64ffb96/login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24643,
12,
2890,
16,
1536,
273,
642,
18,
1202,
67,
2425,
67,
5819,
16,
11586,
33,
5510,
16,
21083,
273,
599,
4672,
3536,
11744,
358,
326,
2834,
18,
2,
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,
24643,
12,
2890,
16,
1536,
273,
642,
18,
1202,
67,
2425,
67,
5819,
16,
11586,
33,
5510,
16,
21083,
273,
599,
4672,
3536,
11744,
358,
326,
2834,
18,
2,
-100,
-100,
-100,
-100,
-100,
-10... | |
if self.browser is None: self.browser = WebBrowser(SIGNATURE, start = 1) self.browser.openfile(self.hits[i][1]) | path = self.hits[i][1] url = "file://" + "/".join(path.split(":")) webbrowser.open(url) | def listhit(self, isdbl = 1): if isdbl: for i in self.w.results.getselection(): if self.browser is None: self.browser = WebBrowser(SIGNATURE, start = 1) self.browser.openfile(self.hits[i][1]) | 098c24d1623b3e159a985711de5b9d4b7648128e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/098c24d1623b3e159a985711de5b9d4b7648128e/PyDocSearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
15989,
12,
2890,
16,
353,
1966,
80,
273,
404,
4672,
309,
353,
1966,
80,
30,
364,
277,
316,
365,
18,
91,
18,
4717,
18,
588,
10705,
13332,
309,
365,
18,
11213,
353,
599,
30,
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,
666,
15989,
12,
2890,
16,
353,
1966,
80,
273,
404,
4672,
309,
353,
1966,
80,
30,
364,
277,
316,
365,
18,
91,
18,
4717,
18,
588,
10705,
13332,
309,
365,
18,
11213,
353,
599,
30,
365,
... |
logger.Error("Can't change syncer rate: %s " % result.fail_reason) | logger.Error("Can't change syncer rate: %s - %s" % (result.fail_reason, result.output)) | def SetSyncSpeed(self, kbytes): """Set the speed of the DRBD syncer. | 6c896e2ffcdf4889279d9b6607e23d61bab96bc4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/6c896e2ffcdf4889279d9b6607e23d61bab96bc4/bdev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4047,
16562,
12,
2890,
16,
417,
3890,
4672,
3536,
694,
326,
8632,
434,
326,
16801,
18096,
3792,
264,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4047,
16562,
12,
2890,
16,
417,
3890,
4672,
3536,
694,
326,
8632,
434,
326,
16801,
18096,
3792,
264,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
html.write("<td colspan=%d>" % colspan) | html.write("<td>") | def show_painter_options(painter_options, colspan): html.write('<tr class=form id=painter_options style="display: none">') html.write("<td colspan=%d>" % colspan) html.begin_form("painteroptions") html.write("<div class=whiteborder>\n") html.write("<table class=form>\n") for on in painter_options: opt = multisite_pain... | 5988dc68b2c4439ac451c483e6643ca4800ad36f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/5988dc68b2c4439ac451c483e6643ca4800ad36f/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
84,
11606,
67,
2116,
12,
84,
11606,
67,
2116,
16,
20856,
4672,
1729,
18,
2626,
2668,
32,
313,
667,
33,
687,
612,
33,
84,
11606,
67,
2116,
2154,
1546,
5417,
30,
6555,
7918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
84,
11606,
67,
2116,
12,
84,
11606,
67,
2116,
16,
20856,
4672,
1729,
18,
2626,
2668,
32,
313,
667,
33,
687,
612,
33,
84,
11606,
67,
2116,
2154,
1546,
5417,
30,
6555,
7918,
... |
elif resp == gtk.RESPONSE_NO: return False else: return True | elif resp == gtk.RESPONSE_NO: FileSelector.rescan(fs) else: nb.grab_focus() return True | def __pre_selection_changed(self, view, event): if self.__save: resp = qltk.CancelRevertSave(self).run() if resp == gtk.RESPONSE_YES: self.__save.clicked() elif resp == gtk.RESPONSE_NO: return False else: return True # cancel or closed | be0506067aa91b17bf184969b2a12bc38b5f72ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/be0506067aa91b17bf184969b2a12bc38b5f72ed/exfalsowindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1484,
67,
10705,
67,
6703,
12,
2890,
16,
1476,
16,
871,
4672,
309,
365,
16186,
5688,
30,
1718,
273,
1043,
5618,
79,
18,
6691,
426,
1097,
4755,
12,
2890,
2934,
2681,
1435,
309,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1484,
67,
10705,
67,
6703,
12,
2890,
16,
1476,
16,
871,
4672,
309,
365,
16186,
5688,
30,
1718,
273,
1043,
5618,
79,
18,
6691,
426,
1097,
4755,
12,
2890,
2934,
2681,
1435,
309,
17... |
raise Errors.YumBaseError("Error: " + e.message) | if sys.hexversion < 0x02050000: if hasattr(e,'message'): raise Errors.YumBaseError("Error: " + str(e.message)) else: raise Errors.YumBaseError("Error: " + str(e)) raise Errors.YumBaseError("Error: " + str(e)) | def _getsysver(installroot, distroverpkg): '''Calculate the release version for the system. @param installroot: The value of the installroot option. @param distroverpkg: The value of the distroverpkg option. @return: The release version as a string (eg. '4' for FC4) ''' ts = rpmUtils.transaction.initReadOnlyTransactio... | 705ae2132f469037b9a77459aeab18a23fc08dd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/705ae2132f469037b9a77459aeab18a23fc08dd1/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9499,
502,
12,
5425,
3085,
16,
27450,
502,
10657,
4672,
9163,
8695,
326,
3992,
1177,
364,
326,
2619,
18,
225,
632,
891,
3799,
3085,
30,
1021,
460,
434,
326,
3799,
3085,
1456,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
9499,
502,
12,
5425,
3085,
16,
27450,
502,
10657,
4672,
9163,
8695,
326,
3992,
1177,
364,
326,
2619,
18,
225,
632,
891,
3799,
3085,
30,
1021,
460,
434,
326,
3799,
3085,
1456,
... |
""" <directives namespace="http://namespaces.zope.org/zope"> <directive name="permission" attributes="id title description" handler=" zope.app.security.metaconfigure.definePermission" /> </directives> | ''' <include package="zope.app.security" file="meta.zcml" /> | def testProtectedNamedViewPageViews(self): self.assertEqual(queryView(ob, 'test', request), None) | 1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
15933,
7604,
1767,
1964,
9959,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1767,
12,
947,
16,
296,
3813,
2187,
590,
3631,
599,
13,
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,
1842,
15933,
7604,
1767,
1964,
9959,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1767,
12,
947,
16,
296,
3813,
2187,
590,
3631,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.respond("500 Unrecognized command.") | self.respond("501 Unrecognized command.") | def ftp_HELP(self, line): """Return help text to the client.""" | bc6e6f5a24c367c3544c75d935b0eb4264088117 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/bc6e6f5a24c367c3544c75d935b0eb4264088117/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
27396,
12,
2890,
16,
980,
4672,
3536,
990,
2809,
977,
358,
326,
1004,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
13487,
67,
27396,
12,
2890,
16,
980,
4672,
3536,
990,
2809,
977,
358,
326,
1004,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
DEBUG_ORIENTATION = True | def modify(self, group, ladderEndAxisAtom, numberOfBasePairs, basesPerTurn, duplexRise, endPoint1, endPoint2 ): """ AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-24. NEED CLEANUP , LOTS OF DOCUMENTATION AND RENAMING. """ self.assy = group.assy assy = group.assy #Make sure to clea... | c4a8d077f70d55111f7a19ce7efa485e92728f66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/c4a8d077f70d55111f7a19ce7efa485e92728f66/DnaDuplex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
12,
2890,
16,
1041,
16,
328,
361,
765,
1638,
6558,
3641,
16,
7922,
2171,
10409,
16,
8337,
2173,
15858,
16,
302,
2268,
92,
54,
784,
16,
19849,
21,
16,
19849,
22,
262,
30,
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,
5612,
12,
2890,
16,
1041,
16,
328,
361,
765,
1638,
6558,
3641,
16,
7922,
2171,
10409,
16,
8337,
2173,
15858,
16,
302,
2268,
92,
54,
784,
16,
19849,
21,
16,
19849,
22,
262,
30,
3536,
... | |
(rc,u) = semanage_user_create(self.sh) | (rc, u) = semanage_user_create(self.sh) | def __add(self, name, roles, selevel, serange, prefix): if is_mls_enabled == 1: if serange == "": serange = "s0" else: serange = untranslate(serange) if selevel == "": selevel = "s0" else: selevel = untranslate(selevel) if len(roles) < 1: raise ValueError(_("You must add at least one role for %s") % name) (rc,k) = s... | 8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
12,
2890,
16,
508,
16,
4900,
16,
357,
73,
941,
16,
703,
726,
16,
1633,
4672,
309,
353,
67,
781,
87,
67,
5745,
422,
404,
30,
309,
703,
726,
422,
1408,
30,
703,
726,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
12,
2890,
16,
508,
16,
4900,
16,
357,
73,
941,
16,
703,
726,
16,
1633,
4672,
309,
353,
67,
781,
87,
67,
5745,
422,
404,
30,
309,
703,
726,
422,
1408,
30,
703,
726,
273,... |
pass | """ Handle the POST method. Send the head and the file. But ignore the POST params. Use the bistreams for a better analysis. """ x = self.send_head() if x : self.copyfile(x) | def handle_POST(self): pass | 6503db549e45c7b35361eac9e4aa36af968eb65e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/6503db549e45c7b35361eac9e4aa36af968eb65e/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3798,
12,
2890,
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,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3798,
12,
2890,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
else: self.parse(connection.getfile().readlines()) | _debug("allow all") elif self.errcode == 200 and lines: _debug("parse lines") self.parse(lines) | def read(self): import httplib tries = 0 while tries<5: connection = httplib.HTTP(self.host) connection.putrequest("GET", self.path) connection.putheader("Host", self.host) connection.endheaders() status, text, mime = connection.getreply() if status in [301,302] and mime: tries = tries + 1 newurl = mime.get("Location",... | a4da0263739b0f1a95d34e7acaf3e6b7a1a0fd5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a4da0263739b0f1a95d34e7acaf3e6b7a1a0fd5e/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
4672,
1930,
15851,
6673,
9327,
273,
374,
1323,
9327,
32,
25,
30,
1459,
273,
15851,
6673,
18,
3693,
12,
2890,
18,
2564,
13,
1459,
18,
458,
2293,
2932,
3264,
3113,
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,
855,
12,
2890,
4672,
1930,
15851,
6673,
9327,
273,
374,
1323,
9327,
32,
25,
30,
1459,
273,
15851,
6673,
18,
3693,
12,
2890,
18,
2564,
13,
1459,
18,
458,
2293,
2932,
3264,
3113,
365,
18... |
def visit_admonition(self, node, name): | def visit_admonition(self, node, name=''): | def visit_admonition(self, node, name): self.body.append('\\begin{center}\\begin{sffamily}\n') self.body.append('\\fbox{\\parbox{\\admonitionwidth}{\n') self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); self.body.append('\\vspace{2mm}\n') | 8b5bf758f1bc30137cc4e548f5fd8e129819b722 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/8b5bf758f1bc30137cc4e548f5fd8e129819b722/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
2218,
11,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
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,
3757,
67,
361,
2586,
608,
12,
2890,
16,
756,
16,
508,
2218,
11,
4672,
365,
18,
3432,
18,
6923,
2668,
1695,
10086,
95,
5693,
97,
1695,
10086,
95,
87,
1403,
3954,
6280,
82,
6134,
365,
... |
gLogger.verbose("ReplicaManager.__initializeReplication: Determining whether source Storage Element is sane.") | gLogger.verbose( "ReplicaManager.__initializeReplication: Determining whether source Storage Element is sane." ) | def __initializeReplication(self,lfn,sourceSE,destSE): ########################################################### # Check that the destination storage element is sane and resolve its name gLogger.verbose("ReplicaManager.__initializeReplication: Verifying destination Storage Element validity (%s)." % destSE) destStorag... | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11160,
8309,
12,
2890,
16,
80,
4293,
16,
3168,
1090,
16,
10488,
1090,
4672,
19709,
5516,
3228,
1189,
468,
2073,
716,
326,
2929,
2502,
930,
353,
30426,
471,
2245,
2097,
508,
314,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11160,
8309,
12,
2890,
16,
80,
4293,
16,
3168,
1090,
16,
10488,
1090,
4672,
19709,
5516,
3228,
1189,
468,
2073,
716,
326,
2929,
2502,
930,
353,
30426,
471,
2245,
2097,
508,
314,
33... |
"""Extract the doctest examples from a docstring. | """Extract the test sources from a doctest test docstring as a script | def testsource(module, name): """Extract the doctest examples from a docstring. Provide the module (or dotted name of the module) containing the tests to be extracted, and the name (within the module) of the object with the docstring containing the tests to be extracted. The doctest examples are returned as a string ... | a6afa35755a4baa401905be750203fee48f42bb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a6afa35755a4baa401905be750203fee48f42bb3/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3168,
12,
2978,
16,
508,
4672,
3536,
4976,
326,
1842,
5550,
628,
279,
31263,
395,
1842,
14525,
487,
279,
2728,
225,
26569,
326,
1605,
261,
280,
20965,
508,
434,
326,
1605,
13,
4191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3168,
12,
2978,
16,
508,
4672,
3536,
4976,
326,
1842,
5550,
628,
279,
31263,
395,
1842,
14525,
487,
279,
2728,
225,
26569,
326,
1605,
261,
280,
20965,
508,
434,
326,
1605,
13,
4191... |
self.text.insert(mark, str(s), tags) | self.text.insert(mark, s, tags) | def write(self, s, tags=(), mark="insert"): self.text.insert(mark, str(s), tags) self.text.see(mark) self.text.update() | 7f4d1fe69940ee2edc0aa012cf68ab325ba8f4d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7f4d1fe69940ee2edc0aa012cf68ab325ba8f4d6/OutputWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
272,
16,
2342,
33,
9334,
2267,
1546,
6387,
6,
4672,
365,
18,
955,
18,
6387,
12,
3355,
16,
272,
16,
2342,
13,
365,
18,
955,
18,
5946,
12,
3355,
13,
365,
18,
955,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
12,
2890,
16,
272,
16,
2342,
33,
9334,
2267,
1546,
6387,
6,
4672,
365,
18,
955,
18,
6387,
12,
3355,
16,
272,
16,
2342,
13,
365,
18,
955,
18,
5946,
12,
3355,
13,
365,
18,
955,... |
self.tk.call(self._w, 'popup') | self.tk.call(self._w, 'popup') | def popup(self): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10431,
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,
10431,
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,
... |
msg = IncomingMessage(connection=message.conection, text=message.text, | msg = IncomingMessage(connection=message.connection, text=message.text, | def handle(self, message): # make and save messages on their way in and # cast backend as string so pysqlite doesnt complain msg = IncomingMessage(connection=message.conection, text=message.text, received=message.received) msg.save() self.debug(msg) | be79714148dda55b351e22e36df490ea50e946e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/be79714148dda55b351e22e36df490ea50e946e6/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
883,
4672,
468,
1221,
471,
1923,
2743,
603,
3675,
4031,
316,
471,
468,
4812,
4221,
487,
533,
1427,
293,
5308,
1137,
31272,
532,
7446,
1234,
273,
26437,
1079,
12,
4071... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
16,
883,
4672,
468,
1221,
471,
1923,
2743,
603,
3675,
4031,
316,
471,
468,
4812,
4221,
487,
533,
1427,
293,
5308,
1137,
31272,
532,
7446,
1234,
273,
26437,
1079,
12,
4071... |
ParserElement.exprArgCache.clear() | ParserElement.resetCache() | def parseString( self, instring ): """Execute the parse expression with the given string. This is the main interface to the client code, once the complete expression has been built. """ ParserElement.exprArgCache.clear() if not self.streamlined: self.streamline() self.saveAsList = True for e in self.ignoreExprs: e.stre... | cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23659,
12,
365,
16,
316,
1080,
262,
30,
3536,
5289,
326,
1109,
2652,
598,
326,
864,
533,
18,
1220,
353,
326,
2774,
1560,
358,
326,
1004,
981,
16,
3647,
326,
3912,
2652,
711,
2118,
6650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23659,
12,
365,
16,
316,
1080,
262,
30,
3536,
5289,
326,
1109,
2652,
598,
326,
864,
533,
18,
1220,
353,
326,
2774,
1560,
358,
326,
1004,
981,
16,
3647,
326,
3912,
2652,
711,
2118,
6650... |
def DelStrucMember(id, member_offset): | def DelStrucMember(sid, member_offset): | def DelStrucMember(id, member_offset): """ Delete structure member @param id: structure type ID @param member_offset: offset of the member @return: != 0 - ok. @note: IDA allows 'holes' between members of a structure. It treats these 'holes' as unnamed arrays of bytes. """ s = idaapi.get_struc(id) if not s: return 0 ... | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
4419,
12,
7453,
16,
3140,
67,
3348,
4672,
3536,
2504,
3695,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
225,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6603,
1585,
5286,
4419,
12,
7453,
16,
3140,
67,
3348,
4672,
3536,
2504,
3695,
3140,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
225,
63... |
self.log.debug("self.jobDB.setJobAttribute(%s,'MinorStatus','%s',update=True)" %(job,minorstatus)) | self.log.verbose("self.jobDB.setJobAttribute(%s,'MinorStatus','%s',update=True)" %(job,minorstatus)) | def updateJobStatus(self,job,status,minorstatus=None): """This method updates the job status in the JobDB, this should only be used to fail jobs due to the optimizer chain. """ self.log.debug("self.jobDB.setJobAttribute(%s,'Status','%s',update=True)" %(job,status)) if self.enable: result = self.jobDB.setJobAttribute(jo... | 8dc7639e7c774fafc62439e538b06f48265c0f07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/8dc7639e7c774fafc62439e538b06f48265c0f07/Optimizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23422,
12,
2890,
16,
4688,
16,
2327,
16,
17364,
2327,
33,
7036,
4672,
3536,
2503,
707,
4533,
326,
1719,
1267,
316,
326,
3956,
2290,
16,
333,
1410,
1338,
506,
1399,
358,
2321,
6550,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23422,
12,
2890,
16,
4688,
16,
2327,
16,
17364,
2327,
33,
7036,
4672,
3536,
2503,
707,
4533,
326,
1719,
1267,
316,
326,
3956,
2290,
16,
333,
1410,
1338,
506,
1399,
358,
2321,
6550,... |
def GetPositionFromLine(line): | def GetPositionFromLine(self, line): | def GetPositionFromLine(line): return self.XYToPosition(0,line) | b6176ab7222945e5a5e113c60b7280d3214c106e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b6176ab7222945e5a5e113c60b7280d3214c106e/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2555,
1265,
1670,
12,
2890,
16,
980,
4672,
327,
365,
18,
8546,
774,
2555,
12,
20,
16,
1369,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2555,
1265,
1670,
12,
2890,
16,
980,
4672,
327,
365,
18,
8546,
774,
2555,
12,
20,
16,
1369,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def removeRelation(self, node, next, quiet=0): | def removeRelation(self, node, next): | def removeRelation(self, node, next, quiet=0): """Drop the "RpmPackage node requires RpmPackage next" arc.""" #if not quiet: # txt = "Removing" # if self[node].pre[next]: # txt = "Zapping" # print "%s requires for %s from %s" % \ # (txt, next.getNEVRA(), node.getNEVRA())) del s... | e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
3963,
12,
2890,
16,
756,
16,
1024,
4672,
3536,
7544,
326,
315,
54,
7755,
2261,
756,
4991,
534,
7755,
2261,
1024,
6,
8028,
12123,
468,
430,
486,
10902,
30,
468,
565,
6463,
273,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
3963,
12,
2890,
16,
756,
16,
1024,
4672,
3536,
7544,
326,
315,
54,
7755,
2261,
756,
4991,
534,
7755,
2261,
1024,
6,
8028,
12123,
468,
430,
486,
10902,
30,
468,
565,
6463,
273,
31... |
(self.name,self.unit) | (self.name,self.unit)) | def rfc2426(self): return rfc2425encode("org","%s;%s" % (self.name,self.unit) | 9f926fea99081b163ba5fe9e0140265ee4648f78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/9f926fea99081b163ba5fe9e0140265ee4648f78/vcard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16590,
3247,
5558,
12,
2890,
4672,
327,
16590,
3247,
2947,
3015,
2932,
3341,
15937,
9,
87,
31,
9,
87,
6,
738,
261,
2890,
18,
529,
16,
2890,
18,
4873,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16590,
3247,
5558,
12,
2890,
4672,
327,
16590,
3247,
2947,
3015,
2932,
3341,
15937,
9,
87,
31,
9,
87,
6,
738,
261,
2890,
18,
529,
16,
2890,
18,
4873,
13,
2,
-100,
-100,
-100,
-100,
-... |
try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e try: unicode('\xff') except Exception, e: sampleUnicodeDecodeError = e | def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e | ecab623e1315cd0cfbe01e046e618001fe315490 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ecab623e1315cd0cfbe01e046e618001fe315490/test_exceptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
... | |
def __init__(self, root, flist, stack=None): self.top = top = ListedToplevel(root) top.protocol("WM_DELETE_WINDOW", self.close) top.bind("<Key-Escape>", self.close) top.wm_title("Stack viewer") top.wm_iconname("Stack") self.helplabel = Label(top, text="Click once to view variables; twice for source", borderwidth=2, re... | def __init__(self, flist=None): self.flist = flist self.stack = get_stack() self.text = get_exception() | def __init__(self, root, flist, stack=None): self.top = top = ListedToplevel(root) top.protocol("WM_DELETE_WINDOW", self.close) top.bind("<Key-Escape>", self.close) top.wm_title("Stack viewer") top.wm_iconname("Stack") # Create help label self.helplabel = Label(top, text="Click once to view variables; twice for source"... | db595cd40700f5e452c6e43b4a4422365567aba7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/db595cd40700f5e452c6e43b4a4422365567aba7/StackViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1365,
16,
284,
1098,
16,
2110,
33,
7036,
4672,
365,
18,
3669,
273,
1760,
273,
987,
329,
3401,
2815,
12,
3085,
13,
1760,
18,
8373,
2932,
25173,
67,
6460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1365,
16,
284,
1098,
16,
2110,
33,
7036,
4672,
365,
18,
3669,
273,
1760,
273,
987,
329,
3401,
2815,
12,
3085,
13,
1760,
18,
8373,
2932,
25173,
67,
6460,
... |
print 'no cumplioooo: ',no_cump | def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p... | 62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
... | |
re.MULTILINE, *flags), | re.MULTILINE | flags), | sage: 'divisors' in _search_src_or_doc('src', '^ *def prime', interact=False) | 2d8dd972b7654687a2e8843501b1e511c530c8b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2d8dd972b7654687a2e8843501b1e511c530c8b7/sagedoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
296,
2892,
291,
1383,
11,
316,
389,
3072,
67,
4816,
67,
280,
67,
2434,
2668,
4816,
2187,
10731,
380,
536,
17014,
2187,
16592,
33,
8381,
13,
2,
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,
272,
410,
30,
296,
2892,
291,
1383,
11,
316,
389,
3072,
67,
4816,
67,
280,
67,
2434,
2668,
4816,
2187,
10731,
380,
536,
17014,
2187,
16592,
33,
8381,
13,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
print " --installer (build an installer)" | def usage(problem): if (problem): print "" print problem print "" print "Makepanda generates a 'built' subdirectory containing a" print "compiled copy of Panda3D. Command-line arguments are:" print "" print " --help (print the help message you're reading now)" print " --target T (target can be 'all... | 3d5b46ad500e2dbc723fa06bcfdce3d29083b6c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/3d5b46ad500e2dbc723fa06bcfdce3d29083b6c0/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
18968,
4672,
309,
261,
18968,
4672,
1172,
1408,
1172,
6199,
1172,
1408,
1172,
315,
49,
581,
881,
464,
69,
6026,
279,
296,
12406,
11,
29869,
4191,
279,
6,
1172,
315,
19397,
1610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
18968,
4672,
309,
261,
18968,
4672,
1172,
1408,
1172,
6199,
1172,
1408,
1172,
315,
49,
581,
881,
464,
69,
6026,
279,
296,
12406,
11,
29869,
4191,
279,
6,
1172,
315,
19397,
1610... | |
date,c = getdate(DATEmOBS) | date,c = getdate(DATEmOBS, yearguess) | def parseheader(h=None,comments=None): """ parseheader returns lists of all values in each category (all dates, all ras, etc). Each list is composed of tuples, being (value, field, confidence), where value is the number, field is a string containing the name of the FITS header field it was derived from, and confidence ... | 77dc1cebf1577c1346bade46be0e5544c237788a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8228/77dc1cebf1577c1346bade46be0e5544c237788a/parseing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3374,
12,
76,
33,
7036,
16,
9231,
33,
7036,
4672,
3536,
1109,
3374,
1135,
6035,
434,
777,
924,
316,
1517,
3150,
261,
454,
7811,
16,
777,
18306,
16,
5527,
2934,
8315,
666,
353,
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,
1109,
3374,
12,
76,
33,
7036,
16,
9231,
33,
7036,
4672,
3536,
1109,
3374,
1135,
6035,
434,
777,
924,
316,
1517,
3150,
261,
454,
7811,
16,
777,
18306,
16,
5527,
2934,
8315,
666,
353,
18... |
def has_level(self, level): | def has_level(self, level, name=None): | def has_level(self, level): if name == None: name=self.name if self.log.get_level(name) <= level: return True else: return False | 9c55e315b14a1985e6388e465b8905e8a3ae14a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/9c55e315b14a1985e6388e465b8905e8a3ae14a6/logger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2815,
12,
2890,
16,
1801,
16,
508,
33,
7036,
4672,
309,
508,
422,
599,
30,
508,
33,
2890,
18,
529,
309,
365,
18,
1330,
18,
588,
67,
2815,
12,
529,
13,
1648,
1801,
30,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2815,
12,
2890,
16,
1801,
16,
508,
33,
7036,
4672,
309,
508,
422,
599,
30,
508,
33,
2890,
18,
529,
309,
365,
18,
1330,
18,
588,
67,
2815,
12,
529,
13,
1648,
1801,
30,
327,... |
if binary_re.search(line): print_debug("%s: appears to be binary" % fullpath) | if has_correct_encoding(line1+line2+rest, "ascii"): | def looks_like_python(fullpath): infile = _open(fullpath) if infile is None: return False line = infile.readline() infile.close() if binary_re.search(line): # file appears to be binary print_debug("%s: appears to be binary" % fullpath) return False if fullpath.endswith(".py") or fullpath.endswith(".pyw"): return Tru... | 220fd0f750c3a47b29c6af7bff82ddb95c23cba0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/220fd0f750c3a47b29c6af7bff82ddb95c23cba0/findnocoding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10192,
67,
5625,
67,
8103,
12,
2854,
803,
4672,
14568,
273,
389,
3190,
12,
2854,
803,
13,
309,
14568,
353,
599,
30,
327,
1083,
225,
980,
273,
14568,
18,
896,
1369,
1435,
14568,
18,
441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10192,
67,
5625,
67,
8103,
12,
2854,
803,
4672,
14568,
273,
389,
3190,
12,
2854,
803,
13,
309,
14568,
353,
599,
30,
327,
1083,
225,
980,
273,
14568,
18,
896,
1369,
1435,
14568,
18,
441... |
thread = threading.Thread(target=self.connect2, args=(blocking, force_connection)) | thread = threading.Thread(target=self._connect, args=(blocking, force_connection)) | def connect(self, blocking=False, force_connection=False): if blocking: self.connect2(blocking, force_connection) else: thread = threading.Thread(target=self.connect2, args=(blocking, force_connection)) thread.setDaemon(True) thread.start() | d9f94ae44e704d6986404a96af8786c6246b4182 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/d9f94ae44e704d6986404a96af8786c6246b4182/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
9445,
33,
8381,
16,
2944,
67,
4071,
33,
8381,
4672,
309,
9445,
30,
365,
18,
3612,
22,
12,
18926,
16,
2944,
67,
4071,
13,
469,
30,
2650,
273,
17254,
18,
3830,
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,
3077,
12,
2890,
16,
9445,
33,
8381,
16,
2944,
67,
4071,
33,
8381,
4672,
309,
9445,
30,
365,
18,
3612,
22,
12,
18926,
16,
2944,
67,
4071,
13,
469,
30,
2650,
273,
17254,
18,
3830,
12,
... |
cr.execute('CREATE DATABASE ' + db_name + ' ENCODING \'unicode\'') | cr.execute('CREATE DATABASE "%s" ENCODING \'unicode\'' % db_name) | def restore(self, password, db_name, data): security.check_super(password) logger = netsvc.Logger() | 9e72676066e05fe2cfe4b12a3d52a2f16401b361 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/9e72676066e05fe2cfe4b12a3d52a2f16401b361/web_services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
2201,
16,
1319,
67,
529,
16,
501,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
21954,
4227,
18,
3328,
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,
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,
5217,
12,
2890,
16,
2201,
16,
1319,
67,
529,
16,
501,
4672,
4373,
18,
1893,
67,
9565,
12,
3664,
13,
1194,
273,
21954,
4227,
18,
3328,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return self.db().db.sqlite_last_insert_rowid() | return self.db().get_last_id(c, 'ticket') | def addTicket(self, id, time, changetime, component, severity, priority, owner, reporter, cc, version, milestone, status, resolution, summary, description, keywords): c = self.db().cursor() desc = description.encode('utf-8') if PREFORMAT_COMMENTS: desc = '{{{\n%s\n}}}' % desc | 63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
12,
2890,
16,
612,
16,
813,
16,
9435,
2374,
16,
1794,
16,
11426,
16,
4394,
16,
3410,
16,
11528,
16,
4946,
16,
1177,
16,
28664,
16,
1267,
16,
7861,
16,
4916,
16,
2477,
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,
527,
13614,
12,
2890,
16,
612,
16,
813,
16,
9435,
2374,
16,
1794,
16,
11426,
16,
4394,
16,
3410,
16,
11528,
16,
4946,
16,
1177,
16,
28664,
16,
1267,
16,
7861,
16,
4916,
16,
2477,
16,... |
self._haveTweakedColumnWidths = initialMode == "list" | def __init__(self, posSize, initialMode="cell", listColumnDescriptions=None, listShowColumnTitles=False, cellRepresentationName="defconAppKitGlyphCell", glyphDetailWindowClass=GlyphInformationPopUpWindow, selectionCallback=None, doubleClickCallback=None, deleteCallback=None, editCallback=None, enableDelete=False, selfW... | 4b5c548ae1f4073b9586c0d7f60282837cb5dbfa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8848/4b5c548ae1f4073b9586c0d7f60282837cb5dbfa/glyphCollectionView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
949,
1225,
16,
2172,
2309,
1546,
3855,
3113,
666,
1494,
16844,
33,
7036,
16,
666,
5706,
1494,
25088,
33,
8381,
16,
2484,
13742,
461,
1546,
536,
591,
3371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
949,
1225,
16,
2172,
2309,
1546,
3855,
3113,
666,
1494,
16844,
33,
7036,
16,
666,
5706,
1494,
25088,
33,
8381,
16,
2484,
13742,
461,
1546,
536,
591,
3371,
... | |
help="video sink is SINK", | help=_("video sink is SINK"), | def main(): progName = os.path.basename(sys.argv[0]) # Parse the commandline. optParser = OptionParser() optParser.set_usage('Usage: %prog [options]') optParser.set_description("Seamless: A DVD player based on GStreamer") optParser.add_option("--fullscreen", dest="fullScreen", action="store_true", help="start in full ... | ef3bafb96a42e71f4f732479cdddd028ff8a7b51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/ef3bafb96a42e71f4f732479cdddd028ff8a7b51/seamless.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
11243,
461,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
225,
468,
2884,
326,
28305,
18,
2153,
2678,
273,
18862,
1435,
2153,
2678,
18,
542,
67,
9167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11243,
461,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
225,
468,
2884,
326,
28305,
18,
2153,
2678,
273,
18862,
1435,
2153,
2678,
18,
542,
67,
9167,
... |
label = infos[1] position = infos[2].split('.')[0] duration = infos[3].split('.')[0] | label = infos[1] position = infos[2].split('.')[0] duration = infos[3].split('.')[0] if self.server != None: | def event(self,line): infos = line.split('|')[1:] log.debug(infos) if infos[0] == 'playing': transport_state = 'PLAYING' if infos[0] == 'stopped': transport_state = 'STOPPED' if infos[0] == 'paused': transport_state = 'PAUSED_PLAYBACK' if self.server != None: connection_id = self.server.connection_manager_server.lookup... | 1fc2dc582e79ef3b43f34189c6f0c25aa59f2a50 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/1fc2dc582e79ef3b43f34189c6f0c25aa59f2a50/buzztard_control.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
12,
2890,
16,
1369,
4672,
10626,
273,
980,
18,
4939,
2668,
96,
6134,
63,
21,
26894,
613,
18,
4148,
12,
18227,
13,
309,
10626,
63,
20,
65,
422,
296,
1601,
310,
4278,
4736,
67,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
12,
2890,
16,
1369,
4672,
10626,
273,
980,
18,
4939,
2668,
96,
6134,
63,
21,
26894,
613,
18,
4148,
12,
18227,
13,
309,
10626,
63,
20,
65,
422,
296,
1601,
310,
4278,
4736,
67,
20... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.