rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
def finalize_win32(self): if self.get_compiler() == 'msvc': self.libraries.remove('gdal') self.libraries.append('gdal_i') build_ext.finalize_win32() | def finalize_win32(self): if self.get_compiler() == 'msvc': self.libraries.remove('gdal') self.libraries.append('gdal_i') build_ext.finalize_win32() | e1a1cab909826e520faafb1ff4dcdbf990c2f6c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/e1a1cab909826e520faafb1ff4dcdbf990c2f6c3/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
8082,
1578,
12,
2890,
4672,
309,
365,
18,
588,
67,
9576,
1435,
422,
296,
959,
4227,
4278,
365,
18,
31417,
18,
4479,
2668,
19016,
287,
6134,
365,
18,
31417,
18,
6923,
2668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
8082,
1578,
12,
2890,
4672,
309,
365,
18,
588,
67,
9576,
1435,
422,
296,
959,
4227,
4278,
365,
18,
31417,
18,
4479,
2668,
19016,
287,
6134,
365,
18,
31417,
18,
6923,
2668,
1... | |
domain=domain) found = win.go() | domain=domain, parent=self.window) found = win.run() | def search_remote(self, relation, ids=None, domain=None, context=None): rpc_relation = RPCProxy(relation) | 2c2b24585410c2f28dc34a707fed068be8d4b0e0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/2c2b24585410c2f28dc34a707fed068be8d4b0e0/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
7222,
12,
2890,
16,
2533,
16,
3258,
33,
7036,
16,
2461,
33,
7036,
16,
819,
33,
7036,
4672,
6724,
67,
5488,
273,
8295,
3886,
12,
5488,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1623,
67,
7222,
12,
2890,
16,
2533,
16,
3258,
33,
7036,
16,
2461,
33,
7036,
16,
819,
33,
7036,
4672,
6724,
67,
5488,
273,
8295,
3886,
12,
5488,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... |
return MainThreadCallable(self.start)(interval) | return thread.MainThreadCallable(self.start)(interval) | def start(self, interval): """ Start the timer, invoking the callback every *interval* seconds. | c48a6587a884a4ce967751804e079cc9500567e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/c48a6587a884a4ce967751804e079cc9500567e3/timer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
3673,
4672,
3536,
3603,
326,
5441,
16,
15387,
326,
1348,
3614,
380,
6624,
14,
3974,
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,
787,
12,
2890,
16,
3673,
4672,
3536,
3603,
326,
5441,
16,
15387,
326,
1348,
3614,
380,
6624,
14,
3974,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jobs = self.create_jobs(1) def _login(self, *args, **kwargs): d = self.factory.login(self.creds, None) d.addCallback(self._LoginConnected2, args[0]) | jobs = self.create_jobs(1) d = self.factory.login(self.creds, None) d.addCallback(self._LoginConnected2, jobs) | def testremoteSubmitJob(self): """tests perspective_submit_job""" jobs = self.create_jobs(1) def _login(self, *args, **kwargs): d = self.factory.login(self.creds, None) d.addCallback(self._LoginConnected2, args[0]) return d factory = ClientFactory(_login, (jobs), {}) factory.continueTrying = False self.connection = r... | 53db6e6d94620c51267e1f2f876662c701f8b791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53db6e6d94620c51267e1f2f876662c701f8b791/test_remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
7222,
11620,
2278,
12,
2890,
4672,
3536,
16341,
26651,
67,
9297,
67,
4688,
8395,
6550,
273,
365,
18,
2640,
67,
10088,
12,
21,
13,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
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,
1842,
7222,
11620,
2278,
12,
2890,
4672,
3536,
16341,
26651,
67,
9297,
67,
4688,
8395,
6550,
273,
365,
18,
2640,
67,
10088,
12,
21,
13,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
18,... |
print 'coverage_posix.py: doing a "cd .." to accomodate Linux/make PWD' | logging.info('coverage_posix.py: doing a "cd .." ' 'to accomodate Linux/make PWD') | def GenerateLcovPosix(self): """Convert profile data to lcov on Mac or Linux.""" start_dir = os.getcwd() if self.IsLinux(): # With Linux/make (e.g. the coverage_run target), the current # directory for this command is .../build/src/chrome but we need # to be in .../build/src for the relative path of source files # to b... | 85bbc93f895ed0a963dfdfaabf920faef1844341 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85bbc93f895ed0a963dfdfaabf920faef1844341/coverage_posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
48,
14014,
1616,
697,
12,
2890,
4672,
3536,
2723,
3042,
501,
358,
9109,
1527,
603,
13217,
578,
13318,
12123,
787,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
309,
365,
18,
2520,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
48,
14014,
1616,
697,
12,
2890,
4672,
3536,
2723,
3042,
501,
358,
9109,
1527,
603,
13217,
578,
13318,
12123,
787,
67,
1214,
273,
1140,
18,
588,
11089,
1435,
309,
365,
18,
2520,
194... |
def coerce_map_explicit(self, S): from sage.rings.padics.morphism import Morphism_ZZ_EisFM, Morphism_ZpFM_EisFM if S is ZZ: return Morphism_ZZ_EisFM(self) elif isinstance(S, pAdicRingFixedMod) and S.prime() == self.prime(): return Morphism_ZpFM_EisFM(S, self) return None | def coerce_map_explicit(self, S): from sage.rings.padics.morphism import Morphism_ZZ_EisFM, Morphism_ZpFM_EisFM if S is ZZ: return Morphism_ZZ_EisFM(self) elif isinstance(S, pAdicRingFixedMod) and S.prime() == self.prime(): return Morphism_ZpFM_EisFM(S, self) return None | 0f057e2127f2ea6d70a9e20884218a7ef6dea886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0f057e2127f2ea6d70a9e20884218a7ef6dea886/padic_extension_leaves.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
67,
1458,
67,
16511,
12,
2890,
16,
348,
4672,
628,
272,
410,
18,
86,
899,
18,
6982,
2102,
18,
81,
7657,
6228,
1930,
490,
7657,
6228,
67,
27096,
67,
41,
291,
42,
49,
16,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12270,
67,
1458,
67,
16511,
12,
2890,
16,
348,
4672,
628,
272,
410,
18,
86,
899,
18,
6982,
2102,
18,
81,
7657,
6228,
1930,
490,
7657,
6228,
67,
27096,
67,
41,
291,
42,
49,
16,
490,
... | |
@type instance: instance object | @note: this functions uses polling with a hardcoded timeout. @type instance: L{objects.Instance} | def ShutdownInstance(instance): """Shut an instance down. @type instance: instance object @param instance: the instance object @rtype: boolean @return: whether the startup was successful or not """ hv_name = instance.hypervisor running_instances = GetInstanceList([hv_name]) if instance.name not in running_instances:... | 10c2650b20cea3203db19baa02cca416127a3cea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/10c2650b20cea3203db19baa02cca416127a3cea/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17640,
1442,
12,
1336,
4672,
3536,
1555,
322,
392,
791,
2588,
18,
225,
632,
7652,
30,
333,
4186,
4692,
13708,
598,
279,
7877,
24808,
2021,
18,
225,
632,
723,
791,
30,
511,
95,
6911,
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,
17640,
1442,
12,
1336,
4672,
3536,
1555,
322,
392,
791,
2588,
18,
225,
632,
7652,
30,
333,
4186,
4692,
13708,
598,
279,
7877,
24808,
2021,
18,
225,
632,
723,
791,
30,
511,
95,
6911,
18... |
dirs_in_sys_path = {} | _dirs_in_sys_path = {} | def makepath(*paths): dir = os.path.abspath(os.path.join(*paths)) return dir, os.path.normcase(dir) | 7f5296e7c06f5a6010960f34ae7db89d8902cddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7f5296e7c06f5a6010960f34ae7db89d8902cddb/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
803,
30857,
4481,
4672,
1577,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
30857,
4481,
3719,
327,
1577,
16,
1140,
18,
803,
18,
7959,
3593,
12,
1214,
13,
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,
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,
1221,
803,
30857,
4481,
4672,
1577,
273,
1140,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
30857,
4481,
3719,
327,
1577,
16,
1140,
18,
803,
18,
7959,
3593,
12,
1214,
13,
225,
... |
l = flatten([self.phi(x) for x in d], Vector_modn_dense) | l = flatten([self.phi(x) for x in d], (Vector_modn_dense,list,tuple)) | def vector(self, d=None): """ Constructs a vector suitable for the algebraic representation of SR. | 91968182cd5cbbaea3e783a5fd81ec840fa2be9c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/91968182cd5cbbaea3e783a5fd81ec840fa2be9c/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
14291,
87,
279,
3806,
10631,
364,
326,
524,
29087,
335,
4335,
434,
19145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
14291,
87,
279,
3806,
10631,
364,
326,
524,
29087,
335,
4335,
434,
19145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
site = guide.ChannelGuide.get_by_id(message.id) if site.get_default(): raise ValueError("Can't delete default site") site.remove() | try: site = guide.ChannelGuide.get_by_id(message.id) except database.ObjectNotFoundError: logging.warn("site not found: %s" % message.id) else: if site.get_default(): raise ValueError("Can't delete default site") site.remove() | def handle_delete_site(self, message): site = guide.ChannelGuide.get_by_id(message.id) if site.get_default(): raise ValueError("Can't delete default site") site.remove() | 752cc30921ea39e5c64d2fef8db6c211e0e71699 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/752cc30921ea39e5c64d2fef8db6c211e0e71699/messagehandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3733,
67,
4256,
12,
2890,
16,
883,
4672,
2834,
273,
7343,
18,
2909,
17424,
18,
588,
67,
1637,
67,
350,
12,
2150,
18,
350,
13,
309,
2834,
18,
588,
67,
1886,
13332,
1002,
206... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
3733,
67,
4256,
12,
2890,
16,
883,
4672,
2834,
273,
7343,
18,
2909,
17424,
18,
588,
67,
1637,
67,
350,
12,
2150,
18,
350,
13,
309,
2834,
18,
588,
67,
1886,
13332,
1002,
206... |
m.resize( 512 ) | m.resize( 512 ) | def test_both(): "Test mmap module on Unix systems and Windows" # Create an mmap'ed file f = open('foo', 'w+') # Write 2 pages worth of data to the file f.write('\0'* PAGESIZE) f.write('foo') f.write('\0'* (PAGESIZE-3) ) m = mmap.mmap(f.fileno(), 2 * PAGESIZE) f.close() # Simple sanity checks print ' Position of f... | a40b8a81d8e7b748a2f77abb4bd68307cd0facde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a40b8a81d8e7b748a2f77abb4bd68307cd0facde/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
468,
... |
evt.set() | PORT = None time.sleep(0.5) serv_evt.set() | def debugging_server(evt): serv = smtpd.DebuggingServer(("", PORT), ('nowhere', -1)) try: asyncore.loop(timeout=.01, count=300) except socket.timeout: pass finally: # allow some time for the client to read the result time.sleep(0.5) asyncore.close_all() evt.set() | 5ad9f97752a055599e26d35e6a67a23c259b1c8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5ad9f97752a055599e26d35e6a67a23c259b1c8d/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10450,
67,
3567,
12,
73,
11734,
4672,
13515,
273,
17660,
72,
18,
2829,
1998,
2081,
12,
2932,
3113,
20987,
3631,
7707,
3338,
14852,
2187,
300,
21,
3719,
225,
775,
30,
4326,
479,
18,
6498,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10450,
67,
3567,
12,
73,
11734,
4672,
13515,
273,
17660,
72,
18,
2829,
1998,
2081,
12,
2932,
3113,
20987,
3631,
7707,
3338,
14852,
2187,
300,
21,
3719,
225,
775,
30,
4326,
479,
18,
6498,... |
'source': re.compile(r'(?is)<source .*?</source>'), | 'source': re.compile(r'(?is)<source>.*?</source>'), | def replaceExcept(text, old, new, exceptions, caseInsensitive=False, allowoverlap=False, marker = ''): """ Return text with 'old' replaced by 'new', ignoring specified types of text. Skips occurences of 'old' within exceptions; e.g., within nowiki tags or HTML comments. If caseInsensitive is true, then use case insens... | 7ed924481d1875e73b887b1e82cfd3b047dcb5ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/7ed924481d1875e73b887b1e82cfd3b047dcb5ed/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
30212,
12,
955,
16,
1592,
16,
394,
16,
4798,
16,
648,
21931,
33,
8381,
16,
1699,
17946,
33,
8381,
16,
5373,
273,
875,
4672,
3536,
2000,
977,
598,
296,
1673,
11,
8089,
635,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
30212,
12,
955,
16,
1592,
16,
394,
16,
4798,
16,
648,
21931,
33,
8381,
16,
1699,
17946,
33,
8381,
16,
5373,
273,
875,
4672,
3536,
2000,
977,
598,
296,
1673,
11,
8089,
635,
296,
... |
executeSQL(cur, "select DISTINCT packages.pkgId as pkgId from provides,packages where provides.name LIKE ? AND provides.pkgKey = packages.pkgKey", (name,)) | executeSQL(cur, "select DISTINCT packages.pkgId as pkgId from provides,packages where provides.name LIKE ? AND provides.pkgKey = packages.pkgKey", ("%%%s%%" % name,)) | def searchAll(self,name, query_type='like'): # This should never be called with a name containing a % assert(name.find('%') == -1) result = [] for (rep,cache) in self.primarydb.items(): cur = cache.cursor() executeSQL(cur, "select DISTINCT packages.pkgId as pkgId from provides,packages where provides.name LIKE ? AND p... | df0504404624d8ebd64e02f9c00a1a71a6fa6b3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/df0504404624d8ebd64e02f9c00a1a71a6fa6b3c/sqlitesack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
1595,
12,
2890,
16,
529,
16,
843,
67,
723,
2218,
5625,
11,
4672,
225,
468,
1220,
1410,
5903,
506,
2566,
598,
279,
508,
4191,
279,
738,
1815,
12,
529,
18,
4720,
29909,
6134,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1595,
12,
2890,
16,
529,
16,
843,
67,
723,
2218,
5625,
11,
4672,
225,
468,
1220,
1410,
5903,
506,
2566,
598,
279,
508,
4191,
279,
738,
1815,
12,
529,
18,
4720,
29909,
6134,
422,
... |
connection = atom.service.AtomService._CreateConnection(self, uri, 'GET', | connection = self.handler._CreateConnection(self, uri, 'GET', | def GetMedia(self, uri, extra_headers=None): """Returns a MediaSource containing media and its metadata from the given URI string. """ connection = atom.service.AtomService._CreateConnection(self, uri, 'GET', extra_headers) response_handle = connection.getresponse() return gdata.MediaSource(response_handle, response_ha... | 2fc3c8b5e04f49e7854d86afdf5c528572665ee2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6580/2fc3c8b5e04f49e7854d86afdf5c528572665ee2/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5419,
12,
2890,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
4672,
3536,
1356,
279,
6128,
1830,
4191,
3539,
471,
2097,
1982,
628,
326,
864,
3699,
533,
18,
3536,
1459,
273,
365,
18,
417... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5419,
12,
2890,
16,
2003,
16,
2870,
67,
2485,
33,
7036,
4672,
3536,
1356,
279,
6128,
1830,
4191,
3539,
471,
2097,
1982,
628,
326,
864,
3699,
533,
18,
3536,
1459,
273,
365,
18,
417... |
@pattern: the URI pattern string @allow_query: if True, then a URI including a query string will match (default: True) | def register_invokation_syntax(server): """ Allows the component to register the required XML element syntax for it's invokation in sitemap files with the sitemap_config_parse class. """ invk_syn = invokation_syntax() invk_syn.element_name = "match" invk_syn.allowed_parent_components = ["pipeline"] invk_syn.required_a... | 5159097980568cbffb9fee4e51dfa96450b2f25e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/5159097980568cbffb9fee4e51dfa96450b2f25e/uri_matcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
5768,
601,
367,
67,
14308,
12,
3567,
4672,
3536,
25619,
326,
1794,
358,
1744,
326,
1931,
3167,
930,
6279,
364,
518,
1807,
5770,
367,
316,
14628,
1390,
598,
326,
14628,
67,
1425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
5768,
601,
367,
67,
14308,
12,
3567,
4672,
3536,
25619,
326,
1794,
358,
1744,
326,
1931,
3167,
930,
6279,
364,
518,
1807,
5770,
367,
316,
14628,
1390,
598,
326,
14628,
67,
1425... | |
- ``solver`` -- (default: ``None``) Specify a Linear Program (LP) | - ``solver`` -- (default: ``None``) Specify the Linear Program (LP) | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | 815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
this = apply(_quickfix.new_ConfirmTransType, args) | this = _quickfix.new_ConfirmTransType(*args) | def __init__(self, *args): this = apply(_quickfix.new_ConfirmTransType, 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,
11269,
1429,
559,
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,
11269,
1429,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
if name_index < nrequired: | if argument_name=='self': args.append(selfarg) elif name_index < nrequired: | def function_with_empty_signature(): pass | 09f5b1db455435c5f09abbc280b9c25669d23fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/09f5b1db455435c5f09abbc280b9c25669d23fd1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1918,
67,
5531,
67,
8195,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
445,
67,
1918,
67,
5531,
67,
8195,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
['> %s' % line for line in original.splitlines()] + ['']) | ["> %s" % line for line in original.splitlines()] + ['']) | def quote_original(author, original, link): if 'comment' not in req.args: # i.e. the comment was not yet edited data['comment'] = '\n'.join( ['Replying to [%s %s]:' % (link, obfuscate_email_address(author))] + ['> %s' % line for line in original.splitlines()] + ['']) | a8a6442302dc21bfc63206a71113b0375cb3c946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a8a6442302dc21bfc63206a71113b0375cb3c946/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
8830,
12,
4161,
16,
2282,
16,
1692,
4672,
309,
296,
3469,
11,
486,
316,
1111,
18,
1968,
30,
468,
277,
18,
73,
18,
326,
2879,
1703,
486,
4671,
18532,
501,
3292,
3469,
3546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3862,
67,
8830,
12,
4161,
16,
2282,
16,
1692,
4672,
309,
296,
3469,
11,
486,
316,
1111,
18,
1968,
30,
468,
277,
18,
73,
18,
326,
2879,
1703,
486,
4671,
18532,
501,
3292,
3469,
3546,
... |
def on_VideoList_drag_data_received (self, treeview, context, x, y, selection, info, etime): | def on_VideoList_drag_data_received (self, tv, context, x, y, selection, info, etime): | def on_VideoList_drag_data_received (self, treeview, context, x, y, selection, info, etime): for x in selection.data.split (): self.AddFile (self.Uri2Filename (x).decode (FNENC)) | e6c1d8b8aa1eeead3142f41f1d3380b7665838c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2524/e6c1d8b8aa1eeead3142f41f1d3380b7665838c0/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
10083,
682,
67,
15997,
67,
892,
67,
15213,
261,
2890,
16,
13521,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
364,
619,
316,
4421,
18,
892,
18,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
10083,
682,
67,
15997,
67,
892,
67,
15213,
261,
2890,
16,
13521,
16,
819,
16,
619,
16,
677,
16,
4421,
16,
1123,
16,
225,
2374,
4672,
364,
619,
316,
4421,
18,
892,
18,
4939,
... |
parser.error("Incorrect number of arguments") | option_parser.error("Incorrect number of arguments") | def main(options, args): # PE means portable executable. It's any .DLL, .EXE, .SYS, .AX, etc. pe_name = args[0] deps_file = args[1] dependents, delay_loaded = RunDumpbin(pe_name) if options.debug: print "Dependents:" print "\n".join(dependents) print "Delayloaded:" print "\n".join(delay_loaded) return VerifyDependents(... | b7adafec77be7a7b0de70a2845feaa58a9e3e74b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/b7adafec77be7a7b0de70a2845feaa58a9e3e74b/dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
468,
16628,
4696,
1756,
429,
9070,
18,
2597,
1807,
1281,
263,
40,
4503,
16,
263,
2294,
41,
16,
263,
30664,
16,
263,
2501,
16,
5527,
18,
2804,
67,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
468,
16628,
4696,
1756,
429,
9070,
18,
2597,
1807,
1281,
263,
40,
4503,
16,
263,
2294,
41,
16,
263,
30664,
16,
263,
2501,
16,
5527,
18,
2804,
67,
529,
... |
self.failIf(len(self.sample) < 1, "not enough data to test not-nullable columns") | self.failIf(len(self.samples) < 1, "not enough sample data") | def not_nullable(self): """Check that certain columns of a table are not nullable. Specify the ``not_nullables`` class variable with a list of column names that must not be null, and this method will insert into the table rows with each set to null and test for an exception from the database layer. """ | e26115b12b8916821fc089470a71b177e9807d0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/e26115b12b8916821fc089470a71b177e9807d0e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
67,
20247,
12,
2890,
4672,
3536,
1564,
716,
8626,
2168,
434,
279,
1014,
854,
486,
8413,
18,
225,
21664,
326,
12176,
902,
67,
2011,
1538,
10335,
667,
2190,
598,
279,
666,
434,
1057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
486,
67,
20247,
12,
2890,
4672,
3536,
1564,
716,
8626,
2168,
434,
279,
1014,
854,
486,
8413,
18,
225,
21664,
326,
12176,
902,
67,
2011,
1538,
10335,
667,
2190,
598,
279,
666,
434,
1057,
... |
def ftp_SIZE(self, line): if not line: self.cmd_missing_arg() return | def ftp_SIZE(self, line): | def ftp_SIZE(self, line): if not line: self.cmd_missing_arg() return size = self.fs.getsize(self.fs.translate(line)) if size >= 0: self.log('OK SIZE "%s"' %self.fs.normalize(line)) self.respond("213 %s" %size) else: self.log('FAIL SIZE "%s". No such file.' %self.fs.normalize(line)) self.respond("550 No such file.") | 42cfb92815cfe91b8e9573da1b07cf8dce19a9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/42cfb92815cfe91b8e9573da1b07cf8dce19a9ff/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
963,
273,
365,
18,
2556,
18,
588,
1467,
12,
2890,
18,
2556,
18,
13929,
12,
1369,
3719,
309,
963,
1545,
374,
30,
365,
18,
1330,
2668,
3141,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
963,
273,
365,
18,
2556,
18,
588,
1467,
12,
2890,
18,
2556,
18,
13929,
12,
1369,
3719,
309,
963,
1545,
374,
30,
365,
18,
1330,
2668,
3141,
1... |
self.api_helper = get_api_helper(self.base_url) assert self.api_helper is not None, 'invalid base URL %r' % self.base_url | self.api_helper = get_api_helper(base_url) assert self.api_helper is not None, 'invalid base URL %r' % base_url | def __init__(self, base_url, license, template_blacklist=None): """ @param base_url: base URL of a MediaWiki, e.g. 'http://en.wikipedia.org/w/' @type base_url: basestring @param license: title of an article containing full license text @type license: unicode @param template_blacklist: title of an article containing b... | b0c7766f2d34d0780fd0efac734f5c00a670f473 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/b0c7766f2d34d0780fd0efac734f5c00a670f473/mwapidb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
718,
16,
8630,
16,
1542,
67,
22491,
33,
7036,
4672,
3536,
632,
891,
1026,
67,
718,
30,
1026,
1976,
434,
279,
6128,
25438,
16,
425,
18,
75,
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,
1001,
2738,
972,
12,
2890,
16,
1026,
67,
718,
16,
8630,
16,
1542,
67,
22491,
33,
7036,
4672,
3536,
632,
891,
1026,
67,
718,
30,
1026,
1976,
434,
279,
6128,
25438,
16,
425,
18,
75,
18... |
compare = xml_compare return compare(expected, compared, whitespace) | diff = xml_diff return diff(expected, compared, whitespace) | def document_compare(expected, compared, whitespace=True): # See if we need to use XML or HTML if not _xmldecl_find.match(expected) and _html_find.search(expected): compare = html_compare else: compare = xml_compare return compare(expected, compared, whitespace) | 005fe03c7ee561cde4832e60e02133555601ae53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14078/005fe03c7ee561cde4832e60e02133555601ae53/treecompare.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
67,
9877,
12,
3825,
16,
15843,
16,
7983,
33,
5510,
4672,
468,
2164,
309,
732,
1608,
358,
999,
3167,
578,
3982,
309,
486,
389,
2902,
8840,
67,
4720,
18,
1916,
12,
3825,
13,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1668,
67,
9877,
12,
3825,
16,
15843,
16,
7983,
33,
5510,
4672,
468,
2164,
309,
732,
1608,
358,
999,
3167,
578,
3982,
309,
486,
389,
2902,
8840,
67,
4720,
18,
1916,
12,
3825,
13,
471,
... |
offset = get_move_xyz(self.w, 0) | offset = get_move_xyz(self.w, Plus=False) | def moveDeltaMinus(self): "Subtract X, Y, and Z from the selected chunk(s) current position" if not self.o.assy.getSelectedMovables(): env.history.message(redmsg("No chunks or movable jigs selected.")) return offset = get_move_xyz(self.w, 0) self.o.assy.movesel(offset) self.o.gl_update() | e4ad408a23ccf263431eafe4e543b61233f4b036 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e4ad408a23ccf263431eafe4e543b61233f4b036/modifyMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
9242,
18434,
12,
2890,
4672,
315,
27904,
1139,
16,
1624,
16,
471,
2285,
628,
326,
3170,
2441,
12,
87,
13,
783,
1754,
6,
309,
486,
365,
18,
83,
18,
428,
93,
18,
588,
7416,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
9242,
18434,
12,
2890,
4672,
315,
27904,
1139,
16,
1624,
16,
471,
2285,
628,
326,
3170,
2441,
12,
87,
13,
783,
1754,
6,
309,
486,
365,
18,
83,
18,
428,
93,
18,
588,
7416,
49,
... |
if image or analyze: if components_only: newmodel=project+".compskymodel" if not os.path.exists(project+".image"): msg("must image before analyzing",priority="error") return False ia.imagecalc(pixels="'"+project+".image' * 0",outfile=newmodel,overwrite=True) ia.open(newmodel) cl.open(complist) ia.setbrightnessunit("Jy/... | def simdata( project=None, modifymodel=None, skymodel=None, inbright=None, indirection=None, incell=None, incenter=None, inwidth=None, # innchan=None, setpointings=None, ptgfile=None, integration=None, direction=None, mapsize=None, maptype=None, pointingspacing=None, caldirection=None, calflux=None, predict=None, refda... | 780077376f3df1b7ef2de24709048712be5d655f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/780077376f3df1b7ef2de24709048712be5d655f/task_simdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
892,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3142,
892,
12,
1984,
33,
7036,
16,
5612,
2284,
33,
7036,
16,
15513,
2284,
33,
7036,
16,
316,
31070,
33,
7036,
16,
1547,
2769,
33,
7036,
16,
316,
3855,
33,
7036,
16,
316,
5693,
33,
70... | |
environment variable.""" | environment variable. """ | def testFlagOverridesEnvVar(self): """Tests that the --gtest_filter flag overrides the GTEST_FILTER environment variable.""" | 8811cad3eac09720ff023f0230f7f78253ae10a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14009/8811cad3eac09720ff023f0230f7f78253ae10a9/gtest_filter_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4678,
13084,
3491,
1537,
12,
2890,
4672,
3536,
14650,
716,
326,
1493,
75,
3813,
67,
2188,
2982,
9515,
326,
611,
16961,
67,
11126,
3330,
2190,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4678,
13084,
3491,
1537,
12,
2890,
4672,
3536,
14650,
716,
326,
1493,
75,
3813,
67,
2188,
2982,
9515,
326,
611,
16961,
67,
11126,
3330,
2190,
12123,
2,
-100,
-100,
-100,
-100,
-100,
... |
form["responsedocument"] = {} | def parseResponseForm(self,responseFormNode): """ Parse requested response form node """ | 9c89d6fe26d32c716900c068a74c508f9a4a7ddc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10967/9c89d6fe26d32c716900c068a74c508f9a4a7ddc/Execute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28880,
1204,
12,
2890,
16,
2740,
1204,
907,
4672,
3536,
2884,
3764,
766,
646,
756,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28880,
1204,
12,
2890,
16,
2740,
1204,
907,
4672,
3536,
2884,
3764,
766,
646,
756,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
sage: P = e.gens()[0] | sage: P = e([-6,10]) | def lift(self,P, prec = 20): """ Given a point $P$ in the formal group of the elliptic curve $E$ with split multiplicative reduction, this produces an element u in $\QQ_p^{\times}$ mapped to the point $P$ by the Tate parametrisation. The algorithm return the unique such element in $1+p\ZZ_p$. | 5a4fdde1121da702a42c5e175419f11f670a0f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5a4fdde1121da702a42c5e175419f11f670a0f2d/ell_tate_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28080,
12,
2890,
16,
52,
16,
13382,
273,
4200,
4672,
3536,
16803,
279,
1634,
271,
52,
8,
316,
326,
25739,
1041,
434,
326,
415,
549,
21507,
8882,
271,
41,
8,
598,
1416,
3309,
28884,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28080,
12,
2890,
16,
52,
16,
13382,
273,
4200,
4672,
3536,
16803,
279,
1634,
271,
52,
8,
316,
326,
25739,
1041,
434,
326,
415,
549,
21507,
8882,
271,
41,
8,
598,
1416,
3309,
28884,
201... |
os.remove(link) except OSError, e: pass | os.remove(link_name) except OSError: logging.exception("Can't remove symlink '%s'", link_name) | def _RemoveBlockDevLinks(instance_name): """Remove the block device symlinks belonging to the given instance. """ for i in os.listdir(constants.DISK_LINKS_DIR): if os.path.islink(i) and i.startswith('%s-' % instance_name): try: os.remove(link) except OSError, e: pass # Ignore errors when removing the symlinks | 03dfa658bc0377e2d7bff329b5a3969ccd7dc244 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/03dfa658bc0377e2d7bff329b5a3969ccd7dc244/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3288,
1768,
8870,
7100,
12,
1336,
67,
529,
4672,
3536,
3288,
326,
1203,
2346,
23146,
17622,
358,
326,
864,
791,
18,
225,
3536,
364,
277,
316,
1140,
18,
1098,
1214,
12,
13358,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3288,
1768,
8870,
7100,
12,
1336,
67,
529,
4672,
3536,
3288,
326,
1203,
2346,
23146,
17622,
358,
326,
864,
791,
18,
225,
3536,
364,
277,
316,
1140,
18,
1098,
1214,
12,
13358,
18,
... |
def hide_cover_browser(self): | self.cb_splitter.button.set_state_to_hide() def cover_browser_closed(self, *args): self.cb_dialog = None self.cb_splitter.button.set_state_to_show() def hide_cover_browser(self, *args): | def show_cover_browser(self): d = QDialog(self) ah, aw = available_height(), available_width() d.resize(int(aw/1.5), ah-60) d._layout = QStackedLayout() d.setLayout(d._layout) d.setWindowTitle(_('Browse by covers')) d.layout().addWidget(self.cover_flow) self.cover_flow.setVisible(True) self.cover_flow.setFocus(Qt.Other... | a1201c899c34986445263a7f34c3b3580c6ab543 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a1201c899c34986445263a7f34c3b3580c6ab543/cover_flow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
3165,
67,
11213,
12,
2890,
4672,
302,
273,
2238,
6353,
12,
2890,
13,
279,
76,
16,
1690,
273,
2319,
67,
4210,
9334,
2319,
67,
2819,
1435,
302,
18,
15169,
12,
474,
12,
2219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
3165,
67,
11213,
12,
2890,
4672,
302,
273,
2238,
6353,
12,
2890,
13,
279,
76,
16,
1690,
273,
2319,
67,
4210,
9334,
2319,
67,
2819,
1435,
302,
18,
15169,
12,
474,
12,
2219,
... |
endIndex= len(self.timestamps) if (self.timestamps[endIndex]>endTS): endIndex = endIndex -1 | endIndex= len(self.timestamps)-1 | def getMatrixBetweenTS (self, stocksList, dataItem, beginTS=None, endTS=None, exact=False): ''' @summary: includes beginTS and endTS. This uses the getMatrixBetweenIndex function. @param stocksList: The list of stock names for which you want the data. @param dataItem: The dataItem that you want ex, open , close @param ... | aac8c826466e53a9ebfdbebd2a883d3b1f47f9fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10651/aac8c826466e53a9ebfdbebd2a883d3b1f47f9fb/DataAccess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
1942,
11831,
8047,
261,
2890,
16,
12480,
21576,
16,
27493,
16,
2376,
8047,
33,
7036,
16,
679,
8047,
33,
7036,
16,
5565,
33,
8381,
4672,
9163,
632,
7687,
30,
6104,
2376,
8047,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2108,
1942,
11831,
8047,
261,
2890,
16,
12480,
21576,
16,
27493,
16,
2376,
8047,
33,
7036,
16,
679,
8047,
33,
7036,
16,
5565,
33,
8381,
4672,
9163,
632,
7687,
30,
6104,
2376,
8047,
471,
... |
match = re_url.match(url) | match = url_match(url) | def extract_domain(url): """ Extract the domain name from a http:// URL, without www prefix. >>> extract_domain('http://browsershots.org/submit/') 'browsershots.org' >>> extract_domain('http://www.google.com') 'google.com' >>> extract_domain('http://test.example.com:8000/') 'test.example.com' """ match = re_url.match(... | 392c1d5f2726cc9d5429dc414cf5b3653f8e40ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/392c1d5f2726cc9d5429dc414cf5b3653f8e40ae/submitjobs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
4308,
12,
718,
4672,
3536,
8152,
326,
2461,
508,
628,
279,
1062,
2207,
1976,
16,
2887,
8765,
1633,
18,
225,
4080,
2608,
67,
4308,
2668,
2505,
2207,
70,
13221,
76,
6968,
18,
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,
2608,
67,
4308,
12,
718,
4672,
3536,
8152,
326,
2461,
508,
628,
279,
1062,
2207,
1976,
16,
2887,
8765,
1633,
18,
225,
4080,
2608,
67,
4308,
2668,
2505,
2207,
70,
13221,
76,
6968,
18,
3... |
pass | uu,ss = resource.getrusage(resource.RUSAGE_SELF)[:2] print "Finished updating Cython code (time = %s seconds)"%(uu+ss-u-s) | def create_deps(ext_modules): # first we compute the complete graph of dependencies deps = {} for m in ext_modules: m.extra_compile_args += extra_compile_args for i in range(len(m.sources)): f = m.sources[i] if f[-4:] == '.pyx': visited = set() deps_graph(deps, f, visited) base = os.path.splitext(f)[0] f = f[:-4] + '.p... | 8d77d526061cc6c27a1c531e80978bdce427bf2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/8d77d526061cc6c27a1c531e80978bdce427bf2a/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
14877,
12,
408,
67,
6400,
4672,
468,
1122,
732,
3671,
326,
3912,
2667,
434,
5030,
8740,
273,
2618,
364,
312,
316,
1110,
67,
6400,
30,
312,
18,
7763,
67,
11100,
67,
1968,
1011,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
14877,
12,
408,
67,
6400,
4672,
468,
1122,
732,
3671,
326,
3912,
2667,
434,
5030,
8740,
273,
2618,
364,
312,
316,
1110,
67,
6400,
30,
312,
18,
7763,
67,
11100,
67,
1968,
1011,... |
path = 'copyright/' + i[0] + '/' + i[2] | path = appdir + i[0] + '/' + i[2] | def exclusion_file_list(): for i in pages_for_exclusion_database: path = 'copyright/' + i[0] + '/' + i[2] mediawiki_messages.makepath(path) p = wikipedia.Page(wikipedia.getSite(i[0]),i[1]) yield p, path | 3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
768,
67,
1098,
13332,
364,
277,
316,
4689,
67,
1884,
67,
338,
15335,
67,
6231,
30,
589,
273,
595,
1214,
397,
277,
63,
20,
65,
397,
2023,
397,
277,
63,
22,
65,
3539,
13044,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21244,
67,
768,
67,
1098,
13332,
364,
277,
316,
4689,
67,
1884,
67,
338,
15335,
67,
6231,
30,
589,
273,
595,
1214,
397,
277,
63,
20,
65,
397,
2023,
397,
277,
63,
22,
65,
3539,
13044,... |
engine, args = random.choice(anaengines[:-1]) | if len(anaengines) > 1: engine, args = random.choice(anaengines[:-1]) else: engine, args = anaengines[0] | def runNewGameDialog (hideFC=True): makeNewGameDialogReady () if hideFC: window["ngfcalignment"].hide() else: window["ngfcalignment"].show() res = window["newgamedialog"].run() window["newgamedialog"].hide() if res != gtk.RESPONSE_OK: return if window["useTimeCB"].get_active(): window["ccalign"].show() clock = windo... | a9a8019ff0747bcdb15edfb0ca61e3054900f18d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5339/a9a8019ff0747bcdb15edfb0ca61e3054900f18d/PyChess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1908,
12496,
6353,
261,
11248,
4488,
33,
5510,
4672,
1221,
1908,
12496,
6353,
8367,
1832,
225,
309,
6853,
4488,
30,
2742,
9614,
3368,
74,
771,
3515,
6,
8009,
11248,
1435,
469,
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,
1086,
1908,
12496,
6353,
261,
11248,
4488,
33,
5510,
4672,
1221,
1908,
12496,
6353,
8367,
1832,
225,
309,
6853,
4488,
30,
2742,
9614,
3368,
74,
771,
3515,
6,
8009,
11248,
1435,
469,
30,
... |
print "appending", index | def _select(self, index, append=True): if append: self.selections.append(index) print "appending", index else: self.selections = [index] print "selecting", index return | 3e23ff2d70475cac76695a543d3f7d6a3f912d61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/3e23ff2d70475cac76695a543d3f7d6a3f912d61/selectable_legend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
12,
2890,
16,
770,
16,
714,
33,
5510,
4672,
309,
714,
30,
365,
18,
10705,
87,
18,
6923,
12,
1615,
13,
469,
30,
365,
18,
10705,
87,
273,
306,
1615,
65,
1172,
315,
4025,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4025,
12,
2890,
16,
770,
16,
714,
33,
5510,
4672,
309,
714,
30,
365,
18,
10705,
87,
18,
6923,
12,
1615,
13,
469,
30,
365,
18,
10705,
87,
273,
306,
1615,
65,
1172,
315,
4025,
3... | |
Return an iterator over the vertices. Allows 'for v in G'. | Return an iterator over the vertices which allows \code{for v in G} syntax. | def __iter__(self): """ Return an iterator over the vertices. Allows 'for v in G'. | 7d819cbf1df622e9f76b4801233dbb334f44d362 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d819cbf1df622e9f76b4801233dbb334f44d362/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2000,
392,
2775,
1879,
326,
6928,
18,
25619,
296,
1884,
331,
316,
611,
10332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
3536,
2000,
392,
2775,
1879,
326,
6928,
18,
25619,
296,
1884,
331,
316,
611,
10332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if _is_real_matrix(x) and y.type == x.type: | if _is_real_matrix(x) and _is_real_matrix(y) and y.type.dtype == x.type.dtype: | def local_dot_to_dot22(node): if node.op == T.dot: x,y = node.inputs if _is_real_matrix(x) and y.type == x.type: return [_dot22(*node.inputs)] else: info('Not optimizing dot with inputs', x, y) else: return False | 24d00ecd1e6531dfb98323cb1474df66a4d3c3fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/24d00ecd1e6531dfb98323cb1474df66a4d3c3fa/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
9811,
67,
869,
67,
9811,
3787,
12,
2159,
4672,
309,
756,
18,
556,
422,
399,
18,
9811,
30,
619,
16,
93,
273,
756,
18,
10029,
309,
389,
291,
67,
7688,
67,
5667,
12,
92,
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,
1191,
67,
9811,
67,
869,
67,
9811,
3787,
12,
2159,
4672,
309,
756,
18,
556,
422,
399,
18,
9811,
30,
619,
16,
93,
273,
756,
18,
10029,
309,
389,
291,
67,
7688,
67,
5667,
12,
92,
13,... |
True) | True, updateOnly) | # def _mergeGroupChanges -- main body begins here | 80783a537f1ca63d21641d8a2178c982af50c893 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/80783a537f1ca63d21641d8a2178c982af50c893/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
1652,
389,
2702,
1114,
7173,
1493,
2774,
1417,
17874,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
1652,
389,
2702,
1114,
7173,
1493,
2774,
1417,
17874,
2674,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "\n\nUnknown KeySym: ", event.keyval, "\n\n" | def cb_key_press(self, widget, event, data=None): #self.child.stdin.write(event.string) if keySyms.has_key(event.keyval): key = keySyms[event.keyval] else: print "\n\nUnknown KeySym: ", event.keyval, "\n\n" key = event.string if self.keyConfig.has_key(key): action = self.keyConfig[key] if action == 'quit': self.window... | 8dce63f3b680639118632a1900eba8facb865daa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13137/8dce63f3b680639118632a1900eba8facb865daa/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
856,
67,
1028,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
468,
2890,
18,
3624,
18,
21772,
18,
2626,
12,
2575,
18,
1080,
13,
309,
498,
10876,
959,
18,
5332,
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,
2875,
67,
856,
67,
1028,
12,
2890,
16,
3604,
16,
871,
16,
501,
33,
7036,
4672,
468,
2890,
18,
3624,
18,
21772,
18,
2626,
12,
2575,
18,
1080,
13,
309,
498,
10876,
959,
18,
5332,
67,
... | |
sage: @interacts.decorator.library_interact | sage: @interacts.library.library_interact | def library_interact(f): """ This is a decorator for using interacts in the Sage library. EXAMPLES:: sage: @interacts.decorator.library_interact ... def f(n=5): print n ... sage: f() # an interact appears <html>...</html> """ @sage_wraps(f) def library_wrapper(): # Maybe program around bug (?) in the notebook: html(... | 3598ee624f06e762d55d69091e970765a6964002 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3598ee624f06e762d55d69091e970765a6964002/library.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5313,
67,
2761,
621,
12,
74,
4672,
3536,
1220,
353,
279,
7367,
364,
1450,
16592,
87,
316,
326,
348,
410,
5313,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
632,
2761,
621,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5313,
67,
2761,
621,
12,
74,
4672,
3536,
1220,
353,
279,
7367,
364,
1450,
16592,
87,
316,
326,
348,
410,
5313,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
632,
2761,
621,
87,
... |
Copyright (C) 2005 Skomoroh | Copyright (C) 2005 - 2007 Skomoroh. | def help_about(app, timeout=0, sound=True): if sound: app.audio.playSample("about") t = _("A Python Solitaire Game Collection\n") if app.miscrandom.random() < 0.8: t = _("A World Domination Project\n") strings=(_("&Nice"), _("&Credits...")) if timeout: strings=(_("&Enjoy"),) version = _("Version %s") % VERSION d = Pyso... | e9b9145fd0600e60ca3d13081a040c01aa4a82f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11444/e9b9145fd0600e60ca3d13081a040c01aa4a82f4/help.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
21071,
12,
2910,
16,
2021,
33,
20,
16,
14190,
33,
5510,
4672,
309,
14190,
30,
595,
18,
11509,
18,
1601,
8504,
2932,
21071,
7923,
268,
273,
389,
2932,
37,
6600,
348,
355,
2333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
21071,
12,
2910,
16,
2021,
33,
20,
16,
14190,
33,
5510,
4672,
309,
14190,
30,
595,
18,
11509,
18,
1601,
8504,
2932,
21071,
7923,
268,
273,
389,
2932,
37,
6600,
348,
355,
2333... |
number = inumber[0:3]+'-'+inumber[3:6]+'-'+inumber[6:] | if not "-" in inumber: number = inumber[0:3]+'-'+inumber[3:6]+'-'+inumber[6:] else: number = inumber | def post(self): """ Called when a new ride needs to be added to the database. Probably with all of this data it should be done as a form post. Arguments: - `self`: Web Arguments: - max_passengers - num_passengers - driver - start_point_title - start_point_lat - start_point_long - destination_title - destination_lat - ... | 77683a51337178ae30286b6a777530baaa315d6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9768/77683a51337178ae30286b6a777530baaa315d6d/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
3536,
11782,
1347,
279,
394,
436,
831,
4260,
358,
506,
3096,
358,
326,
2063,
18,
14610,
6906,
598,
777,
434,
333,
501,
518,
1410,
506,
2731,
487,
279,
646,
1603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
3536,
11782,
1347,
279,
394,
436,
831,
4260,
358,
506,
3096,
358,
326,
2063,
18,
14610,
6906,
598,
777,
434,
333,
501,
518,
1410,
506,
2731,
487,
279,
646,
1603,
... |
from pylint.rlint import RPyLinter self.LinterClass = RPyLinter | from pylint.checkers.rpython import RPythonChecker RPythonChecker.enabled = True | def cb_rpython_mode(self, name, value): from pylint.rlint import RPyLinter self.LinterClass = RPyLinter | 98920f55da2b48b3003928d2b345c06646971467 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/928/98920f55da2b48b3003928d2b345c06646971467/lint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
67,
86,
8103,
67,
3188,
12,
2890,
16,
508,
16,
460,
4672,
628,
7601,
18,
1893,
414,
18,
86,
8103,
1930,
534,
15774,
8847,
534,
15774,
8847,
18,
5745,
273,
1053,
565,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2875,
67,
86,
8103,
67,
3188,
12,
2890,
16,
508,
16,
460,
4672,
628,
7601,
18,
1893,
414,
18,
86,
8103,
1930,
534,
15774,
8847,
534,
15774,
8847,
18,
5745,
273,
1053,
565,
2,
-100,
-... |
self.assertEqual(r, s) | self.assertEqual(1, len(s)) self.assertEqual(r, s[0]) | def test_select_by_url_hash(self): self.check_empty_session() | 2e257a0da82736f68385a0036bccfef007334a90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/2e257a0da82736f68385a0036bccfef007334a90/test_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4025,
67,
1637,
67,
718,
67,
2816,
12,
2890,
4672,
365,
18,
1893,
67,
5531,
67,
3184,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4025,
67,
1637,
67,
718,
67,
2816,
12,
2890,
4672,
365,
18,
1893,
67,
5531,
67,
3184,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.assertEqual(rem, 0) self.assertEqual(r1, r2) | self.assertEqual(rem, 0, '%s != 0 for %s' % (rem, i)) self.assertEqual(r1, r2, '%s != %s for %s' % (r1, r2, i)) | def test_count(self): self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(2,... | f71ec5a0acbf606abd8a19519829db8de20352ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f71ec5a0acbf606abd8a19519829db8de20352ec/string_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1883,
12,
2890,
4672,
365,
18,
1893,
9729,
12,
23,
16,
296,
26676,
2187,
296,
1883,
2187,
296,
69,
6134,
365,
18,
1893,
9729,
12,
20,
16,
296,
26676,
2187,
296,
1883,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1883,
12,
2890,
4672,
365,
18,
1893,
9729,
12,
23,
16,
296,
26676,
2187,
296,
1883,
2187,
296,
69,
6134,
365,
18,
1893,
9729,
12,
20,
16,
296,
26676,
2187,
296,
1883,
2187,
... |
debug("Authenticated") | self.debug("Authenticated") | def auth_finish(self,stanza): debug("Authenticated") self.me=self.jid self.authenticated=1 self.post_auth() | 81d57e9e8933ec1e4bdb36dfed96bfe802568f87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/81d57e9e8933ec1e4bdb36dfed96bfe802568f87/clientstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1357,
67,
13749,
12,
2890,
16,
541,
11939,
4672,
365,
18,
4148,
2932,
15606,
7923,
365,
18,
3501,
33,
2890,
18,
18252,
365,
18,
14454,
33,
21,
365,
18,
2767,
67,
1944,
1435,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1357,
67,
13749,
12,
2890,
16,
541,
11939,
4672,
365,
18,
4148,
2932,
15606,
7923,
365,
18,
3501,
33,
2890,
18,
18252,
365,
18,
14454,
33,
21,
365,
18,
2767,
67,
1944,
1435,
2,
-100,
... |
retval,out,err = execute( (self.renderer, self.rversionopt) ) | retval,out,err = execute( self.renderer + [self.rversionopt] ) | def rendererVersion(self): """Return the version string of the renderer.""" | e29a86091a0113388b787b3a205e30bf517ed947 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/e29a86091a0113388b787b3a205e30bf517ed947/rendertester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5690,
1444,
12,
2890,
4672,
3536,
990,
326,
1177,
533,
434,
326,
5690,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
5690,
1444,
12,
2890,
4672,
3536,
990,
326,
1177,
533,
434,
326,
5690,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
@param id: structure type ID | @param sid: structure type ID | def GetStrucName(id): """ Get structure type name @param id: structure type ID @return: -1 if bad structure type ID is passed otherwise returns structure type name. """ return idaapi.get_struc_name(id) | 76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1585,
5286,
461,
12,
350,
4672,
3536,
968,
3695,
618,
508,
225,
632,
891,
7348,
30,
3695,
618,
1599,
225,
632,
2463,
30,
565,
300,
21,
309,
5570,
3695,
618,
1599,
353,
2275,
3541,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1585,
5286,
461,
12,
350,
4672,
3536,
968,
3695,
618,
508,
225,
632,
891,
7348,
30,
3695,
618,
1599,
225,
632,
2463,
30,
565,
300,
21,
309,
5570,
3695,
618,
1599,
353,
2275,
3541,... |
filename,os.path.split(filename)[0] ) | filename,os.path.split(filename)[0]) | def LoadMonolithicOrSequenceSpecial(filename=None): if filename==None: filename=wx.FileSelector() numFrames,w,h,isSequence = GetShapeMonolithicOrSequence(filename) if isSequence: files = getSortedListOfNumericalEquivalentFiles( filename,os.path.split(filename)[0] ) if len(files)==0: print 'Empty Directory!' return t0... | 22ad5ff7285312db6c9670b2b41de790312eefa6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10587/22ad5ff7285312db6c9670b2b41de790312eefa6/GifTiffLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
11415,
355,
483,
335,
1162,
4021,
12193,
12,
3459,
33,
7036,
4672,
309,
1544,
631,
7036,
30,
1544,
33,
27226,
18,
812,
4320,
1435,
225,
818,
15162,
16,
91,
16,
76,
16,
291,
4021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
11415,
355,
483,
335,
1162,
4021,
12193,
12,
3459,
33,
7036,
4672,
309,
1544,
631,
7036,
30,
1544,
33,
27226,
18,
812,
4320,
1435,
225,
818,
15162,
16,
91,
16,
76,
16,
291,
4021,... |
print "\nBefore error?" atom = self.viewer.renderer.addAtom(self.chosenAtom) print "After error?" self.chosenAtom = atom self.currentChainModel[self.resSeqNum].addAtomObject(self.chosenAtom) | print self.chosenCoordinates raw = PDBAtom(self.currentChainModel.getPdbID(), self.currentChainModel.getChainID(), self.resSeqNum, 'CA') raw.setPosition(self.chosenCoordinates) atom = self.viewer.renderer.addAtom(raw) print atom self.currentChainModel[self.resSeqNum].addAtomObject(atom) | def redo(self): print "\nBefore error?" #TODO: Fix segmentation fault!!! atom = self.viewer.renderer.addAtom(self.chosenAtom) #Segmentation fault here if I click undo then redo print "After error?" self.chosenAtom = atom self.currentChainModel[self.resSeqNum].addAtomObject(self.chosenAtom) self.currentChainModel[self.r... | e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e8ef4efb1ee70bddc3bc00074e7599d9adb9bfb9/structure_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24524,
12,
2890,
4672,
1172,
1548,
82,
4649,
555,
7225,
468,
6241,
30,
12139,
25192,
12530,
25885,
3179,
273,
365,
18,
25256,
18,
14374,
18,
1289,
3641,
12,
2890,
18,
343,
8918,
3641,
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,
24524,
12,
2890,
4672,
1172,
1548,
82,
4649,
555,
7225,
468,
6241,
30,
12139,
25192,
12530,
25885,
3179,
273,
365,
18,
25256,
18,
14374,
18,
1289,
3641,
12,
2890,
18,
343,
8918,
3641,
13... |
print item | def testItemAttributeAccessAttribute(self): item = gdata.base.GBaseItem() item.AddItemAttribute('test', '1', value_type='int', access='private') print item private_attribute = item.GetItemAttributes('test')[0] self.assert_(private_attribute.access == 'private') xml = item.ToString() new_item = gdata.base.GBaseItemFromS... | c5938f2c58a309663ce23daec6dc22a3b142dae7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5609/c5938f2c58a309663ce23daec6dc22a3b142dae7/base_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1180,
1499,
1862,
1499,
12,
2890,
4672,
761,
273,
314,
892,
18,
1969,
18,
43,
2171,
1180,
1435,
761,
18,
986,
1180,
1499,
2668,
3813,
2187,
296,
21,
2187,
460,
67,
723,
2218,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
1499,
1862,
1499,
12,
2890,
4672,
761,
273,
314,
892,
18,
1969,
18,
43,
2171,
1180,
1435,
761,
18,
986,
1180,
1499,
2668,
3813,
2187,
296,
21,
2187,
460,
67,
723,
2218,
474... | |
db.DB_CREATE | db.DB_THREAD) | db.DB_CREATE | db.DB_THREAD | self.dbFlags) | def test02_associateAfterDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_associateAfterDB..." % \ self.__class__.__name__ | 4a1088c2f2437fbec26e363210956a0f8109e7cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4a1088c2f2437fbec26e363210956a0f8109e7cd/test_associate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,... |
rid = value if is_rid and rid: self.params['RID'] = rid | if cur_input is not None and value: self.params[cur_input] = value | def do_input(self, attributes): # parse the "INPUT" tags to try and find the reference ID (RID) is_rid = 0 rid = None for attr, value in attributes: attr, value = string.upper(attr), string.upper(value) if attr == 'NAME' and value == 'RID': is_rid = 1 elif attr == 'VALUE': rid = value if is_rid and rid: self.params['RI... | 76982ed31bca5dfbd407975181dc8b02d445ece9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/76982ed31bca5dfbd407975181dc8b02d445ece9/NCBIWWW.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2630,
12,
2890,
16,
1677,
4672,
468,
1109,
326,
315,
15934,
6,
2342,
358,
775,
471,
1104,
326,
2114,
1599,
261,
54,
734,
13,
353,
67,
1691,
273,
374,
10911,
273,
599,
364,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2630,
12,
2890,
16,
1677,
4672,
468,
1109,
326,
315,
15934,
6,
2342,
358,
775,
471,
1104,
326,
2114,
1599,
261,
54,
734,
13,
353,
67,
1691,
273,
374,
10911,
273,
599,
364,
1... |
self.cbg = pygame.Surface((self.bmovl.width - 110, 65)) | self.cbg = pygame.Surface((200, 30)) | def elapsed(self, timer): """ update osd """ if not self.bmovl: self.bmovl = OSDbmovl(self.width, self.height) if self.osd_visible: start = self.start end = self.start + int(self.item.info['length']) | 3489fc1ad1f871f05615c51ddeca3e4a586b5982 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/3489fc1ad1f871f05615c51ddeca3e4a586b5982/bmovl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9613,
12,
2890,
16,
5441,
4672,
3536,
1089,
1140,
72,
3536,
309,
486,
365,
18,
25709,
1527,
80,
30,
365,
18,
25709,
1527,
80,
273,
5932,
4331,
81,
1527,
80,
12,
2890,
18,
2819,
16,
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,
9613,
12,
2890,
16,
5441,
4672,
3536,
1089,
1140,
72,
3536,
309,
486,
365,
18,
25709,
1527,
80,
30,
365,
18,
25709,
1527,
80,
273,
5932,
4331,
81,
1527,
80,
12,
2890,
18,
2819,
16,
3... |
crm_case as c, project_task as t where t.case_id=c.id \ and p.id=t.project_id and p.section_feature_id=c.section_id \ | crm_case as c where \ p.id=c.project_id and p.section_feature_id=c.section_id \ | def _get_details(self, cr, uid, ids_project, context={}, *arg): # Todo: 1. Reload button gives error for project # 2. Test/Check if not ids_project: return {} result = {} for id in ids_project: result[id] = { 'tasks_detail': '', 'bugs': '', 'features': '', 'support_req': '', 'doc': '' } ids = ",".join(map(str, id... | 63aca3f99a9c76ca2e99c049a801f7d6f1039030 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/63aca3f99a9c76ca2e99c049a801f7d6f1039030/portal_project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
67,
4406,
16,
819,
28793,
380,
3175,
4672,
468,
399,
7370,
30,
404,
18,
23086,
3568,
14758,
555,
364,
1984,
468,
4202,
576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
67,
4406,
16,
819,
28793,
380,
3175,
4672,
468,
399,
7370,
30,
404,
18,
23086,
3568,
14758,
555,
364,
1984,
468,
4202,
576,
... |
if not (len(fixed_indices) + len(free_indices) + 2*len(repeated_indices) + num_unassigned_indices == len(indices)): print "Indices:" print len(fixed_indices) print len(free_indices) print len(repeated_indices) print num_unassigned_indices print len(indices) | def analyze_indices(indices): ufl_assert(isinstance(indices, tuple), "Expecting index tuple.") ufl_assert(all(isinstance(i, (Index, FixedIndex, AxisType)) for i in indices), "Expecting proper UFL objects.") fixed_indices = [(i,idx) for i,idx in enumerate(indices) if isinstance(idx, FixedIndex)] num_unassigned_indices ... | b6bc55326d79b64f2048b486159e78b329f2b9ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/b6bc55326d79b64f2048b486159e78b329f2b9ca/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
67,
6836,
12,
6836,
4672,
582,
2242,
67,
11231,
12,
291,
1336,
12,
6836,
16,
3193,
3631,
315,
24439,
770,
3193,
1199,
13,
582,
2242,
67,
11231,
12,
454,
12,
291,
1336,
12,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
67,
6836,
12,
6836,
4672,
582,
2242,
67,
11231,
12,
291,
1336,
12,
6836,
16,
3193,
3631,
315,
24439,
770,
3193,
1199,
13,
582,
2242,
67,
11231,
12,
454,
12,
291,
1336,
12,
77,
... | |
for (id, _) in self.annotations.get(key, []): | for (id, info, details) in self.annotations.get(key, []): | def __iter__(self): key="plone.scale.%s" % self.fieldname for (id, _) in self.annotations.get(key, []): yield id | 9d92afda0667d923bbd4d2475f4a1313fab49079 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12265/9d92afda0667d923bbd4d2475f4a1313fab49079/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
498,
1546,
412,
476,
18,
5864,
7866,
87,
6,
738,
365,
18,
1518,
529,
364,
261,
350,
16,
1123,
16,
3189,
13,
316,
365,
18,
14670,
18,
588,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
498,
1546,
412,
476,
18,
5864,
7866,
87,
6,
738,
365,
18,
1518,
529,
364,
261,
350,
16,
1123,
16,
3189,
13,
316,
365,
18,
14670,
18,
588,
12,
856,
... |
type = mydatatypes[datatypes[datatype[0]]] if len(datatype) > 1 and "%s" in type: type = type % datatype[1] | thisvartype = datatypes[datatype[0]] if thisvartype > -1: type = mydatatypes[thisvartype] if len(datatype) > 1 and "%s" in type: type = type % datatype[1] else: type = datatype[0] | def convert_data_type(engine, datatype): datatypes = dict() datatypes["pk"], datatypes["int"], datatypes["double"], datatypes["char"], datatypes["bit"] = range(5) datatypes["combine"], datatypes["skip"] = [-1, -1] dbdatatypes = dict() dbdatatypes["mysql"] = ["INT(5) NOT NULL AUTO_INCREMENT", "INT(%s)", "DOUBLE", "VARCH... | e15b3d784aae599e7e54ad9e03980478efa38dde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12606/e15b3d784aae599e7e54ad9e03980478efa38dde/dbtk_tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
892,
67,
723,
12,
8944,
16,
11172,
4672,
14760,
273,
2065,
1435,
14760,
9614,
5465,
6,
6487,
14760,
9614,
474,
6,
6487,
14760,
9614,
9056,
6,
6487,
14760,
9614,
3001,
6,
6487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
892,
67,
723,
12,
8944,
16,
11172,
4672,
14760,
273,
2065,
1435,
14760,
9614,
5465,
6,
6487,
14760,
9614,
474,
6,
6487,
14760,
9614,
9056,
6,
6487,
14760,
9614,
3001,
6,
6487,
... |
portValue = (self.portfolio.calcPortfolioValue(self.currTimestamp, self.dataAccess)) portfolioValList.append(portValue) | portValue = self.portfolio.currCash + self.strategyData.calculatePortValue(self.portfolio.currStocks,self.currTimestamp) | def run(self): ''' @summary: Run the simulation ''' optimizer= Optimizer.Optimizer(self.listOfStocks) #optimizer= curveFittingOptimizer.Optimizer(self.listOfStocks) timestamps= list(self.dataAccess.getTimestampArray()) portfolioValList= list() ctr=0 while (timestamps[ctr]< self.startTime): ctr+=1 #while loop done s... | e44f0ad3c90dde93238fc35f230c4b961de2103e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10651/e44f0ad3c90dde93238fc35f230c4b961de2103e/Simulator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
632,
7687,
30,
1939,
326,
14754,
9163,
225,
13066,
33,
19615,
1824,
18,
29789,
12,
2890,
18,
1098,
951,
17821,
87,
13,
468,
29594,
33,
8882,
14219,
1787,
2978... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9163,
632,
7687,
30,
1939,
326,
14754,
9163,
225,
13066,
33,
19615,
1824,
18,
29789,
12,
2890,
18,
1098,
951,
17821,
87,
13,
468,
29594,
33,
8882,
14219,
1787,
2978... |
menu_item.get_children()[0].set_label(task.get_title()) | menu_item.get_children()[0].set_label(title) | def add_menu_task(self, tid): """Adds a task in the menu, trimming the title if necessary""" task = self.plugin_api.get_task(tid) if self.tasks_in_menu.has_key(tid): #task is already in the menu, updating the title menu_item = self.tasks_in_menu[tid] menu_item.get_children()[0].set_label(task.get_title()) return #trimm... | 550d19c3786c4110e26adbc61f3aebefa8b746de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/550d19c3786c4110e26adbc61f3aebefa8b746de/notification_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5414,
67,
4146,
12,
2890,
16,
11594,
4672,
3536,
3655,
279,
1562,
316,
326,
3824,
16,
2209,
11987,
326,
2077,
309,
4573,
8395,
1562,
273,
365,
18,
4094,
67,
2425,
18,
588,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5414,
67,
4146,
12,
2890,
16,
11594,
4672,
3536,
3655,
279,
1562,
316,
326,
3824,
16,
2209,
11987,
326,
2077,
309,
4573,
8395,
1562,
273,
365,
18,
4094,
67,
2425,
18,
588,
67,... |
percent = int(self.workDone * 100 / self.totalWork) | try: percent = int(self.workDone * 100 / self.totalWork) except ZeroDivisionError: percent = 100 | def callback(self, msg=None, work=None, totalWork=None): | 7f497e5a6abf9724bc23d93fc854e00924ed0d28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7f497e5a6abf9724bc23d93fc854e00924ed0d28/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
2890,
16,
1234,
33,
7036,
16,
1440,
33,
7036,
16,
2078,
2421,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1348,
12,
2890,
16,
1234,
33,
7036,
16,
1440,
33,
7036,
16,
2078,
2421,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return getattr(mod, inst)() | return getattr(mod, inst) raise ValueError('Dashboard matching "%s" not found' % dashboard_cls) | def get_index_dashboard(context): """ Returns the admin dashboard defined by the user or the default one. """ dashboard_cls = getattr( settings, 'ADMIN_TOOLS_INDEX_DASHBOARD', 'admin_tools.dashboard.dashboards.DefaultIndexDashboard' ) if type(dashboard_cls) is types.DictType: curr_url = context.get('request').META['PA... | a3da188552914bdc392b253bed6c9694ece4e459 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3482/a3da188552914bdc392b253bed6c9694ece4e459/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1615,
67,
13479,
12,
2472,
4672,
3536,
2860,
326,
3981,
11825,
2553,
635,
326,
729,
578,
326,
805,
1245,
18,
3536,
11825,
67,
6429,
273,
3869,
12,
1947,
16,
296,
15468,
67,
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,
336,
67,
1615,
67,
13479,
12,
2472,
4672,
3536,
2860,
326,
3981,
11825,
2553,
635,
326,
729,
578,
326,
805,
1245,
18,
3536,
11825,
67,
6429,
273,
3869,
12,
1947,
16,
296,
15468,
67,
26... |
old_sep,old_count=self.ballots[self.get_couple(ballot)] | d1,d2,old_sep,old_count=self.ballots[self.get_couple(ballot)] | def add(self,ballot): winner,sep,other,count=ballot winner=winner.capitalize() other=other.capitalize() if not self.is_in(ballot): self.ballots[self.get_couple(ballot)]=(winner,sep,other,count) else: old_sep,old_count=self.ballots[self.get_couple(ballot)] assert(old_sep==sep) self.ballots[self.get_couple(ballot)]=(winn... | 794ff6b34413bf5aed81fecb6828ed21281f9550 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13828/794ff6b34413bf5aed81fecb6828ed21281f9550/vote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
19067,
352,
4672,
5657,
1224,
16,
10814,
16,
3011,
16,
1883,
33,
19067,
352,
5657,
1224,
33,
91,
7872,
18,
5909,
7053,
554,
1435,
1308,
33,
3011,
18,
5909,
7053,
554... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
19067,
352,
4672,
5657,
1224,
16,
10814,
16,
3011,
16,
1883,
33,
19067,
352,
5657,
1224,
33,
91,
7872,
18,
5909,
7053,
554,
1435,
1308,
33,
3011,
18,
5909,
7053,
554... |
( str(outFields), tableName ) ) | ( str( outFields ), tableName ) ) | def _getFields( self, tableName, outFields = [], inFields = [], inValues = [], limit = 0, conn=False ): """ Select "outFields" from "tableName" with conditions lInFields = lInValues N records can match the condition return S_OK( tuple(Field,Value) ) if outFields = [] all fields in "tableName" are returned if inFields a... | 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,
588,
2314,
12,
365,
16,
4775,
16,
596,
2314,
273,
5378,
16,
316,
2314,
273,
5378,
16,
316,
1972,
273,
5378,
16,
1800,
273,
374,
16,
1487,
33,
8381,
262,
30,
3536,
6766,
315,
659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2314,
12,
365,
16,
4775,
16,
596,
2314,
273,
5378,
16,
316,
2314,
273,
5378,
16,
316,
1972,
273,
5378,
16,
1800,
273,
374,
16,
1487,
33,
8381,
262,
30,
3536,
6766,
315,
659... |
REFERENCES: Howard M. Heys, A Tutorial on Linear and Differential Cryptanalysis, Cryptologia, v.XXVI n.3, p.189-221, July 2002 | def difference_distribution_matrix(self): """ Return difference distribution matrix $A$ for this S-box. | 722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7114,
67,
16279,
67,
5667,
12,
2890,
4672,
3536,
2000,
7114,
7006,
3148,
271,
37,
8,
364,
333,
348,
17,
2147,
18,
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,
7114,
67,
16279,
67,
5667,
12,
2890,
4672,
3536,
2000,
7114,
7006,
3148,
271,
37,
8,
364,
333,
348,
17,
2147,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
def finditem(self, w_obj, w_key): try: return self.getitem(w_obj, w_key) except KeyError: return None | def unwrap(self, w_obj): assert isinstance(w_obj, W_Object) return w_obj.value | 3e451721914b3b9b59c1d7101b48e2efeea62612 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3e451721914b3b9b59c1d7101b48e2efeea62612/objspace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
12,
2890,
16,
341,
67,
2603,
4672,
1815,
1549,
12,
91,
67,
2603,
16,
678,
67,
921,
13,
327,
341,
67,
2603,
18,
1132,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11014,
12,
2890,
16,
341,
67,
2603,
4672,
1815,
1549,
12,
91,
67,
2603,
16,
678,
67,
921,
13,
327,
341,
67,
2603,
18,
1132,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if not adjusted: ratio *= ((Y.shape[0] - 1) / self.df_resid) | if not adjusted: ratio *= ((self.Y.shape[0] - 1) / self.df_resid) | def Rsq(self, adjusted=False): """ Return the R^2 value for each row of the response Y. """ self.Ssq = N.std(self.Z,axis=0)**2 ratio = self.scale / self.Ssq if not adjusted: ratio *= ((Y.shape[0] - 1) / self.df_resid) return 1 - ratio | af7b6951110ce17903406fde26c729dadde75f31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/af7b6951110ce17903406fde26c729dadde75f31/regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
11410,
12,
2890,
16,
13940,
33,
8381,
4672,
3536,
2000,
326,
534,
66,
22,
460,
364,
1517,
1027,
434,
326,
766,
1624,
18,
3536,
365,
18,
55,
11410,
273,
423,
18,
5084,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
534,
11410,
12,
2890,
16,
13940,
33,
8381,
4672,
3536,
2000,
326,
534,
66,
22,
460,
364,
1517,
1027,
434,
326,
766,
1624,
18,
3536,
365,
18,
55,
11410,
273,
423,
18,
5084,
12,
2890,
... |
print "Matching frame ", fnum | _log.info("Matching frame %d..." % fnum) | def _prepare_varmap(ref_img): vm_filter_mask = [[0, 1, 0], [1, -2, 1], [0, 1, 0]] | cc3c399ed2f306cdf02d244f317c4793f63d5a0c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12843/cc3c399ed2f306cdf02d244f317c4793f63d5a0c/logpolar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
67,
1401,
1458,
12,
1734,
67,
6081,
4672,
4268,
67,
2188,
67,
4455,
273,
12167,
20,
16,
225,
404,
16,
374,
6487,
306,
21,
16,
300,
22,
16,
404,
6487,
306,
20,
16,
225,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
67,
1401,
1458,
12,
1734,
67,
6081,
4672,
4268,
67,
2188,
67,
4455,
273,
12167,
20,
16,
225,
404,
16,
374,
6487,
306,
21,
16,
300,
22,
16,
404,
6487,
306,
20,
16,
225,
4... |
raster_layer.set_source(0, raster) | nodata = dataset.GetRasterBand(1).GetNoDataValue() raster_layer.set_source(0, raster, nodata=nodata) | def open_gdal_dataset(self, dataset, lut=None, sds_check=1, add_to_rfl=0, *args): """Opens existing GDAL dataset.""" | ed664b944f0d5972f237277d83e31cdd4cb3b4de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/ed664b944f0d5972f237277d83e31cdd4cb3b4de/gvviewwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
19016,
287,
67,
8682,
12,
2890,
16,
3709,
16,
27171,
33,
7036,
16,
272,
2377,
67,
1893,
33,
21,
16,
527,
67,
869,
67,
86,
2242,
33,
20,
16,
380,
1968,
4672,
3536,
17778,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
19016,
287,
67,
8682,
12,
2890,
16,
3709,
16,
27171,
33,
7036,
16,
272,
2377,
67,
1893,
33,
21,
16,
527,
67,
869,
67,
86,
2242,
33,
20,
16,
380,
1968,
4672,
3536,
17778,
... |
+ (s,t,v)), tb | % (s,t,v)), tb | def connect(self,s): | 41d484488000d510da3031b6dafd946f3b4ec30d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/41d484488000d510da3031b6dafd946f3b4ec30d/Connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
87,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
87,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
my.debug('finished chroot command') | my.debug('finished: %s' % cmd) | def do_run_cmd(config_opts, cmd, env='', raw_chroot=0): my = Root(config_opts) my.debug("executing: %s" % cmd) my._mount() if raw_chroot: cmd = '%s %s %s %s' % (env, config_opts['chroot'], my.rootdir, cmd) os.system(cmd) else: my.do_chroot(cmd, True) my.close() my.debug('finished chroot command') | 0da82906230f2f357462d9d3c9cd62ce6a934eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7328/0da82906230f2f357462d9d3c9cd62ce6a934eec/mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2681,
67,
4172,
12,
1425,
67,
4952,
16,
1797,
16,
1550,
2218,
2187,
1831,
67,
343,
3085,
33,
20,
4672,
3399,
273,
7450,
12,
1425,
67,
4952,
13,
3399,
18,
4148,
2932,
4177,
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,
741,
67,
2681,
67,
4172,
12,
1425,
67,
4952,
16,
1797,
16,
1550,
2218,
2187,
1831,
67,
343,
3085,
33,
20,
4672,
3399,
273,
7450,
12,
1425,
67,
4952,
13,
3399,
18,
4148,
2932,
4177,
8... |
title = _("Showing details of group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) | title = _("Details of group %s") % name data = w.page_body_start(uri, http_user, ctxtnav, title) | def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Showing details of group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # A... | eb92fc56664814fed9f428d02ee7bb3f8903a836 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/eb92fc56664814fed9f428d02ee7bb3f8903a836/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
1650,
16,
1062,
67,
1355,
16,
508,
4672,
3536,
7543,
279,
1041,
1476,
358,
506,
14099,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
3790... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
12,
1650,
16,
1062,
67,
1355,
16,
508,
4672,
3536,
7543,
279,
1041,
1476,
358,
506,
14099,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
3790... |
elif n == 2: | elif number == 2: | def check_card(self, n, style, stroke, fill): svg_string = "" if style == "none": self.set_colors([stroke, WHITE]) elif style == "gradient": self.set_colors([stroke, fill]) else: self.set_colors([stroke, stroke]) if n == 1: svg_string += self._svg_check(45.5) elif n == 2: svg_string += self._svg_check(25.5) svg_string ... | 3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3327,
12,
2890,
16,
290,
16,
2154,
16,
11040,
16,
3636,
4672,
9804,
67,
1080,
273,
1408,
309,
2154,
422,
315,
6102,
6877,
365,
18,
542,
67,
9724,
3816,
16181,
16,
24353,
5717,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
3327,
12,
2890,
16,
290,
16,
2154,
16,
11040,
16,
3636,
4672,
9804,
67,
1080,
273,
1408,
309,
2154,
422,
315,
6102,
6877,
365,
18,
542,
67,
9724,
3816,
16181,
16,
24353,
5717,... |
self.CR = '\r' | self.CR = '\r\n' | def __init__(self, field): """Initialize a new instance. `field' is an unparsed address header field, containing one or more addresses. """ self.specials = '()<>@,:;.\"[]' self.pos = 0 self.LWS = ' \t' self.CR = '\r' self.atomends = self.specials + self.LWS + self.CR self.field = field self.commentlist = [] | fdd2330d3430c0045f5f53e67f80b37a612b560f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/fdd2330d3430c0045f5f53e67f80b37a612b560f/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
652,
4672,
3536,
7520,
279,
394,
791,
18,
225,
1375,
1518,
11,
353,
392,
27810,
1758,
1446,
652,
16,
4191,
1245,
578,
1898,
6138,
18,
3536,
365,
18,
9371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
652,
4672,
3536,
7520,
279,
394,
791,
18,
225,
1375,
1518,
11,
353,
392,
27810,
1758,
1446,
652,
16,
4191,
1245,
578,
1898,
6138,
18,
3536,
365,
18,
9371... |
vm = XendDomainInfo(xeninfo, domid, dompath, augment = True, priv = priv) | vm = XendDomainInfo(xeninfo, domid, dompath, augment = True, priv = priv, vmpath = vmpath) | def recreate(info, priv): """Create the VM object for an existing domain. The domain must not be dying, as the paths in the store should already have been removed, and asking us to recreate them causes problems. @param xeninfo: Parsed configuration @type xeninfo: Dictionary @param priv: Is a privileged domain (Dom 0... | b1a1a765cb9e8b1975ff6d48e51531df9d2347cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/b1a1a765cb9e8b1975ff6d48e51531df9d2347cb/XendDomainInfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23052,
12,
1376,
16,
6015,
4672,
3536,
1684,
326,
8251,
733,
364,
392,
2062,
2461,
18,
225,
1021,
2461,
1297,
486,
506,
7732,
310,
16,
487,
326,
2953,
316,
326,
1707,
1410,
1818,
1240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23052,
12,
1376,
16,
6015,
4672,
3536,
1684,
326,
8251,
733,
364,
392,
2062,
2461,
18,
225,
1021,
2461,
1297,
486,
506,
7732,
310,
16,
487,
326,
2953,
316,
326,
1707,
1410,
1818,
1240,
... |
chown(newfile.name, getpwnam(entry.attrib['owner'])[2], getgrnam(entry.attrib['group'])[2]) chmod(newfile.name, CalcPerms(S_IFREG, entry.attrib['perms'])) if entry.attrib.get("paranoid", False) and self.setup.get("paranoid", False): system("diff -u %s %s.new"%(entry.attrib['name'], entry.attrib['name'])) rename(newfile... | chown(newfile.name, getpwnam(entry.get('owner'))[2], getgrnam(entry.get('group'))[2]) chmod(newfile.name, calc_perms(S_IFREG, entry.get('perms'))) if entry.get("paranoid", False) and self.setup.get("paranoid", False): system("diff -u %s %s.new"%(entry.get('name'), entry.get('name'))) rename(newfile.name, entry.get('nam... | def InstallConfigFile(self, entry): if self.setup['dryrun'] or self.setup['verbose']: print "Installing ConfigFile %s" % (entry.attrib['name']) if self.setup['dryrun']: return False parent = "/".join(entry.attrib['name'].split('/')[:-1]) if parent: try: s = lstat(parent) try: if not S_ISDIR(s[ST_MODE]): unlink(parent) ... | 7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13705,
12,
2890,
16,
1241,
4672,
309,
365,
18,
8401,
3292,
25011,
2681,
3546,
578,
365,
18,
8401,
3292,
11369,
3546,
30,
1172,
315,
6410,
310,
31988,
738,
87,
6,
738,
261,
4099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13705,
12,
2890,
16,
1241,
4672,
309,
365,
18,
8401,
3292,
25011,
2681,
3546,
578,
365,
18,
8401,
3292,
11369,
3546,
30,
1172,
315,
6410,
310,
31988,
738,
87,
6,
738,
261,
4099,
... |
error_handler=log.err, | error_handler=d.errback, | def sms_get_cb(_sms): self.assertEqual(sms['number'], _sms['number']) self.assertEqual(sms['text'], _sms['text']) # leave everything as found self.device.Delete(_sms['index'], dbus_interface=SMS_INTFACE, reply_handler=lambda: d.callback(True), error_handler=log.err) | 45c00959c14e666ef31b3f93137f14e6d66959e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/45c00959c14e666ef31b3f93137f14e6d66959e4/test_dbus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16188,
67,
588,
67,
7358,
24899,
20984,
4672,
365,
18,
11231,
5812,
12,
20984,
3292,
2696,
17337,
389,
20984,
3292,
2696,
19486,
365,
18,
11231,
5812,
12,
20984,
3292,
955,
17337,
389,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16188,
67,
588,
67,
7358,
24899,
20984,
4672,
365,
18,
11231,
5812,
12,
20984,
3292,
2696,
17337,
389,
20984,
3292,
2696,
19486,
365,
18,
11231,
5812,
12,
20984,
3292,
955,
17337,
389,
209... |
print handler | def manage_catalogReindex(self, REQUEST, RESPONSE, URL1): """ clear the catalog, then re-index everything """ | f1ad7b9c1e84ebd1bcd4f9edc060ff84d518c01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f1ad7b9c1e84ebd1bcd4f9edc060ff84d518c01f/ZCatalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
7199,
426,
1615,
12,
2890,
16,
12492,
16,
20645,
16,
1976,
21,
4672,
3536,
2424,
326,
6222,
16,
1508,
283,
17,
1615,
7756,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
7199,
426,
1615,
12,
2890,
16,
12492,
16,
20645,
16,
1976,
21,
4672,
3536,
2424,
326,
6222,
16,
1508,
283,
17,
1615,
7756,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.md5 = m.hexdigest() self.base64md5 = base64.encodestring(m.digest()) if self.base64md5[-1] == '\n': self.base64md5 = self.base64md5[0:-1] | hex_md5 = m.hexdigest() base64md5 = base64.encodestring(m.digest()) if base64md5[-1] == '\n': base64md5 = base64md5[0:-1] | def _compute_md5(self, fp): """ @type fp: file @param fp: File pointer to the file to MD5 hash @rtype: string @return: MD5 Hash of the file in fp """ m = md5() s = fp.read(self.BufferSize) while s: m.update(s) s = fp.read(self.BufferSize) self.md5 = m.hexdigest() self.base64md5 = base64.encodestring(m.digest()) if sel... | d21106bd1fc5e7e3d5ddab6d18d196d9b9b44d43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/d21106bd1fc5e7e3d5ddab6d18d196d9b9b44d43/key.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
1264,
25,
12,
2890,
16,
4253,
4672,
3536,
632,
723,
4253,
30,
585,
632,
891,
4253,
30,
1387,
4407,
358,
326,
585,
358,
10852,
25,
1651,
225,
632,
86,
723,
30,
533,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
67,
1264,
25,
12,
2890,
16,
4253,
4672,
3536,
632,
723,
4253,
30,
585,
632,
891,
4253,
30,
1387,
4407,
358,
326,
585,
358,
10852,
25,
1651,
225,
632,
86,
723,
30,
533,
632... |
if self.klass.BROWSER and self.klass.BROWSER.DOMAIN: | if self.klass.BROWSER and hasattr(self.klass.BROWSER, 'DOMAIN') and self.klass.BROWSER.DOMAIN: | def website(self): if self.klass.BROWSER and self.klass.BROWSER.DOMAIN: return '%s://%s' % (self.klass.BROWSER.PROTOCOL, self.klass.BROWSER.DOMAIN) else: return None | 17e679f3e1ec8bb682ae38acc194d360f55c50db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/17e679f3e1ec8bb682ae38acc194d360f55c50db/modules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12504,
12,
2890,
4672,
309,
365,
18,
22626,
18,
38,
24846,
471,
3859,
12,
2890,
18,
22626,
18,
38,
24846,
16,
296,
18192,
6134,
471,
365,
18,
22626,
18,
38,
24846,
18,
18192,
30,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12504,
12,
2890,
4672,
309,
365,
18,
22626,
18,
38,
24846,
471,
3859,
12,
2890,
18,
22626,
18,
38,
24846,
16,
296,
18192,
6134,
471,
365,
18,
22626,
18,
38,
24846,
18,
18192,
30,
327,
... |
yield handler | yield resource | def traverse(self): yield self for resource_name in self.get_resources(): resource = self.get_resource(resource_name) if isinstance(resource, Folder): for x in resource.traverse(): yield x else: yield handler | bfa79210baac7dddc39f5855a404807eb02c12b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/bfa79210baac7dddc39f5855a404807eb02c12b1/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10080,
12,
2890,
4672,
2824,
365,
364,
1058,
67,
529,
316,
365,
18,
588,
67,
4683,
13332,
1058,
273,
365,
18,
588,
67,
3146,
12,
3146,
67,
529,
13,
309,
1549,
12,
3146,
16,
12623,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10080,
12,
2890,
4672,
2824,
365,
364,
1058,
67,
529,
316,
365,
18,
588,
67,
4683,
13332,
1058,
273,
365,
18,
588,
67,
3146,
12,
3146,
67,
529,
13,
309,
1549,
12,
3146,
16,
12623,
46... |
return directive(name, None, None)[0] | return directives._directives[name] except (AttributeError, KeyError): pass try: return directives.directive(name, None, None)[0] | def get_directive(name): from docutils.parsers.rst.directives import directive try: return directive(name, None, None)[0] except AttributeError: return None | 2951b794d0b6498c5d6b2fd8c0f188a447bd8d14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/2951b794d0b6498c5d6b2fd8c0f188a447bd8d14/numpydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
22347,
12,
529,
4672,
628,
997,
5471,
18,
11104,
18,
16114,
18,
30850,
1930,
8655,
775,
30,
225,
327,
13877,
6315,
30850,
63,
529,
65,
1335,
261,
1499,
668,
16,
4999,
4672,
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,
336,
67,
22347,
12,
529,
4672,
628,
997,
5471,
18,
11104,
18,
16114,
18,
30850,
1930,
8655,
775,
30,
225,
327,
13877,
6315,
30850,
63,
529,
65,
1335,
261,
1499,
668,
16,
4999,
4672,
13... |
l = list() for s in sections_to_skip.itervalues(): l.extend(s) sect_titles = '|'.join(l) | sect_titles = '|'.join(sections_to_skip[wikipedia.getSite().lang]) | def skip_section(text): l = list() for s in sections_to_skip.itervalues(): l.extend(s) sect_titles = '|'.join(l) sectC = re.compile('(?mi)^==\s*(' + sect_titles + ')\s*==') newtext = '' while True: newtext = cut_section(text, sectC) if newtext == text: break text = newtext return text | d7d5c60f18f7a22229fc294ba5955a3c4f606237 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/d7d5c60f18f7a22229fc294ba5955a3c4f606237/copyright.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
67,
3464,
12,
955,
4672,
29140,
67,
17643,
273,
8030,
18,
5701,
12,
11657,
67,
869,
67,
7457,
63,
11999,
13744,
18,
588,
4956,
7675,
4936,
5717,
29140,
39,
273,
283,
18,
11100,
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,
2488,
67,
3464,
12,
955,
4672,
29140,
67,
17643,
273,
8030,
18,
5701,
12,
11657,
67,
869,
67,
7457,
63,
11999,
13744,
18,
588,
4956,
7675,
4936,
5717,
29140,
39,
273,
283,
18,
11100,
2... |
pass | s += self._handle_use(node, graphics_state, accumulated_state) | def _output_group(self, group, accumulated_state=None): """Proceess a group of SVG nodes and return corresponding TikZ code The group is processed recursively if it contains sub groups. """ s = "" options = [] transform = [] for node in group: pathdata = None options = [] graphics_state = GraphicsState(node) #print gr... | f699450f1e6572569151e963ff0dede7d804d48c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7584/f699450f1e6572569151e963ff0dede7d804d48c/tikz_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2844,
67,
1655,
12,
2890,
16,
1041,
16,
24893,
67,
2019,
33,
7036,
4672,
3536,
626,
311,
403,
279,
1041,
434,
11281,
2199,
471,
327,
4656,
399,
1766,
62,
981,
225,
1021,
1041,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2844,
67,
1655,
12,
2890,
16,
1041,
16,
24893,
67,
2019,
33,
7036,
4672,
3536,
626,
311,
403,
279,
1041,
434,
11281,
2199,
471,
327,
4656,
399,
1766,
62,
981,
225,
1021,
1041,
353... |
displayName=_(u'Welcome to Chandler %(version)s' % {'version': version.version}), | displayName=_(u'Welcome to Chandler %(version)s') % {'version': version.version}, | def installParcel(parcel, oldVersion=None): import scripts as Scripts from osaf import sharing, startup from osaf.framework import scripting pim_ns = schema.ns('osaf.pim', parcel) sharing_ns = schema.ns('osaf.sharing', parcel) me = pim.Contact.update(parcel, 'me', displayName=_(u'Me'), contactName=pim.ContactName.up... | 624b4a905fc40a6c66cffdb7f7d1bc583699e2df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/624b4a905fc40a6c66cffdb7f7d1bc583699e2df/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
1930,
21001,
16,
11850,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
1553,
2183,
12,
1065,
2183,
16,
1592,
1444,
33,
7036,
4672,
225,
1930,
8873,
487,
2850,
6513,
628,
1140,
1727,
1930,
21001,
16,
11850,
628,
1140,
1727,
18,
12303,
1930,
2728,
310,
... |
if node.get('groups'): groups = node.get('groups').split(',') readonly = False access_pool = self.pool.get('ir.model.access') for group in groups: readonly = readonly or access_pool.check_groups(cr, user, group) if not readonly: node.set('invisible', '1') del(node.attrib['groups']) | check_group(node) | def encode(s): if isinstance(s, unicode): return s.encode('utf8') return s | 7b6827a6b4b88be4401d98627b7b8ed009926f77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7b6827a6b4b88be4401d98627b7b8ed009926f77/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
87,
4672,
309,
1549,
12,
87,
16,
5252,
4672,
327,
272,
18,
3015,
2668,
3158,
28,
6134,
327,
272,
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,
2017,
12,
87,
4672,
309,
1549,
12,
87,
16,
5252,
4672,
327,
272,
18,
3015,
2668,
3158,
28,
6134,
327,
272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
subdivisions between each major tick | subdivisions between each major tick. | def ruler_frame(lower_left, upper_right, ticks=4, sub_ticks=4, **kwds): """ Draw a frame made of 3D rulers, with major and minor ticks. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, or vector - ``t... | 25144c93b092a09ccf947d595af3b9e9d463ccf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/25144c93b092a09ccf947d595af3b9e9d463ccf2/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
40,
436,
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,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
40,
436,
3... |
apps.sort() | apps.sort(cmp=lambda x,y: cmp(len(x[0]), len(y[0]))) | def __init__(self, apps): try: apps = apps.items() except AttributeError: pass # Sort the apps by len(path), descending apps.sort() apps.reverse() # The path_prefix strings must start, but not end, with a slash. # Use "" instead of "/". self.apps = [(p.rstrip("/"), a) for p, a in apps] | c79e7154a971255a22067dc908349078c4a52a8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/82/c79e7154a971255a22067dc908349078c4a52a8b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8279,
4672,
775,
30,
8279,
273,
8279,
18,
3319,
1435,
1335,
6394,
30,
1342,
225,
468,
5928,
326,
8279,
635,
562,
12,
803,
3631,
17044,
8279,
18,
3804,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8279,
4672,
775,
30,
8279,
273,
8279,
18,
3319,
1435,
1335,
6394,
30,
1342,
225,
468,
5928,
326,
8279,
635,
562,
12,
803,
3631,
17044,
8279,
18,
3804,
12... |
print >>sys.stderr, _('*** %(file)s:%(lineno)s: Seen unexpected token "%(token)s"') % { 'token': tstring, 'file': self.__curfile, 'lineno': self.__lineno} | print >> sys.stderr, _( '*** %(file)s:%(lineno)s: Seen unexpected token "%(token)s"' ) % { 'token': tstring, 'file': self.__curfile, 'lineno': self.__lineno } | def __openseen(self, ttype, tstring, lineno): if ttype == tokenize.OP and tstring == ')': # We've seen the last of the translatable strings. Record the # line number of the first line of the strings and update the list # of messages seen. Reset state for the next batch. If there # were no strings inside _(), then ju... | e04ee70a68045f8d229ab59ad9b0256d0278c745 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e04ee70a68045f8d229ab59ad9b0256d0278c745/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3190,
15156,
12,
2890,
16,
27963,
16,
268,
1080,
16,
7586,
4672,
309,
27963,
422,
13672,
18,
3665,
471,
268,
1080,
422,
5777,
30,
468,
1660,
8081,
5881,
326,
1142,
434,
326,
21884,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3190,
15156,
12,
2890,
16,
27963,
16,
268,
1080,
16,
7586,
4672,
309,
27963,
422,
13672,
18,
3665,
471,
268,
1080,
422,
5777,
30,
468,
1660,
8081,
5881,
326,
1142,
434,
326,
21884,... |
oids.append(oid) | def abortVersion(self, src, transaction): if transaction is not self._transaction: raise POSException.StorageTransactionError(self, transaction) if not src: raise POSException.VersionCommitError("Invalid version") | cdd848ac02b18d359dbc179e24ffbbf43ce9c1bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/cdd848ac02b18d359dbc179e24ffbbf43ce9c1bd/DemoStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6263,
1444,
12,
2890,
16,
1705,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
309,
486,
1705,
30,
1002,
12511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6263,
1444,
12,
2890,
16,
1705,
16,
2492,
4672,
309,
2492,
353,
486,
365,
6315,
7958,
30,
1002,
12511,
503,
18,
3245,
3342,
668,
12,
2890,
16,
2492,
13,
309,
486,
1705,
30,
1002,
12511... | |
def forward(self,obj): return forward_(self,obj) def inverse(self,obj): return inverse_(self,obj) | def forward(self, projection): """ Projects the envelope from the geographic space into the cartesian space by projecting its corner points. See also: Coord.forward(self, projection) """ return forward_(self, projection) def inverse(self, projection): """ Projects the envelope from the cartesian space into the geograp... | def forward(self,obj): return forward_(self,obj) | 10dff4b8cf55978836761f5d689a651561756594 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12100/10dff4b8cf55978836761f5d689a651561756594/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5104,
12,
2890,
16,
2603,
4672,
327,
5104,
67,
12,
2890,
16,
2603,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
5104,
12,
2890,
16,
2603,
4672,
327,
5104,
67,
12,
2890,
16,
2603,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
disk_abort = not _WaitForSync(self.cfg, iobj, self.proc) | disk_abort = not _WaitForSync(self, iobj) | def Exec(self, feedback_fn): """Create and add the instance to the cluster. | b9bddb6bdf7ac5841c732845ce0122c64bb026b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b9bddb6bdf7ac5841c732845ce0122c64bb026b1/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
1684,
471,
527,
326,
791,
358,
326,
2855,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
1684,
471,
527,
326,
791,
358,
326,
2855,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
p = sre.sub(r'(\s\w{1,3})[\*\%]+', "\\1", p) | p = sre.sub("'(.*?)'", lambda x: "'"+string.replace(x.group(1), ' ', '__SPACE__')+"'", p) p = sre.sub("\"(.*?)\"", lambda x: "\""+string.replace(x.group(1), ' ', '__SPACEBIS__')+"\"", p) p = sre.sub(r'([\s\"]\w{1,3})[\*\%]+', "\\1", p) p = sre.sub("__SPACE__", " ", p) p = sre.sub("__SPACEBIS__", " ", p) | def wash_pattern(p): """Wash pattern passed by URL.""" # add leading/trailing whitespace for the two following wildcard-sanity checking regexps: p = " " + p + " " # get rid of wildcards at the beginning of words: p = sre.sub(r'(\s)[\*\%]+', "\\1", p) # get rid of extremely short words (1-3 letters with wildcards): TODO... | ecbca079c2ffbb7166e391821982c873c23535a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/ecbca079c2ffbb7166e391821982c873c23535a2/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
4951,
12,
84,
4672,
3536,
59,
961,
1936,
2275,
635,
1976,
12123,
468,
527,
7676,
19,
26453,
7983,
364,
326,
2795,
3751,
8531,
17,
87,
10417,
6728,
3936,
1121,
30,
293,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
4951,
12,
84,
4672,
3536,
59,
961,
1936,
2275,
635,
1976,
12123,
468,
527,
7676,
19,
26453,
7983,
364,
326,
2795,
3751,
8531,
17,
87,
10417,
6728,
3936,
1121,
30,
293,
27... |
return hash((self.ifo, self.end_time, self.end_time_ns, self.mass1, self.mass2)) | return hash((self.ifo, self.end_time, self.end_time_ns, self.mass1, self.mass2, self.search)) | def __hash__(self): # FIXME: the things in this tuple must be the same things # used above for comparison (if two objects have different # hashes they must compare as not equal or stuff breaks), # so make sure to keep this updated if the choice of how to # compare to triggers changes above. return hash((self.ifo, self... | 43f48b73f90e938d3d4edadd8ffa92700979353e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/43f48b73f90e938d3d4edadd8ffa92700979353e/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2816,
972,
12,
2890,
4672,
468,
9852,
30,
225,
326,
9198,
316,
333,
3193,
1297,
506,
326,
1967,
9198,
468,
1399,
5721,
364,
5826,
261,
430,
2795,
2184,
1240,
3775,
468,
9869,
2898,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2816,
972,
12,
2890,
4672,
468,
9852,
30,
225,
326,
9198,
316,
333,
3193,
1297,
506,
326,
1967,
9198,
468,
1399,
5721,
364,
5826,
261,
430,
2795,
2184,
1240,
3775,
468,
9869,
2898,... |
if (currentTime - data.timeStamp) > (10*average): data.filter = filter.MovingAverageFilter(10) rate = 0 data.active = False | if data.active: if (currentTime - data.timeStamp) > (10*average): data.filter = filter.MovingAverageFilter(10) rate = 0 data.active = False data.timesInActive = 1 else: if data.timesInActive >= 20: self.DeleteRows(pos = data.location) list = [b for b in self._eventRateTable.itervalues()] for b in list: if b.location... | def _timerHandler(self, event): for data in self._eventRateTable.itervalues(): rate = 0 average = data.filter.getAverage() if average != 0: rate = 1.0 / average currentTime = timer.time() if (currentTime - data.timeStamp) > (10*average): data.filter = filter.MovingAverageFilter(10) rate = 0 data.active = False self.S... | 7cd9e894e5cb3ecf9cafca4db7cb0ca5eed67af2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10608/7cd9e894e5cb3ecf9cafca4db7cb0ca5eed67af2/panels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12542,
1503,
12,
2890,
16,
871,
4672,
364,
501,
316,
365,
6315,
2575,
4727,
1388,
18,
2165,
2372,
13332,
4993,
273,
374,
8164,
273,
501,
18,
2188,
18,
588,
17115,
1435,
309,
8164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12542,
1503,
12,
2890,
16,
871,
4672,
364,
501,
316,
365,
6315,
2575,
4727,
1388,
18,
2165,
2372,
13332,
4993,
273,
374,
8164,
273,
501,
18,
2188,
18,
588,
17115,
1435,
309,
8164,
... |
return -1 | return rffi.r_int(-1) | def compare(a, b): if a[0] > b[0]: return 1 else: return -1 | df35c0101d10b0de3bf2255af9954b3811086dd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/df35c0101d10b0de3bf2255af9954b3811086dd1/test_ll2ctypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
69,
16,
324,
4672,
309,
279,
63,
20,
65,
405,
324,
63,
20,
14542,
327,
404,
469,
30,
327,
300,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3400,
12,
69,
16,
324,
4672,
309,
279,
63,
20,
65,
405,
324,
63,
20,
14542,
327,
404,
469,
30,
327,
300,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.