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 |
|---|---|---|---|---|---|---|
\\usepackage[colorlinks,linkcolor=blue]{hyperref} | \\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref} | def suite(): s = DocutilsTestSupport.LatexPublishTestSuite() s.generateTests(totest) return s | 03e00a39832b6fbe92cf0cce81ec43ebb1381fab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/03e00a39832b6fbe92cf0cce81ec43ebb1381fab/test_latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
6607,
338,
6024,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11371,
13332,
272,
273,
3521,
5471,
4709,
6289,
18,
6607,
338,
6024,
4709,
13587,
1435,
272,
18,
7163,
14650,
12,
3307,
395,
13,
327,
272,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
exec expr in self.doc.datamodel | try: exec expr in self.doc.datamodel except: sys.stderr.write("Error occurred while executing expression: '%s'\n" % expr) raise | def f(): exec expr in self.doc.datamodel | fe7c997ebb1d607f298cd5870b9f51433d5112ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10998/fe7c997ebb1d607f298cd5870b9f51433d5112ff/compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
13332,
1196,
3065,
316,
365,
18,
2434,
18,
3404,
13474,
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,
284,
13332,
1196,
3065,
316,
365,
18,
2434,
18,
3404,
13474,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
directory.make_directory_with_parents() | if not path.exists (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep): mkdir (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep) if not path.exists (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep): mkdir (xdg.BaseDirectory.xdg_cache_home + sep + 'totem' + sep + 'subtitles' + sep) ... | def os_save_selected_subtitle(self, filename=None): """ """ self.dialog.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) | 5a1b3c0fe2c23e7993d6880efde2bfc08bde1e5c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11070/5a1b3c0fe2c23e7993d6880efde2bfc08bde1e5c/opensubtitles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1140,
67,
5688,
67,
8109,
67,
1717,
2649,
12,
2890,
16,
1544,
33,
7036,
4672,
3536,
3536,
365,
18,
12730,
18,
5668,
18,
542,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1140,
67,
5688,
67,
8109,
67,
1717,
2649,
12,
2890,
16,
1544,
33,
7036,
4672,
3536,
3536,
365,
18,
12730,
18,
5668,
18,
542,
67,
9216,
12,
4521,
79,
18,
75,
2883,
18,
6688,
12,
4521,... |
self.assertEquals("<html><body><b>Transient tile Test message</b></body></html>", self.browser.contents) | self.failUnless("<b>Transient tile Test message</b>" in self.browser.contents) | def test_transient_lifecycle(self): # Log in self.browser.addHeader('Authorization', 'Basic %s:%s' % (ptc.default_user, ptc.default_password,)) # Add a new transient tile using the @@add-tile view self.browser.open(self.folder.absolute_url() + '/@@add-tile') self.browser.getControl(name='type').value = ['plone.app.til... | 3cb43b4e24f5a9706e62df638e61625d978a80a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12277/3cb43b4e24f5a9706e62df638e61625d978a80a7/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22670,
67,
10256,
4578,
12,
2890,
4672,
468,
1827,
316,
365,
18,
11213,
18,
1289,
1864,
2668,
6063,
2187,
296,
8252,
738,
87,
5319,
87,
11,
738,
261,
337,
71,
18,
1886,
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,
1842,
67,
22670,
67,
10256,
4578,
12,
2890,
4672,
468,
1827,
316,
365,
18,
11213,
18,
1289,
1864,
2668,
6063,
2187,
296,
8252,
738,
87,
5319,
87,
11,
738,
261,
337,
71,
18,
1886,
67,
... |
'cn': socket.gethostname(), | 'cn': socket.getfqdn(), | def setup_server(template=None): check_dsage_dir() template_dict = {'organization': 'SAGE (at %s)'%(socket.gethostname()), 'unit': '389', 'locality': None, 'state': 'Washington', 'country': 'US', 'cn': socket.gethostname(), 'uid': 'sage_user', 'dn_oid': None, 'serial': str(random.randint(1,2**31)), 'dns_name': None, 'c... | 73ea53ff04d51d4710c8db879d861fe61d66f9e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/73ea53ff04d51d4710c8db879d861fe61d66f9e5/dsage_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
3567,
12,
3202,
33,
7036,
4672,
866,
67,
2377,
410,
67,
1214,
1435,
1542,
67,
1576,
273,
13666,
15336,
4278,
296,
55,
2833,
261,
270,
738,
87,
2506,
17105,
7814,
18,
75,
546,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
3567,
12,
3202,
33,
7036,
4672,
866,
67,
2377,
410,
67,
1214,
1435,
1542,
67,
1576,
273,
13666,
15336,
4278,
296,
55,
2833,
261,
270,
738,
87,
2506,
17105,
7814,
18,
75,
546,... |
parent_id = self._errors_id id = self._tree_control.AppendItem(parent_id, status.name + ": " + status.message) status_wrapper = StatusWrapper(status) self._tree_control.SetPyData(id, status_wrapper) self._name_to_id[status.name] = id self._tree_control.SortChildren(parent_id) if (select): self._tree_control.SelectI... | self.create_item(status, was_selected, True) if (status.level == 2): had_errors = True self._messages = [] self._mutex.release() if (had_errors and self._new_errors_callback != None): self._new_errors_callback() self.Refresh() def update_item(self, item, status, was_selected): change_parent = False if (item.status... | def create_item(self, status, select, expand_if_error): if (status.level == 0): parent_id = self._ok_id elif (status.level == 1): parent_id = self._warnings_id elif (status.level == - 1): parent_id = self._stale_id else: parent_id = self._errors_id id = self._tree_control.AppendItem(parent_id, status.name + ": " + sta... | 4c1a0180c6b2b5b303ec5778b7cb5ec09c3431a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10233/4c1a0180c6b2b5b303ec5778b7cb5ec09c3431a3/monitor_panel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1726,
12,
2890,
16,
1267,
16,
2027,
16,
4542,
67,
430,
67,
1636,
4672,
309,
261,
2327,
18,
2815,
422,
374,
4672,
982,
67,
350,
273,
365,
6315,
601,
67,
350,
1327,
261,
2327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1726,
12,
2890,
16,
1267,
16,
2027,
16,
4542,
67,
430,
67,
1636,
4672,
309,
261,
2327,
18,
2815,
422,
374,
4672,
982,
67,
350,
273,
365,
6315,
601,
67,
350,
1327,
261,
2327,... |
if address is not None: if address != request.get_environ("REMOTE_HTTP_ADDR"): raise SessionError("Remote IP address does not match the " "IP address that created the session", session_id=sessid) | if address is not None: if address != request.get_environ("REMOTE_ADDR"): raise SessionError("Remote IP address does not match the " "IP address that created the session", session_id=sessid) else: if request.is_https(): session.set_remote_https_address(request.get_environ("REMOTE_ADDR")) | def get_session (self, request): """get_session(request : HTTPRequest) -> Session | 365cdecd4696d76e5bed36445d15d1f5505338a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/365cdecd4696d76e5bed36445d15d1f5505338a9/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
588,
67,
3184,
12,
2293,
294,
25238,
13,
317,
3877,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
67,
3184,
261,
2890,
16,
590,
4672,
3536,
588,
67,
3184,
12,
2293,
294,
25238,
13,
317,
3877,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == 1: | if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == PCI_PM_CTRL_NO_SOFT_RESET: | def do_Dstate_transition(self): pos = self.find_cap_offset(PCI_CAP_ID_PM) if pos == 0: return False # No_Soft_Reset - When set 1, this bit indicates that # devices transitioning from D3hot to D0 because of # PowerState commands do not perform an internal reset. pm_ctl = self.pci_conf_read32(pos + PCI_PM_CTRL) if (pm_c... | 994796e8ba61e9d169f3341265da98a4915ec1e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/994796e8ba61e9d169f3341265da98a4915ec1e9/pci.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
40,
2019,
67,
14936,
12,
2890,
4672,
949,
273,
365,
18,
4720,
67,
5909,
67,
3348,
12,
3513,
45,
67,
17296,
67,
734,
67,
12728,
13,
309,
949,
422,
374,
30,
327,
1083,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
40,
2019,
67,
14936,
12,
2890,
4672,
949,
273,
365,
18,
4720,
67,
5909,
67,
3348,
12,
3513,
45,
67,
17296,
67,
734,
67,
12728,
13,
309,
949,
422,
374,
30,
327,
1083,
225,
... |
self.AddViewParcelMenu () | self.ReplaceViewParcelMenu() | def Activate(self): """ Override to do tasks that need to happen just before your parcel is displayed. """ self.AddViewParcelMenu () app.wxMainFrame.activeParcel = self | abfc23f32ed13be0bbf64a55788f41a7bb79f3ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/abfc23f32ed13be0bbf64a55788f41a7bb79f3ea/ViewerParcel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30936,
12,
2890,
4672,
3536,
1439,
358,
741,
4592,
716,
1608,
358,
5865,
2537,
1865,
3433,
779,
2183,
353,
10453,
18,
3536,
365,
18,
5729,
1767,
1553,
2183,
4599,
1435,
595,
18,
27226,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30936,
12,
2890,
4672,
3536,
1439,
358,
741,
4592,
716,
1608,
358,
5865,
2537,
1865,
3433,
779,
2183,
353,
10453,
18,
3536,
365,
18,
5729,
1767,
1553,
2183,
4599,
1435,
595,
18,
27226,
6... |
desc + | self._link_description(desc, target, page_name) + | def _link_repl(self, word, groups): """Handle [[target|text]] links.""" target = groups.get('link_target', '') args = (groups.get('link_args', '') or '').strip() mt = self.link_target_re.match(target) ma = self.link_desc_re.match(args) desc = None desc_format = True # run desc through text formatter? if ma: if ma.group... | 3813c6ae295fcf8c1e1b489285fe598adbd4593a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/3813c6ae295fcf8c1e1b489285fe598adbd4593a/text_moin_wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1232,
67,
26745,
12,
2890,
16,
2076,
16,
3252,
4672,
3536,
3259,
12167,
3299,
96,
955,
13563,
4716,
12123,
1018,
273,
3252,
18,
588,
2668,
1232,
67,
3299,
2187,
28707,
833,
273,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1232,
67,
26745,
12,
2890,
16,
2076,
16,
3252,
4672,
3536,
3259,
12167,
3299,
96,
955,
13563,
4716,
12123,
1018,
273,
3252,
18,
588,
2668,
1232,
67,
3299,
2187,
28707,
833,
273,
261... |
def set_buffer(self, buf): self._buffer = buf | def set_save_needed(self, save): self._save_needed = save def save_needed(self): return self._save_needed | def set_buffer(self, buf): self._buffer = buf | ec89021620544a1e73fc36d23e0fbab3029d7a82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/ec89021620544a1e73fc36d23e0fbab3029d7a82/richtext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5688,
67,
17471,
12,
2890,
16,
1923,
4672,
365,
6315,
5688,
67,
17471,
273,
1923,
225,
1652,
1923,
67,
17471,
12,
2890,
4672,
327,
365,
6315,
5688,
67,
17471,
225,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5688,
67,
17471,
12,
2890,
16,
1923,
4672,
365,
6315,
5688,
67,
17471,
273,
1923,
225,
1652,
1923,
67,
17471,
12,
2890,
4672,
327,
365,
6315,
5688,
67,
17471,
225,
2,
-100,
-1... |
self.table = k.pop('table', None) or old_col.table or new_col.table | self.table = k.pop('table', None) if self.table is None: self.table = old_col.table if self.table is None: new_col.table | def compare_2_columns(self, old_col, new_col, *p, **k): """Compares two Column objects""" self.process_column(new_col) self.table = k.pop('table', None) or old_col.table or new_col.table self.result_column = old_col | 9b2054900cc92a26c0f19fac2fbca7387d053afe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9035/9b2054900cc92a26c0f19fac2fbca7387d053afe/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
22,
67,
5112,
12,
2890,
16,
1592,
67,
1293,
16,
394,
67,
1293,
16,
380,
84,
16,
2826,
79,
4672,
3536,
19199,
2795,
4753,
2184,
8395,
365,
18,
2567,
67,
2827,
12,
2704,
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,
3400,
67,
22,
67,
5112,
12,
2890,
16,
1592,
67,
1293,
16,
394,
67,
1293,
16,
380,
84,
16,
2826,
79,
4672,
3536,
19199,
2795,
4753,
2184,
8395,
365,
18,
2567,
67,
2827,
12,
2704,
67,
... |
return string.join(s, "\n") | return "\n".join(s) | s.append( "def %s(%s):" % (funcname, _tuplestr(params)) ) | d536c7a649eeb72ca3135c214f02e2d46a301c1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/d536c7a649eeb72ca3135c214f02e2d46a301c1c/sourcegen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
18,
6923,
12,
315,
536,
738,
87,
9275,
87,
13,
2773,
738,
261,
644,
529,
16,
389,
17705,
313,
12,
2010,
3719,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
18,
6923,
12,
315,
536,
738,
87,
9275,
87,
13,
2773,
738,
261,
644,
529,
16,
389,
17705,
313,
12,
2010,
3719,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage.ext.sig.get_bad_sigs() | def my_sigfpe(x, n): sage.ext.sig.get_bad_sigs() raise RuntimeError, "A floating point exception occured." | 60996d74635c43a19c42f3f7101c1ad094231d00 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/60996d74635c43a19c42f3f7101c1ad094231d00/get_sigs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
74,
347,
12,
92,
16,
290,
4672,
1002,
7265,
16,
315,
37,
13861,
1634,
1520,
16206,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
7340,
74,
347,
12,
92,
16,
290,
4672,
1002,
7265,
16,
315,
37,
13861,
1634,
1520,
16206,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
elif arg.startswith('-hintfile:'): | elif arg.startswith('-hintfile'): | def readWarnfile(filename, bot): import warnfile reader = warnfile.WarnfileReader(filename) # we won't use removeHints (hints, removeHints) = reader.getHints() pages = hints.keys() for page in pages: # The WarnfileReader gives us a list of pagelinks, but titletranslate.py expects a list of strings, so we convert it bac... | 8d8b071037ca2a32061fde4d16db380e304a37e5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/8d8b071037ca2a32061fde4d16db380e304a37e5/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
3160,
768,
12,
3459,
16,
2512,
4672,
1930,
1894,
768,
2949,
273,
1894,
768,
18,
3160,
768,
2514,
12,
3459,
13,
468,
732,
8462,
1404,
999,
1206,
13368,
261,
24598,
16,
1206,
13368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3160,
768,
12,
3459,
16,
2512,
4672,
1930,
1894,
768,
2949,
273,
1894,
768,
18,
3160,
768,
2514,
12,
3459,
13,
468,
732,
8462,
1404,
999,
1206,
13368,
261,
24598,
16,
1206,
13368,
... |
self.mailConf = mailConf | self.mailConf = mailConf | def __init__(self, testType="remote", seleniumConf=None, testConf=None, autConf=None, browserConf=None, mailConf=None): defaultSeleniumConf = { 'startSelenium' : 'java -jar ../../selenium/current/selenium-server.jar', 'seleniumHost' : 'http://localhost:4444' } defaultTestConf = { 'simulateTest' : ... | 58b0357d06f5f1e002bee75c59fc7a5e1403594b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/58b0357d06f5f1e002bee75c59fc7a5e1403594b/qxtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1842,
559,
1546,
7222,
3113,
29480,
3976,
33,
7036,
16,
1842,
3976,
33,
7036,
16,
2059,
3976,
33,
7036,
16,
4748,
3976,
33,
7036,
16,
4791,
3976,
33,
703... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
559,
1546,
7222,
3113,
29480,
3976,
33,
7036,
16,
1842,
3976,
33,
7036,
16,
2059,
3976,
33,
7036,
16,
4748,
3976,
33,
7036,
16,
4791,
3976,
33,
703... |
def crawl(self,pages): | def crawl(self,pages,mThread=1): | def crawl(self,pages): for page in pages: newpages.add(page) while _toparse(): pages = newpages for page in pages: newpages.add(page) p = 0 for page in newpages: p += 1 c = child(p,page) self.cThreads.append(c) c.start() threadcheck() while aThreads >= 5: print 'Reached max threads waiting on some to exit' time.sleep(... | 4dc309ab361285f5295be88c9b18f364fea0185b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14039/4dc309ab361285f5295be88c9b18f364fea0185b/siteWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23182,
12,
2890,
16,
7267,
16,
81,
3830,
33,
21,
4672,
364,
1363,
316,
4689,
30,
394,
7267,
18,
1289,
12,
2433,
13,
1323,
389,
3669,
24378,
13332,
4689,
273,
394,
7267,
364,
1363,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23182,
12,
2890,
16,
7267,
16,
81,
3830,
33,
21,
4672,
364,
1363,
316,
4689,
30,
394,
7267,
18,
1289,
12,
2433,
13,
1323,
389,
3669,
24378,
13332,
4689,
273,
394,
7267,
364,
1363,
316,... |
r = pollster.poll (timeout) | try: r = pollster.poll (timeout) except select.error, err: if err[0] != EINTR: raise r = [] | def poll3 (timeout=0.0, map=None): # Use the poll() support added to the select module in Python 2.0 if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) pollster = select.poll() if map: for fd, obj in map.items(): flags = 0 if obj.readable(): flags = select.PO... | ac0aed1c3f79b76bc0826eed6ac8ae0955a0794f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ac0aed1c3f79b76bc0826eed6ac8ae0955a0794f/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
23,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
468,
2672,
326,
7672,
1435,
2865,
3096,
358,
326,
2027,
1605,
316,
6600,
576,
18,
20,
309,
852,
353,
599,
30,
852,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
23,
261,
4538,
33,
20,
18,
20,
16,
852,
33,
7036,
4672,
468,
2672,
326,
7672,
1435,
2865,
3096,
358,
326,
2027,
1605,
316,
6600,
576,
18,
20,
309,
852,
353,
599,
30,
852,
33,
... |
poly_obj._linearity = linearities | poly_obj._linearities = linearities | def ieq_to_vert(in_list, linearities = [], cdd_type = 'rational', verbose = False): """ Converts a list of inequalities (and optionally some equalities (aka linearities)) to a vertex/ray description. INPUT: in_list -- a list of inequalities. Each inequality is represented by a list [b,a1,a2,...,an]. Suppose your var... | 158cd65be5fe4cad284c7b8a2b74ee19d3ddcb2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/158cd65be5fe4cad284c7b8a2b74ee19d3ddcb2a/polyhedra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9228,
85,
67,
869,
67,
1097,
12,
267,
67,
1098,
16,
9103,
1961,
273,
5378,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
2187,
3988,
273,
1083,
4672,
3536,
20377,
279,
666,
434,
316,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9228,
85,
67,
869,
67,
1097,
12,
267,
67,
1098,
16,
9103,
1961,
273,
5378,
16,
276,
449,
67,
723,
273,
296,
7034,
287,
2187,
3988,
273,
1083,
4672,
3536,
20377,
279,
666,
434,
316,
9... |
EfiSourceDir = os.path.normpath(os.environ["EFI_SOURCE"]) EdkSourceDir = os.path.normpath(os.environ["EDK_SOURCE"]) EcpSourceDir = os.path.normpath(os.environ["ECP_SOURCE"]) | EfiSourceDir = os.path.normcase(os.path.normpath(os.environ["EFI_SOURCE"])) EdkSourceDir = os.path.normcase(os.path.normpath(os.environ["EDK_SOURCE"])) EcpSourceDir = os.path.normcase(os.path.normpath(os.environ["ECP_SOURCE"])) os.environ["EFI_SOURCE"] = EfiSourceDir os.environ["EDK_SOURCE"] = EdkSourceDir os.envir... | def CheckEnvVariable(): # check WORKSPACE if "WORKSPACE" not in os.environ: EdkLogger.error("build", ATTRIBUTE_NOT_AVAILABLE, "Environment variable not found", ExtraData="WORKSPACE") WorkspaceDir = os.path.normpath(os.environ["WORKSPACE"]) if not os.path.exists(WorkspaceDir): EdkLogger.error("build", FILE_NOT_FOUND, "... | 23959316e8b3f2ba5bf13ce4972e1ab35da88a49 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/23959316e8b3f2ba5bf13ce4972e1ab35da88a49/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3491,
3092,
13332,
468,
866,
17062,
6616,
309,
315,
10566,
6616,
6,
486,
316,
1140,
18,
28684,
30,
512,
2883,
3328,
18,
1636,
2932,
3510,
3113,
15941,
67,
4400,
67,
23222,
16,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3491,
3092,
13332,
468,
866,
17062,
6616,
309,
315,
10566,
6616,
6,
486,
316,
1140,
18,
28684,
30,
512,
2883,
3328,
18,
1636,
2932,
3510,
3113,
15941,
67,
4400,
67,
23222,
16,
315,... |
yield Comamnd(self, "command[]") | yield Command(self, "command[]") | def createFields(self): for idx in xrange(128): yield Comamnd(self, "command[]") | 75d0930d61b2b98bfd5cdaf0ec5487c36bb81181 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/75d0930d61b2b98bfd5cdaf0ec5487c36bb81181/xm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
364,
2067,
316,
12314,
12,
10392,
4672,
2824,
1286,
301,
4880,
12,
2890,
16,
315,
3076,
63,
4279,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
364,
2067,
316,
12314,
12,
10392,
4672,
2824,
1286,
301,
4880,
12,
2890,
16,
315,
3076,
63,
4279,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
finally: sys.stderr = save_stderr | self.assertEqual(s.getvalue(), '') | def __del__(self_): self.assertEqual(self_.a, 1) self.assertEqual(self_.b, 2) | 3365b1b262ed9662e31e78928b9def6ca5e5df38 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/3365b1b262ed9662e31e78928b9def6ca5e5df38/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
67,
4672,
365,
18,
11231,
5812,
12,
2890,
27799,
69,
16,
404,
13,
365,
18,
11231,
5812,
12,
2890,
27799,
70,
16,
576,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
67,
4672,
365,
18,
11231,
5812,
12,
2890,
27799,
69,
16,
404,
13,
365,
18,
11231,
5812,
12,
2890,
27799,
70,
16,
576,
13,
2,
-100,
-100,
-100,
-100,
-100,
... |
s, h = score(h, u, reverse) | s, g = score(h, u, reverse) | def main(): """Main program; parse options and go.""" try: opts, args = getopt.getopt(sys.argv[1:], 'hdfg:s:p:u:r') except getopt.error, msg: usage(2, msg) if not opts: usage(2, "No options given") pck = DEFAULTDB good = [] spam = [] unknown = [] reverse = 0 do_filter = usedb = False for opt, arg in opts: if opt == '... | fb40d5e11ffa173b28545258d3b69341e04048ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/fb40d5e11ffa173b28545258d3b69341e04048ee/hammie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
22057,
2137,
30,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
5402,
31,
1109,
702,
471,
1960,
12123,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
22057,
2137,
30,
87,
... |
submaterial1amount -= item.amount | submaterial2amount -= item.amount | def checkmaterial(self, player, arguments, silent = 0): backpack = player.getbackpack() | a2da0e5534c89e9caec1667e4f31991b9f3e802f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a2da0e5534c89e9caec1667e4f31991b9f3e802f/makemenus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
20542,
12,
2890,
16,
7291,
16,
1775,
16,
10404,
273,
374,
4672,
1473,
2920,
273,
7291,
18,
588,
823,
2920,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
20542,
12,
2890,
16,
7291,
16,
1775,
16,
10404,
273,
374,
4672,
1473,
2920,
273,
7291,
18,
588,
823,
2920,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pipeline.CondorDAGNode.set_category('cachebuilder') | pipeline.CondorDAGNode.set_category(self,'cachebuilder') | def __init__(self,job): #Expects to run CondorDAGJob object for tracksearch pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self) pipeline.CondorDAGNode.set_category('cachebuilder') | 0ccd8da150ad321e571cab16b1f3938967afeda1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/0ccd8da150ad321e571cab16b1f3938967afeda1/tracksearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
468,
11988,
87,
358,
1086,
735,
72,
280,
40,
1781,
2278,
733,
364,
3298,
3072,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4688,
4672,
468,
11988,
87,
358,
1086,
735,
72,
280,
40,
1781,
2278,
733,
364,
3298,
3072,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
289... |
t = threading.Thread(target = self.finish_request, | t = threading.Thread(target = self.process_request_thread, | def process_request(self, request, client_address): """Start a new thread to process the request.""" import threading t = threading.Thread(target = self.finish_request, args = (request, client_address)) t.start() | a5343ccd28245d96feb21d1457802b97a76aa210 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a5343ccd28245d96feb21d1457802b97a76aa210/SocketServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1685,
279,
394,
2650,
358,
1207,
326,
590,
12123,
1930,
17254,
268,
273,
17254,
18,
3830,
12,
3299,
273,
365,
18,
256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
590,
16,
1004,
67,
2867,
4672,
3536,
1685,
279,
394,
2650,
358,
1207,
326,
590,
12123,
1930,
17254,
268,
273,
17254,
18,
3830,
12,
3299,
273,
365,
18,
256... |
return int(float(percent) / 100 * (max - min) + min) | return int(round(float(percent) / 100 * (max - min) + min)) | def _percentToParam(self, percent, min, max): return int(float(percent) / 100 * (max - min) + min) | 8e81777da9f5f24435546623adfd0f87a075e091 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/8e81777da9f5f24435546623adfd0f87a075e091/sapi4activeVoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8849,
774,
786,
12,
2890,
16,
5551,
16,
1131,
16,
943,
4672,
327,
509,
12,
5659,
12,
8849,
13,
342,
2130,
380,
261,
1896,
300,
1131,
13,
397,
1131,
13,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8849,
774,
786,
12,
2890,
16,
5551,
16,
1131,
16,
943,
4672,
327,
509,
12,
5659,
12,
8849,
13,
342,
2130,
380,
261,
1896,
300,
1131,
13,
397,
1131,
13,
2,
-100,
-100,
-100,
-100... |
for i in range(frequency): documents.append(None) | while pos_slot_n is not None: pos_slot = 12 + pos_slot_n * 8 position = IO.decode_uint32(posi_rsrc[pos_slot:pos_slot+4]) documents.append(position) pos_slot_n = IO.decode_link(posi_rsrc[pos_slot+4:pos_slot+8]) | def load_documents(self): # Initialize data structure self.documents = {} | 0504ec1b99c0cca2d3256c2b3b35732faee92641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/0504ec1b99c0cca2d3256c2b3b35732faee92641/IIndex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
24795,
12,
2890,
4672,
468,
9190,
501,
3695,
365,
18,
24795,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
24795,
12,
2890,
4672,
468,
9190,
501,
3695,
365,
18,
24795,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
DirectFrame, (self,), | DirectFrame, (self.reparentFrame,), | def setItems(self): """ self['items'] = itemList Create new popup menu to reflect specified set of items """ # Remove old component if it exits if self.popupMenu != None: self.destroycomponent('popupMenu') # Create new component self.popupMenu = self.createcomponent('popupMenu', (), None, DirectFrame, (self,), relief =... | c5f0f39804767e32af47660628781f1cfd3fbd63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c5f0f39804767e32af47660628781f1cfd3fbd63/DirectOptionMenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3126,
12,
2890,
4672,
3536,
365,
3292,
3319,
3546,
273,
761,
682,
1788,
394,
10431,
3824,
358,
3037,
1269,
444,
434,
1516,
3536,
468,
3581,
1592,
1794,
309,
518,
19526,
309,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
3126,
12,
2890,
4672,
3536,
365,
3292,
3319,
3546,
273,
761,
682,
1788,
394,
10431,
3824,
358,
3037,
1269,
444,
434,
1516,
3536,
468,
3581,
1592,
1794,
309,
518,
19526,
309,
365,
18... |
def add_bullet_list(self, bl): | def add_list(self, bl): | def add_bullet_list(self, bl): """ note that this pushes the cur_element, but doesn't pop it. You'll need to do that """ # text:list doesn't like being a child of text:p if self.cur_element is None: self.add_text_frame() self.push_element() self.cur_element.node.attrib['presentation:class'] = 'outline' self.cur_element... | 4a18eff9e449cccd3987a2b4ecf3d62550eb4a8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/4a18eff9e449cccd3987a2b4ecf3d62550eb4a8a/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1098,
12,
2890,
16,
2811,
4672,
3536,
4721,
716,
333,
27351,
326,
662,
67,
2956,
16,
1496,
3302,
1404,
1843,
518,
18,
4554,
5614,
1608,
358,
741,
716,
3536,
468,
977,
30,
1098... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1098,
12,
2890,
16,
2811,
4672,
3536,
4721,
716,
333,
27351,
326,
662,
67,
2956,
16,
1496,
3302,
1404,
1843,
518,
18,
4554,
5614,
1608,
358,
741,
716,
3536,
468,
977,
30,
1098... |
def df(p): | def df(p): | def df(p): """Returns the gradient of f(cur_u).""" if max(gradient_u - cur_u) < GRADIENT_THRESHOLD: print "Using existing gradient" gradient = last_gradient else: print "Recalculating gradient" cost, gradient = shoot_all_segments_p(p) return gradient | 6d98183104454c3d8d4ffff4b76a13354c973395 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/6d98183104454c3d8d4ffff4b76a13354c973395/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
84,
4672,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
13,
12123,
309,
943,
12,
20219,
67,
89,
300,
662,
67,
89,
13,
411,
15228,
17708,
2222,
67,
23840,
30,
1172,
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,
3013,
12,
84,
4672,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
13,
12123,
309,
943,
12,
20219,
67,
89,
300,
662,
67,
89,
13,
411,
15228,
17708,
2222,
67,
23840,
30,
1172,
31... |
gtk.window_set_default_icon_from_file(ICON) | def __init__(self, glade): gtk.window_set_default_icon_from_file(ICON) self.widget = glade.get_widget("window") self.widget.set_icon_from_file(ICON) | c2575ab5b9991dcf22f57976765a09eceba3154e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2369/c2575ab5b9991dcf22f57976765a09eceba3154e/soundconverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5118,
2486,
4672,
282,
365,
18,
6587,
273,
5118,
2486,
18,
588,
67,
6587,
2932,
5668,
7923,
365,
18,
6587,
18,
542,
67,
3950,
67,
2080,
67,
768,
12,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5118,
2486,
4672,
282,
365,
18,
6587,
273,
5118,
2486,
18,
588,
67,
6587,
2932,
5668,
7923,
365,
18,
6587,
18,
542,
67,
3950,
67,
2080,
67,
768,
12,
21... | |
<field name="writeoff_acc_id"/> | <field name="writeoff_acc_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/> | def _wo_check(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context) journal = pool.get('account.journal').browse(cr, uid, data['form']['journal_id'], context) if invoice.company_id.currency_id.id <> invoice.currency_id.id: return 'add... | 698b0d9890f70a030e9edd41a955e8aa5d5e6ae1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/698b0d9890f70a030e9edd41a955e8aa5d5e6ae1/wizard_pay_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6933,
67,
1893,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
9179,
273,
2845,
18,
588,
2668,
4631,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6933,
67,
1893,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
9179,
273,
2845,
18,
588,
2668,
4631,
18,... |
S = self._CPage and [CondPageBreak(aH+1)] or [] | S = getattr(self,'_CPage',1) and [CondPageBreak(aH+1)] or [] | def split(self, aW, aH): S = self._CPage and [CondPageBreak(aH+1)] or [] for f in self._flowables: S.append(f) return S | 3ac151c920cffa9b03985d0409cf0fb8d15b06ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/3ac151c920cffa9b03985d0409cf0fb8d15b06ba/flowables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
279,
59,
16,
279,
44,
4672,
348,
273,
3869,
12,
2890,
11189,
67,
39,
1964,
2187,
21,
13,
471,
306,
12441,
1964,
7634,
12,
69,
44,
15,
21,
25887,
578,
5378,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
279,
59,
16,
279,
44,
4672,
348,
273,
3869,
12,
2890,
11189,
67,
39,
1964,
2187,
21,
13,
471,
306,
12441,
1964,
7634,
12,
69,
44,
15,
21,
25887,
578,
5378,
364,
... |
handle = open(boxfile, 'r') text = handle.readlines() handle.close() | handle = open(boxfile, 'r', encoding="utf8") | def parse_box(boxfile): """ Parse the tesseract positional information into a two dimensional array. [[char, x_min, y_min, x_max, y_max], ...] """ if not os.path.isfile(boxfile): print('err: ocr.parse_box(): File does not exist: "{0}"'.format(boxfile), file=sys.stderr) sys.exit(1) handle = open(boxfile, 'r') text = han... | 7aa049c9f69186c7108f91e210b9749af4ffbf0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6474/7aa049c9f69186c7108f91e210b9749af4ffbf0c/ocr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2147,
12,
2147,
768,
4672,
3536,
2884,
326,
268,
403,
264,
621,
16780,
1779,
1368,
279,
2795,
17469,
526,
18,
12167,
3001,
16,
619,
67,
1154,
16,
677,
67,
1154,
16,
619,
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,
1109,
67,
2147,
12,
2147,
768,
4672,
3536,
2884,
326,
268,
403,
264,
621,
16780,
1779,
1368,
279,
2795,
17469,
526,
18,
12167,
3001,
16,
619,
67,
1154,
16,
677,
67,
1154,
16,
619,
67,
... |
"""intbitset - set union infinite""" | """intbitset - set union, infinite set""" | def test_set_union_infinite(self): """intbitset - set union infinite""" self._helper_test_inifinite_set(self.fncs_list[1]) | 982045c3f21398672e0267f8fbddffc861a01e24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/982045c3f21398672e0267f8fbddffc861a01e24/intbitset_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
18910,
67,
267,
9551,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
444,
7812,
16,
14853,
444,
8395,
365,
6315,
4759,
67,
3813,
67,
267,
430,
267,
1137,
67,
542,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
542,
67,
18910,
67,
267,
9551,
12,
2890,
4672,
3536,
474,
3682,
542,
300,
444,
7812,
16,
14853,
444,
8395,
365,
6315,
4759,
67,
3813,
67,
267,
430,
267,
1137,
67,
542,
12,
... |
(0.10010010001000) | (0, 10010010001000) | def lyndon_factorization(self): r""" Returns the Lyndon factorization of self. The *Lyndon factorization* of a finite word `w` is the unique factorization of `w` as a non-increasing product of Lyndon words, i.e., `w = l_1\cdots l_n` where each `l_i` is a Lyndon word and `l_1\geq \cdots \geq l_n`. See for instance [1].... | b0ba0fe22bb130cc7503f5abe181d318f232b48e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b0ba0fe22bb130cc7503f5abe181d318f232b48e/word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
... |
def src_requirement(self, dist, location, find_tags): | def get_src_requirement(self, dist, location, find_tags): | def src_requirement(self, dist, location, find_tags): repo = self.get_url(location) if not repo.lower().startswith('git:'): repo = 'git+' + repo egg_project_name = dist.egg_name().split('-', 1)[0] if not repo: return None current_rev = self.get_revision(location) tag_revs = self.get_tag_revs(location) master_rev = self... | 404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/404ce4d68b7ccae8baf7b8e9c98d76c7210aa5aa/pip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4816,
67,
30848,
12,
2890,
16,
2411,
16,
2117,
16,
1104,
67,
4156,
4672,
3538,
273,
365,
18,
588,
67,
718,
12,
3562,
13,
309,
486,
3538,
18,
8167,
7675,
17514,
1918,
2668,
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,
336,
67,
4816,
67,
30848,
12,
2890,
16,
2411,
16,
2117,
16,
1104,
67,
4156,
4672,
3538,
273,
365,
18,
588,
67,
718,
12,
3562,
13,
309,
486,
3538,
18,
8167,
7675,
17514,
1918,
2668,
6... |
self.body.append(node.astext()) | self.body.append(node.astext() + "\n") | def visit_raw(self, node): if node.get('format') == 'manpage': self.body.append(node.astext()) # Keep non-manpage raw text out of output: raise nodes.SkipNode | 574809f8db3eb899fe06e96f6014d4b7770fa935 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/574809f8db3eb899fe06e96f6014d4b7770fa935/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
756,
18,
588,
2668,
2139,
6134,
422,
296,
4728,
2433,
4278,
365,
18,
3432,
18,
6923,
12,
2159,
18,
689,
408,
1435,
397,
1548,
82,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
756,
18,
588,
2668,
2139,
6134,
422,
296,
4728,
2433,
4278,
365,
18,
3432,
18,
6923,
12,
2159,
18,
689,
408,
1435,
397,
1548,
82,
7923,
... |
file.Write(" Validate%s(this, arg_count%s);\n" % | file.Write(" Validate%s(this, immediate_data_size%s);\n" % | def WriteHandlerImplementation (self, func, file): """Overrriden from TypeHandler.""" file.Write(" parse_error::ParseError result =\n") file.Write(" Validate%s(this, arg_count%s);\n" % (func.name, func.MakeOriginalArgString("", True))) file.Write(" if (result != parse_error::kParseNoError) {\n") file.Write(" ... | 3975916c448229deb7fa73586d80d6aebe8671fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/3975916c448229deb7fa73586d80d6aebe8671fa/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1503,
13621,
261,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
225,
1109,
67,
1636,
2866,
21004,
563,
273,
64,
82,
7923,
585,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1503,
13621,
261,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
225,
1109,
67,
1636,
2866,
21004,
563,
273,
64,
82,
7923,
585,... |
ligolwThincaToCoincNode = ligolw_thinca_to_coinc_node(ligolwThincaToCoincJob, dag, cachefile, "vetoes_"+cat+".xml.gz", "vetoes", "S5_HM_INJ", id, effsnrfac=50, p_node=[segNode[cat]]) | ligolwThincaToCoincNode[type+cat] = ligolw_thinca_to_coinc_node(ligolwThincaToCoincJob, dag, cachefile, "vetoes_"+cat+".xml.gz", "vetoes", "S5_HM_INJ", n, effsnrfac=50, p_node=[segNode[cat]]);n+=1 | def ifo_seg_dict(cp): out = {} out["H1"] = string.strip(cp.get('input','h1vetosegments')) out["H2"] = string.strip(cp.get('input','h2vetosegments')) out["L1"] = string.strip(cp.get('input','l1vetosegments')) return out | 1da6c4e85aaa08b723e95573cc2b7224faaad799 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1da6c4e85aaa08b723e95573cc2b7224faaad799/highmass_post_process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21479,
67,
5680,
67,
1576,
12,
4057,
4672,
596,
273,
2618,
596,
9614,
44,
21,
11929,
273,
533,
18,
6406,
12,
4057,
18,
588,
2668,
2630,
17023,
76,
21,
90,
278,
2584,
75,
1346,
26112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21479,
67,
5680,
67,
1576,
12,
4057,
4672,
596,
273,
2618,
596,
9614,
44,
21,
11929,
273,
533,
18,
6406,
12,
4057,
18,
588,
2668,
2630,
17023,
76,
21,
90,
278,
2584,
75,
1346,
26112,
... |
import sys; print >> sys.stderr, "unprotected path!" | def __call__(self, environ, start_response): request = Request(environ) session = environ['beaker.session'] csrf_token = session.get('csrf') if not csrf_token: csrf_token = session['csrf'] = str(random.getrandbits(128)) session.save() | f4ecf9ace9c070f709ca223ab4791f6202756be9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12761/f4ecf9ace9c070f709ca223ab4791f6202756be9/csrf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
590,
273,
1567,
12,
28684,
13,
1339,
273,
5473,
3292,
2196,
6388,
18,
3184,
3546,
19483,
67,
2316,
273,
1339,
18,
588,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
590,
273,
1567,
12,
28684,
13,
1339,
273,
5473,
3292,
2196,
6388,
18,
3184,
3546,
19483,
67,
2316,
273,
1339,
18,
588,
266... | |
self._conflictDepth = self.FindGapInSequence(parentDepths) | self._conflictDepth = self.FindFirstGapInSequence(parentDepths) | def CalculateConflictDepth(self): if not self._parentConflicts: return 0 # We'll find out the depth of all our parents, and then # see if there's an empty gap we can fill # this relies on parentDepths being sorted, which # is true because the conflicts are added in # the same order as the they appear in the calendar p... | 0b0bcdc9376f4157b3b649b73f4bc26ca6478fdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0b0bcdc9376f4157b3b649b73f4bc26ca6478fdd/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
10732,
6148,
12,
2890,
4672,
309,
486,
365,
6315,
2938,
30897,
30,
327,
374,
225,
468,
1660,
5614,
1104,
596,
326,
3598,
434,
777,
3134,
6298,
16,
471,
1508,
468,
2621,
309,
1915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
10732,
6148,
12,
2890,
4672,
309,
486,
365,
6315,
2938,
30897,
30,
327,
374,
225,
468,
1660,
5614,
1104,
596,
326,
3598,
434,
777,
3134,
6298,
16,
471,
1508,
468,
2621,
309,
1915,
... |
orf, pnmfile, os.path.devnull)) | pnmfile, os.path.devnull)) | def extract_ocr_info(self, pnmfiles): fd, orf = tempfile.mkstemp() os.close(fd) | 528d4c0b050a00a26d548575b21d8bcd758c00e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/528d4c0b050a00a26d548575b21d8bcd758c00e7/ImageStripper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
504,
86,
67,
1376,
12,
2890,
16,
11059,
81,
2354,
4672,
5194,
16,
578,
74,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
13,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
504,
86,
67,
1376,
12,
2890,
16,
11059,
81,
2354,
4672,
5194,
16,
578,
74,
273,
13275,
18,
24816,
19781,
84,
1435,
1140,
18,
4412,
12,
8313,
13,
2,
-100,
-100,
-100,
-100,
... |
os.environ['TEMPLATES'] = options.pdf.templates | set_templates(options.pdf.templates) | def pdf(): """Generate the PDF book. """ os.environ['TEMPLATES'] = options.pdf.templates run_sphinx('pdf') latex_dir = path(options.pdf.builddir) / 'latex' sh('cd %s; make' % latex_dir) return | 2555fabf2e435e350e3ec2734442e0124386f32b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1534/2555fabf2e435e350e3ec2734442e0124386f32b/pavement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8169,
13332,
3536,
4625,
326,
12667,
6978,
18,
3536,
444,
67,
8502,
12,
2116,
18,
7699,
18,
8502,
13,
1086,
67,
87,
15922,
2668,
7699,
6134,
25079,
67,
1214,
273,
589,
12,
2116,
18,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8169,
13332,
3536,
4625,
326,
12667,
6978,
18,
3536,
444,
67,
8502,
12,
2116,
18,
7699,
18,
8502,
13,
1086,
67,
87,
15922,
2668,
7699,
6134,
25079,
67,
1214,
273,
589,
12,
2116,
18,
76... |
this = apply(_quickfix.new_UnderlyingSecurityType, args) | this = _quickfix.new_UnderlyingSecurityType(*args) | def __init__(self, *args): this = apply(_quickfix.new_UnderlyingSecurityType, 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,
14655,
6291,
4368,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
14655,
6291,
4368,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
... |
cmdline = 'unzip -p %s %s > %s' % (filename, name_in_archive, xmlfname) | def open_vistrail_from_zip_xml(filename): """open_vistrail_from_zip_xml(filename) -> Vistrail Open a vistrail from a zip compressed format. It expects that the file inside archive has name vistrail """ name_in_archive = 'vistrail' (file_, xmlfname) = tempfile.mkstemp(suffix='.xml') core.requirements.require_executable... | 70a7806cefcbd4dc39b51e43fb54fb48eda3b919 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/70a7806cefcbd4dc39b51e43fb54fb48eda3b919/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
4672,
3536,
3190,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
13,
317,
776,
3337,
671,
3502,
279,
2281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
4672,
3536,
3190,
67,
90,
3337,
671,
67,
2080,
67,
4450,
67,
2902,
12,
3459,
13,
317,
776,
3337,
671,
3502,
279,
2281... | |
self.session.open(MessageBox, _("Service has been added to the selected bouquet."), MessageBox.TYPE_INFO) | if confirmed: self.session.open(MessageBox, _("Service has been added to the selected bouquet."), MessageBox.TYPE_INFO) | def bouquetSelClosed(self, **args): self.bsel = None del self.selectedSubservice self.session.open(MessageBox, _("Service has been added to the selected bouquet."), MessageBox.TYPE_INFO) | f855bd5291c74d34668cdbb77e9c89c80f4a5dc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/f855bd5291c74d34668cdbb77e9c89c80f4a5dc9/InfoBarGenerics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
800,
89,
28357,
1877,
7395,
12,
2890,
16,
2826,
1968,
4672,
365,
18,
70,
1786,
273,
599,
1464,
365,
18,
8109,
1676,
3278,
365,
18,
3184,
18,
3190,
12,
27647,
16,
389,
2932,
1179,
711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
800,
89,
28357,
1877,
7395,
12,
2890,
16,
2826,
1968,
4672,
365,
18,
70,
1786,
273,
599,
1464,
365,
18,
8109,
1676,
3278,
365,
18,
3184,
18,
3190,
12,
27647,
16,
389,
2932,
1179,
711,
... |
pxReq = '2.3' | def convert_qt_version(version): version = '%x'%version temp = [] while len(version) > 0: version, chunk = version[:-2], version[-2:] temp.insert(0, str(int(chunk, 16))) return '.'.join(temp) | 265b261e9eb6cc5931d7dcd9567cfbf8c96ad22f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14949/265b261e9eb6cc5931d7dcd9567cfbf8c96ad22f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
23311,
67,
1589,
12,
1589,
4672,
1177,
273,
1995,
92,
11,
9,
1589,
1906,
273,
5378,
1323,
562,
12,
1589,
13,
405,
374,
30,
1177,
16,
2441,
273,
1177,
10531,
17,
22,
6487,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
23311,
67,
1589,
12,
1589,
4672,
1177,
273,
1995,
92,
11,
9,
1589,
1906,
273,
5378,
1323,
562,
12,
1589,
13,
405,
374,
30,
1177,
16,
2441,
273,
1177,
10531,
17,
22,
6487,
1... | |
libraries.append(':'+fftpack) | if platform.system() == 'Darwin': extra_link_args=['-dylib_file libfftpack_lite.dylib:%s/%s' % \ (numpy_lib_dir, fftpack)] else: libraries.append(':'+fftpack) | def __init__(self, *args, **kwargs): Extension.__init__(self, *args, **kwargs) self.export_symbols = finallist(self.export_symbols) | 28b3422102f5bff32d42678f5aec8be448b6badf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/28b3422102f5bff32d42678f5aec8be448b6badf/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
10021,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
6530,
67,
15536,
273,
574,
454,
376,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
2826,
4333,
4672,
10021,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
365,
18,
6530,
67,
15536,
273,
574,
454,
376,
12,
... |
elif 0 and platform.atom_debug: | elif _debug: | def update_valence(self): #bruce 050728 revised this and also disabled the debug prints # repositions/alters existing singlets, updates bonding pattern, valence errors, etc; # might reorder bonds, kill singlets; but doesn't move the atom and doesn't alter # existing real bonds or other atoms; it might let atom record h... | 86dc2825e6e2d0eaf9a077c277f0dd52a872d099 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/86dc2825e6e2d0eaf9a077c277f0dd52a872d099/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1125,
802,
12,
2890,
4672,
468,
2848,
3965,
374,
3361,
27,
6030,
283,
26779,
333,
471,
2546,
5673,
326,
1198,
14971,
468,
283,
12388,
19,
287,
5432,
2062,
4864,
17307,
16,
4533... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1125,
802,
12,
2890,
4672,
468,
2848,
3965,
374,
3361,
27,
6030,
283,
26779,
333,
471,
2546,
5673,
326,
1198,
14971,
468,
283,
12388,
19,
287,
5432,
2062,
4864,
17307,
16,
4533... |
try: | if 1==1: | def get_current_name(ID, ln, rtype, table): """Returns a list of the names, either with the name in the current language, the default language, or just the name from the given table ln - a language supported by cdsware type - the type of value wanted, like 'ln', 'sn'""" try: res = "" if ID: res = run_sql("SELECT id_%s... | 1b908aac21c99ec78677675b1aafe3b54738ed4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/1b908aac21c99ec78677675b1aafe3b54738ed4d/bibrankadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2972,
67,
529,
12,
734,
16,
7211,
16,
9328,
16,
1014,
4672,
3536,
1356,
279,
666,
434,
326,
1257,
16,
3344,
598,
326,
508,
316,
326,
783,
2653,
16,
326,
805,
2653,
16,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2972,
67,
529,
12,
734,
16,
7211,
16,
9328,
16,
1014,
4672,
3536,
1356,
279,
666,
434,
326,
1257,
16,
3344,
598,
326,
508,
316,
326,
783,
2653,
16,
326,
805,
2653,
16,
578,
... |
lock.unlock(unconditionally=1) def remove(mlist, cgi=0): | def create(mlist, cgi=0, nolock=0): | def create(mlist, cgi=0): # Acquire the global list database lock lock = makelock() lock.lock() lockfp = None try: # First, open the dbhash file using built-in open so we can acquire an # exclusive lock on it. See the discussion above for why we do it # this way instead of specifying the `l' option to dbhash.open() lo... | 0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/0f74c78c0fe989ebf5c2a1c7fe6b1a538f381ac5/Postfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
781,
376,
16,
276,
10052,
33,
20,
4672,
468,
28822,
326,
2552,
666,
2063,
2176,
2176,
273,
29796,
292,
975,
1435,
2176,
18,
739,
1435,
2176,
7944,
273,
599,
775,
30,
468,
5783... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
781,
376,
16,
276,
10052,
33,
20,
4672,
468,
28822,
326,
2552,
666,
2063,
2176,
2176,
273,
29796,
292,
975,
1435,
2176,
18,
739,
1435,
2176,
7944,
273,
599,
775,
30,
468,
5783... |
(text, ok) = QInputDialog.getText('Qt Projection Count', 'How many of the best projections do you wish to consider?') | (text, ok) = QInputDialog.getText('Qt '+'Projection Count', 'How many of the best projections do you wish to consider?') | def projectionCountChanged(self): self.exampleList.clear() self.evaluatedExamples = [] | 3a917366dfcaa23b47aa7cab9fca53fa9238b162 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/3a917366dfcaa23b47aa7cab9fca53fa9238b162/OWkNNOptimization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8106,
1380,
5033,
12,
2890,
4672,
365,
18,
8236,
682,
18,
8507,
1435,
365,
18,
14168,
690,
23905,
273,
5378,
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,
8106,
1380,
5033,
12,
2890,
4672,
365,
18,
8236,
682,
18,
8507,
1435,
365,
18,
14168,
690,
23905,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
paths that go through each node) as a dictionary keyed by vertices. | paths that go through each vertex) as a dictionary keyed by vertices. | def centrality_betweenness(self, normalized=True): r""" Returns the betweenness centrality (fraction of number of shortest paths that go through each node) as a dictionary keyed by vertices. The betweenness is normalized by default to be in range (0,1). This wraps Networkx's implementation of the algorithm described i... | e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
15019,
4496,
12,
2890,
16,
5640,
33,
5510,
4672,
436,
8395,
2860,
326,
3086,
4496,
276,
8230,
7919,
261,
16744,
434,
1300,
434,
20579,
2953,
716,
1960,
3059,
1517,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
8230,
7919,
67,
15019,
4496,
12,
2890,
16,
5640,
33,
5510,
4672,
436,
8395,
2860,
326,
3086,
4496,
276,
8230,
7919,
261,
16744,
434,
1300,
434,
20579,
2953,
716,
1960,
3059,
1517,
5... |
resource_names = [ x for x in src.get_resource_names()[:101] | resource_names = [ x for x in src.get_resource_names() | def load_documents(): print 'Loading documents...', src = get_resource(docs_path) resource_names = [ x for x in src.get_resource_names()[:101] if x.endswith('.html') ] resource_names.sort() for name in resource_names: try: doc = Document(src.get_resource(name)) except: pass else: doc = {'title': doc.title(), 'body': do... | 81390ff83dd24cc355cac92ba3a94cb6f209ecb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/81390ff83dd24cc355cac92ba3a94cb6f209ecb8/prof.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
24795,
13332,
1172,
296,
10515,
7429,
7821,
16,
1705,
273,
336,
67,
3146,
12,
8532,
67,
803,
13,
1058,
67,
1973,
273,
306,
619,
364,
619,
316,
1705,
18,
588,
67,
3146,
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,
1262,
67,
24795,
13332,
1172,
296,
10515,
7429,
7821,
16,
1705,
273,
336,
67,
3146,
12,
8532,
67,
803,
13,
1058,
67,
1973,
273,
306,
619,
364,
619,
316,
1705,
18,
588,
67,
3146,
67,
... |
verbose("... FOUND '%s' in '%s'\n" % (filename, d)) | if verbose: verbose("... FOUND '%s' in '%s'\n" % (filename, d)) | #def filedir_lookup(p, fd=filedir): | 650b1972aa636a1b02e325debbce2fabb9786d89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/650b1972aa636a1b02e325debbce2fabb9786d89/FS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
585,
1214,
67,
8664,
12,
84,
16,
5194,
33,
768,
1214,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
585,
1214,
67,
8664,
12,
84,
16,
5194,
33,
768,
1214,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def fix(self, a, b, lim): a = clamp(a, 0, lim) * 1. / self.round b = clamp(b, 0, lim) * 1. / self.round if b < a: a, b = b, a | def fix(self, a, b, lim, round): a, b = sorted((b,a)) a = clamp(a, 0, lim) b = clamp(b, 0, lim) if not round: return a, b a *= 1. / self.round b *= 1. / self.round | def fix(self, a, b, lim): a = clamp(a, 0, lim) * 1. / self.round b = clamp(b, 0, lim) * 1. / self.round if b < a: a, b = b, a a = int(math.floor(a)*self.round) b = int(math.ceil(b)*self.round) ## if image is not a multiple of round, b could end up greater than lim return a, min(b, lim) | b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7932/b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3/cropgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
12,
2890,
16,
279,
16,
324,
16,
20167,
16,
3643,
4672,
279,
16,
324,
273,
3115,
12443,
70,
16,
69,
3719,
279,
273,
19049,
12,
69,
16,
374,
16,
20167,
13,
324,
273,
19049,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
12,
2890,
16,
279,
16,
324,
16,
20167,
16,
3643,
4672,
279,
16,
324,
273,
3115,
12443,
70,
16,
69,
3719,
279,
273,
19049,
12,
69,
16,
374,
16,
20167,
13,
324,
273,
19049,
12,
... |
except (sa_exceptions.ArgumentError, sa_exceptions.SQLError): pass | def _create_table_version(cls, engine, repository, version): """ Creates the versioning table in a database. """ # Create tables tname = repository.version_table meta = MetaData(engine) try: table = Table( tname, meta, Column('repository_id', String(255), primary_key=True), Column('repository_path', Text), Column('vers... | d7027d17a52ce23271cd136e71af65cc74081f4a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/149/d7027d17a52ce23271cd136e71af65cc74081f4a/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
2121,
67,
1589,
12,
6429,
16,
4073,
16,
3352,
16,
1177,
4672,
3536,
10210,
326,
1177,
310,
1014,
316,
279,
2063,
18,
3536,
468,
1788,
4606,
27829,
273,
3352,
18,
1589,
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,
389,
2640,
67,
2121,
67,
1589,
12,
6429,
16,
4073,
16,
3352,
16,
1177,
4672,
3536,
10210,
326,
1177,
310,
1014,
316,
279,
2063,
18,
3536,
468,
1788,
4606,
27829,
273,
3352,
18,
1589,
6... | |
Options include `TimeLineModule`, `RoadmapModule`, `BrowserModule`, `QueryModule`, `ReportModule` and `NewticketModule` (''since 0.9'').""") | Options include `TimelineModule`, `RoadmapModule`, `BrowserModule`, `QueryModule`, `ReportModule` and `TicketModule` (''since 0.9'').""") | def populate_hdf(hdf, env, req=None): """Populate the HDF data set with various information, such as common URLs, project information and request-related information. FIXME: do we really have req==None at times? """ from trac import __version__ hdf['trac'] = { 'version': __version__, 'time': format_datetime(), 'time.gm... | c6be894dc863b07932c6006acbbcd497b317d54b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c6be894dc863b07932c6006acbbcd497b317d54b/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
26428,
12,
26428,
16,
1550,
16,
1111,
33,
7036,
4672,
3536,
19097,
326,
21673,
501,
444,
598,
11191,
1779,
16,
4123,
487,
2975,
10414,
16,
1984,
1779,
471,
590,
17,
9243,
1779,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
26428,
12,
26428,
16,
1550,
16,
1111,
33,
7036,
4672,
3536,
19097,
326,
21673,
501,
444,
598,
11191,
1779,
16,
4123,
487,
2975,
10414,
16,
1984,
1779,
471,
590,
17,
9243,
1779,... |
self.classAd = ClassAd('[]') | self.classAd = ClassAd( '[]' ) | def __init__(self, ceName): """ Standard constructor """ self.log = gLogger.getSubLogger( ceName ) self.ceName = ceName self.ceType = '' #self.log.setLevel('debug') #temporary for debugging self.classAd = ClassAd('[]') self.ceRequirementDict = {} self.ceParameters = {} self.proxy = '' self.valid = None self.ceConfigD... | 3d103a1ec7530dcfac38e6ccc642be862e663b73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3d103a1ec7530dcfac38e6ccc642be862e663b73/ComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5898,
461,
4672,
3536,
8263,
3885,
3536,
365,
18,
1330,
225,
273,
314,
3328,
18,
588,
1676,
3328,
12,
5898,
461,
262,
365,
18,
311,
461,
273,
5898,
461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5898,
461,
4672,
3536,
8263,
3885,
3536,
365,
18,
1330,
225,
273,
314,
3328,
18,
588,
1676,
3328,
12,
5898,
461,
262,
365,
18,
311,
461,
273,
5898,
461,
... |
logerror(traceback.format_exc()) error = "Unknown error" | logerror(traceback.format_exc()) error = "Internal error" | def handle_error(self): """Called when an exception is raised and not otherwise handled.""" self.cmd_channel.debug("DTPHandler.handle_error()") try: raise # if error is connection related we provide a detailed # information about it except socket.error, err: if err[0] in errno.errorcode: error = err[1] else: error = "U... | 08a44a0f4f817f270bef740e82e4911e8e40f8fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/08a44a0f4f817f270bef740e82e4911e8e40f8fd/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
3536,
8185,
1347,
392,
1520,
353,
11531,
471,
486,
3541,
7681,
12123,
365,
18,
4172,
67,
4327,
18,
4148,
2932,
9081,
52,
1503,
18,
4110,
67,
1636,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
1636,
12,
2890,
4672,
3536,
8185,
1347,
392,
1520,
353,
11531,
471,
486,
3541,
7681,
12123,
365,
18,
4172,
67,
4327,
18,
4148,
2932,
9081,
52,
1503,
18,
4110,
67,
1636,
1435,
... |
if w_by is None: return w_self.splitByWhiteSpace | if w_by is w_self.space.w_None: return w_self.splitByWhitespace() | def split(w_self, w_by=None): if w_by is None: return w_self.splitByWhiteSpace res = [] start = 0 while 1: next = w_self.value.find(w_by.value, start) if next < 0: res.append(w_self.value[start:]) break res.append(w_self.value[start:next]) start = next + len(w_by.value) for i in range(len(res)): res[i] = W_StringObject... | bd78d71f30a8421fed8967aef8e823b2cbd6326b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/bd78d71f30a8421fed8967aef8e823b2cbd6326b/stringobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
91,
67,
2890,
16,
341,
67,
1637,
33,
7036,
4672,
309,
341,
67,
1637,
353,
341,
67,
2890,
18,
2981,
18,
91,
67,
7036,
30,
327,
341,
67,
2890,
18,
4939,
858,
9431,
1435,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
91,
67,
2890,
16,
341,
67,
1637,
33,
7036,
4672,
309,
341,
67,
1637,
353,
341,
67,
2890,
18,
2981,
18,
91,
67,
7036,
30,
327,
341,
67,
2890,
18,
4939,
858,
9431,
1435,
40... |
def _eval(self, n): | def _eval(self, n): """ EXAMPLES: sage: [sloane.A079923._eval(n) for n in range(1,11)] [5, 21, 76, 246, 738, 2108, 5794, 15458, 40296, 103129] """ | def _repr_(self): return "Solutions to the Dancing School problem with n girls and n+4 boys" | 69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
20608,
6170,
358,
326,
463,
304,
2822,
348,
343,
1371,
6199,
598,
290,
314,
481,
3251,
471,
290,
15,
24,
800,
1900,
6,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12715,
67,
12,
2890,
4672,
327,
315,
20608,
6170,
358,
326,
463,
304,
2822,
348,
343,
1371,
6199,
598,
290,
314,
481,
3251,
471,
290,
15,
24,
800,
1900,
6,
2,
-100,
-100,
-100,
... |
targetCollection = self.choices[self.chooser.GetSelection()] | tzinfo = self.tzchoices[self.tzchooser.GetSelection()] coll = targetCollection = self.choices[self.chooser.GetSelection()] if tzinfo is not None and targetCollection is not None: coll = None | def importFile(self): fullpath = self.filechooser.GetValue() if not os.path.isfile(fullpath): self.fail(_(u"File does not exist, import cancelled.")) return False (dir, filename) = os.path.split(fullpath) prefs = schema.ns("osaf.sharing", self.view).prefs prefs.import_dir = dir targetCollection = self.choices[self.ch... | 1f5cd868e1d7e90f11d39f0d382bd1dcb4831770 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1f5cd868e1d7e90f11d39f0d382bd1dcb4831770/ImportExport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
812,
12,
2890,
4672,
15170,
273,
365,
18,
768,
2599,
13164,
18,
967,
620,
1435,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2854,
803,
4672,
365,
18,
6870,
24899,
12,
89,
6,
812... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
812,
12,
2890,
4672,
15170,
273,
365,
18,
768,
2599,
13164,
18,
967,
620,
1435,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
2854,
803,
4672,
365,
18,
6870,
24899,
12,
89,
6,
812... |
self.numfiles = int(math.ceil(len(guids)/float(config['MaxJobsDQ2JobSplitter']))) nrjob = int(math.ceil(len(guids)/float(self.numfiles))) if self.numfiles > len(guids): self.numfiles = len(guids) | nrfiles = int(math.ceil(len(guids)/float(config['MaxJobsDQ2JobSplitter']))) nrjob = int(math.ceil(len(guids)/float(nrfiles))) if nrfiles > len(guids): nrfiles = len(guids) | def split(self,job): | 30af3ed580bfb24efde9f1b112a6ae6ecc72bfd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/30af3ed580bfb24efde9f1b112a6ae6ecc72bfd1/DQ2JobSplitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
4688,
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,
-10... |
return r | return r or [] | def undoable_transactions(self, AUTHENTICATION_PATH=None, first_transaction=None, last_transaction=None): | 10c95267ea60cb45fa269034349f21bef3affcb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/10c95267ea60cb45fa269034349f21bef3affcb8/Undo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
429,
67,
20376,
12,
2890,
16,
12790,
18915,
2689,
67,
4211,
33,
7036,
16,
1122,
67,
7958,
33,
7036,
16,
1142,
67,
7958,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
15436,
429,
67,
20376,
12,
2890,
16,
12790,
18915,
2689,
67,
4211,
33,
7036,
16,
1122,
67,
7958,
33,
7036,
16,
1142,
67,
7958,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
marketing_campaign() class marketing_campaign_segment(osv.osv): | marketing_campaign() class marketing_campaign_segment(osv.osv): | def state_cancel_set(self, cr, uid, ids, *args): self.write(cr, uid, ids, {'state': 'cancelled'}) return True | 4760a832f354437350b06aae5ddce4f88aa00f51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4760a832f354437350b06aae5ddce4f88aa00f51/marketing_campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
67,
10996,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
10996,
1259,
11,
6792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
919,
67,
10996,
67,
542,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
365,
18,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
13666,
2019,
4278,
296,
10996,
1259,
11,
6792,
... |
print '>[%s] %s' % (cam, st.sts[cam]['name']) | print '>[%s] %s' % (cam, cameras.cams[cam]['name']) | def printForm(selcam): print '<form method="GET" action="camera.py">' print "<b>Select Camera:</b>" print '<select name="id">' k = cameras.cams.keys() k.sort() for cam in k: print '<option value="'+ cam +'" ', if (cam == selcam): print " SELECTED ", print '>[%s] %s' % (cam, st.sts[cam]['name']) print '</select><input t... | 5f60b46e5a4496ddc04907930dbf0f103399a625 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11189/5f60b46e5a4496ddc04907930dbf0f103399a625/camera.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1204,
12,
1786,
20133,
4672,
1172,
2368,
687,
707,
1546,
3264,
6,
1301,
1546,
26426,
18,
2074,
7918,
1172,
3532,
70,
34,
3391,
30355,
19814,
70,
2984,
1172,
2368,
4025,
508,
1546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1204,
12,
1786,
20133,
4672,
1172,
2368,
687,
707,
1546,
3264,
6,
1301,
1546,
26426,
18,
2074,
7918,
1172,
3532,
70,
34,
3391,
30355,
19814,
70,
2984,
1172,
2368,
4025,
508,
1546,
... |
except Exception, e: print "FIXME: RegOpenKeyEx Exception", e | except Exception: pass | def __init__(self): self.path = "WindowsRegistry" self.map = {} try: import win32api | 26d755abcb280edc17b52975bc6c7fd05750be7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11925/26d755abcb280edc17b52975bc6c7fd05750be7c/iu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
803,
273,
315,
10399,
4243,
6,
365,
18,
1458,
273,
2618,
775,
30,
1930,
5657,
1578,
2425,
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,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
803,
273,
315,
10399,
4243,
6,
365,
18,
1458,
273,
2618,
775,
30,
1930,
5657,
1578,
2425,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
color, ptsize=24) | color, ptsize=24, surrogates=False) | def test_freetype_Font_render(self): | 123afcae652a53186b6d23aaebda05fb0f4996ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/123afcae652a53186b6d23aaebda05fb0f4996ba/freetype_font_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
266,
5872,
67,
5711,
67,
5902,
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,... | [
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,
1842,
67,
74,
266,
5872,
67,
5711,
67,
5902,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
where.append(s) | where.append('(' + s +')') | def find(self, **propspec): '''Get the ids of nodes in this class which link to the given nodes. | 8abcf2fcb72a8ff60bab69bd7ca3c519f051a883 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/8abcf2fcb72a8ff60bab69bd7ca3c519f051a883/rdbms_common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
2890,
16,
2826,
9693,
705,
4672,
9163,
967,
326,
3258,
434,
2199,
316,
333,
667,
1492,
1692,
358,
326,
864,
2199,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12,
2890,
16,
2826,
9693,
705,
4672,
9163,
967,
326,
3258,
434,
2199,
316,
333,
667,
1492,
1692,
358,
326,
864,
2199,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
msg = self.downloadSinglePackage(output) | msg = self.downloadPackageOnly(output) | def installSinglePackage(self, output=None): """Download, unpack and install a single package. If output is given it should be a file-like object and it will receive a log of what happened.""" if not self._dict['Download-URL']: return "%s: This package needs to be installed manually" % _fmtpackagename(self) msg = sel... | 7f14850d5112aac4e8f35b4973e47ec878faff5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7f14850d5112aac4e8f35b4973e47ec878faff5d/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
5281,
2261,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
7109,
16,
6167,
471,
3799,
279,
2202,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
5281,
2261,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
7109,
16,
6167,
471,
3799,
279,
2202,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
... |
test is notappropriate. | test is not appropriate. | def chisquare(f_obs, f_exp=None, ddof=0): """ Calculates a one-way chi square test. The chi square test tests the null hypothesis that the categorical data has the given frequencies. Parameters ---------- f_obs : array observed frequencies in each category f_exp : array, optional expected frequencies in each category... | d03be56073480c044df36c5a42d3e8f24c1327c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/d03be56073480c044df36c5a42d3e8f24c1327c4/stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
462,
291,
6182,
12,
74,
67,
10992,
16,
284,
67,
2749,
33,
7036,
16,
6957,
792,
33,
20,
4672,
3536,
26128,
279,
1245,
17,
1888,
17198,
8576,
1842,
18,
225,
1021,
17198,
8576,
1842,
7434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
462,
291,
6182,
12,
74,
67,
10992,
16,
284,
67,
2749,
33,
7036,
16,
6957,
792,
33,
20,
4672,
3536,
26128,
279,
1245,
17,
1888,
17198,
8576,
1842,
18,
225,
1021,
17198,
8576,
1842,
7434... |
self.bossTask = \ self.bossLiteSession.loadTask(self.bossJob['taskId'], False) | self.bossTask = self.bossLiteSession.loadTask( self.bossJob['taskId'], False ) | def doBOSSSubmit(self): """ _doSubmit_ | 4931c84ae4f8b7d1d709b69e031e6f6306a62735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/4931c84ae4f8b7d1d709b69e031e6f6306a62735/BossLiteBulkInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
5315,
1260,
11620,
12,
2890,
4672,
3536,
389,
2896,
11620,
67,
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,
741,
5315,
1260,
11620,
12,
2890,
4672,
3536,
389,
2896,
11620,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
wikipedia.output(u'Found: "',d, '" in content, nothing necessary') | wikipedia.output(u'Found: "%s" in content, nothing necessary'%d) | def handlebadpage(self): try: self.content = self.page.get() except IsRedirectPage: wikipedia.output(u'Already redirected, skipping.') return | af772c3789ebe593b89d77c00e9755aca4d2d7eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/af772c3789ebe593b89d77c00e9755aca4d2d7eb/followlive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
8759,
2433,
12,
2890,
4672,
775,
30,
365,
18,
1745,
273,
365,
18,
2433,
18,
588,
1435,
1335,
2585,
5961,
1964,
30,
21137,
18,
2844,
12,
89,
11,
9430,
21808,
16,
14195,
1093,
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,
1640,
8759,
2433,
12,
2890,
4672,
775,
30,
365,
18,
1745,
273,
365,
18,
2433,
18,
588,
1435,
1335,
2585,
5961,
1964,
30,
21137,
18,
2844,
12,
89,
11,
9430,
21808,
16,
14195,
1093,
13,
... |
temp = p p = b * p - a * p_last p_last = temp temp = q q = b * q - a * q_last q_last = temp | p_last, p = p, b * p - a * p_last q_last, q = q, b * q - a * q_last | def _erfc_contfrac(x): if x >= ERFC_CONTFRAC_CUTOFF: return 0. x2 = x * x a = 0. da = 0. p = 1. p_last = 0. q = da + x2 q_last = 1. for i in range(ERFC_CONTFRAC_TERMS): a += da da += 2. b = da + x2 temp = p p = b * p - a * p_last p_last = temp temp = q q = b * q - a * q_last q_last = temp return p / q * x * math.exp(-x... | 5a0a0cd11f0bfcd599bb976458c5a8f8ad12d5da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/5a0a0cd11f0bfcd599bb976458c5a8f8ad12d5da/interp_math.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
264,
7142,
67,
1213,
22187,
12,
92,
4672,
309,
619,
1545,
4232,
4488,
67,
6067,
9981,
2226,
67,
39,
1693,
8797,
30,
327,
374,
18,
619,
22,
273,
619,
380,
619,
279,
273,
374,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
264,
7142,
67,
1213,
22187,
12,
92,
4672,
309,
619,
1545,
4232,
4488,
67,
6067,
9981,
2226,
67,
39,
1693,
8797,
30,
327,
374,
18,
619,
22,
273,
619,
380,
619,
279,
273,
374,
18,... |
if progress_callback: progress_callback(filename, None) | if progress_callback: progress_callback(filename) | def _write(self, directory, progress_callback): """ A helper for L{write} that writes all documentation to a given directory. This is typically called once for the public API documentation, and once for the private API documentation. """ # Write the object documentation. self._write_docs(directory, progress_callback) ... | 494341ae87cb9e1215c1366850500c2e602af08c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/494341ae87cb9e1215c1366850500c2e602af08c/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
1867,
16,
4007,
67,
3394,
4672,
3536,
432,
4222,
364,
511,
95,
2626,
97,
716,
7262,
777,
7323,
358,
279,
864,
1867,
18,
225,
1220,
353,
14755,
2566,
3647,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
1867,
16,
4007,
67,
3394,
4672,
3536,
432,
4222,
364,
511,
95,
2626,
97,
716,
7262,
777,
7323,
358,
279,
864,
1867,
18,
225,
1220,
353,
14755,
2566,
3647,
364,... |
self._writer.SetInput(None) self._writer = None | def executeModule(self): if len(self._config.filename) and self._input: | 10a55979253d30bcea765a7bbfbb5a015562950a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/10a55979253d30bcea765a7bbfbb5a015562950a/ITKWriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
3120,
12,
2890,
4672,
225,
309,
562,
12,
2890,
6315,
1425,
18,
3459,
13,
471,
365,
6315,
2630,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
3120,
12,
2890,
4672,
225,
309,
562,
12,
2890,
6315,
1425,
18,
3459,
13,
471,
365,
6315,
2630,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
elif self.roomsmodel.get_value(iter, 2) >= 10000: | elif self.roomsmodel.get_value(iter, 2) >= 1: | def RoomStatus(self, column, cellrenderer, model, iter): | bd22d9a79d709d993463602575ff87e47daaa60e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/bd22d9a79d709d993463602575ff87e47daaa60e/chatrooms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27535,
1482,
12,
2890,
16,
1057,
16,
2484,
14374,
16,
938,
16,
1400,
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,
27535,
1482,
12,
2890,
16,
1057,
16,
2484,
14374,
16,
938,
16,
1400,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self, name="rdfxml", mime_type="application/rdf+xml", uri=None): | def __init__(self, name="rdfxml", mime_type="", uri=None): | def __init__(self, name="rdfxml", mime_type="application/rdf+xml", uri=None): """Create an RDF Parser (constructor). | c90deafabbd799d43c5890dabb28ac780d9d95c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/c90deafabbd799d43c5890dabb28ac780d9d95c2/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
1546,
19299,
2902,
3113,
4892,
67,
723,
1546,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
508,
1546,
19299,
2902,
3113,
4892,
67,
723,
1546,
3113,
2003,
33,
7036,
4672,
3536,
1684,
392,
13539,
6783,
261,
12316,
2934,
2,
-100,
-100,
-100,
-100,
-... |
if not groupsequence or groupsequence[-1] != group_key: | if not groupsequence or group_key not in groupsequence: | def template_data(self, context, tickets, orig_list=None, orig_time=None): constraints = {} for k, v in self.constraints.items(): constraint = {'values': [], 'mode': ''} for val in v: neg = val.startswith('!') if neg: val = val[1:] mode = '' if val[:1] in ('~', '^', '$'): mode, val = val[:1], val[1:] constraint['mode']... | 75336e37567048a8782385a8dc31b921d82aa07c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/75336e37567048a8782385a8dc31b921d82aa07c/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1542,
67,
892,
12,
2890,
16,
819,
16,
24475,
16,
1647,
67,
1098,
33,
7036,
16,
1647,
67,
957,
33,
7036,
4672,
6237,
273,
2618,
364,
417,
16,
331,
316,
365,
18,
11967,
18,
3319,
13332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
892,
12,
2890,
16,
819,
16,
24475,
16,
1647,
67,
1098,
33,
7036,
16,
1647,
67,
957,
33,
7036,
4672,
6237,
273,
2618,
364,
417,
16,
331,
316,
365,
18,
11967,
18,
3319,
13332... |
result = jobDB.getMask() | result = jobDB.getSiteMask(siteState='Active') | def selectJob(self, resourceJDL): """ Main job selection function to find the highest priority job matching the resource capacity """ | 44c6333e880109c5970260ed1670bfd1cd97e651 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/44c6333e880109c5970260ed1670bfd1cd97e651/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lambda: self.compareImage("testPolygon3", False), | lambda: self.compareImage("testPolygon3", True), addEmptyPoint, lambda: self.compareImage("testPolygon4", True), | def miterPolygons(): polygon = canvas.getChild(0) polygon.linejoin = "miter" polygon = canvas.getChild(1) polygon.linejoin = "miter" | aae1f2a8953bb385d3dca14be0fbc5394fdcde22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/aae1f2a8953bb385d3dca14be0fbc5394fdcde22/VectorTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
2165,
11787,
87,
13332,
7154,
273,
5953,
18,
588,
1763,
12,
20,
13,
7154,
18,
1369,
5701,
273,
315,
1938,
264,
6,
7154,
273,
5953,
18,
588,
1763,
12,
21,
13,
7154,
18,
1369,
570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
2165,
11787,
87,
13332,
7154,
273,
5953,
18,
588,
1763,
12,
20,
13,
7154,
18,
1369,
5701,
273,
315,
1938,
264,
6,
7154,
273,
5953,
18,
588,
1763,
12,
21,
13,
7154,
18,
1369,
570... |
print(5) | def __rfloordiv__(self, other): print(5) return self._r_o2(other, operator.floordiv) | c30383522dc8fd9e0b710819bb5b57eb24ea6f5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8535/c30383522dc8fd9e0b710819bb5b57eb24ea6f5f/vec2d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5809,
383,
517,
427,
972,
12,
2890,
16,
1308,
4672,
327,
365,
6315,
86,
67,
83,
22,
12,
3011,
16,
3726,
18,
74,
383,
517,
427,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5809,
383,
517,
427,
972,
12,
2890,
16,
1308,
4672,
327,
365,
6315,
86,
67,
83,
22,
12,
3011,
16,
3726,
18,
74,
383,
517,
427,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return err | if err: print err return False return True | def send(self, data): assert data err = "" try: self.socket.send(data) except error, err: code = err[0] if code == 32: err = "[!] lost connection with server" else: err = "[!] send() error: %s" % err if err and self.reconnect(): try: self.socket.send(data) err = '' except error, err: pass return err | e8424057361c5db604be73b03c0ba96b98511066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/e8424057361c5db604be73b03c0ba96b98511066/command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
1815,
501,
393,
273,
1408,
775,
30,
365,
18,
7814,
18,
4661,
12,
892,
13,
1335,
555,
16,
393,
30,
981,
273,
393,
63,
20,
65,
309,
981,
422,
3847,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
501,
4672,
1815,
501,
393,
273,
1408,
775,
30,
365,
18,
7814,
18,
4661,
12,
892,
13,
1335,
555,
16,
393,
30,
981,
273,
393,
63,
20,
65,
309,
981,
422,
3847,
30,... |
if opts.proxy: proxy = opts.proxy else: proxy = conf['proxy'] if proxy: from proxy.api import setup_proxy setup_proxy(proxy) | def main(): from optparse import OptionParser p = OptionParser( usage="usage: %prog [options] [name] [version]", description=("download and install eggs ...")) p.add_option("--config", action="store_true", help="display the configuration and exit") p.add_option('-f', "--force", action="store_true", help="force insta... | 8ab000f1194611a1c330c733d867501496fc3955 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7707/8ab000f1194611a1c330c733d867501496fc3955/enpkg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
628,
2153,
2670,
1930,
18862,
225,
293,
273,
18862,
12,
4084,
1546,
9167,
30,
738,
14654,
306,
2116,
65,
306,
529,
65,
306,
1589,
65,
3113,
2477,
33,
2932,
7813,
471,
3799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
628,
2153,
2670,
1930,
18862,
225,
293,
273,
18862,
12,
4084,
1546,
9167,
30,
738,
14654,
306,
2116,
65,
306,
529,
65,
306,
1589,
65,
3113,
2477,
33,
2932,
7813,
471,
3799,
... | |
if filename is None: kinit, kend, deltak = model.k[0], model.k[-1], model.k[1]-model.k[0] filename = hconfig.RESULTSDIR + "fo-" + foclass.__name__ + "-" + model.potential_func + "-" + str(kinit) + "-" + str(kend) + "-" + str(deltak) + "-" + time.strftime("%H%M%S") + ".hf5" | def runfomodel(filename=None, foargs=None, foclass=hconfig.foclass): """Execute a TwoStageModel from cosmomodels and save results. A new instance of foclass is created, with the specified arguments. The model is run and the results are then saved into a file with the specified filename Parameters ---------- filename:... | 46c7f2b0191e325015120b54f1db80714c43dd7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/46c7f2b0191e325015120b54f1db80714c43dd7b/harness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
74,
362,
1009,
12,
3459,
33,
7036,
16,
18261,
1968,
33,
7036,
16,
284,
504,
459,
33,
76,
1425,
18,
74,
504,
459,
4672,
3536,
5289,
279,
16896,
8755,
1488,
628,
4987,
81,
362,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
74,
362,
1009,
12,
3459,
33,
7036,
16,
18261,
1968,
33,
7036,
16,
284,
504,
459,
33,
76,
1425,
18,
74,
504,
459,
4672,
3536,
5289,
279,
16896,
8755,
1488,
628,
4987,
81,
362,
1... | |
lastversion=open(DV.conf_file_directory+'lastversion.damnvid','r') | lastversion=DamnOpenFile(DV.conf_file_directory+'lastversion.damnvid','r') | def DamnSysinfo(): try: sysinfo='DamnVid version: '+DV.version+'\nDamnVid mode: ' if DV.bit64: sysinfo+='64-bit' else: sysinfo+='32-bit' sysinfo+='\nDamnVid arguments: ' if len(sys.argv[1:]): sysinfo+=' '.join(sys.argv[1:]) else: sysinfo+='(None)' sysinfo+='\nMachine name: ' if len(platform.node()): sysinfo+=platform.n... | eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
12712,
1376,
13332,
775,
30,
2589,
1376,
2218,
40,
301,
82,
58,
350,
1177,
30,
15126,
30199,
18,
1589,
6797,
64,
82,
40,
301,
82,
58,
350,
1965,
30,
296,
309,
463,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
12712,
1376,
13332,
775,
30,
2589,
1376,
2218,
40,
301,
82,
58,
350,
1177,
30,
15126,
30199,
18,
1589,
6797,
64,
82,
40,
301,
82,
58,
350,
1965,
30,
296,
309,
463,
58,
... |
if op == IMPORT_NAME: name = lastname = co.co_names[oparg] if not self.badmodules.has_key(lastname): try: self.import_hook(name, m) except ImportError, msg: self.msg(2, "ImportError:", str(msg)) if not self.badmodules.has_key(name): self.badmodules[name] = {} self.badmodules[name][m.__name__] = None elif op == IMPORT_F... | if op == LOAD_CONST: fromlist = co.co_consts[oparg] elif op == IMPORT_NAME: assert fromlist is None or type(fromlist) is tuple | def scan_code(self, co, m): code = co.co_code n = len(code) i = 0 lastname = None while i < n: c = code[i] i = i+1 op = ord(c) if op >= dis.HAVE_ARGUMENT: oparg = ord(code[i]) + ord(code[i+1])*256 i = i+2 if op == IMPORT_NAME: name = lastname = co.co_names[oparg] if not self.badmodules.has_key(lastname): try: self.impo... | dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d/modulefinder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
67,
710,
12,
2890,
16,
1825,
16,
312,
4672,
981,
273,
1825,
18,
2894,
67,
710,
290,
273,
562,
12,
710,
13,
277,
273,
374,
1142,
529,
273,
599,
1323,
277,
411,
290,
30,
276,
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,
4135,
67,
710,
12,
2890,
16,
1825,
16,
312,
4672,
981,
273,
1825,
18,
2894,
67,
710,
290,
273,
562,
12,
710,
13,
277,
273,
374,
1142,
529,
273,
599,
1323,
277,
411,
290,
30,
276,
2... |
du56 = self._format_timestring(int(objsize/57344.0)) dsl256 = self._format_timestring(int(objsize/262144.0)) dsl768 = self._format_timestring(int(objsize/786432.0)) t1 = self._format_timestring(int(objsize/1536000.0)) | du56 = self._format_timestring(int(8*objsize/57344.0)) dsl256 = self._format_timestring(int(8*objsize/262144.0)) dsl768 = self._format_timestring(int(8*objsize/786432.0)) t1 = self._format_timestring(int(8*objsize/1536000.0)) | def generate_estimation_js(self): lines = [] objsize = float(self.context.get_size()) du56 = self._format_timestring(int(objsize/57344.0)) dsl256 = self._format_timestring(int(objsize/262144.0)) dsl768 = self._format_timestring(int(objsize/786432.0)) t1 = self._format_timestring(int(objsize/1536000.0)) | 18cdb3f2bc9da728d8f8a1c5fa9f00657ae96cd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10274/18cdb3f2bc9da728d8f8a1c5fa9f00657ae96cd3/publication.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
395,
5115,
67,
2924,
12,
2890,
4672,
2362,
273,
5378,
1081,
1467,
273,
1431,
12,
2890,
18,
2472,
18,
588,
67,
1467,
10756,
9978,
4313,
273,
365,
6315,
2139,
67,
8293,
371,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
395,
5115,
67,
2924,
12,
2890,
4672,
2362,
273,
5378,
1081,
1467,
273,
1431,
12,
2890,
18,
2472,
18,
588,
67,
1467,
10756,
9978,
4313,
273,
365,
6315,
2139,
67,
8293,
371,
12... |
self.winDecoComboBox = QtGui.QComboBox(self.tabWidgets[3]) for i in range(2): self.winDecoComboBox.addItem(prefStateStrings[i]) self.winDecoComboBox.setCurrentIndex(self.values[21]) | self.winDecoComboBox = QtGui.QCheckBox(self.tabWidgets[3]) self.winDecoComboBox.setCheckState(self.__rCheckState__(self.values[21])) | def __subWidgets__(self): self.labels={} self.boxes={} self.labelbox={} self.tabWidgets={} self.notebook = QtGui.QTabWidget(self.window) for i in range(4): self.labelbox[i]=QtGui.QVBoxLayout() self.tabWidgets[i]=QtGui.QWidget() | be37e1c0f6e2e7ac834bcef036f133de5458c665 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9403/be37e1c0f6e2e7ac834bcef036f133de5458c665/rmdPrefsWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
16166,
972,
12,
2890,
4672,
365,
18,
5336,
12938,
365,
18,
15918,
12938,
365,
18,
1925,
2147,
12938,
365,
18,
7032,
16166,
12938,
365,
18,
24422,
273,
23425,
18,
53,
5661,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
16166,
972,
12,
2890,
4672,
365,
18,
5336,
12938,
365,
18,
15918,
12938,
365,
18,
1925,
2147,
12938,
365,
18,
7032,
16166,
12938,
365,
18,
24422,
273,
23425,
18,
53,
5661,
46... |
'http://download.banshee-project.org/banshee/stable/%{version}/%{name}-%{version}.tar.bz2' | 'http://download.banshee-project.org/banshee/stable/%{version}/%{name}-%{version}.tar.bz2', 'patches/banshee-1.5.4-ige-mac-integration.patch' | def __init__ (self): Package.__init__ (self, 'banshee-1', '1.5.4') | 355280020c029be671464cd6c604370565fc0db1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10924/355280020c029be671464cd6c604370565fc0db1/banshee.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
7508,
16186,
2738,
972,
261,
2890,
16,
296,
70,
634,
580,
73,
17,
21,
2187,
296,
21,
18,
25,
18,
24,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
4672,
7508,
16186,
2738,
972,
261,
2890,
16,
296,
70,
634,
580,
73,
17,
21,
2187,
296,
21,
18,
25,
18,
24,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sage: sr = mq.SR(10,1,2,4) sage: sr.vars('x',2) | sage: sr = mq.SR(10, 1, 2, 4) sage: sr.vars('x', 2) | def vars(self, name, round, rc=None, e=None): """ Return a list ofvariables in self. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4153,
12,
2890,
16,
508,
16,
3643,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
666,
434,
7528,
316,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4153,
12,
2890,
16,
508,
16,
3643,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
666,
434,
7528,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for f in self.configuration.file: self.parseConfigurationFile( f ) self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) ) | self.configuration.file.append( os.path.join( "conf", "bitbake.conf" ) ) self.parseConfigurationFile(self.configuration.file) | def parseConfiguration(self): | cb8684f9bce2ba06f42f1f49e4feb4675c311c24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8123/cb8684f9bce2ba06f42f1f49e4feb4675c311c24/cooker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1750,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1750,
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,
-... |
self.fp = sock.makefile("rb") | self.fp = sock.makefile(sock, "rb") | def __init__(self, sock, debuglevel=0, strict=0, method=None): # If the response includes a content-length header, we # need to make sure that the client doesn't read more than the # specified number of bytes. If it does, it will block until # the server times out and closes the connection. (The only # applies to HTT... | db6feff9f96907b2f950d944a9be78d1241abc0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/db6feff9f96907b2f950d944a9be78d1241abc0e/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1198,
2815,
33,
20,
16,
5490,
33,
20,
16,
707,
33,
7036,
4672,
468,
971,
326,
766,
6104,
279,
913,
17,
2469,
1446,
16,
732,
468,
1608,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7313,
16,
1198,
2815,
33,
20,
16,
5490,
33,
20,
16,
707,
33,
7036,
4672,
468,
971,
326,
766,
6104,
279,
913,
17,
2469,
1446,
16,
732,
468,
1608,
358,
... |
def runtest(test, generate, verbose, quiet, testdir = None): | def runtest(test, generate, verbose, quiet, testdir=None): | def runtest(test, generate, verbose, quiet, testdir = None): """Run a single test. test -- the name of the test generate -- if true, generate output, instead of running the test and comparing it to a previously created output file verbose -- if true, print more messages quiet -- if true, don't print 'skipped' messages ... | 162cda89f996f568873131bb449c3ca377d6199b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/162cda89f996f568873131bb449c3ca377d6199b/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
3813,
16,
2103,
16,
3988,
16,
10902,
16,
1842,
1214,
33,
7036,
4672,
3536,
1997,
279,
2202,
1842,
18,
1842,
1493,
326,
508,
434,
326,
1842,
2103,
1493,
309,
638,
16,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
3813,
16,
2103,
16,
3988,
16,
10902,
16,
1842,
1214,
33,
7036,
4672,
3536,
1997,
279,
2202,
1842,
18,
1842,
1493,
326,
508,
434,
326,
1842,
2103,
1493,
309,
638,
16,
21... |
photoFileStorage = FileSystemStorage(location=settings.EXPOWEB.PHOTOS_ROOT, base_url=settings.PHOTOS_URL) | photoFileStorage = FileSystemStorage(location=settings.PHOTOS_ROOT, base_url=settings.PHOTOS_URL) | def get_previous_by_id(self): return QM.objects.get(id=self.id-1) | aaa1cd019ca27d5826ba42ff41493e53bf36edf9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6441/aaa1cd019ca27d5826ba42ff41493e53bf36edf9/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11515,
67,
1637,
67,
350,
12,
2890,
4672,
327,
2238,
49,
18,
6911,
18,
588,
12,
350,
33,
2890,
18,
350,
17,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11515,
67,
1637,
67,
350,
12,
2890,
4672,
327,
2238,
49,
18,
6911,
18,
588,
12,
350,
33,
2890,
18,
350,
17,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if dbp.shouldBreak(iff=iff): dbp.doBreak(frameCount=frameCount+1) | dbp.maybeBreak(iff=iff,frameCount=frameCount+1) | def wrap(*args, **kwds): #create our bp object dname = name or f.__name__ dgrp = grp dcfg = cfg dbp = bp(name=dname,grp=dgrp,cfg=dcfg) if dbp.shouldBreak(iff=iff): dbp.doBreak(frameCount=frameCount+1) f_result = f(*args, **kwds) return f_result | f99809fde9e805ac3e6181e479e4e1522eafa148 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/f99809fde9e805ac3e6181e479e4e1522eafa148/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
30857,
1968,
16,
2826,
25577,
4672,
468,
2640,
3134,
9107,
733,
302,
529,
273,
508,
578,
284,
16186,
529,
972,
302,
17532,
273,
14295,
6744,
2137,
273,
2776,
1319,
84,
273,
9107,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
30857,
1968,
16,
2826,
25577,
4672,
468,
2640,
3134,
9107,
733,
302,
529,
273,
508,
578,
284,
16186,
529,
972,
302,
17532,
273,
14295,
6744,
2137,
273,
2776,
1319,
84,
273,
9107,
1... |
if self.dateName == tail: | if basePathLimit == tail: | def __cleanDirectory(self,datepath,basePathLimit): """Look higher and higher up the storage branch until you hit the top or a non-empty sub-directory""" opath = datepath while True: path,tail = os.path.split(opath) if self.dateName == tail: break try: os.rmdir(opath) except OSError,e: if errno.ENOTEMPTY == e.errno: # D... | 2196f7732f8ac8afc43781ffbacb196562f42a36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/2196f7732f8ac8afc43781ffbacb196562f42a36/JsonDumpStorage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6200,
2853,
12,
2890,
16,
712,
803,
16,
27605,
3039,
4672,
3536,
9794,
10478,
471,
10478,
731,
326,
2502,
3803,
3180,
1846,
6800,
326,
1760,
578,
279,
1661,
17,
5531,
720,
17,
5149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6200,
2853,
12,
2890,
16,
712,
803,
16,
27605,
3039,
4672,
3536,
9794,
10478,
471,
10478,
731,
326,
2502,
3803,
3180,
1846,
6800,
326,
1760,
578,
279,
1661,
17,
5531,
720,
17,
5149... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.