rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
newtext = (u"{{category redirect|%(ncat)s}}" % {'ncat': newcat.titleWithoutNamespace()}) | newtext = (u"{{%(redirtemp)s|%(ncat)s}}" % {'redirtemp': template_list[0], 'ncat': newcat.titleWithoutNamespace()}) | def run(self): """Run the bot""" user = self.site.loggedInAs() redirect_magicwords = ["redirect"] other_words = self.site.redirect() if other_words: redirect_magicwords.extend(other_words) problems = [] | 473d53fa00d688d04a7757f6bb24efd346d34423 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/473d53fa00d688d04a7757f6bb24efd346d34423/category_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
729,
273,
365,
18,
4256,
18,
19385,
382,
1463,
1435,
3136,
67,
11179,
3753,
273,
8247,
7590,
11929,
1308,
67,
3753,
273,
365,
18,
4256,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
2512,
8395,
729,
273,
365,
18,
4256,
18,
19385,
382,
1463,
1435,
3136,
67,
11179,
3753,
273,
8247,
7590,
11929,
1308,
67,
3753,
273,
365,
18,
4256,... |
self.lineEdit_6 = QtGui.QLineEdit(self.groupBox_5) self.lineEdit_6.setGeometry(QtCore.QRect(180,80,291,26)) self.lineEdit_6.setObjectName("lineEdit_6") self.layoutWidget = QtGui.QWidget(self.groupBox_5) self.layoutWidget.setGeometry(QtCore.QRect(10,20,161,91)) self.layoutWidget.setObjectName("layoutWidget") self.vbo... | self.hboxlayout6.addWidget(self.pushButton_3) self.widget1 = QtGui.QWidget(self.groupBox_5) self.widget1.setGeometry(QtCore.QRect(11,21,179,49)) self.widget1.setObjectName("widget1") self.vboxlayout11 = QtGui.QVBoxLayout(self.widget1) self.vboxlayout11.setObjectName("vboxlayout11") self.radioButton = QtGui.QRadioBut... | def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" ")) | 63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
1... |
jAbout = None | jAbout = json.dumps ({'about' : about}) | def create_object (self, about=None): """Creates an object with the about tag given. If the object already exists, returns the object instead. | 635ed1bdd854767b671f02d71a9daf95339913e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/635ed1bdd854767b671f02d71a9daf95339913e5/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1612,
261,
2890,
16,
2973,
33,
7036,
4672,
3536,
2729,
392,
733,
598,
326,
2973,
1047,
864,
18,
971,
326,
733,
1818,
1704,
16,
1135,
326,
733,
3560,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1612,
261,
2890,
16,
2973,
33,
7036,
4672,
3536,
2729,
392,
733,
598,
326,
2973,
1047,
864,
18,
971,
326,
733,
1818,
1704,
16,
1135,
326,
733,
3560,
18,
2,
-100,
-100,
-100,
... |
class Bottom: """A "card-like" object to serve as the bottom for some stacks. Specifically, this is used by the deck and the suit stacks. """ def __init__(self, stack): """Constructor, taking the stack as an argument. We displays ourselves as a gray rectangle the size of a playing card, positioned at the stack... | def bind(self, sequence=None, command=None): | 20ce2dd6aa77ea628b49c0c6b820d66211a9a61d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20ce2dd6aa77ea628b49c0c6b820d66211a9a61d/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
12,
2890,
16,
3102,
33,
7036,
16,
1296,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1993,
12,
2890,
16,
3102,
33,
7036,
16,
1296,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
from unittest import main main() | unittest.main() | def test_antialias_round(self): """ fix me: How to make this test work for multiple renderers? """ antialias = True width = 3 line_cap = kiva.CAP_BUTT line_join = kiva.JOIN_ROUND gc = self.helper(antialias, width, line_cap, line_join) actual = gc.bmp_array[:,:,0] desired = array([[255, 255, 255, 255, 255, 255, 255, 25... | 693c25b8cee266233747e042e57a3325b339258d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/693c25b8cee266233747e042e57a3325b339258d/join_stroke_path_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
970,
649,
1795,
67,
2260,
12,
2890,
4672,
3536,
2917,
1791,
30,
9017,
358,
1221,
333,
1842,
1440,
364,
3229,
27577,
35,
3536,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
970,
649,
1795,
67,
2260,
12,
2890,
4672,
3536,
2917,
1791,
30,
9017,
358,
1221,
333,
1842,
1440,
364,
3229,
27577,
35,
3536,
17841,
649,
1795,
273,
1053,
1835,
273,
890,
980,
... |
if not line: return 0 | if not line: return 0 | def _check(self, lev='250'): line = self.getLine() if not line: return 0 #can't check an empty line, eh? try: code=string.atoi(line[:3]) except: raise smtpError, "Cannot convert line from SMTP: %s" % line | eb32197048759d7bd089b293a75659690b1329a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/eb32197048759d7bd089b293a75659690b1329a2/MailHost.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2890,
16,
18565,
2218,
26520,
11,
4672,
980,
273,
365,
18,
588,
1670,
1435,
309,
486,
980,
30,
327,
374,
282,
468,
4169,
1404,
866,
392,
1008,
980,
16,
20124,
35,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
12,
2890,
16,
18565,
2218,
26520,
11,
4672,
980,
273,
365,
18,
588,
1670,
1435,
309,
486,
980,
30,
327,
374,
282,
468,
4169,
1404,
866,
392,
1008,
980,
16,
20124,
35,
775,
... |
if type(args[5])==type({}): _old_args=args[5].copy() | if len(args) >= 6 and isinstance(args[5], dict): _old_args = args[5].copy() else: _old_args = None | def execute(*args, **argv): if type(args[5])==type({}): _old_args=args[5].copy() res = fnct(*args, **argv) pool = pooler.get_pool(args[0]) mod = pool.get('ir.module.record') if mod and mod.recording: if args[4] not in ('default_get','read','fields_view_get','fields_get','search','search_count','name_search','name_get',... | 6e0856080a5ad6ada3e40ef2257f691c8d77a70b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/6e0856080a5ad6ada3e40ef2257f691c8d77a70b/base_module_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
30857,
1968,
16,
2826,
19485,
4672,
309,
562,
12,
1968,
13,
1545,
1666,
471,
1549,
12,
1968,
63,
25,
6487,
2065,
4672,
389,
1673,
67,
1968,
273,
833,
63,
25,
8009,
3530,
1435,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
30857,
1968,
16,
2826,
19485,
4672,
309,
562,
12,
1968,
13,
1545,
1666,
471,
1549,
12,
1968,
63,
25,
6487,
2065,
4672,
389,
1673,
67,
1968,
273,
833,
63,
25,
8009,
3530,
1435,
46... |
opt['allowedTypes'] = [types.ListType, types.TupleType] | opt['allowedTypes'] = [list, tuple] | def addOption(self, pos=-1, **kwargs): ''' Append an entry to the parameter specification list. Dictionary entries should be specified as keyword arguments such as ``name='option'``. More specifically, you can specify parameters ``name`` (required), ``label``, ``default`` (required), ``description``, ``validator``, ``t... | 0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12966,
12,
2890,
16,
949,
29711,
21,
16,
2826,
4333,
4672,
9163,
6181,
392,
1241,
358,
326,
1569,
7490,
666,
18,
16447,
3222,
1410,
506,
1269,
487,
4932,
1775,
4123,
487,
12176,
529,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12966,
12,
2890,
16,
949,
29711,
21,
16,
2826,
4333,
4672,
9163,
6181,
392,
1241,
358,
326,
1569,
7490,
666,
18,
16447,
3222,
1410,
506,
1269,
487,
4932,
1775,
4123,
487,
12176,
529,
221... |
cnf = open("/etc/apache2/sites-available/%s" % domain, "w") | domain_info = domain.split('.') boto.log.info("base domain info is %s" % domain_info[0] cnf = open("/etc/apache2/sites-available/%s" % domain_info[0], "w") | def setup_vhost(self): domain = boto.config.get("Trac", "hostname").strip() if domain: cnf = open("/etc/apache2/sites-available/%s" % domain, "w") cnf.write("NameVirtualHost *:80\n") if boto.config.get("Trac", "SSLCertificateFile"): cnf.write("NameVirtualHost *:443\n\n") cnf.write("<VirtualHost *:80>\n") cnf.write("\tS... | 61f5b1aa8bdeea32c31fe2612fc4eb229b3e65b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/61f5b1aa8bdeea32c31fe2612fc4eb229b3e65b4/trac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
90,
2564,
12,
2890,
4672,
2461,
273,
17228,
18,
1425,
18,
588,
2932,
1609,
71,
3113,
315,
10358,
20387,
6406,
1435,
309,
2461,
30,
2461,
67,
1376,
273,
2461,
18,
4939,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
90,
2564,
12,
2890,
4672,
2461,
273,
17228,
18,
1425,
18,
588,
2932,
1609,
71,
3113,
315,
10358,
20387,
6406,
1435,
309,
2461,
30,
2461,
67,
1376,
273,
2461,
18,
4939,
2668,
... |
has_preamble = 1; i += 1 if has_preamble == 0: | has_preamble = True; break; i = j + 1 if has_equal_spacing and not has_preamble: | def revert_equalspacing_xymatrix(document): " Revert a Formula with xymatrix@! to an ERT inset " i = 0 j = 0 has_preamble = 0 while True: found = -1 i = find_token(document.body, "\\begin_inset Formula", i) if i == -1: break j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed LyX document: C... | 7ba836548ff380070ac0f0e00647b192fafd6ad3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/7ba836548ff380070ac0f0e00647b192fafd6ad3/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
14963,
84,
5330,
67,
1698,
5667,
12,
5457,
4672,
315,
868,
1097,
279,
26758,
598,
619,
2942,
1942,
36,
5,
358,
392,
4232,
56,
316,
542,
315,
277,
273,
374,
525,
273,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
14963,
84,
5330,
67,
1698,
5667,
12,
5457,
4672,
315,
868,
1097,
279,
26758,
598,
619,
2942,
1942,
36,
5,
358,
392,
4232,
56,
316,
542,
315,
277,
273,
374,
525,
273,
374,
... |
YouTubeVideoQuery.__init__(self, feed, text_query=text_query, | YouTubeVideoQuery.__init__(self, feed=feed, text_query=text_query, | def __init__(self, username=None, feed_type=None, subscription_id=None, text_query=None, params=None, categories=None): | 5ab02fd7d21e24d2c80ca948c50c64e993212ce9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/5ab02fd7d21e24d2c80ca948c50c64e993212ce9/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2718,
33,
7036,
16,
4746,
67,
723,
33,
7036,
16,
4915,
67,
350,
33,
7036,
16,
977,
67,
2271,
33,
7036,
16,
859,
33,
7036,
16,
6477,
33,
7036,
4672,
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,
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,
2718,
33,
7036,
16,
4746,
67,
723,
33,
7036,
16,
4915,
67,
350,
33,
7036,
16,
977,
67,
2271,
33,
7036,
16,
859,
33,
7036,
16,
6477,
33,
7036,
4672,
2... |
def fl_set_xyplot_fontstyle(ob, style): """ fl_set_xyplot_fontstyle(ob, style) """ _fl_set_xyplot_fontstyle(ob, style) | def fl_set_xyplot_fontstyle(obj, style): """ fl_set_xyplot_fontstyle(obj, style) """ _fl_set_xyplot_fontstyle(obj, style) | def fl_set_xyplot_fontstyle(ob, style): """ fl_set_xyplot_fontstyle(ob, style) """ _fl_set_xyplot_fontstyle(ob, style) | 8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
5776,
4060,
12,
2603,
16,
2154,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
5776,
4060,
12,
2603,
16,
2154,
13,
3536,
225,
389,
2242,
67,
542,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
1698,
4032,
67,
5776,
4060,
12,
2603,
16,
2154,
4672,
3536,
1183,
67,
542,
67,
1698,
4032,
67,
5776,
4060,
12,
2603,
16,
2154,
13,
3536,
225,
389,
2242,
67,
542,
6... |
def error(lineno, string): | def error(lineno, string, print_traceback = False): | def fixPythonIndentation(s): # get rid of blank lines first s = re.sub(r'(?m)^\s*\n', '', s); if (s != '' and re.match(r'[ \t]', s[0])): s = 'if 1:\n' + s return s | 5d3a1e8f65a741ff8f76e5cf45fa6da894c14d99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6787/5d3a1e8f65a741ff8f76e5cf45fa6da894c14d99/isa_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
15774,
24438,
12,
87,
4672,
468,
336,
10911,
434,
7052,
2362,
1122,
272,
273,
283,
18,
1717,
12,
86,
11,
3680,
81,
13,
17134,
87,
12174,
82,
2187,
10226,
272,
1769,
309,
261,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
15774,
24438,
12,
87,
4672,
468,
336,
10911,
434,
7052,
2362,
1122,
272,
273,
283,
18,
1717,
12,
86,
11,
3680,
81,
13,
17134,
87,
12174,
82,
2187,
10226,
272,
1769,
309,
261,
87,... |
logging.debug("Binding device %s to stub" % full_id) | logging.debug("Binding device %s to stub", full_id) | def request_devs(self): """ Implement setup process: unbind the PCI device and then bind it to the pci-stub driver. | 332ea972b8af08038d4d14238008c3df42ccca55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/332ea972b8af08038d4d14238008c3df42ccca55/kvm_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
67,
5206,
87,
12,
2890,
4672,
3536,
10886,
3875,
1207,
30,
17449,
326,
453,
7266,
2346,
471,
1508,
1993,
518,
358,
326,
6125,
77,
17,
12847,
3419,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
67,
5206,
87,
12,
2890,
4672,
3536,
10886,
3875,
1207,
30,
17449,
326,
453,
7266,
2346,
471,
1508,
1993,
518,
358,
326,
6125,
77,
17,
12847,
3419,
18,
2,
-100,
-100,
-100,
-100,
-... |
for badarg in badargs: | def test_compare(self): t1 = timedelta(2, 3, 4) t2 = timedelta(2, 3, 4) self.failUnless(t1 == t2) self.failUnless(t1 <= t2) self.failUnless(t1 >= t2) self.failUnless(not t1 != t2) self.failUnless(not t1 < t2) self.failUnless(not t1 > t2) self.assertEqual(cmp(t1, t2), 0) self.assertEqual(cmp(t2, t1), 0) | 678586107d2b3cc57d84448d1a82b86cae4ecd9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/678586107d2b3cc57d84448d1a82b86cae4ecd9c/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9877,
12,
2890,
4672,
268,
21,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
268,
22,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9877,
12,
2890,
4672,
268,
21,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
268,
22,
273,
10661,
12,
22,
16,
890,
16,
1059,
13,
365,
18,
6870,
984,
2656,
12,
88,
21,
422,
... | |
rdependids.append(self.getrun_id(rdepend)) self.rdepids[fnid] = rdependids | rdependids[self.getrun_id(rdepend)] = None self.rdepids[fnid] = rdependids.keys() | def add_tasks(self, fn, dataCache): """ Add tasks for a given fn to the database """ | da21185619b016117a00567e227e5e9e0aa11680 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/da21185619b016117a00567e227e5e9e0aa11680/taskdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9416,
12,
2890,
16,
2295,
16,
501,
1649,
4672,
3536,
1436,
4592,
364,
279,
864,
2295,
358,
326,
2063,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9416,
12,
2890,
16,
2295,
16,
501,
1649,
4672,
3536,
1436,
4592,
364,
279,
864,
2295,
358,
326,
2063,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
... print("caught ValueError (%s)" % (v), end=' ') | ... print("caught ValueError (%s)" % (v)) | >>> def f(): | 7bada064f17fe94764857ba822d8ce942b636aca /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7bada064f17fe94764857ba822d8ce942b636aca/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
13332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result = '' for val in self.parts: result = result + '-' + val return result | result = '-'.join(self.parts) return '-' + result def get_font_name(self): """return a representation of this xfld as a pango name""" try: font_name = self.get_pango_desc().to_string() except: font_name = "Sans 12" return font_name def parse_font_name(self, font_name): """parse a Pango font name""" try: pango_desc ... | def __str__(self): """ return a representation of this xfld as a string """ result = '' for val in self.parts: result = result + '-' + val | 6cfe0b0ebc1d4511b611dddafdec6dc059fe54b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11090/6cfe0b0ebc1d4511b611dddafdec6dc059fe54b2/pgufont.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
327,
279,
4335,
434,
333,
16128,
1236,
487,
279,
533,
3536,
563,
273,
875,
364,
1244,
316,
365,
18,
6019,
30,
563,
273,
563,
397,
4014,
397,
1244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
701,
972,
12,
2890,
4672,
3536,
327,
279,
4335,
434,
333,
16128,
1236,
487,
279,
533,
3536,
563,
273,
875,
364,
1244,
316,
365,
18,
6019,
30,
563,
273,
563,
397,
4014,
397,
1244,... |
(auth_code, auth_message) = acc_authorize_action(user_info['uid'], \ 'runbibedit') | collection = guess_primary_collection_of_a_record(bfo.recID) (auth_code, auth_message) = acc_authorize_action(user_info, 'runbibedit', collection=collection) | def format(bfo, style): """ Prints a link to BibEdit, if authorization is granted @param style the CSS style to be applied to the link. """ from invenio.config import CFG_SITE_URL from invenio.access_control_engine import acc_authorize_action out = "" user_info = bfo.user_info (auth_code, auth_message) = acc_authori... | ae4769a587349cb9828d674e40129676db2b87f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/ae4769a587349cb9828d674e40129676db2b87f6/bfe_edit_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
70,
617,
16,
2154,
4672,
3536,
3038,
87,
279,
1692,
358,
605,
495,
4666,
16,
309,
6093,
353,
17578,
225,
632,
891,
2154,
326,
6765,
2154,
358,
506,
6754,
358,
326,
1692,
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,
740,
12,
70,
617,
16,
2154,
4672,
3536,
3038,
87,
279,
1692,
358,
605,
495,
4666,
16,
309,
6093,
353,
17578,
225,
632,
891,
2154,
326,
6765,
2154,
358,
506,
6754,
358,
326,
1692,
18,
... |
def request(self, method, url, body=None, headers={}): | def request(self, method, url, body=None, headers=None): | def request(self, method, url, body=None, headers={}): self.method = method self.selector = url self.req_headers += headers.items() self.req_headers.sort() if body: self.data = body if self.raise_on_endheaders: import socket raise socket.error() | 1f1ac86994f34468624c549631d5d4eb3524d9d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/1f1ac86994f34468624c549631d5d4eb3524d9d0/test_urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
4672,
365,
18,
2039,
273,
707,
365,
18,
9663,
273,
880,
365,
18,
3658,
67,
2485,
1011,
1607,
18,
3319,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
880,
16,
1417,
33,
7036,
16,
1607,
33,
7036,
4672,
365,
18,
2039,
273,
707,
365,
18,
9663,
273,
880,
365,
18,
3658,
67,
2485,
1011,
1607,
18,
3319,
1435,
... |
('s', 'short', None, _('refresh only files already in the patch')), | ('s', 'short', None, _('refresh only files already in the patch and specified files')), | def _branchtags(self, partial, lrev): q = self.mq if not q.applied: return super(mqrepo, self)._branchtags(partial, lrev) | d4cbfaa5589338b97a263ed1c9109c7537df1c41 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/d4cbfaa5589338b97a263ed1c9109c7537df1c41/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7500,
4156,
12,
2890,
16,
4702,
16,
328,
9083,
4672,
1043,
273,
365,
18,
11636,
309,
486,
1043,
18,
438,
3110,
30,
327,
2240,
12,
11636,
7422,
16,
365,
2934,
67,
7500,
4156,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7500,
4156,
12,
2890,
16,
4702,
16,
328,
9083,
4672,
1043,
273,
365,
18,
11636,
309,
486,
1043,
18,
438,
3110,
30,
327,
2240,
12,
11636,
7422,
16,
365,
2934,
67,
7500,
4156,
12,
... |
(dir, file) = os.path.split(pathname1) | (head, tail) = os.path.split(pathname1) | def wipe_name(pathname1): """Wipe the original filename and return the new pathname""" (dir, file) = os.path.split(pathname1) # reference http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits maxlen = 226 # first, rename to a long name i = 0 while True: try: pathname2 = os.path.join(dir, __random_string(maxlen... | c5173833808990c4dc6a44eb9af5414b6cab3930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/c5173833808990c4dc6a44eb9af5414b6cab3930/FileUtilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
3151,
67,
529,
12,
28336,
21,
4672,
3536,
59,
3151,
326,
2282,
1544,
471,
327,
326,
394,
9806,
8395,
261,
1978,
16,
5798,
13,
273,
1140,
18,
803,
18,
4939,
12,
28336,
21,
13,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
3151,
67,
529,
12,
28336,
21,
4672,
3536,
59,
3151,
326,
2282,
1544,
471,
327,
326,
394,
9806,
8395,
261,
1978,
16,
5798,
13,
273,
1140,
18,
803,
18,
4939,
12,
28336,
21,
13,
46... |
origContextEngineID, | origContextEngineId, | def processResponsePdu( self, snmpEngine, messageProcessingModel, securityModel, securityName, securityLevel, contextEngineID, contextName, pduVersion, PDU, statusInformation, sendPduHandle ): # 3.3.6d ( origTransportDomain, origTransportAddress, origMessageProcessingModel, origSecurityModel, origSecurityName, origSecu... | beac2b8a85446ea9e67020370cf82edea825ab65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/beac2b8a85446ea9e67020370cf82edea825ab65/ntforg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1064,
52,
2544,
12,
365,
16,
15366,
4410,
16,
883,
7798,
1488,
16,
4373,
1488,
16,
4373,
461,
16,
4373,
2355,
16,
819,
4410,
734,
16,
819,
461,
16,
21160,
1444,
16,
453,
16214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
52,
2544,
12,
365,
16,
15366,
4410,
16,
883,
7798,
1488,
16,
4373,
1488,
16,
4373,
461,
16,
4373,
2355,
16,
819,
4410,
734,
16,
819,
461,
16,
21160,
1444,
16,
453,
16214,
... |
msg = self.idb.set_break(filename, lineno) if msg: text.bell() return | self.idb.set_break(filename, lineno) | def set_breakpoint_here(self, filename, lineno): msg = self.idb.set_break(filename, lineno) if msg: text.bell() return | 73be87c61187c12004e4153bc5612cf82a20e2eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/73be87c61187c12004e4153bc5612cf82a20e2eb/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
8820,
1153,
67,
14852,
12,
2890,
16,
1544,
16,
7586,
4672,
1234,
273,
365,
18,
350,
70,
18,
542,
67,
8820,
12,
3459,
16,
7586,
13,
309,
1234,
30,
977,
18,
70,
1165,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
8820,
1153,
67,
14852,
12,
2890,
16,
1544,
16,
7586,
4672,
1234,
273,
365,
18,
350,
70,
18,
542,
67,
8820,
12,
3459,
16,
7586,
13,
309,
1234,
30,
977,
18,
70,
1165,
1435,
... |
return """<a href="public">public</a><br> <a href="secure">secure</a><br> <a href="authorized">authorized</a>""" | return ("<a href=\"public\">public</a><br>" "<a href=\"secure\">secure</a><br>" "<a href=\"authorized\">authorized</a>") | def index(self): return """<a href="public">public</a><br> <a href="secure">secure</a><br> <a href="authorized">authorized</a>""" | f9bce60c179f61f101f7506d8da5f1c062b72d26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6393/f9bce60c179f61f101f7506d8da5f1c062b72d26/authn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
327,
3536,
32,
69,
3897,
1546,
482,
6441,
482,
1757,
69,
4438,
2848,
34,
411,
69,
3897,
1546,
8869,
6441,
8869,
1757,
69,
4438,
2848,
34,
411,
69,
3897,
1546,
8434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
327,
3536,
32,
69,
3897,
1546,
482,
6441,
482,
1757,
69,
4438,
2848,
34,
411,
69,
3897,
1546,
8869,
6441,
8869,
1757,
69,
4438,
2848,
34,
411,
69,
3897,
1546,
8434... |
(transName, description, longDescription, | ( transName, description, longDescription, | def addTransformation(self, transName, description, longDescription,authorDN, authorGroup, transType, plugin,agentType,fileMask, transformationGroup = 'General', groupSize = 1, inheritedFrom = 0, body = '', maxTasks = 0, eventsPerTask = 0, addFiles = True, con... | 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,
527,
15292,
12,
2890,
16,
906,
461,
16,
2477,
16,
1525,
3291,
16,
4161,
8609,
16,
2869,
1114,
16,
906,
559,
16,
1909,
16,
5629,
559,
16,
768,
5796,
16,
8620,
1114,
273,
296,
12580,
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,
527,
15292,
12,
2890,
16,
906,
461,
16,
2477,
16,
1525,
3291,
16,
4161,
8609,
16,
2869,
1114,
16,
906,
559,
16,
1909,
16,
5629,
559,
16,
768,
5796,
16,
8620,
1114,
273,
296,
12580,
2... |
count += 1 | self.staMagCount += 1 | def updateNetworkMag(self): count = 0 self.netMag = 0 for i in range(len(self.streams)): if self.dicts[i]['MagUse'] and self.dicts[i].has_key('Mag'): count += 1 self.netMag += self.dicts[i]['Mag'] if count == 0: self.netMag = np.NaN else: self.netMag /= count self.netMagLabel = '\n\n\n\n %.2f' % self.netMag try: self.... | 74f68db5096834aa7cf8785b28082e2c08e155f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/74f68db5096834aa7cf8785b28082e2c08e155f2/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3906,
11372,
12,
2890,
4672,
1056,
273,
374,
365,
18,
2758,
11372,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
365,
18,
16287,
63,
77,
23962,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3906,
11372,
12,
2890,
4672,
1056,
273,
374,
365,
18,
2758,
11372,
273,
374,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
365,
18,
16287,
63,
77,
23962,
113... |
if not self.getViewed(): return 'new' elif self.downloader is None or not self.downloader.isFinished(): | if self.downloader is None or not self.downloader.isFinished(): if not self.getViewed(): return 'new' | def getChannelCategory(self): """Get the category to use for the channel template. This method is similar to getState(), but has some subtle differences. getState() is used by the download-item template and is usually more useful to determine what's actually happening with an item. getChannelCategory() is used by by t... | 6521fe722ed49d559c1122d00a44a7b370a72ae2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/6521fe722ed49d559c1122d00a44a7b370a72ae2/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16454,
4457,
12,
2890,
4672,
3536,
967,
326,
3150,
358,
999,
364,
326,
1904,
1542,
18,
225,
1220,
707,
353,
7281,
358,
8997,
9334,
1496,
711,
2690,
720,
5929,
16440,
18,
8997,
1435,
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,
16454,
4457,
12,
2890,
4672,
3536,
967,
326,
3150,
358,
999,
364,
326,
1904,
1542,
18,
225,
1220,
707,
353,
7281,
358,
8997,
9334,
1496,
711,
2690,
720,
5929,
16440,
18,
8997,
1435,
353,... |
browser_error = False if len(browser.strip()) > 0: | if browser and browser.strip(): browsers = [browser.strip()] else: browsers = ["gnome-open", "x-www-browser", "exo-open", "kfmclient openURL", "firefox", "mozilla", "opera"] for browser in browsers: | def browser_load(docslink, browser, window): browser_error = False if len(browser.strip()) > 0: try: subprocess.Popen([browser, docslink]) except: browser_error = True else: try: subprocess.Popen(["gnome-open", docslink]) except: try: subprocess.Popen(["exo-open", docslink]) except: try: subprocess.Popen(["kfmclient", ... | c27b1c22f43889d5ad8fcd938fae2bc38f0a4322 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/c27b1c22f43889d5ad8fcd938fae2bc38f0a4322/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4748,
67,
945,
12,
8532,
1232,
16,
4748,
16,
2742,
4672,
309,
4748,
471,
4748,
18,
6406,
13332,
14993,
273,
306,
11213,
18,
6406,
1435,
65,
469,
30,
14993,
273,
8247,
1600,
1742,
17,
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,
4748,
67,
945,
12,
8532,
1232,
16,
4748,
16,
2742,
4672,
309,
4748,
471,
4748,
18,
6406,
13332,
14993,
273,
306,
11213,
18,
6406,
1435,
65,
469,
30,
14993,
273,
8247,
1600,
1742,
17,
3... |
line = self._chomp(string.rstrip(line[5:])) cols = string.split(line, ';') | line = self._chomp(line[5:].rstrip()) cols = line.split(';') | def organism_classification(self, line): line = self._chomp(string.rstrip(line[5:])) cols = string.split(line, ';') for col in cols: self.data.organism_classification.append(string.lstrip(col)) | ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15501,
6228,
67,
20251,
12,
2890,
16,
980,
4672,
980,
273,
365,
6315,
343,
20667,
12,
1369,
63,
25,
30,
8009,
86,
6406,
10756,
5347,
273,
980,
18,
4939,
2668,
4359,
13,
364,
645,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15501,
6228,
67,
20251,
12,
2890,
16,
980,
4672,
980,
273,
365,
6315,
343,
20667,
12,
1369,
63,
25,
30,
8009,
86,
6406,
10756,
5347,
273,
980,
18,
4939,
2668,
4359,
13,
364,
645,
316,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 350) else quickfix.IntField.__init__(self, 350, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
3361,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
890,
3361,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
... |
faces = shell.faces style_face = config.options.shell.face for face in ('times', 'mono', 'helv', 'other'): faces[face] = style_face faces['lnsize'] = int(config.options.shell.size) - 2 faces['size'] = int(config.options.shell.size) self.setStyles(faces) | def __init__(self, main_win, parent, id, message): | 0201e4439e1a81e305f7de5459adb84cd2880135 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/0201e4439e1a81e305f7de5459adb84cd2880135/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2774,
67,
8082,
16,
982,
16,
612,
16,
883,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2774,
67,
8082,
16,
982,
16,
612,
16,
883,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
ret = os.system('%s%ssh -e %s' % (lang_environment, maybe_fakeroot, runfile)) | ret = os.system('%s%ssh -e "%s"' % (lang_environment, maybe_fakeroot, runfile)) | def exec_func_shell(func, d): """Execute a shell BB 'function' Returns true if execution was successful. For this, it creates a bash shell script in the tmp dectory, writes the local data into it and finally executes. The output of the shell will end in a log file and stdout. Note on directory behavior. The 'dirs' v... | 119b1d5b090153bee61d96f1c0c371ed04a53cfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8123/119b1d5b090153bee61d96f1c0c371ed04a53cfa/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
644,
67,
10304,
12,
644,
16,
302,
4672,
3536,
5289,
279,
5972,
21752,
296,
915,
11,
2860,
638,
309,
4588,
1703,
6873,
18,
225,
2457,
333,
16,
518,
3414,
279,
24817,
5972,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
644,
67,
10304,
12,
644,
16,
302,
4672,
3536,
5289,
279,
5972,
21752,
296,
915,
11,
2860,
638,
309,
4588,
1703,
6873,
18,
225,
2457,
333,
16,
518,
3414,
279,
24817,
5972,
272... |
'join w.plate as p ' \ 'join fetch a_links.child as a ' \ 'join fetch a.file as o_file ' \ 'join fetch o_file.format ' \ | 'join fetch w.plate as p ' \ 'left outer join fetch img.annotationLinks as ia_links ' \ 'left outer join fetch ia_links.child as ia ' \ 'left outer join fetch ia.file as i_o_file ' \ 'left outer join fetch i_o_file.format ' \ 'left outer join fetch p.annotationLinks as pa_links ' \ 'left outer join fetch pa_links.child... | def find_images_for_plate(self, plate_id): """ Retrieves all the images associated with a given plate. Fetched are the Image's WellSample, the WellSample's Well, the annotation stack associated with the Image and each annotation's linked original file. """ # The query that follows is doublely linked: # * Image --> Wel... | c2875f08f9c0a7a72bd09d2cdf7315ef90a84053 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/c2875f08f9c0a7a72bd09d2cdf7315ef90a84053/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
7369,
67,
1884,
67,
994,
12,
2890,
16,
21972,
67,
350,
4672,
3536,
20507,
777,
326,
4602,
3627,
598,
279,
864,
21972,
18,
8065,
329,
854,
326,
3421,
1807,
678,
1165,
8504,
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,
1104,
67,
7369,
67,
1884,
67,
994,
12,
2890,
16,
21972,
67,
350,
4672,
3536,
20507,
777,
326,
4602,
3627,
598,
279,
864,
21972,
18,
8065,
329,
854,
326,
3421,
1807,
678,
1165,
8504,
16... |
dest_file = "%s/%s" % (localPath,fileName) else: dest_file = "%s/%s" % (os.getcwd(),fileName) res = self.__getFile(src_url,dest_file) | dest_file = "%s/%s" % ( localPath, fileName ) else: dest_file = "%s/%s" % ( os.getcwd(), fileName ) res = self.__getFile( src_url, dest_file ) | def getFile(self,path,localPath=False): """ Get a local copy in the current directory of a physical file specified by its path """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value'] | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
12,
2890,
16,
803,
16,
3729,
743,
33,
8381,
4672,
3536,
968,
279,
1191,
1610,
316,
326,
783,
1867,
434,
279,
11640,
585,
1269,
635,
2097,
589,
3536,
400,
273,
365,
18,
1893,
1379... |
self.assertEqual(c.build_directory(None), 'toplevel') | Returns True if the build was successful and up-to-date.""" flag = self._FLAGS_FROM_CONFIGURATIONS[configuration] exit_code = self._executive.run_command([ self._script_path("build-dumprendertree"), flag], return_exit_code=True) if exit_code != 0: _log.error("Failed to build DumpRenderTree") return False return True | def test_build_directory_toplevel(self): e = MockExecutive(output="toplevel") c = config.Config(e) self.assertEqual(c.build_directory(None), 'toplevel') | 25feeb24a1118a6fb28d036358303ac956f0d038 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/25feeb24a1118a6fb28d036358303ac956f0d038/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3510,
67,
5149,
67,
3669,
2815,
12,
2890,
4672,
425,
273,
7867,
1905,
322,
688,
12,
2844,
1546,
3669,
2815,
7923,
276,
273,
642,
18,
809,
12,
73,
13,
365,
18,
11231,
5812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3510,
67,
5149,
67,
3669,
2815,
12,
2890,
4672,
425,
273,
7867,
1905,
322,
688,
12,
2844,
1546,
3669,
2815,
7923,
276,
273,
642,
18,
809,
12,
73,
13,
365,
18,
11231,
5812,
... |
print "box_shadow", w, h, bgcolor | if DEBUG: print "box_shadow", w, h, bgcolor | def box_shadow(self, w, h, bgcolor): print "box_shadow", w, h, bgcolor if bgcolor: fill_color = self.pdf.fill_color self.pdf.set_fill_color(*bgcolor) self.pdf.rect(self.pdf.x, self.pdf.y, w, h, 'F') self.pdf.fill_color = fill_color | 996f6e35601b75cac6b1dc86d1139ccdc5003c81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8794/996f6e35601b75cac6b1dc86d1139ccdc5003c81/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3919,
67,
19119,
12,
2890,
16,
341,
16,
366,
16,
31509,
4672,
309,
6369,
30,
1172,
315,
2147,
67,
19119,
3113,
341,
16,
366,
16,
31509,
309,
31509,
30,
3636,
67,
3266,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3919,
67,
19119,
12,
2890,
16,
341,
16,
366,
16,
31509,
4672,
309,
6369,
30,
1172,
315,
2147,
67,
19119,
3113,
341,
16,
366,
16,
31509,
309,
31509,
30,
3636,
67,
3266,
273,
365,
18,
... |
srw = codecs.StreamReaderWriter(file, info.streamreader, info.streamwriter, errors) | if isinstance(info, tuple): reader = info[2] writer = info[3] else: reader = info.streamreader writer = info.streamwriter srw = codecs.StreamReaderWriter(file, reader, writer, errors) | def _unicode_open(file, encoding, errors='strict'): info = codecs.lookup(encoding) srw = codecs.StreamReaderWriter(file, info.streamreader, info.streamwriter, errors) srw.encoding = encoding return srw | e2bf4f3a03aa581aa70841f1cdc4d484c9e2ee46 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12018/e2bf4f3a03aa581aa70841f1cdc4d484c9e2ee46/test_input_output.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9124,
67,
3190,
12,
768,
16,
2688,
16,
1334,
2218,
13948,
11,
4672,
1123,
273,
17437,
18,
8664,
12,
5999,
13,
309,
1549,
12,
1376,
16,
3193,
4672,
2949,
273,
1123,
63,
22,
65,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9124,
67,
3190,
12,
768,
16,
2688,
16,
1334,
2218,
13948,
11,
4672,
1123,
273,
17437,
18,
8664,
12,
5999,
13,
309,
1549,
12,
1376,
16,
3193,
4672,
2949,
273,
1123,
63,
22,
65,
2... |
def _handle_long_word(self, chunks, cur_line, cur_len, width): | def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): | def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int) | 813c5d3fb234531a2f4549fcc4952768bddda0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/813c5d3fb234531a2f4549fcc4952768bddda0f8/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
9553,
67,
14691,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
9553,
67,
14691,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
648... |
summary = 'zip (or unzip) individual packages' | summary = 'Zip individual packages' | def run(self, options, args): if args: filename = args[0] else: filename = '-' requirement = options.requirement find_links = options.find_links or [] ## FIXME: Obviously this should be settable: find_tags = False | dd921d228d2cc07900fd9807d95ffdae712d020e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12982/dd921d228d2cc07900fd9807d95ffdae712d020e/pip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
702,
16,
833,
4672,
309,
833,
30,
1544,
273,
833,
63,
20,
65,
469,
30,
1544,
273,
4014,
12405,
273,
702,
18,
30848,
1104,
67,
7135,
273,
702,
18,
4720,
67,
7135,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
702,
16,
833,
4672,
309,
833,
30,
1544,
273,
833,
63,
20,
65,
469,
30,
1544,
273,
4014,
12405,
273,
702,
18,
30848,
1104,
67,
7135,
273,
702,
18,
4720,
67,
7135,
... |
raise support.TestFailed( | raise test_support.TestFailed( | def _recvfrom_into(): b = bytearray("\0"*100) count, addr = s.recvfrom_into(b) return b[:count] | 36732be0d68d55c81f96170a43792dd3e9e39e99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/36732be0d68d55c81f96170a43792dd3e9e39e99/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18334,
2080,
67,
18591,
13332,
324,
273,
14552,
31458,
20,
6,
14,
6625,
13,
1056,
16,
3091,
273,
272,
18,
18334,
2080,
67,
18591,
12,
70,
13,
327,
324,
10531,
1883,
65,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18334,
2080,
67,
18591,
13332,
324,
273,
14552,
31458,
20,
6,
14,
6625,
13,
1056,
16,
3091,
273,
272,
18,
18334,
2080,
67,
18591,
12,
70,
13,
327,
324,
10531,
1883,
65,
2,
-100,
... |
return mask_and_ovr(4) | return mask_and_ovr(4, 'NEAREST') def mask_15_avg(): return mask_and_ovr(1, 'AVERAGE') def mask_16_avg(): return mask_and_ovr(2, 'AVERAGE') def mask_17_avg(): return mask_and_ovr(3, 'AVERAGE') def mask_18_avg(): return mask_and_ovr(4, 'AVERAGE') | def mask_18(): return mask_and_ovr(4) | 2290f5053a6335229804dd7016bad15e629e2315 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/2290f5053a6335229804dd7016bad15e629e2315/mask.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3066,
67,
2643,
13332,
327,
3066,
67,
464,
67,
1527,
86,
12,
24,
13,
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,
... | [
1,
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,
3066,
67,
2643,
13332,
327,
3066,
67,
464,
67,
1527,
86,
12,
24,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
''' input [0..inf] ???COUPLING??? ''' ''' Duration [1] ''' durationElement=ET.SubElement(simElement,'Duration') ''' duration element has an optional start date and an option end date ''' ''' output [0..inf] ''' ''' restart [0..inf] ''' ''' spinup [0..1] ''' | def add_simulation(self,simClass,rootElement): | 2937a8963dfa97f0c5ac52221d0e5b3e2f073c4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7019/2937a8963dfa97f0c5ac52221d0e5b3e2f073c4f/Translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9812,
6234,
12,
2890,
16,
9812,
797,
16,
3085,
1046,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9812,
6234,
12,
2890,
16,
9812,
797,
16,
3085,
1046,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
if newTagSusp > susp * ef: | secondGram = ngram[1:] secondGram.append(('t', tag)) susp2 = sequenceRatio(bigramCache, wordsOk, tagsOk, wordsErr, tagsErr, secondGram) if newTagSusp > susp * ef and newTagSusp > susp2 * ef: | def expandCorpus(filename, wordsOk, tagsOk, wordsErr, tagsErr, sentFile, formFile, debug): corpusFile = open(filename, 'r') bigramCache = dict() for line in corpusFile: wordTags = extractWordTags(line) for i in range(len(wordTags)): ngram = [('w',wordTags[i][0])] okIdx = wordsOk.get(wordTags[i][0], set()) errIdx = wo... | c65169988eb2ce2db218f1c3dd84b030696108f0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13747/c65169988eb2ce2db218f1c3dd84b030696108f0/extend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
6217,
9861,
12,
3459,
16,
4511,
8809,
16,
2342,
8809,
16,
4511,
2524,
16,
2342,
2524,
16,
3271,
812,
16,
646,
812,
16,
1198,
4672,
13825,
812,
273,
1696,
12,
3459,
16,
296,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
6217,
9861,
12,
3459,
16,
4511,
8809,
16,
2342,
8809,
16,
4511,
2524,
16,
2342,
2524,
16,
3271,
812,
16,
646,
812,
16,
1198,
4672,
13825,
812,
273,
1696,
12,
3459,
16,
296,
86,
... |
loopnum = "-1" if ps.exists("loopnum"): loopnum = ps.get("loopnum") elif ps.exists("LOOPNUM"): | if ps.exists("LOOPNUM"): | def _insertRecord(self, dbTable, ps): | dcff16115fd4b90da4b2aad9583613f6ddb7920b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6552/dcff16115fd4b90da4b2aad9583613f6ddb7920b/DatabaseLogger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
2115,
12,
2890,
16,
1319,
1388,
16,
4250,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise EaError.UserNotFound | raise EaError.AccountNotFound | def fetch(): try: self.user = User.objects.get(login=user) except User.DoesNotExist: raise EaError.UserNotFound | 98e9df291a812180e2c2c3c06144712f79a49dd6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10390/98e9df291a812180e2c2c3c06144712f79a49dd6/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
13332,
775,
30,
365,
18,
1355,
273,
2177,
18,
6911,
18,
588,
12,
5819,
33,
1355,
13,
1335,
2177,
18,
15264,
30,
1002,
512,
69,
668,
18,
1299,
2768,
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,
2158,
13332,
775,
30,
365,
18,
1355,
273,
2177,
18,
6911,
18,
588,
12,
5819,
33,
1355,
13,
1335,
2177,
18,
15264,
30,
1002,
512,
69,
668,
18,
1299,
2768,
2,
-100,
-100,
-100,
-100,
-... |
def moo(self, x): return 1 | def foo(self, x): return 1 | def moo(self, x): # shouldn't return return 1 | bc2a6bc63ffbf542d1006609546d15062e111dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/bc2a6bc63ffbf542d1006609546d15062e111dcf/prop_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
5161,
12,
2890,
16,
619,
4672,
468,
12044,
1404,
327,
327,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
5161,
12,
2890,
16,
619,
4672,
468,
12044,
1404,
327,
327,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) | if not isinstance(im_gens, sage.structure.all.Sequence): if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) | def __init__(self, parent, im_gens, check=True): RingHomomorphism.__init__(self, parent) if not isinstance(im_gens, (tuple, list)): im_gens = [im_gens] im_gens = sage.structure.all.Sequence(im_gens, parent.codomain()) if len(im_gens) != parent.domain().ngens(): raise ValueError, "number of images must equal number of g... | 5bc27d39f88f16775e323987c551bd13bdeb85a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5bc27d39f88f16775e323987c551bd13bdeb85a7/morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
709,
67,
23730,
16,
866,
33,
5510,
4672,
25463,
44,
362,
362,
7657,
6228,
16186,
2738,
972,
12,
2890,
16,
982,
13,
309,
486,
1549,
12,
381,
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,
709,
67,
23730,
16,
866,
33,
5510,
4672,
25463,
44,
362,
362,
7657,
6228,
16186,
2738,
972,
12,
2890,
16,
982,
13,
309,
486,
1549,
12,
381,
67... |
... ctx.prec() += 2 | ... ctx.prec += 2 | def sin(x): with localcontext(ExtendedContext): # Rest of sin calculation algorithm # uses the Extended Context from the # General Decimal Arithmetic Specification return +s # Convert result to normal context | 495df4716fce4156c1eb110f9342297164eecbb6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/495df4716fce4156c1eb110f9342297164eecbb6/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5367,
12,
92,
4672,
598,
1191,
2472,
12,
11456,
1042,
4672,
468,
6320,
434,
5367,
11096,
4886,
468,
4692,
326,
14094,
1772,
628,
326,
468,
9544,
11322,
27443,
20000,
327,
397,
87,
468,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5367,
12,
92,
4672,
598,
1191,
2472,
12,
11456,
1042,
4672,
468,
6320,
434,
5367,
11096,
4886,
468,
4692,
326,
14094,
1772,
628,
326,
468,
9544,
11322,
27443,
20000,
327,
397,
87,
468,
4... |
self.state = self.states["doctypeSystemIdentifierSinglequoted"] | self.state = self.states["doctypeSystemIdentifierSingleQuoted"] | def beforeDoctypeSystemIdentifierState(self): if data in spaceCharacters: pass elif data == "\"": self.currentToken["systemId"] = "" self.state = self.states["doctypeSystemIdentifierDoubleQuoted"] elif data == "'": self.currentToken["systemId"] = "" self.state = self.states["doctypeSystemIdentifierSinglequoted"] elif d... | 5bd72089850cce22491da8cf7725545ac6c2e764 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/5bd72089850cce22491da8cf7725545ac6c2e764/tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
3244,
12387,
3163,
3004,
1119,
12,
2890,
4672,
309,
501,
316,
3476,
11600,
30,
1342,
1327,
501,
422,
11143,
30,
365,
18,
2972,
1345,
9614,
4299,
548,
11929,
273,
1408,
365,
18,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1865,
3244,
12387,
3163,
3004,
1119,
12,
2890,
4672,
309,
501,
316,
3476,
11600,
30,
1342,
1327,
501,
422,
11143,
30,
365,
18,
2972,
1345,
9614,
4299,
548,
11929,
273,
1408,
365,
18,
201... |
except (IndexError, ValueError, OverflowError): pass | except (AttributeError, IndexError, ValueError, OverflowError): pass | def guess_delivery_time(message): """Return a guess at the delivery date of an rfc822 message""" assert(message) # try to guess the delivery date from various headers # get more desparate as we go through the array for header in ('Delivery-date', 'Date', 'Resent-Date'): try: date = message.getdate_tz(header) if date: t... | 8e5c8700572d74629eb9edb1090a83c0d316d633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1746/8e5c8700572d74629eb9edb1090a83c0d316d633/archivemail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
15703,
67,
957,
12,
2150,
4672,
3536,
990,
279,
7274,
622,
326,
7912,
1509,
434,
392,
16590,
24532,
883,
8395,
1815,
12,
2150,
13,
468,
775,
358,
7274,
326,
7912,
1509,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7274,
67,
15703,
67,
957,
12,
2150,
4672,
3536,
990,
279,
7274,
622,
326,
7912,
1509,
434,
392,
16590,
24532,
883,
8395,
1815,
12,
2150,
13,
468,
775,
358,
7274,
326,
7912,
1509,
628,
... |
file = open(filename, 'r') body = file.read() file.close() | with open(filename, 'rb') as file: body = file.read() | def upload(self, filename): ''' Effettua l'upload del file. Restituisce la risposta ricevuta dal repository o None se c'è stato un problema. ''' response = None #logger.debug('Invio del file %s' % filename) try: file = open(filename, 'r') body = file.read() file.close() url = urlparse(self._url) response = post_multipa... | 81f9a24c0c6ec8d715875fd1d62700fc024e3755 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4588/81f9a24c0c6ec8d715875fd1d62700fc024e3755/deliverer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
12,
2890,
16,
1544,
4672,
9163,
512,
1403,
278,
88,
11886,
328,
11,
6327,
1464,
585,
18,
6320,
305,
89,
291,
311,
7125,
436,
291,
2767,
69,
436,
1812,
90,
322,
69,
302,
287,
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,
3617,
12,
2890,
16,
1544,
4672,
9163,
512,
1403,
278,
88,
11886,
328,
11,
6327,
1464,
585,
18,
6320,
305,
89,
291,
311,
7125,
436,
291,
2767,
69,
436,
1812,
90,
322,
69,
302,
287,
33... |
rval, rshapes = get_constant_value(val) return rval, rshapes + [shape] | return get_constant_value(val) | def get_constant_value(v): """return the constant scalar(0-D) value underlying variable `v` If v is the output of dimshuffles, fills, this function digs through them. If `v` is not some view of constant data, then raise a TypeError. :note: There may be another function similar to this one in the code, but I'm not su... | 371e781f6e5777dbfd4dc6aad472c3a83f4cd760 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/371e781f6e5777dbfd4dc6aad472c3a83f4cd760/opt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14384,
67,
1132,
12,
90,
4672,
3536,
2463,
326,
5381,
4981,
12,
20,
17,
40,
13,
460,
6808,
2190,
1375,
90,
68,
225,
971,
331,
353,
326,
876,
434,
2464,
674,
3809,
1040,
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,
336,
67,
14384,
67,
1132,
12,
90,
4672,
3536,
2463,
326,
5381,
4981,
12,
20,
17,
40,
13,
460,
6808,
2190,
1375,
90,
68,
225,
971,
331,
353,
326,
876,
434,
2464,
674,
3809,
1040,
16,
... |
cur_line.append(chunks.pop(0)) | cur_line.append(chunks.pop()) | def _wrap_chunks(self, chunks): """_wrap_chunks(chunks : [string]) -> [string] | 8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8bfa8935ea2fc645e5f166f180c2ba18cf11ade3/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
14691,
12,
2890,
16,
6055,
4672,
3536,
67,
4113,
67,
14691,
12,
14691,
294,
306,
1080,
5717,
317,
306,
1080,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
4113,
67,
14691,
12,
2890,
16,
6055,
4672,
3536,
67,
4113,
67,
14691,
12,
14691,
294,
306,
1080,
5717,
317,
306,
1080,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if account.stun_servers: account.stun_servers = tuple((gethostbyname(stun_host), stun_port) for stun_host, stun_port in account.stun_servers) | if account.ice.stun_servers: account.ice.stun_servers = tuple((gethostbyname(stun_host), stun_port) for stun_host, stun_port in account.ice.stun_servers) | def do_invite(account_id, config_file, target_uri, disable_sound, trace_sip, trace_pjsip, trace_notifications, auto_answer, auto_hangup, no_input, fork): global user_quit, lock, queue # deamonize if needed if fork: try: print "Forking into background..." process.daemonize("sip_audio_session.pid") except ProcessError,... | 639ddf220240e7114177d53310ec00303387d27a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/639ddf220240e7114177d53310ec00303387d27a/sip_audio_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
27154,
12,
4631,
67,
350,
16,
642,
67,
768,
16,
1018,
67,
1650,
16,
4056,
67,
29671,
16,
2606,
67,
28477,
16,
2606,
67,
84,
2924,
625,
16,
2606,
67,
15286,
16,
3656,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
27154,
12,
4631,
67,
350,
16,
642,
67,
768,
16,
1018,
67,
1650,
16,
4056,
67,
29671,
16,
2606,
67,
28477,
16,
2606,
67,
84,
2924,
625,
16,
2606,
67,
15286,
16,
3656,
67,
1... |
operations.append((OP_ERASE, order2[i])) | operations.append((self.OP_ERASE, order2[i])) | def resolve(self): OP_UPDATE = "update" OP_ERASE = "erase" instlist = RpmList() | a0b61c946a6b6762881827e19fdc8d2d78786ad8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/a0b61c946a6b6762881827e19fdc8d2d78786ad8/resolver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
4672,
7247,
67,
8217,
273,
315,
2725,
6,
7247,
67,
654,
4429,
273,
315,
264,
448,
6,
225,
1804,
1098,
273,
534,
7755,
682,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
4672,
7247,
67,
8217,
273,
315,
2725,
6,
7247,
67,
654,
4429,
273,
315,
264,
448,
6,
225,
1804,
1098,
273,
534,
7755,
682,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logging.info(' Found programme: %s', soup.playlist.title.string) | def parse_playlist(self, xml): #logging.info('Parsing playlist XML... %s', xml) #xml.replace('<summary/>', '<summary></summary>') #xml = fix_selfclosing(xml) soup = BeautifulStoneSoup(xml, selfClosingTags=self_closing_tags) self.meta = {} self._items = [] self._related = [] | e9308323abd7d76cee674599e87bde273bc1afa0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11070/e9308323abd7d76cee674599e87bde273bc1afa0/iplayer2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1601,
1098,
12,
2890,
16,
2025,
4672,
468,
11167,
18,
1376,
2668,
13963,
16428,
3167,
2777,
738,
87,
2187,
2025,
13,
468,
2902,
18,
2079,
2668,
32,
7687,
18280,
16,
2368,
7687,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1601,
1098,
12,
2890,
16,
2025,
4672,
468,
11167,
18,
1376,
2668,
13963,
16428,
3167,
2777,
738,
87,
2187,
2025,
13,
468,
2902,
18,
2079,
2668,
32,
7687,
18280,
16,
2368,
7687,... | |
write_prop(name, strftime('%Y%m%d', value), params) | write_prop(name, format_date(value, '%Y%m%d', req.tz), params) | def write_date(name, value, params={}): params['VALUE'] = 'DATE' write_prop(name, strftime('%Y%m%d', value), params) | f159bfc51db5062ea356b1818ee140cdc54983b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/f159bfc51db5062ea356b1818ee140cdc54983b0/roadmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
712,
12,
529,
16,
460,
16,
859,
12938,
4672,
859,
3292,
4051,
3546,
273,
296,
4594,
11,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
72,
2187,
460,
3631,
859,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
67,
712,
12,
529,
16,
460,
16,
859,
12938,
4672,
859,
3292,
4051,
3546,
273,
296,
4594,
11,
1045,
67,
5986,
12,
529,
16,
10405,
29909,
61,
9,
81,
9,
72,
2187,
460,
3631,
859,
... |
def api(self, action, tail=None, use_host=True): | def api(self, action, tail=None, prefix=None, use_host=True): | def api(self, action, tail=None, use_host=True): tail = tail or '' base = self.base if not use_host: base = '' result = urlparse.urljoin(base, pjoin(self._api[action], tail)) return result | 51967b350c380c93be49ea1b368702af50efff6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/39/51967b350c380c93be49ea1b368702af50efff6d/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1536,
12,
2890,
16,
1301,
16,
5798,
33,
7036,
16,
1633,
33,
7036,
16,
999,
67,
2564,
33,
5510,
4672,
5798,
273,
5798,
578,
875,
1026,
273,
365,
18,
1969,
309,
486,
999,
67,
2564,
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,
1536,
12,
2890,
16,
1301,
16,
5798,
33,
7036,
16,
1633,
33,
7036,
16,
999,
67,
2564,
33,
5510,
4672,
5798,
273,
5798,
578,
875,
1026,
273,
365,
18,
1969,
309,
486,
999,
67,
2564,
30,... |
del(pub) del(sub) | sub.unregister() pub.unregister() | def receiveTuningMsg(msg): global data, started data.append(msg) started = 1 | 5b08da939be7d1766e83923d8b30592790d8a7ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10233/5b08da939be7d1766e83923d8b30592790d8a7ca/plot_step.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6798,
22313,
3332,
12,
3576,
4672,
2552,
501,
16,
5746,
501,
18,
6923,
12,
3576,
13,
5746,
273,
404,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6798,
22313,
3332,
12,
3576,
4672,
2552,
501,
16,
5746,
501,
18,
6923,
12,
3576,
13,
5746,
273,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sage: phi = L.geometric_frob_on_Dp(5) | sage: phi = L.frobenius(5) | def frobenius(self, prec=20, method = "mw"): r""" This returns a geometric Frobenius $\varphi$ on the Diedonne module $D_p(E)$ with respect to the basis $\omega$, the invariant differential and $\eta=x\omega$. It satisfies $phi^2 - a_p/p*phi + 1/p = 0$. | 16a0c6d5ab6377a8381446f9a57abe61114e64f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/16a0c6d5ab6377a8381446f9a57abe61114e64f3/padic_lseries.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
303,
19425,
8384,
12,
2890,
16,
13382,
33,
3462,
16,
707,
273,
315,
81,
91,
6,
4672,
436,
8395,
1220,
1135,
279,
7364,
1591,
478,
303,
19425,
8384,
271,
64,
1401,
9973,
8,
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,
284,
303,
19425,
8384,
12,
2890,
16,
13382,
33,
3462,
16,
707,
273,
315,
81,
91,
6,
4672,
436,
8395,
1220,
1135,
279,
7364,
1591,
478,
303,
19425,
8384,
271,
64,
1401,
9973,
8,
603,
... |
return HttpResponseForbidden('You do not have permission to start up this cluster') | return HttpResponseForbidden('You do not have permission to start up this virtual machine') | def startup(request, cluster_slug, instance): vm = get_object_or_404(VirtualMachine, hostname=instance, \ cluster__slug=cluster_slug) user = request.user if not (user.is_superuser or user.has_perm('admin', vm) or \ user.has_perm('admin', vm.cluster)): return HttpResponseForbidden('You do not have permission to start up... | 7de733bce5241838e9edea717550753d8d159651 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/7de733bce5241838e9edea717550753d8d159651/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11850,
12,
2293,
16,
2855,
67,
6436,
16,
791,
4672,
4268,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
27454,
16,
5199,
33,
1336,
16,
521,
2855,
972,
6436,
33,
7967,
67,
6436,
13,
729... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11850,
12,
2293,
16,
2855,
67,
6436,
16,
791,
4672,
4268,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
27454,
16,
5199,
33,
1336,
16,
521,
2855,
972,
6436,
33,
7967,
67,
6436,
13,
729... |
if holderdict.get('doprint'): | elif holderdict.get('doprint'): | def checkMSes(holderdict, dir, files): """ Updates holderdict['msdict'] with a list of MSes in dir that match holderdict['musthave'] and holderdict['mspat'] as in lsms(musthave, mspat, combine, sortfirst, remind). If holderdict['doprint']=True a blurb about each ms will be printed as it is found, using holderdict['rem... | 52c5edd3cfc6ef3629fdfca40911afff5139c38e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/52c5edd3cfc6ef3629fdfca40911afff5139c38e/lsms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3537,
281,
12,
4505,
1576,
16,
1577,
16,
1390,
4672,
3536,
15419,
10438,
1576,
3292,
959,
1576,
3546,
598,
279,
666,
434,
9238,
281,
316,
1577,
716,
845,
10438,
1576,
3292,
11926,
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,
866,
3537,
281,
12,
4505,
1576,
16,
1577,
16,
1390,
4672,
3536,
15419,
10438,
1576,
3292,
959,
1576,
3546,
598,
279,
666,
434,
9238,
281,
316,
1577,
716,
845,
10438,
1576,
3292,
11926,
2... |
d=FolderSelector(0, mgr, ids, single_select = False) | d=FolderSelector(0, mgr, ids, single_select = single_select) | def Test(): import sys, os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))) import manager mgr = manager.GetManager() if mgr.dialog_parser is None: import dialogs mgr.dialog_parser = dialogs.LoadDialogs() ids = [("0000","0000"),] # invalid ID for testing. d=FolderSelector(0, mgr, ids,... | b626b89ab30a5c373701cb77677d86755eaa3947 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/b626b89ab30a5c373701cb77677d86755eaa3947/FolderSelector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7766,
13332,
1930,
2589,
16,
1140,
2589,
18,
803,
18,
6923,
12,
538,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
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,
7766,
13332,
1930,
2589,
16,
1140,
2589,
18,
803,
18,
6923,
12,
538,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
9499,
18,
19485,
63,
20,
6... |
return isSelected(self.index(item)) | return self.isSelected(self.index(item)) | def isItemSelected(self, item): return isSelected(self.index(item)) | c1a94e8e3ebc4faf79bde7670cf93eeeb527ce7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c1a94e8e3ebc4faf79bde7670cf93eeeb527ce7b/collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1180,
7416,
12,
2890,
16,
761,
4672,
327,
20956,
12,
2890,
18,
1615,
12,
1726,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1180,
7416,
12,
2890,
16,
761,
4672,
327,
20956,
12,
2890,
18,
1615,
12,
1726,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{'code': code, 'message': message, 'explain': explain}) | {'code': code, 'message': _quote_html(message), 'explain': explain}) | def send_error(self, code, message=None): """Send and log an error reply. | 3010134c58662f5cfeee7941b521ec6e0c6616e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3010134c58662f5cfeee7941b521ec6e0c6616e8/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
12,
2890,
16,
981,
16,
883,
33,
7036,
4672,
3536,
3826,
471,
613,
392,
555,
4332,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1636,
12,
2890,
16,
981,
16,
883,
33,
7036,
4672,
3536,
3826,
471,
613,
392,
555,
4332,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
path information (e.g. 'I:/beta/frames/myMovie') | path information (e.g. '/i/beta/frames/myMovie') | def movie(self, namePrefix = 'movie', duration = 1.0, fps = 30, format = 'rgb', sd = 4): """ movie(namePrefix = 'movie', duration=1.0, fps=30, format='rgb', sd=4) | 388a6f328f7be27875c606ea9b54b10297161f29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/388a6f328f7be27875c606ea9b54b10297161f29/ShowBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21360,
12,
2890,
16,
508,
2244,
273,
296,
8683,
13120,
2187,
3734,
273,
404,
18,
20,
16,
26067,
273,
5196,
16,
740,
273,
296,
10948,
2187,
8349,
273,
1059,
4672,
3536,
21360,
12,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21360,
12,
2890,
16,
508,
2244,
273,
296,
8683,
13120,
2187,
3734,
273,
404,
18,
20,
16,
26067,
273,
5196,
16,
740,
273,
296,
10948,
2187,
8349,
273,
1059,
4672,
3536,
21360,
12,
529,
... |
if [abs(a), abs(b)]<[ediff, ediff]: | if [abs(a), abs(b)] < [ediff, ediff]: | def read_convergence(self): """Method that checks whether a calculation has converged.""" converged = None for line in open('OUTCAR', 'r'): if line.rfind('EDIFF ')>-1: ediff = float(line.split()[2]) if line.rfind('total energy-change')>-1: split = line.split(':') a = float(split[1].split('(')[0]) b = float(split[1].sp... | f319b09952056596d7df62ec35bfe002d4aee2cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/f319b09952056596d7df62ec35bfe002d4aee2cf/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
591,
502,
15570,
12,
2890,
4672,
3536,
1305,
716,
4271,
2856,
279,
11096,
711,
14581,
2423,
12123,
14581,
2423,
273,
599,
364,
980,
316,
1696,
2668,
5069,
39,
985,
2187,
296,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
591,
502,
15570,
12,
2890,
4672,
3536,
1305,
716,
4271,
2856,
279,
11096,
711,
14581,
2423,
12123,
14581,
2423,
273,
599,
364,
980,
316,
1696,
2668,
5069,
39,
985,
2187,
296,
86... |
image = gtk.image_new_from_stock(icon, gtk.ICON_SIZE_SMALL_TOOLBAR) | image = gtk.image_new_from_stock(icon, self.toolbar.get_icon_size()) | def build_toolbar(self): self.toolbar = gtk.Toolbar() self.toolbar.set_style(gtk.TOOLBAR_ICONS) if bool(MINITOOLS.int_value): self.toolbar.set_icon_size(gtk.ICON_SIZE_MENU) | 560ed7113c391bf75bc2b42b218360fe9bfb102e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4997/560ed7113c391bf75bc2b42b218360fe9bfb102e/musicbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
365,
18,
18849,
273,
22718,
18,
17907,
1435,
365,
18,
18849,
18,
542,
67,
4060,
12,
4521,
79,
18,
26263,
21908,
67,
21745,
55,
13,
309,
1426,
12,
6236,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
18849,
12,
2890,
4672,
365,
18,
18849,
273,
22718,
18,
17907,
1435,
365,
18,
18849,
18,
542,
67,
4060,
12,
4521,
79,
18,
26263,
21908,
67,
21745,
55,
13,
309,
1426,
12,
6236,... |
dependents.add(filename) path = os.path.dirname(filename) | dependents.add(infile) | def getDependentConfigFiles(filename, addSelf=True, outfile=None): config = ConfigParser.RawConfigParser() config.read(filename) dependents = set() if addSelf: dependents.add(filename) path = os.path.dirname(filename) try: extends = config.get('buildout', 'extends') except ConfigParser.NoSectionError: return depende... | 05ab05c8f2dc9722d3b8891a65d27320fcf3c03a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9561/05ab05c8f2dc9722d3b8891a65d27320fcf3c03a/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
18571,
809,
2697,
12,
3459,
16,
527,
10084,
33,
5510,
16,
8756,
33,
7036,
4672,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
3459,
13,
225,
2447,
4877,
273,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18571,
809,
2697,
12,
3459,
16,
527,
10084,
33,
5510,
16,
8756,
33,
7036,
4672,
642,
273,
25076,
18,
4809,
809,
2678,
1435,
642,
18,
896,
12,
3459,
13,
225,
2447,
4877,
273,
444,
... |
start_list, end_list = containing_block(code, ix) | start_list, end_list = containing_block(code, ix, ['()','[]']) | def parse_ellipsis(code): """ Preparse [0,2,..,n] notation. EXAMPLES: sage: from sage.misc.preparser import parse_ellipsis sage: parse_ellipsis("[1,2,..,n]") 'ellipsis_range(1,2,Ellipsis,n)' sage: parse_ellipsis("for i in (f(x) .. L[10]):") 'for i in ellipsis_iter(f(x),Ellipsis,L[10]):' """ ix = code.find('..') while ... | 126ec7ca15b4cb3b2967c6c988087023a08e7698 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/126ec7ca15b4cb3b2967c6c988087023a08e7698/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
292,
17829,
12,
710,
4672,
3536,
2962,
2670,
306,
20,
16,
22,
16,
838,
16,
82,
65,
12155,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
292,
17829,
12,
710,
4672,
3536,
2962,
2670,
306,
20,
16,
22,
16,
838,
16,
82,
65,
12155,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
23667,
18,
1484,
... |
ch = input[self.cursor] self.cursor += 1 next = input[self.cursor] | if len(input) > self.cursor: ch = input[self.cursor] else: return self.cursor += 1 if len(input) > self.cursor: next = input[self.cursor] else: next = None | def skip(self): input = self.source while (True): ch = input[self.cursor] self.cursor += 1 next = input[self.cursor] | 90473594c42899d7ca44e35a3375030fc586310c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/90473594c42899d7ca44e35a3375030fc586310c/Tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
12,
2890,
4672,
810,
273,
365,
18,
3168,
225,
1323,
261,
5510,
4672,
462,
273,
810,
63,
2890,
18,
9216,
65,
365,
18,
9216,
1011,
404,
1024,
273,
810,
63,
2890,
18,
9216,
65,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
12,
2890,
4672,
810,
273,
365,
18,
3168,
225,
1323,
261,
5510,
4672,
462,
273,
810,
63,
2890,
18,
9216,
65,
365,
18,
9216,
1011,
404,
1024,
273,
810,
63,
2890,
18,
9216,
65,
2,... |
return _ChannelHandler.url(self, node) | return node.textof() | def url(self, node): return _ChannelHandler.url(self, node) | 1d2528951a097eaf7273b7011c541619db34463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1d2528951a097eaf7273b7011c541619db34463b/xmltv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
16,
756,
4672,
327,
389,
2909,
1503,
18,
718,
12,
2890,
16,
756,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
12,
2890,
16,
756,
4672,
327,
389,
2909,
1503,
18,
718,
12,
2890,
16,
756,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
svg.text(x-5-(8*len(str(ytext))), yhash, str(ytext),12) | svg.text(x-15-(6*local_len(ytext)), yhash, ytext,12) | def drawGraph(request, xStart=-180.0, yStart=-180.0, xEnd=180.0, yEnd=180.0, attribute='Observations', xProperty='phi', yProperty='psi', reference=None, residue=None, xBin=10, yBin=10): svg = SVG() x = 65; y = 45; height = 360; width = 360; hashsize = 10 #background svg.rect(x, y, width, height, 1, '#00fffff', '#2222... | fcacdc39699fe40638f5434bd5705b2022bfa9e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/fcacdc39699fe40638f5434bd5705b2022bfa9e9/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
4137,
12,
2293,
16,
619,
1685,
29711,
18278,
18,
20,
16,
677,
1685,
29711,
18278,
18,
20,
16,
619,
1638,
33,
18278,
18,
20,
16,
677,
1638,
33,
18278,
18,
20,
16,
1566,
2218,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
4137,
12,
2293,
16,
619,
1685,
29711,
18278,
18,
20,
16,
677,
1685,
29711,
18278,
18,
20,
16,
619,
1638,
33,
18278,
18,
20,
16,
677,
1638,
33,
18278,
18,
20,
16,
1566,
2218,
26... |
distributions.scan([os.path.join(env.path, 'plugins')]) | distributions.scan([plugins_dir]) | def load_components(env): loaded_components = [] # Load configured modules for section in env.config.sections(): for name, value in env.config.options(section): if name == 'module': loaded_components.append(value) path = env.config.get(section, 'path') or None env.log.debug('Loading component module %s from %s' % (val... | 63392e295c0107be16b2582e2d93b25a5fa11dfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/63392e295c0107be16b2582e2d93b25a5fa11dfa/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8119,
12,
3074,
4672,
4203,
67,
8119,
273,
5378,
225,
468,
4444,
4351,
4381,
364,
2442,
316,
1550,
18,
1425,
18,
11657,
13332,
364,
508,
16,
460,
316,
1550,
18,
1425,
18,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8119,
12,
3074,
4672,
4203,
67,
8119,
273,
5378,
225,
468,
4444,
4351,
4381,
364,
2442,
316,
1550,
18,
1425,
18,
11657,
13332,
364,
508,
16,
460,
316,
1550,
18,
1425,
18,
211... |
if tsum[f] >= 0.01 : prec = '%.2f' total = prec%(tsum[f]) txt = str(total or '') else: txt = str(tsum[f] or '') | if tsum[f] != 0.0: digits = fields[fields_order[f]].get('digits', (16, 2)) prec = '%%.%sf' % (digits[1], ) total = prec % (tsum[f], ) txt = str(total or '') else: txt = str(tsum[f] or '') | def _append_node(name, text): n = etree.SubElement(config, name) n.text = text | 19bf88b997406a3e45052934a78e76801c9ec277 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/19bf88b997406a3e45052934a78e76801c9ec277/ps_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1676,
1046,
12,
1425,
16,
508,
13,
290,
18,
955,
273,
977,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1676,
1046,
12,
1425,
16,
508,
13,
290,
18,
955,
273,
977,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def ip_window_toggled_cb(self,*args): | def ip_window_toggled_cb(self, *args): | def mode_toggled_cb(self,*args): if self.button_dict['Mode'].get_active(): for item in self.adv_show_list: item.show() else: for item in self.adv_show_list: item.hide() | 18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1965,
67,
88,
23972,
1259,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
309,
365,
18,
5391,
67,
1576,
3292,
2309,
29489,
588,
67,
3535,
13332,
364,
761,
316,
365,
18,
28107,
67,
4500,
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,
1965,
67,
88,
23972,
1259,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
309,
365,
18,
5391,
67,
1576,
3292,
2309,
29489,
588,
67,
3535,
13332,
364,
761,
316,
365,
18,
28107,
67,
4500,
67,
... |
unsatisfied = self.unselectDependencyCheck(unselectedModule) | unsatisfied = [] if self.pageContent.automaticFix.isChecked(): unsatisfied = self.unselectDependencyCheck(unselectedModule) | def _moduleUnselected(self, unselectedModule): modules = self._projectInfoRetrieve("MODULES") modules[unselectedModule]["enabled"] = False self._projectInfoStore("MODULES", modules) unsatisfied = self.unselectDependencyCheck(unselectedModule) if len(unsatisfied) > 0: message = self.tr("The module %1 is needed by the fo... | 15754f71192e0a4333a243ca9fd4facdefa75341 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/15754f71192e0a4333a243ca9fd4facdefa75341/BModulePage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2978,
984,
8109,
12,
2890,
16,
640,
8109,
3120,
4672,
4381,
273,
365,
6315,
4406,
966,
5767,
2932,
12194,
55,
7923,
4381,
63,
318,
8109,
3120,
6362,
6,
5745,
11929,
273,
1083,
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,
2978,
984,
8109,
12,
2890,
16,
640,
8109,
3120,
4672,
4381,
273,
365,
6315,
4406,
966,
5767,
2932,
12194,
55,
7923,
4381,
63,
318,
8109,
3120,
6362,
6,
5745,
11929,
273,
1083,
365,
... |
ui.show_msg(self.window, _("The path") + " " + self.musicdir[self.profile_num] + " " + _("does not exist. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, self.dialog_destroy) | ui.show_msg(self.window, _("The path ") + " " + self.musicdir[self.profile_num] + " " + _("does not exist. Please specify a valid music directory in preferences."), _("Edit Tags"), 'editTagsError', gtk.BUTTONS_CLOSE, response_cb=self.dialog_destroy) | def on_tags_edit(self, widget): # Try loading module global tagpy if tagpy is None: try: import tagpy try: # Set default tag encoding to utf8.. fixes some reported bugs. import tagpy.id3v2 as id3v2 id3v2.FrameFactory.instance().setDefaultTextEncoding(tagpy.StringType.UTF8) except: pass except: pass if tagpy is None: ui... | 42ec8106d5d9032fcd77e092d270c87208745f84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/42ec8106d5d9032fcd77e092d270c87208745f84/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
3604,
4672,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
775,
30,
468,
1000,
805,
1047,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4156,
67,
4619,
12,
2890,
16,
3604,
4672,
468,
6161,
7153,
1605,
2552,
1047,
2074,
309,
1047,
2074,
353,
599,
30,
775,
30,
1930,
1047,
2074,
775,
30,
468,
1000,
805,
1047,
268... |
temp.oldID = obj.getID() | temp.good = obj.good | def mapToObject(self, obj): | dd8ac30beaad320ef557c1b744053ffa850d703a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/dd8ac30beaad320ef557c1b744053ffa850d703a/databasetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
19121,
12,
2890,
16,
1081,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
19121,
12,
2890,
16,
1081,
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,
-10... |
repo = hg.repository(ui) | def debugancestor(ui, *args): """find the ancestor revision of two revisions in a given index""" if len(args) == 3: index, rev1, rev2 = args r = revlog.revlog(util.opener(os.getcwd(), audit=False), index) elif len(args) == 2: rev1, rev2 = args repo = hg.repository(ui) r = repo.changelog else: raise util.Abort(_('either... | 35008269c779e5409d57b31f9a77daa4c5e820ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/35008269c779e5409d57b31f9a77daa4c5e820ce/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
28798,
12,
4881,
16,
380,
1968,
4672,
3536,
4720,
326,
9731,
6350,
434,
2795,
18325,
316,
279,
864,
770,
8395,
309,
562,
12,
1968,
13,
422,
890,
30,
770,
16,
5588,
21,
16,
5588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
28798,
12,
4881,
16,
380,
1968,
4672,
3536,
4720,
326,
9731,
6350,
434,
2795,
18325,
316,
279,
864,
770,
8395,
309,
562,
12,
1968,
13,
422,
890,
30,
770,
16,
5588,
21,
16,
5588,
... | |
self.displayTreeElement(write, name, '%s/%s' % (inPath, name), collection, subIndent) | if collection: self.displayTreeElement(write, name, '%s/%s' % (inPath, name), collection, subIndent) | def displayTreeElement(self, write, inName, inPath, collection, indentLevel=0): subIndent = indentLevel + 1 for name, entity in collection.listStaticEntities(): collection = coil.getCollection(entity) if collection is not None: write('%s + <a href="%s/%s">%s</a> <br>' % (indentLevel * ' ', inPath, name, name)) sel... | 1f122bb3850d13f1f283e90087c175a4016a47cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1f122bb3850d13f1f283e90087c175a4016a47cd/web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
2471,
1046,
12,
2890,
16,
1045,
16,
316,
461,
16,
316,
743,
16,
1849,
16,
3504,
2355,
33,
20,
4672,
720,
7790,
273,
3504,
2355,
397,
404,
364,
508,
16,
1522,
316,
1849,
18,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
2471,
1046,
12,
2890,
16,
1045,
16,
316,
461,
16,
316,
743,
16,
1849,
16,
3504,
2355,
33,
20,
4672,
720,
7790,
273,
3504,
2355,
397,
404,
364,
508,
16,
1522,
316,
1849,
18,
109... |
fcntl.fcntl (fd, fcntl.F_SETFL, flags) self.set_file (fd) def set_file (self, fd): | fcntl.fcntl(fd, fcntl.F_SETFL, flags) self.set_file(fd) def set_file(self, fd): | def __init__ (self, fd): dispatcher.__init__ (self) self.connected = 1 # set it to non-blocking mode flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0) flags = flags | os.O_NONBLOCK fcntl.fcntl (fd, fcntl.F_SETFL, flags) self.set_file (fd) | 52c4de7c23c31563e4f0316b68865e17bb8c0f33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52c4de7c23c31563e4f0316b68865e17bb8c0f33/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
5194,
4672,
7393,
16186,
2738,
972,
261,
2890,
13,
365,
18,
8537,
273,
404,
468,
444,
518,
358,
1661,
17,
18926,
1965,
2943,
273,
30894,
18,
7142,
16681,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
2890,
16,
5194,
4672,
7393,
16186,
2738,
972,
261,
2890,
13,
365,
18,
8537,
273,
404,
468,
444,
518,
358,
1661,
17,
18926,
1965,
2943,
273,
30894,
18,
7142,
16681,
... |
del environ['TZ'] time.tzset() if time.timezone == 0: environ['TZ'] = 'US/Eastern' else: environ['TZ'] = 'UTC' time.tzset() nonlocal = time.localtime(xmas2002) del environ['TZ'] time.tzset() local = time.localtime(xmas2002) self.failIfEqual(local,nonlocal) self.failUnlessEqual(len(time.tzname),2) time.daylight t... | def test_tzset(self): if not hasattr(time, "tzset"): return # Can't test this; don't want the test suite to fail | c76c215fe013317fd42034f213dc7844e465f313 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c76c215fe013317fd42034f213dc7844e465f313/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12994,
542,
12,
2890,
4672,
309,
486,
3859,
12,
957,
16,
315,
12994,
542,
6,
4672,
327,
468,
4480,
1404,
1842,
333,
31,
2727,
1404,
2545,
326,
1842,
11371,
358,
2321,
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,
1842,
67,
12994,
542,
12,
2890,
4672,
309,
486,
3859,
12,
957,
16,
315,
12994,
542,
6,
4672,
327,
468,
4480,
1404,
1842,
333,
31,
2727,
1404,
2545,
326,
1842,
11371,
358,
2321,
2,
-100... | |
test.debug() except: result.addError( test, sys.exc_info()[:2] + (sys.exc_info()[2].tb_next, ), ) else: result.addSuccess(test) | try: test.debug() except: result.addError( test, sys.exc_info()[:2] + (sys.exc_info()[2].tb_next, ), ) else: result.addSuccess(test) finally: result.stopTest(test) | def run_tests(options, tests, name, failures, errors): repeat = options.repeat or 1 ran = 0 for i in range(repeat): if repeat > 1: print "Iteration", i+1 if options.verbose > 0 or options.progress: print ' Running:' if options.verbose == 1 and not options.progress: print ' ', result = TestResult(options, tests) t ... | 211db0db7d53077e19ee0cfaa9555ec9a6ba1a36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10007/211db0db7d53077e19ee0cfaa9555ec9a6ba1a36/testrunner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
2116,
16,
7434,
16,
508,
16,
11720,
16,
1334,
4672,
7666,
273,
702,
18,
9374,
578,
404,
18892,
273,
374,
364,
277,
316,
1048,
12,
9374,
4672,
309,
7666,
405,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
2116,
16,
7434,
16,
508,
16,
11720,
16,
1334,
4672,
7666,
273,
702,
18,
9374,
578,
404,
18892,
273,
374,
364,
277,
316,
1048,
12,
9374,
4672,
309,
7666,
405,
404,
... |
key = win32api.RegOpenKeyEx( win32con.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey, 0, win32con.KEY_READ ) | key = _winreg.OpenKeyEx( _winreg.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey ) | def GetTimeZoneNames( ): "Returns the names of the time zones as defined in the registry" key = win32api.RegOpenKeyEx( win32con.HKEY_LOCAL_MACHINE, TimeZoneInfo.tzRegKey, 0, win32con.KEY_READ ) return _RegKeyEnumerator( key ) | e7a11415f69f09802809c04994d3eae95f4e2104 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/e7a11415f69f09802809c04994d3eae95f4e2104/win32timezone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
16760,
1557,
12,
262,
30,
315,
1356,
326,
1257,
434,
326,
813,
13975,
487,
2553,
316,
326,
4023,
6,
498,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
389,
8082,
1574,
18,
44,
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,
968,
16760,
1557,
12,
262,
30,
315,
1356,
326,
1257,
434,
326,
813,
13975,
487,
2553,
316,
326,
4023,
6,
498,
273,
389,
8082,
1574,
18,
3678,
653,
424,
12,
389,
8082,
1574,
18,
44,
3... |
md5.new(time.ctime(self.server.nonce_time) + 'privatekey').hexdigest() | _new_md5(time.ctime(self.server.nonce_time) + 'privatekey').hexdigest() | def AuthDigestHandler(self): """This handler tests 'Digest' authentication. It just sends a page with title 'user/pass' if you succeed.""" | 7d1359b37c0fcec34e11e55159c0aa9421b91c62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/7d1359b37c0fcec34e11e55159c0aa9421b91c62/testserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3123,
9568,
1503,
12,
2890,
4672,
3536,
2503,
1838,
7434,
296,
9568,
11,
5107,
18,
225,
2597,
2537,
9573,
279,
1363,
598,
2077,
296,
1355,
19,
5466,
11,
309,
1846,
12897,
12123,
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,
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,
3123,
9568,
1503,
12,
2890,
4672,
3536,
2503,
1838,
7434,
296,
9568,
11,
5107,
18,
225,
2597,
2537,
9573,
279,
1363,
598,
2077,
296,
1355,
19,
5466,
11,
309,
1846,
12897,
12123,
2,
-100,... |
def __init__(self, master=None): | def __init__(self, master=None, value=None, name=None): | def __init__(self, master=None): """Construct a string variable. | 72daca43c49dee94d35b25084bba9045bd6d0f49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/72daca43c49dee94d35b25084bba9045bd6d0f49/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
533,
2190,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
460,
33,
7036,
16,
508,
33,
7036,
4672,
3536,
7249,
279,
533,
2190,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
py_exc = PyCompileError(err.__class__,err.args,dfile or file) | py_exc = PyCompileError(err.__class__, err, dfile or file) | def compile(file, cfile=None, dfile=None, doraise=False): """Byte-compile one Python source file to Python bytecode. Arguments: file: source filename cfile: target filename; defaults to source with 'c' or 'o' appended ('c' normally, 'o' in optimizing mode, giving .pyc or .pyo) dfile: purported filename; defaul... | eed2dadd686e1f70e9f72595501ad44e540a29ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/eed2dadd686e1f70e9f72595501ad44e540a29ec/py_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
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,
4074,
12,
768,
16,
276,
768,
33,
7036,
16,
302,
768,
33,
7036,
16,
302,
10610,
784,
33,
8381,
4672,
3536,
3216,
17,
11100,
1245,
6600,
1084,
585,
358,
6600,
22801,
18,
225,
13599,
30,
... |
def unknown_starttag(self, name, *args): if self.close_on_open: self._popToTag(self.close_on_open) self.close_on_open = None BeautifulStoneSoup.unknown_starttag(self, name, *args) | def test_missing_kw_in_passing_test(self): suite = self._fix_xml_and_parse('passing_kw_missing_end_tag') assert_equals(len(suite.tests), 2) self._assert_statistics(suite, 1, 1) assert_equals(len(suite.tests[0].keywords[0].keywords), 2) | def unknown_starttag(self, name, *args): if self.close_on_open: self._popToTag(self.close_on_open) self.close_on_open = None BeautifulStoneSoup.unknown_starttag(self, name, *args) | 7ba15c143410b362faa1a50bdde9a5eb2bb70053 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/7ba15c143410b362faa1a50bdde9a5eb2bb70053/test_fixml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
1937,
2692,
12,
2890,
16,
508,
16,
380,
1968,
4672,
309,
365,
18,
4412,
67,
265,
67,
3190,
30,
365,
6315,
5120,
774,
1805,
12,
2890,
18,
4412,
67,
265,
67,
3190,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
1937,
2692,
12,
2890,
16,
508,
16,
380,
1968,
4672,
309,
365,
18,
4412,
67,
265,
67,
3190,
30,
365,
6315,
5120,
774,
1805,
12,
2890,
18,
4412,
67,
265,
67,
3190,
13,
365,
... |
password = getpass.getpass("Password for %s: " % local_email) | password = None if keyring: password = keyring.get_password(host, local_email) if password is not None: print "Using password from system keyring." else: password = getpass.getpass("Password for %s: " % local_email) if keyring: answer = raw_input("Store password in system keyring?(y/N) ").strip() if answer == "y": keyr... | def GetUserCredentials(): """Prompts the user for a username and password.""" # Create a local alias to the email variable to avoid Python's crazy # scoping rules. local_email = email if local_email is None: local_email = GetEmail("Email (login for uploading to %s)" % server) password = getpass.getpass("Password for %s... | 219d39e126a37c691b8e3dfe6c6bd918c5d24faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/219d39e126a37c691b8e3dfe6c6bd918c5d24faa/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17330,
6163,
13332,
3536,
13224,
1092,
326,
729,
364,
279,
2718,
471,
2201,
12123,
468,
1788,
279,
1191,
2308,
358,
326,
2699,
2190,
358,
4543,
6600,
1807,
276,
354,
21832,
468,
888,
22384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17330,
6163,
13332,
3536,
13224,
1092,
326,
729,
364,
279,
2718,
471,
2201,
12123,
468,
1788,
279,
1191,
2308,
358,
326,
2699,
2190,
358,
4543,
6600,
1807,
276,
354,
21832,
468,
888,
22384... |
@return: Instance of class LDBDServerException | @return: Instance of class ServerHandlerException | def __init__(self, args=None): """ Initialize an instance. | fbc9803c65a4ee0294e471687c20c1853319f147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/fbc9803c65a4ee0294e471687c20c1853319f147/LDBDServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
33,
7036,
4672,
3536,
9190,
392,
791,
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,
... | [
1,
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,
1001,
2738,
972,
12,
2890,
16,
833,
33,
7036,
4672,
3536,
9190,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
n0 = n//2 m = 2*n0 + 1 if n % 2 != 0: m += 1 gen0 = tuple(range(1,m)) gen1 = tuple([(i,m-i) for i in range(1,n0+1)]) PermutationGroup_generic.__init__(self, [gen0, gen1], from_group = True) | gen0 = range(1,n+1) if n < 1: raise ValueError, "n (=%s) must be >= 1"%n if n == 1: gens = CyclicPermutationGroup(2).gens() elif n == 2: gens = KleinFourGroup().gens() else: gen1 = [(i, n-i+1) for i in range(1, n//2 +1)] gens = tuple([tuple(gen0),tuple(gen1)]) PermutationGroup_generic.__init__(self, gens, from... | def __init__(self, n): """ INPUT: n -- a positive integer | a18d3d7e1268754150795a9c21b6f24fe2df0642 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a18d3d7e1268754150795a9c21b6f24fe2df0642/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
4672,
3536,
12943,
30,
290,
1493,
279,
6895,
3571,
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,
1001,
2738,
972,
12,
2890,
16,
290,
4672,
3536,
12943,
30,
290,
1493,
279,
6895,
3571,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for id in ids: | for objId in ids: | def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain... | 2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... |
file.write("MATERIAL {}\n".format(mtrls[mat.name])) | file.write("MATERIAL {}\n".format(mtrls[mat.name]+1)) | def export_msh(filepath,convert_coords): nonormal=False if os.path.splitext(filepath)[1]=="": filepath=filepath+".msh" file=open(filepath,"w") file.write("MSHX1\n") ngroups=0 for obj in bpy.context.selected_objects: if obj.type=='MESH': ngroups=ngroups+1 file.write("GROUPS {}\n".format(ngroups)) mtrls={} txtrs={} ... | f3baba948e8974f43627cf7cb7b96ba7545fac59 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/f3baba948e8974f43627cf7cb7b96ba7545fac59/io_orbiter_msh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
81,
674,
12,
10561,
16,
6283,
67,
9076,
4672,
225,
1661,
1687,
33,
8381,
225,
309,
1140,
18,
803,
18,
4939,
408,
12,
10561,
25146,
21,
65,
631,
3660,
30,
3608,
33,
10561,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
81,
674,
12,
10561,
16,
6283,
67,
9076,
4672,
225,
1661,
1687,
33,
8381,
225,
309,
1140,
18,
803,
18,
4939,
408,
12,
10561,
25146,
21,
65,
631,
3660,
30,
3608,
33,
10561,
9... |
self._info.log("Assembling Jacobian of operator.") petsc.mat_assemble(self.jacobian) self._info.log("Reforming assembled portion of Jacobian of operator.") for integrator in self.integrators: integrator.integrateJacobianAssembled(self.jacobian, t+dt, self.fields) self._debug.log(resourceUsageString()) | def _reformJacobian(self, t, dt): """ Reform Jacobian matrix for operator. """ self._info.log("Reforming Jacobian of operator.") self._debug.log(resourceUsageString()) import pylith.utils.petsc as petsc petsc.mat_setzero(self.jacobian) | 1464c6d24f4c3fbf4daca85aa0b128d68dccb17c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8645/1464c6d24f4c3fbf4daca85aa0b128d68dccb17c/Formulation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
266,
687,
46,
1077,
26968,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
868,
687,
804,
1077,
26968,
3148,
364,
3726,
18,
3536,
365,
6315,
1376,
18,
1330,
2932,
426,
687,
310,
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,
1,
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,
266,
687,
46,
1077,
26968,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
868,
687,
804,
1077,
26968,
3148,
364,
3726,
18,
3536,
365,
6315,
1376,
18,
1330,
2932,
426,
687,
310,
804,
107... | |
Returns the lower and upper bounds using simon_two_descent. The results of simon_two_descent are cached. | Returns the lower and upper bounds using :meth:`~simon_two_descent`. The results of :meth:`~simon_two_descent` are cached. | def rank_bounds(self,verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Returns the lower and upper bounds using simon_two_descent. The results of simon_two_descent are cached. | 650f1818f624820481186d5c23dd6c8792ace92e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/650f1818f624820481186d5c23dd6c8792ace92e/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
67,
10576,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
67,
10576,
12,
2890,
16,
11369,
33,
20,
16,
20167,
21,
33,
25,
16,
20167,
23,
33,
3361,
16,
20167,
313,
427,
33,
2163,
16,
943,
7748,
33,
3462,
16,
20167,
14002,
16382,
33,
508... |
for field in old_values[res_id]: if old_values[res_id][field]: line = { 'name': field, 'old_value': old_values[res_id][field], 'old_value_text': self.get_value_text(cr, uid, field, old_values[res_id][field], model_object) } lines.append(line) cr.commit() self.create_log_line(cr, uid, id, model_object, lines) res = fct_... | for field in resource.keys(): line = { 'name': field, 'new_value': resource[field], 'old_value': old_values[resource_id]['value'][field], 'new_value_text': self.get_value_text(cr, uid, field, resource[field], model), 'old_value_text': old_values[resource_id]['text'][field] } lines.append(line) self.create_log_line(cr,... | def log_fct(self, db, uid, object, method, fct_src, *args): """ Logging function: This function is performs logging oprations according to method @param db: the current database @param uid: the current user’s ID for security checks, @param object: Object who's values are being changed @param method: method to log: crea... | db704adb67985bd6eaad8c1dd3c5eac480aaa2ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/db704adb67985bd6eaad8c1dd3c5eac480aaa2ec/audittrail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
74,
299,
12,
2890,
16,
1319,
16,
4555,
16,
733,
16,
707,
16,
28478,
67,
4816,
16,
380,
1968,
4672,
3536,
10253,
445,
30,
1220,
445,
353,
11199,
2907,
320,
683,
1012,
4888,
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,
613,
67,
74,
299,
12,
2890,
16,
1319,
16,
4555,
16,
733,
16,
707,
16,
28478,
67,
4816,
16,
380,
1968,
4672,
3536,
10253,
445,
30,
1220,
445,
353,
11199,
2907,
320,
683,
1012,
4888,
3... |
self.view_main_window.connect('activate', self.minimize, self.plugin_api) | self.view_main_window_signal = self.view_main_window.connect(\ 'activate', \ self.minimize, \ self.plugin_api) | def create_static_menu(self): self.menu = gtk.Menu() self.view_main_window = gtk.CheckMenuItem(_("_View Main Window")) self.view_main_window.set_active(True) self.view_main_window.connect('activate', self.minimize, self.plugin_api) self.menu.append(self.view_main_window) # menuItem = gtk.ImageMenuItem(gtk.STOCK_ABOUT) ... | b35caa11ef69dca548624e404be7a41cc4ed48d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/b35caa11ef69dca548624e404be7a41cc4ed48d2/notification_area.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3845,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
273,
22718,
18,
4599,
1435,
365,
18,
1945,
67,
5254,
67,
5668,
273,
22718,
18,
1564,
12958,
24899,
2932,
67,
1767,
12740,
6076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3845,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
273,
22718,
18,
4599,
1435,
365,
18,
1945,
67,
5254,
67,
5668,
273,
22718,
18,
1564,
12958,
24899,
2932,
67,
1767,
12740,
6076,
... |
sqlite_defines.append(('PY_MINOR_VERSION', | sqlite_defines.append(('PY_MINOR_VERSION', | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | e25005bba7396fd747cf8a1e8599dbd4d921ef70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e25005bba7396fd747cf8a1e8599dbd4d921ef70/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.