rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
g.plot(graph.data.points(errorLineUpperPoints, title=None, x=1, y=2), [graph.style.line([style.linewidth.Thin, style.linestyle.dashed])]) | g.plot(graph.data.points(errorLineUpperPoints, title=None, x=1, y=2), [graph.style.line([style.linewidth.Thin, style.linestyle.dashed])]) | def scatter_plot(group_info,scatter_info,data_set): #data_set is a dictionary keyed by quantity containing lists of groups and X and Y data points. #print "Group Info:", group_info for quantity_number in scatter_info: #print "Dataset for quantity number "+str(quantity_number)+": ", data_set[quantity_number] if data_s... | ad91d4eb3f67d10bfa5d623cd1280d36462603e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12/ad91d4eb3f67d10bfa5d623cd1280d36462603e1/Validation_Data_Processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14644,
67,
4032,
12,
1655,
67,
1376,
16,
31320,
67,
1376,
16,
892,
67,
542,
4672,
468,
892,
67,
542,
353,
279,
3880,
17408,
635,
10457,
4191,
6035,
434,
3252,
471,
1139,
471,
1624,
501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14644,
67,
4032,
12,
1655,
67,
1376,
16,
31320,
67,
1376,
16,
892,
67,
542,
4672,
468,
892,
67,
542,
353,
279,
3880,
17408,
635,
10457,
4191,
6035,
434,
3252,
471,
1139,
471,
1624,
501... |
sage: rubik.solve(state) 'R*U' You can also check this using \code{word_problem} method (eg, G = rubik.group(); | If you type next rubik.solve(state) and wait a long time, SAGE will return the correct answer, 'R*U'. You can also check this another (but similar) way using the \code{word_problem} method (eg, G = rubik.group(); | def solve(self,state): r""" Solves the cube in the \code{state}, given as a dictionary as in \code{legal}. This uses GAP's \code{EpimorphismFromFreeGroup} and \code{PreImagesRepresentative}. | 6c64bbb889edc2e535aeb4c0f8b5b0c4b1d42d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6c64bbb889edc2e535aeb4c0f8b5b0c4b1d42d95/cubegroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
12,
2890,
16,
2019,
4672,
436,
8395,
348,
355,
3324,
326,
18324,
316,
326,
521,
710,
95,
2019,
5779,
864,
487,
279,
3880,
487,
316,
521,
710,
95,
2013,
5496,
225,
1220,
4692,
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,
12439,
12,
2890,
16,
2019,
4672,
436,
8395,
348,
355,
3324,
326,
18324,
316,
326,
521,
710,
95,
2019,
5779,
864,
487,
279,
3880,
487,
316,
521,
710,
95,
2013,
5496,
225,
1220,
4692,
61... |
if stripped_line and stripped_line[0] == ' | if stripped_line.startswith(' | def handle_encoding_declaration(contents, out): """Find a Python encoding declaration in the first line of contents. If found, output it to out and return contents without first line, else output a default utf-8 declaration and return contents. EXAMPLE: sage: from sage.misc.interpreter import handle_encoding_declarati... | 75bf14ab6395d41308a9944f8f0b0975fe3624c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/75bf14ab6395d41308a9944f8f0b0975fe3624c4/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... |
line = self.file.readline() | line = self.readline() | def _get_line(self): | ed860500914c98bc53bdadf292c180ffad9bec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed860500914c98bc53bdadf292c180ffad9bec09/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1369,
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,... | [
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,
588,
67,
1369,
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,... |
self.currentWindow = modeinst.activate(self.sidebarWin) | self.currentWindow = modeinst.activate(self.sidebarWin) | def setVisualizationMode(self, mode, reload = 0): """ Created: 23.05.2005, KP Description: Set the mode of visualization """ #oldmode = self.mode if self.mode == mode: Logging.info("Mode %s already selected" % mode, kw = "visualizer") if self.dataUnit and self.currMode.dataUnit != self.dataUnit: Logging.info("Re - sett... | 228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
25780,
1588,
2309,
12,
2890,
16,
1965,
16,
7749,
273,
374,
4672,
3536,
12953,
30,
10213,
18,
6260,
18,
6976,
25,
16,
1475,
52,
6507,
30,
1000,
326,
1965,
434,
30056,
3536,
468,
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,
444,
25780,
1588,
2309,
12,
2890,
16,
1965,
16,
7749,
273,
374,
4672,
3536,
12953,
30,
10213,
18,
6260,
18,
6976,
25,
16,
1475,
52,
6507,
30,
1000,
326,
1965,
434,
30056,
3536,
468,
16... |
if cmd_options.branch != config['sourceRepoName']: log.error("branch passed in does not match release_configs") success = False | def verify_options(cmd_options, config): """Check release_configs against command-line opts""" success = True if cmd_options.branch != config['sourceRepoName']: log.error("branch passed in does not match release_configs") success = False if cmd_options.version != config['version']: log.error("version passed in does not... | 0b8ea6f347cbcfbf55c314ff79396c9e91635fc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/0b8ea6f347cbcfbf55c314ff79396c9e91635fc8/release_sanity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
2116,
12,
4172,
67,
2116,
16,
642,
4672,
3536,
1564,
3992,
67,
10955,
5314,
1296,
17,
1369,
1500,
8395,
2216,
273,
1053,
309,
1797,
67,
2116,
18,
1589,
480,
642,
3292,
1589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
67,
2116,
12,
4172,
67,
2116,
16,
642,
4672,
3536,
1564,
3992,
67,
10955,
5314,
1296,
17,
1369,
1500,
8395,
2216,
273,
1053,
309,
1797,
67,
2116,
18,
1589,
480,
642,
3292,
1589,
... | |
self.start(None, (None, lambda: getBitmap(node), | self.start(None, (lambda: getBitmap(node), | def setNullBitmap(): node.setBitmap(None) | eb4515615150d8812e14ef406923f8b910328e5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/eb4515615150d8812e14ef406923f8b910328e5d/ImageTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2041,
12224,
13332,
756,
18,
542,
12224,
12,
7036,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
2041,
12224,
13332,
756,
18,
542,
12224,
12,
7036,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.add_text('\n') | def depart_bullet_list(self, node): self.list_stack.pop() self.add_text('\n') | 5d96b2fca5272e18a020af9d7b6aa61d1e9e1eb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/5d96b2fca5272e18a020af9d7b6aa61d1e9e1eb0/rst_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
70,
19994,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
1098,
67,
3772,
18,
5120,
1435,
365,
18,
1289,
67,
955,
2668,
64,
82,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
70,
19994,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
1098,
67,
3772,
18,
5120,
1435,
365,
18,
1289,
67,
955,
2668,
64,
82,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
treeId = self.containment.treeItems[''] | treeId = self.containment.treeItems[''] | def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """ | 746f53548fb8bb54a235b1bfa31a4bdb769818e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/746f53548fb8bb54a235b1bfa31a4bdb769818e8/Inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
921,
12,
2890,
16,
1161,
82,
16,
2027,
382,
22928,
475,
273,
638,
4672,
3536,
6766,
392,
733,
316,
326,
22700,
635,
3650,
1776,
326,
1272,
4689,
18,
1220,
707,
353,
2566,
628,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2027,
921,
12,
2890,
16,
1161,
82,
16,
2027,
382,
22928,
475,
273,
638,
4672,
3536,
6766,
392,
733,
316,
326,
22700,
635,
3650,
1776,
326,
1272,
4689,
18,
1220,
707,
353,
2566,
628,
32... |
Abelian group on 2 generators (x, y) with invariants [2, 3] | AbelianGroup( 2, [2, 3]) | def kernel(self): """ Only works for finite groups. | cf74f75fce4c65cd0f60360850276283df96fdba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/cf74f75fce4c65cd0f60360850276283df96fdba/abelian_group_morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5536,
12,
2890,
4672,
3536,
5098,
6330,
364,
25922,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5536,
12,
2890,
4672,
3536,
5098,
6330,
364,
25922,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
variable_init = EQUAL + Optional( QuotedString(quoteChar="\"", escChar='\\') ^ integer ^ identifier) | variable_init = EQUAL + Optional( QuotedString(quoteChar="\"", escChar='\\') ^ integer ^ floatnumber ^ fully_qualified_identifier) | def getMetaData(s,l,t): meta = ASMetaTag(t.name) for att in t.attributes: if att.key == "": meta.addParam(att.value) else: meta.addParam(att.value,att.key) return meta | 977ba618732a36c027a6f53d26c86a40da63238e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/977ba618732a36c027a6f53d26c86a40da63238e/asGrammar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23028,
12,
87,
16,
80,
16,
88,
4672,
2191,
273,
5355,
2781,
1805,
12,
88,
18,
529,
13,
225,
364,
2403,
316,
268,
18,
4350,
30,
309,
2403,
18,
856,
422,
1408,
30,
2191,
18,
1289,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23028,
12,
87,
16,
80,
16,
88,
4672,
2191,
273,
5355,
2781,
1805,
12,
88,
18,
529,
13,
225,
364,
2403,
316,
268,
18,
4350,
30,
309,
2403,
18,
856,
422,
1408,
30,
2191,
18,
1289,
78... |
if self._peek('START_DIRECTIVE', 'END', 'LITERAL_DOLLAR_SIGN', 'SPACE', 'NEWLINE', 'START_PLACEHOLDER', 'END_DIRECTIVE', "' | if self._peek('START_DIRECTIVE', 'END', 'LITERAL_DOLLAR_SIGN', 'LITERAL_FOWARD_SLASH', 'SPACE', 'NEWLINE', 'START_PLACEHOLDER', 'END_DIRECTIVE', "' | def block(self, start=False): _token_ = self._peek('LITERAL_DOLLAR_SIGN', 'START_DIRECTIVE', 'SPACE', 'NEWLINE', 'START_PLACEHOLDER', 'TEXT') if _token_ == 'LITERAL_DOLLAR_SIGN': LITERAL_DOLLAR_SIGN = self._scan('LITERAL_DOLLAR_SIGN') return TextNode(LITERAL_DOLLAR_SIGN) elif _token_ == 'START_DIRECTIVE': directive = s... | 9deb9fa6d2d20c20af52d535e3f6984d94eca8ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4381/9deb9fa6d2d20c20af52d535e3f6984d94eca8ac/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
12,
2890,
16,
787,
33,
8381,
4672,
389,
2316,
67,
273,
365,
6315,
347,
3839,
2668,
23225,
67,
40,
30922,
985,
67,
11260,
2187,
296,
7570,
67,
17541,
5354,
2187,
296,
6616,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
12,
2890,
16,
787,
33,
8381,
4672,
389,
2316,
67,
273,
365,
6315,
347,
3839,
2668,
23225,
67,
40,
30922,
985,
67,
11260,
2187,
296,
7570,
67,
17541,
5354,
2187,
296,
6616,
2187,
... |
if run_script(command, self.chroot) != 0: | status = run_script(command, self.chroot) if status != 0: | def assemble(self): command = "%s --assemble '%s'" % (RAID.prog, self.device) + \ " %s" % (" ".join(self.devices)) if run_script(command, self.chroot) != 0: log.error("mdadm failed on '%s' with error code %d", self.name, status) return 1 self.active = True | 1fd4a8a98da6eb8ec9d7a8f7113c4ccb5a4d30af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/1fd4a8a98da6eb8ec9d7a8f7113c4ccb5a4d30af/raid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
12,
2890,
4672,
1296,
273,
2213,
87,
1493,
29676,
1995,
87,
4970,
738,
261,
2849,
734,
18,
14654,
16,
365,
18,
5964,
13,
397,
521,
315,
738,
87,
6,
738,
7566,
3552,
5701,
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,
19540,
12,
2890,
4672,
1296,
273,
2213,
87,
1493,
29676,
1995,
87,
4970,
738,
261,
2849,
734,
18,
14654,
16,
365,
18,
5964,
13,
397,
521,
315,
738,
87,
6,
738,
7566,
3552,
5701,
12,
... |
self.plugin.do_edit('getbufferlist') | def file_save(self, mi=None, fname=None): if self.new: return self.file_saveas() | 74eeade9d8647e73bd8dc7d1b60b7b5a56718258 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/74eeade9d8647e73bd8dc7d1b60b7b5a56718258/edit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
5688,
12,
2890,
16,
12837,
33,
7036,
16,
5299,
33,
7036,
4672,
309,
365,
18,
2704,
30,
327,
365,
18,
768,
67,
5688,
345,
1435,
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,
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,
585,
67,
5688,
12,
2890,
16,
12837,
33,
7036,
16,
5299,
33,
7036,
4672,
309,
365,
18,
2704,
30,
327,
365,
18,
768,
67,
5688,
345,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self.zoomSlider.set_range(5, 100.0) | self.zoomSlider.set_range(self.ZOOM_MIN_SCALE, self.ZOOM_MAX_SCALE) | def __init__(self, project, mainview, mixView=None, small=False): """ Creates a new instance of RecordingView. Parameters: project -- the currently active Project. mainview -- the main Jokosher window (MainApp). mixView -- the CompactMixView object that holds this instance of RecordingView, if the mixing view is the c... | f58dd3d0635ca876488ab6655c668ee4ecee89b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/f58dd3d0635ca876488ab6655c668ee4ecee89b1/RecordingView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1984,
16,
2774,
1945,
16,
6843,
1767,
33,
7036,
16,
5264,
33,
8381,
4672,
3536,
10210,
279,
394,
791,
434,
868,
4643,
1767,
18,
225,
7012,
30,
1984,
1493... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1984,
16,
2774,
1945,
16,
6843,
1767,
33,
7036,
16,
5264,
33,
8381,
4672,
3536,
10210,
279,
394,
791,
434,
868,
4643,
1767,
18,
225,
7012,
30,
1984,
1493... |
return InstallTools.installComponent( componentType, system, component, gConfig.getValue( '/DIRAC/Extensions', [] ) ) | return InstallTools.installComponent( componentType, system, component, getCSExtensions() ) | def export_installComponent( self, componentType, system, component ): """ Install runit directory for the specified component """ return InstallTools.installComponent( componentType, system, component, gConfig.getValue( '/DIRAC/Extensions', [] ) ) | 1a39061cbe8c426f97cd62e1939b4621f5328450 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/1a39061cbe8c426f97cd62e1939b4621f5328450/SystemAdministratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5425,
1841,
12,
365,
16,
20065,
16,
2619,
16,
1794,
262,
30,
3536,
10284,
1086,
305,
1867,
364,
326,
1269,
1794,
3536,
327,
10284,
10348,
18,
5425,
1841,
12,
20065,
16,
2619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5425,
1841,
12,
365,
16,
20065,
16,
2619,
16,
1794,
262,
30,
3536,
10284,
1086,
305,
1867,
364,
326,
1269,
1794,
3536,
327,
10284,
10348,
18,
5425,
1841,
12,
20065,
16,
2619,
... |
sub_ids = tools.flatten(((oid, context[self.CONCURRENCY_CHECK_FIELD][key(oid)]) for oid in ids[i:i+cr.IN_MAX] | sub_ids = tools.flatten(((oid, context[self.CONCURRENCY_CHECK_FIELD][key(oid)]) for oid in ids[i:i+cr.IN_MAX] | def key(oid): return "%s,%s" % (self._name, oid) | 7be108055fda24b959962bb36c42047d8f007240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/7be108055fda24b959962bb36c42047d8f007240/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
12,
839,
4672,
327,
2213,
87,
15529,
87,
6,
738,
261,
2890,
6315,
529,
16,
7764,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
12,
839,
4672,
327,
2213,
87,
15529,
87,
6,
738,
261,
2890,
6315,
529,
16,
7764,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Solver = Amesos.Dscpack(Problem); | Solver = Amesos.Dscpack(Problem) | def main(): Comm = Epetra.PyComm(); args = sys.argv[1:] if len(args) == 0: Type = "Amesos_Lapack" else: Type = args[0]; NumGlobalRows = 10; Map = Epetra.Map(NumGlobalRows, 0, Comm); LHS_exact = Epetra.MultiVector(Map, 1); LHS = Epetra.MultiVector(Map, 1); RHS = Epetra.MultiVector(Map, 1); Matrix = Epetra.CrsMatrix(Ep... | b0de99b594baede77af9aff7c1b994a5d198a226 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/b0de99b594baede77af9aff7c1b994a5d198a226/exSolvers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
5621,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
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,
2774,
13332,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
5621,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
67,... |
import from mx.ODBC.DB2 import SQL | else: | def destroy_thread_storage(): del _tss | cc2f860a94940119ddd586a77a0b81d2fd978799 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/cc2f860a94940119ddd586a77a0b81d2fd978799/ldbd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
67,
5930,
67,
5697,
13332,
1464,
389,
88,
1049,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
67,
5930,
67,
5697,
13332,
1464,
389,
88,
1049,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if evcode==0: | if evcode == FSPY: | def tractorbeam(): # tractor beaming cases merge here yank = math.sqrt(yank) announce() game.optime = (10.0/(7.5*7.5))*yank # 7.5 is yank rate (warp 7.5) skip(1) proutn("***") crmshp() prout(_(" caught in long range tractor beam--")) # If Kirk & Co. screwing around on planet, handle atover(True) # atover(true) is Grab ... | ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/ad7e6b2e5d6f82e729fafaf4752f0fd8fed97fc3/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1284,
30206,
27385,
13332,
468,
1284,
30206,
506,
7772,
6088,
2691,
2674,
677,
2304,
273,
4233,
18,
24492,
12,
93,
2304,
13,
14281,
1435,
7920,
18,
3838,
494,
273,
261,
2163,
18,
20,
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,
1284,
30206,
27385,
13332,
468,
1284,
30206,
506,
7772,
6088,
2691,
2674,
677,
2304,
273,
4233,
18,
24492,
12,
93,
2304,
13,
14281,
1435,
7920,
18,
3838,
494,
273,
261,
2163,
18,
20,
19,... |
extraWhitespace = re.compile(r'((^ +|\s+$)|(\s$| +\t))') | extraWhitespace = re.compile(r'(\s+$| +\t)') | def highlightregion(value, r): if r == None: return escape(value) else: prev = 0 s = "" for i, j in r: s += "%s<span class=\"hl\">%s</span>" % \ (escape(value[prev:i]), escape(value[i:j])) prev = j s += escape(value[prev:]) return s | 48e92571d9a447a40d78115f48076333c7d13356 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/48e92571d9a447a40d78115f48076333c7d13356/difftags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
6858,
12,
1132,
16,
436,
4672,
309,
436,
422,
599,
30,
327,
4114,
12,
1132,
13,
469,
30,
2807,
273,
374,
272,
273,
1408,
225,
364,
277,
16,
525,
316,
436,
30,
272,
1011,
2213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
6858,
12,
1132,
16,
436,
4672,
309,
436,
422,
599,
30,
327,
4114,
12,
1132,
13,
469,
30,
2807,
273,
374,
272,
273,
1408,
225,
364,
277,
16,
525,
316,
436,
30,
272,
1011,
2213,
... |
if field.multiValued and \ not emptyReturnsMarker and result is empty_marker: | if field.required and field.multiValued and \ not emptyReturnsMarker and result == ([''], {}): | def process_form(self, instance, field, form, empty_marker=None, emptyReturnsMarker=False, validating=True): """Basic impl for form processing in a widget""" result = super(ReferenceBrowserWidget, self).process_form(instance, field, form, empty_marker, emptyReturnsMarker, validating) # when removing all items from a re... | fd6aa4415cd7cee0963c33560914cd5bc653d377 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12240/fd6aa4415cd7cee0963c33560914cd5bc653d377/widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
687,
12,
2890,
16,
791,
16,
652,
16,
646,
16,
1008,
67,
11145,
33,
7036,
16,
1008,
1356,
7078,
33,
8381,
16,
18075,
33,
5510,
4672,
3536,
8252,
9380,
364,
646,
4929,
316,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
687,
12,
2890,
16,
791,
16,
652,
16,
646,
16,
1008,
67,
11145,
33,
7036,
16,
1008,
1356,
7078,
33,
8381,
16,
18075,
33,
5510,
4672,
3536,
8252,
9380,
364,
646,
4929,
316,
2... |
diff_result = remote.get_diff(rp.remote_name, remote_rev, None) is_remote_conflict = diff_result["conflict"] assert diff_result["diffversion"] == 1 diff = diff_result["diff"] current_remote_rev = diff_result["current"] | if remote_rev != rp.remote_rev: diff_result = remote.get_diff(rp.remote_name, remote_rev, None) is_remote_conflict = diff_result["conflict"] assert diff_result["diffversion"] == 1 diff = diff_result["diff"] current_remote_rev = diff_result["current"] else: current_remote_rev = remote_rev is_remote_conflict = wikiutil.c... | def sync(self, params, local, remote): """ This method does the syncronisation work. """ _ = self.request.getText | 94784e50eb7cbc70be741849745ee1e7e36d0354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/94784e50eb7cbc70be741849745ee1e7e36d0354/SyncPages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
16,
859,
16,
1191,
16,
2632,
4672,
3536,
1220,
707,
1552,
326,
3792,
1949,
10742,
1440,
18,
3536,
389,
273,
365,
18,
2293,
18,
588,
1528,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
12,
2890,
16,
859,
16,
1191,
16,
2632,
4672,
3536,
1220,
707,
1552,
326,
3792,
1949,
10742,
1440,
18,
3536,
389,
273,
365,
18,
2293,
18,
588,
1528,
2,
-100,
-100,
-100,
-100,
-10... |
contained in the group""" | contained in the group. You can also use 'sprite in group' or 'subgroup in group'.""" | def has(self, *sprites): """has(sprite or group, ...) ask if group has a sprite or sprites | 5e438eaa0c9fbb23611d40b6e7a14b3a6cc01923 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/5e438eaa0c9fbb23611d40b6e7a14b3a6cc01923/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
12,
2890,
16,
380,
1752,
24047,
4672,
3536,
5332,
12,
1752,
796,
578,
1041,
16,
1372,
13,
6827,
309,
1041,
711,
279,
16839,
578,
1694,
24047,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
12,
2890,
16,
380,
1752,
24047,
4672,
3536,
5332,
12,
1752,
796,
578,
1041,
16,
1372,
13,
6827,
309,
1041,
711,
279,
16839,
578,
1694,
24047,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if residues_written: | if chain_residues_written: | def save(self, filename, select=Select()): """ select --- selects which entities will be written. Should have the following methods: accept_model(model) accept_chain(chain) accept_residue(residue) accept_atom(atom) These methods should return 1 if the entity is to be written out, 0 otherwise. """ get_atom_line=self._ge... | cbfc9733ec491f1b5470a8e7d1768d23c199d531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/cbfc9733ec491f1b5470a8e7d1768d23c199d531/PDBIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
16,
2027,
33,
3391,
1435,
4672,
3536,
2027,
9948,
19770,
1492,
5140,
903,
506,
5941,
18,
9363,
1240,
326,
3751,
2590,
30,
2791,
67,
2284,
12,
2284,
13,
2791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
1544,
16,
2027,
33,
3391,
1435,
4672,
3536,
2027,
9948,
19770,
1492,
5140,
903,
506,
5941,
18,
9363,
1240,
326,
3751,
2590,
30,
2791,
67,
2284,
12,
2284,
13,
2791,
... |
self.icm = None | def cb(): icm = self.icm self.icm = None if icm.node_ipps: self.startNodeSync(icm.node_ipps) else: reason = icm.getFailReason() | be29718e8b7f692ea81b297f40cb7f698b199d3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12372/be29718e8b7f692ea81b297f40cb7f698b199d3f/dtella_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
13332,
277,
7670,
273,
365,
18,
335,
81,
225,
309,
277,
7670,
18,
2159,
67,
625,
1121,
30,
365,
18,
1937,
907,
4047,
12,
335,
81,
18,
2159,
67,
625,
1121,
13,
469,
30,
3971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2875,
13332,
277,
7670,
273,
365,
18,
335,
81,
225,
309,
277,
7670,
18,
2159,
67,
625,
1121,
30,
365,
18,
1937,
907,
4047,
12,
335,
81,
18,
2159,
67,
625,
1121,
13,
469,
30,
3971,
... | |
for minor in self.minors: | for minor in self.wrapper.minors: | def setViewer(self, viewcls): self.cubeview = viewcls(self.cube, self.classprefs.display_rgb) self.cubeview.loadBands() for minor in self.minors: if hasattr(minor, 'proxies'): plotproxy = minor.proxies[0] plotproxy.setupAxes() | fc0337c7387e45340d8995d3d90699a741acb037 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/fc0337c7387e45340d8995d3d90699a741acb037/hsi_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
18415,
12,
2890,
16,
1476,
6429,
4672,
365,
18,
21186,
1945,
273,
1476,
6429,
12,
2890,
18,
21186,
16,
365,
18,
1106,
1484,
2556,
18,
5417,
67,
10948,
13,
365,
18,
21186,
1945,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
18415,
12,
2890,
16,
1476,
6429,
4672,
365,
18,
21186,
1945,
273,
1476,
6429,
12,
2890,
18,
21186,
16,
365,
18,
1106,
1484,
2556,
18,
5417,
67,
10948,
13,
365,
18,
21186,
1945,
18... |
generic_target.__init__(self,spec,addlargs) | self.required_values=["boot"] generic_stage_target.__init__(self,spec,addlargs) | def __init__(self,spec,addlargs): generic_target.__init__(self,spec,addlargs) | b5e4984613eaedce63a30d41538acb40e915690b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/b5e4984613eaedce63a30d41538acb40e915690b/targets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
5210,
67,
3299,
16186,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
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,
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,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
5210,
67,
3299,
16186,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return Dec_n1 | return _Dec_n1 | def compare_total(self, other): """Compares self to other using the abstract representations. | c5de0969ca2a82c66efd30bb675f03c2324a3b27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/c5de0969ca2a82c66efd30bb675f03c2324a3b27/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.slideshow_controls_visible = False | self.slideshow_controls_visible = False | def __init__(self): | a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
index = text.indexOf(expression, index + length) | index = expression.indexIn(text, index + length) | def highlightRules(self, text, start, finish): for expression, format in self.rules: index = text.indexOf(expression, start) while index >= start and index < finish: length = expression.matchedLength() self.setFormat(index, min(length, finish - index), format) index = text.indexOf(expression, index + length) | e560257b096b7f18ae7cbecc0966da656987a5ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3910/e560257b096b7f18ae7cbecc0966da656987a5ed/highlighter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
4478,
12,
2890,
16,
977,
16,
787,
16,
4076,
4672,
225,
364,
2652,
16,
740,
316,
365,
18,
7482,
30,
225,
770,
273,
977,
18,
31806,
12,
8692,
16,
787,
13,
1323,
770,
1545,
787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
4478,
12,
2890,
16,
977,
16,
787,
16,
4076,
4672,
225,
364,
2652,
16,
740,
316,
365,
18,
7482,
30,
225,
770,
273,
977,
18,
31806,
12,
8692,
16,
787,
13,
1323,
770,
1545,
787,
... |
def replace_text(self, placeholder, new_value): self.message_lines = map(lambda line: line.replace(placeholder, new_value), self.message_lines) | def replace_text(self, placeholder, new_value): self.message_lines = map(lambda line: line.replace(placeholder, new_value), self.message_lines) | 30f0b38c3cf88026d652f293a0cdd85809b6db76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/30f0b38c3cf88026d652f293a0cdd85809b6db76/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
955,
12,
2890,
16,
6695,
16,
394,
67,
1132,
4672,
365,
18,
2150,
67,
3548,
273,
852,
12,
14661,
980,
30,
980,
18,
2079,
12,
12988,
16,
394,
67,
1132,
3631,
365,
18,
2150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
955,
12,
2890,
16,
6695,
16,
394,
67,
1132,
4672,
365,
18,
2150,
67,
3548,
273,
852,
12,
14661,
980,
30,
980,
18,
2079,
12,
12988,
16,
394,
67,
1132,
3631,
365,
18,
2150,
... | |
def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, -1, title, size = (800, 600), style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE) | def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size = (950, 750), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) self.loaded = False | def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, -1, title, size = (800, 600), style=wx.DEFAULT_FRAME_STYLE|wx.NO_FULL_REPAINT_ON_RESIZE) | 08ecc92023f15aaa5695a616f9712c980650c7c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/08ecc92023f15aaa5695a616f9712c980650c7c7/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
963,
273,
261,
17374,
16,
14707,
3631,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
612,
16,
2077,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
963,
273,
261,
17374,
16,
14707,
3631,
21... |
return http.Response(stream="saved") | return HTMLResponse(stream="saved") | def render(self, ctx): self.worksheet.revert_to_last_saved_state() self.worksheet.quit() return http.Response(stream="saved") | 2c1a5997a8830efcfb475993e5f1efb45ed121ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2c1a5997a8830efcfb475993e5f1efb45ed121ea/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
266,
1097,
67,
869,
67,
2722,
67,
14077,
67,
2019,
1435,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
365,
18,
1252,
8118,
18,
266,
1097,
67,
869,
67,
2722,
67,
14077,
67,
2019,
1435,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
... |
latex_writer.write(latex_target) | try: latex_writer.write(latex_target) except IOError, e: log.error(e) log.end_progress() log.start_progress() log.end_progress() return | def write_latex(docindex, options): # If latex is an intermediate target, then use a temporary # directory for its files. if 'latex' in options.actions: latex_target = options.target['latex'] else: latex_target = tempfile.mkdtemp() log.start_progress('Writing LaTeX docs') # Choose a pdfdriver if we're generating pdf ... | e7993c1263226ecaf6eee3c8bab6e8900367fcda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11420/e7993c1263226ecaf6eee3c8bab6e8900367fcda/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
26264,
12,
2434,
1615,
16,
702,
4672,
468,
971,
25079,
353,
392,
12110,
1018,
16,
1508,
999,
279,
6269,
468,
1867,
364,
2097,
1390,
18,
309,
296,
26264,
11,
316,
702,
18,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
26264,
12,
2434,
1615,
16,
702,
4672,
468,
971,
25079,
353,
392,
12110,
1018,
16,
1508,
999,
279,
6269,
468,
1867,
364,
2097,
1390,
18,
309,
296,
26264,
11,
316,
702,
18,
490... |
except ValueError: print "Cannot extract T13." | except ValueError: print "Cannot extract T13:\n ", rec, file_name return [] | def extract_tls_parameters(remark_3_records): | c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
17116,
67,
3977,
12,
2764,
1313,
67,
23,
67,
7094,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
items[0] = newitem | l.ll_setitem_fast(0, newitem) | def ll_prepend(l, newitem): length = l.length _ll_list_resize_ge(l, length+1) items = l.items dst = length while dst > 0: src = dst - 1 items[dst] = items[src] dst = src items[0] = newitem | afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
23100,
12,
80,
16,
394,
1726,
4672,
769,
273,
328,
18,
2469,
389,
2906,
67,
1098,
67,
15169,
67,
908,
12,
80,
16,
769,
15,
21,
13,
1516,
273,
328,
18,
3319,
3046,
273,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6579,
67,
23100,
12,
80,
16,
394,
1726,
4672,
769,
273,
328,
18,
2469,
389,
2906,
67,
1098,
67,
15169,
67,
908,
12,
80,
16,
769,
15,
21,
13,
1516,
273,
328,
18,
3319,
3046,
273,
76... |
outfile = open(path, "w") | outfile = open(path, "w", encoding=encoding) | def write_results_file(self, path, lines, lnotab, lines_hit): """Return a coverage results file in path.""" | 64bc3b28a321b6026488f689fb125f31766d9730 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/64bc3b28a321b6026488f689fb125f31766d9730/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
-100,
-100,
-100,
-100,
-100,
... |
logger.info("volume display changed to %s", str(args[0])) | logger.debug("volume display changed to %s", str(args[0])) | def volume_change(self, *args, **kargs): for i in self.tb_list: logger.info("volume display changed to %s", str(args[0])) i.edje_get().signal_emit(str(args[0]), "profile-change") | 44d639a0c231baaba7f1a6cc1e2fd7a7625c911d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/44d639a0c231baaba7f1a6cc1e2fd7a7625c911d/paroli-launcher2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3940,
67,
3427,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
364,
277,
316,
365,
18,
18587,
67,
1098,
30,
1194,
18,
4148,
2932,
9491,
2562,
3550,
358,
738,
87,
3113,
609,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3940,
67,
3427,
12,
2890,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
364,
277,
316,
365,
18,
18587,
67,
1098,
30,
1194,
18,
4148,
2932,
9491,
2562,
3550,
358,
738,
87,
3113,
609,
12,
1... |
"""Test that the default resolver will not get called when a more specific resolver is registered.""" | def test_xmlschema_resolvers_noroot(self): """Test that the default resolver will not get called when a more specific resolver is registered.""" | 4d3e251bdbfd7b2f4817fd9a91558bbe2c884aef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13107/4d3e251bdbfd7b2f4817fd9a91558bbe2c884aef/test_xmlschema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2902,
4821,
67,
7818,
2496,
67,
29561,
1632,
12,
2890,
4672,
3536,
4709,
716,
326,
805,
5039,
903,
486,
336,
2566,
1347,
279,
1898,
2923,
5039,
353,
4104,
12123,
2,
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,
1842,
67,
2902,
4821,
67,
7818,
2496,
67,
29561,
1632,
12,
2890,
4672,
3536,
4709,
716,
326,
805,
5039,
903,
486,
336,
2566,
1347,
279,
1898,
2923,
5039,
353,
4104,
12123,
2,
-100,
-100,... | |
def _getTextRange(self,start,end): text=self.obj.excelCellObject.Text return text[start:end] | def _getFormatFieldAndOffsets(self,offset,formatConfig,calculateOffsets=True): formatField=textInfos.FormatField() fontObj=self.obj.excelCellObject.font if formatConfig['reportFontName']: formatField['font-name']=fontObj.name if formatConfig['reportFontSize']: formatField['font-size']=str(fontObj.size) if formatConfig[... | d3695d67ac89ea810f9403552a30a111d24c68f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/d3695d67ac89ea810f9403552a30a111d24c68f4/excel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1630,
974,
1876,
13830,
12,
2890,
16,
3348,
16,
2139,
809,
16,
11162,
13830,
33,
5510,
4672,
740,
974,
33,
955,
7655,
18,
1630,
974,
1435,
3512,
2675,
33,
2890,
18,
2603,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1630,
974,
1876,
13830,
12,
2890,
16,
3348,
16,
2139,
809,
16,
11162,
13830,
33,
5510,
4672,
740,
974,
33,
955,
7655,
18,
1630,
974,
1435,
3512,
2675,
33,
2890,
18,
2603,
18,... | |
assert(oldOverlap != newOverlap) if oldOverlap is None: | if oldOverlap == newOverlap: origByDefault = self.includeTroveByDefault(name, oldInfo[0], oldInfo[1]) if byDefault == origByDefault: keepPrimary = False else: keepSecondary = False elif oldOverlap is None: | def applyJob(jobSet, skipNotByDefault = False): for (name, (oldVersion, oldFlavor), (newVersion, newFlavor), byDef) in jobSet: if oldVersion is not None: self.delTrove(name, oldVersion, oldFlavor, byDef) if newVersion is not None and \ (oldVersion or not skipNotByDefault or byDef): self.addTrove(name, newVersion, newFl... | 624f31b9d25e336f107394dfd4e3ca0011c8226b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/624f31b9d25e336f107394dfd4e3ca0011c8226b/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2278,
12,
4688,
694,
16,
2488,
1248,
858,
1868,
273,
1083,
4672,
364,
261,
529,
16,
261,
1673,
1444,
16,
1592,
2340,
9444,
3631,
261,
2704,
1444,
16,
394,
2340,
9444,
3631,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
2278,
12,
4688,
694,
16,
2488,
1248,
858,
1868,
273,
1083,
4672,
364,
261,
529,
16,
261,
1673,
1444,
16,
1592,
2340,
9444,
3631,
261,
2704,
1444,
16,
394,
2340,
9444,
3631,
635,
... |
elif item.pixels_normalized.x > self.label['right'] and item.pixels_normalized.y > self.label['top']: | if item.pixels_normalized.x > self.label['right'] and item.pixels_normalized.y > self.label['top']: | def Interpreter(self, msg): rospy.loginfo("[%s] Read a message from Detector" %(self.node_name)) if self.active: if self.setIntersectionType: self.hasObservedSignals = True | 3f0dac3f7c4ad704825dbccc66c163a7044e5144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1128/3f0dac3f7c4ad704825dbccc66c163a7044e5144/LED_interpreter_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
11599,
12,
2890,
16,
1234,
4672,
721,
30884,
18,
1330,
1376,
2932,
14451,
87,
65,
2720,
279,
883,
628,
22198,
6,
8975,
2890,
18,
2159,
67,
529,
3719,
309,
365,
18,
3535,
30,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5294,
11599,
12,
2890,
16,
1234,
4672,
721,
30884,
18,
1330,
1376,
2932,
14451,
87,
65,
2720,
279,
883,
628,
22198,
6,
8975,
2890,
18,
2159,
67,
529,
3719,
309,
365,
18,
3535,
30,
309,... |
options.build_data = os.path.join('src', 'build-data') | options.base_dir = os.path.dirname(argv[0]) options.src_dir = os.path.join(options.base_dir, 'src') options.build_data = os.path.join(options.src_dir, 'build-data') | def main(argv = None): if argv is None: argv = sys.argv (options, args) = process_command_line(argv[1:]) if args != []: raise Exception('Unhandled option(s) ' + ' '.join(args)) options.build_data = os.path.join('src', 'build-data') options.makefile_dir = os.path.join(options.build_data, 'makefile') (modules, archinf... | 3f69be0f28cb3de76d887d05bdca1699e472bb8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9556/3f69be0f28cb3de76d887d05bdca1699e472bb8c/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
261,
2116,
16,
833,
13,
273,
1207,
67,
3076,
67,
1369,
12,
19485,
63,
21,
30,
5717,
309,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
261,
2116,
16,
833,
13,
273,
1207,
67,
3076,
67,
1369,
12,
19485,
63,
21,
30,
5717,
309,
83... |
if not mainFrame.IsShown(): | if createDialog and not mainFrame.IsShown(): | def primeReminderTimer(self, createDialog=False): """ Prime the reminder timer and maybe show or hide the dialog """ mainFrame = wx.GetApp().mainFrame if not mainFrame.IsShown(): # The main window isn't up yet; this happens on Mac when # Chandler is started with a reminder already due. Wait a couple # of seconds and tr... | 511d62d732c42692cbc6554fb7c22cdbfe2686d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/511d62d732c42692cbc6554fb7c22cdbfe2686d2/ControlBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17014,
1933,
14055,
6777,
12,
2890,
16,
752,
6353,
33,
8381,
4672,
3536,
2301,
494,
326,
849,
14055,
5441,
471,
6944,
2405,
578,
6853,
326,
6176,
3536,
2774,
3219,
273,
7075,
18,
967,
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,
17014,
1933,
14055,
6777,
12,
2890,
16,
752,
6353,
33,
8381,
4672,
3536,
2301,
494,
326,
849,
14055,
5441,
471,
6944,
2405,
578,
6853,
326,
6176,
3536,
2774,
3219,
273,
7075,
18,
967,
33... |
print "This is a known!" | def setup_files(dir_name, gps_start_time, gps_end_time): # Filter out the ones that are outside our time range xml_files = segmentdb_utils.get_all_files_in_range(dir_name, gps_start_time, gps_end_time) print "Yes: ", xml_files # TODO: This should have a better name that includes the # start and end times temp_db ... | 2c33a72b7e8791fa95798458e381c1308cbebeee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/2c33a72b7e8791fa95798458e381c1308cbebeee/ligolw_glitch_page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2354,
12,
1214,
67,
529,
16,
20985,
67,
1937,
67,
957,
16,
20985,
67,
409,
67,
957,
4672,
468,
4008,
596,
326,
5945,
716,
854,
8220,
3134,
813,
1048,
2025,
67,
2354,
225,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2354,
12,
1214,
67,
529,
16,
20985,
67,
1937,
67,
957,
16,
20985,
67,
409,
67,
957,
4672,
468,
4008,
596,
326,
5945,
716,
854,
8220,
3134,
813,
1048,
2025,
67,
2354,
225,
2... | |
f.write(opts_and_words('feeds2disk', feeds2disk, feed_titles)) | f.write(opts_and_words('web2disk', web2disk, feed_titles)) | def setup_completion(fatal_errors): try: print 'Setting up bash completion...', sys.stdout.flush() from calibre.ebooks.metadata.cli import option_parser as metaop, filetypes as meta_filetypes from calibre.ebooks.lrf.lrfparser import option_parser as lrf2lrsop from calibre.gui2.lrf_renderer.main import option_parser as ... | a68d4899ddc9d4e7b67c70c489d5054eabead963 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/a68d4899ddc9d4e7b67c70c489d5054eabead963/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
11469,
12,
30709,
67,
4324,
4672,
775,
30,
1172,
296,
5568,
731,
24817,
8364,
7821,
16,
2589,
18,
10283,
18,
11330,
1435,
628,
26139,
266,
18,
73,
12567,
18,
4165,
18,
4857,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
11469,
12,
30709,
67,
4324,
4672,
775,
30,
1172,
296,
5568,
731,
24817,
8364,
7821,
16,
2589,
18,
10283,
18,
11330,
1435,
628,
26139,
266,
18,
73,
12567,
18,
4165,
18,
4857,
... |
fontObj.addObjects(self) | fontObj.addObjects(self) | def getInternalFontName(self, psfontname): fm = self.fontMapping if fm.has_key(psfontname): return fm[psfontname] else: try: # does pdfmetrics know about it? if so, add from reportlab.pdfbase import pdfmetrics fontObj = pdfmetrics.getFont(psfontname) fontObj.addObjects(self) #self.addFont(fontObj) return fm[psfontname]... | 423e7489419a6d9ccd2532adfbbcd247535afe02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/423e7489419a6d9ccd2532adfbbcd247535afe02/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16918,
5711,
461,
12,
2890,
16,
4250,
5776,
529,
4672,
10940,
273,
365,
18,
5776,
3233,
309,
10940,
18,
5332,
67,
856,
12,
1121,
5776,
529,
4672,
327,
10940,
63,
1121,
5776,
529,
65,
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,
16918,
5711,
461,
12,
2890,
16,
4250,
5776,
529,
4672,
10940,
273,
365,
18,
5776,
3233,
309,
10940,
18,
5332,
67,
856,
12,
1121,
5776,
529,
4672,
327,
10940,
63,
1121,
5776,
529,
65,
4... |
def reset_cdsname(config): | def reset_cdsname(conf): | def reset_cdsname(config): """ Reset collection-related tables with new CDSNAME and CDSNAMEINTL read from config files. """ from invenio.dbquery import run_sql # reset CDSNAME: cdsname = config.get("Essential parameters", "cdsname") res = run_sql("DELETE FROM collection WHERE id=1") res = run_sql("""INSERT INTO collect... | 9c8a5e36353cf9e1bc15f70183a4ca5712c87bfd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/9c8a5e36353cf9e1bc15f70183a4ca5712c87bfd/inveniocfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
67,
71,
2377,
529,
12,
3923,
4672,
3536,
7151,
1849,
17,
9243,
4606,
598,
394,
385,
3948,
1985,
471,
385,
3948,
1985,
3217,
48,
855,
628,
642,
1390,
18,
3536,
628,
2198,
275,
159... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
71,
2377,
529,
12,
3923,
4672,
3536,
7151,
1849,
17,
9243,
4606,
598,
394,
385,
3948,
1985,
471,
385,
3948,
1985,
3217,
48,
855,
628,
642,
1390,
18,
3536,
628,
2198,
275,
159... |
def generateWindowId(self, idx): return | def defaultAction(self): # select sub menu obj in data view pass | ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
1803,
12,
2890,
4672,
468,
2027,
720,
3824,
1081,
316,
501,
1476,
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,... | [
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,
805,
1803,
12,
2890,
4672,
468,
2027,
720,
3824,
1081,
316,
501,
1476,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
that link to a redirect pointing to the page. | that link to a redirect pointing to the page. | def getReferences(self, follow_redirects = True, offset = 0): """ Returns a list of pages that link to the page. If follow_redirects is True, also returns pages that link to a redirect pointing to the page. If offset is non-zero, skips that many references before loading. """ site = self.site() path = site.references_a... | 9713dd7c3d5b4f48fcbbf8a43b2c252a090bfd62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/9713dd7c3d5b4f48fcbbf8a43b2c252a090bfd62/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
2980,
12,
2890,
16,
2805,
67,
22715,
273,
1053,
16,
1384,
273,
374,
4672,
3536,
2860,
279,
666,
434,
4689,
716,
1692,
358,
326,
1363,
18,
971,
2805,
67,
22715,
353,
1053,
16,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5561,
2980,
12,
2890,
16,
2805,
67,
22715,
273,
1053,
16,
1384,
273,
374,
4672,
3536,
2860,
279,
666,
434,
4689,
716,
1692,
358,
326,
1363,
18,
971,
2805,
67,
22715,
353,
1053,
16,
254... |
metadata.add('creator', 'Unknown') | metadata.add('creator', _('Unknown')) | def _metadata_from_opf(self, opf): uid = opf.get('unique-identifier', 'calibre-uuid') self.uid = None self.metadata = metadata = Metadata(self) ignored = (OPF('dc-metadata'), OPF('x-metadata')) for elem in xpath(opf, '/o2:package/o2:metadata//*'): if elem.tag not in ignored and (elem.text or elem.attrib): metadata.add(... | 75e6221d6d9adb0d5dde9580df9eeae71f42eba5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/75e6221d6d9adb0d5dde9580df9eeae71f42eba5/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4165,
67,
2080,
67,
556,
74,
12,
2890,
16,
1061,
74,
4672,
4555,
273,
1061,
74,
18,
588,
2668,
6270,
17,
5644,
2187,
296,
771,
495,
266,
17,
7080,
6134,
365,
18,
1911,
273,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4165,
67,
2080,
67,
556,
74,
12,
2890,
16,
1061,
74,
4672,
4555,
273,
1061,
74,
18,
588,
2668,
6270,
17,
5644,
2187,
296,
771,
495,
266,
17,
7080,
6134,
365,
18,
1911,
273,
599,... |
r""" Square-free numbers INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005117;a Square-free numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(2) 2 sage: a(12) 17 sage: a.list(12) [1, 2, 3, 5, 6, 7, 10, 1... | def __init__(self): r""" Square-free numbers INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005117;a Square-free numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(2) 2 sage: a(12) 17 sage: a.list(12) [1, ... | def list(self, n): try: if len(self._b) <= n: raise IndexError else: return self._b[:n] except (AttributeError, IndexError): self._precompute() # try again return self.list(n) | 69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
775,
30,
309,
562,
12,
2890,
6315,
70,
13,
1648,
290,
30,
1002,
10195,
469,
30,
327,
365,
6315,
70,
10531,
82,
65,
1335,
261,
1499,
668,
16,
10195,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
775,
30,
309,
562,
12,
2890,
6315,
70,
13,
1648,
290,
30,
1002,
10195,
469,
30,
327,
365,
6315,
70,
10531,
82,
65,
1335,
261,
1499,
668,
16,
10195,
4672... |
c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)""", ticket, time.strftime('%s'), author, field, oldvalue.encode('utf-8'), newvalue.encode('utf-8')) | if field == "priority": if PRIORITIES_MAP.has_key(oldvalue.lower()): oldvalue = PRIORITIES_MAP[oldvalue.lower()] if PRIORITIES_MAP.has_key(newvalue.lower()): newvalue = PRIORITIES_MAP[newvalue.lower()] if oldvalue == newvalue: return c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, new... | def addTicketChange(self, ticket, time, author, field, oldvalue, newvalue): c = self.db().cursor() c.execute("""INSERT INTO ticket_change (ticket, time, author, field, oldvalue, newvalue) VALUES (%s, %s, %s, %s, %s, %s)""", ticket, time.strftime('%s'), author, field, oldvalue.encode('utf-8'), newvalue.encode('ut... | d0a718cdc641402f4871e728629c7ce1e81b3158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d0a718cdc641402f4871e728629c7ce1e81b3158/bugzilla2trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
3043,
12,
2890,
16,
9322,
16,
813,
16,
2869,
16,
652,
16,
1592,
1132,
16,
394,
1132,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
225,
309,
652,
422,
315,
8457,
6877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
13614,
3043,
12,
2890,
16,
9322,
16,
813,
16,
2869,
16,
652,
16,
1592,
1132,
16,
394,
1132,
4672,
276,
273,
365,
18,
1966,
7675,
9216,
1435,
225,
309,
652,
422,
315,
8457,
6877,
... |
self.destroy_map = {0: [0]} | self.destroy_map = {0: [0]} | def __setstate__(self, dct): inplace = dct.get('inplace', True) if inplace: self.destroy_map = {0: [0]} self.inplace = inplace | 98f8608be75b8b81997fa956395f0063b48ea567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/98f8608be75b8b81997fa956395f0063b48ea567/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
18253,
4672,
11783,
273,
18253,
18,
588,
2668,
267,
964,
2187,
1053,
13,
309,
11783,
30,
365,
18,
11662,
67,
1458,
273,
288,
20,
30,
306,
20,
18322,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
2019,
972,
12,
2890,
16,
18253,
4672,
11783,
273,
18253,
18,
588,
2668,
267,
964,
2187,
1053,
13,
309,
11783,
30,
365,
18,
11662,
67,
1458,
273,
288,
20,
30,
306,
20,
18322,... |
dt_simplename = None for line in file("build_installer.bat"): m = re.match(r'set DTDIR="(.+)"', line) if m: dt_simplename = m.group(1) break if not dt_simplename: raise Error("Can't find DTDIR in build_installer.bat") | dt_simplename = local.build_prefix + local.version | def patch_nsi_template(): # Generate NSI file from template, replacing name and version # with data from local_config. import re dt_name = local.hub_name dt_version = local.version dt_simplename = None # Pull DT_DIR from build_installer.bat for line in file("build_installer.bat"): m = re.match(r'set DTDIR="(.+)"', l... | 65880e4e7d3152a538161c37f92a2da4b14e17a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12372/65880e4e7d3152a538161c37f92a2da4b14e17a8/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
67,
2387,
77,
67,
3202,
13332,
468,
6654,
423,
2320,
585,
628,
1542,
16,
13993,
508,
471,
1177,
468,
598,
501,
628,
1191,
67,
1425,
18,
225,
1930,
283,
225,
3681,
67,
529,
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,
4729,
67,
2387,
77,
67,
3202,
13332,
468,
6654,
423,
2320,
585,
628,
1542,
16,
13993,
508,
471,
1177,
468,
598,
501,
628,
1191,
67,
1425,
18,
225,
1930,
283,
225,
3681,
67,
529,
273,
... |
if len(qu1): qu1 = ' where '+string.join(qu1, ' and ') | tables, where_clause = self._inherits_join_calc(groupby,tables,where_clause) if len(where_clause): where_clause = ' where '+string.join(where_clause, ' and ') | def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): context = context or {} self.pool.get('ir.model.access').check(cr, uid, self._name, 'read', context=context) if not fields: fields = self._columns.keys() | 0043d471fcbb9054de4d4fd8f31a5d173a277731 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/0043d471fcbb9054de4d4fd8f31a5d173a277731/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
819,
273,
819,
578,
2618,
365,
18,
6011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
1655,
12,
2890,
16,
4422,
16,
4555,
16,
2461,
16,
1466,
16,
13126,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
819,
33,
7036,
4672,
819,
273,
819,
578,
2618,
365,
18,
6011,
... |
str = str + c continue if c == ')': | elif c == ')': | def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c ... | a27c46cb14f5161823e8286256b61e46ad0634c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a27c46cb14f5161823e8286256b61e46ad0634c5/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4793,
12,
2867,
4672,
1930,
533,
609,
273,
875,
2699,
273,
875,
2879,
273,
875,
23253,
273,
374,
302,
6889,
273,
374,
3476,
273,
374,
22146,
273,
374,
9843,
273,
374,
5881,
67,
2... |
def read_australia(path, station_path, discriminator): | def read_australia(path, station_path, discriminator, meta=None): | def read_australia(path, station_path, discriminator): stations = read_antarc_station_ids(station_path, discriminator) record = None for line in open(path): if austral_discard_re.search(line): continue station_line = austral_header_re.match(line) if station_line: station_name = station_line.group(1).strip() id12 = stat... | 478558b45250611e4300c1c66d8326de913063b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/478558b45250611e4300c1c66d8326de913063b9/giss_io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
69,
27008,
287,
1155,
12,
803,
16,
13282,
67,
803,
16,
15819,
16,
2191,
33,
7036,
4672,
29719,
273,
855,
67,
970,
11828,
67,
17894,
67,
2232,
12,
17894,
67,
803,
16,
15819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
69,
27008,
287,
1155,
12,
803,
16,
13282,
67,
803,
16,
15819,
16,
2191,
33,
7036,
4672,
29719,
273,
855,
67,
970,
11828,
67,
17894,
67,
2232,
12,
17894,
67,
803,
16,
15819,
... |
self.abortResponse(1, _('Constraint Error'), 'warning', _(self._sql_error[key])) | self.abortResponse(1, _('Constraint Error'), 'warning', tr(self._sql_error[key], 'sql_constraint')) | def wrapper(self, dbname, *args, **kwargs): try: if not pooler.get_pool(dbname)._ready: raise except_osv('Database not ready', 'Currently, this database is not fully loaded and can not be used.') return f(self, dbname, *args, **kwargs) except orm.except_orm, inst: if inst.name == 'AccessError': self.logger.debug("Acces... | 2c610a30d3c225d45a864f9101827806a2eee676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/2c610a30d3c225d45a864f9101827806a2eee676/osv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4053,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
309,
486,
2845,
264,
18,
588,
67,
6011,
12,
20979,
2934,
67,
1672,
30,
1002,
1335,
67,
538,
90,
2668,
4254,
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,
4053,
12,
2890,
16,
18448,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
309,
486,
2845,
264,
18,
588,
67,
6011,
12,
20979,
2934,
67,
1672,
30,
1002,
1335,
67,
538,
90,
2668,
4254,
4... |
logging.debug("Job %s succeeded" % (runId)) | logging.debug("Job %s finished." % (runId)) | def updateRunning(self, *running): """ _updateRunning_ | 97e1d3627d3473cbc9273b319cae35e58316c24c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/97e1d3627d3473cbc9273b319cae35e58316c24c/T0LSFTracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
7051,
12,
2890,
16,
380,
8704,
4672,
3536,
389,
2725,
7051,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
7051,
12,
2890,
16,
380,
8704,
4672,
3536,
389,
2725,
7051,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
glyphname=name(0, 0, i, shape, liquescentia) | glyphname=name(i, 0, 0, shape, liquescentia) | def write_pes(i, first_glyph, shape, liquescentia='nothing'): glyphname=name(0, 0, i, shape, liquescentia) begin_glyph(glyphname) # the difference of width of the two shapes, that will change a thing or two... if (first_glyph=="qbase"): width_difference=width_quilisma-width_high_pes elif (first_glyph=="pbase"): width_d... | 3476babc235eee7e0f876eaf20ec2cdd45f09a8b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/3476babc235eee7e0f876eaf20ec2cdd45f09a8b/squarize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
23033,
12,
77,
16,
1122,
67,
19426,
16,
2179,
16,
4501,
372,
742,
319,
1155,
2218,
30874,
11,
4672,
9440,
529,
33,
529,
12,
77,
16,
374,
16,
374,
16,
2179,
16,
4501,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
23033,
12,
77,
16,
1122,
67,
19426,
16,
2179,
16,
4501,
372,
742,
319,
1155,
2218,
30874,
11,
4672,
9440,
529,
33,
529,
12,
77,
16,
374,
16,
374,
16,
2179,
16,
4501,
372,
... |
renderme.append( (mem, 1) ) | renderme.append( (mem, "", 1) ) | def runStaticRenderer(self): """ This will go through all possible things in the blog and statically render everything to the "static_dir" specified in the config file. | fa1a5c3e3c669b64bdc1658041f34f72f76ad037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/fa1a5c3e3c669b64bdc1658041f34f72f76ad037/pyblosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
5788,
6747,
12,
2890,
4672,
3536,
1220,
903,
1960,
3059,
777,
3323,
9198,
316,
326,
10700,
471,
760,
1230,
1743,
7756,
358,
326,
315,
3845,
67,
1214,
6,
1269,
316,
326,
642,
585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
5788,
6747,
12,
2890,
4672,
3536,
1220,
903,
1960,
3059,
777,
3323,
9198,
316,
326,
10700,
471,
760,
1230,
1743,
7756,
358,
326,
315,
3845,
67,
1214,
6,
1269,
316,
326,
642,
585,
... |
raise Error, 'Close at the wrong time' | raise Error, 'Close at the wrong time' | def close(self): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
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,
1746,
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,
-... |
self.leftColumn = self.formatDocument(self.findSidebarPath()).output | self.leftColumn = self.formatDocument(self.findSidebarPath(path)).output | def render(self, request): """Overrides the default render() function for pages. This checks whether our path is really a file or a directory- if it's a directory, we show a directory listing page. If it's a file, this formats our document and passes control on to the usual rendering processes. """ # Is this actually a... | 7196351c54479d11cd92bad01ea6d449c29c43b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/7196351c54479d11cd92bad01ea6d449c29c43b3/Doc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
3536,
13084,
326,
805,
1743,
1435,
445,
364,
4689,
18,
1220,
4271,
2856,
3134,
589,
353,
8654,
279,
585,
578,
279,
1867,
17,
309,
518,
1807,
279,
1867,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
3536,
13084,
326,
805,
1743,
1435,
445,
364,
4689,
18,
1220,
4271,
2856,
3134,
589,
353,
8654,
279,
585,
578,
279,
1867,
17,
309,
518,
1807,
279,
1867,
1... |
res = self.meta_interp(f, [1, 1, 0]) | res = self.meta_interp(f, [1, 1, 0], optimizer=Optimizer) | def f(x, y, n): while n < 100: myjitdriver.can_enter_jit(n=n, x=x, y=y) myjitdriver.jit_merge_point(n=n, x=x, y=y) y += 1 try: ovfcheck(x<<y) except OverflowError: return 2 n += 1 return n | d1d7612a9a1bdda8c649e282d15537cf6dd474e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/d1d7612a9a1bdda8c649e282d15537cf6dd474e9/test_exception.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
16,
677,
16,
290,
4672,
1323,
290,
411,
2130,
30,
3399,
78,
305,
7407,
18,
4169,
67,
2328,
67,
78,
305,
12,
82,
33,
82,
16,
619,
33,
92,
16,
677,
33,
93,
13,
3399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
92,
16,
677,
16,
290,
4672,
1323,
290,
411,
2130,
30,
3399,
78,
305,
7407,
18,
4169,
67,
2328,
67,
78,
305,
12,
82,
33,
82,
16,
619,
33,
92,
16,
677,
33,
93,
13,
3399,
... |
box_width = self.width - self._style.text_offset | box_width = self.width - 2*self._style.text_offset | def _clip_line(self, text, index, start=True): """ Return 'text' clipped beginning at 'index' if 'start' is True or ending at 'index' if 'start' is False. """ box_width = self.width - self._style.text_offset total_width = 0. end_index = 1 for t in text: w, h = self.metrics.get_text_extent(t)[2:4] total_width = total_wi... | a9d6b802af839ae7f5cb005f2458c810c8018cb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13166/a9d6b802af839ae7f5cb005f2458c810c8018cb9/text_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14161,
67,
1369,
12,
2890,
16,
977,
16,
770,
16,
787,
33,
5510,
4672,
3536,
2000,
296,
955,
11,
26361,
8435,
622,
296,
1615,
11,
309,
296,
1937,
11,
353,
1053,
578,
11463,
622,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14161,
67,
1369,
12,
2890,
16,
977,
16,
770,
16,
787,
33,
5510,
4672,
3536,
2000,
296,
955,
11,
26361,
8435,
622,
296,
1615,
11,
309,
296,
1937,
11,
353,
1053,
578,
11463,
622,
... |
36: S STRING 'args' 44: p PUT 3 47: ( MARK 48: t TUPLE (MARK at 47) 49: s SETITEM 50: b BUILD 51: a APPEND 52: g GET 1 55: a APPEND 56: . STOP | 36: S STRING 'value' 45: p PUT 3 48: I INT 42 52: s SETITEM 53: b BUILD 54: a APPEND 55: g GET 1 58: a APPEND 59: . STOP | def dis(pickle, out=None, memo=None, indentlevel=4): """Produce a symbolic disassembly of a pickle. 'pickle' is a file-like object, or string, containing a (at least one) pickle. The pickle is disassembled from the current position, through the first STOP opcode encountered. Optional arg 'out' is a file-like object ... | e11e981fc7a6d403358c504121513445b4618ee9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e11e981fc7a6d403358c504121513445b4618ee9/pickletools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
20847,
16,
596,
33,
7036,
16,
11063,
33,
7036,
16,
3504,
2815,
33,
24,
4672,
3536,
25884,
279,
16754,
1015,
28050,
434,
279,
13379,
18,
225,
296,
20847,
11,
353,
279,
585,
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,
1015,
12,
20847,
16,
596,
33,
7036,
16,
11063,
33,
7036,
16,
3504,
2815,
33,
24,
4672,
3536,
25884,
279,
16754,
1015,
28050,
434,
279,
13379,
18,
225,
296,
20847,
11,
353,
279,
585,
17... |
super(SoftwareVideo, self).__init__(name, """ ( mpeg2dec name=mpeg2dec ! { seamless-queue ! .video seamless-mpeg2subt name=mpeg2subt ! ffmpegcolorspace ! videoscale ! seamless-queue max-size-buffers=3 name=videoqueue ! { %(videoSink)s name=videosink } seamless-queue name=subtitle ! mpeg2subt.subtitle } ) """ % options... | super(SoftwareVideo, self).__init__(name) self.makeSubelem('mpeg2dec') self.makeSubelem('ffmpegcolorspace') self.makeSubelem('videoscale') self.makeSubelem('queue') self.makeSubelem(options['videoSink'], 'videosink') self.link('mpeg2dec', 'ffmpegcolorspace') self.link('ffmpegcolorspace', 'videoscale') ... | def __init__(self, options, name='videodec'): super(SoftwareVideo, self).__init__(name, """ ( mpeg2dec name=mpeg2dec ! { seamless-queue ! .video seamless-mpeg2subt name=mpeg2subt ! ffmpegcolorspace ! videoscale ! seamless-queue max-size-buffers=3 name=videoqueue ! { %(videoSink)s name=videosink } | 70235f0b26c68b6a00cbb5861103371054ee2dac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/70235f0b26c68b6a00cbb5861103371054ee2dac/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
2218,
6768,
390,
71,
11,
4672,
2240,
12,
21742,
10083,
16,
365,
2934,
972,
2738,
972,
12,
529,
16,
3536,
261,
312,
9001,
22,
4924,
508,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
2218,
6768,
390,
71,
11,
4672,
2240,
12,
21742,
10083,
16,
365,
2934,
972,
2738,
972,
12,
529,
16,
3536,
261,
312,
9001,
22,
4924,
508,
3... |
"""Return Nr. of elements containing 0 at the beginning th the list.""" | """Return number of elements containing 0 at the beginning of the list.""" | def _countFollowingZeros(l): """Return Nr. of elements containing 0 at the beginning th the list.""" if len(l) == 0: return 0 elif l[0] != 0: return 0 else: return 1 + _countFollowingZeros(l[1:]) | beeb5ca0480c8d1ae505244beb56772f807ba70e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14367/beeb5ca0480c8d1ae505244beb56772f807ba70e/IPy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1883,
8328,
310,
20801,
12,
80,
4672,
3536,
990,
1300,
434,
2186,
4191,
374,
622,
326,
8435,
434,
326,
666,
12123,
309,
562,
12,
80,
13,
422,
374,
30,
327,
374,
1327,
328,
63,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1883,
8328,
310,
20801,
12,
80,
4672,
3536,
990,
1300,
434,
2186,
4191,
374,
622,
326,
8435,
434,
326,
666,
12123,
309,
562,
12,
80,
13,
422,
374,
30,
327,
374,
1327,
328,
63,
2... |
if trips_info: | if trips_info and trips_info.has_key('trip'): | def get_trips_info(token, who=""): key = "dopplr="+token+":info=trips" if who: key += ":who="+who trips_info = memcache.get(key) if trips_info: return trips_info url = "https://www.dopplr.com/api/trips_info.js" if who: url += "?traveller="+who try: response = urlfetch.fetch( url = url, headers = {'Authorization': 'A... | 00ad0ec58384da8dbeab2f9d699ef648fb117ea4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/00ad0ec58384da8dbeab2f9d699ef648fb117ea4/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
313,
7146,
67,
1376,
12,
2316,
16,
10354,
1546,
6,
4672,
498,
273,
315,
72,
556,
412,
86,
1546,
15,
2316,
15,
6877,
1376,
33,
313,
7146,
6,
309,
10354,
30,
498,
1011,
6398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
313,
7146,
67,
1376,
12,
2316,
16,
10354,
1546,
6,
4672,
498,
273,
315,
72,
556,
412,
86,
1546,
15,
2316,
15,
6877,
1376,
33,
313,
7146,
6,
309,
10354,
30,
498,
1011,
6398,
... |
wimg, himg, gtk.gdk.INTERP_HYPER, | wimg, himg, gtk.gdk.INTERP_NEAREST, | def _render(self): # remove timer if any if self._render_timeout: gobject.source_remove(self._render_timeout) | 04af70e32bb3200f6055d07372be43068c563987 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/04af70e32bb3200f6055d07372be43068c563987/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
4672,
468,
1206,
5441,
309,
1281,
309,
365,
6315,
5902,
67,
4538,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
6315,
5902,
67,
4538,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
4672,
468,
1206,
5441,
309,
1281,
309,
365,
6315,
5902,
67,
4538,
30,
314,
1612,
18,
3168,
67,
4479,
12,
2890,
6315,
5902,
67,
4538,
13,
2,
-100,
-100,
-100,
-100,... |
self.assert_(proxy.readline(-10) == 'ed' + os.linesep) | self.assertEqual(proxy.readline(-10), 'ed' + os.linesep) | def _test_readline(self, proxy): # Read by line proxy.seek(0) self.assert_(proxy.readline() == 'foo' + os.linesep) self.assert_(proxy.readline() == 'bar' + os.linesep) self.assert_(proxy.readline() == 'fred' + os.linesep) self.assertEqual(proxy.readline(), 'bob') proxy.seek(2) self.assert_(proxy.readline() == 'o' + os.... | 9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
896,
1369,
12,
2890,
16,
2889,
4672,
468,
2720,
635,
980,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
1369,
1435,
422,
296,
11351,
11,
397,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
896,
1369,
12,
2890,
16,
2889,
4672,
468,
2720,
635,
980,
2889,
18,
16508,
12,
20,
13,
365,
18,
11231,
67,
12,
5656,
18,
896,
1369,
1435,
422,
296,
11351,
11,
397,
114... |
self.getUserDB().setUserPassword(username, password) | self.getUserDB().setUserPassword(username, cherrypy.request.params["password"]) | def index(self, **kwargs): if not self._userIsAdmin(): return self.writeErrorPage("Access denied.") # If we're just showing the initial page, just do that if not self._isSubmit(): return self._generatePageHtml("", "") # We need to change values. Change them, then give back that main page again, with a message action ... | 64140ac278bec0b07b4f00902e3cd6530a90a669 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2223/64140ac278bec0b07b4f00902e3cd6530a90a669/page_admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
16,
2826,
4333,
4672,
309,
486,
365,
6315,
1355,
2520,
4446,
13332,
327,
365,
18,
2626,
668,
1964,
2932,
1862,
15338,
1199,
13,
225,
468,
971,
732,
4565,
2537,
17253,
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,
770,
12,
2890,
16,
2826,
4333,
4672,
309,
486,
365,
6315,
1355,
2520,
4446,
13332,
327,
365,
18,
2626,
668,
1964,
2932,
1862,
15338,
1199,
13,
225,
468,
971,
732,
4565,
2537,
17253,
326,... |
"""Convenience function for converting a regular socket into an SSL socket. Has the same interface as :func:`ssl.wrap_socket`, but | """Convenience function for converting a regular socket into an SSL socket. Has the same interface as :func:`ssl.wrap_socket`, but | def wrap_ssl(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=None, ssl_version=None, ca_certs=None, do_handshake_on_connect=True, suppress_ragged_eofs=True): """Convenience function for converting a regular socket into an SSL socket. Has the same interface as :func:`ssl.wrap_socket`, but works on 2.5 o... | 8072243926ecc1890fc6098357047497f043a57a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/8072243926ecc1890fc6098357047497f043a57a/greenio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
8157,
12,
15031,
16,
28632,
33,
7036,
16,
3320,
768,
33,
7036,
16,
1438,
67,
5564,
33,
8381,
16,
3320,
67,
25782,
33,
7036,
16,
5832,
67,
1589,
33,
7036,
16,
3474,
67,
2459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
8157,
12,
15031,
16,
28632,
33,
7036,
16,
3320,
768,
33,
7036,
16,
1438,
67,
5564,
33,
8381,
16,
3320,
67,
25782,
33,
7036,
16,
5832,
67,
1589,
33,
7036,
16,
3474,
67,
2459... |
self._cvariables = [] | cvariables = {} | def __init__(self, cls, verbosity=0): self._tmp_ivar = {} self._tmp_cvar = {} self._tmp_type = {} ObjDoc.__init__(self, cls, verbosity) | d3395d508175517a8a8289ffc33bd81b4ee231c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/d3395d508175517a8a8289ffc33bd81b4ee231c2/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2028,
16,
11561,
33,
20,
4672,
365,
6315,
5645,
67,
22647,
273,
2618,
365,
6315,
5645,
67,
71,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
1876... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2028,
16,
11561,
33,
20,
4672,
365,
6315,
5645,
67,
22647,
273,
2618,
365,
6315,
5645,
67,
71,
1401,
273,
2618,
365,
6315,
5645,
67,
723,
273,
2618,
1876... |
<reference ids="internal" name="external_" names="internal" refuri="http://uri"> | <reference ids="internal" name="external" names="internal" refuri="http://uri"> | def suite(): parser = Parser() s = DocutilsTestSupport.TransformTestSuite(parser) s.generateTests(totest) return s | 6bcb3e27a879e3795eb24f7efab9b77258928a64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/6bcb3e27a879e3795eb24f7efab9b77258928a64/test_hyperlinks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
2082,
273,
6783,
1435,
272,
273,
3521,
5471,
4709,
6289,
18,
4059,
4709,
13587,
12,
4288,
13,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11371,
13332,
2082,
273,
6783,
1435,
272,
273,
3521,
5471,
4709,
6289,
18,
4059,
4709,
13587,
12,
4288,
13,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
225,
2,
-100,
-100,
-100,
... |
filename = os.path.join(output_dir, '%d/%d/%d.png' % (zoom, ix, iy)) | filename = os.path.join(output_dir, '%d/%d/%d.%s' % (zoom, ix, iy, tileformat)) | def Usage(): print 'Usage: gdal2tiles.py [-title "Title"] [-publishurl http://yourserver/dir/]' print ' [-nogooglemaps] [-noopenlayers] [-nokml]' print ' [-googlemapskey KEY] [-forcekml] [-v]' print ' input_file [output_dir]' print | 76fa2f42b72b0363b7511f1567746078baebe8c8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/76fa2f42b72b0363b7511f1567746078baebe8c8/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
28366,
18,
2074,
23059,
2649,
315,
4247,
11929,
23059,
6543,
718,
1062,
2207,
93,
477,
3567,
19,
1214,
19,
3864,
1172,
296,
5397,
23059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
15551,
287,
22,
28366,
18,
2074,
23059,
2649,
315,
4247,
11929,
23059,
6543,
718,
1062,
2207,
93,
477,
3567,
19,
1214,
19,
3864,
1172,
296,
5397,
23059,
... |
p = subprocess.Popen(["somethingyoudonthave", "-c", "import sys; sys.exit(47)"], | arg0 = os.path.join(os.path.dirname(sys.executable), "somethingyoudonthave") p = subprocess.Popen([arg0, "-c", "import sys; sys.exit(47)"], | def test_executable(self): p = subprocess.Popen(["somethingyoudonthave", "-c", "import sys; sys.exit(47)"], executable=sys.executable) p.wait() self.assertEqual(p.returncode, 47) | aeaf987190a97a9ecc8eed42b5e100fc14f59070 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/aeaf987190a97a9ecc8eed42b5e100fc14f59070/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17751,
12,
2890,
4672,
1501,
20,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
17751,
3631,
315,
30289,
93,
83,
1100,
2152,
836,
7923,
293,
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,
1842,
67,
17751,
12,
2890,
4672,
1501,
20,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
17751,
3631,
315,
30289,
93,
83,
1100,
2152,
836,
7923,
293,
273,
... |
r = obj(ui=ui, repo=repo, hooktype=name, **args) | r = obj(ui=self.ui, repo=self, hooktype=name, **args) | def callhook(hname, funcname): '''call python hook. hook is callable object, looked up as name in python module. if callable returns "true", hook passes, else fails. if hook raises exception, treated as hook failure. exception propagates if throw is "true".''' | 5f6ce4852041a35b59d68357827e345a7261258d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/5f6ce4852041a35b59d68357827e345a7261258d/localrepo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4476,
12,
76,
529,
16,
1326,
529,
4672,
9163,
1991,
5790,
3953,
18,
3953,
353,
4140,
733,
16,
27321,
731,
487,
508,
316,
5790,
1605,
18,
309,
4140,
1135,
315,
3767,
3113,
3953,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4476,
12,
76,
529,
16,
1326,
529,
4672,
9163,
1991,
5790,
3953,
18,
3953,
353,
4140,
733,
16,
27321,
731,
487,
508,
316,
5790,
1605,
18,
309,
4140,
1135,
315,
3767,
3113,
3953,
11... |
self.setup_common() def setup_restored(self): self.setup_common() | def setup_new(self, title, section=u'video'): self.section = section FolderBase.setup_new(self, title) self.setup_common() | 77c7fda324fe38f738e22fed33263c011c99c23e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/77c7fda324fe38f738e22fed33263c011c99c23e/folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2704,
12,
2890,
16,
2077,
16,
2442,
33,
89,
11,
9115,
11,
4672,
365,
18,
3464,
273,
2442,
12623,
2171,
18,
8401,
67,
2704,
12,
2890,
16,
2077,
13,
365,
18,
8401,
67,
6054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
67,
2704,
12,
2890,
16,
2077,
16,
2442,
33,
89,
11,
9115,
11,
4672,
365,
18,
3464,
273,
2442,
12623,
2171,
18,
8401,
67,
2704,
12,
2890,
16,
2077,
13,
365,
18,
8401,
67,
6054,
... | |
sage: K.hilbert_class_field('h') Number Field in h with defining polynomial x^6 + 2*x^5 + 70*x^4 + 90*x^3 + 1631*x^2 + 1196*x + 12743 """ f = self.hilbert_class_polynomial() C = self.composite_fields(NumberField(f,'x'),names) assert len(C) == 1 return C[0] | """ f = self.hilbert_class_field_defining_polynomial() return self.extension(f, names) | def hilbert_class_field(self, names): r""" Returns the Hilbert class field of this quadratic field as an absolute extension of $\QQ$. For a polynomial that defines a relative extension see the \code{hilbert_class_polynomial} command. | bd103b24c1de479186d0c975a9a52fcc2e157d83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/bd103b24c1de479186d0c975a9a52fcc2e157d83/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
67,
1106,
67,
1518,
12,
2890,
16,
1257,
4672,
436,
8395,
2860,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
652,
487,
392,
4967,
2710,
434,
271,
64,
53,
53,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
67,
1106,
67,
1518,
12,
2890,
16,
1257,
4672,
436,
8395,
2860,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
652,
487,
392,
4967,
2710,
434,
271,
64,
53,
53,
8,
1... |
w2.x = int(scanner.real-0.5) | w2.i = int(scanner.real-0.5) | def eta(): "Use computer to get estimated time of arrival for a warp jump." w1 = coord(); w2 = coord() prompt = False if damaged(DCOMPTR): prout(_("COMPUTER DAMAGED, USE A POCKET CALCULATOR.")) skip(1) return if scanner.next() != IHREAL: prompt = True scanner.chew() proutn(_("Destination quadrant and/or sector? ")) if ... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
13332,
315,
3727,
26579,
358,
336,
13137,
813,
434,
2454,
5162,
364,
279,
341,
11441,
11833,
1199,
341,
21,
273,
2745,
5621,
341,
22,
273,
2745,
1435,
6866,
273,
1083,
309,
302,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14251,
13332,
315,
3727,
26579,
358,
336,
13137,
813,
434,
2454,
5162,
364,
279,
341,
11441,
11833,
1199,
341,
21,
273,
2745,
5621,
341,
22,
273,
2745,
1435,
6866,
273,
1083,
309,
302,
3... |
devtl.setRows(timelinerows + 1) devtl.html['timeline'] += html_zoombox; devtl.html['timeline'] += html_timeline.format("dmesg", devtl.height); | devtl.setRows(timelinerows + 1) devtl.html['timeline'] += html_devlist1 if len(testruns) > 1: devtl.html['timeline'] += html_devlist2 devtl.html['timeline'] += html_zoombox devtl.html['timeline'] += html_timeline.format('dmesg', devtl.height) for data in testruns: | def createHTML(): global sysvals, data data.normalizeTime() # html function templates headline_stamp = '<div class="stamp">{0} {1} {2} {3}</div>\n' html_zoombox = '<center><button id="zoomin">ZOOM IN</button><button id="zoomout">ZOOM OUT</button><button id="zoomdef">ZOOM 1:1</button></center>\n<div id="dmesgzoombox" ... | 0c52bda8f6c5785b5982bc3636b627b4ccd59c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5327/0c52bda8f6c5785b5982bc3636b627b4ccd59c3f/analyze_suspend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4870,
13332,
2552,
2589,
4524,
16,
501,
225,
501,
18,
12237,
950,
1435,
225,
468,
1729,
445,
5539,
910,
1369,
67,
14317,
273,
2368,
2892,
667,
1546,
14317,
6441,
95,
20,
97,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4870,
13332,
2552,
2589,
4524,
16,
501,
225,
501,
18,
12237,
950,
1435,
225,
468,
1729,
445,
5539,
910,
1369,
67,
14317,
273,
2368,
2892,
667,
1546,
14317,
6441,
95,
20,
97,
288,
... |
self._console.debug("Looking for rundeps in '%s' of '%s'" % (assembled, assembledId)) | def addId(assembledId, runtime, loadtime): if inFunction: target = runtime else: target = loadtime | 9ef56e0443ab3589eb2dedcff621849ae012119f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/9ef56e0443ab3589eb2dedcff621849ae012119f/DependencyLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
548,
12,
345,
5747,
1259,
548,
16,
3099,
16,
1262,
957,
4672,
309,
316,
2083,
30,
1018,
273,
3099,
469,
30,
1018,
273,
1262,
957,
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,
527,
548,
12,
345,
5747,
1259,
548,
16,
3099,
16,
1262,
957,
4672,
309,
316,
2083,
30,
1018,
273,
3099,
469,
30,
1018,
273,
1262,
957,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
PASSWD = getpass.getpass("IMAP password for %s on %s:" % (USER, host or "localhost")) | PASSWD = getpass.getpass("IMAP password for %s on %s: " % (USER, host or "localhost")) | def print_log(): _mesg('last %d IMAP4 interactions:' % len(_cmd_log)) for secs,line in _cmd_log: _mesg(line, secs) | e214b2c6633ccc3350e1aa71f3b25bdfc09a38d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e214b2c6633ccc3350e1aa71f3b25bdfc09a38d2/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1330,
13332,
389,
26244,
75,
2668,
2722,
738,
72,
6246,
2203,
24,
23877,
2497,
738,
562,
24899,
4172,
67,
1330,
3719,
364,
18043,
16,
1369,
316,
389,
4172,
67,
1330,
30,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
67,
1330,
13332,
389,
26244,
75,
2668,
2722,
738,
72,
6246,
2203,
24,
23877,
2497,
738,
562,
24899,
4172,
67,
1330,
3719,
364,
18043,
16,
1369,
316,
389,
4172,
67,
1330,
30,
389,
... |
debug('PRESENCE: %s\n->> affiliation:%s, show:%s, status:%s, role:%s\n' % (presence, affiliation, show, status, role)) | def on_groupchat_presence(self, presence): """ Triggered whenever a presence stanza is received from a user in a multi-user chat room. Display the presence on the room window and update the presence information of the concerned user """ from common import debug from_nick = presence['from'].resource from_room = presence... | ed39518bf6f74fffb53cbe46f23577d3dfc0cbd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/ed39518bf6f74fffb53cbe46f23577d3dfc0cbd0/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1655,
10880,
67,
21731,
12,
2890,
16,
9805,
4672,
3536,
11321,
329,
17334,
279,
9805,
21650,
353,
5079,
628,
279,
729,
316,
279,
3309,
17,
1355,
7916,
7725,
18,
9311,
326,
9805,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1655,
10880,
67,
21731,
12,
2890,
16,
9805,
4672,
3536,
11321,
329,
17334,
279,
9805,
21650,
353,
5079,
628,
279,
729,
316,
279,
3309,
17,
1355,
7916,
7725,
18,
9311,
326,
9805,... | |
self.references[fn].append(n+1) | self.references[fn].append(n) | def append(self, fn, n): if fn not in self.references: self.references[fn] = [] self.references[fn].append(n+1) | 650877bfabd5c8de57c4da355cdb97340a25d862 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/650877bfabd5c8de57c4da355cdb97340a25d862/wmltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
2295,
16,
290,
4672,
309,
2295,
486,
316,
365,
18,
14353,
30,
365,
18,
14353,
63,
4293,
65,
273,
5378,
365,
18,
14353,
63,
4293,
8009,
6923,
12,
82,
15,
21,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
714,
12,
2890,
16,
2295,
16,
290,
4672,
309,
2295,
486,
316,
365,
18,
14353,
30,
365,
18,
14353,
63,
4293,
65,
273,
5378,
365,
18,
14353,
63,
4293,
8009,
6923,
12,
82,
15,
21,
13,
... |
h2= Text(self.buffer,font="Serif",font_size=14) | h2= Text(self.buffer,font="FreeSerif",font_size=14) h2.color = StandardColors.Blue | def end_h2(self): self.h2=False if self.buffer and self.buffer.strip()>"": h2= Text(self.buffer,font="Serif",font_size=14) self.pdf.add_text(h2) self.buffer = None | ac361d25903931d8700fea4f90895adc4a26a32c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14704/ac361d25903931d8700fea4f90895adc4a26a32c/wiki2pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
76,
22,
12,
2890,
4672,
365,
18,
76,
22,
33,
8381,
309,
365,
18,
4106,
471,
365,
18,
4106,
18,
6406,
1435,
2984,
6877,
366,
22,
33,
3867,
12,
2890,
18,
4106,
16,
5776,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
76,
22,
12,
2890,
4672,
365,
18,
76,
22,
33,
8381,
309,
365,
18,
4106,
471,
365,
18,
4106,
18,
6406,
1435,
2984,
6877,
366,
22,
33,
3867,
12,
2890,
18,
4106,
16,
5776,
154... |
def canonical_label(self, partition=None, proof=False): | def canonical_label(self, partition=None, proof=False, verbosity=0): | def canonical_label(self, partition=None, proof=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. EXAMPLE: sage: P = graphs.PetersenGraph() sage: DP = P.to_directed() sage: DP.canonical_label().adjacency_matrix() [0 0 0 0 0 0 0 1 1 1] [0 0 0 0 1 0... | 53ee1136334ccef3d22fb07eba25731064a97664 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/53ee1136334ccef3d22fb07eba25731064a97664/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
18,
971,
1158,
3590,
353,
864,
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,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
14601,
33,
8381,
16,
11561,
33,
20,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
18,
971,
1158,
3590,
353,
864,
16,
... |
if filename: | if filename is not None: | def newsigterm(signum, frame): global __llwapp_write_filename_got_sigterm __llwapp_write_filename_got_sigterm = True | 7567ffee48a6f61868139e76e9072ef48d505add /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/7567ffee48a6f61868139e76e9072ef48d505add/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
7340,
6408,
12,
2977,
379,
16,
2623,
4672,
2552,
1001,
2906,
91,
2910,
67,
2626,
67,
3459,
67,
13212,
67,
7340,
6408,
1001,
2906,
91,
2910,
67,
2626,
67,
3459,
67,
13212,
67,
7340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
7340,
6408,
12,
2977,
379,
16,
2623,
4672,
2552,
1001,
2906,
91,
2910,
67,
2626,
67,
3459,
67,
13212,
67,
7340,
6408,
1001,
2906,
91,
2910,
67,
2626,
67,
3459,
67,
13212,
67,
7340... |
map['.' + suff] = type def guess_type(url, strict=1): | self.add_type(type, suff, strict) def guess_type(url, strict=True): | def readfp(self, fp): """Read a single mime.types-format file.""" map = self.types_map while 1: line = fp.readline() if not line: break words = line.split() for i in range(len(words)): if words[i][0] == '#': del words[i:] break if not words: continue type, suffixes = words[0], words[1:] for suff in suffixes: map['.' + ... | b0945ca0ad01e7fdc7cc8a5703d1e114970042b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b0945ca0ad01e7fdc7cc8a5703d1e114970042b7/mimetypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
7944,
12,
2890,
16,
4253,
4672,
3536,
1994,
279,
2202,
4892,
18,
2352,
17,
2139,
585,
12123,
852,
273,
365,
18,
2352,
67,
1458,
1323,
404,
30,
980,
273,
4253,
18,
896,
1369,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7944,
12,
2890,
16,
4253,
4672,
3536,
1994,
279,
2202,
4892,
18,
2352,
17,
2139,
585,
12123,
852,
273,
365,
18,
2352,
67,
1458,
1323,
404,
30,
980,
273,
4253,
18,
896,
1369,
1435,... |
c = remove.pop() | c = self.remove.pop() | def rowsRemoved(self, parent, start, end): """ Confirm that what was said was going to happen actually did """ c = remove.pop() assert(c['parent'] == parent) assert(c['oldSize'] - (end - start + 1) == self.model.rowCount(parent)) assert(c['last'] == self.model.data(model.index(start-1, 0, c['parent']))) assert(c['next'... | 3b230a0f9fc904f5b200938f5ac2a5cde2f9f027 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/3b230a0f9fc904f5b200938f5ac2a5cde2f9f027/modeltest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2595,
10026,
12,
2890,
16,
982,
16,
787,
16,
679,
4672,
3536,
17580,
716,
4121,
1703,
7864,
350,
1703,
8554,
358,
5865,
6013,
5061,
3536,
276,
273,
365,
18,
4479,
18,
5120,
1435,
1815,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2595,
10026,
12,
2890,
16,
982,
16,
787,
16,
679,
4672,
3536,
17580,
716,
4121,
1703,
7864,
350,
1703,
8554,
358,
5865,
6013,
5061,
3536,
276,
273,
365,
18,
4479,
18,
5120,
1435,
1815,
... |
print "im getInfoCB" | def getInfoCB(self,data,status): print "im getInfoCB" if data is not None: if data is True: if status is not None: print "im getInfoCB status" print "acesspoint",status[self.iface]["acesspoint"] if status[self.iface]["acesspoint"] == "No Connection" or status[self.iface]["acesspoint"] == "Not-Associated" or status[self... | 81d7587c5c5489dcc300cc4d91ca967838471472 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/81d7587c5c5489dcc300cc4d91ca967838471472/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
8876,
12,
2890,
16,
892,
16,
2327,
4672,
309,
501,
353,
486,
599,
30,
309,
501,
353,
1053,
30,
309,
1267,
353,
486,
599,
30,
1172,
315,
381,
17142,
8876,
1267,
6,
1172,
315,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17142,
8876,
12,
2890,
16,
892,
16,
2327,
4672,
309,
501,
353,
486,
599,
30,
309,
501,
353,
1053,
30,
309,
1267,
353,
486,
599,
30,
1172,
315,
381,
17142,
8876,
1267,
6,
1172,
315,
6... | |
sgmllib.charref = re.compile('& if sgmllib.endbracket.search(' <').start(0): class EndBracketMatch: endbracket = re.compile('''([^'"<>]|"[^"]*"(?=>|/|\s|\w+=)|'[^']*'(?=>|/|\s|\w+=))*(?=[<>])|.*?(?=[<>])''') def search(self,string,index=0): self.match = self.endbracket.match(string,index) if self.match: return self de... | sgmllib.charref = re.compile('& | def _xmlescape(data,entities={}): data = data.replace('&', '&') data = data.replace('>', '>') data = data.replace('<', '<') for char, entity in entities: data = data.replace(char, entity) return data | b46d7e4f5773873813bf0c2abf7f311d20f6ee9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/b46d7e4f5773873813bf0c2abf7f311d20f6ee9d/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2902,
6939,
12,
892,
16,
9996,
12938,
4672,
501,
273,
501,
18,
2079,
2668,
10,
2187,
5183,
931,
4359,
13,
501,
273,
501,
18,
2079,
2668,
1870,
16,
5183,
4521,
4359,
13,
501,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2902,
6939,
12,
892,
16,
9996,
12938,
4672,
501,
273,
501,
18,
2079,
2668,
10,
2187,
5183,
931,
4359,
13,
501,
273,
501,
18,
2079,
2668,
1870,
16,
5183,
4521,
4359,
13,
501,
273,
... |
configPath=".", | addOptions=configOptions, | def __init__(self, OS, envName, buildBranch, configFile, buildSearchString, buildDir, buildPath, talosCmd, customManifest='', cvsRoot=":pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot"): BuildFactory.__init__(self) if OS in ('linux', 'linuxbranch',): cleanCmd = self.linuxClean elif OS in ('win',): cleanCmd = self.win... | 89803d5eaff0f75cee1a4b76480c5468a10f40d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/89803d5eaff0f75cee1a4b76480c5468a10f40d3/perfrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5932,
16,
1550,
461,
16,
1361,
7108,
16,
12247,
16,
1361,
2979,
780,
16,
1361,
1621,
16,
1361,
743,
16,
268,
287,
538,
5931,
16,
1679,
9121,
2218,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5932,
16,
1550,
461,
16,
1361,
7108,
16,
12247,
16,
1361,
2979,
780,
16,
1361,
1621,
16,
1361,
743,
16,
268,
287,
538,
5931,
16,
1679,
9121,
2218,
2187,
... |
retval = False if operands: op = Decimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = [ op.value ] context.currentRecord.complete = True else: context.error("invalid syntax") retval = True return retval | op = Decimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = [ op.value ] context.currentRecord.complete = True else: context.error("invalid syntax") | def parse_DEC(self, context, operands): retval = False if operands: op = Decimal(" ".join(operands)) if op.isValid(): context.currentRecord.code = [ op.value ] context.currentRecord.complete = True else: context.error("invalid syntax") retval = True return retval | 0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/0c60b51cc3a2e291ba9533bb9ab17f2ef2a0018f/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1639,
39,
12,
2890,
16,
819,
16,
14883,
4672,
1061,
273,
11322,
2932,
3552,
5701,
12,
4063,
5708,
3719,
309,
1061,
18,
26810,
13332,
819,
18,
2972,
2115,
18,
710,
273,
306,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1639,
39,
12,
2890,
16,
819,
16,
14883,
4672,
1061,
273,
11322,
2932,
3552,
5701,
12,
4063,
5708,
3719,
309,
1061,
18,
26810,
13332,
819,
18,
2972,
2115,
18,
710,
273,
306,
1... |
if not os.path.isdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ) | if not os.path.isdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ) | def check(self): global mechanize if not self['global']['urllib'] and not mechanize: print >> sys.stderr, 'Using urllib2 instead of mechanize. setting urllib = True' self['global']['urllib'] = True if 'saveFile' not in self['global'] or self['global']['saveFile'] == None: self['global']['saveFile'] = u'savedstate.dat'... | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
7736,
11527,
22,
3560,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
7736,
11527,
22,
3560,... |
self.__format_results("\n".join(results)) | def postprocess(self): self.__format_results("\n".join(self.results)) | def execute(self, iterations = 1, nprocs = None, args = ''): # only supports combined server+client model at the moment # should support separate I suppose, but nobody uses it if not nprocs: nprocs = self.job.cpu_count() args += ' %s' % nprocs results = [] profilers = self.job.profilers if not profilers.only(): for i i... | eab63064df0583e1ca8e90cd53f28c2459d47045 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/eab63064df0583e1ca8e90cd53f28c2459d47045/tbench.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
290,
27537,
273,
599,
16,
833,
273,
875,
4672,
468,
1338,
6146,
8224,
1438,
15,
2625,
938,
622,
326,
10382,
468,
1410,
2865,
9004,
467,
1169,
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,
1836,
12,
2890,
16,
11316,
273,
404,
16,
290,
27537,
273,
599,
16,
833,
273,
875,
4672,
468,
1338,
6146,
8224,
1438,
15,
2625,
938,
622,
326,
10382,
468,
1410,
2865,
9004,
467,
1169,
4... |
None, [], | None, [], | def fl_show_msg(p1): """ fl_show_msg(p1) """ _fl_show_msg(p1) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
4500,
67,
3576,
12,
84,
21,
4672,
3536,
1183,
67,
4500,
67,
3576,
12,
84,
21,
13,
3536,
225,
389,
2242,
67,
4500,
67,
3576,
12,
84,
21,
13,
282,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
4500,
67,
3576,
12,
84,
21,
4672,
3536,
1183,
67,
4500,
67,
3576,
12,
84,
21,
13,
3536,
225,
389,
2242,
67,
4500,
67,
3576,
12,
84,
21,
13,
282,
2,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.