rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if mode & X_OK and not (stat(path).st_mode & _stat.S_IEXEC): | if mode & X_OK: | def access(path, mode): """access(path, mode) -> True if granted, False otherwise Use the real uid/gid to test for access to a path. Note that most operations will use the effective uid/gid, therefore this routine can be used in a suid/sgid environment to test if the invoking user has the specified access to the path... | ab9b60729a64b3203995b8f9934561ab4d0930e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/ab9b60729a64b3203995b8f9934561ab4d0930e5/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
12,
803,
16,
1965,
4672,
3536,
3860,
12,
803,
16,
1965,
13,
317,
1053,
309,
17578,
16,
1083,
3541,
225,
2672,
326,
2863,
4555,
19,
15780,
358,
1842,
364,
2006,
358,
279,
589,
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,
2006,
12,
803,
16,
1965,
4672,
3536,
3860,
12,
803,
16,
1965,
13,
317,
1053,
309,
17578,
16,
1083,
3541,
225,
2672,
326,
2863,
4555,
19,
15780,
358,
1842,
364,
2006,
358,
279,
589,
18,... |
runWaitTime = group.runWaitTimes | def performance_data(self, c): """Get data about the pipeline performance. For each board group (defined by direct ethernet server and port), this returns times for: page locks run lock run packet (on the direct ethernet server) read lock If the pipe runs dry, the first time that will go to zero should be the run pack... | dd9b5c71352027a4ce16fbae97632b01069831e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7016/dd9b5c71352027a4ce16fbae97632b01069831e6/ghz_dacs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9239,
67,
892,
12,
2890,
16,
276,
4672,
3536,
967,
501,
2973,
326,
5873,
9239,
18,
225,
2457,
1517,
11094,
1041,
261,
2178,
635,
2657,
225,
22603,
1438,
471,
1756,
3631,
333,
1135,
4124,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9239,
67,
892,
12,
2890,
16,
276,
4672,
3536,
967,
501,
2973,
326,
5873,
9239,
18,
225,
2457,
1517,
11094,
1041,
261,
2178,
635,
2657,
225,
22603,
1438,
471,
1756,
3631,
333,
1135,
4124,... | |
m = self.get_menustack()[-1] m.choices[m.choices.index(m.selected)] = item m.selected = item | def configure_set_display_type(self): """ change display type from specific to all """ if self.display_type: self['show_all_items'] = True self.display_type = None name = u'\tICON_RIGHT_ON_' + _('on') else: self['show_all_items'] = False self.display_type = self.parent.display_type name = u'\tICON_RIGHT_OFF_' + _('off'... | e29d880d94d54392035abf993d3ebc58250e2320 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e29d880d94d54392035abf993d3ebc58250e2320/directory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
542,
67,
5417,
67,
723,
12,
2890,
4672,
3536,
2549,
2562,
618,
628,
2923,
358,
777,
3536,
309,
365,
18,
5417,
67,
723,
30,
365,
3292,
4500,
67,
454,
67,
3319,
3546,
273,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
542,
67,
5417,
67,
723,
12,
2890,
4672,
3536,
2549,
2562,
618,
628,
2923,
358,
777,
3536,
309,
365,
18,
5417,
67,
723,
30,
365,
3292,
4500,
67,
454,
67,
3319,
3546,
273,
10... | |
self.reporter.end() | self.reporter.end() self.reporter.end() | def run(self): | a151fe8bb505a44df079a3e2f7807022411a9739 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a151fe8bb505a44df079a3e2f7807022411a9739/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
id = attrs.get((None, 'id'), None) | id = attrs.get((None, 'id')) rotation = attrs.get((None, 'rotation'), 0) page_size = attrs.get((None, 'pageSize')) page_size = get_value_page_size(page_size) | def template_stream(stream, _tag_uri, _tag_name, _attributes, _ns_decls, document_attrs): """ """ stack = [] stack.append((_tag_name, _attributes, None)) page_templates = [] page_template_data = None show_boundary = False for key in document_attrs.keys(): if _attributes.has_key((None, key)): document_attrs[key] = _att... | 51b02e012792ad1fcdef1300580c1d6a58548c1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/51b02e012792ad1fcdef1300580c1d6a58548c1f/rml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
1668,
67,
7039,
4672,
3536,
3536,
2110,
273,
5378,
2110,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
3256,
12,
3256,
16,
389,
2692,
67,
1650,
16,
389,
2692,
67,
529,
16,
389,
4350,
16,
389,
2387,
67,
323,
6429,
16,
1668,
67,
7039,
4672,
3536,
3536,
2110,
273,
5378,
2110,
1... |
for arch in self.options.architectures.split(): | for arch in self.options.architectures: | def maxver(self, pkg, dist): maxver = None if self.sources[dist].has_key(pkg): maxver = self.sources[dist][pkg]['version'] for arch in self.options.architectures.split(): if not self.binaries[dist][arch][0].has_key(pkg): continue pkgv = self.binaries[dist][arch][0][pkg]['version'] if maxver == None or apt_pkg.VersionCo... | a444439fb0700ef5568e50ba692161d667718145 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/a444439fb0700ef5568e50ba692161d667718145/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
502,
12,
2890,
16,
3475,
16,
2411,
4672,
943,
502,
273,
599,
309,
365,
18,
10141,
63,
4413,
8009,
5332,
67,
856,
12,
10657,
4672,
943,
502,
273,
365,
18,
10141,
63,
4413,
6362,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
502,
12,
2890,
16,
3475,
16,
2411,
4672,
943,
502,
273,
599,
309,
365,
18,
10141,
63,
4413,
8009,
5332,
67,
856,
12,
10657,
4672,
943,
502,
273,
365,
18,
10141,
63,
4413,
6362,
... |
if pred == ( RESOURCE, DAML_equivalentTo_URI ) : | if pred == ( RESOURCE, DAML_equivalentTo_URI ) and "t" not in self._flags: | def _makeSubjPred(self, context, subj, pred): | c76f9aaebe777eca817777987fc6903f9e322e84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/c76f9aaebe777eca817777987fc6903f9e322e84/notation3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
1676,
78,
10391,
12,
2890,
16,
819,
16,
15333,
16,
3479,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
1676,
78,
10391,
12,
2890,
16,
819,
16,
15333,
16,
3479,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
assert response.html.find('input', {'name':'edit_ticket_form.summary'}).get('value') == old_summary | assert response.html.find('textarea', {'name':'edit_ticket_form.summary'}).string == old_summary | def test_edit_ticket_validation(self): old_summary = 'edit ticket test' new_summary = "new summary" self.new_ticket(summary=old_summary) response = self.app.get('/bugs/1/edit/') # check that existing form is valid assert response.html.find('input', {'name':'edit_ticket_form.summary'}).get('value') == old_summary assert... | 51e4a5fec3c74a0de9b4c081f1a54bf8e50fc1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/51e4a5fec3c74a0de9b4c081f1a54bf8e50fc1e5/test_root.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4619,
67,
16282,
67,
8685,
12,
2890,
4672,
1592,
67,
7687,
273,
296,
4619,
9322,
1842,
11,
394,
67,
7687,
273,
315,
2704,
4916,
6,
365,
18,
2704,
67,
16282,
12,
7687,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4619,
67,
16282,
67,
8685,
12,
2890,
4672,
1592,
67,
7687,
273,
296,
4619,
9322,
1842,
11,
394,
67,
7687,
273,
315,
2704,
4916,
6,
365,
18,
2704,
67,
16282,
12,
7687,
33,
1... |
pprint(differences, stream=temp) | pprint(differences, stream = temp) | def assert_equals_file_content(reference_file, fixture, filetype='xml'): if os.path.isfile(fixture): with open(fixture) as fixture_file: fixture_content = fixture_file.read() else: fixture_content = fixture with open(reference_file) as expected_file: expected_content = expected_file.read() if filetype == 'xml': print... | 49a8f8b77663338c17f1905de31637cf4e70a177 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1351/49a8f8b77663338c17f1905de31637cf4e70a177/helper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
14963,
67,
768,
67,
1745,
12,
6180,
67,
768,
16,
16678,
16,
18902,
2218,
2902,
11,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
904,
10970,
4672,
598,
1696,
12,
904,
10970,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
14963,
67,
768,
67,
1745,
12,
6180,
67,
768,
16,
16678,
16,
18902,
2218,
2902,
11,
4672,
309,
1140,
18,
803,
18,
291,
768,
12,
904,
10970,
4672,
598,
1696,
12,
904,
10970,
... |
event.arguments['Enable'] = (self.selectedItemToView and | event.arguments['Enable'] = (self.selectedItemToView is not None and | def onDeleteEventUpdateUI(self, event): event.arguments['Text'] = _('Delete Collection') """ this is enabled if any user item is selected in the sidebar """ event.arguments['Enable'] = (self.selectedItemToView and getattr(self.selectedItemToView, 'renameable', True)) | 6bcb01425554fa9ec6837604e39716d8487140e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6bcb01425554fa9ec6837604e39716d8487140e2/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20468,
1133,
1891,
5370,
12,
2890,
16,
871,
4672,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
2668,
2613,
2200,
6134,
3536,
333,
353,
3696,
309,
1281,
729,
761,
353,
3170,
316,
326,
23364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20468,
1133,
1891,
5370,
12,
2890,
16,
871,
4672,
871,
18,
7099,
3292,
1528,
3546,
273,
389,
2668,
2613,
2200,
6134,
3536,
333,
353,
3696,
309,
1281,
729,
761,
353,
3170,
316,
326,
23364... |
del b.__dict__ if b.__dict__ <> None: raise TestFailed, 'del func.__dict__ did not result in __dict__ == None' | try: del b.__dict__ except TypeError: pass else: raise TestFailed, 'del func.__dict__ expected TypeError' | def b(): 'my docstring' pass | 033daa49eafae52f0b88085117e1bdf1cff2fe16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/033daa49eafae52f0b88085117e1bdf1cff2fe16/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if mtu: dest,gw,fl,ref,use,mtu,netif = l.split()[:7] | if SOLARIS: dest,mask,gw,netif,mxfrg,rtt,ref,flg = l.split()[:8] | def read_routes(): f=os.popen("netstat -rn") # -f inet ok = 0 mtu = False routes = [] for l in f.readlines(): if not l: break l = l.strip() if l.find("Destination") >= 0: ok = 1 if l.find("Mtu") >= 0: mtu = True continue if ok == 0: continue if not l: break if mtu: dest,gw,fl,ref,use,mtu,netif = l.split()[:7] else: des... | 4fa3d085793f1f32bf62e096a2be12bf5eb5407d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/4fa3d085793f1f32bf62e096a2be12bf5eb5407d/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
10854,
13332,
284,
33,
538,
18,
84,
3190,
2932,
2758,
5642,
300,
27639,
7923,
468,
300,
74,
17661,
1529,
273,
374,
5874,
89,
273,
1083,
4912,
273,
5378,
364,
328,
316,
284,
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,
855,
67,
10854,
13332,
284,
33,
538,
18,
84,
3190,
2932,
2758,
5642,
300,
27639,
7923,
468,
300,
74,
17661,
1529,
273,
374,
5874,
89,
273,
1083,
4912,
273,
5378,
364,
328,
316,
284,
18... |
e.set_lk_detect(db.DB_LOCK_DEFAULT) | def _openDBEnv(cachesize): e = db.DBEnv() if cachesize is not None: if cachesize >= 20480: e.set_cachesize(0, cachesize) else: raise error, "cachesize must be >= 20480" e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK | db.DB_INIT_MPOOL) e.set_lk_detect(db.DB_LOCK_DEFAULT) return e | 7aa05a532384506e279f32c64284e098ff9c76c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7aa05a532384506e279f32c64284e098ff9c76c1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
2290,
3491,
12,
17703,
281,
554,
4672,
425,
273,
1319,
18,
2290,
3491,
1435,
309,
12535,
554,
353,
486,
599,
30,
309,
12535,
554,
1545,
11492,
3672,
30,
425,
18,
542,
67,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
2290,
3491,
12,
17703,
281,
554,
4672,
425,
273,
1319,
18,
2290,
3491,
1435,
309,
12535,
554,
353,
486,
599,
30,
309,
12535,
554,
1545,
11492,
3672,
30,
425,
18,
542,
67,
17... | |
self.setWindowTitle() def setWindowTitle(self): self.setTitle(_("Select upgrade source to edit.")) def fill_list(self): self.flist = [] self.path = '/etc/ipkg/' if (os_path.exists(self.path) == False): self.entry = False return for file in listdir(self.path): if (file.endswith(".conf")): if file != 'arch.conf': self.... | self.setTitle(_("Choose a wireless network")) def select(self): cur = self["list"].getCurrent() if cur is not None: self.rescanTimer.stop() del self.rescanTimer if cur[1] is not None: essid = cur[1] self.close(essid,self.getWlanList()) else: self.close(None,None) | def layoutFinished(self): self.setWindowTitle() | e198493e29c22e49dff1da47e83a989cdbd1d913 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/e198493e29c22e49dff1da47e83a989cdbd1d913/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
10577,
12,
2890,
4672,
365,
18,
542,
3829,
4247,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3511,
10577,
12,
2890,
4672,
365,
18,
542,
3829,
4247,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if self.__fix & 4 != 0: | if fix & 4 != 0: | def __convert_eol( self, node ): """Convert EOL of a node""" | 03d768509b4c7e580bf8896746b9db8672aa7762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/03d768509b4c7e580bf8896746b9db8672aa7762/eolfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
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,
1001,
6283,
67,
30951,
12,
365,
16,
756,
262,
30,
3536,
2723,
19995,
434,
279,
756,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if tag: | if tag and tag <> 'HEAD': | def __call__(self, output=None, dry_run=False, **kwargs): tag = kwargs.get('tag') if tag: kwargs['tag'] = '--tag=%s' % tag | 7abc4079063a39af1810a2469876a7563b1ce4fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/7abc4079063a39af1810a2469876a7563b1ce4fe/darcs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
876,
33,
7036,
16,
10299,
67,
2681,
33,
8381,
16,
2826,
4333,
4672,
1047,
273,
1205,
18,
588,
2668,
2692,
6134,
309,
1047,
471,
1047,
2813,
296,
12458,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
876,
33,
7036,
16,
10299,
67,
2681,
33,
8381,
16,
2826,
4333,
4672,
1047,
273,
1205,
18,
588,
2668,
2692,
6134,
309,
1047,
471,
1047,
2813,
296,
12458,
4... |
G = Graph(self._nxg, name=self._nxg.name, pos=self._pos, boundary=self._boundary) | G = Graph(self._nxg.copy(), name=self._nxg.name, pos=self._pos, boundary=self._boundary) | def copy(self): """ Creates a copy of the graph. | b54583533bf5722e80f03aff4e8ce7cd5637b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b54583533bf5722e80f03aff4e8ce7cd5637b8f5/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
3536,
10210,
279,
1610,
434,
326,
2667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
2890,
4672,
3536,
10210,
279,
1610,
434,
326,
2667,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.pagesize = 50 | self.pagesize = 5 | def _post_init(self): ''' Set attributes based on self.form ''' # extract the index display information from the form self.columns = [] for name in ':columns @columns'.split(): if self.form.has_key(name): self.special_char = name[0] self.columns = handleListCGIValue(self.form[name]) break self.show = support.TruthDict(... | 3f2a04818c42cf13408b7cfc0dddb0f9fdfe7df3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/3f2a04818c42cf13408b7cfc0dddb0f9fdfe7df3/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2767,
67,
2738,
12,
2890,
4672,
9163,
1000,
1677,
2511,
603,
365,
18,
687,
9163,
468,
2608,
326,
770,
2562,
1779,
628,
326,
646,
365,
18,
5112,
273,
5378,
364,
508,
316,
4290,
511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2767,
67,
2738,
12,
2890,
4672,
9163,
1000,
1677,
2511,
603,
365,
18,
687,
9163,
468,
2608,
326,
770,
2562,
1779,
628,
326,
646,
365,
18,
5112,
273,
5378,
364,
508,
316,
4290,
511... |
cutoff : float | cutoff: float | def truncate_along_axis(h, s, direction, centers_ic, cutoff): """Truncate h and s such along a cartesian axis. Parameters ========== h : (N, N) ndarray Hamiltonian matrix. s : (N, N) ndarray Overlap matrix. direction : {'x', 'y', 'z'} Truncate allong a cartesian axis. centers_ic : (N, 3) ndarray Centers of the basis fu... | f9860890196db1f763e532a4f4a35f7ea080fa6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5735/f9860890196db1f763e532a4f4a35f7ea080fa6f/siesta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
67,
287,
932,
67,
4890,
12,
76,
16,
272,
16,
4068,
16,
17723,
67,
335,
16,
13383,
4672,
3536,
25871,
366,
471,
272,
4123,
7563,
279,
24549,
2654,
18,
7012,
422,
1432,
366,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10310,
67,
287,
932,
67,
4890,
12,
76,
16,
272,
16,
4068,
16,
17723,
67,
335,
16,
13383,
4672,
3536,
25871,
366,
471,
272,
4123,
7563,
279,
24549,
2654,
18,
7012,
422,
1432,
366,
294,
... |
if object.im_self: | if object.im_self is not None: | def docroutine(self, object, name=None, mod=None, funcs={}, classes={}, methods={}, cl=None): """Produce HTML documentation for a function or method object.""" realname = object.__name__ name = name or realname anchor = (cl and cl.__name__ or '') + '-' + name note = '' skipdocs = 0 if inspect.ismethod(object): imclass ... | 1f05eb3f1e4eb2d5ee8cdad290180b08e2001dea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/1f05eb3f1e4eb2d5ee8cdad290180b08e2001dea/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
22640,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
681,
33,
7036,
16,
15630,
28793,
3318,
28793,
2590,
28793,
927,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
445,
578,
707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
22640,
12,
2890,
16,
733,
16,
508,
33,
7036,
16,
681,
33,
7036,
16,
15630,
28793,
3318,
28793,
2590,
28793,
927,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
445,
578,
707,
... |
return self._getRepos(**kwargs) | return self._getRepos(thisrepo) | def doRepoSetup(self, **kwargs): warnings.warn('doRepoSetup() will go away in a future version of Yum.\n', Errors.YumFutureDeprecationWarning, stacklevel=2) | ae1c639f8f570a8ad9cc2b3b6ce5b176ada8692f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/ae1c639f8f570a8ad9cc2b3b6ce5b176ada8692f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
8791,
7365,
12,
2890,
16,
2826,
4333,
4672,
5599,
18,
8935,
2668,
2896,
8791,
7365,
1435,
903,
1960,
10804,
316,
279,
3563,
1177,
434,
1624,
379,
8403,
82,
2187,
9372,
18,
61,
379,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
8791,
7365,
12,
2890,
16,
2826,
4333,
4672,
5599,
18,
8935,
2668,
2896,
8791,
7365,
1435,
903,
1960,
10804,
316,
279,
3563,
1177,
434,
1624,
379,
8403,
82,
2187,
9372,
18,
61,
379,
... |
return apply(getattr(self.mod, self.name).%s, args) | return apply(getattr(self.mod, self.name).%s, args) | def %s(self, *args): return apply(getattr(self.mod, self.name).%s, args) | b9c951d8cedeec531cce217b5117b5d471b1e468 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b9c951d8cedeec531cce217b5117b5d471b1e468/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
738,
87,
12,
2890,
16,
380,
1968,
4672,
327,
2230,
12,
588,
1747,
12,
2890,
18,
1711,
16,
365,
18,
529,
2934,
9,
87,
16,
833,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
738,
87,
12,
2890,
16,
380,
1968,
4672,
327,
2230,
12,
588,
1747,
12,
2890,
18,
1711,
16,
365,
18,
529,
2934,
9,
87,
16,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.parent.dendrogram.setCutOffLine(e.pos().x()) | self.parent.dendrogram.setCutOffLine(pos.x()) | def mousePressEvent(self, e): if e.pos().x()<0 and e.pos().x()>leftMargin+self.scene().treeAreaW: return self.commitStatus=self.parent.CommitOnChange self.parent.CommitOnChange=False self.marker=self.scene().marker self.markerPos=e.pos().x()+3 self.marker.setPos(self.markerPos-3,0) self.markerDragged=True self.parent.d... | 94b725165088a81ea27b58e2ace96e30782609f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/94b725165088a81ea27b58e2ace96e30782609f4/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
425,
4672,
309,
425,
18,
917,
7675,
92,
1435,
32,
20,
471,
425,
18,
917,
7675,
92,
1435,
34,
4482,
9524,
15,
2890,
18,
23694,
7675,
3413,
5484,
59,
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,
7644,
11840,
1133,
12,
2890,
16,
425,
4672,
309,
425,
18,
917,
7675,
92,
1435,
32,
20,
471,
425,
18,
917,
7675,
92,
1435,
34,
4482,
9524,
15,
2890,
18,
23694,
7675,
3413,
5484,
59,
3... |
cases = ("*sort", "\\sort", "/sort", "~sort", "-sort", "!sort") fmt = ("%2s %6s" + " %6s"*len(cases)) | cases = ("*sort", "\\sort", "/sort", "~sort", "=sort", "!sort") fmt = ("%2s %7s" + " %6s"*len(cases)) | def tabulate(r): """Tabulate sort speed for lists of various sizes. The sizes are 2**i for i in r (the argument, a list). The output displays i, 2**i, and the time to sort arrays of 2**i floating point numbers with the following properties: *sort: random data \sort: descending data /sort: ascending data ~sort: many ... | f8afed6f99fca0ae1d7e089553421e556949d15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f8afed6f99fca0ae1d7e089553421e556949d15e/sortperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3246,
6243,
12,
86,
4672,
3536,
5661,
6243,
1524,
8632,
364,
6035,
434,
11191,
8453,
18,
225,
1021,
8453,
854,
576,
636,
77,
364,
277,
316,
436,
261,
5787,
1237,
16,
279,
666,
2934,
22... |
rlib_query_refresh = _librlib.rlib_query_refresh | rlib_query_refresh = _rlib.rlib_query_refresh | def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name | 5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... |
return eval(maxima.eval("jacobi_sn(%s,%s)"%(RR(x),RR(m)))) | return eval(maxima.eval("jacobi_sn(%s,%s)"%(float(x),float(m)))) | def jacobi(sym,x,m): r""" Here sym = "pq", where p,q in {c,d,n,s}. This returns the value of the Jacobi function pq(x,m), as described in the documentation for SAGE's "special" module. There are a total of 12 functions described by this. EXAMPLES: sage: jacobi("sn",1,1) 0.76159415595576485 sage: jacobi("cd",1,1/2) 0.7... | 9a0ab89f387827fef6f9118a65362ee1e0032bd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9a0ab89f387827fef6f9118a65362ee1e0032bd5/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20138,
30875,
12,
8117,
16,
92,
16,
81,
4672,
436,
8395,
13743,
5382,
273,
315,
84,
85,
3113,
1625,
293,
16,
85,
316,
288,
71,
16,
72,
16,
82,
16,
87,
5496,
1220,
1135,
326,
460,
4... |
url='http://pypi.python.org/pypi/zope.location/', | url='http://pypi.python.org/pypi/zope.minmax/', | def read(*rnames): text = open(os.path.join(os.path.dirname(__file__), *rnames)).read() return text | 1b4e7f045fcf24d5be1e137dc378fb201abd4f12 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9761/1b4e7f045fcf24d5be1e137dc378fb201abd4f12/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
977,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
327,
977,
225,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
977,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
327,
977,
225,
2,
... |
learner.__init__(name) return learner(data) | learner.__init__(name, nc=nc) return learner(data, y) | def __new__(self, data=None, name='PLS regression', **kwds): learner = object.__new__(self, **kwds) if data: learner.__init__(name) # force init return learner(data) else: return learner # invokes the __init__ | 2f0d6c2e9c037aae88c832940eb40e18d9619a80 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/2f0d6c2e9c037aae88c832940eb40e18d9619a80/orngRegression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
2890,
16,
501,
33,
7036,
16,
508,
2218,
52,
3045,
23215,
2187,
2826,
25577,
4672,
884,
24834,
273,
733,
16186,
2704,
972,
12,
2890,
16,
2826,
25577,
13,
309,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2704,
972,
12,
2890,
16,
501,
33,
7036,
16,
508,
2218,
52,
3045,
23215,
2187,
2826,
25577,
4672,
884,
24834,
273,
733,
16186,
2704,
972,
12,
2890,
16,
2826,
25577,
13,
309,
501,
... |
if len(gens) == 1 and isinstance(gens[0], (list, tuple)): | if len(gens) == 1: | def ideal(self, *gens, **kwds): if len(gens) == 1 and isinstance(gens[0], (list, tuple)): gens = gens[0] from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular if not isinstance(self.__R,MPolynomialRing_libsingular) and not self.__R._has_singular: # pass through MPolynomialRing_gener... | 5e2948952d1d0a00c532cc92f6065cfa7ae89b93 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5e2948952d1d0a00c532cc92f6065cfa7ae89b93/quotient_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23349,
12,
2890,
16,
380,
23730,
16,
2826,
25577,
4672,
309,
562,
12,
23730,
13,
422,
404,
30,
314,
773,
273,
314,
773,
63,
20,
65,
628,
272,
410,
18,
86,
899,
18,
3915,
13602,
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,
23349,
12,
2890,
16,
380,
23730,
16,
2826,
25577,
4672,
309,
562,
12,
23730,
13,
422,
404,
30,
314,
773,
273,
314,
773,
63,
20,
65,
628,
272,
410,
18,
86,
899,
18,
3915,
13602,
18,
... |
self.model_set_id=False | self.model_set_id = False | def _path_get(self,cr, uid, models, filter_ids=[]): | 3ce94fbb4cda7fde0df00f8c09db25093d0b5f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/3ce94fbb4cda7fde0df00f8c09db25093d0b5f11/base_report_creator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
803,
67,
588,
12,
2890,
16,
3353,
16,
4555,
16,
3679,
16,
1034,
67,
2232,
33,
8526,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
803,
67,
588,
12,
2890,
16,
3353,
16,
4555,
16,
3679,
16,
1034,
67,
2232,
33,
8526,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.sendLine("PART else: self.sendLine("PART | self.sendLine("PART %s :%s" % (channel, reason)) else: self.sendLine("PART %s" % (channel,)) | def leave(self, channel, reason=None): if reason: self.sendLine("PART #%s :%s" % (channel, reason)) else: self.sendLine("PART #%s" % (channel,)) | 77af3d0a895df51069178c748fdbe09419e4ac4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/77af3d0a895df51069178c748fdbe09419e4ac4c/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8851,
12,
2890,
16,
1904,
16,
3971,
33,
7036,
4672,
309,
3971,
30,
365,
18,
4661,
1670,
2932,
15055,
31974,
87,
294,
9,
87,
6,
738,
261,
4327,
16,
3971,
3719,
469,
30,
365,
18,
4661,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8851,
12,
2890,
16,
1904,
16,
3971,
33,
7036,
4672,
309,
3971,
30,
365,
18,
4661,
1670,
2932,
15055,
31974,
87,
294,
9,
87,
6,
738,
261,
4327,
16,
3971,
3719,
469,
30,
365,
18,
4661,... |
return map(lambda x: int(x), list(n.binary()[-k:])) | return map(int, list(n.binary()[-k:])) | def least_significant_bits(n, k): r""" Return the ``k`` least significant bits of ``n``. INPUT: - ``n`` -- an integer. - ``k`` -- a positive integer. OUTPUT: - The ``k`` least significant bits of the integer ``n``. If ``k=1``, then return the parity bit of the integer ``n``. Let `b` be the binary representation of... | e2afc15236de548daed970d2a6027441122878c5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/e2afc15236de548daed970d2a6027441122878c5/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4520,
67,
2977,
11120,
67,
6789,
12,
82,
16,
417,
4672,
436,
8395,
2000,
326,
12176,
79,
10335,
4520,
14177,
4125,
434,
12176,
82,
68,
8338,
225,
12943,
30,
225,
300,
12176,
82,
10335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4520,
67,
2977,
11120,
67,
6789,
12,
82,
16,
417,
4672,
436,
8395,
2000,
326,
12176,
79,
10335,
4520,
14177,
4125,
434,
12176,
82,
68,
8338,
225,
12943,
30,
225,
300,
12176,
82,
10335,
... |
register.filter('taxed_sale_price', sale_price) | register.filter('taxed_sale_price', taxed_sale_price) | def taxed_sale_price(product): """Returns the product unit price with the best auto discount applied and taxes included.""" taxer = satchmo_tax._get_taxprocessor() price = untaxed_sale_price(product) price = price + taxer.by_price(product.taxClass, price) return price | e364b235c0cdf280ff4108f594d51279fc8d056a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/e364b235c0cdf280ff4108f594d51279fc8d056a/satchmo_discounts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5320,
329,
67,
87,
5349,
67,
8694,
12,
5896,
4672,
3536,
1356,
326,
3017,
2836,
6205,
598,
326,
3796,
3656,
12137,
6754,
471,
5320,
281,
5849,
12123,
5320,
264,
273,
272,
505,
8683,
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,
5320,
329,
67,
87,
5349,
67,
8694,
12,
5896,
4672,
3536,
1356,
326,
3017,
2836,
6205,
598,
326,
3796,
3656,
12137,
6754,
471,
5320,
281,
5849,
12123,
5320,
264,
273,
272,
505,
8683,
67,
... |
TixSubWidget.__init__(self, master, name, destroy_physically) | TixSubWidget.__init__(self, master, name, destroy_physically) | def __init__(self, master, name, destroy_physically=1): | b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
508,
16,
5546,
67,
844,
1900,
6478,
33,
21,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'first_rev_date': time.strftime('%c', time.localtime(statistic.get_first_rev_date())), 'last_rev_date': time.strftime('%c', time.localtime(statistic.get_last_rev_date())), | 'first_rev_date': time.strftime('%c', time.gmtime(statistic.get_first_rev_date())), 'last_rev_date': time.strftime('%c', time.gmtime(statistic.get_last_rev_date())), | def output(self): statistic = self._statistic return """ <h2><a name=\"%(statistic_name)s\"></a>%(statistic_title)s</h2> | 487cbc298ee8d09832e140350f956006486742d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2516/487cbc298ee8d09832e140350f956006486742d5/msvnstats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
12,
2890,
4672,
21605,
273,
365,
6315,
5642,
5846,
327,
3536,
411,
76,
22,
4438,
69,
508,
5189,
17105,
5642,
5846,
67,
529,
13,
87,
2412,
4695,
69,
9822,
12,
5642,
5846,
67,
2649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
876,
12,
2890,
4672,
21605,
273,
365,
6315,
5642,
5846,
327,
3536,
411,
76,
22,
4438,
69,
508,
5189,
17105,
5642,
5846,
67,
529,
13,
87,
2412,
4695,
69,
9822,
12,
5642,
5846,
67,
2649,... |
raise socket.error, why | raise | def accept(self): # XXX can return either an address pair or None try: conn, addr = self.socket.accept() return conn, addr except socket.error, why: if why[0] == EWOULDBLOCK: pass else: raise socket.error, why | 174bdbc999e59363739b1127b0ced4fa8e25b3dc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/174bdbc999e59363739b1127b0ced4fa8e25b3dc/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
468,
11329,
848,
327,
3344,
392,
1758,
3082,
578,
599,
775,
30,
1487,
16,
3091,
273,
365,
18,
7814,
18,
9436,
1435,
327,
1487,
16,
3091,
1335,
2987,
18,
1636,
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,
2791,
12,
2890,
4672,
468,
11329,
848,
327,
3344,
392,
1758,
3082,
578,
599,
775,
30,
1487,
16,
3091,
273,
365,
18,
7814,
18,
9436,
1435,
327,
1487,
16,
3091,
1335,
2987,
18,
1636,
16,... |
aRealTime = time.time() | def update( self ): """updates this window Returns None """ if not self.exists(): return None # updates time aTime = self.theSession.theSimulator.getCurrentTime() self.theCurrentTime = aTime self['time_entry'].set_text( str( self.theCurrentTime ) ) self['sec_step_entry'].set_text( str( self.theStepSizeOrSec ) ) | da0af0e71ba9d1fe04c9ef18877ef796cad2fc0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/da0af0e71ba9d1fe04c9ef18877ef796cad2fc0c/MainWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
262,
30,
3536,
14703,
333,
2742,
2860,
599,
3536,
309,
486,
365,
18,
1808,
13332,
327,
599,
225,
468,
4533,
813,
279,
950,
273,
365,
18,
5787,
2157,
18,
5787,
7993,
1177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
365,
262,
30,
3536,
14703,
333,
2742,
2860,
599,
3536,
309,
486,
365,
18,
1808,
13332,
327,
599,
225,
468,
4533,
813,
279,
950,
273,
365,
18,
5787,
2157,
18,
5787,
7993,
1177... | |
return xl = aaitem irowq = xi + 0.5 icolq = xj + 0.5 incr.y = xk + 0.5 incr.x = xl + 0.5 | return False xl = int(round(aaitem))-1 dquad.x = xi dquad.y = xj dsect.y = xk dsect.x = xl | def getcd(isprobe, akey): # get course and distance irowq=game.quadrant.x; icolq=game.quadrant.y; key=0 navmode = "unspecified" itemp = "curt" incr = coord() iprompt = False # Get course direction and distance. If user types bad values, return # with DIREC = -1.0. game.direc = -1.0 if game.landed and not isprobe: pro... | b1c9c5334f08ac7846e441ce750b7e9ad119b37d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b1c9c5334f08ac7846e441ce750b7e9ad119b37d/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... |
('Freeze', None, _('_Freeze'), None , None, | ('Freeze', 'screen-freeze', _('_Freeze'), None , None, | def merge_menu(cls, uimanager): 'Merge new values with the uimanager.' global screen cls._actions = gtk.ActionGroup('screen') cls._actions.add_actions([ ('Present', gtk.STOCK_FULLSCREEN, _('_Present'), "F5", None, screen.show), ('Background', gtk.STOCK_CLEAR, _('Bac_kground'), None, None, screen.to_background), ('Logo'... | def195fbc59dc45ac51d9246f0090a00f2161242 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/def195fbc59dc45ac51d9246f0090a00f2161242/screen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
5414,
12,
6429,
16,
582,
381,
1063,
4672,
296,
6786,
394,
924,
598,
326,
582,
381,
1063,
1093,
2552,
5518,
2028,
6315,
4905,
273,
22718,
18,
1803,
1114,
2668,
9252,
6134,
2028,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
5414,
12,
6429,
16,
582,
381,
1063,
4672,
296,
6786,
394,
924,
598,
326,
582,
381,
1063,
1093,
2552,
5518,
2028,
6315,
4905,
273,
22718,
18,
1803,
1114,
2668,
9252,
6134,
2028,... |
well_data = element | def parse(self): print "Parsing: %s" % self.original_file.name.val image = self.image_from_original_file(self.original_file) unloaded_image = ImageI(image.id.val, False) provider = self.original_file_provider data = provider.get_original_file_data(self.original_file) try: events = ('start', 'end') well_data = None n_ro... | 964c0a952df204a5af7efb1260597580c873d30e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/964c0a952df204a5af7efb1260597580c873d30e/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
1316,
273,
365,
18,
2730,
67,
2080,
67,
8830,
67,
768,
12,
2890,
18,
8830,
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,
1109,
12,
2890,
4672,
1172,
315,
13963,
30,
738,
87,
6,
738,
365,
18,
8830,
67,
768,
18,
529,
18,
1125,
1316,
273,
365,
18,
2730,
67,
2080,
67,
8830,
67,
768,
12,
2890,
18,
8830,
6... | |
cls.sum.iget_report_step = cwrapper.prototype("int ecl_sum_iget_report_step( ecl_sum , int )") | cls.sum.iget_report_step = cwrapper.prototype("int ecl_sum_iget_report_step( ecl_sum , int )") | def __initialize__(cls): if cls.__initialized: return | a026af01e09e5843842862062789dff03fb833a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/a026af01e09e5843842862062789dff03fb833a9/ecl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11160,
972,
12,
6429,
4672,
309,
2028,
16186,
13227,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11160,
972,
12,
6429,
4672,
309,
2028,
16186,
13227,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if len(sys.argv) <= 1: rp.set_url('http://www.musi-cal.com/robots.txt') rp.read() else: rp.parse(open(sys.argv[1]).readlines()) print rp.can_fetch('*', 'http://www.musi-cal.com/') print rp.can_fetch('Musi-Cal-Robot/1.0', | rp.set_url('http://www.musi-cal.com/robots.txt') rp.read() _check(rp.can_fetch('*', 'http://www.musi-cal.com/'), 1) _check(rp.can_fetch('', 'http://www.musi-cal.com/'), 0) _check(rp.can_fetch('CherryPickerSE', | def _test(): global debug import sys rp = RobotFileParser() debug = 1 if len(sys.argv) <= 1: rp.set_url('http://www.musi-cal.com/robots.txt') rp.read() else: rp.parse(open(sys.argv[1]).readlines()) print rp.can_fetch('*', 'http://www.musi-cal.com/') print rp.can_fetch('Musi-Cal-Robot/1.0', 'http://www.musi-cal.com/cgi-... | 5bba231d1e78b60c9886405476df92992fb4e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5bba231d1e78b60c9886405476df92992fb4e349/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
2552,
1198,
1930,
2589,
8715,
273,
19686,
352,
812,
2678,
1435,
1198,
273,
404,
282,
8715,
18,
542,
67,
718,
2668,
2505,
2207,
5591,
18,
81,
407,
77,
17,
771,
18,
832... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
2552,
1198,
1930,
2589,
8715,
273,
19686,
352,
812,
2678,
1435,
1198,
273,
404,
282,
8715,
18,
542,
67,
718,
2668,
2505,
2207,
5591,
18,
81,
407,
77,
17,
771,
18,
832... |
if e.errno != 32 : | if e.errno not in (2, 32) : | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 73e96c8911944e2bd2211a17c8ab17883e7706d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7650/73e96c8911944e2bd2211a17c8ab17883e7706d3/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
1299,
12,
2890,
16,
3925,
33,
7036,
16,
1158,
67,
10686,
33,
8381,
16,
4555,
33,
7036,
16,
2581,
33,
8381,
13,
294,
3536,
2504,
279,
729,
3536,
309,
3925,
353,
599,
471,
4555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
1299,
12,
2890,
16,
3925,
33,
7036,
16,
1158,
67,
10686,
33,
8381,
16,
4555,
33,
7036,
16,
2581,
33,
8381,
13,
294,
3536,
2504,
279,
729,
3536,
309,
3925,
353,
599,
471,
4555,
... |
text = message.getBody() | def messageHandler(self, cnx, message): text = message.getBody() user = message.getFrom() | 3a14ff65499f3223e2d04a4c05c38ff71419cac7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3020/3a14ff65499f3223e2d04a4c05c38ff71419cac7/gtalk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
883,
1503,
12,
2890,
16,
29492,
16,
883,
4672,
729,
273,
883,
18,
588,
1265,
1435,
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,
883,
1503,
12,
2890,
16,
29492,
16,
883,
4672,
729,
273,
883,
18,
588,
1265,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
yPoint2 = yWalker.findPrevious( aTime ) | while True: yPoint2 = yWalker.getNext( ) if yPoint2 == 1: break if yPoint2[DP_TIME] > yPoint1[DP_TIME]: break | def requestData( self, aDataSeries, numberOfElements ): ''' update aDataSeries with new data points gotten from whole Logger ''' xAxis = aDataSeries.getXAxis() dataList = zeros( (0,5), LOGGER_TYPECODE ) fullPNString = aDataSeries.getFullPNString() if xAxis == "Time": if self.hasLogger( fullPNString ) : aStartTime = se... | 38f4fcf9656d9f0ec92834a618fc35ecad80903a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/38f4fcf9656d9f0ec92834a618fc35ecad80903a/DataGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19039,
12,
365,
16,
13790,
6485,
16,
7922,
3471,
262,
30,
9163,
1089,
13790,
6485,
598,
394,
501,
3143,
2363,
2253,
628,
7339,
4242,
9163,
21149,
273,
13790,
6485,
18,
588,
60,
6558,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19039,
12,
365,
16,
13790,
6485,
16,
7922,
3471,
262,
30,
9163,
1089,
13790,
6485,
598,
394,
501,
3143,
2363,
2253,
628,
7339,
4242,
9163,
21149,
273,
13790,
6485,
18,
588,
60,
6558,
143... |
self.protocol.transport.loseConnection() | self.protocol.transport._producer.loseConnection() | def stopService(self): service.Service.stopService(self) self.continueTrying = False | 5f94bdebe67cd6c3ea8a1a460549717cc59f7546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11015/5f94bdebe67cd6c3ea8a1a460549717cc59f7546/twitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
1179,
12,
2890,
4672,
1156,
18,
1179,
18,
5681,
1179,
12,
2890,
13,
365,
18,
17143,
18038,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
1179,
12,
2890,
4672,
1156,
18,
1179,
18,
5681,
1179,
12,
2890,
13,
365,
18,
17143,
18038,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def Write(self, qualified_target, output_filename, root, spec, configs): | def Write(self, qualified_target, base_path, output_filename, spec, configs): """The main entry point: writes a .mk file for a single target. Arguments: qualified_target: target we're generating base_path: path relative to source root we're building in, used to resolv target-relative paths output_filename: output .mk... | def Write(self, qualified_target, output_filename, root, spec, configs): print 'Generating %s' % output_filename self.fp = open(output_filename, 'w') | f9714e7e6a79a21e64d4d4ea1dd8802d988134a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/f9714e7e6a79a21e64d4d4ea1dd8802d988134a9/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
12,
2890,
16,
9348,
67,
3299,
16,
1026,
67,
803,
16,
876,
67,
3459,
16,
857,
16,
6784,
4672,
3536,
1986,
2774,
1241,
1634,
30,
7262,
279,
263,
24816,
585,
364,
279,
2202,
1018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
12,
2890,
16,
9348,
67,
3299,
16,
1026,
67,
803,
16,
876,
67,
3459,
16,
857,
16,
6784,
4672,
3536,
1986,
2774,
1241,
1634,
30,
7262,
279,
263,
24816,
585,
364,
279,
2202,
1018,
... |
atts['width'] = int(round(atts['width'] * (float(atts['scale']) / 100))) | atts['width'] = int(round(node['width'] * (float(node['scale']) / 100))) | def visit_image(self, node): atts = node.non_default_attributes() if atts.has_key('classes'): del atts['classes'] # prevent duplication with node attrs atts['src'] = atts['uri'] del atts['uri'] if atts.has_key('scale'): if Image and not (atts.has_key('width') and atts.has_key('height')): try: im = Image.open(st... | 405894e13368bae1517b7e32697bf9ae2ee9e3b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/405894e13368bae1517b7e32697bf9ae2ee9e3b4/html4css1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
15687,
273,
756,
18,
5836,
67,
1886,
67,
4350,
1435,
309,
15687,
18,
5332,
67,
856,
2668,
4701,
11,
4672,
1464,
15687,
3292,
4701,
3546,
540,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
15687,
273,
756,
18,
5836,
67,
1886,
67,
4350,
1435,
309,
15687,
18,
5332,
67,
856,
2668,
4701,
11,
4672,
1464,
15687,
3292,
4701,
3546,
540,
4... |
self.collisionNode.setFromCollideMask(BitMask32().allOff()) self.collisionNode.setCollideGeom(1) | self.collisionNode.setFromCollideMask(GeomNode.getDefaultCollideMask()) | def collideWithGeom(self): # The into collide mask is the bit pattern colliders look at # when deciding whether or not to test for a collision "into" # this collision solid. Set to all Off so this collision solid # will not be considered in any collision tests self.collisionNode.setIntoCollideMask(BitMask32().allOff()... | b3123b3c2d6680e9678288c9946c1e32f10a2db1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b3123b3c2d6680e9678288c9946c1e32f10a2db1/seSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
645,
8130,
1190,
16972,
12,
2890,
4672,
468,
1021,
1368,
645,
8130,
3066,
353,
326,
2831,
1936,
4508,
24290,
2324,
622,
468,
1347,
2109,
10415,
2856,
578,
486,
358,
1842,
364,
279,
17740,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
645,
8130,
1190,
16972,
12,
2890,
4672,
468,
1021,
1368,
645,
8130,
3066,
353,
326,
2831,
1936,
4508,
24290,
2324,
622,
468,
1347,
2109,
10415,
2856,
578,
486,
358,
1842,
364,
279,
17740,
... |
addnPath = win32api.GetFullPathName(scriptDir) | if not pythoncom.frozen: scriptDir = os.path.split(sys.argv[0])[0] if not scriptDir: scriptDir = "." addnPath = win32api.GetFullPathName(scriptDir) | def RegisterClasses(*classes, **flags): quiet = flags.has_key('quiet') and flags['quiet'] debugging = flags.has_key('debug') and flags['debug'] for cls in classes: clsid = cls._reg_clsid_ progID = _get(cls, '_reg_progid_') desc = _get(cls, '_reg_desc_', progID) spec = _get(cls, '_reg_class_spec_') verProgID = _get(cls,... | 378ce8c49bd6fc44808893d79baca496f7f84898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/378ce8c49bd6fc44808893d79baca496f7f84898/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5433,
4818,
30857,
4701,
16,
2826,
7133,
4672,
10902,
273,
2943,
18,
5332,
67,
856,
2668,
20380,
6134,
471,
2943,
3292,
20380,
3546,
10450,
273,
2943,
18,
5332,
67,
856,
2668,
4148,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5433,
4818,
30857,
4701,
16,
2826,
7133,
4672,
10902,
273,
2943,
18,
5332,
67,
856,
2668,
20380,
6134,
471,
2943,
3292,
20380,
3546,
10450,
273,
2943,
18,
5332,
67,
856,
2668,
4148,
6134,
... |
tcm_del_alua_tgptgp(None, None, vals, None) | __tcm_del_alua_tgptgp(None, None, vals, None) | def tcm_freevirtdev(option, opt_str, value, parser): cfs_unsplit = str(value) cfs_path = cfs_unsplit.split('/') hba_cfs = cfs_path[0] dev_vfs_alias = cfs_path[1] print " ConfigFS HBA: " + hba_cfs print " ConfigFS Device Alias: " + dev_vfs_alias cfs_dev_path = tcm_get_cfs_prefix(cfs_unsplit) if (os.path.isdir(cfs_dev_p... | e632383be4ac3634325551b8fbc152bb2d2f5fc2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/e632383be4ac3634325551b8fbc152bb2d2f5fc2/tcm_node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1715,
81,
67,
9156,
14035,
5206,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
276,
2556,
67,
318,
4939,
273,
609,
12,
1132,
13,
276,
2556,
67,
803,
273,
276,
2556,
67,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1715,
81,
67,
9156,
14035,
5206,
12,
3482,
16,
2153,
67,
701,
16,
460,
16,
2082,
4672,
276,
2556,
67,
318,
4939,
273,
609,
12,
1132,
13,
276,
2556,
67,
803,
273,
276,
2556,
67,
318,
... |
query = simplejson.loads(i.q) except ValueError: return format({"status":"error"}, i.prettyprint) | query = simplejson.loads(i.q).get('query') except (ValueError, TypeError): return format(self.error_val, i.prettyprint, i.callback) dval = dict() | def format(val, pp=False): if pp: return simplejson.dumps(val, indent = 4) else: return simplejson.dumps(val) | f95fa2c2941dcfc5b7506da28fadae98eda18e61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/f95fa2c2941dcfc5b7506da28fadae98eda18e61/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
1125,
16,
8228,
33,
8381,
4672,
309,
8228,
30,
327,
4143,
1977,
18,
13302,
1121,
12,
1125,
16,
3504,
273,
1059,
13,
469,
30,
327,
4143,
1977,
18,
13302,
1121,
12,
1125,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
1125,
16,
8228,
33,
8381,
4672,
309,
8228,
30,
327,
4143,
1977,
18,
13302,
1121,
12,
1125,
16,
3504,
273,
1059,
13,
469,
30,
327,
4143,
1977,
18,
13302,
1121,
12,
1125,
13,
... |
if name == " | if (name == " | def parsePreproc(self, token): | add93d3e9ead9ac1f1292b9859f7932bb2a88fae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/add93d3e9ead9ac1f1292b9859f7932bb2a88fae/apibuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1386,
9381,
12,
2890,
16,
1147,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1386,
9381,
12,
2890,
16,
1147,
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,
-10... |
def host_metrics_get_host(self, _, ref): return xen_api_success(XendNode.instance().uuid) | def host_metrics_get_record(self, _, ref): return xen_api_success({ 'uuid' : ref, 'host' : XendNode.instance().uuid, 'memory_total' : self._host_metrics_get_memory_total(), 'memory_free' : self._host_metrics_get_memory_free(), }) | ea227c18fa5fd018f3d60a77f507f8ca1b3cf9ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/ea227c18fa5fd018f3d60a77f507f8ca1b3cf9ba/XendAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1479,
67,
9597,
67,
588,
67,
3366,
12,
2890,
16,
389,
16,
1278,
4672,
327,
23048,
67,
2425,
67,
4768,
12590,
296,
7080,
11,
540,
294,
1278,
16,
296,
2564,
11,
540,
294,
1139,
409,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1479,
67,
9597,
67,
588,
67,
3366,
12,
2890,
16,
389,
16,
1278,
4672,
327,
23048,
67,
2425,
67,
4768,
12590,
296,
7080,
11,
540,
294,
1278,
16,
296,
2564,
11,
540,
294,
1139,
409,
90... | |
def SRMSpaceTokenDeployment(self): | def SRMSpaceTokenDeployment( self ): | def SRMSpaceTokenDeployment(self): return self.__showPlotPage( "SRMSpaceTokenDeployment", "/systems/accounting/SRMSpaceTokenDeployment.mako" ) | 58668d6b0627a86d62021e84f19a1c9e98f1340e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12767/58668d6b0627a86d62021e84f19a1c9e98f1340e/accountingPlots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19145,
3537,
909,
1345,
6733,
12,
365,
262,
30,
327,
365,
16186,
4500,
11532,
1964,
12,
315,
10090,
3537,
909,
1345,
6733,
3113,
2206,
4299,
87,
19,
4631,
310,
19,
10090,
3537,
909,
1345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19145,
3537,
909,
1345,
6733,
12,
365,
262,
30,
327,
365,
16186,
4500,
11532,
1964,
12,
315,
10090,
3537,
909,
1345,
6733,
3113,
2206,
4299,
87,
19,
4631,
310,
19,
10090,
3537,
909,
1345... |
self.type = RStringI() | self.type = RStringI("") | def __init__(self, name, optional = False, out = False): Type.__init__(self, name, optional, out) self.type = RStringI() | ad1144938db480a01e60d3b45303d60c73d37c2d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/ad1144938db480a01e60d3b45303d60c73d37c2d/scripts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
3129,
273,
1083,
16,
596,
273,
1083,
4672,
1412,
16186,
2738,
972,
12,
2890,
16,
508,
16,
3129,
16,
596,
13,
365,
18,
723,
273,
534,
780,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
3129,
273,
1083,
16,
596,
273,
1083,
4672,
1412,
16186,
2738,
972,
12,
2890,
16,
508,
16,
3129,
16,
596,
13,
365,
18,
723,
273,
534,
780,
45,
... |
use_menu = False | default_classprefs = ( BoolParam('use_menu', False, 'Place the debug class list in the menu bar'), ) | def OnCheckListBox(self, evt): index = evt.GetSelection() self.debuglist.action(index) assert self.dprint("index=%d checked=%s" % (index, self.debuglist.isChecked(index))) self.Check(index, self.debuglist.isChecked(index)) | 6078bfdc1efb8e29b7a4028200db71a2948b0cd8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/6078bfdc1efb8e29b7a4028200db71a2948b0cd8/debug_classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1564,
682,
3514,
12,
2890,
16,
6324,
4672,
770,
273,
6324,
18,
967,
6233,
1435,
365,
18,
4148,
1098,
18,
1128,
12,
1615,
13,
1815,
365,
18,
72,
1188,
2932,
1615,
5095,
72,
5950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1564,
682,
3514,
12,
2890,
16,
6324,
4672,
770,
273,
6324,
18,
967,
6233,
1435,
365,
18,
4148,
1098,
18,
1128,
12,
1615,
13,
1815,
365,
18,
72,
1188,
2932,
1615,
5095,
72,
5950,
... |
sage: -FormalSum([(1,3),(2,5)]) | sage: -FormalSum([(1,3),(2,5)]) | def _neg_(self): """ EXAMPLES:: | f694767c840c72be7302e5a460f8f17135b3051a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f694767c840c72be7302e5a460f8f17135b3051a/formal_sum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14518,
67,
12,
2890,
4672,
3536,
5675,
8900,
11386,
2866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14518,
67,
12,
2890,
4672,
3536,
5675,
8900,
11386,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if pending: print 'EN RECURRENTE SLC.ID %s Y SML_ID %s'%(scl.id,sml_id) | def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p... | 62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
764,
297,
67,
5896,
83,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
10791,
67,
350,
16,
9696,
16,
1515,
67,
2232,
16,
1554,
67,
1829,
67,
2232,
16,
10791,
67,
1829,
67,
2232,
... | |
Window.close(self) | wx.Window.Close(self) base.closeWindow(self.win) | def close(self): """Closes the viewport.""" if self.initialized: Window.close(self) ViewportManager.viewports.remove(self) | 48ba0b5c714545f0b7594aaafb3163eeda332d67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7242/48ba0b5c714545f0b7594aaafb3163eeda332d67/ViewPort.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
18545,
326,
10482,
12123,
309,
365,
18,
13227,
30,
7075,
18,
3829,
18,
4605,
12,
2890,
13,
1026,
18,
4412,
3829,
12,
2890,
18,
8082,
13,
4441,
655,
1318,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
18545,
326,
10482,
12123,
309,
365,
18,
13227,
30,
7075,
18,
3829,
18,
4605,
12,
2890,
13,
1026,
18,
4412,
3829,
12,
2890,
18,
8082,
13,
4441,
655,
1318,
18... |
self.r_arm_angles = r_arm_angles self.r_arm_efforts = r_arm_efforts | self.arm_angles[0] = arm_angles[0] self.arm_efforts[0] = arm_efforts[0] | def joint_states_cb(self, data): r_arm_angles = [] r_arm_efforts = [] l_arm_angles = [] l_arm_efforts = [] r_jt_idx_list = [17, 18, 16, 20, 19, 21, 22] l_jt_idx_list = [31, 32, 30, 34, 33, 35, 36] for i,nm in enumerate(self.joint_nm_list): idx = r_jt_idx_list[i] if data.name[idx] != 'r_'+nm+'_joint': raise RuntimeError... | 3a682eff0bfca2c49f435a978c645b4e046ad110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/3a682eff0bfca2c49f435a978c645b4e046ad110/simple_arm_trajectories.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15916,
67,
7992,
67,
7358,
12,
2890,
16,
501,
4672,
436,
67,
4610,
67,
12356,
273,
5378,
436,
67,
4610,
67,
17098,
499,
87,
273,
5378,
328,
67,
4610,
67,
12356,
273,
5378,
328,
67,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15916,
67,
7992,
67,
7358,
12,
2890,
16,
501,
4672,
436,
67,
4610,
67,
12356,
273,
5378,
436,
67,
4610,
67,
17098,
499,
87,
273,
5378,
328,
67,
4610,
67,
12356,
273,
5378,
328,
67,
4... |
try: return DateTime.strptime(d, '%H:%M:%S'), tz except: pass | def _dateConvertFromDB(d): if d==None: return None try: return DateTime.strptime(d, '%Y-%m-%d') #just Y/M/D except: pass try: return DateTime.strptime(d, '%H:%M:%S') #just hh:mm:ss except: pass dashind = string.rindex(d, '-') tz = d[dashind:] d = d[:dashind] try: return DateTime.strptime(d, '%H:%M:%S'), tz # timetz e... | 119236e30f6300c964069b6c46f74b6d8a592c68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/119236e30f6300c964069b6c46f74b6d8a592c68/postconn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
712,
2723,
1265,
2290,
12,
72,
4672,
309,
302,
631,
7036,
30,
327,
599,
775,
30,
327,
3716,
18,
701,
10650,
12,
72,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
468,
3732,
1624,
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,
389,
712,
2723,
1265,
2290,
12,
72,
4672,
309,
302,
631,
7036,
30,
327,
599,
775,
30,
327,
3716,
18,
701,
10650,
12,
72,
16,
1995,
61,
6456,
81,
6456,
72,
6134,
468,
3732,
1624,
19,
... | |
def residue_field(self, prime, names = None, check = False): | def residue_field(self, prime, names = None, check = True): | def residue_field(self, prime, names = None, check = False): """ Return the residue field of this number field at a given prime, ie $O_K / p O_K$. | fc1053c8c7d939a5da17aae921da72e26476aec3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fc1053c8c7d939a5da17aae921da72e26476aec3/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14765,
67,
1518,
12,
2890,
16,
17014,
16,
1257,
273,
599,
16,
866,
273,
1053,
4672,
3536,
2000,
326,
14765,
652,
434,
333,
1300,
652,
622,
279,
864,
17014,
16,
9228,
271,
51,
67,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14765,
67,
1518,
12,
2890,
16,
17014,
16,
1257,
273,
599,
16,
866,
273,
1053,
4672,
3536,
2000,
326,
14765,
652,
434,
333,
1300,
652,
622,
279,
864,
17014,
16,
9228,
271,
51,
67,
47,
... |
u = s.decode('utf8') | u = s.decode(s.startswith(codecs.BOM_UTF16_BE) and 'utf16' or 'utf8') | def format(self, document): s = self.s enc = getattr(self,'enc','auto') if type(s) is str: if enc is 'auto': try: u = s.decode('utf8') except: import sys print >>sys.stderr, 'Error in',repr(s) raise if _checkPdfdoc(u): s = u.encode('pdfdoc') else: s = codecs.BOM_UTF16_BE+u.encode('utf_16_be') elif type(s) is unicode: i... | ba888cfe62b7244b5955a421fab9f32946b1fe12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/ba888cfe62b7244b5955a421fab9f32946b1fe12/pdfdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
1668,
4672,
272,
273,
365,
18,
87,
2446,
273,
3869,
12,
2890,
11189,
1331,
17023,
6079,
6134,
309,
618,
12,
87,
13,
353,
609,
30,
309,
2446,
353,
296,
6079,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2890,
16,
1668,
4672,
272,
273,
365,
18,
87,
2446,
273,
3869,
12,
2890,
11189,
1331,
17023,
6079,
6134,
309,
618,
12,
87,
13,
353,
609,
30,
309,
2446,
353,
296,
6079,
4278,
... |
EXAMPLES: | EXAMPLES:: | def __setstate__(self, state): r""" Set the state of a TestBuildSetstate. Both prints a message, and swaps x and y, to verify that it is being called. | 03555b4381371de7688c2f08f833898ba9658b7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/03555b4381371de7688c2f08f833898ba9658b7b/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
919,
4672,
436,
8395,
1000,
326,
919,
434,
279,
7766,
3116,
694,
2019,
18,
225,
19118,
14971,
279,
883,
16,
471,
1352,
6679,
619,
471,
677,
16,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
2019,
972,
12,
2890,
16,
919,
4672,
436,
8395,
1000,
326,
919,
434,
279,
7766,
3116,
694,
2019,
18,
225,
19118,
14971,
279,
883,
16,
471,
1352,
6679,
619,
471,
677,
16,
358,... |
keys = dict1.keys() keys.extend(dict2.keys()) diff_keys = [ key for key in keys if not (dict1.has_key(key) and dict2.has_key(key)) ] default = 'Following keys are different: %s' % (', '.join(diff_keys)) _verify_condition(len(diff_keys) == 0, default, msg, values) self.dictionary_should_contain_sub_dictionary(dict1, dic... | keys = self._keys_should_be_equal(dict1, dict2, msg, values) self._key_values_should_be_equal(keys, dict1, dict2, msg, values) | def dictionaries_should_be_equal(self, dict1, dict2, msg=None, values=True): """Fails if the given lists are unequal. First the equality of dictionaries' keys is checked and after that all the key value pairs. If there are differences between the values, those are listed in an error message, for example with dictionar... | 2f5075140c0afeaf5bda26b5924aceb3478d1a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/2f5075140c0afeaf5bda26b5924aceb3478d1a14/Collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16176,
67,
13139,
67,
2196,
67,
9729,
12,
2890,
16,
2065,
21,
16,
2065,
22,
16,
1234,
33,
7036,
16,
924,
33,
5510,
4672,
3536,
30800,
309,
326,
864,
6035,
854,
640,
9729,
18,
225,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16176,
67,
13139,
67,
2196,
67,
9729,
12,
2890,
16,
2065,
21,
16,
2065,
22,
16,
1234,
33,
7036,
16,
924,
33,
5510,
4672,
3536,
30800,
309,
326,
864,
6035,
854,
640,
9729,
18,
225,
57... |
if tag.has_key('href') and not self.link_exclude.match(tag['href'])\ and urlparse(tag['href'])[0] in ('', 'file'): path = munge_paths(self.target_prefix, tag['href'])[0] ext = os.path.splitext(path)[1] if ext: ext = ext[1:].lower() enc = sys.getfilesystemencoding() if not enc: enc = 'utf8' if isinstance(path, unicode):... | if tag.has_key('href') and not self.link_exclude.match(tag['href']): if urlparse(tag['href'])[0] not in ('', 'file'): self.process_children(tag, tag_css, tag_pseudo_css) else: path = munge_paths(self.target_prefix, tag['href'])[0] ext = os.path.splitext(path)[1] if ext: ext = ext[1:].lower() enc = sys.getfilesystemenc... | def parse_tag(self, tag, parent_css): try: tagname = tag.name.lower() except AttributeError: if not isinstance(tag, HTMLConverter.IGNORED_TAGS): self.add_text(tag, parent_css, {}) return tag_css, tag_pseudo_css = self.tag_css(tag, parent_css=parent_css) try: # Skip element if its display attribute is set to none if tag... | 809ba2f328a68eb187c048400a20521f9d86997c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/809ba2f328a68eb187c048400a20521f9d86997c/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2692,
12,
2890,
16,
1047,
16,
982,
67,
5212,
4672,
775,
30,
25586,
273,
1047,
18,
529,
18,
8167,
1435,
1335,
6394,
30,
309,
486,
1549,
12,
2692,
16,
3982,
5072,
18,
3047,
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,
1109,
67,
2692,
12,
2890,
16,
1047,
16,
982,
67,
5212,
4672,
775,
30,
25586,
273,
1047,
18,
529,
18,
8167,
1435,
1335,
6394,
30,
309,
486,
1549,
12,
2692,
16,
3982,
5072,
18,
3047,
3... |
str0 = str(ssd) | ssd0 = ssd | def mat_reciprocal(self,dim): # symbolic program # broadcastable=[False,False] means that the shape of matrix is two dimensional, # and none of the dimensions are constrained to have length 1. # Note that Tensor's constructor does not actually allocate any memory. # TODO: Make Tensor syntax more explicit, and maybe giv... | b91f5e633d63f7bf7099ee55a9ef290ad8352f93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/b91f5e633d63f7bf7099ee55a9ef290ad8352f93/test_basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4834,
67,
266,
3449,
30101,
12,
2890,
16,
3509,
4672,
468,
16754,
5402,
468,
8959,
429,
22850,
8381,
16,
8381,
65,
4696,
716,
326,
2179,
434,
3148,
353,
2795,
17469,
16,
468,
471,
6555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4834,
67,
266,
3449,
30101,
12,
2890,
16,
3509,
4672,
468,
16754,
5402,
468,
8959,
429,
22850,
8381,
16,
8381,
65,
4696,
716,
326,
2179,
434,
3148,
353,
2795,
17469,
16,
468,
471,
6555,
... |
self.time = time | self.time = t or time.time() | def insert(self, filename, fileobj, size, time=time.time(), db=None): if not db: db = self.env.get_db_cnx() handle_ta = True else: handle_ta = False | 7b6ff43e7a4852994bd4003bd984c847dd855703 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7b6ff43e7a4852994bd4003bd984c847dd855703/attachment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
1544,
16,
17041,
16,
963,
16,
813,
33,
957,
18,
957,
9334,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
12,
2890,
16,
1544,
16,
17041,
16,
963,
16,
813,
33,
957,
18,
957,
9334,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
365,
18,
3074,
18,
588,
67,
1966,
67,
10305,
92,
... |
content.append(todo_info['todo']) | content.append(todo_entry) | def process_todo_nodes(app, doctree, fromdocname): if not app.config['todo_include_todos']: for node in doctree.traverse(todo_node): node.parent.remove(node) # Replace all todolist nodes with a list of the collected todos. # Augment each todo with a backlink to the original location. env = app.builder.env if not hasa... | 8ac02bfa30933f97dd944cc0f1e4be2e656d7f86 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/8ac02bfa30933f97dd944cc0f1e4be2e656d7f86/todo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
9012,
67,
4690,
12,
2910,
16,
31263,
992,
16,
628,
2434,
529,
4672,
309,
486,
595,
18,
1425,
3292,
9012,
67,
6702,
67,
88,
369,
538,
3546,
30,
364,
756,
316,
31263,
992,
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,
1207,
67,
9012,
67,
4690,
12,
2910,
16,
31263,
992,
16,
628,
2434,
529,
4672,
309,
486,
595,
18,
1425,
3292,
9012,
67,
6702,
67,
88,
369,
538,
3546,
30,
364,
756,
316,
31263,
992,
18... |
setattr(self, func.__name__, action) | setattr(uiManager, func.__name__, action) | def __init__(self, uiManager, name=None): if name == None: name = self.__class__.__name__ | cab51a71fb93a9cecf5da8538bf4b838683e089c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/cab51a71fb93a9cecf5da8538bf4b838683e089c/uimanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
1318,
16,
508,
33,
7036,
4672,
309,
508,
422,
599,
30,
508,
273,
365,
16186,
1106,
972,
16186,
529,
972,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
1318,
16,
508,
33,
7036,
4672,
309,
508,
422,
599,
30,
508,
273,
365,
16186,
1106,
972,
16186,
529,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
latestfiles = listfiles(localpackage) | latestfiles = listZipFiles(locallatestpackage) | def listZipVaadinJarFiles(zipfile, vaadinversion): jarfile = "vaadin-%s/WebContent/vaadin-%s.jar" % (vaadinversion, vaadinversion) extractedjar = "/tmp/vaadinjar-tmp-%d.jar" % (os.getpid()) tarcmd = "unzip -p %s %s > %s " % (zipfile, jarfile, extractedjar) command (tarcmd) files = listJarFiles(extractedjar) command ("r... | bad9380ff937f919d937a70ec84e21e8706f6ba9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2039/bad9380ff937f919d937a70ec84e21e8706f6ba9/package-diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
9141,
31520,
10813,
2697,
12,
4450,
768,
16,
14162,
25422,
1589,
4672,
7334,
768,
273,
315,
15304,
25422,
6456,
87,
19,
4079,
1350,
19,
15304,
25422,
6456,
87,
18,
11930,
6,
738,
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,
666,
9141,
31520,
10813,
2697,
12,
4450,
768,
16,
14162,
25422,
1589,
4672,
7334,
768,
273,
315,
15304,
25422,
6456,
87,
19,
4079,
1350,
19,
15304,
25422,
6456,
87,
18,
11930,
6,
738,
26... |
if plotname == 'dayrain': pass | def genImages(self, archive, time_ts): """Generate the images. The time scales will be chosen to include the given timestamp, with nice beginning and ending times. time_ts: The time around which plots are to be generated. This will also be used as the bottom label in the plots. [optional. Default is to use the time o... | 6f141407bb67f2014e71785b234f44ed5a510ff0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1013/6f141407bb67f2014e71785b234f44ed5a510ff0/genimages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
8946,
12,
2890,
16,
5052,
16,
813,
67,
3428,
4672,
3536,
4625,
326,
4602,
18,
225,
1021,
813,
18211,
903,
506,
10447,
358,
2341,
326,
864,
2858,
16,
598,
13752,
8435,
471,
11463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
8946,
12,
2890,
16,
5052,
16,
813,
67,
3428,
4672,
3536,
4625,
326,
4602,
18,
225,
1021,
813,
18211,
903,
506,
10447,
358,
2341,
326,
864,
2858,
16,
598,
13752,
8435,
471,
11463,
... | |
self.run_boottool('--update-kernel=%s --args=%s' % \ (kernel, args) ) | parameters = '--update-kernel=%s --args="%s"' % (kernel, args) if self.xen_mode: parameters += ' --xen' self.run_boottool(parameters) | def add_args(self, kernel, args): self.run_boottool('--update-kernel=%s --args=%s' % \ (kernel, args) ) | 0bfac1b381cf41c473f13f3871a5959c3e9c8ebc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/0bfac1b381cf41c473f13f3871a5959c3e9c8ebc/boottool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1968,
12,
2890,
16,
5536,
16,
833,
4672,
365,
18,
2681,
67,
7137,
6738,
2668,
413,
2725,
17,
8111,
5095,
87,
1493,
1968,
5095,
87,
11,
738,
521,
261,
8111,
16,
833,
13,
262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
67,
1968,
12,
2890,
16,
5536,
16,
833,
4672,
365,
18,
2681,
67,
7137,
6738,
2668,
413,
2725,
17,
8111,
5095,
87,
1493,
1968,
5095,
87,
11,
738,
521,
261,
8111,
16,
833,
13,
262,... |
exts.append( Extension('_Win', ['win/_Winmodule.c']) ) | exts.append( Extension('_Win', ['win/_Winmodule.c'], extra_link_args=['-framework', 'Carbon']) ) | def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.insert(0, '/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.insert(0, '/usr/local/include' ) | c5633ab7ef847ddf095f70bdcaf9fe6de376bb8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c5633ab7ef847ddf095f70bdcaf9fe6de376bb8c/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,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... |
if request.method == 'POST': return redirect('blocks') else: districts = get_user_districts(request) blocks = Block.objects.filter(district__in = districts).distinct().order_by("-id")[offset:limit] if(blocks): json_subcat = serializers.serialize("json", blocks, relations=('district')) else: json_subcat = 'EOF' return ... | if request.method == 'POST': return redirect('blocks') else: districts = get_user_districts(request) blocks = Block.objects.filter(district__in = districts).distinct().order_by("-id")[offset:limit] if(blocks): json_subcat = serializers.serialize("json", blocks, relations=('district')) else: json_subcat = 'EOF' return ... | def get_blocks_online(request, offset, limit): if request.method == 'POST': return redirect('blocks') else: districts = get_user_districts(request) blocks = Block.objects.filter(district__in = districts).distinct().order_by("-id")[offset:limit] if(blocks): json_subcat = serializers.serialize("json", blocks, relations=... | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7996,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
7996,
6134,
469,
30,
1015,
5792,
87,
273,
336,
67,
1355,
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,
336,
67,
7996,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
7996,
6134,
469,
30,
1015,
5792,
87,
273,
336,
67,
1355,
67,
... |
self.send_error(501, "Unsupported method (%s)" % `command`) | self.send_error(501, "Unsupported method (%s)" % `mname`) | def handle(self): | 8268bcaa11f9fa84fdd45982a4f47f2530f16c37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8268bcaa11f9fa84fdd45982a4f47f2530f16c37/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
generic_ppc64.__init__(self,myspec) | arch_ppc64.__init__(self,myspec) | def __init__(self,myspec): generic_ppc64.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -pipe -mcpu=power4 -mtune=power4" self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=power4 -mtune=power4" | 4ce444ffe2ca89bd7b24677dc8f1d83016c6b737 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/4ce444ffe2ca89bd7b24677dc8f1d83016c6b737/ppc64.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
6637,
67,
84,
2436,
1105,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
8955,
6552,
55,
11929,
1546,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
6637,
67,
84,
2436,
1105,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
8955,
6552,
55,
11929,
1546,
17,
... |
self.assertEqual('http://autotest', rpc.get_autotest_server(None)) | GLOBAL_CONFIG.override_config_value('SERVER', 'hostname', 'Prince') self.assertEqual('http://Prince', rpc.get_autotest_server(None)) | def test_get_autotest_server_none(self): self.assertEqual('http://autotest', rpc.get_autotest_server(None)) | 15ffba31fd2d648e98f9302dfbed8f8ca22e8571 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/15ffba31fd2d648e98f9302dfbed8f8ca22e8571/rpc_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
5854,
352,
395,
67,
3567,
67,
6102,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
2505,
2207,
5854,
352,
395,
2187,
6724,
18,
588,
67,
5854,
352,
395,
67,
3567,
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,
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,
588,
67,
5854,
352,
395,
67,
3567,
67,
6102,
12,
2890,
4672,
365,
18,
11231,
5812,
2668,
2505,
2207,
5854,
352,
395,
2187,
6724,
18,
588,
67,
5854,
352,
395,
67,
3567,
12,
... |
while lineno is None and node: | while lineno is None: | def check(self, node, docname): uri = node['refuri'] | 582896a0f0d2c07fa6f8d8ce046e822781bb35be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/582896a0f0d2c07fa6f8d8ce046e822781bb35be/linkcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
756,
16,
997,
529,
4672,
2003,
273,
756,
3292,
1734,
1650,
3546,
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,
866,
12,
2890,
16,
756,
16,
997,
529,
4672,
2003,
273,
756,
3292,
1734,
1650,
3546,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
) | ) | def subcollection(self, name): coll = Collection.subcollection(self, name) if coll: return coll else: return Song(self, name) | 94ef7893d5420c833293379b7ff14f3df7e583b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2515/94ef7893d5420c833293379b7ff14f3df7e583b2/as_collection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
5548,
12,
2890,
16,
508,
4672,
4508,
273,
2200,
18,
1717,
5548,
12,
2890,
16,
508,
13,
309,
4508,
30,
327,
4508,
469,
30,
327,
348,
932,
12,
2890,
16,
508,
13,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
720,
5548,
12,
2890,
16,
508,
4672,
4508,
273,
2200,
18,
1717,
5548,
12,
2890,
16,
508,
13,
309,
4508,
30,
327,
4508,
469,
30,
327,
348,
932,
12,
2890,
16,
508,
13,
2,
-100,
-100,
... |
substoreItem = substore.SubStore(s, ('app', offering.name + '.axiom')) | substoreItem = substore.SubStore.createNew(s, ('app', offering.name + '.axiom')) | def siteSetup(): for (requiredInterface, requiredPowerup) in offering.siteRequirements: if requiredInterface is not None: nn = requiredInterface(s, None) if nn is not None: continue if requiredPowerup is None: raise NotImplementedError( 'Interface %r required by %r but not provided by %r' % (requiredInterface, offering... | 436c2f96cda2ac242176b4a39f78abdc9d642d9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/436c2f96cda2ac242176b4a39f78abdc9d642d9a/offering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2834,
7365,
13332,
364,
261,
4718,
1358,
16,
1931,
13788,
416,
13,
316,
10067,
310,
18,
4256,
15465,
30,
309,
1931,
1358,
353,
486,
599,
30,
7761,
273,
1931,
1358,
12,
87,
16,
599,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2834,
7365,
13332,
364,
261,
4718,
1358,
16,
1931,
13788,
416,
13,
316,
10067,
310,
18,
4256,
15465,
30,
309,
1931,
1358,
353,
486,
599,
30,
7761,
273,
1931,
1358,
12,
87,
16,
599,
13,... |
def init(ui, source=None, **opts): """create a new repository or (deprecated, use clone) copy an existing one""" | def init(ui, source=None): """create a new repository in the current directory""" | def init(ui, source=None, **opts): """create a new repository or (deprecated, use clone) copy an existing one""" if source: ui.warn("this use of init is deprecated: use \"hg clone\" instead\n") opts['no-update'] = not opts['update'] clone(ui, source, None, **opts) else: repo = hg.repository(ui, ".", create=1) | 91ebd24ce981f3d788d15fafa5cc1749975b32d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/91ebd24ce981f3d788d15fafa5cc1749975b32d2/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
4881,
16,
1084,
33,
7036,
4672,
3536,
2640,
279,
394,
3352,
316,
326,
783,
1867,
8395,
225,
309,
1084,
30,
5915,
18,
8935,
2932,
2211,
999,
434,
1208,
353,
6849,
30,
999,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
4881,
16,
1084,
33,
7036,
4672,
3536,
2640,
279,
394,
3352,
316,
326,
783,
1867,
8395,
225,
309,
1084,
30,
5915,
18,
8935,
2932,
2211,
999,
434,
1208,
353,
6849,
30,
999,
123... |
class VRPNClient(_VRPNClientHelper): """Avango NG device for processing data sent by a VRPN server. This client consists of vrpn_Tracker, vrpn_Button and vrpn_Analog devices.""" def __init__(self): super(VRPNClient, self).__init__() self._station = None def get_station(self): return self._station def set_station(self... | if does_type_exist("av::daemon::VRPNClient"): from _daemon import _VRPNClientHelper class VRPNClient(_VRPNClientHelper): """Avango NG device for processing data sent by a VRPN server. This client consists of vrpn_Tracker, vrpn_Button and vrpn_Analog devices.""" def __init__(self): super(VRPNClient, self).__init__() se... | def __setitem__(self, key, st): self._dtrack._stations[key] = st return self._dtrack.add_station(key, st.name) | 77b4711d464d37e2f8a1131984885b017fbd903c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8421/77b4711d464d37e2f8a1131984885b017fbd903c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
384,
4672,
365,
6315,
72,
4101,
6315,
31478,
63,
856,
65,
273,
384,
327,
365,
6315,
72,
4101,
18,
1289,
67,
17894,
12,
856,
16,
384,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
384,
4672,
365,
6315,
72,
4101,
6315,
31478,
63,
856,
65,
273,
384,
327,
365,
6315,
72,
4101,
18,
1289,
67,
17894,
12,
856,
16,
384,
18,
... |
print 'Assembly command: ' + ' '.join(command) subprocess.call(command) | print >>sys.stderr, 'Assembly command: ' + ' '.join(command) retcode = subprocess.call(command) if retcode: logging.fatal('COVERAGE: %s failed; return code: %d' % (command[0], retcode)) if self.options.strict: sys.exit(retcode) def GenerateHtml(self): """Convert lcov to html.""" | def GenerateOutput(self): """Convert profile data to html.""" if self.IsLinux(): command = [self.lcov, '--directory', self.directory, '--capture', '--output-file', self.coverage_info_file] else: command = [self.mcov, '--directory', self.directory_parent, '--output', self.coverage_info_file] print 'Assembly command: ' +... | 4d602ebb885d149370e140f73824ac7130ffcd3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/4d602ebb885d149370e140f73824ac7130ffcd3b/coverage_posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
1447,
12,
2890,
4672,
3536,
2723,
3042,
501,
358,
1729,
12123,
309,
365,
18,
2520,
19475,
13332,
1296,
273,
306,
2890,
18,
80,
14014,
16,
3534,
5149,
2187,
365,
18,
5149,
16,
3534,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
1447,
12,
2890,
4672,
3536,
2723,
3042,
501,
358,
1729,
12123,
309,
365,
18,
2520,
19475,
13332,
1296,
273,
306,
2890,
18,
80,
14014,
16,
3534,
5149,
2187,
365,
18,
5149,
16,
3534,... |
ddict[tag+key1.lower().replace(" ", "_")] = str(value1) | nkey = ''.join([tag, key1.lower()]).replace(" ", "_") ddict[nkey] = str(value1) | def _get_dmi_data(self, func, tag, ddict): for key, value in func.items(): for key1, value1 in value['data'].items(): if not isinstance(value1, str): continue ddict[tag+key1.lower().replace(" ", "_")] = str(value1) | 7908dcfe1e88d3b7aa154de1ddb601747660dc1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/7908dcfe1e88d3b7aa154de1ddb601747660dc1a/hwprobe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
72,
9197,
67,
892,
12,
2890,
16,
1326,
16,
1047,
16,
302,
1576,
4672,
364,
498,
16,
460,
316,
1326,
18,
3319,
13332,
364,
498,
21,
16,
460,
21,
316,
460,
3292,
892,
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,
588,
67,
72,
9197,
67,
892,
12,
2890,
16,
1326,
16,
1047,
16,
302,
1576,
4672,
364,
498,
16,
460,
316,
1326,
18,
3319,
13332,
364,
498,
21,
16,
460,
21,
316,
460,
3292,
892,
2... |
if img.get_filename().startswith("http:"): | if img.get_filename().startswith("http:") or \ img.get_filename().startswith("file:"): | def insert_html(self, html): """Insert HTML content into Buffer""" if self.textview is None: return | 5b660d92fb8df454192bdea8693763be200358e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/5b660d92fb8df454192bdea8693763be200358e4/richtextbuffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
2620,
12,
2890,
16,
1729,
4672,
3536,
4600,
3982,
913,
1368,
3525,
8395,
225,
309,
365,
18,
955,
1945,
353,
599,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
2620,
12,
2890,
16,
1729,
4672,
3536,
4600,
3982,
913,
1368,
3525,
8395,
225,
309,
365,
18,
955,
1945,
353,
599,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
while not connect(fd, address): trampoline(fd, write=True) def connect_ex(self, *args, **kw): fn = self.connect_ex = self.fd.connect_ex return fn(*args, **kw) | if self.gettimeout(): end = time.time() + self.gettimeout() while True: if connect(fd, address): return if time.time() >= end: raise socket.timeout try: trampoline(fd, write=True, timeout=time.time()-end) except TimeoutError: raise socket.timeout else: while not connect(fd, address): trampoline(fd, write=True) | def connect(self, address): fd = self.fd connect = socket_connect while not connect(fd, address): trampoline(fd, write=True) | 33ccd249ce6338c6350d1a12be9b41ce6591de83 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/33ccd249ce6338c6350d1a12be9b41ce6591de83/greenio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1758,
4672,
5194,
273,
365,
18,
8313,
3077,
273,
2987,
67,
3612,
1323,
486,
3077,
12,
8313,
16,
1758,
4672,
433,
931,
15572,
12,
8313,
16,
1045,
33,
5510,
13,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1758,
4672,
5194,
273,
365,
18,
8313,
3077,
273,
2987,
67,
3612,
1323,
486,
3077,
12,
8313,
16,
1758,
4672,
433,
931,
15572,
12,
8313,
16,
1045,
33,
5510,
13,
225,
... |
if len(base) and base[0] == '/': | if base[0:1] == '/': | def resolveFilename(scope, base = ""): # don't resolve absolute paths if len(base) and base[0] == '/': return base path = defaultPaths[scope] if path[1] == PATH_CREATE: if (not pathExists(defaultPaths[scope][0])): os.mkdir(path[0]) #if len(base) > 0 and base[0] == '/': #path = ("", None) if not fileExists(path[0] ... | 568ac075b7a3a6ded4cd080ef5a2881b003b33fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/568ac075b7a3a6ded4cd080ef5a2881b003b33fe/Directories.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
5359,
12,
4887,
16,
1026,
273,
1408,
4672,
225,
468,
2727,
1404,
2245,
4967,
2953,
309,
1026,
63,
20,
30,
21,
65,
422,
2023,
30,
327,
1026,
225,
589,
273,
805,
4466,
63,
4887,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
5359,
12,
4887,
16,
1026,
273,
1408,
4672,
225,
468,
2727,
1404,
2245,
4967,
2953,
309,
1026,
63,
20,
30,
21,
65,
422,
2023,
30,
327,
1026,
225,
589,
273,
805,
4466,
63,
4887,
... |
this = apply(_quickfix.new_SecurityIDSource, args) | this = _quickfix.new_SecurityIDSource(*args) | def __init__(self, *args): this = apply(_quickfix.new_SecurityIDSource, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
4368,
734,
1830,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
4368,
734,
1830,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... |
top_element.appendChild(node) | else: node.appendChild(infoDOM.createTextNode("")) top_element.appendChild(node) | def getFileInformation(file, outputfile): impl = xml.dom.minidom.getDOMImplementation() infoDOM = impl.createDocument(None, "fileinfo", None) top_element = infoDOM.documentElement # if the jobfile has amended file details use them details = file.getElementsByTagName("details") if details.length > 0: node = infoDOM.cre... | a486e98db9fb166135e92b505b58afae2e307832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/a486e98db9fb166135e92b505b58afae2e307832/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
5369,
12,
768,
16,
876,
768,
4672,
9380,
273,
2025,
18,
9859,
18,
1154,
350,
362,
18,
588,
8168,
13621,
1435,
1123,
8168,
273,
9380,
18,
2640,
2519,
12,
7036,
16,
315,
768,
1376,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5369,
12,
768,
16,
876,
768,
4672,
9380,
273,
2025,
18,
9859,
18,
1154,
350,
362,
18,
588,
8168,
13621,
1435,
1123,
8168,
273,
9380,
18,
2640,
2519,
12,
7036,
16,
315,
768,
1376,... |
from hedge.tools import plot_1d | def test_kv_predictors(): from pyrticle.distribution import \ ChargelessKVRadiusPredictor, KVRadiusPredictor kv_env_exact = ChargelessKVRadiusPredictor(2.5e-3, 5e-6) kv_env_num = KVRadiusPredictor(2.5e-3, 5e-6) from hedge.tools import plot_1d steps = 50 for i in range(steps): s = kv_env_num.dt/7*i a_exact = kv_env_ex... | 8c7d6a1dbbe381cd6c5ccabcf1b1d625bd38a451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12869/8c7d6a1dbbe381cd6c5ccabcf1b1d625bd38a451/test_pyrticle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18152,
67,
14491,
1383,
13332,
628,
2395,
3797,
3711,
18,
16279,
1930,
521,
1680,
3175,
12617,
16945,
10196,
21362,
280,
16,
19149,
10196,
21362,
280,
6047,
67,
3074,
67,
17165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18152,
67,
14491,
1383,
13332,
628,
2395,
3797,
3711,
18,
16279,
1930,
521,
1680,
3175,
12617,
16945,
10196,
21362,
280,
16,
19149,
10196,
21362,
280,
6047,
67,
3074,
67,
17165,
... | |
self.changed() | def modifyPassivate(self): if self.selwhat == SELWHAT_CHUNKS: for m in self.selmols: m.Passivate(True) # arg True makes it work on all atoms in m else: assert self.selwhat == SELWHAT_ATOMS for m in self.molecules: m.Passivate() # lack of arg makes it work on only selected atoms # (maybe it could just iterate over selat... | 86598205a93028fe90dacd873695b414504989ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/86598205a93028fe90dacd873695b414504989ae/ops_atoms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
6433,
954,
12,
2890,
4672,
309,
365,
18,
1786,
23770,
422,
20853,
12557,
789,
67,
26464,
55,
30,
364,
312,
316,
365,
18,
1786,
81,
3528,
30,
312,
18,
6433,
954,
12,
5510,
13,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5612,
6433,
954,
12,
2890,
4672,
309,
365,
18,
1786,
23770,
422,
20853,
12557,
789,
67,
26464,
55,
30,
364,
312,
316,
365,
18,
1786,
81,
3528,
30,
312,
18,
6433,
954,
12,
5510,
13,
4... | |
print "runSim.write_minimize_enabled_jigs(): CALLED" | def write_minimize_enabled_jigs(self, mapping): '''Writes any jig to the mmp file which has the attr "enable_minimize"=True ''' print "runSim.write_minimize_enabled_jigs(): CALLED" from jigs import Jig def func_write_jigs(nn): if isinstance(nn, Jig) and nn.enable_minimize: print nn.name, " written to minimize MMP file... | ceffc160372a26b91454bdd57c1192198fc774c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ceffc160372a26b91454bdd57c1192198fc774c5/runSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1154,
10153,
67,
5745,
67,
78,
360,
87,
12,
2890,
16,
2874,
4672,
9163,
8368,
1281,
525,
360,
358,
326,
312,
1291,
585,
1492,
711,
326,
1604,
315,
7589,
67,
1154,
10153,
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,
1045,
67,
1154,
10153,
67,
5745,
67,
78,
360,
87,
12,
2890,
16,
2874,
4672,
9163,
8368,
1281,
525,
360,
358,
326,
312,
1291,
585,
1492,
711,
326,
1604,
315,
7589,
67,
1154,
10153,
6,
... | |
typedef = cls.typedef if hasdict and typedef.hasdict: hasdict = False if weakrefable and typedef.weakrefable: weakrefable = False | typedef = cls.typedef | 2d01b9341abe8f9bc045883d212b28f997775118 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/2d01b9341abe8f9bc045883d212b28f997775118/typedef.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
618,
536,
273,
2028,
18,
723,
536,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
618,
536,
273,
2028,
18,
723,
536,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
print (self, value, self._value) | def __contains__(self, value): ''' Support the "in" operator. We have to make sure the passed-in value is a string first, not a HTMLProperty. ''' print (self, value, self._value) return str(value) in self._value | eb9435030b9ed926ec168d7662e43ed10cd4fd19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/eb9435030b9ed926ec168d7662e43ed10cd4fd19/templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
460,
4672,
9163,
13619,
326,
315,
267,
6,
3726,
18,
1660,
1240,
358,
1221,
3071,
326,
2275,
17,
267,
460,
353,
279,
533,
1122,
16,
486,
279,
3982,
1396,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
460,
4672,
9163,
13619,
326,
315,
267,
6,
3726,
18,
1660,
1240,
358,
1221,
3071,
326,
2275,
17,
267,
460,
353,
279,
533,
1122,
16,
486,
279,
3982,
1396,... | |
raise ValueError, "mode must be 'r' or 'w'." | raise ValueError("mode must be 'r' or 'w'.") | def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9): """Open bzip2 compressed tar archive name for reading or writing. Appending is not allowed. """ if len(mode) > 1 or mode not in "rw": raise ValueError, "mode must be 'r' or 'w'." | b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
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,
24788,
22,
3190,
12,
6429,
16,
508,
16,
1965,
1546,
86,
3113,
17041,
33,
7036,
16,
8099,
2815,
33,
29,
4672,
3536,
3678,
324,
4450,
22,
8968,
8232,
5052,
508,
364,
6453,
578,
7410,
18,... |
""" Initialiser should not require any arguments """ | """ Initialiser should not require any arguments. """ | def test_minimum_zero_arguments(self): """ Initialiser should not require any arguments """ instance = daemon.daemon.DaemonContext() self.failIfIs(None, instance) | 33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15903,
67,
7124,
67,
7099,
12,
2890,
4672,
3536,
10188,
15914,
1410,
486,
2583,
1281,
1775,
18,
3536,
791,
273,
8131,
18,
21511,
18,
12858,
1042,
1435,
365,
18,
6870,
2047,
252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15903,
67,
7124,
67,
7099,
12,
2890,
4672,
3536,
10188,
15914,
1410,
486,
2583,
1281,
1775,
18,
3536,
791,
273,
8131,
18,
21511,
18,
12858,
1042,
1435,
365,
18,
6870,
2047,
252... |
'MIB file \"%s.py\" not found in search path' % modName | 'MIB file \"%s\" not found in search path' % (modName and modName + ".py") | def loadModules(self, *modNames): # Build a list of available modules if not modNames: modNames = {} for mibPath in self.__mibPaths: try: for modName in os.listdir(mibPath): if modName == '__init__.py' or modName[-3:] != '.py': continue modNames[modName[:-3]] = None except OSError: continue modNames = modNames.keys() i... | 41dc6cc501779058bdbf04be7fccf7543c71a808 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/587/41dc6cc501779058bdbf04be7fccf7543c71a808/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
7782,
12,
2890,
16,
380,
1711,
1557,
4672,
468,
3998,
279,
666,
434,
2319,
4381,
309,
486,
681,
1557,
30,
681,
1557,
273,
2618,
364,
312,
495,
743,
316,
365,
16186,
81,
495,
4466... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7782,
12,
2890,
16,
380,
1711,
1557,
4672,
468,
3998,
279,
666,
434,
2319,
4381,
309,
486,
681,
1557,
30,
681,
1557,
273,
2618,
364,
312,
495,
743,
316,
365,
16186,
81,
495,
4466... |
def on_metadata (self, event, metadata): | def on_metadata(self, event, metadata): | def on_metadata (self, event, metadata): pass | 016aec4a85d3438c0d49f1f8b2012e23eb7805ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/016aec4a85d3438c0d49f1f8b2012e23eb7805ec/audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4165,
12,
2890,
16,
871,
16,
1982,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
67,
4165,
12,
2890,
16,
871,
16,
1982,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.