rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
if len(ids) == 0: self.log.debug("No events found") return try: while len(ids) < self.batch: ids.add(self.queue.get_nowait().fileId) count += 1 except Queue.Empty: pass self.log.info("Processing %s events (%s ids). %s remaining"\ % (count, len(ids), self.queue.qsize())) try: self.callback(ids) except: self.log.excep... | self.event.wait(2) if len(ids) == 0: self.log.debug("No events found") else: if self.event.isSet(): self.log.warn("Skipping processing of %s events (%s ids). %s remaining"\ % (count, len(ids), self.queue.qsize())) else: self.log.info("Processing %s events (%s ids). %s remaining"\ % (count, len(ids), self.queue.qsize(... | def execute(self): | cbfa36e460ff5ac20dff3c571862ab24db5d2989 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/cbfa36e460ff5ac20dff3c571862ab24db5d2989/fsDropBoxMonitorClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
_weighInstallNotUpdown = 1 | def getWeight(self, changeset): weight = 0 for pkg in changeset: if changeset[pkg] is REMOVE: weight += 1 else: weight += 5 return weight | aec98224ca89229d16b8f41f05636695a75a2f7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/aec98224ca89229d16b8f41f05636695a75a2f7a/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30535,
12,
2890,
16,
22463,
4672,
3119,
273,
374,
364,
3475,
316,
22463,
30,
309,
22463,
63,
10657,
65,
353,
26056,
30,
3119,
1011,
404,
469,
30,
3119,
1011,
1381,
327,
3119,
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,
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,
30535,
12,
2890,
16,
22463,
4672,
3119,
273,
374,
364,
3475,
316,
22463,
30,
309,
22463,
63,
10657,
65,
353,
26056,
30,
3119,
1011,
404,
469,
30,
3119,
1011,
1381,
327,
3119,
2,
-100,
... | |
if getattr(self.reporter, 'cancel_requested', False): return 1 | def buildSources(self): if getattr(self.reporter, 'cancel_requested', False): return 1 if not self.booksByTitle: self.fetchBooksByTitle() | 1ce23c231468dc03709ee76c7da814fa41c6e4a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/1ce23c231468dc03709ee76c7da814fa41c6e4a7/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
8628,
12,
2890,
4672,
430,
486,
365,
18,
12567,
858,
4247,
30,
365,
18,
5754,
9084,
87,
858,
4247,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
8628,
12,
2890,
4672,
430,
486,
365,
18,
12567,
858,
4247,
30,
365,
18,
5754,
9084,
87,
858,
4247,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
gc.set_image_interpolation(self.interpolation) | self._cached_image.set_image_interpolation(self.interpolation) | def _render(self, gc): """ Actually draws the plot. Implements the Base2DPlot interface. """ if not self._image_cache_valid: self._compute_cached_image() if "bottom" in self.origin: sy = -1 else: sy = 1 if "left" in self.origin: sx = 1 else: sx = -1 | d62579e9c3776385c77f01769eff42d386d0299b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/d62579e9c3776385c77f01769eff42d386d0299b/image_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
16,
8859,
4672,
3536,
4603,
3452,
30013,
326,
3207,
18,
225,
29704,
326,
3360,
22,
40,
11532,
1560,
18,
3536,
309,
486,
365,
6315,
2730,
67,
2493,
67,
877,
30,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
12,
2890,
16,
8859,
4672,
3536,
4603,
3452,
30013,
326,
3207,
18,
225,
29704,
326,
3360,
22,
40,
11532,
1560,
18,
3536,
309,
486,
365,
6315,
2730,
67,
2493,
67,
877,
30,
365... |
assert ap == u'/bax:foo[1]/bar:baz[1]' | assert ap == u'/bax:foo/bar:baz' dup1 = baz.xml_following_sibling.xml_following_sibling dup2 = dup1.xml_following_sibling ap = abspath(dup2, {u'bax': u'http://bax.com'}) assert ap == u'/bax:foo/bax:dup[2]' | def test_abspath_with_default_ns(): doc = parse(XML2) baz = doc.xml_first_child.xml_first_child ap = abspath(baz) assert ap == u'/*[namespace-uri()="http://bax.com" and local-name()="foo"][1]/*[namespace-uri()="http://bax.com" and local-name()="baz"][1]' assert [baz] == list(doc.xml_select(ap)) ap = abspath(baz.xml_fol... | a2e357919857ad41e629083b96743665e09b2981 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14078/a2e357919857ad41e629083b96743665e09b2981/test_abs_path.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5113,
803,
67,
1918,
67,
1886,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
22,
13,
29025,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5113,
803,
67,
1918,
67,
1886,
67,
2387,
13332,
997,
273,
1109,
12,
4201,
22,
13,
29025,
273,
997,
18,
2902,
67,
3645,
67,
3624,
18,
2902,
67,
3645,
67,
3624,
513,
273,
948... |
f = self._findSource() | f = self.doDownload() | def do(self): | 737a8796608637ca137885bcc7d33f42ecec5ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/737a8796608637ca137885bcc7d33f42ecec5ac5/source.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if f.name in f.getChildren(): | if filename in destdir.getChildren(): | def mknod(path, mode=0600, device=None): filename = posixpath.basename(path) dirname = posixpath.dirname(path) f = _findFileFromPath(dirname) if not access(path, mode): raise OSError(errno.EPERM, '') if not isinstance(f, FakeDir): raise OSError(errno.ENOTDIR, '') if f.name in f.getChildren(): raise OSError(e... | aa20dce7c6d5bb9f33d932aab3323692451f4886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/aa20dce7c6d5bb9f33d932aab3323692451f4886/os_mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
19888,
12,
803,
16,
1965,
33,
7677,
713,
16,
2346,
33,
7036,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
19888,
12,
803,
16,
1965,
33,
7677,
713,
16,
2346,
33,
7036,
4672,
1544,
273,
16366,
803,
18,
13909,
12,
803,
13,
4283,
225,
273,
16366,
803,
18,
12287,
12,
803,
13,
284,
3639,
... |
path = model.NextImagePath() if path is True: | status = model.Next() if status is None: | def GetLocalPath(self): return self._localPath | dabd478119ddd03f0fd0847e7c386fc9e6c499d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4583/dabd478119ddd03f0fd0847e7c386fc9e6c499d6/slideshowmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2042,
743,
12,
2890,
4672,
327,
365,
6315,
3729,
743,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2042,
743,
12,
2890,
4672,
327,
365,
6315,
3729,
743,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'account_id': account_id[0], | 'account_id': account_id, | def _do_create(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) analytic_account_obj = pool.get('account.analytic.account') res_partner_obj = pool.get('res.partner') account_payment_term_obj = pool.get('account.payment.term') | 37282f32e2cd0512223b1c651bc783fc2a2cb12c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/37282f32e2cd0512223b1c651bc783fc2a2cb12c/hr_timesheet_final_invoice_create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
392,
7834,
335,
67,
4631,
67,
2603,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
392,
7834,
335,
67,
4631,
67,
2603,
273,
... |
def __call__(self, x): import sage.rings.all if sage.rings.all.is_Infinity(x): return Expect.__call__(self, 'inf') else: return Expect.__call__(self, x) | def __call__(self, x): import sage.rings.all if sage.rings.all.is_Infinity(x): return Expect.__call__(self, 'inf') else: return Expect.__call__(self, x) | c37aae41caccee4a71a6b90ea9abcd5b070a7522 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/c37aae41caccee4a71a6b90ea9abcd5b070a7522/axiom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
4672,
1930,
272,
410,
18,
86,
899,
18,
454,
309,
272,
410,
18,
86,
899,
18,
454,
18,
291,
67,
382,
7850,
12,
92,
4672,
327,
15510,
16186,
1991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
619,
4672,
1930,
272,
410,
18,
86,
899,
18,
454,
309,
272,
410,
18,
86,
899,
18,
454,
18,
291,
67,
382,
7850,
12,
92,
4672,
327,
15510,
16186,
1991,
... | |
print >> sys.stderr, "packageData_checker.py debug: ending __main__ section" print >> sys.stderr, "packageData_checker.py debug: done with all of import" | def print_listings(): """ """ global packageMapping_for_files if LIST_UNCLASSIFIED_FILES: #bruce 080223; usage: pass cad/src/*.py == ../*.py as arguments packageMapping_for_files = dict(packageMapping_for_files) for pyfile in sys.argv[1:]: if pyfile.endswith('.py'): basename_ext = os.path.basename(pyfile) basename, e... | 6592cb59f5cd9278218a488768a48b6b5519974c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6592cb59f5cd9278218a488768a48b6b5519974c/packageData_checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
1098,
899,
13332,
3536,
3536,
225,
2552,
2181,
3233,
67,
1884,
67,
2354,
225,
309,
15130,
67,
2124,
5237,
13519,
67,
12669,
30,
468,
2848,
3965,
16314,
3103,
4366,
31,
4084,
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,
1172,
67,
1098,
899,
13332,
3536,
3536,
225,
2552,
2181,
3233,
67,
1884,
67,
2354,
225,
309,
15130,
67,
2124,
5237,
13519,
67,
12669,
30,
468,
2848,
3965,
16314,
3103,
4366,
31,
4084,
30... | |
err,InstanceClass = do_windows('install')(self,arg) | err = do_windows('install')(self,arg) | def do_install(self,arg): err,InstanceClass = do_windows('install')(self,arg) if not err: # If we installed successfully, put info in registry for the # real Service class to use: command = '"%s" -C "%s"' % ( # This gives us the instance script for buildout instances # and the install script for classic instances. os.p... | 07b89a02e6216c735247661f8a09175f5e597e2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9658/07b89a02e6216c735247661f8a09175f5e597e2e/zopectl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5425,
12,
2890,
16,
3175,
4672,
393,
273,
741,
67,
13226,
2668,
5425,
6134,
12,
2890,
16,
3175,
13,
309,
486,
393,
30,
468,
971,
732,
5876,
4985,
16,
1378,
1123,
316,
4023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5425,
12,
2890,
16,
3175,
4672,
393,
273,
741,
67,
13226,
2668,
5425,
6134,
12,
2890,
16,
3175,
13,
309,
486,
393,
30,
468,
971,
732,
5876,
4985,
16,
1378,
1123,
316,
4023,
... |
self.dict[headerseen] = string.strip(line[len(headerseen)+2:]) | self.dict[headerseen] = string.strip(line[len(headerseen)+1:]) | def readheaders(self): """Read header lines. Read header lines up to the entirely blank line that terminates them. The (normally blank) line that ends the headers is skipped, but not included in the returned list. If a non-header line ends the headers, (which is an error), an attempt is made to backspace over it; it ... | d8957d6802551c6510974667e102027ed07a0fa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d8957d6802551c6510974667e102027ed07a0fa5/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2485,
12,
2890,
4672,
3536,
1994,
1446,
2362,
18,
225,
2720,
1446,
2362,
731,
358,
326,
21658,
7052,
980,
716,
30559,
2182,
18,
225,
1021,
261,
7959,
1230,
7052,
13,
980,
716,
3930,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2485,
12,
2890,
4672,
3536,
1994,
1446,
2362,
18,
225,
2720,
1446,
2362,
731,
358,
326,
21658,
7052,
980,
716,
30559,
2182,
18,
225,
1021,
261,
7959,
1230,
7052,
13,
980,
716,
3930,... |
self.score.getQuestionTotal()+1,self.param.val('length'))) | self.score.getQuestionTotal()+1, self.param.val('length'))) | def quiz(self,oldbox): #Defining kana selection parameters. self.kanaEngine.kanaSelectParams( (self.param.val('basic_hiragana'), self.param.val('modified_hiragana'), self.param.val('contracted_hiragana'), self.param.val('basic_katakana'), self.param.val('modified_katakana'), self.param.val('contracted_katakana'), self.... | 64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16479,
12,
2890,
16,
1673,
2147,
4672,
468,
6443,
310,
417,
13848,
4421,
1472,
18,
365,
18,
79,
13848,
4410,
18,
79,
13848,
3391,
1370,
12,
261,
2890,
18,
891,
18,
1125,
2668,
13240,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16479,
12,
2890,
16,
1673,
2147,
4672,
468,
6443,
310,
417,
13848,
4421,
1472,
18,
365,
18,
79,
13848,
4410,
18,
79,
13848,
3391,
1370,
12,
261,
2890,
18,
891,
18,
1125,
2668,
13240,
6... |
else: event.ignore() | QtGui.QLineEdit.keyPressEvent(self,event) | def keyPressEvent(self, event): """ keyPressEvent(event) -> None If this is a string line edit, we can use Ctrl+Enter to enter the file name """ k = event.key() s = event.modifiers() if (k == QtCore.Qt.Key_Enter or k == QtCore.Qt.Key_Return): if s & QtCore.Qt.ShiftModifier: event.accept() if self.contentIsString and n... | 42c083af305ea3db22beafff133d2acea623f474 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/42c083af305ea3db22beafff133d2acea623f474/method_dropbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
3536,
498,
11840,
1133,
12,
2575,
13,
317,
599,
971,
333,
353,
279,
533,
980,
3874,
16,
732,
848,
999,
30715,
15,
10237,
358,
6103,
326,
585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
3536,
498,
11840,
1133,
12,
2575,
13,
317,
599,
971,
333,
353,
279,
533,
980,
3874,
16,
732,
848,
999,
30715,
15,
10237,
358,
6103,
326,
585,... |
if isinstance(host, types.TupleType): | if isinstance(host, tuple): | def __init__(self, host, debugfunc=None): if isinstance(host, types.TupleType): host, self.weight = host else: self.weight = 1 | aa973f034fdfe4801db987afda8191177edefc04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/aa973f034fdfe4801db987afda8191177edefc04/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1198,
644,
33,
7036,
4672,
309,
1549,
12,
2564,
16,
3193,
4672,
1479,
16,
365,
18,
4865,
273,
1479,
469,
30,
365,
18,
4865,
273,
404,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
16,
1198,
644,
33,
7036,
4672,
309,
1549,
12,
2564,
16,
3193,
4672,
1479,
16,
365,
18,
4865,
273,
1479,
469,
30,
365,
18,
4865,
273,
404,
2,
-100... |
PlotBase.draw(self) self.x_formatter_cb(self.ax) | def draw( self ): PlotBase.draw(self) self.x_formatter_cb(self.ax) if self.gdata.isEmpty(): return None tmp_x = []; tmp_y = [] | ffc6d6cabe145c25dc211d7c1daa3f9a712612c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ffc6d6cabe145c25dc211d7c1daa3f9a712612c8/BarGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
365,
262,
30,
1377,
309,
365,
18,
75,
892,
18,
291,
1921,
13332,
327,
599,
225,
1853,
67,
92,
273,
5378,
31,
1853,
67,
93,
273,
5378,
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,
3724,
12,
365,
262,
30,
1377,
309,
365,
18,
75,
892,
18,
291,
1921,
13332,
327,
599,
225,
1853,
67,
92,
273,
5378,
31,
1853,
67,
93,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def DefineSign(welcomesite, SignPage): Page = wikipedia.Page(welcomesite, SignPage) | def DefineSign(wsite, SignPage): Page = wikipedia.Page(wsite, SignPage) | def blocked(username, welcomesite): #A little block to check if the user has already been blocked (to skip him) reg = """<li>[0-9][0-9]:[0-9][0-9], [0-9][0-9] (.*?) [0-9][0-9][0-9][0-9] <a href=\"/wiki/(.*?)\" title=\"(.*?)\">(.*?)</a> \(<a href=\"/wiki/(.*?)\" title=\"(.*?)\">(.*?)</a>""" block_text = welcomesite.getU... | bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/bf50a20b7e53b37ac1a5a7ffeb2895c56bcf1f38/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14547,
12,
5053,
16,
341,
292,
10127,
1137,
4672,
468,
37,
12720,
1203,
358,
866,
309,
326,
729,
711,
1818,
2118,
14547,
261,
869,
2488,
366,
381,
13,
960,
273,
3536,
32,
549,
23224,
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,
14547,
12,
5053,
16,
341,
292,
10127,
1137,
4672,
468,
37,
12720,
1203,
358,
866,
309,
326,
729,
711,
1818,
2118,
14547,
261,
869,
2488,
366,
381,
13,
960,
273,
3536,
32,
549,
23224,
2... |
def macosxVersionCmp(self, cmp, version, arglist): import sys print >>sys.stderr, 'FIXME: macosxVersionCmp unimplemented.' return False | def macosxVersionCmp(self, cmp, version, arglist): import sys print >>sys.stderr, 'FIXME: macosxVersionCmp unimplemented.' return False | e6a51faefd2aa31804c7d79a3868d66afe35eb3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/e6a51faefd2aa31804c7d79a3868d66afe35eb3d/Tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5318,
538,
92,
1444,
31832,
12,
2890,
16,
9411,
16,
1177,
16,
31805,
4672,
1930,
2589,
1172,
1671,
9499,
18,
11241,
16,
296,
25810,
30,
5318,
538,
92,
1444,
31832,
640,
21099,
1093,
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,
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,
5318,
538,
92,
1444,
31832,
12,
2890,
16,
9411,
16,
1177,
16,
31805,
4672,
1930,
2589,
1172,
1671,
9499,
18,
11241,
16,
296,
25810,
30,
5318,
538,
92,
1444,
31832,
640,
21099,
1093,
327,... | |
self.connect_changed_signals() | def main(self): | c72b6838dcb0b550e4eff4f42194bf7f0922f3e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/c72b6838dcb0b550e4eff4f42194bf7f0922f3e4/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
self._init() | self._index=BTree() | def clear(self): | f8d4e017bcdc493e4f0cfb9aa5a2cf5f042df633 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f8d4e017bcdc493e4f0cfb9aa5a2cf5f042df633/TextIndex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print "\033[32m" | print("\033[32m", end='') | def green(self): print "\033[32m" | fc50e2444a71cd15a13d345a1f9359c0ceb01f43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8290/fc50e2444a71cd15a13d345a1f9359c0ceb01f43/UnixConsoleHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10004,
12,
2890,
4672,
1172,
1548,
15265,
63,
1578,
81,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10004,
12,
2890,
4672,
1172,
1548,
15265,
63,
1578,
81,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "Interrupt detected, cleaning up." | print timestamp(), "! Interrupt detected, cleaning up." | def push_rpm(rpm, channel, user, password, satserver): '''Push rpm into Satellite using rhnpush as needed''' if options.debug: verbose_flag = '-vv' elif options.verbose: verbose_flag = '-v' else: verbose_flag = '' if re.search('\.src\.rpm$', rpm): # source rpm, setting --source flag source_flag = '--source' else: sourc... | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
86,
7755,
12,
86,
7755,
16,
1904,
16,
729,
16,
2201,
16,
5942,
3567,
4672,
9163,
7621,
25228,
1368,
25793,
19345,
1450,
6259,
82,
6206,
487,
3577,
26418,
309,
702,
18,
4148,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
67,
86,
7755,
12,
86,
7755,
16,
1904,
16,
729,
16,
2201,
16,
5942,
3567,
4672,
9163,
7621,
25228,
1368,
25793,
19345,
1450,
6259,
82,
6206,
487,
3577,
26418,
309,
702,
18,
4148,
... |
obj._abc_registry = abcs.get(obj, {}).copy() | obj._abc_registry = abcs.get(obj, WeakSet()).copy() | def dash_R_cleanup(fs, ps, pic, abcs): import gc, copy_reg import _strptime, linecache, dircache import urlparse, urllib, urllib2, mimetypes, doctest import struct, filecmp, _abcoll from abc import _Abstract from distutils.dir_util import _path_created # Restore some original values. warnings.filters[:] = fs copy_reg.... | 5dfe63809ac181887d7233f90ad32efb23f3d5f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/5dfe63809ac181887d7233f90ad32efb23f3d5f7/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12558,
67,
54,
67,
16732,
12,
2556,
16,
4250,
16,
19189,
16,
1223,
2143,
4672,
1930,
8859,
16,
1610,
67,
1574,
1930,
389,
701,
10650,
16,
4739,
557,
807,
16,
1577,
2493,
1930,
15185,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12558,
67,
54,
67,
16732,
12,
2556,
16,
4250,
16,
19189,
16,
1223,
2143,
4672,
1930,
8859,
16,
1610,
67,
1574,
1930,
389,
701,
10650,
16,
4739,
557,
807,
16,
1577,
2493,
1930,
15185,
1... |
print """cl(ear) [lineno] | print """cl(ear) [file:][lineno] | def help_cl(self): print """cl(ear) [lineno] | e6af561e644b3c3d27f74762680a82963535cb3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e6af561e644b3c3d27f74762680a82963535cb3b/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
830,
12,
2890,
4672,
1172,
3536,
830,
12,
2091,
13,
306,
17782,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
67,
830,
12,
2890,
4672,
1172,
3536,
830,
12,
2091,
13,
306,
17782,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
name='bgColCb', parent=self.panel3, pos=wxPoint(8, 72), size=wxSize(89, 21), style=0, validator=wxDefaultValidator, | name='bgColCb', parent=self.panel3, pos=wxPoint(8, 80), size=wxSize(96, 21), style=0, validator=wxDefaultValidator, | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | aac0471ac41eaa175cbaa05604248123746b2b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aac0471ac41eaa175cbaa05604248123746b2b22/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
if re.search('ERROR FAIL', cmd.logs['stdio'].getText()): return WARNINGS if re.search('ERROR TODO WORKED', cmd.logs['stdio'].getText()): | if re.search('TEST-UNEXPECTED-', cmd.logs['stdio'].getText()): | def evaluateCommand(self, cmd): superResult = ShellCommandReportTimeout.evaluateCommand(self, cmd) if SUCCESS != superResult: return WARNINGS if re.search('ERROR FAIL', cmd.logs['stdio'].getText()): return WARNINGS if re.search('ERROR TODO WORKED', cmd.logs['stdio'].getText()): return WARNINGS if re.search('FAIL Exited... | 7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/7a98e6a7b1b7c3be64f4ca6d0a6392c5ed6108e2/steps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
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,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
4820,
2694,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
9744,
55,
309,
283,
18,
3... |
def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", | def __init__(self, host='localhost', ssl_port=8443, handler=config['prefix'] or "/candlepin", | def __init__(self, host='localhost', ssl_port=8443, handler=cfg['prefix'] or "/candlepin", cert_file=None, key_file=None): self.host = host self.ssl_port = ssl_port self.handler = handler self.conn = None self.basic_auth_conn = None self.cert_file = cert_file self.key_file = key_file config = initConfig() self.candlepi... | cec4d0300523fea681593155a664697628c163f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/cec4d0300523fea681593155a664697628c163f3/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
13014,
2187,
5832,
67,
655,
33,
5193,
8942,
16,
1838,
33,
1425,
3292,
3239,
3546,
578,
2206,
71,
464,
298,
13097,
3113,
3320,
67,
768,
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,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
13014,
2187,
5832,
67,
655,
33,
5193,
8942,
16,
1838,
33,
1425,
3292,
3239,
3546,
578,
2206,
71,
464,
298,
13097,
3113,
3320,
67,
768,
33,
70... |
paths = self.client.get_list(defs.LAUNCHERS, defs.LAUNCHERS_LIST) path.remove(path) | paths = self.client_taskman.get_list(GROUP_DEFAULT, defs.LAUNCHERS_LIST) paths.remove(path) | def remove(self, button): selection = self.treeview_launchers.get_selection() (model, iter) = selection.get_selected() path = model.get_value(iter, 2) # TODO: don't check if it exists, perhaps it's invalid if os.path.exists(path): paths = self.client.get_list(defs.LAUNCHERS, defs.LAUNCHERS_LIST) path.remove(path) if pa... | 621f1c221f9d9f9d36cd658661406fdc1873b9a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/621f1c221f9d9f9d36cd658661406fdc1873b9a2/awnClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
67,
20738,
414,
18,
588,
67,
10705,
1435,
261,
2284,
16,
1400,
13,
273,
4421,
18,
588,
67,
8109,
1435,
589,
273,
938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
67,
20738,
414,
18,
588,
67,
10705,
1435,
261,
2284,
16,
1400,
13,
273,
4421,
18,
588,
67,
8109,
1435,
589,
273,
938,
... |
"""Return the number of open bonds for element <eleNum>. Currently, only for the single bond case. """ | """Return the number of open bonds for element <eleNum>. Currently, only for the single bond case. """ | def getElemBondCount(self, eleNum): """Return the number of open bonds for element <eleNum>. Currently, only for the single bond case. """ elem = self._perodicalTable[eleNum] bond = elem.bonds if bond: return bond[0][0] else: return 0 | 3b028f76618d4601127f8e68774efbbf6c318379 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3b028f76618d4601127f8e68774efbbf6c318379/elements.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
3269,
9807,
1380,
12,
2890,
16,
5043,
2578,
4672,
3536,
990,
326,
1300,
434,
1696,
15692,
364,
930,
411,
6516,
2578,
18652,
15212,
16,
1338,
364,
326,
2202,
8427,
648,
18,
3536,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4774,
3269,
9807,
1380,
12,
2890,
16,
5043,
2578,
4672,
3536,
990,
326,
1300,
434,
1696,
15692,
364,
930,
411,
6516,
2578,
18652,
15212,
16,
1338,
364,
326,
2202,
8427,
648,
18,
3536,
36... |
self.cols[1].set_sort_column_id(2) | self.cols[1].set_sort_column_id(1) | def __init__(self, frame, ChatNotebook): self.frame = frame self.joinedrooms = {} self.autojoin = 1 self.rooms = [] config = self.frame.np.config.sections self.PrivateRooms = config["private_rooms"]["rooms"] #self.PrivateRoomsOperator = config["private_rooms"]["operator"] #self.PrivateRoomsMembership = config["privat... | bd22d9a79d709d993463602575ff87e47daaa60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/bd22d9a79d709d993463602575ff87e47daaa60e/chatrooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2623,
16,
16903,
19751,
4672,
365,
18,
3789,
273,
2623,
365,
18,
5701,
329,
13924,
87,
273,
2618,
365,
18,
6079,
5701,
273,
404,
365,
18,
13924,
87,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2623,
16,
16903,
19751,
4672,
365,
18,
3789,
273,
2623,
365,
18,
5701,
329,
13924,
87,
273,
2618,
365,
18,
6079,
5701,
273,
404,
365,
18,
13924,
87,
273,... |
There are no rational points with x-cordinate 3. | There are no rational points with x-coordinate 3. | def lift_x(self, x, all=False): """ Given the x-coordinate of a point on the curve, use the defining polynomial to find all affine points on this curve with the given x-coordinate. EXAMPLES: sage: E = EllipticCurve('37a'); E Elliptic Curve defined by y^2 + y = x^3 - x over Rational Field sage: E.lift_x(1) (1 : 0 : 1) ... | 09e345b25236d5bd15eecd86cc093a836e7ba6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/09e345b25236d5bd15eecd86cc093a836e7ba6db/ell_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28080,
67,
92,
12,
2890,
16,
619,
16,
777,
33,
8381,
4672,
3536,
16803,
326,
619,
17,
29191,
434,
279,
1634,
603,
326,
8882,
16,
999,
326,
9364,
16991,
358,
1104,
777,
28381,
3143,
603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
92,
12,
2890,
16,
619,
16,
777,
33,
8381,
4672,
3536,
16803,
326,
619,
17,
29191,
434,
279,
1634,
603,
326,
8882,
16,
999,
326,
9364,
16991,
358,
1104,
777,
28381,
3143,
603... |
fmode = lstat(dst)[ST_MODE] | fmode = lstat(entry.attrib['dst'])[ST_MODE] | def InstallSymLink(self, src, dst): try: fmode = lstat(dst)[ST_MODE] if S_ISREG(fmode) or S_ISLNK(fmode): unlink(dst) elif S_ISDIR(fmode): system("mv %s/ %s.bak"%(dst, dst)) else: unlink(dst) except OSError, e: pass try: symlink(src, dst) except OSError, e: return False | 1af3cb42a465bc87f64d63e1005d4e5014c6a6c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/1af3cb42a465bc87f64d63e1005d4e5014c6a6c1/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
11901,
2098,
12,
2890,
16,
1705,
16,
3046,
4672,
775,
30,
284,
3188,
273,
328,
5642,
12,
4099,
18,
14588,
3292,
11057,
19486,
63,
882,
67,
7038,
65,
309,
348,
67,
5127,
5937,
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,
10284,
11901,
2098,
12,
2890,
16,
1705,
16,
3046,
4672,
775,
30,
284,
3188,
273,
328,
5642,
12,
4099,
18,
14588,
3292,
11057,
19486,
63,
882,
67,
7038,
65,
309,
348,
67,
5127,
5937,
12... |
def new_salt(self, secret_key): """Return a new salt Return value must be 4 bytes long.""" return generate_key()[:4] | def should_save(self): """True if the session should be saved.""" return self.modified | 3b1cb999459f564c8d2cc15063f878e381d0d355 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14437/3b1cb999459f564c8d2cc15063f878e381d0d355/securecookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
5688,
12,
2890,
4672,
3536,
5510,
309,
326,
1339,
1410,
506,
5198,
12123,
327,
365,
18,
7342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
5688,
12,
2890,
4672,
3536,
5510,
309,
326,
1339,
1410,
506,
5198,
12123,
327,
365,
18,
7342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
DeleteOldDocs(MakePath(docs_outpath)) BuildJavaScriptForDocsFromIDLs(idl_files, docs_js_outpath) BuildO3DDocsFromJavaScript([o3d_extra_externs_path] + docs_js_files, o3d_docs_ezt_outpath, o3d_docs_html_outpath) BuildO3DClassHierarchy(o3d_docs_html_outpath) BuildJavaScriptForExternsFromIDLs(idl_files, externs_js_outpath... | try: DeleteOldDocs(MakePath(docs_outpath)) BuildJavaScriptForDocsFromIDLs(idl_files, docs_js_outpath) BuildO3DDocsFromJavaScript([o3d_extra_externs_path] + docs_js_files, o3d_docs_ezt_outpath, o3d_docs_html_outpath) BuildO3DClassHierarchy(o3d_docs_html_outpath) BuildJavaScriptForExternsFromIDLs(idl_files, externs_js_ou... | def main(argv): """Builds the O3D API docs and externs and the o3djs docs.""" global _java_exe _java_exe = argv[0] global _third_party_dir _third_party_dir = argv[1] global _o3d_third_party_dir _o3d_third_party_dir = os.path.normpath( os.path.join(os.path.dirname(__file__), '..', 'third_party')) # Fix up the python pa... | c802a1f6ff13658d66edaa83fc8a9b19edaf9e91 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/c802a1f6ff13658d66edaa83fc8a9b19edaf9e91/build_docs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3536,
7746,
326,
531,
23,
40,
1491,
3270,
471,
18885,
87,
471,
326,
320,
23,
72,
2924,
3270,
12123,
2552,
389,
6290,
67,
14880,
389,
6290,
67,
14880,
273,
5261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
3536,
7746,
326,
531,
23,
40,
1491,
3270,
471,
18885,
87,
471,
326,
320,
23,
72,
2924,
3270,
12123,
2552,
389,
6290,
67,
14880,
389,
6290,
67,
14880,
273,
5261,
... |
print 'parsing comments for', post | def parse_comments(self, post): print 'parsing comments for', post comments = {} unresolved_parents = {} | 3971ab248c9675fd10b8e78a70a73a9f06d0bdb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5796/3971ab248c9675fd10b8e78a70a73a9f06d0bdb4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
9231,
12,
2890,
16,
1603,
4672,
5678,
273,
2618,
20573,
67,
12606,
273,
2618,
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,
1109,
67,
9231,
12,
2890,
16,
1603,
4672,
5678,
273,
2618,
20573,
67,
12606,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
indices = range(self.scan_data.measurement.acquired) | indices = np.arange(self.scan_data.measurement.acquired) | def processAverageSpectrum(self, indices=None): if indices is None: indices = range(self.scan_data.measurement.acquired) n_indices = len(indices) if n_indices: masked = self.scan_data.measurement.masked[...][indices] indices = indices[np.logical_not(masked)] n_indices = len(indices) if n_indices: self.statusbar.showMes... | f7e7ef2ae251544a0a582184010122b0cfa44b1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14949/f7e7ef2ae251544a0a582184010122b0cfa44b1c/mcaanalysiswindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
17115,
55,
13324,
12,
2890,
16,
4295,
33,
7036,
4672,
309,
4295,
353,
599,
30,
4295,
273,
1130,
18,
297,
726,
12,
2890,
18,
9871,
67,
892,
18,
16944,
18,
1077,
1402,
13,
290,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
17115,
55,
13324,
12,
2890,
16,
4295,
33,
7036,
4672,
309,
4295,
353,
599,
30,
4295,
273,
1130,
18,
297,
726,
12,
2890,
18,
9871,
67,
892,
18,
16944,
18,
1077,
1402,
13,
290,
6... |
utils.run_cmd("git pull %s %s"%(self.git_repo, self.branch)) else: utils.run_cmd("git pull %s master"%(self.git_repo)) | utils.run_cmd("git pull origin %s"%self.branch) else: utils.run_cmd("git pull origin master") | def pull(self): os.chdir(self.co_path) | c091b1cce9bdf60f3242b5eb68e22e8f8b0f9645 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/c091b1cce9bdf60f3242b5eb68e22e8f8b0f9645/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
2894,
67,
803,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6892,
12,
2890,
4672,
1140,
18,
343,
1214,
12,
2890,
18,
2894,
67,
803,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
message = i18n.segment.Message() | message = Message() | def process_message(message, keep_spaces): # Normalize the message message.normalize() # Left strip if message: x = message[0] if isinstance(x, unicode) and x.strip() == u'': del message[0] # Right strip if message: x = message[-1] if isinstance(x, unicode) and x.strip() == u'': del message[-1] # Process if message: # ... | c739b4f97afe8840a74ebda80ca18c7e05965f49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/c739b4f97afe8840a74ebda80ca18c7e05965f49/XHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2150,
16,
3455,
67,
9554,
4672,
468,
14282,
326,
883,
883,
18,
12237,
1435,
468,
13338,
2569,
309,
883,
30,
619,
273,
883,
63,
20,
65,
309,
1549,
12,
92,
16,
5252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2150,
12,
2150,
16,
3455,
67,
9554,
4672,
468,
14282,
326,
883,
883,
18,
12237,
1435,
468,
13338,
2569,
309,
883,
30,
619,
273,
883,
63,
20,
65,
309,
1549,
12,
92,
16,
5252... |
self.gnbd_ip.set_text("") | def clear_fi_forms(self): self.apc_port.set_text("") self.apc_switch.set_text("") self.wti_port.set_text("") self.brocade_port.set_text("") self.vixel_port.set_text("") self.gnbd_ip.set_text("") self.sanbox2_port.set_text("") self.bladecenter_blade.set_text("") self.mcdata_port.set_text("") self.egenera_lpan.set_text("... | 66ac32aee48ed39c9a1821e4ba792531add72903 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/66ac32aee48ed39c9a1821e4ba792531add72903/FenceHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
67,
22056,
67,
9741,
12,
2890,
4672,
365,
18,
438,
71,
67,
655,
18,
542,
67,
955,
2932,
7923,
365,
18,
438,
71,
67,
9610,
18,
542,
67,
955,
2932,
7923,
365,
18,
6046,
77,
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,
2424,
67,
22056,
67,
9741,
12,
2890,
4672,
365,
18,
438,
71,
67,
655,
18,
542,
67,
955,
2932,
7923,
365,
18,
438,
71,
67,
9610,
18,
542,
67,
955,
2932,
7923,
365,
18,
6046,
77,
67,... | |
def number_of_partitions(n,k=None, algorithm='bober'): | def number_of_partitions(n,k=None, algorithm='default'): | def number_of_partitions(n,k=None, algorithm='bober'): r""" Returns the size of partitions_list(n,k). INPUT: n -- an integer k -- (default: None); if specified, instead returns the cardinality of the set of all (unordered) partitions of the positive integer n into sums with k summands. algorithm -- (default: 'bober') ... | 8a5d6da61789d8ca741f4ba72dacb9a127d70350 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8a5d6da61789d8ca741f4ba72dacb9a127d70350/combinat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
792,
67,
21275,
12,
82,
16,
79,
33,
7036,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
2860,
326,
963,
434,
10060,
67,
1098,
12,
82,
16,
79,
2934,
225,
12943,
30,
290,
1493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1300,
67,
792,
67,
21275,
12,
82,
16,
79,
33,
7036,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
2860,
326,
963,
434,
10060,
67,
1098,
12,
82,
16,
79,
2934,
225,
12943,
30,
290,
1493,
... |
opts, args = getopt.getopt(sys.argv[1:], "c:i:s:", ["cache", "internet2_netblocks", "socket"]) | global debug global logfile opts, args = getopt.getopt(sys.argv[1:], "c:i:s:dl:", ["cache", "internet2_netblocks", "socket", "debug", "log"]) | def parse_args(): global cachefile global socketfile global internet2_netblocks_file opts, args = getopt.getopt(sys.argv[1:], "c:i:s:", ["cache", "internet2_netblocks", "socket"]) for option, argument in opts: if option in ("-c", "--cache"): cachefile = argument if option in ("-i", "--internet2_netblocks"): internet2_n... | e692c0bb4927ba75fe4859eed72d903f59912e95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13031/e692c0bb4927ba75fe4859eed72d903f59912e95/mirrorlist_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1968,
13332,
2552,
1247,
768,
2552,
2987,
768,
2552,
24264,
22,
67,
2758,
7996,
67,
768,
2552,
1198,
2552,
15204,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1968,
13332,
2552,
1247,
768,
2552,
2987,
768,
2552,
24264,
22,
67,
2758,
7996,
67,
768,
2552,
1198,
2552,
15204,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
... |
format='%(asctime)s %(levelname)-8s %(message)s', stream=sys.stderr) | format='%(asctime)s %(levelname)-8s %(message)s', stream=sys.stderr) | def setup_logging(inDownloader=False): global _loggingSetup if _loggingSetup: return if inDownloader: logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)-8s %(message)s', stream=sys.stderr) else: logger = logging.getLogger('') logger.setLevel(logging.DEBUG) rotater = ApatheticRotatingFileHandler(... | 24edb968426de64c0cc9e61f085bf1ff09896f3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/24edb968426de64c0cc9e61f085bf1ff09896f3e/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
11167,
12,
267,
4164,
6714,
33,
8381,
4672,
2552,
389,
11167,
7365,
309,
389,
11167,
7365,
30,
327,
225,
309,
316,
4164,
6714,
30,
2907,
18,
13240,
809,
12,
2815,
33,
11167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
11167,
12,
267,
4164,
6714,
33,
8381,
4672,
2552,
389,
11167,
7365,
309,
389,
11167,
7365,
30,
327,
225,
309,
316,
4164,
6714,
30,
2907,
18,
13240,
809,
12,
2815,
33,
11167,
... |
pprint(request.__dict__, request_buffer) | def send_error_notification(self, request, error): from zine.notifications import send_notification_template, ZINE_ERROR request_buffer = StringIO() pprint(request.__dict__, request_buffer) request_buffer.seek(0) send_notification_template( ZINE_ERROR, 'notifications/on_server_error.zeml', user=request.user, summary=er... | 997bdf41f72ca87d015a2823d1221cf86ac2904e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/997bdf41f72ca87d015a2823d1221cf86ac2904e/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
67,
9927,
12,
2890,
16,
590,
16,
555,
4672,
628,
998,
558,
18,
15286,
1930,
1366,
67,
9927,
67,
3202,
16,
2285,
3740,
67,
3589,
590,
67,
4106,
273,
15777,
1435,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
67,
9927,
12,
2890,
16,
590,
16,
555,
4672,
628,
998,
558,
18,
15286,
1930,
1366,
67,
9927,
67,
3202,
16,
2285,
3740,
67,
3589,
590,
67,
4106,
273,
15777,
1435,
590,
... | |
old_cursor.execute("SELECT id, name, loaned FROM volumes;") for i in old_cursor.fetchall(): o = new_db.Volume(name=i[1], loaned=bool(i[2])) o.save(); o.flush() | old_cursor.execute("SELECT id, name FROM volumes;") for i in old_cursor.fetchall(): o = new_db.Volume(name=i[1]) try: o.save(); o.flush() except Exception, e: self.debug.show(str(e)) continue | def convert_from_old_db(self, source_file, destination_file): #{{{ # TODO: table.insert().execute({'number':1, 'o_title':'test1'}, {'number':2, 'title: 'test2'}) is faster! print 'Converting old database - it can take several minutes...' gutils.info(self,_("Griffith will now convert your database to the new format. Thi... | 2dadec19fe55a20ffd9eb6f4ebb1688a211b033a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2687/2dadec19fe55a20ffd9eb6f4ebb1688a211b033a/dbupgrade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2080,
67,
1673,
67,
1966,
12,
2890,
16,
1084,
67,
768,
16,
2929,
67,
768,
4672,
202,
3642,
12187,
468,
2660,
30,
1014,
18,
6387,
7675,
8837,
12590,
11,
2696,
4278,
21,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
2080,
67,
1673,
67,
1966,
12,
2890,
16,
1084,
67,
768,
16,
2929,
67,
768,
4672,
202,
3642,
12187,
468,
2660,
30,
1014,
18,
6387,
7675,
8837,
12590,
11,
2696,
4278,
21,
16,
... |
c(names='.') | c(names=subdir) | def _initializeWorkingDir(self, root, repository, module, subdir): """ Setup the monotone working copy The user must setup a monotone working directory himself. Then we simply use 'monotone commit', without having to specify a database file or branch. Monotone looks up the database and branch in it's MT directory. """ | b2f9902b127996b2c171f1afba402b14e4a52a50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/b2f9902b127996b2c171f1afba402b14e4a52a50/monotone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11160,
14836,
1621,
12,
2890,
16,
1365,
16,
3352,
16,
1605,
16,
16921,
4672,
3536,
10939,
326,
6921,
352,
476,
5960,
1610,
225,
1021,
729,
1297,
3875,
279,
6921,
352,
476,
5960,
186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11160,
14836,
1621,
12,
2890,
16,
1365,
16,
3352,
16,
1605,
16,
16921,
4672,
3536,
10939,
326,
6921,
352,
476,
5960,
1610,
225,
1021,
729,
1297,
3875,
279,
6921,
352,
476,
5960,
186... |
title = "%s <code>(%s)</code>" % (title, variant) | title = u"%s <code>(%s)</code>" % (title, variant) | def page_link(page, variant=model.Text.HEAD, create=False, link=True, icon=True, icon_size=16): if create: page = page.encode('utf-8').replace("<", "<") page = page.replace(">", ">") page = page.replace("&", "&") url = urllib.quote(page) url = "/page/new?title=%s" % url url = instance_url(c.instance, path=url... | d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/d3aabe3fe9dc3859e3a5d92f8d18e6ed2121896a/helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1363,
67,
1232,
12,
2433,
16,
5437,
33,
2284,
18,
1528,
18,
12458,
16,
752,
33,
8381,
16,
1692,
33,
5510,
16,
4126,
33,
5510,
16,
4126,
67,
1467,
33,
2313,
4672,
309,
752,
30,
1363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1363,
67,
1232,
12,
2433,
16,
5437,
33,
2284,
18,
1528,
18,
12458,
16,
752,
33,
8381,
16,
1692,
33,
5510,
16,
4126,
33,
5510,
16,
4126,
67,
1467,
33,
2313,
4672,
309,
752,
30,
1363,
... |
12345 > llin register 45 DL secret hello world | 12345 > llin register 45 DL hello world | def testScript(self): a = """ 8005551219 > llin register 20 dl secret crummy user 8005551219 < Hello cuser! You are now registered as Distribution point team leader at KANO State. """ self.runScript(a) # this should succeed because we just created him Reporter.objects.get(alias="cuser") dict = {"alias":"fail"} # make s... | f47a45ce40c2d07eef6e7d34514c9541ea3d902b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/f47a45ce40c2d07eef6e7d34514c9541ea3d902b/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3651,
12,
2890,
4672,
279,
273,
3536,
1725,
713,
2539,
13757,
3657,
405,
6579,
267,
1744,
4200,
8910,
4001,
4422,
379,
4811,
729,
1725,
713,
2539,
13757,
3657,
411,
20889,
276,
1355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
12,
2890,
4672,
279,
273,
3536,
1725,
713,
2539,
13757,
3657,
405,
6579,
267,
1744,
4200,
8910,
4001,
4422,
379,
4811,
729,
1725,
713,
2539,
13757,
3657,
411,
20889,
276,
1355,... |
if "e" in reports: log( " Generating expected_results ..." ) | if 'e' in reports: log( ' Generating expected_results ...' ) | def make_result_pages( test_results_file , expected_results_file , failures_markup_file , source , run_date , comment_file , results_dir , result_prefix , xslt_proc_name , reports ): log( "Producing the reports..." ) __log__ = 1 output_dir = os.path.join( results_dir, result_prefix ) if not os.path.exists( output_dir ... | 032bc19415907e1c169b60349b3cd5a706b5789e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/032bc19415907e1c169b60349b3cd5a706b5789e/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2088,
67,
7267,
12,
1842,
67,
4717,
67,
768,
269,
2665,
67,
4717,
67,
768,
269,
11720,
67,
15056,
67,
768,
269,
1084,
269,
1086,
67,
712,
269,
2879,
67,
768,
269,
1686,
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,
1221,
67,
2088,
67,
7267,
12,
1842,
67,
4717,
67,
768,
269,
2665,
67,
4717,
67,
768,
269,
11720,
67,
15056,
67,
768,
269,
1084,
269,
1086,
67,
712,
269,
2879,
67,
768,
269,
1686,
67,... |
server.mark_dead(msg[1]) | if type(msg) is types.TupleType: msg = msg[1] server.mark_dead(msg) | def _incrdecr(self, cmd, key, delta): check_key(key) server, key = self._get_server(key) if not server: return 0 self._statlog(cmd) cmd = "%s %s %d" % (cmd, key, delta) try: server.send_cmd(cmd) line = server.readline() return int(line) except socket.error, msg: server.mark_dead(msg[1]) return None | 88a4a25d1f1f5b18f3054d2146c90327a0fd9d97 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11935/88a4a25d1f1f5b18f3054d2146c90327a0fd9d97/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
3353,
323,
3353,
12,
2890,
16,
1797,
16,
498,
16,
3622,
4672,
866,
67,
856,
12,
856,
13,
1438,
16,
498,
273,
365,
6315,
588,
67,
3567,
12,
856,
13,
309,
486,
1438,
30,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
267,
3353,
323,
3353,
12,
2890,
16,
1797,
16,
498,
16,
3622,
4672,
866,
67,
856,
12,
856,
13,
1438,
16,
498,
273,
365,
6315,
588,
67,
3567,
12,
856,
13,
309,
486,
1438,
30,
32... |
if self.debug > 1: print 'Updating the atoms in kwargs' print atoms.get_positions() | def __init__(self, nc='out.nc', outnc=None, debug=0, stay_alive=False, **kwargs): ''' Initialize the Jacapo calculator | e111e7f7da49e775bf6f578ffb8369e435e7a68c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e111e7f7da49e775bf6f578ffb8369e435e7a68c/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8194,
2218,
659,
18,
14202,
2187,
596,
14202,
33,
7036,
16,
1198,
33,
20,
16,
23449,
67,
11462,
33,
8381,
16,
2826,
4333,
4672,
9163,
9190,
326,
804,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8194,
2218,
659,
18,
14202,
2187,
596,
14202,
33,
7036,
16,
1198,
33,
20,
16,
23449,
67,
11462,
33,
8381,
16,
2826,
4333,
4672,
9163,
9190,
326,
804,
107... | |
return Dec_p1 | return _Dec_p1 | def compare_total(self, other): """Compares self to other using the abstract representations. | ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
4963,
12,
2890,
16,
1308,
4672,
3536,
19199,
365,
358,
1308,
1450,
326,
8770,
27851,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for dirPath,dn in directory.items(): res = self.__getDNUserID(dn) | for dirPath, dn in directory.items(): res = self.__getDNUserID( dn ) | def changeDirectoryOwner(self,directory): """ Change the ownership of the directory to the user associated to the supplied DN """ res = self.__checkArgumentFormat(directory) if not res['OK']: return res directory = res['Value'] successful = {} failed = {} created = self.__openSession() for dirPath,dn in directory.items... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
2853,
5541,
12,
2890,
16,
5149,
4672,
3536,
7576,
326,
23178,
434,
326,
1867,
358,
326,
729,
3627,
358,
326,
4580,
18001,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
5149,
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,
2549,
2853,
5541,
12,
2890,
16,
5149,
4672,
3536,
7576,
326,
23178,
434,
326,
1867,
358,
326,
729,
3627,
358,
326,
4580,
18001,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
5149,
13... |
print self.resort | def restart_load(self): """Method which is called upon restart.""" # Try to read sorting file if os.path.isfile('ase-sort.dat'): self.sort = [] self.resort = [] file = open('ase-sort.dat', 'r') lines = file.readlines() file.close() for line in lines: data = line.split() self.sort.append(int(data[0])) self.resort.appen... | 828db324feb8644addb9df66b0668465900f7ba9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/828db324feb8644addb9df66b0668465900f7ba9/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
67,
945,
12,
2890,
4672,
3536,
1305,
1492,
353,
2566,
12318,
7870,
12123,
225,
468,
6161,
358,
855,
9602,
585,
309,
1140,
18,
803,
18,
291,
768,
2668,
448,
17,
3804,
18,
3404,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7870,
67,
945,
12,
2890,
4672,
3536,
1305,
1492,
353,
2566,
12318,
7870,
12123,
225,
468,
6161,
358,
855,
9602,
585,
309,
1140,
18,
803,
18,
291,
768,
2668,
448,
17,
3804,
18,
3404,
11... | |
self.assertTrue(False) | def test_update_delete_schedule(self): ''' Tests multiple updates to a repo's sync schedule and the case where multiple updates are created with no schedules. ''' | a1ecd043f684eca8fe20c51aa4f370c9bdc978f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/a1ecd043f684eca8fe20c51aa4f370c9bdc978f9/test_repo_sync_schedule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2725,
67,
3733,
67,
10676,
12,
2890,
4672,
9163,
7766,
87,
3229,
4533,
358,
279,
3538,
1807,
3792,
4788,
471,
326,
648,
1625,
3229,
4533,
854,
2522,
598,
1158,
26720,
18,
9163,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2725,
67,
3733,
67,
10676,
12,
2890,
4672,
9163,
7766,
87,
3229,
4533,
358,
279,
3538,
1807,
3792,
4788,
471,
326,
648,
1625,
3229,
4533,
854,
2522,
598,
1158,
26720,
18,
9163,... | |
return S_OK(attributeValues) def __updateTransformationParameter(self,transID,paramName,paramValue,connection=False): if not (paramName in self.mutable): return S_ERROR("Can not update the '%s' transformation parameter" % paramName) req = "UPDATE Transformations SET %s='%s', LastUpdate=UTC_TIMESTAMP() WHERE Transforma... | return S_OK( attributeValues ) def __updateTransformationParameter( self, transID, paramName, paramValue, connection = False ): if not ( paramName in self.mutable ): return S_ERROR( "Can not update the '%s' transformation parameter" % paramName ) req = "UPDATE Transformations SET %s='%s', LastUpdate=UTC_TIMESTAMP() WH... | def __getTableDistinctAttributeValues(self,table,possible,attributes,selectDict,older,newer,timeStamp,connection=False): connection = self.__getConnection(connection) attributeValues = {} for attribute in attributes: if possible and (not attribute in possible): return S_ERROR('Requested attribute (%s) does not exist i... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1388,
23402,
31770,
12,
2890,
16,
2121,
16,
12708,
16,
4350,
16,
4025,
5014,
16,
1498,
16,
2704,
264,
16,
957,
8860,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
16186,
588,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1388,
23402,
31770,
12,
2890,
16,
2121,
16,
12708,
16,
4350,
16,
4025,
5014,
16,
1498,
16,
2704,
264,
16,
957,
8860,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
16186,
588,
19... |
response2 = mainClass.checkImageDuplicated(imageName) | response2 = mainClass.checkImageDuplicated() | def checkbot(): """ Main function """ # Command line configurable parameters repeat = True # Restart after having check all the images? limit = 80 # How many images check? time_sleep = 30 # How many time sleep after the check? skip_number = 0 # How many images to skip before checking? wait_number = 0 # How many time sl... | 35a9f9395ca206d18b529e378fe7a0b110b9f1c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/35a9f9395ca206d18b529e378fe7a0b110b9f1c4/checkimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4819,
13332,
3536,
12740,
445,
3536,
468,
3498,
980,
14593,
1472,
7666,
273,
1053,
468,
20709,
1839,
7999,
866,
777,
326,
4602,
35,
1800,
273,
8958,
468,
9017,
4906,
4602,
866,
35,
... |
break return selection, active_id, inactive_id | return selection, active_id, inactive_id return [], self.multi_iw.id, self.class_iw.id | def get_all_selected(self): for display in (self.multi_iw.id, self.class_iw.id): if display.IsSelection(): selection = display.GetSelectedItems(display.GetGridCursorRow(), display.GetGridCursorCol()) active_id = display inactive_id = self.get_other_multi(display) break return selection, active_id, inactive_id | 8ef4cdf90c3b4cc82ad23f32e8c344c272dc3b00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/8ef4cdf90c3b4cc82ad23f32e8c344c272dc3b00/classifier_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
454,
67,
8109,
12,
2890,
4672,
364,
2562,
316,
261,
2890,
18,
7027,
67,
22315,
18,
350,
16,
365,
18,
1106,
67,
22315,
18,
350,
4672,
309,
2562,
18,
2520,
6233,
13332,
4421,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
454,
67,
8109,
12,
2890,
4672,
364,
2562,
316,
261,
2890,
18,
7027,
67,
22315,
18,
350,
16,
365,
18,
1106,
67,
22315,
18,
350,
4672,
309,
2562,
18,
2520,
6233,
13332,
4421,
... |
try: vResult = _POs[0].verify(fast=self.setup.get('quick', False)) except TypeError: vResult = _POs[0].verify() | vResult = self._verifyHelper(_POs[0]) | def VerifyPackage(self, entry, modlist, pinned_version=None): """ Verify Package status for entry. Performs the following: - Checks for the presence of required Package Instances. - Compares the evra 'version' info against self.installed{}. - RPM level package verify (rpm --verify). - Checks for the presence of unrequi... | fa828a85c54e0e883cfac6ad19227776c95ecb68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/fa828a85c54e0e883cfac6ad19227776c95ecb68/YUMng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
2261,
12,
2890,
16,
1241,
16,
681,
1098,
16,
26193,
67,
1589,
33,
7036,
4672,
3536,
8553,
7508,
1267,
364,
1241,
18,
27391,
326,
3751,
30,
300,
13074,
364,
326,
9805,
434,
1931,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8553,
2261,
12,
2890,
16,
1241,
16,
681,
1098,
16,
26193,
67,
1589,
33,
7036,
4672,
3536,
8553,
7508,
1267,
364,
1241,
18,
27391,
326,
3751,
30,
300,
13074,
364,
326,
9805,
434,
1931,
... |
obj = numpy.asarray(obj) | if dtype is None: obj = numpy.asarray(obj) else: obj = numpy.asarray(obj, dtype) | def _conv(obj): """ Convert an object to the preferred form for input to the odr routine. """ if obj is None: return obj else: obj = numpy.asarray(obj) if obj.shape == (): # Scalar. return obj.dtype.type(obj) else: return obj | cd6d82b7329eed7a642d19bad5f088731a21c06e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/cd6d82b7329eed7a642d19bad5f088731a21c06e/odrpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4896,
12,
2603,
4672,
3536,
4037,
392,
733,
358,
326,
9119,
646,
364,
810,
358,
326,
320,
3069,
12245,
18,
3536,
225,
309,
1081,
353,
599,
30,
327,
1081,
469,
30,
309,
3182,
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,
4896,
12,
2603,
4672,
3536,
4037,
392,
733,
358,
326,
9119,
646,
364,
810,
358,
326,
320,
3069,
12245,
18,
3536,
225,
309,
1081,
353,
599,
30,
327,
1081,
469,
30,
309,
3182,
353,
... |
self.langbox.set_markup(self.fromLang() + ' | ' + self.toLang() + ': ') | self.langbox.set_markup(self.from_lang() + ' | ' + self.to_lang() + ': ') | def enter_callback(self, widget, data = None): '''Submit entrybox text for translation.''' buf = self.resultbuffer1 if self.entry.get_text() in ('.clear', 'clear()'): buf.set_text('') self.entry.set_text('') return result = self.text(self.entry.get_text()) if result is None: return | 14df03d8cb360b4e980acabb44bd6dbe0fd79acd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/14df03d8cb360b4e980acabb44bd6dbe0fd79acd/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
67,
3394,
12,
2890,
16,
3604,
16,
501,
273,
599,
4672,
9163,
11620,
1241,
2147,
977,
364,
4794,
1093,
6309,
1681,
273,
365,
18,
2088,
4106,
21,
309,
365,
18,
4099,
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,
6103,
67,
3394,
12,
2890,
16,
3604,
16,
501,
273,
599,
4672,
9163,
11620,
1241,
2147,
977,
364,
4794,
1093,
6309,
1681,
273,
365,
18,
2088,
4106,
21,
309,
365,
18,
4099,
18,
588,
67,
... |
comp_args((1, 2)) | def test_float_literals(self): self.assertRaises(SyntaxError, eval, "2e") self.assertRaises(SyntaxError, eval, "2.0e+") self.assertRaises(SyntaxError, eval, "1e-") self.assertRaises(SyntaxError, eval, "3-4e/21") | def comp_args((a, b)): print a,b | 5374db00e0b331040acf11a1ed8ac595f665f4db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5374db00e0b331040acf11a1ed8ac595f665f4db/test_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1161,
67,
1968,
12443,
69,
16,
324,
3719,
30,
1172,
279,
16,
70,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1161,
67,
1968,
12443,
69,
16,
324,
3719,
30,
1172,
279,
16,
70,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return super(account_analytic_account, self).create(cr, uid, vals, ctx) | return super(account_analytic_account, self).create(cr, uid, vals, context=context) | def create(self, cr, uid, vals, ctx={}): parent_id = vals.get('parent_id', 0) if ('code' not in vals or not vals['code']) and not parent_id: vals['code'] = self.pool.get('ir.sequence').get(cr, uid, 'account.analytic.account') return super(account_analytic_account, self).create(cr, uid, vals, ctx) | d442092a8d2ddeaf5ca2612107b826bb6abbe948 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/d442092a8d2ddeaf5ca2612107b826bb6abbe948/project.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
1103,
12938,
4672,
982,
67,
350,
273,
5773,
18,
588,
2668,
2938,
67,
350,
2187,
374,
13,
309,
7707,
710,
11,
486,
316,
5773,
578,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
5773,
16,
1103,
12938,
4672,
982,
67,
350,
273,
5773,
18,
588,
2668,
2938,
67,
350,
2187,
374,
13,
309,
7707,
710,
11,
486,
316,
5773,
578,
486... |
value.replace(',','.') | value = value.replace(',','.') | def _to_tuple(self, instance, value): """ COMMENT TO-DO """ if not value: value = self.getDefault(instance) | d8cc8c726c8d62f94777dcc6b672905dbe8548e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/d8cc8c726c8d62f94777dcc6b672905dbe8548e9/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
67,
8052,
12,
2890,
16,
791,
16,
460,
4672,
3536,
19400,
8493,
17,
3191,
3536,
309,
486,
460,
30,
460,
273,
365,
18,
588,
1868,
12,
1336,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
67,
8052,
12,
2890,
16,
791,
16,
460,
4672,
3536,
19400,
8493,
17,
3191,
3536,
309,
486,
460,
30,
460,
273,
365,
18,
588,
1868,
12,
1336,
13,
2,
-100,
-100,
-100,
-100,
-10... |
self.dicts[i]['distEpi']) | self.dicts[i]['distHypo']) | def calculateStationMagnitudes(self): for i in range(len(self.streams)): if (self.dicts[i].has_key('MagMin1') and self.dicts[i].has_key('MagMin2') and self.dicts[i].has_key('MagMax1') and self.dicts[i].has_key('MagMax2')): amp = self.dicts[i]['MagMax1'] - self.dicts[i]['MagMin1'] timedelta = abs(self.dicts[i]['MagMax1... | 5249c4b61e16ab546a165c5d1b478a55c116e1cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/5249c4b61e16ab546a165c5d1b478a55c116e1cc/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... |
def docclass(self, object, funcs={}, classes={}): | def docclass(self, object, name=None, funcs={}, classes={}): | def docclass(self, object, funcs={}, classes={}): """Produce HTML documentation for a class object.""" name = object.__name__ bases = object.__bases__ contents = '' | 37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
1106,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
15630,
28793,
3318,
12938,
4672,
3536,
25884,
3982,
7323,
364,
279,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
997,
1106,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
15630,
28793,
3318,
12938,
4672,
3536,
25884,
3982,
7323,
364,
279,
667,
733,
12123,
508,
273,
733,
16186,
529,
972,
8337,
273,
733,
... |
def ChangeServiceConfig(pythonClassString, serviceName, startType = None, errorControl = None, serviceDeps = None, userName = None, password = None, exeName = None, displayName = None, perfMonIni = None, perfMonDll = None): | def ChangeServiceConfig(pythonClassString, serviceName, startType = None, errorControl = None, bRunInteractive = 0, serviceDeps = None, userName = None, password = None, exeName = None, displayName = None, perfMonIni = None, perfMonDll = None): | def ChangeServiceConfig(pythonClassString, serviceName, startType = None, errorControl = None, serviceDeps = None, userName = None, password = None, exeName = None, displayName = None, perfMonIni = None, perfMonDll = None): # Before doing anything, remove any perfmon counters. try: import perfmon perfmon.UnloadPerfCoun... | ace6349f680363035807225fbc1f73bbf99875e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/ace6349f680363035807225fbc1f73bbf99875e9/win32serviceutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1179,
809,
12,
8103,
797,
780,
16,
6773,
16,
787,
559,
273,
599,
16,
555,
3367,
273,
599,
16,
324,
1997,
26442,
273,
374,
16,
1156,
14430,
273,
599,
16,
12065,
273,
599,
16,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7576,
1179,
809,
12,
8103,
797,
780,
16,
6773,
16,
787,
559,
273,
599,
16,
555,
3367,
273,
599,
16,
324,
1997,
26442,
273,
374,
16,
1156,
14430,
273,
599,
16,
12065,
273,
599,
16,
22... |
try: msg = str(self.msg) except UnicodeError: msg = self.msg | msg = self.msg if type(msg) not in (types.UnicodeType, types.StringType): try: msg = str(self.msg) except UnicodeError: msg = self.msg | def getMessage(self): """ Return the message for this LogRecord. | 3de856f2685877a497ef4ba67da740c033c316c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3de856f2685877a497ef4ba67da740c033c316c2/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2381,
12,
2890,
4672,
3536,
2000,
326,
883,
364,
333,
25612,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2381,
12,
2890,
4672,
3536,
2000,
326,
883,
364,
333,
25612,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Type = args[0]; | Type = args[0] | def main(): Comm = Epetra.PyComm(); args = sys.argv[1:] if len(args) == 0: Type = "Amesos_Lapack" else: Type = args[0]; NumGlobalRows = 10; Map = Epetra.Map(NumGlobalRows, 0, Comm); LHS_exact = Epetra.MultiVector(Map, 1); LHS = Epetra.MultiVector(Map, 1); RHS = Epetra.MultiVector(Map, 1); Matrix = Epetra.CrsMatrix(Ep... | b0de99b594baede77af9aff7c1b994a5d198a226 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1130/b0de99b594baede77af9aff7c1b994a5d198a226/exSolvers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
5621,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
16854,
273,
512,
6951,
354,
18,
9413,
12136,
5621,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
562,
12,
1968,
13,
422,
374,
30,
1412,
273,
315,
9864,
281,
538,
67,... |
troveTups = [ x for x in packages if not group.hasTrove(*x)] | troveTups = [ x for x in packages if not (group.hasTrove(*x) and group.isExlicit(*x)) ] troveTups = packages.keys() | def addPackagesForComponents(group, repos, troveCache): """ Add the containing packages for any components added to group. Then switch the components to being implicit, but byDefault=True, while other non-specified components are byDefault=False. """ packages = {} for (n,v,f), explicit, byDefault, comps in group.iterT... | 279dc3a0ab02018ec14798d7001576236ec7ce8c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/279dc3a0ab02018ec14798d7001576236ec7ce8c/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
11425,
1290,
7171,
12,
1655,
16,
13686,
16,
23432,
537,
1649,
4672,
3536,
1436,
326,
4191,
5907,
364,
1281,
4085,
3096,
358,
1041,
18,
9697,
1620,
326,
4085,
358,
3832,
10592,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
11425,
1290,
7171,
12,
1655,
16,
13686,
16,
23432,
537,
1649,
4672,
3536,
1436,
326,
4191,
5907,
364,
1281,
4085,
3096,
358,
1041,
18,
9697,
1620,
326,
4085,
358,
3832,
10592,
16,
1... |
tftp_root = os.environ.get('KVM_TEST_tftp', '') if tftp_root: self.tftp_root = os.path.join(kvm_test_dir, tftp_root) if not os.path.isdir(self.tftp_root): os.makedirs(self.tftp_root) else: self.tftp_root = tftp_root self.kernel_args = os.environ.get('KVM_TEST_kernel_args', '') self.finish_program = os.environ.get('KVM... | attributes = ['kernel_args', 'finish_program', 'cdrom_cd1', 'unattended_file', 'medium', 'url', 'kernel', 'initrd', 'nfs_server', 'nfs_dir', 'pxe_dir', 'pxe_image', 'pxe_initrd', 'install_virtio', 'tftp', 'qemu_img_binary', 'floppy'] for a in attributes: self._setattr(a) if self.install_virtio == 'yes': v_attributes =... | def __init__(self): """ Gets params from environment variables and sets class attributes. """ script_dir = os.path.dirname(sys.modules[__name__].__file__) kvm_test_dir = os.path.abspath(os.path.join(script_dir, "..")) images_dir = os.path.join(kvm_test_dir, 'images') self.deps_dir = os.path.join(kvm_test_dir, 'deps') s... | d245408f9a2fd5877bf4770afc7b97ad08147815 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/d245408f9a2fd5877bf4770afc7b97ad08147815/unattended.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
11881,
859,
628,
3330,
3152,
471,
1678,
667,
1677,
18,
3536,
2728,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
6400,
63,
972,
529,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
3536,
11881,
859,
628,
3330,
3152,
471,
1678,
667,
1677,
18,
3536,
2728,
67,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
6400,
63,
972,
529,
972... |
def xtest_multiple_sessions(self): | def test_multiple_sessions(self): nmessages = 100 nconsumers = 3 | def xtest_multiple_sessions(self): # create a single producer session1 = self.conn.createSession() topic = self.random_topic(session1) producer = session1.createProducer(topic) | 495a97b7732a060d96e59c2e67732ce9cdc8c4da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4509/495a97b7732a060d96e59c2e67732ce9cdc8c4da/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9622,
67,
16794,
12,
2890,
4672,
290,
6833,
273,
2130,
290,
17664,
414,
273,
890,
225,
468,
752,
279,
2202,
12608,
1339,
21,
273,
365,
18,
4646,
18,
2640,
2157,
1435,
3958,
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,
1842,
67,
9622,
67,
16794,
12,
2890,
4672,
290,
6833,
273,
2130,
290,
17664,
414,
273,
890,
225,
468,
752,
279,
2202,
12608,
1339,
21,
273,
365,
18,
4646,
18,
2640,
2157,
1435,
3958,
2... |
string with extraneous characters.""" | string with extraneous characters. >>> __TimeZoneKeyNameWorkaround("foo\\0xxx") 'foo' >>> __TimeZoneKeyNameWorkaround("foo") 'foo' """ | def __TimeZoneKeyNameWorkaround(name): """It may be a bug in Vista, but in standard Windows Vista install (both 32-bit and 64-bit), it appears the TimeZoneKeyName returns a string with extraneous characters.""" # remove anything after and including the first null character. value, garbage = name.split('\x00',1) return ... | d114241701ea9b334d8a8a6948b014cfddec846c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/d114241701ea9b334d8a8a6948b014cfddec846c/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
16760,
13987,
2421,
12716,
12,
529,
4672,
3536,
7193,
2026,
506,
279,
7934,
316,
776,
376,
69,
16,
1496,
316,
4529,
8202,
776,
376,
69,
3799,
261,
18237,
3847,
17,
3682,
471,
5178,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16760,
13987,
2421,
12716,
12,
529,
4672,
3536,
7193,
2026,
506,
279,
7934,
316,
776,
376,
69,
16,
1496,
316,
4529,
8202,
776,
376,
69,
3799,
261,
18237,
3847,
17,
3682,
471,
5178,... |
Set the Python locale to 'C'. This ensures that the Python env is portable across platforms and locales. | Set the Python locale to lc variable. | def setPythonLocale(): """ Set the Python locale to 'C'. This ensures that the Python env is portable across platforms and locales. """ try: locale.setlocale(locale.LC_ALL, 'C') except locale.Error: pass | d4f46d65f57606f484b564f9010dc6afc4a34fbb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/d4f46d65f57606f484b564f9010dc6afc4a34fbb/i18nmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
15774,
3916,
13332,
3536,
1000,
326,
6600,
2573,
358,
9109,
2190,
18,
3536,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
296,
39,
6134,
1335,
2573,
18,
668,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
15774,
3916,
13332,
3536,
1000,
326,
6600,
2573,
358,
9109,
2190,
18,
3536,
775,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
296,
39,
6134,
1335,
2573,
18,
668,
30... |
self.god.stub_function(tempfile, 'mkdtmp') | self.god.stub_function(tempfile, 'mkdtemp') | def test_run(self): self.god.stub_function(os, 'chdir') self.god.stub_function(tempfile, 'mkdtmp') self.god.stub_function(utils, 'open_write_close') self.god.stub_function(shutil, 'copy') self.god.stub_function(shutil, 'rmtree') control_files = [] def _my_execute_code(control_file, namespace): control_files.append(cont... | 1b768ef6bbbc140af108034d9791b1f5919caab8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/1b768ef6bbbc140af108034d9791b1f5919caab8/server_job_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2681,
12,
2890,
4672,
365,
18,
75,
369,
18,
12847,
67,
915,
12,
538,
16,
296,
343,
1214,
6134,
365,
18,
75,
369,
18,
12847,
67,
915,
12,
5814,
768,
16,
296,
24816,
72,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
12,
2890,
4672,
365,
18,
75,
369,
18,
12847,
67,
915,
12,
538,
16,
296,
343,
1214,
6134,
365,
18,
75,
369,
18,
12847,
67,
915,
12,
5814,
768,
16,
296,
24816,
72,
58... |
para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet()) | para = paragraph_stream(stream, 'p', {}, parameters) | def test_formatting(self): parameters = Param() data = '<p>TXT <i>TEXT<u>TEXT</u></i></p>' stream = XMLParser(data) stream.next() para = paragraph_stream(stream, 'p', {}, parameters.getSampleStyleSheet()) self.assertEqual(para.text, '<para>TXT <i>TEXT<u>TEXT</u></i></para>') | e3c78fc65729ed0a33412c3127995be39d356e50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/e3c78fc65729ed0a33412c3127995be39d356e50/test_rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2139,
1787,
12,
2890,
4672,
1472,
273,
3014,
1435,
501,
273,
2368,
84,
34,
29399,
411,
77,
34,
5151,
32,
89,
34,
5151,
1757,
89,
4695,
77,
4695,
84,
1870,
1407,
273,
3167,
... |
p = subprocess.Popen( (self.progs[prog], '-T'+format, tmp_name), cwd=tmp_dir, stderr=subprocess.PIPE, stdout=subprocess.PIPE, creationflags = 0x8000000) | if os.sys.platform == 'win32': p = subprocess.Popen( (self.progs[prog], '-T'+format, tmp_name), cwd=tmp_dir, stderr=subprocess.PIPE, stdout=subprocess.PIPE, creationflags = 0x8000000) else: p = subprocess.Popen( (self.progs[prog], '-T'+format, tmp_name), cwd=tmp_dir, stderr=subprocess.PIPE, stdout=subprocess.PIPE) | def create(self, prog=None, format='ps'): """Creates and returns a Postscript representation of the graph. | 2b6650a3c1e1510f1eb66ae75a9d04b131d42931 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/2b6650a3c1e1510f1eb66ae75a9d04b131d42931/pydot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
11243,
33,
7036,
16,
740,
2218,
1121,
11,
4672,
3536,
2729,
471,
1135,
279,
5616,
4263,
4335,
434,
326,
2667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
11243,
33,
7036,
16,
740,
2218,
1121,
11,
4672,
3536,
2729,
471,
1135,
279,
5616,
4263,
4335,
434,
326,
2667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
fft_opt_info = get_info('fft_opt') | djbfft_info = {} mkl_info = get_info('mkl') if mkl_info: mkl_info.setdefault('define_macros', []).append(('SCIPY_MKL_H', None)) fft_opt_info = mkl_info else: fft_opt_info = get_info('fftw3') or get_info('fftw2') \ or get_info('dfftw') djbfft_info = get_info('djbfft') | def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info config = Configuration('fftpack',parent_package, top_path) fft_opt_info = get_info('fft_opt') config.add_data_dir('tests') config.add_library('dfftpack', sources=[jo... | e6df4f9da588ebde3b652de8d07b242580d5e77b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/e6df4f9da588ebde3b652de8d07b242580d5e77b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
628,
3972,
18,
4413,
5471,
18,
4299,
67,
1376,
1930,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
628,
3972,
18,
4413,
5471,
18,
4299,
67,
1376,
1930,
33... |
def send_to(self, data, addr, flags=0): self._checkClosed() if self._sslobj: raise ValueError("send_to not allowed on instances of %s" % | def sendto(self, data, addr, flags=0): self._checkClosed() if self._sslobj: raise ValueError("sendto not allowed on instances of %s" % | def send_to(self, data, addr, flags=0): self._checkClosed() if self._sslobj: raise ValueError("send_to not allowed on instances of %s" % self.__class__) else: return socket.send_to(self, data, addr, flags) | d1f1a629022b16229ae04508689fbceb0bb482d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/d1f1a629022b16229ae04508689fbceb0bb482d7/ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
869,
12,
2890,
16,
501,
16,
3091,
16,
2943,
33,
20,
4672,
365,
6315,
1893,
7395,
1435,
309,
365,
6315,
1049,
383,
441,
30,
1002,
2068,
2932,
4661,
869,
486,
2935,
603,
3884,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
869,
12,
2890,
16,
501,
16,
3091,
16,
2943,
33,
20,
4672,
365,
6315,
1893,
7395,
1435,
309,
365,
6315,
1049,
383,
441,
30,
1002,
2068,
2932,
4661,
869,
486,
2935,
603,
3884,
434,... |
"-d", self.repository.basedir) cvsco = ExternalCommand(command=cmd) | "-d", subdir) cvsco = ExternalCommand(cwd=parentdir, command=cmd) | def _prepareWorkingDirectory(self, source_repo): """ Checkout a working copy of the target CVS. """ | c9b88a6ac8853c71215eea17bf83fa5148aaba91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5981/c9b88a6ac8853c71215eea17bf83fa5148aaba91/cvsps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
14836,
2853,
12,
2890,
16,
1084,
67,
7422,
4672,
3536,
29153,
279,
5960,
1610,
434,
326,
1018,
385,
14640,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
14836,
2853,
12,
2890,
16,
1084,
67,
7422,
4672,
3536,
29153,
279,
5960,
1610,
434,
326,
1018,
385,
14640,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
homob = len(self.moenergies[1]) - 1 | homob = len(moenergies[1]) - 1 | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = utils.openlogfile(self.filename) if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 # Used to avoid extracting the final ... | cdea9cfefada3b48d1408c0a77370d457a0edd8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/cdea9cfefada3b48d1408c0a77370d457a0edd8a/adfparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
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,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
2990,
18,
3190,
28806,
12,
2890,
18,
... |
save(gc,test_name()+'.bmp') def check_spline36(self): | save(gc,test_name()+'.bmp') def test_spline36(self): | def check_spline16(self): gc = self.generic_sun("spline16") save(gc,test_name()+'.bmp') | 1d96ab014629902ff0c3275273182d01de39da50 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/1d96ab014629902ff0c3275273182d01de39da50/image_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13106,
558,
2313,
12,
2890,
4672,
8859,
273,
365,
18,
13540,
67,
16924,
2932,
13106,
558,
2313,
7923,
1923,
12,
13241,
16,
3813,
67,
529,
1435,
6797,
18,
70,
1291,
6134,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
13106,
558,
2313,
12,
2890,
4672,
8859,
273,
365,
18,
13540,
67,
16924,
2932,
13106,
558,
2313,
7923,
1923,
12,
13241,
16,
3813,
67,
529,
1435,
6797,
18,
70,
1291,
6134,
2,
-1... |
style=wxDIALOG_MODAL|wxCAPTION) | style=wxDIALOG_MODAL|wxCAPTION|wxSYSTEM_MENU) | def __init__(self, parent, title, show_resolved): wxDialog.__init__(self, parent, -1, title, style=wxDIALOG_MODAL|wxCAPTION) self.show_resolved = show_resolved | 8bfcb893526ff90ecb1436418450327bd4196777 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8bfcb893526ff90ecb1436418450327bd4196777/wxclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
16,
2405,
67,
11792,
4672,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
2154,
33,
27226,
2565,
18683,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
16,
2405,
67,
11792,
4672,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
16,
300,
21,
16,
2077,
16,
2154,
33,
27226,
2565,
18683,
67,
... |
sys.stdout.write("%s\n" % (CFG_REFEXTRACT_XML_VERSION.encode("utf-8"),)) sys.stdout.write("%s\n" % (CFG_REFEXTRACT_XML_COLLECTION_OPEN.encode("utf-8"),)) | sys.stdout.write("%s\n" \ % CFG_REFEXTRACT_XML_VERSION.encode("utf-8")) sys.stdout.write("%s\n" \ % CFG_REFEXTRACT_XML_COLLECTION_OPEN.encode("utf-8")) | def main(): """Main function. """ global cli_opts (cli_opts, cli_args) = get_cli_options() extract_jobs = get_recids_and_filepaths(cli_args) if len(extract_jobs) == 0: ## no files provided for reference extraction - error message usage() ## Read the journal titles knowledge base, creating the search patterns and rep... | afd852f45332d11ac027b8d47ce1a922ce7f2cc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/afd852f45332d11ac027b8d47ce1a922ce7f2cc6/refextract.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
18,
3536,
2552,
4942,
67,
4952,
261,
4857,
67,
4952,
16,
4942,
67,
1968,
13,
273,
225,
336,
67,
4857,
67,
2116,
1435,
225,
2608,
67,
10088,
273,
336,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
18,
3536,
2552,
4942,
67,
4952,
261,
4857,
67,
4952,
16,
4942,
67,
1968,
13,
273,
225,
336,
67,
4857,
67,
2116,
1435,
225,
2608,
67,
10088,
273,
336,
67,
... |
resultDict = result['value'] | resultDict = result['Value'] | def rescheduleJob (self, jobID): """ Reschedule the given job to run again from scratch. Retain the already defined parameters in the parameter Attic """ # Check Verified Flag result = self.getJobAttributes( jobID, ['Status','MinorStatus','VerifiedFlag','RescheduleCounter', 'Owner','OwnerDN','OwnerGroup','DIRACSetup'] ... | 217021ab63329dc922bb37e596caca5cf0d30ec7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/217021ab63329dc922bb37e596caca5cf0d30ec7/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
400,
2847,
2278,
261,
2890,
16,
28913,
4672,
3536,
1124,
2847,
326,
864,
1719,
358,
1086,
3382,
628,
15289,
18,
17100,
530,
326,
1818,
2553,
1472,
316,
326,
1569,
6020,
335,
3536,
468,
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,
400,
2847,
2278,
261,
2890,
16,
28913,
4672,
3536,
1124,
2847,
326,
864,
1719,
358,
1086,
3382,
628,
15289,
18,
17100,
530,
326,
1818,
2553,
1472,
316,
326,
1569,
6020,
335,
3536,
468,
2... |
overlayimage=Image.new("RGBA",screensize) | overlayimage=Image.new("RGBA",screensize, (0,0,0,0)) | def createChapterMenu(screensize, screendpi, numberofitems): """Creates all the necessary menu images and files for the MythBurn menus.""" #Get the main menu node (we must only have 1) menunode=themeDOM.getElementsByTagName("submenu") if menunode.length!=1: fatalError("Cannot find submenu element in theme file") menun... | c82d8a0c4a33fc669861191621297cdbb83d3d9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13713/c82d8a0c4a33fc669861191621297cdbb83d3d9b/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
782,
2487,
4599,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
3824,
4602,
471,
1390,
364,
326,
8005,
451,
38,
321,
2137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
782,
2487,
4599,
12,
1017,
266,
773,
554,
16,
888,
266,
409,
7259,
16,
1300,
792,
3319,
4672,
3536,
2729,
777,
326,
4573,
3824,
4602,
471,
1390,
364,
326,
8005,
451,
38,
321,
2137... |
sage: filename = tmp_filename() + '.png' sage: r.png(file='"%s"'%filename) | sage: filename = tmp_filename() + '.png' sage: r.png(file='"%s"'%filename) | def plot(self, *args, **kwargs): """ The R plot function. Type r.help('plot') for much more extensive documentatin about this function. See the examples below for how to use it to write output to a FILE. | cc0ae2fe046cb29c675913dd00183435eaa1f913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/cc0ae2fe046cb29c675913dd00183435eaa1f913/r.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
1668,
270,
267,
2973,
333,
... |
models.signals.post_syncdb.send(sender=app, app=app, created_models=created_models, verbosity=verbosity, interactive=interactive) | if self._is_multidb(): models.signals.post_syncdb.send( sender=app, app=app, created_models=created_models, verbosity=verbosity, interactive=interactive, db=self.db_alias, ) else: models.signals.post_syncdb.send( sender=app, app=app, created_models=created_models, verbosity=verbosity, interactive=interactive, ) | def really_send_create_signal(self, app_label, model_names): """ Sends a post_syncdb signal for the model specified. | b908f79ad316712308ca2e4f55eba0f21eb28513 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13142/b908f79ad316712308ca2e4f55eba0f21eb28513/generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8654,
67,
4661,
67,
2640,
67,
10420,
12,
2890,
16,
595,
67,
1925,
16,
938,
67,
1973,
4672,
3536,
2479,
87,
279,
1603,
67,
8389,
1966,
4277,
364,
326,
938,
1269,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8654,
67,
4661,
67,
2640,
67,
10420,
12,
2890,
16,
595,
67,
1925,
16,
938,
67,
1973,
4672,
3536,
2479,
87,
279,
1603,
67,
8389,
1966,
4277,
364,
326,
938,
1269,
18,
2,
-100,
-100,
-1... |
self.build_temp, | self.implib_dir, | def msvc_prelink_hack (self, sources, ext, extra_args): | b593793fce7853d8788254483dfbcf5f0f21bd27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b593793fce7853d8788254483dfbcf5f0f21bd27/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
1484,
1232,
67,
76,
484,
261,
2890,
16,
5550,
16,
1110,
16,
2870,
67,
1968,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4086,
4227,
67,
1484,
1232,
67,
76,
484,
261,
2890,
16,
5550,
16,
1110,
16,
2870,
67,
1968,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif message.type != gst.MESSAGE_STATE_CHANGED: print '%s: %s:' % (message.src.get_path_string(), message.type.value_nicks[1]) if message.structure: print ' %s' % message.structure.to_string() else: print ' (no structure)' | def __message(self, bus, message): if message.type == gst.MESSAGE_EOS: self.__end(False) elif message.type == gst.MESSAGE_ERROR: err, debug = message.parse_error() self.info.error("%s" % err, debug) elif message.type != gst.MESSAGE_STATE_CHANGED: print '%s: %s:' % (message.src.get_path_string(), message.type.value_nick... | a7537478887627e35dd912191d6723e66e6aa168 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/a7537478887627e35dd912191d6723e66e6aa168/player.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2150,
12,
2890,
16,
5766,
16,
883,
4672,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
67,
41,
4618,
30,
365,
16186,
409,
12,
8381,
13,
1327,
883,
18,
723,
422,
314,
334,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2150,
12,
2890,
16,
5766,
16,
883,
4672,
309,
883,
18,
723,
422,
314,
334,
18,
8723,
67,
41,
4618,
30,
365,
16186,
409,
12,
8381,
13,
1327,
883,
18,
723,
422,
314,
334,
18,
8... | |
""" Used for unpickling. See __getstate__. EXAMPLES:: sage: state = units.__getstate__() sage: units.__setstate__(state) """ self.__name = state[0] self.__data = state[1] self.__units = {} | """ Used for unpickling. See __getstate__. EXAMPLES:: sage: state = units.__getstate__() sage: units.__setstate__(state) """ self.__name = state[0] self.__data = state[1] self.__units = {} | def __setstate__(self, state): | ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
919,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
919,
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,
... |
self.__socket.join() | while self.__socket.isAlive(): self.__socket.join(1) | def start(self, sock, force = False): logSys.info("Starting Fail2ban") # First set the mask to only allow access to owner os.umask(0077) if self.__daemon: ret = self.__createDaemon() if ret: logSys.info("Daemon started") else: logSys.error("Could not create daemon") raise ServerInitializationError("Could not create dae... | ac0ed230834a37acc4626e858af3d48720ae708f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/ac0ed230834a37acc4626e858af3d48720ae708f/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
7313,
16,
2944,
273,
1083,
4672,
613,
12712,
18,
1376,
2932,
11715,
8911,
22,
21515,
7923,
468,
5783,
444,
326,
3066,
358,
1338,
1699,
2006,
358,
3410,
1140,
18,
379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
7313,
16,
2944,
273,
1083,
4672,
613,
12712,
18,
1376,
2932,
11715,
8911,
22,
21515,
7923,
468,
5783,
444,
326,
3066,
358,
1338,
1699,
2006,
358,
3410,
1140,
18,
379,
... |
sage: a = sloane.A000261; a | sage: a = sloane.A000261;a | def list(self, n): self._eval(n) # force computation return self._b[:n] | 4e126d13403b67192b1f9a1f3f86e89eae8a6861 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4e126d13403b67192b1f9a1f3f86e89eae8a6861/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
16,
290,
4672,
365,
6315,
8622,
12,
82,
13,
282,
468,
2944,
16039,
327,
365,
6315,
70,
10531,
82,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
filter_types, callbacks, sortable) | filter_types, callbacks, sortable, sort_on) | def __init__(self, treeview, coltypes, colnames, values=[], filters=None, filter_types=None, callbacks={}, sortable=False, sort_on=-1): TableBase.__init__(self, treeview, coltypes, colnames, values, filters, filter_types, callbacks, sortable) | 7d1db798f76d5ec401ebbcb523dbe04d0a0c6c02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/7d1db798f76d5ec401ebbcb523dbe04d0a0c6c02/widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2151,
1945,
16,
645,
2352,
16,
645,
1973,
16,
924,
22850,
6487,
3415,
33,
7036,
16,
1034,
67,
2352,
33,
7036,
16,
6689,
28793,
18092,
33,
8381,
16,
1524,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2151,
1945,
16,
645,
2352,
16,
645,
1973,
16,
924,
22850,
6487,
3415,
33,
7036,
16,
1034,
67,
2352,
33,
7036,
16,
6689,
28793,
18092,
33,
8381,
16,
1524,... |
for t in self.utConvertToList(roles): role, location = t.split('||') if location == '/': location = '' loc = self.unrestrictedTraverse(location) if location != '': res = self.utListDifference( loc.get_local_roles_for_userid(name), [role]) if len(res): loc.manage_setLocalRoles(name, res) else: loc.manage_delLocalRoles(... | auth_tool = self.getAuthenticationTool() for location in self.utConvertToList(roles): auth_tool.manage_revokeUserRole(name, location, REQUEST) if REQUEST is not None: | def admin_revokeuserroles(self, name='', roles=[], REQUEST=None): """ Revoke roles from an user. """ redirect_url = REQUEST.environ.get('HTTP_REFERER', '%s/admin_userroles_html?name=%s' % (self.absolute_url(), name)) if len(roles) == 0: if REQUEST is not None: self.setSessionErrorsTrans("No role(s) selected") return RE... | 1706ce73143f30823553db8b7c6323382b3d4d51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/1706ce73143f30823553db8b7c6323382b3d4d51/CHMSite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
9083,
3056,
1355,
7774,
12,
2890,
16,
508,
2218,
2187,
4900,
22850,
6487,
12492,
33,
7036,
4672,
3536,
23863,
4900,
628,
392,
729,
18,
3536,
3136,
67,
718,
273,
12492,
18,
2868... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3981,
67,
9083,
3056,
1355,
7774,
12,
2890,
16,
508,
2218,
2187,
4900,
22850,
6487,
12492,
33,
7036,
4672,
3536,
23863,
4900,
628,
392,
729,
18,
3536,
3136,
67,
718,
273,
12492,
18,
2868... |
nextInTT = m.eval('keyTangent -in %d -q -itt %s;'%(index,attrpath)) nextInTW = m.eval('keyTangent -in %d -q -iw %s;'%(index,attrpath)) | nextInTT = cmd.keyTangent(attrpath,index=(index,),query=True,inTangentType=True) nextInTW = cmd.keyTangent(attrpath,index=(index,),query=True,inWeight=True) | def __init__( self, attrpath, keyTime=None, keyIdx=None ): #if the attrpath doesn't exist, then just create an empty key instance if not m.eval('objExists "%s";'%(attrpath,)): self.obj = None self.attr = None self.time = None self.value = None self.iw = None self.ow = None self.itt = None self.ott = None self.time = No... | 8781a673d03469676f09284ae55510ab6d71bde7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1810/8781a673d03469676f09284ae55510ab6d71bde7/keyUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
1604,
803,
16,
498,
950,
33,
7036,
16,
498,
4223,
33,
7036,
262,
30,
468,
430,
326,
1604,
803,
3302,
1404,
1005,
16,
1508,
2537,
752,
392,
1008,
498,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
16,
1604,
803,
16,
498,
950,
33,
7036,
16,
498,
4223,
33,
7036,
262,
30,
468,
430,
326,
1604,
803,
3302,
1404,
1005,
16,
1508,
2537,
752,
392,
1008,
498,
79... |
self.set_playlist() lp_new = len(self.playlist) | new_playlist = self.get_playlist() lp_new = len(new_playlist) | def get_next_media(self): # Init playlist if self.lp != 0: self.set_playlist() lp_new = len(self.playlist) #self.logger.write(self.playlist) | b5e9ba95fb119a579c4d9baa04a915d54abc16d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/b5e9ba95fb119a579c4d9baa04a915d54abc16d6/deefuzzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
5829,
12,
2890,
4672,
468,
4378,
16428,
309,
365,
18,
9953,
480,
374,
30,
394,
67,
1601,
1098,
273,
365,
18,
588,
67,
1601,
1098,
1435,
12423,
67,
2704,
273,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4285,
67,
5829,
12,
2890,
4672,
468,
4378,
16428,
309,
365,
18,
9953,
480,
374,
30,
394,
67,
1601,
1098,
273,
365,
18,
588,
67,
1601,
1098,
1435,
12423,
67,
2704,
273,
562,
... |
self.names = [] self.url = url | self.names = [] self.url = url | def __init__(self, url, verbose=VERBOSE, checker=None): self.myverbose = verbose # now unused self.checker = checker self.base = None self.links = {} | f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
880,
16,
3988,
33,
21900,
16,
12489,
33,
7036,
4672,
365,
18,
4811,
11369,
273,
3988,
468,
2037,
10197,
365,
18,
19243,
273,
12489,
365,
18,
1969,
273,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
880,
16,
3988,
33,
21900,
16,
12489,
33,
7036,
4672,
365,
18,
4811,
11369,
273,
3988,
468,
2037,
10197,
365,
18,
19243,
273,
12489,
365,
18,
1969,
273,
5... |
raise KeyError, "key out of bounds" | raise IndexError, "index out of bounds" | def __setitem__(self, key, val): if isinstance(key, types.TupleType): row = key[0] col = key[1] func = getattr(sparsetools, self.ftype+'cscsetel') M, N = self.shape if (row < 0): row = M + row if (col < 0): col = N + col if (row < 0) or (col < 0): raise IndexError, "index out of bounds" if (col >= N): self.indptr = res... | cc9a850083c66543ac7901fd68022fbe73610704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cc9a850083c66543ac7901fd68022fbe73610704/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
1244,
4672,
309,
1549,
12,
856,
16,
1953,
18,
9038,
559,
4672,
1027,
273,
498,
63,
20,
65,
645,
273,
498,
63,
21,
65,
1326,
273,
3869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
1726,
972,
12,
2890,
16,
498,
16,
1244,
4672,
309,
1549,
12,
856,
16,
1953,
18,
9038,
559,
4672,
1027,
273,
498,
63,
20,
65,
645,
273,
498,
63,
21,
65,
1326,
273,
3869,
... |
proPath = cliParams.basePath | proPath = cliParams.targetPath | def usage(): print "Usage %s <opts> <cfgFile>" % sys.argv[0] for cmdOpt in cmdOpts: print " %s %s : %s" % ( cmdOpt[0].ljust( 3 ), cmdOpt[1].ljust( 20 ), cmdOpt[2] ) sys.exit( 1 ) | 591a1a318b333008b062c7cbcccfca31c735cb42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/591a1a318b333008b062c7cbcccfca31c735cb42/dirac-install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
5357,
738,
87,
411,
4952,
34,
411,
7066,
812,
2984,
738,
2589,
18,
19485,
63,
20,
65,
364,
1797,
6179,
316,
1797,
5476,
30,
1172,
315,
738,
87,
738,
87,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
315,
5357,
738,
87,
411,
4952,
34,
411,
7066,
812,
2984,
738,
2589,
18,
19485,
63,
20,
65,
364,
1797,
6179,
316,
1797,
5476,
30,
1172,
315,
738,
87,
738,
87,
294,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.