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 |
|---|---|---|---|---|---|---|
os.execvp(cmdArray[0],cmdArray) | os.execvp(self.cmd[0], self.cmd) | def launch(self): self.logger.log(Log.DEBUG, "BasicPipelineLauncher:launch") | 5a733a6a8899f54127a37b2c9b6348dc63bf661f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/5a733a6a8899f54127a37b2c9b6348dc63bf661f/BasicPipelineLauncher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
2890,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8252,
8798,
28820,
30,
20738,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
12,
2890,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8252,
8798,
28820,
30,
20738,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
'pyasn1.codec.der' ], license="BSD" | 'pyasn1.codec.der' ] | def howto_install_setuptools(): print """Error: You need setuptools Python package! | a863b43b7cdfaf34d47395ad3c2e8488a87d3ff0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8754/a863b43b7cdfaf34d47395ad3c2e8488a87d3ff0/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3661,
869,
67,
5425,
67,
542,
30693,
13332,
1172,
3536,
668,
30,
4554,
1608,
444,
30693,
6600,
2181,
5,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3661,
869,
67,
5425,
67,
542,
30693,
13332,
1172,
3536,
668,
30,
4554,
1608,
444,
30693,
6600,
2181,
5,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.writeSources(d.sourceTree) | self.writeSources(d.sourceTree, True) | def writePBXSourcesBuildPhase(self): w = self.file.write w("/* Begin PBXSourcesBuildPhase section */\n") for d in self.projects: w("\t%s = {\n" % d.phaseId[0]) w("\t\tisa = PBXSourcesBuildPhase;\n") w("\t\tbuildActionMask = 2147483647;\n") w("\t\tfiles = (\n") if d.usemaster: w("\t\t\t%s,\n" % d.masterbuildid) else: se... | a60ebba76722784f18efcbe8160429b6fe069496 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/a60ebba76722784f18efcbe8160429b6fe069496/xcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
20724,
60,
8628,
3116,
11406,
12,
2890,
4672,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
20819,
60,
8628,
3116,
11406,
2442,
1195,
64,
82,
7923,
364,
302,
316,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
20724,
60,
8628,
3116,
11406,
12,
2890,
4672,
341,
273,
365,
18,
768,
18,
2626,
341,
2932,
20308,
14323,
20819,
60,
8628,
3116,
11406,
2442,
1195,
64,
82,
7923,
364,
302,
316,
365,... |
security.declareProtected(permissions.ModifyPortalContent, | security.declareProtected(CMFCorePermissions.ModifyPortalContent, | def setDefaults(self, instance): """Only call during object initialization. Sets fields to schema defaults """ ## XXX think about layout/vs dyn defaults for field in self.values(): if field.getName().lower() == 'id': continue if field.type == "reference": continue | b9a35d44b511b5a532334179a24412a4695367d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/b9a35d44b511b5a532334179a24412a4695367d1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22399,
12,
2890,
16,
791,
4672,
3536,
3386,
745,
4982,
733,
10313,
18,
11511,
1466,
358,
1963,
3467,
3536,
7541,
11329,
15507,
2973,
3511,
19,
6904,
19417,
3467,
364,
652,
316,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22399,
12,
2890,
16,
791,
4672,
3536,
3386,
745,
4982,
733,
10313,
18,
11511,
1466,
358,
1963,
3467,
3536,
7541,
11329,
15507,
2973,
3511,
19,
6904,
19417,
3467,
364,
652,
316,
365,
18,
... |
[4*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 5^6 + 4*5^8 + O(5^9)] | [4*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 5^6 + 4*5^8 + 3*5^9 + O(5^10)] | def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction. | 65c3f320038580074d5807d5c1512949277d8800 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/65c3f320038580074d5807d5c1512949277d8800/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... |
itemref = self.data.pop() | try: itemref = self.data.pop() except KeyError: raise KeyError('pop from empty WeakSet') | def pop(self): while True: itemref = self.data.pop() item = itemref() if item is not None: return item | bf93b0470affd720a603805eb00c917a9bc39cc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/bf93b0470affd720a603805eb00c917a9bc39cc9/_weakrefset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
12,
2890,
4672,
1323,
1053,
30,
775,
30,
761,
1734,
273,
365,
18,
892,
18,
5120,
1435,
1335,
4999,
30,
1002,
4999,
2668,
5120,
628,
1008,
23632,
694,
6134,
761,
273,
761,
1734,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
12,
2890,
4672,
1323,
1053,
30,
775,
30,
761,
1734,
273,
365,
18,
892,
18,
5120,
1435,
1335,
4999,
30,
1002,
4999,
2668,
5120,
628,
1008,
23632,
694,
6134,
761,
273,
761,
1734,
1... |
width = context.get_form_value('width') height = context.get_form_value('height') | width = context.get_form_value('width', 48) height = context.get_form_value('height', 48) | def icon48(self, context): width = context.get_form_value('width') height = context.get_form_value('height') | d162186e5e1c01ab6665403ae5410fe5ca24c468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d162186e5e1c01ab6665403ae5410fe5ca24c468/images.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4126,
8875,
12,
2890,
16,
819,
4672,
1835,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
2819,
6134,
2072,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
4210,
6134,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4126,
8875,
12,
2890,
16,
819,
4672,
1835,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
2819,
6134,
2072,
273,
819,
18,
588,
67,
687,
67,
1132,
2668,
4210,
6134,
2,
-100,
-100,
-100,
... |
EXPECT_EQ(GetServiceId(kNewClientId), 0u); | EXPECT_TRUE( Get%(upper_resource_name)sInfo(client_%(resource_name)s_id_) == NULL); | def WriteImmediateServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | ae51d195b0e1bfaba2243f005a1aba675395595f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ae51d195b0e1bfaba2243f005a1aba675395595f/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
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,
0,
0,
0,
0,
0,
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,
2598,
22651,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if fail_dump: f = file('.stgit-failed.patch', 'w+') f.write(diff) f.close() out.warn('Diff written to the .stgit-failed.patch file') raise | raise GitException('Diff does not apply cleanly') | def apply_patch(filename = None, diff = None, base = None, fail_dump = True, reject = False, strip = None): """Apply a patch onto the current or given index. There must not be any local changes in the tree, otherwise the command fails """ if diff is None: if filename: f = file(filename) else: f = sys.stdin diff = f.rea... | b56d87814e5986a03efa9079d482a5b020141794 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12366/b56d87814e5986a03efa9079d482a5b020141794/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
2272,
12,
3459,
273,
599,
16,
3122,
273,
599,
16,
1026,
273,
599,
16,
2321,
67,
8481,
273,
1053,
16,
4925,
273,
1083,
16,
2569,
273,
599,
4672,
3536,
7001,
279,
4729,
10170,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
2272,
12,
3459,
273,
599,
16,
3122,
273,
599,
16,
1026,
273,
599,
16,
2321,
67,
8481,
273,
1053,
16,
4925,
273,
1083,
16,
2569,
273,
599,
4672,
3536,
7001,
279,
4729,
10170,
... |
if debug_prints: print "remove breakpoint" | logger.log_text("remove breakpoint") | def removeBreakpoint(self): if debug_prints: print "remove breakpoint" if self.current_target is not None: self.debug.dont_stalk_at(self.pid, self.current_target) | 6d6079c7bcc0ba519b666a5d46e251aede9525d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7261/6d6079c7bcc0ba519b666a5d46e251aede9525d0/sehtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
20552,
12,
2890,
4672,
1194,
18,
1330,
67,
955,
2932,
4479,
18820,
7923,
309,
365,
18,
2972,
67,
3299,
353,
486,
599,
30,
365,
18,
4148,
18,
72,
1580,
67,
20852,
67,
270,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
20552,
12,
2890,
4672,
1194,
18,
1330,
67,
955,
2932,
4479,
18820,
7923,
309,
365,
18,
2972,
67,
3299,
353,
486,
599,
30,
365,
18,
4148,
18,
72,
1580,
67,
20852,
67,
270,
12,
2... |
raise AttributeError(_("Couldn't find tag '%s' in parent view !") % tag) | raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id) | def _find(node, node2): if node2.tag == 'xpath': res = node.xpath(node2.get('expr')) if res: return res[0] else: return None else: for n in node.getiterator(node2.tag): res = True if node2.tag == 'field': # only compare field names, a field can be only once in a given view # at a given level (and for multilevel express... | 5b67a3154e0e02212c6bd648ed6a5ebf91dc831e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5b67a3154e0e02212c6bd648ed6a5ebf91dc831e/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
12,
2159,
16,
756,
22,
4672,
309,
756,
22,
18,
2692,
422,
296,
18644,
4278,
400,
273,
756,
18,
18644,
12,
2159,
22,
18,
588,
2668,
8638,
26112,
309,
400,
30,
327,
400,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
12,
2159,
16,
756,
22,
4672,
309,
756,
22,
18,
2692,
422,
296,
18644,
4278,
400,
273,
756,
18,
18644,
12,
2159,
22,
18,
588,
2668,
8638,
26112,
309,
400,
30,
327,
400,
63,... |
testModule("hachoir_core.regex.parser") testModule("hachoir_core.regex.regex") | def main(): setlocale(LC_ALL, "C") hachoir_dir = os.path.dirname(__file__) sys.path.append(hachoir_dir) # Configure Hachoir for tests import hachoir_core.config as config config.use_i18n = False # Test documentation in doc/*.rst files testDoc('doc/hachoir-api.rst') testDoc('doc/internals.rst') testDoc('doc/regex.rst'... | 11bb8f5825f73ea992fc98de3649944a083ede34 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/11bb8f5825f73ea992fc98de3649944a083ede34/test_doc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
444,
6339,
12,
13394,
67,
4685,
16,
315,
39,
7923,
366,
497,
83,
481,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
2589,
18,
803,
18,
6923,
12,
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,
2774,
13332,
444,
6339,
12,
13394,
67,
4685,
16,
315,
39,
7923,
366,
497,
83,
481,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
972,
768,
972,
13,
2589,
18,
803,
18,
6923,
12,
76,
... | |
if len(unused_data) > 0: buffer = StringIO() buffer.write(data) while len(unused_data) > 0: self.decompressor = self._decompressor() buffer.write(self.decompressor.decompress(unused_data)) unused_data = self.decompressor.unused_data data = buffer.getvalue() buffer.close() if length > 0 and len(data) > length: self.... | data = buffer.getvalue() buffer.close() if length > 0 and len(data) > length: self.extra_data = StringIO(data) data = self.extra_data.read(length) | def read(self, length = -1): | d1387017305dd7667414e56a07f6db8fbd451b21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d1387017305dd7667414e56a07f6db8fbd451b21/Streams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
769,
273,
300,
21,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
769,
273,
300,
21,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __iter__(self): return 'a' | def keys(self): return 1 | def __iter__(self): return 'a' # XXX Not quite faithful to the SF bug... | e3406d9f0d5d06b424cea9459ca35f26e74487ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e3406d9f0d5d06b424cea9459ca35f26e74487ab/test_builtin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
404,
225,
468,
11329,
2288,
25102,
11087,
483,
2706,
358,
326,
21318,
7934,
2777,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1311,
12,
2890,
4672,
327,
404,
225,
468,
11329,
2288,
25102,
11087,
483,
2706,
358,
326,
21318,
7934,
2777,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
from tests.utils import testsFolder | global testsFolder | def setUp(self): self.cwd = os.getcwd() from tests.utils import testsFolder scriptDir=self.scriptDir if not os.path.isabs(scriptDir): scriptDir=os.path.join(testsFolder,scriptDir) | b05fb18f542c48f8ed9787d03cc67e728e204312 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7053/b05fb18f542c48f8ed9787d03cc67e728e204312/testutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
11089,
273,
1140,
18,
588,
11089,
1435,
2552,
7434,
3899,
2728,
1621,
33,
2890,
18,
4263,
1621,
309,
486,
1140,
18,
803,
18,
291,
5113,
12,
4263,
1621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
11089,
273,
1140,
18,
588,
11089,
1435,
2552,
7434,
3899,
2728,
1621,
33,
2890,
18,
4263,
1621,
309,
486,
1140,
18,
803,
18,
291,
5113,
12,
4263,
1621,
... |
print "NONE" | def cmpclasses(clist): ref = clist[0] for c in clist[1:]: if c<>ref: return 0 return 1 | 7cc437673a33909d6c887618cf3c88643040c0f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/7cc437673a33909d6c887618cf3c88643040c0f2/OWClassifiedDataTable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
4701,
12,
830,
376,
4672,
1278,
273,
927,
376,
63,
20,
65,
364,
276,
316,
927,
376,
63,
21,
30,
14542,
309,
276,
29667,
1734,
30,
327,
374,
327,
404,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9411,
4701,
12,
830,
376,
4672,
1278,
273,
927,
376,
63,
20,
65,
364,
276,
316,
927,
376,
63,
21,
30,
14542,
309,
276,
29667,
1734,
30,
327,
374,
327,
404,
2,
-100,
-100,
-100,
-100,... | |
date_time=time.localtime(time.time())) | date_time=time.localtime(time.time())[:6]) | def writestr(self, zinfo_or_arcname, bytes): """Write a file into the archive. The contents is the string 'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.""" if not isinstance(zinfo_or_arcname, ZipInfo): zinfo = ZipInfo(filename=zinfo_or_arcname, date_time=time.localtim... | 4ad87a0efaa5e64946b76e8d66f0e69f4b7d72d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/4ad87a0efaa5e64946b76e8d66f0e69f4b7d72d2/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7262,
313,
12,
2890,
16,
998,
1376,
67,
280,
67,
11828,
529,
16,
1731,
4672,
3536,
3067,
279,
585,
1368,
326,
5052,
18,
225,
1021,
2939,
353,
326,
533,
296,
3890,
10332,
225,
296,
94,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7262,
313,
12,
2890,
16,
998,
1376,
67,
280,
67,
11828,
529,
16,
1731,
4672,
3536,
3067,
279,
585,
1368,
326,
5052,
18,
225,
1021,
2939,
353,
326,
533,
296,
3890,
10332,
225,
296,
94,
... |
Inverse of the link functin. Just a placeholder. | Inverse of the link function. Just a placeholder. | def inverse(self, z): """ Inverse of the link functin. Just a placeholder. | 3bc1e5c887942a5e791ddd2d9ef2c82674df8885 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/3bc1e5c887942a5e791ddd2d9ef2c82674df8885/links.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8322,
12,
2890,
16,
998,
4672,
3536,
657,
2476,
434,
326,
1692,
12882,
267,
18,
225,
12526,
279,
6695,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8322,
12,
2890,
16,
998,
4672,
3536,
657,
2476,
434,
326,
1692,
12882,
267,
18,
225,
12526,
279,
6695,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
except: | except NameError: | def _init_categories(categories=categories): for k,v in globals().items(): if k[:3] == 'LC_': categories[k] = v | 0c65c856c330d7ecf07a8ad91527d3baf04f3022 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0c65c856c330d7ecf07a8ad91527d3baf04f3022/locale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
8995,
12,
8995,
33,
8995,
4672,
364,
417,
16,
90,
316,
10941,
7675,
3319,
13332,
309,
417,
10531,
23,
65,
422,
296,
13394,
67,
4278,
6477,
63,
79,
65,
273,
331,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
8995,
12,
8995,
33,
8995,
4672,
364,
417,
16,
90,
316,
10941,
7675,
3319,
13332,
309,
417,
10531,
23,
65,
422,
296,
13394,
67,
4278,
6477,
63,
79,
65,
273,
331,
2,
-10... |
module=func.__module__, dict=func.__dict__, | module=tempMod, dict=func.__dict__, | >>> def f(self, x=1, y=2, *args, **kw): pass | a08def734948b314b88b13793e3091404bd92e8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/34/a08def734948b314b88b13793e3091404bd92e8d/decorator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
2890,
16,
619,
33,
21,
16,
677,
33,
22,
16,
380,
1968,
16,
2826,
9987,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
2890,
16,
619,
33,
21,
16,
677,
33,
22,
16,
380,
1968,
16,
2826,
9987,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if verbose: stderr.write( "@@@ %i duplicate sigs out of %i\n" %(dups, n)) | def canon(graph, c0=0): "Try one pass at canonicalizing this using 1 step sigs" nextBnode = 0 bnodes = {} pattern = [] signature = [] canonical = {} for j in range(len(graph)): triple = graph[j] pat = [] for i in range(3): if triple[i].startswith("_:"): b = bnodes.get(triple[i], None) if b == None: b = nextBnode nextBn... | 93ef9692764039652174ae73633b295ae7797b4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/93ef9692764039652174ae73633b295ae7797b4d/cant.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29147,
12,
4660,
16,
276,
20,
33,
20,
4672,
315,
7833,
1245,
1342,
622,
7378,
6894,
333,
1450,
404,
2235,
3553,
87,
6,
1024,
38,
2159,
273,
374,
324,
4690,
273,
2618,
1936,
273,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29147,
12,
4660,
16,
276,
20,
33,
20,
4672,
315,
7833,
1245,
1342,
622,
7378,
6894,
333,
1450,
404,
2235,
3553,
87,
6,
1024,
38,
2159,
273,
374,
324,
4690,
273,
2618,
1936,
273,
5378,
... | |
if activity: | if activity is not None: | def convertToTextFile(fromPath, toPath, serializer=PickleSerializer, activity=None): if activity: activity.update(totalWork=None, msg=_(u"Counting records...")) input = open(fromPath, "rb") load = serializer.loader(input) i = 0 while True: record = load() if not record: break i += 1 input.close() activity.update(total... | 47ace3edcac6912ffb5dfe00f96f9b282b9f8217 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9228/47ace3edcac6912ffb5dfe00f96f9b282b9f8217/dumpreload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
1528,
812,
12,
2080,
743,
16,
21467,
16,
6340,
33,
17968,
298,
6306,
16,
5728,
33,
7036,
4672,
225,
309,
5728,
353,
486,
599,
30,
5728,
18,
2725,
12,
4963,
2421,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8137,
1528,
812,
12,
2080,
743,
16,
21467,
16,
6340,
33,
17968,
298,
6306,
16,
5728,
33,
7036,
4672,
225,
309,
5728,
353,
486,
599,
30,
5728,
18,
2725,
12,
4963,
2421,
33,
7036,
16,
... |
return setattr(self, fixname(attr), val) | return setattr(self, self.fixname(attr), val) | def __setitem__(self, attr, val): return setattr(self, fixname(attr), val) | 5331884b7b51163f724d1e93d9a1dd81be57a76c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/5331884b7b51163f724d1e93d9a1dd81be57a76c/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
1604,
16,
1244,
4672,
327,
9241,
12,
2890,
16,
2917,
529,
12,
1747,
3631,
1244,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
1604,
16,
1244,
4672,
327,
9241,
12,
2890,
16,
2917,
529,
12,
1747,
3631,
1244,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
sendWindAlert(id, db[id].maxSPED, db[id].maxDrctTxt, myThreshold) | def windGustAlert(): for id in db.keys(): myThreshold = _WIND_THRESHOLD if (id == 84 or id == 40 or id == 9 or id == 78 or id == 49): myThreshold += 7 if (id == 49 or id == 618 or id == 1): myThreshold += 40 # If no obs during this period, no alerts # If no obs during this period, no alerts if (db[id].valid == None): c... | 7965b7e2dc32eb4373b3870075b83b9773078d80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11189/7965b7e2dc32eb4373b3870075b83b9773078d80/ingest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17064,
43,
641,
13298,
13332,
364,
612,
316,
1319,
18,
2452,
13332,
3399,
7614,
273,
389,
16597,
67,
23840,
309,
261,
350,
422,
23421,
578,
612,
422,
8063,
578,
612,
422,
2468,
578,
612,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17064,
43,
641,
13298,
13332,
364,
612,
316,
1319,
18,
2452,
13332,
3399,
7614,
273,
389,
16597,
67,
23840,
309,
261,
350,
422,
23421,
578,
612,
422,
8063,
578,
612,
422,
2468,
578,
612,... | |
mid = objid._get_id(cr, uid, 'document', 'dir_calendars') if not mid: return False root_id = objid.read(cr, uid, mid, ['res_id'])['res_id'] root_cal_dir = self.browse(cr,uid, root_id, context=context) return root_cal_dir.name | calendar_dir_id = data_pool.get_object(cr, uid, 'caldav', 'document_directory_calendars0') return calendar_dir_id.name | def _get_root_calendar_directory(self, cr, uid, context=None): objid = self.pool.get('ir.model.data') try: mid = objid._get_id(cr, uid, 'document', 'dir_calendars') if not mid: return False root_id = objid.read(cr, uid, mid, ['res_id'])['res_id'] root_cal_dir = self.browse(cr,uid, root_id, context=context) return root_... | f33fb9e7bbe1a8960c3e8bbfdfe1de86e3821010 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f33fb9e7bbe1a8960c3e8bbfdfe1de86e3821010/calendar_collection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3085,
67,
11650,
67,
5149,
12,
2890,
16,
4422,
16,
4555,
16,
819,
33,
7036,
4672,
1081,
350,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
775,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3085,
67,
11650,
67,
5149,
12,
2890,
16,
4422,
16,
4555,
16,
819,
33,
7036,
4672,
1081,
350,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
775,
30,
... |
choices=("release", "quick", "debug"), | choices=("release", "quick", "debug", "debug_optimized"), | def process_args(self, args, default_repository=None): cold_start = default_repository is not None if (len(args) == 0): args = ["--help"] if (default_repository is None): command_name = "libtbx.configure" else: command_name = "libtbx/configure.py" parser = option_parser( usage="%s [options] module_name[=redirection_pat... | d5a015cdf902dcd3c7f03c78496071b5468f5c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/d5a015cdf902dcd3c7f03c78496071b5468f5c8a/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1968,
12,
2890,
16,
833,
16,
805,
67,
9071,
33,
7036,
4672,
645,
72,
67,
1937,
273,
805,
67,
9071,
353,
486,
599,
309,
261,
1897,
12,
1968,
13,
422,
374,
4672,
833,
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,
1207,
67,
1968,
12,
2890,
16,
833,
16,
805,
67,
9071,
33,
7036,
4672,
645,
72,
67,
1937,
273,
805,
67,
9071,
353,
486,
599,
309,
261,
1897,
12,
1968,
13,
422,
374,
4672,
833,
273,
... |
self.AddError(_("Bad user - %s.") % sender, trunc=0) | self.AddError(_("Bad user - %(sender)s."), trunc=0) | def ProcessPasswordCmd(self, args, cmd, mail): if len(args) not in [0,2]: self.AddError(_("Usage: password [<oldpw> <newpw>]")) return sender = mail.GetSender() if len(args) == 0: # Mail user's password to user user = self.FindUser(sender) if user and self.passwords.has_key(user): self.AddToResponse(_("You are subscrib... | bfed9ae359e2eea17ad856f6284f7870ede7b63f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/bfed9ae359e2eea17ad856f6284f7870ede7b63f/MailCommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
3913,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
309,
562,
12,
1968,
13,
486,
316,
306,
20,
16,
22,
14542,
365,
18,
986,
668,
24899,
2932,
5357,
30,
2201,
306,
32,
1673... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
3913,
5931,
12,
2890,
16,
833,
16,
1797,
16,
4791,
4672,
309,
562,
12,
1968,
13,
486,
316,
306,
20,
16,
22,
14542,
365,
18,
986,
668,
24899,
2932,
5357,
30,
2201,
306,
32,
1673... |
sage: R = k['x'] sage: k(R(3)) 3 Nonconstant polynomials do not coerce: | sage: k(x^2) a + 3 sage: R.<x> = GF(5)[] sage: k(x^3-2*x+1) 2*a + 4 | def __call__(self, x): r""" Coerce x into the finite field. | 70aa9021f3742d2afe1b54d4ef7874c52f2025b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/70aa9021f3742d2afe1b54d4ef7874c52f2025b0/finite_field_ext_pari.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
436,
8395,
7695,
2765,
619,
1368,
326,
25922,
652,
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,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
436,
8395,
7695,
2765,
619,
1368,
326,
25922,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.change_fuse_mode(self.w.fuse_mode_combox.currentText()) | self.recompute_fusables = True self.change_fuse_mode(self.w.fuse_mode_combox.currentText()) | def Enter(self): modifyMode.Enter(self) self.change_fuse_mode(self.w.fuse_mode_combox.currentText()) # Syncs the dashboard and glpane. | 36ecf86cd310caee386f9f47f59775c487387178 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/36ecf86cd310caee386f9f47f59775c487387178/fusechunksMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
5612,
2309,
18,
10237,
12,
2890,
13,
365,
18,
266,
9200,
67,
74,
407,
1538,
273,
1053,
365,
18,
3427,
67,
74,
1202,
67,
3188,
12,
2890,
18,
91,
18,
74,
1202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15439,
12,
2890,
4672,
5612,
2309,
18,
10237,
12,
2890,
13,
365,
18,
266,
9200,
67,
74,
407,
1538,
273,
1053,
365,
18,
3427,
67,
74,
1202,
67,
3188,
12,
2890,
18,
91,
18,
74,
1202,
... |
print 'connecting to', hostname if not samepw: if username == '': username = raw_input('username: ') if password == '': password = getpass.getpass('password: ') | def main (): global CMD_HELP try: optlist, args = getopt.getopt(sys.argv[1:], 'h?', ['help','h','?','samepw','username=','password=']) except Exception, e: print str(e) exit_with_usage() options = dict(optlist) # There are a million ways to cry for help. These are but a few of them. if [elem for elem in options if ele... | a4de0f5054c1cb5e16268d1d0087a903f6f8d938 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a4de0f5054c1cb5e16268d1d0087a903f6f8d938/hive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1832,
30,
2552,
18052,
67,
27396,
225,
775,
30,
2153,
1098,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
35,
2187,
10228,
5201,
17023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1832,
30,
2552,
18052,
67,
27396,
225,
775,
30,
2153,
1098,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
35,
2187,
10228,
5201,
17023,
... | |
color=istate.fgcolor) | color=unicode(istate.fgcolor)) | def mobimlize_content(self, tag, text, bstate, istates): 'Convert text content' if text or tag != 'br': bstate.content = True istate = istates[-1] para = bstate.para if tag in SPECIAL_TAGS and not text: para = para if para is not None else bstate.body elif para is None or tag in ('td', 'th'): body = bstate.body if bsta... | 3dd8767ecb3fc509446b066127705cf7b83a7f9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/3dd8767ecb3fc509446b066127705cf7b83a7f9c/mobiml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
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,
312,
947,
381,
80,
554,
67,
1745,
12,
2890,
16,
1047,
16,
977,
16,
324,
2019,
16,
277,
7992,
4672,
296,
2723,
977,
913,
11,
309,
977,
578,
1047,
480,
296,
2848,
4278,
324,
2019,
18,
... |
updateVersions(version, workingDir) | updateVersions(version, workingDir, base_dir) | def release(): # We start by determining whether the version passed in is a valid one if len(sys.argv) < 2: helpAndExit() base_dir = os.getcwd() version = validateVersion(sys.argv[1]) print "Releasing Infinispan version " + version print "Please stand by!" ## Release order: # Step 1: Tag in SVN newVersion = "%s/tags/%... | 9fc43e2136f3e38733f93df7b17599075f1fadbd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14175/9fc43e2136f3e38733f93df7b17599075f1fadbd/release.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
13332,
468,
1660,
787,
635,
23789,
2856,
326,
1177,
2275,
316,
353,
279,
923,
1245,
309,
562,
12,
9499,
18,
19485,
13,
411,
576,
30,
2809,
29000,
1435,
1026,
67,
1214,
273,
1140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
13332,
468,
1660,
787,
635,
23789,
2856,
326,
1177,
2275,
316,
353,
279,
923,
1245,
309,
562,
12,
9499,
18,
19485,
13,
411,
576,
30,
2809,
29000,
1435,
1026,
67,
1214,
273,
1140,
... |
logger = logging.getLogger('init') logger.warning('could not eval(%s) for %s in %s' % (a_eval, node.get('name'), context), exc_info=True) return "" | logger = logging.getLogger('init') logger.warning('could not eval(%s) for %s in %s' % (a_eval, node.get('name'), context), exc_info=True) return "" | def _eval_xml(self, node, pool, cr, uid, idref, context=None): if context is None: context = {} if node.tag in ('field','value'): t = node.get('type','char') f_model = node.get('model', '').encode('utf-8') if node.get('search'): f_search = node.get("search",'').encode('utf-8') f_use = node.get("use",'id').encode('utf-8... | 67cdeb3fa00f7b80af3a3411c9529c2199e0def0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/67cdeb3fa00f7b80af3a3411c9529c2199e0def0/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
67,
2902,
12,
2890,
16,
756,
16,
2845,
16,
4422,
16,
4555,
16,
612,
1734,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
756,
18,
2692,
316,
7707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8622,
67,
2902,
12,
2890,
16,
756,
16,
2845,
16,
4422,
16,
4555,
16,
612,
1734,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
756,
18,
2692,
316,
7707,
... |
req.args['format'] = match.group(1) and 'raw' or '' | if match.group(1): req.args['format'] = 'raw' | def match_request(self, req): match = re.match(r'^/(raw-)?attachment/([^/]+)(?:[/:](.*))?$', req.path_info) if match: req.args['format'] = match.group(1) and 'raw' or '' req.args['type'] = match.group(2) req.args['path'] = match.group(3).replace(':', '/') return True | 64516b007d071661098d80634a0ab48cea725b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/64516b007d071661098d80634a0ab48cea725b9b/attachment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
845,
67,
2293,
12,
2890,
16,
1111,
4672,
845,
273,
283,
18,
1916,
12,
86,
19856,
19,
12,
1899,
17,
9945,
11461,
19,
8178,
19,
7941,
23203,
16880,
65,
7444,
24783,
8,
2187,
1111,
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,
845,
67,
2293,
12,
2890,
16,
1111,
4672,
845,
273,
283,
18,
1916,
12,
86,
19856,
19,
12,
1899,
17,
9945,
11461,
19,
8178,
19,
7941,
23203,
16880,
65,
7444,
24783,
8,
2187,
1111,
18,
... |
for phase in phase.next_phase_ids: if phase.state in ['draft', 'open', 'pending']: id_cal = phase.project_id.resource_calendar_id and phase.project_id.resource_calendar_id.id or False self.generate_schedule(cr, uid, [phase.id], date_start, id_cal, context=context) | for next_phase in phase.next_phase_ids: if next_phase.state in ['draft', 'open', 'pending']: id_cal = next_phase.project_id.resource_calendar_id and next_phase.project_id.resource_calendar_id.id or False self.generate_schedule(cr, uid, [next_phase.id], date_start+timedelta(days=1), id_cal, context=context) | def phase(): effort = duration | db3ecb06499f378d9226420f5807fbb84b33128a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/db3ecb06499f378d9226420f5807fbb84b33128a/project_long_term.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
13332,
23445,
273,
3734,
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... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
13332,
23445,
273,
3734,
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,
... |
self.logger.info("dict: Converting a tuple...") | self.logger.debug("dict: Converting a tuple...") | def _convert_dict(self, dict_node, id, name): d = {} for (k, v) in dict_node.items(): if isinstance(v, dict): self.logger.info("dict: You have a special type stored at %s" % k) if "ref" in v: self.logger.info("dict/ref: k,v = %s,%s" % (k, v)) d[k] = self._convert_ref(v["ref"], "%s.dict['%s']" % (name, k)) self.logger.i... | f640b15368e4d3037d291c060bcc1380e557323f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/f640b15368e4d3037d291c060bcc1380e557323f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6283,
67,
1576,
12,
2890,
16,
2065,
67,
2159,
16,
612,
16,
508,
4672,
302,
273,
2618,
364,
261,
79,
16,
331,
13,
316,
2065,
67,
2159,
18,
3319,
13332,
309,
1549,
12,
90,
16,
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,
6283,
67,
1576,
12,
2890,
16,
2065,
67,
2159,
16,
612,
16,
508,
4672,
302,
273,
2618,
364,
261,
79,
16,
331,
13,
316,
2065,
67,
2159,
18,
3319,
13332,
309,
1549,
12,
90,
16,
2... |
fti[0]['name']='I18NLayer' fti[0]['filter_content_types']=1 | fti['name']='I18NLayer' fti['filter_content_types']=1 | def modify_fti(fti): fti[0]['name']='I18NLayer' fti[0]['filter_content_types']=1 # NOTE: we better hide the useless actions rather than delete them # to keep compatibilty with templates requesting them for a in fti[0]['actions']: if a['id'] in ('references', 'metadata'): a['visible'] = 0 return fti | f4e216508a631499af383387b4b88dcf700720d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f4e216508a631499af383387b4b88dcf700720d7/I18NLayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
67,
1222,
77,
12,
1222,
77,
4672,
284,
9096,
3292,
529,
3546,
2218,
45,
2643,
50,
4576,
11,
284,
9096,
3292,
2188,
67,
1745,
67,
2352,
3546,
33,
21,
468,
5219,
30,
732,
7844,
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,
5612,
67,
1222,
77,
12,
1222,
77,
4672,
284,
9096,
3292,
529,
3546,
2218,
45,
2643,
50,
4576,
11,
284,
9096,
3292,
2188,
67,
1745,
67,
2352,
3546,
33,
21,
468,
5219,
30,
732,
7844,
6... |
except AttributeError, KeyError: | except (AttributeError, KeyError): | def getDateTimeFormatter(self, name): "See ZopeProducts.LocaleProvider.interfaces.ILocale" try: pattern = self.getDefaultCalendar().datetimePattern except AttributeError, KeyError: return self._getNextLocale().getDateTimeFormatter(name) date_pat = self.getDateFormatter(name).getPattern() time_pat = self.getTimeFormatte... | 775291d9e848c82a3c128f8f1966e04c51d49737 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9827/775291d9e848c82a3c128f8f1966e04c51d49737/locales.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25562,
5074,
12,
2890,
16,
508,
4672,
315,
9704,
2285,
1306,
13344,
18,
3916,
2249,
18,
15898,
18,
45,
3916,
6,
775,
30,
1936,
273,
365,
18,
588,
1868,
7335,
7675,
6585,
3234,
1335,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25562,
5074,
12,
2890,
16,
508,
4672,
315,
9704,
2285,
1306,
13344,
18,
3916,
2249,
18,
15898,
18,
45,
3916,
6,
775,
30,
1936,
273,
365,
18,
588,
1868,
7335,
7675,
6585,
3234,
1335,
26... |
query += ', %s=priority_area' % area_indexname | query += ', resource_area_exp=priority_area' | def searchExperts(self, priority_area='', focus=[], country='', free_text='', skey='', rkey=0, perform_search='', meta='', REQUEST=None): """ """ res_per_page = 10 query = '' res = [] results = [] lang = self.gl_get_selected_language() if meta == 'prj': meta = '[METATYPE_NYSMAPPROJECT]' area_indexname = 'resource_area'... | 6d3d24ff623c3c2b26c9d137218bc046ea8f38f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/6d3d24ff623c3c2b26c9d137218bc046ea8f38f1/SMAPSite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
424,
672,
87,
12,
2890,
16,
4394,
67,
5036,
2218,
2187,
7155,
22850,
6487,
5251,
2218,
2187,
4843,
67,
955,
2218,
2187,
272,
856,
2218,
2187,
436,
856,
33,
20,
16,
3073,
67,
3072... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
424,
672,
87,
12,
2890,
16,
4394,
67,
5036,
2218,
2187,
7155,
22850,
6487,
5251,
2218,
2187,
4843,
67,
955,
2218,
2187,
272,
856,
2218,
2187,
436,
856,
33,
20,
16,
3073,
67,
3072... |
print >>sys.stderr, "\tburst events: %d" % len(self.sngl_burst_table) | if self.sngl_burst_table is not None: print >>sys.stderr, "\tburst events: %d" % len(self.sngl_burst_table) | def summarize(self, live_time_program, verbose = False): """ Compute and record some summary information about the database. Call this after all the data has been inserted, and before you want any of this information. """ cursor = self.connection.cursor() | 94f9f8c27f64696c4a1a2b050dbaf08fef12789b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/94f9f8c27f64696c4a1a2b050dbaf08fef12789b/SnglBurstUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28712,
12,
2890,
16,
8429,
67,
957,
67,
12890,
16,
3988,
273,
1083,
4672,
3536,
8155,
471,
1409,
2690,
4916,
1779,
2973,
326,
2063,
18,
225,
3049,
333,
1839,
777,
326,
501,
711,
2118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28712,
12,
2890,
16,
8429,
67,
957,
67,
12890,
16,
3988,
273,
1083,
4672,
3536,
8155,
471,
1409,
2690,
4916,
1779,
2973,
326,
2063,
18,
225,
3049,
333,
1839,
777,
326,
501,
711,
2118,
... |
Mylib.Subdirs("src") | Mylib.Subdirs(env, "src") | def MyCScan(node, env, target): deps = c_scanner(node, env, target) global Scanned n = str(node) try: Scanned[n] = Scanned[n] + 1 except KeyError: Scanned[n] = 1 write_out('MyCScan.out', Scanned) return deps | 28572233073e043940796083bf9b7021569af305 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/28572233073e043940796083bf9b7021569af305/scan-once.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8005,
39,
7972,
12,
2159,
16,
1550,
16,
1018,
4672,
8740,
273,
276,
67,
26842,
12,
2159,
16,
1550,
16,
1018,
13,
225,
2552,
2850,
10041,
290,
273,
609,
12,
2159,
13,
775,
30,
2850,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8005,
39,
7972,
12,
2159,
16,
1550,
16,
1018,
4672,
8740,
273,
276,
67,
26842,
12,
2159,
16,
1550,
16,
1018,
13,
225,
2552,
2850,
10041,
290,
273,
609,
12,
2159,
13,
775,
30,
2850,
1... |
auxTableList.append(auxTable) | auxTableList.append( auxTable ) | def _createTables( self, tableDict, force=False ): """ tableDict: tableName: { 'Fields' : { 'Field': 'Description' }, 'ForeignKeys': {'Field': 'Table' }, 'PrimaryKey': 'Id', 'Indexes': { 'Index': [] }, 'UniqueIndexes': { 'Index': [] }, 'Engine': 'InnoDB' } only 'Fields' is a mandatory key. | 0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
33,
8381,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
6905,
12,
365,
16,
1014,
5014,
16,
2944,
33,
8381,
262,
30,
3536,
1014,
5014,
30,
4775,
30,
288,
296,
2314,
11,
294,
288,
296,
974,
4278,
296,
3291,
11,
19879,
296,
28285,
... |
self.pInfo.SetHDC(self.pInfo.CreatePrinterDC()) | self.pInfo.CreatePrinterDC() return self._obj_.OnInitDialog() | def OnInitDialog(self): self.pInfo.SetHDC(self.pInfo.CreatePrinterDC()) | 81be9edd0818d0cc5675a75bd7b6fce36ac54c3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/81be9edd0818d0cc5675a75bd7b6fce36ac54c3d/dialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
6353,
12,
2890,
4672,
365,
18,
84,
966,
18,
694,
44,
5528,
12,
2890,
18,
84,
966,
18,
1684,
12149,
5528,
10756,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
6353,
12,
2890,
4672,
365,
18,
84,
966,
18,
694,
44,
5528,
12,
2890,
18,
84,
966,
18,
1684,
12149,
5528,
10756,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if char is None or char == ")": | if char is None: raise error, "unexpected end of pattern" if char == ")": | def _parse(source, state): # parse a simple pattern subpattern = SubPattern(state) while 1: if source.next in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if state.flags & SRE_FLAG_VERBOSE: # skip whitespace and comments if this in WHITESPACE: continue if this ==... | 470ea5ab9493993b0e65842db2aa412ed9807e37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/470ea5ab9493993b0e65842db2aa412ed9807e37/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
919,
4672,
468,
1109,
279,
4143,
1936,
225,
720,
4951,
273,
2592,
3234,
12,
2019,
13,
225,
1323,
404,
30,
225,
309,
1084,
18,
4285,
316,
7566,
96,
3113,
7310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
12,
3168,
16,
919,
4672,
468,
1109,
279,
4143,
1936,
225,
720,
4951,
273,
2592,
3234,
12,
2019,
13,
225,
1323,
404,
30,
225,
309,
1084,
18,
4285,
316,
7566,
96,
3113,
7310,
... |
queue name=audio max-size-buffers=50 | seamless-queue name=audio max-size-buffers=50 | def __init__(self, options, name="player"): Thread.__init__(self, name) | e199149feffd28213ee739392b3d88b6b06cb8fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/e199149feffd28213ee739392b3d88b6b06cb8fa/dvdplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
1546,
14872,
6,
4672,
4884,
16186,
2738,
972,
12,
2890,
16,
508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
702,
16,
508,
1546,
14872,
6,
4672,
4884,
16186,
2738,
972,
12,
2890,
16,
508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if len(matches) == 0: | if not matches: | def file_should_exist(self, path, msg=None): """Fails unless the given path points to an existing file. The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b'... | 6f8bd1e5c5b0db8d92d174d89dc27677542321fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/6f8bd1e5c5b0db8d92d174d89dc27677542321fb/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
13139,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
3143,
358,
392,
2062,
585,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
13139,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
3143,
358,
392,
2062,
585,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
... |
global status, flooder, targetip, targethost, timeout, subsite, message, port, method, threads, wait, random, speed | global status, flooder, targetip, timeout, subsite, message, port, method, threads, wait, random, speed | def lazerStartHook(event): global status, flooder, targetip, targethost, timeout, subsite, message, port, method, threads, wait, random, speed print "FIRING MAH LAZ000000R!" if status == START: if flooder != None: flooder.stop() if (targetip == None and targethost == None) or port == None: print "no target set" return... | 63ec690122fe779c11d7de86f591257b1412dea7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13624/63ec690122fe779c11d7de86f591257b1412dea7/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1561,
264,
1685,
5394,
12,
2575,
4672,
2552,
1267,
16,
20802,
5350,
16,
1018,
625,
16,
2021,
16,
720,
4256,
16,
883,
16,
1756,
16,
707,
16,
7403,
16,
2529,
16,
2744,
16,
8632,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
1561,
264,
1685,
5394,
12,
2575,
4672,
2552,
1267,
16,
20802,
5350,
16,
1018,
625,
16,
2021,
16,
720,
4256,
16,
883,
16,
1756,
16,
707,
16,
7403,
16,
2529,
16,
2744,
16,
8632,
1... |
mailbox.PortableUnixMailbox.__init__(self, fp, email.message_from_file) | mailbox.PortableUnixMailbox.__init__(self, fp, _safeparser) | def __init__(self, fp): mailbox.PortableUnixMailbox.__init__(self, fp, email.message_from_file) | a554ebe6a034aa4b2f8d66d0f8c48eec427de347 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/a554ebe6a034aa4b2f8d66d0f8c48eec427de347/Mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
14187,
18,
2617,
429,
18729,
30239,
16186,
2738,
972,
12,
2890,
16,
4253,
16,
2699,
18,
2150,
67,
2080,
67,
768,
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,
1001,
2738,
972,
12,
2890,
16,
4253,
4672,
14187,
18,
2617,
429,
18729,
30239,
16186,
2738,
972,
12,
2890,
16,
4253,
16,
2699,
18,
2150,
67,
2080,
67,
768,
13,
2,
-100,
-100,
-100,
-10... |
super(wxInPlaceEditor, self).__init__(style=wx.TE_PROCESS_ENTER | wx.NO_BORDER, | style=wx.TE_PROCESS_ENTER | wx.NO_BORDER if '__WXGTK__' in wx.PlatformInfo: style |= wx.TE_MULTILINE super(wxInPlaceEditor, self).__init__(style=style, | def __init__(self, *arguments, **keywords): super(wxInPlaceEditor, self).__init__(style=wx.TE_PROCESS_ENTER | wx.NO_BORDER, *arguments, **keywords) self.item = None self.Bind(wx.EVT_TEXT_ENTER, self.OnTextEnter) self.Bind(wx.EVT_KILL_FOCUS, self.OnTextEnter) self.Hide() | 0a27f4ca2cd3fd79d460f99220e89241993dd034 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0a27f4ca2cd3fd79d460f99220e89241993dd034/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
7099,
16,
2826,
11771,
4672,
2154,
33,
27226,
18,
1448,
67,
16560,
67,
12278,
571,
7075,
18,
3417,
67,
38,
7954,
377,
309,
4940,
59,
60,
16506,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
7099,
16,
2826,
11771,
4672,
2154,
33,
27226,
18,
1448,
67,
16560,
67,
12278,
571,
7075,
18,
3417,
67,
38,
7954,
377,
309,
4940,
59,
60,
16506,
47,
... |
try: f1, f2 = MakeBigFiles(rcsf) BigFileRun(f1, f2) except CommandError, e: pass | while not test.HasEnoughResults(): test.RandomBigRun(f1, f2) | def RunSpeed(): for L in Decimals(MAX_RUN): SetFileSize(RUNFILE, L) trx = TimeRun(Xdelta3Run1(RUNFILE)) ReportSpeed(L,trx,'xdelta3') trg = TimeRun(GzipRun1(RUNFILE)) ReportSpeed(L,trg,'gzip ') | f29141f565abfcc5b15cc9df401fa1b44be63c91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9009/f29141f565abfcc5b15cc9df401fa1b44be63c91/xdelta3-regtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1939,
16562,
13332,
364,
511,
316,
3416,
11366,
12,
6694,
67,
15238,
4672,
1000,
15100,
12,
15238,
3776,
16,
511,
13,
433,
92,
273,
2647,
1997,
12,
60,
9878,
23,
1997,
21,
12,
15238,
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,
1939,
16562,
13332,
364,
511,
316,
3416,
11366,
12,
6694,
67,
15238,
4672,
1000,
15100,
12,
15238,
3776,
16,
511,
13,
433,
92,
273,
2647,
1997,
12,
60,
9878,
23,
1997,
21,
12,
15238,
3... |
def select_browser(self, activator, current, library, player, restore): | def select_browser(self, activator, current, library, player, restore=False): | def select_browser(self, activator, current, library, player, restore): if isinstance(current, gtk.RadioAction): current = current.get_current_value() Browser = browsers.get(current) config.set("memory", "browser", Browser.__name__) if self.browser: container = self.browser.__container self.browser.unpack(container, se... | cccbe9d0fbff85094f6ba331577a97f98ca03b45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4764/cccbe9d0fbff85094f6ba331577a97f98ca03b45/quodlibetwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
11213,
12,
2890,
16,
5981,
639,
16,
783,
16,
5313,
16,
7291,
16,
5217,
33,
8381,
4672,
309,
1549,
12,
2972,
16,
22718,
18,
19984,
1803,
4672,
783,
273,
783,
18,
588,
67,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
11213,
12,
2890,
16,
5981,
639,
16,
783,
16,
5313,
16,
7291,
16,
5217,
33,
8381,
4672,
309,
1549,
12,
2972,
16,
22718,
18,
19984,
1803,
4672,
783,
273,
783,
18,
588,
67,
29... |
return http.Response(stream = message("You are not authorized to move '%s'"%W.name())) | return HTMLResponse(stream = message("You are not authorized to move '%s'"%W.name())) | def render(self, ctx): X = notebook.user(self.username) if user_type(self.username) == 'guest': return http.Response(stream = message("You are not authorized to move '%s'"%W.name())) def send_worksheet_to_folder(filename): W = notebook.get_worksheet_with_filename(filename) self.action(W) if ctx.args.has_key('filename... | 5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
1139,
273,
14718,
18,
1355,
12,
2890,
18,
5053,
13,
309,
729,
67,
723,
12,
2890,
18,
5053,
13,
422,
296,
18908,
4278,
327,
3982,
1064,
12,
3256,
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,
1743,
12,
2890,
16,
1103,
4672,
1139,
273,
14718,
18,
1355,
12,
2890,
18,
5053,
13,
309,
729,
67,
723,
12,
2890,
18,
5053,
13,
422,
296,
18908,
4278,
327,
3982,
1064,
12,
3256,
273,
... |
import os doupdate = os.getenv("GST_REGISTRY_UPDATE") != "no" os.environ["GST_REGISTRY_UPDATE"] = "no" | def __float__(self): return float(self.num) / float(self.denom) | bbedab4e6521fe7c813f23698fe650203b1d0820 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1020/bbedab4e6521fe7c813f23698fe650203b1d0820/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5659,
972,
12,
2890,
4672,
327,
1431,
12,
2890,
18,
2107,
13,
342,
1431,
12,
2890,
18,
13002,
362,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5659,
972,
12,
2890,
4672,
327,
1431,
12,
2890,
18,
2107,
13,
342,
1431,
12,
2890,
18,
13002,
362,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if verbose: progress("Definition %s = inverse:%i pred=%s y=%s", (x, inverse, pred, y)) | if verbose: progress("Definition %s = %s%s%s"% (x, pred, ".^"[inverse], y)) | def differences(f, g): """Smush the formulae. Compare them, generating patch instructions.""" | 31fe96e6268194f85f36a24f0c07042d59afa09d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/31fe96e6268194f85f36a24f0c07042d59afa09d/diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16440,
12,
74,
16,
314,
4672,
3536,
9552,
1218,
326,
8013,
73,
18,
225,
11051,
2182,
16,
12516,
4729,
12509,
12123,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16440,
12,
74,
16,
314,
4672,
3536,
9552,
1218,
326,
8013,
73,
18,
225,
11051,
2182,
16,
12516,
4729,
12509,
12123,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
p.drawPolygon(self._getZoomedFace(face)) | qpa, sizes = self._getZoomedFace(face) if face.holeCount(): index = 0 for size in sizes: p.drawPolyline(qpa, index, size) index += size if self.fillColor: p.save() p.setPen(qt.Qt.NoPen) p.drawPolygon(qpa) p.restore() else: p.drawPolygon(qpa) | def draw(self, p): if not self._map(): return | 98f943594ac2f501715b3e5e447742495e8d437a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10394/98f943594ac2f501715b3e5e447742495e8d437a/mapdisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
16,
293,
4672,
309,
486,
365,
6315,
1458,
13332,
327,
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,
3724,
12,
2890,
16,
293,
4672,
309,
486,
365,
6315,
1458,
13332,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
global_key = self.get_key_for_user() cache_dict = cache.get(global_key) if cache_dict is None: cache_dict = {} cache_dict[key] = value cache.set(global_key, cache_dict, self.cache_time) | cache.set(self._prefix_user_key(key), value, self.cache_time) | def __setitem__(self, key, value): global_key = self.get_key_for_user() cache_dict = cache.get(global_key) if cache_dict is None: cache_dict = {} | 941587095d5f96c224fcc018848a40ba2dbe7e68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/941587095d5f96c224fcc018848a40ba2dbe7e68/userbits.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
2552,
67,
856,
273,
365,
18,
588,
67,
856,
67,
1884,
67,
1355,
1435,
1247,
67,
1576,
273,
1247,
18,
588,
12,
6347,
67,
856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
2552,
67,
856,
273,
365,
18,
588,
67,
856,
67,
1884,
67,
1355,
1435,
1247,
67,
1576,
273,
1247,
18,
588,
12,
6347,
67,
856,
... |
filename = rootSEDdir + 'final_' + filt bandpass[filter] = lm.teleThruput(filename) | filename = os.path.join(rootFILTERdir,'total_' + f + '.dat') bandpass[f] = Bandpass() bandpass[f].readThroughput(filename) | def calcAllMags(self, filt, mjdTaiList, rootSEDdir, withErrors=True, fiveSigmaLimitingMag=None): """ Calculate the magnitude of all objects in the movingObjectList """ """ - Given the filter, the mjd (to find the ephemeris info) and the root directory of SEDS/thruputs """ """ individual objects know their SED and thei... | 649989e6c45a02c566ac9b33aee0267cb811b9a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/649989e6c45a02c566ac9b33aee0267cb811b9a9/movingObjectList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
1595,
49,
1341,
12,
2890,
16,
18553,
16,
312,
20769,
56,
10658,
682,
16,
1365,
18204,
1214,
16,
598,
4229,
33,
5510,
16,
23714,
24491,
3039,
310,
11372,
33,
7036,
4672,
3536,
9029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
1595,
49,
1341,
12,
2890,
16,
18553,
16,
312,
20769,
56,
10658,
682,
16,
1365,
18204,
1214,
16,
598,
4229,
33,
5510,
16,
23714,
24491,
3039,
310,
11372,
33,
7036,
4672,
3536,
9029,... |
clientTransport.sendData( S_ERROR( "%s is not up in this service" % requestedService ) ) | clientTransport.sendData( S_ERROR( "%s is not up in this service" % serviceName ) ) | def _authorizeClientProposal( self, serviceName, actionTuple, clientTransport ): """ Authorize the action being proposed by the client """ if requestedService not in self.servicesDict: gLogger.error( "Client is trying to connect to an invalid service", "%s is not one of %s" % ( requestedService, self.servicesDict.keys... | 7763210cd2b659e19d82b1fd8dfdf1cfa81ee2d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/7763210cd2b659e19d82b1fd8dfdf1cfa81ee2d4/Dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
22488,
1227,
14592,
12,
365,
16,
6773,
16,
1301,
9038,
16,
1004,
6568,
262,
30,
3536,
23859,
326,
1301,
3832,
20084,
635,
326,
1004,
3536,
309,
3764,
1179,
486,
316,
365,
18,
8387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22488,
1227,
14592,
12,
365,
16,
6773,
16,
1301,
9038,
16,
1004,
6568,
262,
30,
3536,
23859,
326,
1301,
3832,
20084,
635,
326,
1004,
3536,
309,
3764,
1179,
486,
316,
365,
18,
8387,
... |
parts = line.split()[0:2] newlist = [self.float(x.split('=')[1]) for x in parts] | parts = line.split() newlist = [self.float(x.split('=')[1]) for x in parts[0:2]] | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 optfinished = False # Flag that indicates whe... | 2245ff508e64a37b73c992ca9fe21589f77eb0d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/2245ff508e64a37b73c992ca9fe21589f77eb0d8/gaussianparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... |
home, '.mozilla', 'firefox', '*', 'cookies.txt')) | home, '.mozilla', 'firefox*', '*', 'cookies.txt')) | def reset_browser(self): """ Delete crash dialog and browser cache. """ home = os.environ['HOME'] self.delete_if_exists(os.path.join( home, '.mozilla', 'firefox', '*', 'Cache')) self.delete_if_exists(os.path.join( home, '.mozilla', 'firefox', '*', 'sessionstore.js')) self.delete_if_exists(os.path.join( home, '.mozilla'... | b34d6f7cb32594dbc44ef302318bf2e4acb3cd7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/b34d6f7cb32594dbc44ef302318bf2e4acb3cd7b/firefox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
67,
11213,
12,
2890,
4672,
3536,
2504,
17053,
6176,
471,
4748,
1247,
18,
3536,
6382,
273,
1140,
18,
28684,
3292,
14209,
3546,
365,
18,
3733,
67,
430,
67,
1808,
12,
538,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
67,
11213,
12,
2890,
4672,
3536,
2504,
17053,
6176,
471,
4748,
1247,
18,
3536,
6382,
273,
1140,
18,
28684,
3292,
14209,
3546,
365,
18,
3733,
67,
430,
67,
1808,
12,
538,
18,
803,
... |
accept = accept + string.split(line[7:]) | accept = accept + string.split(line[7:], ',') | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = string.rfind(rest, '?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = string.find(rest, '/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.tran... | db2dadb0dc8c6dbabb469bcc0c439b14c4cba522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/db2dadb0dc8c6dbabb469bcc0c439b14c4cba522/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
533,
18,
86,
4720,
12,
8792,
16,
6787,
13,
309,
277,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
533,
18,
86,
4720,
12,
8792,
16,
6787,
13,
309,
277,... |
("memberOf", "Group DNs", "memberOf", True)] | ("memberOf", "Group DNs", True, "memberOf")] | def addMandatorySchemaItems(): luf=getLDAPPlugin()._getLDAPUserFolder() config=getUtility(ILDAPConfiguration) if config.ldap_type==u"AD": required = [ ("dn", "Distinguished Name"), ("objectGUID", "AD Object GUID"), ("cn", "Canonical Name"), ("memberOf", "Group DNs", "memberOf", True)] else: required = [] schema=luf.g... | 82902e8dee093e476013e0eb59d5d06a5a0f8899 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11951/82902e8dee093e476013e0eb59d5d06a5a0f8899/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
49,
10018,
3078,
3126,
13332,
328,
696,
33,
588,
15496,
3773,
1435,
6315,
588,
15496,
1299,
3899,
1435,
642,
33,
588,
6497,
12,
2627,
8790,
1750,
13,
225,
309,
642,
18,
14394,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
49,
10018,
3078,
3126,
13332,
328,
696,
33,
588,
15496,
3773,
1435,
6315,
588,
15496,
1299,
3899,
1435,
642,
33,
588,
6497,
12,
2627,
8790,
1750,
13,
225,
309,
642,
18,
14394,
67,
... |
users = searchUserAdvanced() ret['installed_users'] = len(users) | ret['installed_users'], _ = searchUserAdvanced() | def getInformations(self, dynamic = False): if not self.config.is_subscribe_done: return { 'is_subsscribed': False } ret = { 'is_subsscribed':True, 'product_name':self.config.subs_product_name, 'vendor_name':self.config.subs_vendor_name, 'vendor_mail':self.config.subs_vendor_mail, 'customer_name':self.config.subs_custo... | 1cf0fde53398db0f2f511f40ddfc01bdba038434 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/1cf0fde53398db0f2f511f40ddfc01bdba038434/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7854,
687,
1012,
12,
2890,
16,
5976,
273,
1083,
4672,
309,
486,
365,
18,
1425,
18,
291,
67,
9174,
67,
8734,
30,
327,
288,
296,
291,
67,
22284,
15802,
4278,
1083,
289,
325,
273,
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,
7854,
687,
1012,
12,
2890,
16,
5976,
273,
1083,
4672,
309,
486,
365,
18,
1425,
18,
291,
67,
9174,
67,
8734,
30,
327,
288,
296,
291,
67,
22284,
15802,
4278,
1083,
289,
325,
273,
288,
... |
LOG_DEBUG_RPC_ANSWER = 'debug_rpc_answer' | def abortResponse(self, error, description, origin, details): if not tools.config['debug_mode']: raise Exception("%s -- %s\n\n%s"%(origin, description, details)) else: raise | 4ca97cc326bd2f9cf0fa603d3f82e705e3a678e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/4ca97cc326bd2f9cf0fa603d3f82e705e3a678e3/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6263,
1064,
12,
2890,
16,
555,
16,
2477,
16,
4026,
16,
3189,
4672,
309,
486,
8513,
18,
1425,
3292,
4148,
67,
3188,
3546,
30,
1002,
1185,
27188,
87,
1493,
738,
87,
64,
82,
64,
82,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6263,
1064,
12,
2890,
16,
555,
16,
2477,
16,
4026,
16,
3189,
4672,
309,
486,
8513,
18,
1425,
3292,
4148,
67,
3188,
3546,
30,
1002,
1185,
27188,
87,
1493,
738,
87,
64,
82,
64,
82,
9,
... | |
_save(db) return content finally: lock.unlock(unconditionally=1) | try: _save(db, lock) except LockFile.NotLockedError: continue return content else: raise LockFile.TimeOutError finally: if lock.locked(): lock.unlock() | def confirm(cookie, expunge=1): """Return data for cookie, or None if not found. If optional expunge is true (the default), the record is also removed from the database. """ # Acquire the pending database lock, letting TimeOutError percolate up. # BAW: we perhaps shouldn't acquire the lock if expunge==0. lock = LockFi... | 496da7301195b3472cf282c56be0463c46ff842a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/496da7301195b3472cf282c56be0463c46ff842a/Pending.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
12,
8417,
16,
1329,
25561,
33,
21,
4672,
3536,
990,
501,
364,
3878,
16,
578,
599,
309,
486,
1392,
18,
225,
971,
3129,
1329,
25561,
353,
638,
261,
5787,
805,
3631,
326,
1409,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
12,
8417,
16,
1329,
25561,
33,
21,
4672,
3536,
990,
501,
364,
3878,
16,
578,
599,
309,
486,
1392,
18,
225,
971,
3129,
1329,
25561,
353,
638,
261,
5787,
805,
3631,
326,
1409,
353,... |
self.default_font.GetFamily(), self.default_font.GetStyle(),wx.BOLD) | default_font.GetFamily(), default_font.GetStyle(),wx.BOLD) self.dropTarget=SongDropTarget(self) self.SetDropTarget(self.dropTarget) | def __init__(self, mode, parent): wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT) self.mpd = mode.mpd self.createColumns() | dfc430bfbd215fb5641b5a8403f6a74ce6ee39f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/dfc430bfbd215fb5641b5a8403f6a74ce6ee39f9/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1965,
16,
982,
4672,
7075,
18,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
2154,
33,
27226,
18,
13394,
67,
22710,
13,
365,
18,
1291,
72,
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,
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,
1965,
16,
982,
4672,
7075,
18,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
2154,
33,
27226,
18,
13394,
67,
22710,
13,
365,
18,
1291,
72,
273,
... |
return self.i2s.get(x, repr(x)) | if type(x) is list: return map(lambda z,pkt=pkt:self.i2repr_one(pkt,z), x) else: return self.i2repr_one(pkt,x) | def i2repr(self, pkt, x): return self.i2s.get(x, repr(x)) | 5c0b5c24331d812a65579a76249071e2d35675fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/5c0b5c24331d812a65579a76249071e2d35675fc/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
327,
365,
18,
77,
22,
87,
18,
588,
12,
92,
16,
8480,
12,
92,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
22,
12715,
12,
2890,
16,
11536,
16,
619,
4672,
327,
365,
18,
77,
22,
87,
18,
588,
12,
92,
16,
8480,
12,
92,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "There are "+str(len(group_quantity_data_dicts[1]))+" quantities defined.\n" | print "There are "+str(len(group_quantity_data_dicts[1]))+" quantities defined, (q lines).\n" | 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... |
for instr in mainapp.projects.instruments: | for instr in self.mainapp.projects.instruments: | def add_file_to_instrument(self, instr_id, uri, position=0): """ Creates a new event from the file at the given URI and adds it to the instrument with id 'instr_id' at position (in seconds). Return values: 0: success 1: bad URI or file could not be loaded 2: instrument with id 'instr_id' not found """ for instr in main... | 03b6852fea5f3306fbb86a8044b88c5e3871a1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/03b6852fea5f3306fbb86a8044b88c5e3871a1a1/Extension.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
768,
67,
869,
67,
22818,
12,
2890,
16,
16170,
67,
350,
16,
2003,
16,
1754,
33,
20,
4672,
3536,
10210,
279,
394,
871,
628,
326,
585,
622,
326,
864,
3699,
471,
4831,
518,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
768,
67,
869,
67,
22818,
12,
2890,
16,
16170,
67,
350,
16,
2003,
16,
1754,
33,
20,
4672,
3536,
10210,
279,
394,
871,
628,
326,
585,
622,
326,
864,
3699,
471,
4831,
518,
358,... |
return self._arg_arg_op_with_imm(gv_x, gv_y, _PPC.mullw, _PPC.mulli, commutative=True) | return self._arg_arg_op_with_simm(gv_x, gv_y, _PPC.mullw, _PPC.mulli, commutative=True) | def op_int_mul(self, gv_x, gv_y): return self._arg_arg_op_with_imm(gv_x, gv_y, _PPC.mullw, _PPC.mulli, commutative=True) | 1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1061,
67,
474,
67,
16411,
12,
2890,
16,
11404,
67,
92,
16,
11404,
67,
93,
4672,
327,
365,
6315,
3175,
67,
3175,
67,
556,
67,
1918,
67,
381,
81,
12,
75,
90,
67,
92,
16,
11404,
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,
1061,
67,
474,
67,
16411,
12,
2890,
16,
11404,
67,
92,
16,
11404,
67,
93,
4672,
327,
365,
6315,
3175,
67,
3175,
67,
556,
67,
1918,
67,
381,
81,
12,
75,
90,
67,
92,
16,
11404,
67,
... |
p_to = self.__emBuildEmailAddress(p_to) l_message = self.__emCreateEmail(p_content, p_to, p_from, p_subject) | p_to = self.__build_addresses(p_to) l_message = self.__create_email(p_content, p_to, p_from, p_subject) | def sendEmail(self, p_content, p_to, p_from, p_subject): #sends a generic email try: p_to = self.__emBuildEmailAddress(p_to) l_message = self.__emCreateEmail(p_content, p_to, p_from, p_subject) server = smtplib.SMTP(self.mail_server_name, self.mail_server_port) server.sendmail(p_from, p_to, l_message) server.quit() ret... | b0ceef4e35c4ff5d7f3b57a06278abe612b9bb58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/b0ceef4e35c4ff5d7f3b57a06278abe612b9bb58/EmailTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4134,
12,
2890,
16,
293,
67,
1745,
16,
293,
67,
869,
16,
293,
67,
2080,
16,
293,
67,
7857,
4672,
468,
4661,
87,
279,
5210,
2699,
775,
30,
293,
67,
869,
273,
365,
16186,
3510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
4134,
12,
2890,
16,
293,
67,
1745,
16,
293,
67,
869,
16,
293,
67,
2080,
16,
293,
67,
7857,
4672,
468,
4661,
87,
279,
5210,
2699,
775,
30,
293,
67,
869,
273,
365,
16186,
3510,
... |
return ' '.join(s.split()) | beginning = s.startswith(' ') ending = s.endswith(' ') s = ' '.join(s.split()) if beginning: s = ' ' + s if ending: s = s + ' ' return s | def normalizeWhitespace(s): """Normalizes the whitespace in a string; \s+ becomes one space.""" return ' '.join(s.split()) | a2c8c613db7058d63a68ef5b9f8c247859fc78c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12790/a2c8c613db7058d63a68ef5b9f8c247859fc78c4/str.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
9431,
12,
87,
4672,
3536,
26265,
326,
7983,
316,
279,
533,
31,
521,
87,
15,
12724,
1245,
3476,
12123,
8435,
273,
272,
18,
17514,
1918,
2668,
8624,
11463,
273,
272,
18,
5839,
1918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
9431,
12,
87,
4672,
3536,
26265,
326,
7983,
316,
279,
533,
31,
521,
87,
15,
12724,
1245,
3476,
12123,
8435,
273,
272,
18,
17514,
1918,
2668,
8624,
11463,
273,
272,
18,
5839,
1918,
... |
toObj = o.position - self.vehicle.robot.position | toObj = o.position - robotPos | def _findClosest(self, objects): """ Find the closest object to the given position @note: This is inefficient but the object count is to remain low, so we are fine. """ closest = None obj = None relativePos = None robotPos = self.vehicle.robot.position + \ (self.vehicle.robot.orientation * ogre.Vector3(0.5, 0, 0)) fo... | 91fa95ce5f91a80e6d18cfe31393ac1449865bc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10608/91fa95ce5f91a80e6d18cfe31393ac1449865bc9/vision.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
4082,
7781,
12,
2890,
16,
2184,
4672,
3536,
4163,
326,
9219,
733,
358,
326,
864,
1754,
225,
632,
7652,
30,
1220,
353,
316,
25403,
1496,
326,
733,
1056,
353,
358,
7232,
4587,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
4082,
7781,
12,
2890,
16,
2184,
4672,
3536,
4163,
326,
9219,
733,
358,
326,
864,
1754,
225,
632,
7652,
30,
1220,
353,
316,
25403,
1496,
326,
733,
1056,
353,
358,
7232,
4587,
... |
print "to_align=", to_align_parts, to_align_seqs, to_align_dump | def testRealign(self): """test realignment.""" mali, seqs = self.constructMali() v = AlignandumVector() seqs = [ "IIACDIIEFG" , "IAILCDEFGI" , "KALKCDEFGK" , ] for x in seqs: v.append( makeSequence(x) ) counts = mali.getGapCounts( v, AggCount ) ma = makeMultipleAlignatorSimple( makeAlignatorDPFull( ALIGNMENT_LOCAL, 0... | 0c2849879addbe35983ed4ea29681eb835dfd701 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8012/0c2849879addbe35983ed4ea29681eb835dfd701/test_MultAlignment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6955,
724,
12,
2890,
4672,
3536,
3813,
2863,
3515,
12123,
312,
18083,
16,
19472,
273,
365,
18,
10062,
49,
18083,
1435,
331,
273,
19317,
464,
379,
5018,
1435,
19472,
273,
306,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6955,
724,
12,
2890,
4672,
3536,
3813,
2863,
3515,
12123,
312,
18083,
16,
19472,
273,
365,
18,
10062,
49,
18083,
1435,
331,
273,
19317,
464,
379,
5018,
1435,
19472,
273,
306,
315,
... | |
delimiters[field] = element.text | delimiters[camelCaseToUpper(field)] = element.text | def __addDelimiters(self, tree): """ Adds CLDR delimiters """ delimiters = self.__getStore(self.__data, "delimiter") for element in tree.findall("/delimiters/*"): if not element.get("draft"): field = element.tag if not field in delimiters: delimiters[field] = element.text | 0449da46d56db0af7dbfd9f24d9304ce5d7225e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/0449da46d56db0af7dbfd9f24d9304ce5d7225e2/LocaleData.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
23531,
414,
12,
2890,
16,
2151,
4672,
3536,
15605,
14934,
6331,
18374,
3536,
225,
18374,
273,
365,
16186,
588,
2257,
12,
2890,
16186,
892,
16,
315,
15751,
7923,
225,
364,
930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
23531,
414,
12,
2890,
16,
2151,
4672,
3536,
15605,
14934,
6331,
18374,
3536,
225,
18374,
273,
365,
16186,
588,
2257,
12,
2890,
16186,
892,
16,
315,
15751,
7923,
225,
364,
930,
... |
self._printResponseJava(f,,response) | self._printResponseJava(f,response) | def printResponse(self,fileDes,isSoap=False,response=None): """ Print response to files given as input parameter. | c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10967/c8e008fe10897ecc71f80fe5c7aeb349dd59ee4f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1064,
12,
2890,
16,
768,
6305,
16,
291,
20601,
33,
8381,
16,
2740,
33,
7036,
4672,
3536,
3038,
766,
358,
1390,
864,
487,
810,
1569,
18,
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,
1172,
1064,
12,
2890,
16,
768,
6305,
16,
291,
20601,
33,
8381,
16,
2740,
33,
7036,
4672,
3536,
3038,
766,
358,
1390,
864,
487,
810,
1569,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if not self.templatenode.hasAttribute('unit'): return None | def getUnit(self): """Returns the unit of the node; None is returned if the node does not have a unit specified. """ if not self.templatenode.hasAttribute('unit'): return None unit = self.templatenode.getAttribute('unit') if unit[0]=='[' and unit[-1]==']': node = self.parent[unit[1:-1]] if node is None: return None uni... | 70863b7f16c0263d2226e8fac7b7819dada311d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/70863b7f16c0263d2226e8fac7b7819dada311d7/xmlstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19194,
12,
2890,
4672,
3536,
1356,
326,
2836,
434,
326,
756,
31,
599,
353,
2106,
309,
326,
756,
1552,
486,
1240,
279,
2836,
1269,
18,
3536,
2836,
273,
365,
18,
27380,
270,
20680,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19194,
12,
2890,
4672,
3536,
1356,
326,
2836,
434,
326,
756,
31,
599,
353,
2106,
309,
326,
756,
1552,
486,
1240,
279,
2836,
1269,
18,
3536,
2836,
273,
365,
18,
27380,
270,
20680,
18,
5... | |
a,b,c = b2, 8*b4, 16*b6 | def short_weierstrass_model(self, complete_cube=True): """ Return a short Weierstrass model for self. | ff92f75072c761f8db7341cb1bf269e7ff19084a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ff92f75072c761f8db7341cb1bf269e7ff19084a/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3025,
67,
1814,
20778,
313,
428,
67,
2284,
12,
2890,
16,
3912,
67,
21186,
33,
5510,
4672,
3536,
2000,
279,
3025,
1660,
20778,
313,
428,
938,
364,
365,
18,
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,
3025,
67,
1814,
20778,
313,
428,
67,
2284,
12,
2890,
16,
3912,
67,
21186,
33,
5510,
4672,
3536,
2000,
279,
3025,
1660,
20778,
313,
428,
938,
364,
365,
18,
2,
-100,
-100,
-100,
-100,
-1... | |
this = apply(_quickfix.new_DueToRelated, args) | this = _quickfix.new_DueToRelated(*args) | def __init__(self, *args): this = apply(_quickfix.new_DueToRelated, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
30023,
774,
8017,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
30023,
774,
8017,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
def _add_category_to_list(self, category): self.lst_categories.Append(category.name, category) | def _update_categories(self): self.lst_categories.Clear() for category in sort_categories(self.timeline.get_categories()): self.lst_categories.Append(category.name, category) | def _add_category_to_list(self, category): self.lst_categories.Append(category.name, category) | ffe163266816059f0d4557c6c679fd61f7c6f0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/ffe163266816059f0d4557c6c679fd61f7c6f0d3/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
4743,
67,
869,
67,
1098,
12,
2890,
16,
3150,
4672,
365,
18,
16923,
67,
8995,
18,
5736,
12,
4743,
18,
529,
16,
3150,
13,
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,
389,
1289,
67,
4743,
67,
869,
67,
1098,
12,
2890,
16,
3150,
4672,
365,
18,
16923,
67,
8995,
18,
5736,
12,
4743,
18,
529,
16,
3150,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
left = "%.3f" % (((phase['start']-data.start)*100)/tTotal) width = "%.3f" % (((phase['end']-phase['start'])*100)/tTotal) devtl.html['timeline'] += html_phase.format(left, width, "%.3f"%devtl.scaleH, "%.3f"%(100-devtl.scaleH), data.dmesg[b]['color'], "") devtl.html['scale'] = createTimeScale(t0, tMax, data.tSuspended)... | length = phase['end']-phase['start'] left = '%.3f' % (((phase['start']-t0)*100.0)/tTotal) width = '%.3f' % ((length*100.0)/tTotal) devtl.html['timeline'] += html_phase.format(left, width, \ '%.3f'%devtl.scaleH, '%.3f'%(100-devtl.scaleH), \ data.dmesg[b]['color'], '') devtl.html['scale'] = createTimeScale(t0, tMax, tS... | 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,
... |
path = os.path.join(os.getenv('CHANDLERHOME') or '.', | sharePath = os.path.join(os.getenv('CHANDLERHOME') or '.', | def testImport(self): path = os.path.join(os.getenv('CHANDLERHOME') or '.', 'parcels', 'osaf', 'sharing', 'tests') | 2681fe9f4e2fe708792bca08ab3ddb32208e46c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2681fe9f4e2fe708792bca08ab3ddb32208e46c6/TestIcalUIDToUUID.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
12,
2890,
4672,
7433,
743,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
3074,
2668,
1792,
4307,
14668,
14209,
6134,
578,
2611,
16,
296,
1065,
2183,
87,
2187,
296,
538,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
12,
2890,
4672,
7433,
743,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
588,
3074,
2668,
1792,
4307,
14668,
14209,
6134,
578,
2611,
16,
296,
1065,
2183,
87,
2187,
296,
538,
1... |
'test_heteroatom_organics_CH3SiH3', 'test_heteroatom_organics_C4H8SiH2', 'test_heteroatom_organics_SiH_ADAM_C3v', | def run(self): import sim lac = LengthAngleComparison(self.base + ".mmp") s = sim.Minimize(self.base + ".mmp") s.Temperature = 300 s.go() lac.compare(self.base + ".xyz", self.base + ".xyzcmp", LENGTH_TOLERANCE, ANGLE_TOLERANCE) | 3f4a171b835422313ecc0171dd0ab652a7f6a1bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3f4a171b835422313ecc0171dd0ab652a7f6a1bc/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
3142,
328,
1077,
273,
11311,
8467,
16059,
12,
2890,
18,
1969,
397,
3552,
81,
1291,
7923,
272,
273,
3142,
18,
2930,
10153,
12,
2890,
18,
1969,
397,
3552,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
3142,
328,
1077,
273,
11311,
8467,
16059,
12,
2890,
18,
1969,
397,
3552,
81,
1291,
7923,
272,
273,
3142,
18,
2930,
10153,
12,
2890,
18,
1969,
397,
3552,
81,
... | |
if self.ends("eed"): | if self.ends("ied"): if self.j == 0: self.k = self.k - 1 else: self.k = self.k - 2 elif self.ends("eed"): | def step1ab(self): """step1ab() gets rid of plurals and -ed or -ing. e.g. | 8345d263907db865fc1212b587728d28e3c3f5d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11001/8345d263907db865fc1212b587728d28e3c3f5d3/porter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
21,
378,
12,
2890,
4672,
3536,
4119,
21,
378,
1435,
5571,
10911,
434,
21211,
471,
300,
329,
578,
300,
310,
18,
425,
18,
75,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2235,
21,
378,
12,
2890,
4672,
3536,
4119,
21,
378,
1435,
5571,
10911,
434,
21211,
471,
300,
329,
578,
300,
310,
18,
425,
18,
75,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False): | def positionsOfUnmatchedMinus(self, i, dual=False, reverse=False): | def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False): | 290ec0fb647f6b99c868676e596a7b8e4c124575 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/290ec0fb647f6b99c868676e596a7b8e4c124575/crystals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
16,
24557,
33,
8381,
16,
4219,
33,
8381,
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,
... | [
1,
1,
1,
1,
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,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
16,
24557,
33,
8381,
16,
4219,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
out('<h1 class="tocheading">Module %s</h1>\n' % name) | out('<h1 class="toc">Module %s</h1>\n' % name) | def write_module_toc(self, out, doc): """ Write an HTML page containing the table of contents page for the given module to the given streams. This page lists the modules, classes, exceptions, functions, and variables defined by the module. """ name = doc.canonical_name[-1] self.write_header(out, name) out('<h1 class="... | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2978,
67,
1391,
12,
2890,
16,
596,
16,
997,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
864,
1605,
358,
326,
864,
8205,
18,
225,
1220,
1363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
67,
1391,
12,
2890,
16,
596,
16,
997,
4672,
3536,
2598,
392,
3982,
1363,
4191,
326,
1014,
434,
2939,
1363,
364,
326,
864,
1605,
358,
326,
864,
8205,
18,
225,
1220,
1363... |
return False, "; ".join(final_result) | _Fail("; ".join(final_result), log=False) | def ImportOSIntoInstance(instance, src_node, src_images, cluster_name): """Import an os image into an instance. @type instance: L{objects.Instance} @param instance: instance to import the disks into @type src_node: string @param src_node: source node for the disk images @type src_images: list of string @param src_imag... | afdc3985644be8d2b91d9f0e37dfda391a30d036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/afdc3985644be8d2b91d9f0e37dfda391a30d036/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
4618,
5952,
1442,
12,
1336,
16,
1705,
67,
2159,
16,
1705,
67,
7369,
16,
2855,
67,
529,
4672,
3536,
5010,
392,
1140,
1316,
1368,
392,
791,
18,
225,
632,
723,
791,
30,
511,
95,
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,
6164,
4618,
5952,
1442,
12,
1336,
16,
1705,
67,
2159,
16,
1705,
67,
7369,
16,
2855,
67,
529,
4672,
3536,
5010,
392,
1140,
1316,
1368,
392,
791,
18,
225,
632,
723,
791,
30,
511,
95,
6... |
c.binary = self.binary | c.protocol = self.protocol | def cursor(self, txn=None, flags=0): c = DBShelfCursor(self.db.cursor(txn, flags)) c.binary = self.binary return c | 05cf33361140b3644eb30c58a1a0d669441bd7ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/05cf33361140b3644eb30c58a1a0d669441bd7ec/dbshelve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3347,
12,
2890,
16,
7827,
33,
7036,
16,
2943,
33,
20,
4672,
276,
273,
2383,
1555,
19079,
6688,
12,
2890,
18,
1966,
18,
9216,
12,
24790,
16,
2943,
3719,
276,
18,
8373,
273,
365,
18,
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,
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,
3347,
12,
2890,
16,
7827,
33,
7036,
16,
2943,
33,
20,
4672,
276,
273,
2383,
1555,
19079,
6688,
12,
2890,
18,
1966,
18,
9216,
12,
24790,
16,
2943,
3719,
276,
18,
8373,
273,
365,
18,
8... |
if sum(count for count in self.dispatcher_session_count.itervalues()) == 0: MediaRelayBase._shutdown(self) | if len(self.dispatcher_connectors) + len(self.old_connectors) == 0: self._shutdown() | def shutdown(self, kill_sessions): if not self.shutting_down: if sum(count for count in self.dispatcher_session_count.itervalues()) == 0: MediaRelayBase._shutdown(self) else: self.update_dispatchers([]) self.shutting_down = True if kill_sessions: self.session_manager.cleanup() | 18c7d713b0129c0461fa93d4d6524e07d1c3910f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/18c7d713b0129c0461fa93d4d6524e07d1c3910f/relay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
16,
8673,
67,
16794,
4672,
309,
486,
365,
18,
674,
25387,
67,
2378,
30,
309,
562,
12,
2890,
18,
18495,
67,
4646,
18886,
13,
397,
562,
12,
2890,
18,
1673,
67,
4646,
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,
5731,
12,
2890,
16,
8673,
67,
16794,
4672,
309,
486,
365,
18,
674,
25387,
67,
2378,
30,
309,
562,
12,
2890,
18,
18495,
67,
4646,
18886,
13,
397,
562,
12,
2890,
18,
1673,
67,
4646,
18... |
print "skipping non-jar:", entry | def cli_compare_dirs(options, leftd, rightd): from dirdelta import compare, LEFT, RIGHT, SAME, DIFF from os.path import join for event,entry in compare(leftd, rightd): if not fnmatches(("*.jar","*.sar","*.ear","*.war"), entry): # skip non-JARs. This is a terrible way to test for this, # but I am in a hurry. print "ski... | 959f43823d6ca4823aea0df50ace3c1477d8f59e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11507/959f43823d6ca4823aea0df50ace3c1477d8f59e/jardiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
67,
9877,
67,
8291,
12,
2116,
16,
2002,
72,
16,
2145,
72,
4672,
628,
1577,
9878,
1930,
3400,
16,
9686,
16,
13135,
16,
348,
1642,
16,
3690,
2246,
628,
1140,
18,
803,
1930,
1233,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
67,
9877,
67,
8291,
12,
2116,
16,
2002,
72,
16,
2145,
72,
4672,
628,
1577,
9878,
1930,
3400,
16,
9686,
16,
13135,
16,
348,
1642,
16,
3690,
2246,
628,
1140,
18,
803,
1930,
1233,
... | |
print "\t | print >> stream, "\t | ret = [ "\tdef __call__(self):\n\t\treturn self._ApplyTypes_(*%s)" % propArgs] | cfd84d318292d699ca53899ee423b08bfb797445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/cfd84d318292d699ca53899ee423b08bfb797445/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
306,
1548,
88,
536,
1001,
1991,
972,
12,
2890,
4672,
64,
82,
64,
88,
64,
88,
2463,
365,
6315,
7001,
2016,
67,
30857,
9,
87,
2225,
738,
2270,
2615,
65,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
325,
273,
306,
1548,
88,
536,
1001,
1991,
972,
12,
2890,
4672,
64,
82,
64,
88,
64,
88,
2463,
365,
6315,
7001,
2016,
67,
30857,
9,
87,
2225,
738,
2270,
2615,
65,
2,
-100,
-100,
-100,
-100,
... |
""" fl_create_choice(type, x, y, w, h, label) -> object ref. | """ fl_create_choice(type, x, y, w, h, label) -> object | def fl_create_choice(type, x, y, w, h, label): """ fl_create_choice(type, x, y, w, h, label) -> object ref. """ retval = _fl_create_choice(type, x, y, w, h, label) return retval | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
11569,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
11569,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
2640,
67,
11569,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
4672,
3536,
1183,
67,
2640,
67,
11569,
12,
723,
16,
619,
16,
677,
16,
341,
16,
366,
16,
1433,
13,
... |
Todo -- Mathematica can do this and gets pi^2/15 | Todo -- Mathematica can do this and gets $\pi^2/15$. | sage: def christoffel(i,j,k,vars,g): | 685053b1fb472ece05d81fc291a8934d4a1b56b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/685053b1fb472ece05d81fc291a8934d4a1b56b2/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
4513,
376,
3674,
292,
12,
77,
16,
78,
16,
79,
16,
4699,
16,
75,
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,... | [
1,
1,
1,
1,
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,
272,
410,
30,
1652,
4513,
376,
3674,
292,
12,
77,
16,
78,
16,
79,
16,
4699,
16,
75,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
warning += ('Relation not found: ' + \ line[i] + ' on '+relation + ' !\n') | warning += [_("Relation not found: %s on '%s'")%(line[i],relation)] | def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in... | 30b2fc5bd2ddbaf44cd90f006b166de084029bfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/30b2fc5bd2ddbaf44cd90f006b166de084029bfc/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... |
pos, ext = self.getObject(message, types.StringType, pos) pos, numattr = self.getObject(message, types.IntType, pos) | pos, ext = self.getObject(message, types.StringType, pos, printerror=False) pos, numattr = self.getObject(message, types.IntType, pos, printerror=False) | def parseNetworkMessage(self, message, nozlib = 0): | 1eccec1d675a4bb50a9804c233b824727a5220e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8738/1eccec1d675a4bb50a9804c233b824727a5220e0/slskmessages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3906,
1079,
12,
2890,
16,
883,
16,
1158,
94,
2941,
273,
374,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3906,
1079,
12,
2890,
16,
883,
16,
1158,
94,
2941,
273,
374,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
elif type( item )==StringType: | elif type( item ) in [StringType, UnicodeType]: | def _getName( item, nameFromNum ): "Helper function -- don't use it directly" if type( item ) == IntType: try: keyname = nameFromNum( item ) except (WindowsError, EnvironmentError): raise IndexError, item elif type( item )==StringType: keyname=item else: raise exceptions.TypeError, \ "Requires integer index or string ... | ce4b96e67373f7a6b15f18919f87be7276924e3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ce4b96e67373f7a6b15f18919f87be7276924e3d/winreg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
17994,
12,
761,
16,
508,
1265,
2578,
262,
30,
315,
2276,
445,
1493,
2727,
1404,
999,
518,
5122,
6,
309,
618,
12,
761,
262,
422,
3094,
559,
30,
775,
30,
27567,
273,
508,
1265,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17994,
12,
761,
16,
508,
1265,
2578,
262,
30,
315,
2276,
445,
1493,
2727,
1404,
999,
518,
5122,
6,
309,
618,
12,
761,
262,
422,
3094,
559,
30,
775,
30,
27567,
273,
508,
1265,
25... |
visitor.document.reporter.debug(self.__class__.__name__, | visitor.document.reporter.debug('visit_' + self.__class__.__name__, | def walkabout(self, visitor): """ Perform a tree traversal similarly to `Node.walk()` (which see), except also call ``depart_...`` methods before exiting each node. If there is no ``depart_particular_node`` method for a node of type ``particular_node``, the ``unknown_departure`` method is called. | 2b6ac4d8de30eb01ad4af9ea0b327526907ac619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/2b6ac4d8de30eb01ad4af9ea0b327526907ac619/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
1033... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
21071,
12,
2890,
16,
8000,
4672,
3536,
11217,
279,
2151,
15940,
7281,
715,
358,
1375,
907,
18,
11348,
20338,
261,
12784,
2621,
3631,
1335,
2546,
745,
12176,
323,
2680,
67,
2777,
1033... |
cell.focus(); | def notebook_lib(): s= r""" | 41a3405005e5de24abcc4741fadcd35cc07692f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/41a3405005e5de24abcc4741fadcd35cc07692f0/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
if isa == 'alpha': | if (isa == 'alpha' or isa == 'arm'): | def __init__(self, isa, os, input_set): if isa == 'alpha': self.endian = 'lendian' elif (isa == 'sparc' or isa == 'sparc32'): self.endian = 'bendian' else: raise AttributeError, "unknown ISA %s" % isa | 5da3f7badcb571b08658b46581e2a7472406893e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7385/5da3f7badcb571b08658b46581e2a7472406893e/cpu2000.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
353,
69,
16,
1140,
16,
810,
67,
542,
4672,
309,
261,
291,
69,
422,
296,
5429,
11,
578,
353,
69,
422,
296,
4610,
11,
4672,
365,
18,
22910,
273,
296,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
353,
69,
16,
1140,
16,
810,
67,
542,
4672,
309,
261,
291,
69,
422,
296,
5429,
11,
578,
353,
69,
422,
296,
4610,
11,
4672,
365,
18,
22910,
273,
296,
8... |
xenddomain().autostart_domains() | dom = xenddomain() dom.autostart_domains() | def start(self, status): # Running the network script will spawn another process, which takes # the status fd with it unless we set FD_CLOEXEC. Failing to do this # causes the read in SrvDaemon to hang even when we have written here. if status: fcntl.fcntl(status, fcntl.F_SETFD, fcntl.FD_CLOEXEC) # Prepare to catch S... | aee231320c52704e7bfb17ffe9b5275d09d4a03c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6195/aee231320c52704e7bfb17ffe9b5275d09d4a03c/SrvServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
1267,
4672,
468,
20480,
326,
2483,
2728,
903,
12560,
4042,
1207,
16,
1492,
5530,
468,
326,
1267,
5194,
598,
518,
3308,
732,
444,
478,
40,
67,
22693,
15271,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
1267,
4672,
468,
20480,
326,
2483,
2728,
903,
12560,
4042,
1207,
16,
1492,
5530,
468,
326,
1267,
5194,
598,
518,
3308,
732,
444,
478,
40,
67,
22693,
15271,
18,
225,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.