rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
return self.copy().__ixor__(other) | if sum(len(s) for s in self.values()) <= sum(len(s) for s in other.values()): return self.copy().__ixor__(other) return other.copy().__ixor__(self) | def __xor__(self, other): return self.copy().__ixor__(other) | 3013c3973d4ab773f6e9e9aaafe2ee8902c4e432 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/3013c3973d4ab773f6e9e9aaafe2ee8902c4e432/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31346,
972,
12,
2890,
16,
1308,
4672,
327,
365,
18,
3530,
7675,
972,
697,
280,
972,
12,
3011,
13,
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,
1001,
31346,
972,
12,
2890,
16,
1308,
4672,
327,
365,
18,
3530,
7675,
972,
697,
280,
972,
12,
3011,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
c.set_status(status,donedate=donedate) | if c.get_status() in ["Active"] : c.set_status(status,donedate=donedate) | def set_status(self,status,donedate=None) : old_status = self.status self.can_be_deleted = False if status : self.status = status #If Done, we set the done date if status in ["Done","Dismiss"] : for c in self.get_subtasks() : c.set_status(status,donedate=donedate) #to the specified date (if any) if donedate : self.clos... | c5f5895fb192a1b4f195e27dde7d5ffcd03fe8b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/c5f5895fb192a1b4f195e27dde7d5ffcd03fe8b3/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
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,
67,
2327,
12,
2890,
16,
2327,
16,
72,
8184,
340,
33,
7036,
13,
294,
1592,
67,
2327,
273,
365,
18,
2327,
365,
18,
4169,
67,
2196,
67,
8600,
273,
1083,
309,
1267,
294,
365,
18,
... |
self._apply_assist(result, starting_offset, offset) | self._apply_assist(source, result, starting_offset, offset) | def code_assist(self, prefix): source = self._get_text() starting_offset, names = self._calculate_proposals(source) if prefix is not None: arg = lisp.prefix_numeric_value(prefix) if arg == 0: arg = len(names) common_start = self._calculate_prefix(names[:arg]) lisp.insert(common_start[self._get_offset() - starting_offse... | 18684b982c488de59c573c6f0f8132b6e8f42bba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8283/18684b982c488de59c573c6f0f8132b6e8f42bba/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
428,
376,
12,
2890,
16,
1633,
4672,
1084,
273,
365,
6315,
588,
67,
955,
1435,
5023,
67,
3348,
16,
1257,
273,
365,
6315,
11162,
67,
685,
22536,
12,
3168,
13,
309,
1633,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
428,
376,
12,
2890,
16,
1633,
4672,
1084,
273,
365,
6315,
588,
67,
955,
1435,
5023,
67,
3348,
16,
1257,
273,
365,
6315,
11162,
67,
685,
22536,
12,
3168,
13,
309,
1633,
353,
... |
gobject.idle_add(_fork, win) | dlg.window.set_cursor(wait_cursor) gobject.idle_add(_fork) | def _fork(window): dlg.destroy() repos_tree = self.gld.get_widget("repos_tree") repos_model = repos_tree.get_model() pacs = self.database.get_by_keywords(keywords) if self.search_iter: repos_model.remove(self.search_iter) self.search_iter = repos_model.append(None, [_("Search results for '%s'") %keywords]) self.models... | 64e1ca025017891278f9940d2cf1488af419581a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/64e1ca025017891278f9940d2cf1488af419581a/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23335,
12,
5668,
4672,
25840,
18,
11662,
1435,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
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,
23335,
12,
5668,
4672,
25840,
18,
11662,
1435,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
18,
... |
def RunCommand(argv): """Runs the command with given argv and returns exit code.""" try: proc = subprocess.Popen(argv, stdout=None) except OSError: return 1 output = proc.communicate()[0] return proc.returncode | NONESSENTIAL_DIRS = ( 'chrome/test/data', 'chrome/tools/test/reference_build', 'gears/binaries', 'net/data/cache_tests', 'o3d/documentation', 'o3d/samples', 'third_party/lighttpd', 'third_party/WebKit/LayoutTests', 'webkit/data/layout_tests', 'webkit/tools/test/reference_build', ) def GetSourceDirectory(): return os.p... | def RunCommand(argv): """Runs the command with given argv and returns exit code.""" try: proc = subprocess.Popen(argv, stdout=None) except OSError: return 1 output = proc.communicate()[0] return proc.returncode | 3bcea86de6bbab9ae23146b2aed08028ae800ecb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/3bcea86de6bbab9ae23146b2aed08028ae800ecb/export_tarball.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
18708,
3991,
17418,
6365,
67,
4537,
55,
273,
261,
296,
343,
10896,
19,
3813,
19,
892,
2187,
296,
343,
10896,
19,
6642,
19,
3813,
19,
6180,
67,
3510,
2187,
296,
908,
5913,
19,
4757,
5646,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
18708,
3991,
17418,
6365,
67,
4537,
55,
273,
261,
296,
343,
10896,
19,
3813,
19,
892,
2187,
296,
343,
10896,
19,
6642,
19,
3813,
19,
6180,
67,
3510,
2187,
296,
908,
5913,
19,
4757,
5646,
218... |
if '~' not in str: | if '~' not in str and '$' not in str: | def Path(str): if str not in _pathCache: if '~' not in str: p = _Path(str) else: p = _ExpandedPath(str) _pathCache[str] = p return p else: return _pathCache[str] | cdbedc8602ede5fbc58aa0f2d11b27cb5ba22e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/cdbedc8602ede5fbc58aa0f2d11b27cb5ba22e5a/cfgtypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2666,
12,
701,
4672,
309,
609,
486,
316,
389,
803,
1649,
30,
309,
17690,
486,
316,
609,
471,
11874,
486,
316,
609,
30,
293,
273,
389,
743,
12,
701,
13,
469,
30,
293,
273,
389,
17957,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2666,
12,
701,
4672,
309,
609,
486,
316,
389,
803,
1649,
30,
309,
17690,
486,
316,
609,
471,
11874,
486,
316,
609,
30,
293,
273,
389,
743,
12,
701,
13,
469,
30,
293,
273,
389,
17957,... |
for j in range(framecount): vals[i][j]=vals[boneno][j] elif event>=VALS_B: vals[boneno][event-VALS_B]=vals_b[boneno][event-VALS_B].val for i in range(len(bones)): if datarefs[i]==datarefs[boneno] and indices[i]==indices[boneno]: loops[i]=loops[boneno] for j in range(framecount): | for j in range(min(framecount,len(vals[i]))): | def bevent (evt): global framecount boneno=evt/EVENTMAX event=evt-boneno*EVENTMAX if boneno>=bonecount: # hide/show hs=boneno-bonecount if event==DATAREF_B: hideshow[hs]=dataref_b[boneno].val ref=hideshow[hs].split('/') if len(ref)==1: # lookup if hideshow[hs] in lookup and lookup[hideshow[hs]]: (path, n)=lookup[hides... | 41ec1c2655a325b4ea4136d5c1ee7cf29022441f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10896/41ec1c2655a325b4ea4136d5c1ee7cf29022441f/XPlaneAnimObject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
506,
616,
261,
73,
11734,
4672,
2552,
2623,
1883,
225,
324,
265,
5764,
33,
73,
11734,
19,
10454,
6694,
871,
33,
73,
11734,
17,
18688,
5764,
14,
10454,
6694,
309,
324,
265,
5764,
34,
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,
506,
616,
261,
73,
11734,
4672,
2552,
2623,
1883,
225,
324,
265,
5764,
33,
73,
11734,
19,
10454,
6694,
871,
33,
73,
11734,
17,
18688,
5764,
14,
10454,
6694,
309,
324,
265,
5764,
34,
33... |
msg_size = 40 | msg_size = 34 | def test_credit_flow_bytes(self): """ Test basic credit based flow control with unit = bytes """ #declare an exclusive queue channel = self.channel channel.queue_declare(queue = "q", exclusive=True, auto_delete=True) #create consumer (for now that defaults to infinite credit) channel.message_subscribe(queue = "q", dest... | 1354dbc691d8c5d59189acb664731d8cf049fddb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/197/1354dbc691d8c5d59189acb664731d8cf049fddb/message.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20688,
67,
2426,
67,
3890,
12,
2890,
4672,
3536,
7766,
5337,
12896,
2511,
4693,
3325,
598,
2836,
273,
1731,
3536,
468,
29554,
392,
12060,
2389,
1904,
273,
365,
18,
4327,
1904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20688,
67,
2426,
67,
3890,
12,
2890,
4672,
3536,
7766,
5337,
12896,
2511,
4693,
3325,
598,
2836,
273,
1731,
3536,
468,
29554,
392,
12060,
2389,
1904,
273,
365,
18,
4327,
1904,
... |
partner_id= partner_id[0] user_id=user_id[0] | partner_id=partner_id and partner_id[0] or False user_id=user_id and user_id[0] or False | def _find_project_bug(self, cr, uid,lp_server=None,context={}): pool=pooler.get_pool(cr.dbname) case_stage= pool.get('crm.case.stage') categ_fix_id=case_stage.search(cr, uid, [('object_id.model','=','crm.project.bug'),('name','=','Fixed')])[0] categ_inv_id=case_stage.search(cr, uid, [('object_id.model','=','crm.project... | 0dcd64c56d64a876c90501b23d41c3a123133181 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/0dcd64c56d64a876c90501b23d41c3a123133181/crm_lp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
4406,
67,
925,
12,
2890,
16,
4422,
16,
4555,
16,
9953,
67,
3567,
33,
7036,
16,
2472,
12938,
4672,
2845,
33,
6011,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
648,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
4406,
67,
925,
12,
2890,
16,
4422,
16,
4555,
16,
9953,
67,
3567,
33,
7036,
16,
2472,
12938,
4672,
2845,
33,
6011,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
648,... |
OPTS=['BUILDING_PANDA', 'ZLIB', 'VRPN', 'JPEG', 'PNG', 'TIFF', 'NSPR', 'FREETYPE', 'HELIX', | OPTS=['BUILDING_PANDA', 'ZLIB', 'VRPN', 'JPEG', 'PNG', 'TIFF', 'NSPR', 'FREETYPE', 'HELIX', 'FFTW', | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | 37dba03aa7789ae67e14f92b91ba92b911952d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/37dba03aa7789ae67e14f92b91ba92b911952d35/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
>>> tables[0].text '2005-07-01, Friday' | >>> print tables[0].text 2005-07-01, Friday | def doctest_WeeklyPDFCalendarView(): r"""Tests for WeeklyPDFCalendarView. >>> from schooltool.app.browser.pdfcal import WeeklyPDFCalendarView >>> calendar = ISchoolToolCalendar(Person()) >>> request = TestRequest(form={'date': '2005-07-01'}) >>> view = WeeklyPDFCalendarView(calendar, request) >>> view.getCalendars = l... | bdff415eed838e506806ddb786cfdb2d2d5ce8f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/bdff415eed838e506806ddb786cfdb2d2d5ce8f9/test_pdfcal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31263,
395,
67,
6630,
715,
17508,
7335,
1767,
13332,
436,
8395,
14650,
364,
10527,
715,
17508,
7335,
1767,
18,
225,
4080,
628,
18551,
1371,
6738,
18,
2910,
18,
11213,
18,
7699,
771,
1930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31263,
395,
67,
6630,
715,
17508,
7335,
1767,
13332,
436,
8395,
14650,
364,
10527,
715,
17508,
7335,
1767,
18,
225,
4080,
628,
18551,
1371,
6738,
18,
2910,
18,
11213,
18,
7699,
771,
1930,
... |
__builtin__.open = _file __builtin__.file = _open | __builtin__.open = _open __builtin__.file = _file | def run(self, func): """Run 'func' under os sandboxing""" try: self._copy(self) __builtin__.file = self._file __builtin__.open = self._open self._active = True return func() finally: self._active = False __builtin__.open = _file __builtin__.file = _open self._copy(_os) | 9e86a83d9b16147dfda3ae2d74c2ed82c1c893a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/495/9e86a83d9b16147dfda3ae2d74c2ed82c1c893a7/sandbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1326,
4672,
3536,
1997,
296,
644,
11,
3613,
1140,
15202,
310,
8395,
775,
30,
365,
6315,
3530,
12,
2890,
13,
1001,
24553,
25648,
768,
273,
365,
6315,
768,
1001,
24553,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1326,
4672,
3536,
1997,
296,
644,
11,
3613,
1140,
15202,
310,
8395,
775,
30,
365,
6315,
3530,
12,
2890,
13,
1001,
24553,
25648,
768,
273,
365,
6315,
768,
1001,
24553,... |
def toDependency(self): | def toDependency(self, recipename=''): | def toDependency(self): """ Convert this flag set to a list of dependencies """ # XXX this code should probably disappear with the reworking of # flavors and their relationship with deps, but for now, # it is very handy set = deps.DependencySet() useflagsets = [] if self._name != '__GLOBAL__': self = self.asSet() if 'U... | a003a2d126941d940bb074ffb33e47b25b256a19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a003a2d126941d940bb074ffb33e47b25b256a19/use.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
7787,
12,
2890,
16,
5863,
1069,
2218,
11,
4672,
3536,
4037,
333,
2982,
444,
358,
279,
666,
434,
5030,
3536,
468,
11329,
333,
981,
1410,
8656,
1015,
438,
17964,
598,
326,
283,
20478,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
7787,
12,
2890,
16,
5863,
1069,
2218,
11,
4672,
3536,
4037,
333,
2982,
444,
358,
279,
666,
434,
5030,
3536,
468,
11329,
333,
981,
1410,
8656,
1015,
438,
17964,
598,
326,
283,
20478,... |
self.library_dirs = self.find_lib_dir() | if self.is_available(): self.library_dirs = self.find_lib_dir() | def __init__(self, fc=None, f90c=None, verbose=0): fortran_compiler_base.__init__(self, verbose=verbose) | 95056afcb4ef5d7c70ebf575f0477aef7bd28dac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/95056afcb4ef5d7c70ebf575f0477aef7bd28dac/build_flib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8036,
33,
7036,
16,
284,
9349,
71,
33,
7036,
16,
3988,
33,
20,
4672,
364,
13171,
67,
9576,
67,
1969,
16186,
2738,
972,
12,
2890,
16,
3988,
33,
11369,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8036,
33,
7036,
16,
284,
9349,
71,
33,
7036,
16,
3988,
33,
20,
4672,
364,
13171,
67,
9576,
67,
1969,
16186,
2738,
972,
12,
2890,
16,
3988,
33,
11369,
1... |
eventloop.add_timeout(0.5, self._stage_file, "staging file") | def _loop(self): executable = self.get_executable() args = self.get_parameters() self._start_logging(executable, args) if os.path.exists(self.final_output_path): self._log_progress("Removing existing output file (%s)...\n" % self.final_output_path) os.remove(self.final_output_path) | 4cde519e7f7f20ff8eb8e8f62a2d8a952e9c74f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/4cde519e7f7f20ff8eb8e8f62a2d8a952e9c74f5/videoconversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6498,
12,
2890,
4672,
9070,
273,
365,
18,
588,
67,
17751,
1435,
833,
273,
365,
18,
588,
67,
3977,
1435,
365,
6315,
1937,
67,
11167,
12,
17751,
16,
833,
13,
225,
309,
1140,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6498,
12,
2890,
4672,
9070,
273,
365,
18,
588,
67,
17751,
1435,
833,
273,
365,
18,
588,
67,
3977,
1435,
365,
6315,
1937,
67,
11167,
12,
17751,
16,
833,
13,
225,
309,
1140,
18,
8... | |
class PackingAlgorithm(object): | class Packer(object): | def __init__(cls, *args, **kwargs): pass | 8f393dd1f01993b8832a473d1cdfff8571a42c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/8f393dd1f01993b8832a473d1cdfff8571a42c4e/packing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
380,
1968,
16,
2826,
4333,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6429,
16,
380,
1968,
16,
2826,
4333,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def _authenticate(self): | def _authenticate(self, force=False): | def _authenticate(self): ''' Return an authenticated session cookie. ''' if self._sessionCookie: return self._sessionCookie | 6b5bee58529db07c3438fd6beac4fa94676f3abc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9952/6b5bee58529db07c3438fd6beac4fa94676f3abc/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
22035,
12,
2890,
16,
2944,
33,
8381,
4672,
9163,
2000,
392,
9370,
1339,
3878,
18,
9163,
309,
365,
6315,
3184,
6151,
30,
327,
365,
6315,
3184,
6151,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
22035,
12,
2890,
16,
2944,
33,
8381,
4672,
9163,
2000,
392,
9370,
1339,
3878,
18,
9163,
309,
365,
6315,
3184,
6151,
30,
327,
365,
6315,
3184,
6151,
2,
-100,
-100,
-100,
-100,
-100,
... |
print 'You must decide what language will be contains actual non translatable fields data' | print 'Choose a language in which to put current untranslated data.' | def ask_for_default_language(): print 'These are configured languages:' for i, lang_tuple in enumerate(settings.LANGUAGES): print '\t%d. %s' % (i+1, lang_tuple[1]) print 'You must decide what language will be contains actual non translatable fields data' while True: prompt = 'What will be the destination language for d... | bda2e982b9e8cea39e59cb377c1b86cac7e729e1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11729/bda2e982b9e8cea39e59cb377c1b86cac7e729e1/sync_transmeta_db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6827,
67,
1884,
67,
1886,
67,
4923,
13332,
1172,
296,
29690,
854,
4351,
8191,
2497,
364,
277,
16,
3303,
67,
8052,
316,
4241,
12,
4272,
18,
15547,
55,
4672,
1172,
2337,
88,
9,
72,
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,
6827,
67,
1884,
67,
1886,
67,
4923,
13332,
1172,
296,
29690,
854,
4351,
8191,
2497,
364,
277,
16,
3303,
67,
8052,
316,
4241,
12,
4272,
18,
15547,
55,
4672,
1172,
2337,
88,
9,
72,
18,
... |
delay = 0 | delay = 0 else: progress.pulse() | def extract_xiso(self): self.extracted_filename = None | d86f2bb533a4557e131960eae5ef599347d8bf24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/d86f2bb533a4557e131960eae5ef599347d8bf24/gxiso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
365,
18,
8004,
329,
67,
3459,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
365,
18,
8004,
329,
67,
3459,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def __init__(self, data, mark = None): | def __init__(self, data): | def __init__(self, data, mark = None): GitElement.__init__(self) self.type = 'blob' self.data = data self.mark = translate_mark(mark) | 4f7e24351e8619f6f89645b4457ccb6c62f12487 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10384/4f7e24351e8619f6f89645b4457ccb6c62f12487/parseit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
4672,
6646,
1046,
16186,
2738,
972,
12,
2890,
13,
365,
18,
723,
273,
296,
10721,
11,
365,
18,
892,
273,
501,
365,
18,
3355,
273,
4204,
67,
3355,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
4672,
6646,
1046,
16186,
2738,
972,
12,
2890,
13,
365,
18,
723,
273,
296,
10721,
11,
365,
18,
892,
273,
501,
365,
18,
3355,
273,
4204,
67,
3355,
1... |
self.symbols = [] | def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Mosaic display", TRUE, TRUE) | 4617629279f24e162a43e27a838ac49ba8cc40ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/4617629279f24e162a43e27a838ac49ba8cc40ec/OWMosaicDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
49,
27459,
2562,
3113,
5383,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
49,
27459,
2562,
3113,
5383,
1... | |
def __init__(self, server_or_address, sock = None): | def __init__(self, server_or_address, auth_secret = None, sock = None): | def __init__(self, server_or_address, sock = None): if not sock: if type(server_or_address) in types.StringTypes: server_or_address = '%s/%s' % (kaa.TEMP, server_or_address) self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) if type(server_or_address) == tuple: self.socket = socket.socket(socket.AF_INET, s... | 0c699a0c1d34c4b1c135dda57b2204d78b56a34d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/0c699a0c1d34c4b1c135dda57b2204d78b56a34d/ipc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
67,
280,
67,
2867,
16,
1357,
67,
5875,
273,
599,
16,
7313,
273,
599,
4672,
309,
486,
7313,
30,
309,
618,
12,
3567,
67,
280,
67,
2867,
13,
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,
1001,
2738,
972,
12,
2890,
16,
1438,
67,
280,
67,
2867,
16,
1357,
67,
5875,
273,
599,
16,
7313,
273,
599,
4672,
309,
486,
7313,
30,
309,
618,
12,
3567,
67,
280,
67,
2867,
13,
316,
... |
@type descr: L{xml.dom.minidom.Element} @param descr: The DOM representation of an epytext description of the parameter's type (as produced by C{epytext.parse}). | @param descr: The new description of this parameter. @type descr: L{markup.ParsedDocstring} | def set_descr(self, descr): """ Set this parameter's description. @type descr: L{xml.dom.minidom.Element} @param descr: The DOM representation of an epytext description of the parameter's type (as produced by C{epytext.parse}). @rtype: C{None} """ self._descr = descr | d0164ceec6b7c656820c9cc53370c59eb64d4605 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d0164ceec6b7c656820c9cc53370c59eb64d4605/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
28313,
12,
2890,
16,
18426,
4672,
3536,
1000,
333,
1569,
1807,
2477,
18,
225,
632,
891,
18426,
30,
1021,
394,
2477,
434,
333,
1569,
18,
632,
723,
18426,
30,
511,
95,
15056,
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,
67,
28313,
12,
2890,
16,
18426,
4672,
3536,
1000,
333,
1569,
1807,
2477,
18,
225,
632,
891,
18426,
30,
1021,
394,
2477,
434,
333,
1569,
18,
632,
723,
18426,
30,
511,
95,
15056,
18... |
def get_mime_type(filename): return mimetypes.guess_type(filename)[0] or "text/plain" | def _encode_multipart_form_data(fields, files): """Encode form fields for multipart/form-data. Args: fields: A sequence of (name, value) elements for regular form fields. files: A sequence of (name, filename, value) elements for data to be uploaded as files. Returns: (content_type, body) ready for httplib.HTTP instanc... | def get_mime_type(filename): return mimetypes.guess_type(filename)[0] or "text/plain" | ea2048311c630d04e50d3ebae1c4699a9191c00c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ea2048311c630d04e50d3ebae1c4699a9191c00c/test_results_uploader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3015,
67,
16404,
67,
687,
67,
892,
12,
2821,
16,
1390,
4672,
3536,
5509,
646,
1466,
364,
10263,
19,
687,
17,
892,
18,
225,
6634,
30,
1466,
30,
432,
3102,
434,
261,
529,
16,
460,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3015,
67,
16404,
67,
687,
67,
892,
12,
2821,
16,
1390,
4672,
3536,
5509,
646,
1466,
364,
10263,
19,
687,
17,
892,
18,
225,
6634,
30,
1466,
30,
432,
3102,
434,
261,
529,
16,
460,... |
gtk_recent_manager = gtk.recent_manager_get_default() uri = '' if imgfile[:7] != 'file://': uri = 'file://' uri = uri + urllib.pathname2url(os.path.abspath(imgfile)) gtk_recent_manager.add_item(uri) | try: gtk_recent_manager = gtk.recent_manager_get_default() uri = '' if imgfile[:7] != 'file://': uri = 'file://' uri = uri + urllib.pathname2url(os.path.abspath(imgfile)) gtk_recent_manager.add_item(uri) except: if sys.platform == "win32": pass else: raise | def register_file_with_recent_docs(self, imgfile): self.recent_file_add_and_refresh(imgfile) if os.path.isfile(imgfile) and gtk.check_version(2, 10, 0) == None: gtk_recent_manager = gtk.recent_manager_get_default() uri = '' if imgfile[:7] != 'file://': uri = 'file://' uri = uri + urllib.pathname2url(os.path.abspath(img... | 191f61bbc32218a611411e4c0879cb8b325dfcad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2291/191f61bbc32218a611411e4c0879cb8b325dfcad/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
768,
67,
1918,
67,
20872,
67,
8532,
12,
2890,
16,
3774,
768,
4672,
365,
18,
20872,
67,
768,
67,
1289,
67,
464,
67,
9144,
12,
6081,
768,
13,
309,
1140,
18,
803,
18,
291,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
768,
67,
1918,
67,
20872,
67,
8532,
12,
2890,
16,
3774,
768,
4672,
365,
18,
20872,
67,
768,
67,
1289,
67,
464,
67,
9144,
12,
6081,
768,
13,
309,
1140,
18,
803,
18,
291,
7... |
ret = os.spawnv(os.P_WAIT, exe, [exe]+params) | ret = -1 try: ret = os.spawnv(os.P_WAIT, exe, ["swfcombine"]+params) except: ret = -1 | def swfcombine(params): exe = "swfcombine" if os.path.sep == '/': locations = [os.path.join(basedir, "swfcombine"), "/usr/local/bin/swfcombine", "/usr/bin/swfcombine" ] else: locations = [os.path.join(basedir, "swfcombine.exe"), "c:\\swftools\\swfcombine.exe"] for e in locations: if os.path.isfile(e): exe = e break if... | 425979206ff5d8b85fa2b75464eb77291f70a597 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5722/425979206ff5d8b85fa2b75464eb77291f70a597/pdf2swf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23143,
14082,
12,
2010,
4672,
15073,
273,
315,
5328,
74,
14082,
6,
309,
1140,
18,
803,
18,
10814,
422,
2023,
30,
7838,
273,
306,
538,
18,
803,
18,
5701,
12,
31722,
16,
315,
5328,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23143,
14082,
12,
2010,
4672,
15073,
273,
315,
5328,
74,
14082,
6,
309,
1140,
18,
803,
18,
10814,
422,
2023,
30,
7838,
273,
306,
538,
18,
803,
18,
5701,
12,
31722,
16,
315,
5328,
74,
... |
bytes_recv += len(chunk) | if not rein_sent: rein_sent = 1 self.client.sendcmd('rein') self.assertRaises(ftplib.error_perm, self.client.dir) | def test_rein_during_transfer(self): self.client.login(user=USER, passwd=PASSWD) data = 'abcde12345' * 100000 self.f1.write(data) self.f1.close() | 01b9245edb7880250424a1f6998bed3fcf477d7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3782/01b9245edb7880250424a1f6998bed3fcf477d7c/test_ftpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
266,
267,
67,
72,
4017,
67,
13866,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
501,
273,
296,
18947,
323,
2138,
25574,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
266,
267,
67,
72,
4017,
67,
13866,
12,
2890,
4672,
365,
18,
2625,
18,
5819,
12,
1355,
33,
4714,
16,
19093,
33,
10884,
16006,
13,
501,
273,
296,
18947,
323,
2138,
25574,
11,
... |
"%s cannot be child of %s" % (repr(node), repr(self) ) | "%s cannot be child of %s" % (repr(node), repr(self)) | def appendChild(self, node): if node.nodeType not in self.childNodeTypes: raise HierarchyRequestErr, \ "%s cannot be child of %s" % (repr(node), repr(self) ) if node.parentNode is not None: node.parentNode.removeChild(node) | ec5905c95815205aa328f8b75324f1465ff85290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ec5905c95815205aa328f8b75324f1465ff85290/minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5833,
12,
2890,
16,
756,
4672,
309,
756,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5833,
12,
2890,
16,
756,
4672,
309,
756,
18,
2159,
559,
486,
316,
365,
18,
3624,
907,
2016,
30,
1002,
670,
6000,
691,
2524,
16,
521,
2213,
87,
2780,
506,
1151,
434,
738,
87,
6,
738,
... |
self.modified = 1 | def openOptions(self): self.modified = 1 self.nocalc = 1 res = Options.Options(self).exec_() if res == 1: self.CharClassChanged('') self.nocalc = 0 self.calculate() | 5706aa3980ad2ad7c9096b0dcf62a51d99ce4e98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/5706aa3980ad2ad7c9096b0dcf62a51d99ce4e98/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1320,
12,
2890,
4672,
365,
18,
82,
23735,
71,
273,
404,
400,
273,
5087,
18,
1320,
12,
2890,
2934,
4177,
67,
1435,
309,
400,
422,
404,
30,
365,
18,
2156,
797,
5033,
2668,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1320,
12,
2890,
4672,
365,
18,
82,
23735,
71,
273,
404,
400,
273,
5087,
18,
1320,
12,
2890,
2934,
4177,
67,
1435,
309,
400,
422,
404,
30,
365,
18,
2156,
797,
5033,
2668,
6134,
... | |
if entries is None: entries = self.phonebook | print | def print_table(self, entries=None): """Prints `entries` as a table. If `entries` is None, all entries are printed""" if entries is None: entries = self.phonebook # this is the head line of the table headline = (_('Index'), _('First name'), _('Last name'), _('Street'), _('Postal code'), _('Town'), _('Mobile'), _('Phone... | 500a390f053c916fbb5e449916c39bcc41901f78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/500a390f053c916fbb5e449916c39bcc41901f78/tel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
2121,
12,
2890,
16,
3222,
33,
7036,
4672,
3536,
15402,
1375,
8219,
68,
487,
279,
1014,
18,
971,
1375,
8219,
68,
353,
599,
16,
777,
3222,
854,
14099,
8395,
1172,
468,
333,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
2121,
12,
2890,
16,
3222,
33,
7036,
4672,
3536,
15402,
1375,
8219,
68,
487,
279,
1014,
18,
971,
1375,
8219,
68,
353,
599,
16,
777,
3222,
854,
14099,
8395,
1172,
468,
333,
353... |
seltype = self._id.get_select_type() if seltype == h5s.SEL_POINTS: return self._id.get_select_npoints() elif seltype == h5s.SEL_HYPERSLABS: return self._id.get_select_hyper_nblocks() elif seltype == h5s.SEL_ALL: return np.product(self.shape) elif seltype == h5s.SEL_NONE: return 0 raise TypeError("Selection invalid... | """ Number of elements currently selected """ return self._id.get_select_npoints() | def nselect(self): seltype = self._id.get_select_type() | b55d35af3abd05f951dd92feefe93161a5b0330b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10380/b55d35af3abd05f951dd92feefe93161a5b0330b/selections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
4025,
12,
2890,
4672,
357,
723,
273,
365,
6315,
350,
18,
588,
67,
4025,
67,
723,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
4025,
12,
2890,
4672,
357,
723,
273,
365,
6315,
350,
18,
588,
67,
4025,
67,
723,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(self.caller_name) == '': | if len(self.caller_name) == 0: | def rDone(self, results): # Check that we got necessary result from Radius if len(results) != 2 or results[1] != 0: self.uaA.recvEvent(CCEventFail((403, 'Auth Failed'))) self.state = CCStateDead return if self.global_config['acct_enable']: self.acctA = RadiusAccounting(self.global_config, 'answer', \ send_start = self.... | 00d256d9710ad2bb69d161fb226f944658a53399 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8853/00d256d9710ad2bb69d161fb226f944658a53399/b2bua_radius.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
7387,
12,
2890,
16,
1686,
4672,
468,
2073,
716,
732,
2363,
4573,
563,
628,
16378,
8384,
309,
562,
12,
4717,
13,
480,
576,
578,
1686,
63,
21,
65,
480,
374,
30,
365,
18,
11886,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
7387,
12,
2890,
16,
1686,
4672,
468,
2073,
716,
732,
2363,
4573,
563,
628,
16378,
8384,
309,
562,
12,
4717,
13,
480,
576,
578,
1686,
63,
21,
65,
480,
374,
30,
365,
18,
11886,
37... |
self.resultbuffer1.create_mark('end', self.resultbuffer1.get_end_iter(), False) | self.resultbuffer1.create_mark('end', self.resultbuffer1.get_end_iter(), False) | def __init__(self, fromLang = 'auto', toLang = 'en'): traduisons_icon = gtk.gdk.pixbuf_new_from_file(os.path.join(appPath, "data", "traduisons_icon.ico")) google_logo = gtk.gdk.PixbufLoader('png') google_logo.write(base64.b64decode(''' | 882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
628,
7275,
273,
296,
6079,
2187,
358,
7275,
273,
296,
275,
11,
4672,
1284,
2544,
4530,
87,
67,
3950,
273,
22718,
18,
75,
2883,
18,
14861,
4385,
67,
2704,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
628,
7275,
273,
296,
6079,
2187,
358,
7275,
273,
296,
275,
11,
4672,
1284,
2544,
4530,
87,
67,
3950,
273,
22718,
18,
75,
2883,
18,
14861,
4385,
67,
2704,... |
items = [(l, language_codes[l]) for l in translations.keys() if l != lang] | else: lang = 'en' self.language.addItem('English', 'en') items = [(l, language_codes[l]) for l in translations.keys() \ if l != lang] | def __init__(self, window, db, server=None): QDialog.__init__(self, window) Ui_Dialog.__init__(self) self.ICON_SIZES = {0:QSize(48, 48), 1:QSize(32,32), 2:QSize(24,24)} self.setupUi(self) self._category_model = CategoryModel() self.connect(self.category_view, SIGNAL('activated(QModelIndex)'), lambda i: self.stackedWid... | 2f209da62702aaeeb3459db4babf4ff9512e7e01 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/2f209da62702aaeeb3459db4babf4ff9512e7e01/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2742,
16,
1319,
16,
1438,
33,
7036,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2742,
13,
22597,
67,
6353,
16186,
2738,
972,
12,
2890,
13,
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,
1001,
2738,
972,
12,
2890,
16,
2742,
16,
1319,
16,
1438,
33,
7036,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2742,
13,
22597,
67,
6353,
16186,
2738,
972,
12,
2890,
13,
365,
18,... |
AssertionError: morphims is not untriangular on 1 | AssertionError: morphism is not untriangular on 1 | def _test_triangular(self, **options): """ Tests that ``self`` is actually triangular | 0435b1208a2811cbf6e7950c2125844b3eb054cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0435b1208a2811cbf6e7950c2125844b3eb054cf/modules_with_basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
16857,
13077,
12,
2890,
16,
2826,
2116,
4672,
3536,
7766,
87,
716,
12176,
2890,
10335,
353,
6013,
6882,
13077,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
16857,
13077,
12,
2890,
16,
2826,
2116,
4672,
3536,
7766,
87,
716,
12176,
2890,
10335,
353,
6013,
6882,
13077,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.set_host_job_attrs(self.cur_scope, self.cur_reg_str, self.cur_reg, tok) | self.set_host_job_attrs(self.cur_scope, self.cur_reg_str, self.cur_reg, tok) | def parse_line(self, filename, lineno, line, tok): if dbg>=2: Es("parse_line: %s:%d [%s]\n" % (filename, lineno, line)) ls = line.lstrip() if ls[:1] == "#": return if ls.rstrip() == "": return tok.init(filename, lineno, line) x = tok.s if dbg>=2: Es(" 1st token: %s\n" % x) if x == "host" or x == "job": # host REGEXP KE... | 112ee2b67ad2dcc046910a8ee540a6c7f13e7284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/924/112ee2b67ad2dcc046910a8ee540a6c7f13e7284/gxp_js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1369,
12,
2890,
16,
1544,
16,
7586,
16,
980,
16,
946,
4672,
309,
28966,
34,
33,
22,
30,
25948,
2932,
2670,
67,
1369,
30,
738,
87,
5319,
72,
9799,
87,
13944,
82,
6,
738,
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,
1109,
67,
1369,
12,
2890,
16,
1544,
16,
7586,
16,
980,
16,
946,
4672,
309,
28966,
34,
33,
22,
30,
25948,
2932,
2670,
67,
1369,
30,
738,
87,
5319,
72,
9799,
87,
13944,
82,
6,
738,
2... |
def __init__(self, server_address, RequestHandlerClass=None, authenticator=None, queue_manager=None, topic_manager=None): | def __init__(self, server_address, RequestHandlerClass=None, timeout=3.0, authenticator=None, queue_manager=None, topic_manager=None): | def __init__(self, server_address, RequestHandlerClass=None, authenticator=None, queue_manager=None, topic_manager=None): """ Extension to C{TCPServer} constructor to provide mechanism for providing implementation classes. @keyword authenticator: The configure L{coilmq.auth.Authenticator} object to use. @keyword queue... | c67e9d80603806ee25d4a87d4365a6e668cc3953 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10258/c67e9d80603806ee25d4a87d4365a6e668cc3953/socketserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
67,
2867,
16,
25106,
797,
33,
7036,
16,
2021,
33,
23,
18,
20,
16,
17595,
33,
7036,
16,
2389,
67,
4181,
33,
7036,
16,
3958,
67,
4181,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
67,
2867,
16,
25106,
797,
33,
7036,
16,
2021,
33,
23,
18,
20,
16,
17595,
33,
7036,
16,
2389,
67,
4181,
33,
7036,
16,
3958,
67,
4181,
33,
7036,
... |
_memo[0] = rootNode _memo[1] = script | _memo1_[0], _memo1_[1] = rootNode, script | def getScript(node, fileId): # TODO: checking the root nodes is a fix, as they sometimes differ (because of caching) # -- looking up nodes in a Script() uses object identity for comparison; sometimes, the # tree _analyzeClassDepsNode works on and the tree Script is built from are not the # same in memory, e.g. wh... | 1abc907797564cd97d808fe122ba7fb63a6ebc45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1abc907797564cd97d808fe122ba7fb63a6ebc45/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22611,
12,
2159,
16,
21223,
4672,
468,
2660,
30,
6728,
326,
1365,
2199,
353,
279,
2917,
16,
487,
2898,
16594,
15221,
261,
26274,
434,
11393,
13,
468,
1493,
7849,
731,
2199,
316,
279,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22611,
12,
2159,
16,
21223,
4672,
468,
2660,
30,
6728,
326,
1365,
2199,
353,
279,
2917,
16,
487,
2898,
16594,
15221,
261,
26274,
434,
11393,
13,
468,
1493,
7849,
731,
2199,
316,
279,
773... |
def onchange_company(self, cr, uid, ids, company_id): | def onchange_company(self, cr, uid, ids, company_id=False): | def _get_op(self, cr, uid, ids, field_names, arg, context): # op = OrderPoint res = {} for val in self.browse(cr, uid, ids, context=context): res[val.id]={} cr.execute("SELECT product_min_qty, product_max_qty, product_uom \ FROM stock_warehouse_orderpoint \ WHERE warehouse_id = %s AND product_id = %s AND active = 'TR... | 6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
556,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
4672,
225,
468,
1061,
273,
4347,
2148,
400,
273,
2618,
364,
1244,
316,
365,
18,
25731... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
556,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
652,
67,
1973,
16,
1501,
16,
819,
4672,
225,
468,
1061,
273,
4347,
2148,
400,
273,
2618,
364,
1244,
316,
365,
18,
25731... |
<tr class="inboxheader"> | <tr class="inboxheader"> | def tmpl_display_inbox(self, messages, infos=[], warnings=[], nb_messages=0, no_quota=0, ln=cdslang): """ Displays a list of messages, with the appropriate links and buttons @param messages: a list of tuples: [(message_id, user_from_id, user_from_nickname, subject, sent_date, status=] @param infos: a list of informatio... | a67f9538194b020c4165a3831685fc0dff2673bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/a67f9538194b020c4165a3831685fc0dff2673bc/webmessage_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
267,
2147,
12,
2890,
16,
2743,
16,
10626,
22850,
6487,
5599,
22850,
6487,
4264,
67,
6833,
33,
20,
16,
1158,
67,
23205,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
5417,
67,
267,
2147,
12,
2890,
16,
2743,
16,
10626,
22850,
6487,
5599,
22850,
6487,
4264,
67,
6833,
33,
20,
16,
1158,
67,
23205,
33,
20,
16,
7211,
33,
4315,
2069,
539,
4672,... |
def parse(filename): return _psp.parse(filename) | class psp: def parse(self, filename): return _psp.parse(filename) | def parse(filename): return _psp.parse(filename) | 3bab69fbcafb6f0d1edbe0593a1ab49285fd49f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/3bab69fbcafb6f0d1edbe0593a1ab49285fd49f2/psp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
293,
1752,
30,
1652,
1109,
12,
2890,
16,
1544,
4672,
327,
389,
1121,
84,
18,
2670,
12,
3459,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
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,
667,
293,
1752,
30,
1652,
1109,
12,
2890,
16,
1544,
4672,
327,
389,
1121,
84,
18,
2670,
12,
3459,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return http.Response(stream = s) | return HTMLResponse(stream = s) | def render(self, ctx): id = self.id(ctx) if not ctx.args.has_key('input'): input = '' else: input = ctx.args['input'][0] | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
309,
486,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
2630,
11,
4672,
810,
273,
875,
469,
30,
810,
273,
1103,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
612,
273,
365,
18,
350,
12,
5900,
13,
309,
486,
1103,
18,
1968,
18,
5332,
67,
856,
2668,
2630,
11,
4672,
810,
273,
875,
469,
30,
810,
273,
1103,
18,
... |
pass | self._ln = self._ln + countNewlines(s) | def t_comment(self, s): r' \#.*\n ' pass | 6a4cd2823315ce8d48ee55dea643d6be99c90321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/6a4cd2823315ce8d48ee55dea643d6be99c90321/n3spark.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
3469,
12,
2890,
16,
272,
4672,
436,
11,
521,
7,
4509,
64,
82,
296,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
3469,
12,
2890,
16,
272,
4672,
436,
11,
521,
7,
4509,
64,
82,
296,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
sage: f = Piecewise([[(0,pi/2),f1],[(pi/2,pi),f2]]) | sage: f = Piecewise([[(-pi,pi/2),f1],[(pi/2,pi),f2]]) | def fourier_series_partial_sum(self,N,L): r""" Returns the partial sum \[ f(x) \sim \frac{a_0}{2} + \sum_{n=1}^N [a_n\cos(\frac{n\pi x}{L}) + b_n\sin(\frac{n\pi x}{L})], \] as a string. | 9015904a2f7366a135e0dba87074788922510d62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9015904a2f7366a135e0dba87074788922510d62/piecewise.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
2453,
67,
10222,
67,
11601,
67,
1364,
12,
2890,
16,
50,
16,
48,
4672,
436,
8395,
2860,
326,
4702,
2142,
521,
63,
284,
12,
92,
13,
521,
9812,
521,
22187,
95,
69,
67,
20,
8637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12792,
2453,
67,
10222,
67,
11601,
67,
1364,
12,
2890,
16,
50,
16,
48,
4672,
436,
8395,
2860,
326,
4702,
2142,
521,
63,
284,
12,
92,
13,
521,
9812,
521,
22187,
95,
69,
67,
20,
8637,
... |
_("Period of interest - From"), CFG_SITE_URL, datetime.date.today().strftime('%Y-%m-%d'), _("Period of interest - To"), CFG_SITE_URL, (datetime.date.today() + datetime.timedelta(days=365)).strftime('%Y-%m-%d'), | _("Period of interest - From"), CFG_SITE_URL, datetime.date.today().strftime('%Y-%m-%d'), _("Period of interest - To"), CFG_SITE_URL, (datetime.date.today() + datetime.timedelta(days=365)).strftime('%Y-%m-%d'), | def tmpl_register_ill_article_request_step1(self, infos, admin=True, ln=CFG_SITE_LANG): """ @param infos: informations @type infos: list """ | 648f0875a183c65548d6b2535cea8cf25a2a9827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/648f0875a183c65548d6b2535cea8cf25a2a9827/bibcirculation_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
21,
12,
2890,
16,
10626,
16,
3981,
33,
5510,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
10626,
30,
26978,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10720,
67,
4861,
67,
737,
67,
11480,
67,
2293,
67,
4119,
21,
12,
2890,
16,
10626,
16,
3981,
33,
5510,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
10626,
30,
26978,... |
[("py", "open", 1, None, r'-n -e "%1"'), ("pyw", "open", 1, None, r'-n -e "%1"'), ("pyc", "open", 1, None, r'-n -e "%1"'), ("pyo", "open", 1, None, r'-n -e "%1"')]) | [("py", "open", 1, None, r'"%1"'), ("pyw", "open", 1, None, r'"%1"'), ("pyc", "open", 1, None, r'"%1"'), ("pyo", "open", 1, None, r'"%1"')]) | # File extensions, associated with the REGISTRY.def component | 7d3755d2c0d6d586308666b1dddf185f0169c320 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7d3755d2c0d6d586308666b1dddf185f0169c320/msi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
1387,
4418,
16,
3627,
598,
326,
11980,
25042,
18,
536,
1794,
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,
468,
1387,
4418,
16,
3627,
598,
326,
11980,
25042,
18,
536,
1794,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
comp2.set_status(comp.get_status()) | comp2.set_status(status) | def fake_response(job, winner): result = Game_result({'b' : 't1', 'w' : 't2'}, winner) response = Game_job_result() response.game_id = job.game_id response.game_result = result response.engine_names = {} response.engine_descriptions = {} response.game_data = job.game_data return response | 83af52a9949a36d3c03a96d81382ba6e299c8cdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/83af52a9949a36d3c03a96d81382ba6e299c8cdb/playoff_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10517,
67,
2740,
12,
4688,
16,
5657,
1224,
4672,
563,
273,
14121,
67,
2088,
12590,
11,
70,
11,
294,
296,
88,
21,
2187,
296,
91,
11,
294,
296,
88,
22,
11,
5779,
5657,
1224,
13,
766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10517,
67,
2740,
12,
4688,
16,
5657,
1224,
4672,
563,
273,
14121,
67,
2088,
12590,
11,
70,
11,
294,
296,
88,
21,
2187,
296,
91,
11,
294,
296,
88,
22,
11,
5779,
5657,
1224,
13,
766,
... |
raise ParseError() | raise ParseError("Bad argument -- expected name or tuple") | def parse_funcdef_arg(elt): """ If the given tree token element contains a valid function definition argument (i.e., an identifier token or nested list of identifiers), then return a corresponding string identifier or nested list of string identifiers. Otherwise, raise a ParseError. """ if isinstance(elt, list): if el... | a3ef0fa18cbe7a3bcd10dd7313809fd187cded40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a3ef0fa18cbe7a3bcd10dd7313809fd187cded40/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
644,
536,
67,
3175,
12,
20224,
4672,
3536,
971,
326,
864,
2151,
1147,
930,
1914,
279,
923,
445,
2379,
1237,
261,
77,
18,
73,
12990,
392,
2756,
1147,
578,
4764,
666,
434,
9863... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
536,
67,
3175,
12,
20224,
4672,
3536,
971,
326,
864,
2151,
1147,
930,
1914,
279,
923,
445,
2379,
1237,
261,
77,
18,
73,
12990,
392,
2756,
1147,
578,
4764,
666,
434,
9863... |
indentation so it fits properly. | indentation so it fits properly into a GenBank record. | def _wrapped_genbank(information, indent, wrap_space = 1): """Write a line of GenBank info that can wrap over multiple lines. This takes a line of information which can potentially wrap over multiple lines, and breaks it up with carriage returns and indentation so it fits properly. Arguments: o information - The str... | e05c41b65627aad1bc7d6b0728db5ffe770e12ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/e05c41b65627aad1bc7d6b0728db5ffe770e12ae/Record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18704,
67,
4507,
10546,
12,
13117,
16,
3504,
16,
2193,
67,
2981,
273,
404,
4672,
3536,
3067,
279,
980,
434,
10938,
16040,
1123,
716,
848,
2193,
1879,
3229,
2362,
18,
225,
1220,
5530... |
if not re.search('^DIRAC.',site) and not destination.lower()=='any': | if not re.search('^DIRAC.',site) and not site.lower()=='any': | def setDestination(self,destination): """Helper function. | 8da0614e90bc38545b1841364804cf736c63cbfc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/8da0614e90bc38545b1841364804cf736c63cbfc/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
5683,
12,
2890,
16,
10590,
4672,
3536,
2276,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
5683,
12,
2890,
16,
10590,
4672,
3536,
2276,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(args) != 1: | if len(args) != 3 and len(args) != 2: | def main(): global cash,comPerShare,minCom,startTime,endTime,timeStep,maxEffect,decayCycles,noisy,timersActive,mtm,isTable,arrayFile,listOfStocksFile # NOTE: the OptionParser class is currently not necessary, as we can just access sys.argv[1:], but if we # want to implement optional arguments, this will make it conside... | e44f0ad3c90dde93238fc35f230c4b961de2103e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10651/e44f0ad3c90dde93238fc35f230c4b961de2103e/Simulator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
276,
961,
16,
832,
2173,
9535,
16,
1154,
799,
16,
1937,
950,
16,
409,
950,
16,
957,
4160,
16,
1896,
12477,
16,
26039,
17992,
9558,
16,
2135,
291,
93,
16,
8584,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2552,
276,
961,
16,
832,
2173,
9535,
16,
1154,
799,
16,
1937,
950,
16,
409,
950,
16,
957,
4160,
16,
1896,
12477,
16,
26039,
17992,
9558,
16,
2135,
291,
93,
16,
8584,
414,
... |
title = unicode(self.title.text()) | title = unicode(self.title.text()).strip() | def accept(self): cf = getattr(self, 'cover_fetcher', None) if cf is not None and hasattr(cf, 'terminate'): cf.terminate() cf.wait() try: if self.formats_changed: self.sync_formats() title = unicode(self.title.text()) self.db.set_title(self.id, title, notify=False) au = unicode(self.authors.text()) if au: self.db.set_a... | 7a8c447e53a0e2152e0368128fcc87045426d090 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7a8c447e53a0e2152e0368128fcc87045426d090/metadata_single.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
6080,
273,
3869,
12,
2890,
16,
296,
3165,
67,
5754,
264,
2187,
599,
13,
309,
6080,
353,
486,
599,
471,
3859,
12,
8522,
16,
296,
30017,
11,
4672,
6080,
18,
30017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2791,
12,
2890,
4672,
6080,
273,
3869,
12,
2890,
16,
296,
3165,
67,
5754,
264,
2187,
599,
13,
309,
6080,
353,
486,
599,
471,
3859,
12,
8522,
16,
296,
30017,
11,
4672,
6080,
18,
30017,
... |
- ``n`` - number of rounds (default: None) - ``rc`` - number of rows \* number of cols (default: None) - ``e`` - exponent of base field (default: None) | - ``n`` - number of rounds (default: ``None``) - ``rc`` - number of rows \* number of cols (default: ``None``) - ``e`` - exponent of base field (default: ``None``) | def varformatstr(self, name, n=None, rc=None, e=None): """ Return a format string which is understood by print et al. If a numerical value is omitted, the default value of self is used. The numerical values (n, rc, e) are used to determine the width of the respective fields in the format string. INPUT: - ``name`` ... | d2531bfd55e8dc010cd9c1e87cc62d2c514562d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d2531bfd55e8dc010cd9c1e87cc62d2c514562d4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
2139,
701,
12,
2890,
16,
508,
16,
290,
33,
7036,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
740,
533,
1492,
353,
31727,
4773,
635,
1172,
3393,
524,
18,
225,
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,
569,
2139,
701,
12,
2890,
16,
508,
16,
290,
33,
7036,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
740,
533,
1492,
353,
31727,
4773,
635,
1172,
3393,
524,
18,
225,
9... |
if hasattr(self.readingSearchStrategy, 'getWhereClauseMixed'): mixedClause = self.readingSearchStrategy.getWhereClauseMixed( | if self.mixedReadingSearchStrategy: mixedClause = self.mixedReadingSearchStrategy.getWhereClause( | def _getReadingSearch(self, readingStr, **options): fromReading = options.pop('reading', self.READING) | 7768f0434aecc2e353c85a4406b0b7da401f6ea2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/7768f0434aecc2e353c85a4406b0b7da401f6ea2/dictionary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
15714,
2979,
12,
2890,
16,
6453,
1585,
16,
2826,
2116,
4672,
628,
15714,
273,
702,
18,
5120,
2668,
21803,
2187,
365,
18,
6949,
1360,
13,
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,
389,
588,
15714,
2979,
12,
2890,
16,
6453,
1585,
16,
2826,
2116,
4672,
628,
15714,
273,
702,
18,
5120,
2668,
21803,
2187,
365,
18,
6949,
1360,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
variables_orig = variables.copy() | variables = variables_in.copy() | def ProcessVariablesAndConditionsInDict(the_dict, is_late, variables, build_file, the_dict_key=None): """Handle all variable and command expansion and conditional evaluation. This function is the public entry point for all variable expansions and conditional evaluations. """ # Save a copy of the variables dict before... | 258e1528741d7f7d6d3f5c2f2e8d2f3c5a83d40a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/258e1528741d7f7d6d3f5c2f2e8d2f3c5a83d40a/input.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
6158,
1876,
8545,
382,
5014,
12,
5787,
67,
1576,
16,
353,
67,
20293,
16,
3152,
16,
1361,
67,
768,
16,
326,
67,
1576,
67,
856,
33,
7036,
4672,
3536,
3259,
777,
2190,
471,
1296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
6158,
1876,
8545,
382,
5014,
12,
5787,
67,
1576,
16,
353,
67,
20293,
16,
3152,
16,
1361,
67,
768,
16,
326,
67,
1576,
67,
856,
33,
7036,
4672,
3536,
3259,
777,
2190,
471,
1296,
... |
raise ExtractError, "special devices not supported by system" | raise ExtractError("special devices not supported by system") | def makedev(self, tarinfo, targetpath): """Make a character or block device called targetpath. """ if not hasattr(os, "mknod") or not hasattr(os, "makedev"): raise ExtractError, "special devices not supported by system" | b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b4f9e5b91e72c3fe0ed21adc8fcc43e75b037e05/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
5206,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
6464,
279,
3351,
578,
1203,
2346,
2566,
1018,
803,
18,
3536,
309,
486,
3859,
12,
538,
16,
315,
24816,
19888,
7923,
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,
1221,
5206,
12,
2890,
16,
8232,
1376,
16,
1018,
803,
4672,
3536,
6464,
279,
3351,
578,
1203,
2346,
2566,
1018,
803,
18,
3536,
309,
486,
3859,
12,
538,
16,
315,
24816,
19888,
7923,
578,
... |
b_dec = (flex.min(b_isos) - b_target)/number_of_macro_cycles | b_decs = (b_isos - b_target)/b_target_cycles | def __init__(self, fmodels, model, target_weights, log, time_step = 0.0005, number_of_macro_cycles = 500, temperature = 300., n_steps = 10, eq_cycles = None, b_target = 1.0, b_target_cycles = 5, tx = 1.0): fmodel = fmodels.fmodel_xray() assert fmodel.xray_structure is model.xray_structure xray_structure_last_updated = ... | fb3b5d6d8999a97a1cb5c62afb86ec753a024b62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/fb3b5d6d8999a97a1cb5c62afb86ec753a024b62/time_averaging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
7665,
16,
938,
16,
1018,
67,
9727,
16,
613,
16,
813,
67,
4119,
273,
374,
18,
3784,
25,
16,
1300,
67,
792,
67,
26448,
67,
23976,
273,
6604,
16,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
7665,
16,
938,
16,
1018,
67,
9727,
16,
613,
16,
813,
67,
4119,
273,
374,
18,
3784,
25,
16,
1300,
67,
792,
67,
26448,
67,
23976,
273,
6604,
16,
1... |
clients = ET.SubElement(root_element, "clients") return clients | clients = ET.SubElement(root_element, "clients") return clients | def createClients(self, root_element): | 47d2884a8b5be4efadf798bbb2e71a3d5e993c3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/47d2884a8b5be4efadf798bbb2e71a3d5e993c3e/svcpointxml_406_writer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12300,
12,
2890,
16,
1365,
67,
2956,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12300,
12,
2890,
16,
1365,
67,
2956,
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,... |
if shiphide in ('YES', 'DESCRIPTION') and len(shipping_choices) == 1: | if self.order.is_partially_paid and shipping_dict.get(self.order.shipping_model, False): self.fields['shipping'] = forms.CharField(max_length=30, initial=self.order.shipping_model, widget=forms.HiddenInput(attrs={'value' : shipping_choices[0][0]})) self.shipping_hidden = True elif shiphide in ('YES', 'DESCRIPTION') ... | def __init__(self, request, paymentmodule, *args, **kwargs): super(SimplePayShipForm, self).__init__(*args, **kwargs) | 88ad68b13a4209eb8adfd6489b8241db731c4ccf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/88ad68b13a4209eb8adfd6489b8241db731c4ccf/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
16,
5184,
2978,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
5784,
9148,
26358,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
16,
5184,
2978,
16,
380,
1968,
16,
2826,
4333,
4672,
2240,
12,
5784,
9148,
26358,
1204,
16,
365,
2934,
972,
2738,
972,
30857,
1968,
16,
2826,
4333,
... |
print "Hybrid display is Implemented yet" pass | print "Hybrid display is Implemented yet" pass | def dispHybrid(self): #@@ Ninad 070308 | c25263540add024396d4bcf7631292f1fd2d50bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c25263540add024396d4bcf7631292f1fd2d50bb/MWsemantics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16232,
17507,
14400,
12,
2890,
4672,
468,
30989,
423,
267,
361,
10934,
4630,
6840,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16232,
17507,
14400,
12,
2890,
4672,
468,
30989,
423,
267,
361,
10934,
4630,
6840,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
iter = model.get_iter_root() while iter: | __iter = model.get_iter_root() while __iter: | def get_operation_options(self, operation): """For the given operation ID, return a list of the selected option IDs.""" r = [] model = self.tree_store.get_model() iter = model.get_iter_root() while iter: #print "debug: get_operation_options: iter id = '%s', value='%s'" % (model[iter][2], model[iter][1]) if operation ==... | 9d492cae068d04dccea7b824cceed2984729452a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/9d492cae068d04dccea7b824cceed2984729452a/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7624,
67,
2116,
12,
2890,
16,
1674,
4672,
3536,
1290,
326,
864,
1674,
1599,
16,
327,
279,
666,
434,
326,
3170,
1456,
7115,
12123,
436,
273,
5378,
938,
273,
365,
18,
3413,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7624,
67,
2116,
12,
2890,
16,
1674,
4672,
3536,
1290,
326,
864,
1674,
1599,
16,
327,
279,
666,
434,
326,
3170,
1456,
7115,
12123,
436,
273,
5378,
938,
273,
365,
18,
3413,
67,
... |
zones.append(self.i2csensors[i]+'/device/'+lista[j]) | zones.append(self.i2csensors[i]+suffix+lista[j]) | def get_zones(self): if self.temp_support(): zones = [] for i in xrange(len(self.i2csensors)): lista = (dircache.listdir(self.thermal_path+self.i2csensors[i]+'/device')) for j in xrange(len(lista)): if re.search('temp[0-9]*_input', lista[j]) != None: zones.append(self.i2csensors[i]+'/device/'+lista[j]) return zones el... | a1380be6ea90a75756491c82f9dd2e05e14a48f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/721/a1380be6ea90a75756491c82f9dd2e05e14a48f1/temp_i2csys_hwmon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14203,
12,
2890,
4672,
309,
365,
18,
5814,
67,
13261,
13332,
13975,
273,
5378,
364,
277,
316,
12314,
12,
1897,
12,
2890,
18,
77,
22,
2143,
12575,
3719,
30,
17822,
273,
261,
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,
336,
67,
14203,
12,
2890,
4672,
309,
365,
18,
5814,
67,
13261,
13332,
13975,
273,
5378,
364,
277,
316,
12314,
12,
1897,
12,
2890,
18,
77,
22,
2143,
12575,
3719,
30,
17822,
273,
261,
12... |
def dowrap(text, limit=80): | def dowrap(text, limit=100): | def dowrap(text, limit=80): return fill(text, limit) | e564932f7c5da070ad840dcc6ac6d1d17a5872e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/e564932f7c5da070ad840dcc6ac6d1d17a5872e7/pdfwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22095,
1266,
12,
955,
16,
1800,
33,
6625,
4672,
327,
3636,
12,
955,
16,
1800,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22095,
1266,
12,
955,
16,
1800,
33,
6625,
4672,
327,
3636,
12,
955,
16,
1800,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
k += 1 | return beta, corr | def lars(X, y): # n is the number of variables, p is the number of "predictors" or # basis vectors # the predictors are assumed to be standardized and y is centered. # in the example of the prostate data n would be the number n,p = X.shape mu = zeros(n) act_set = [] inact_set = range(p) k = 0 vs = 0 nvs = min(n-1,p... | 0db785b39c36b490ef6940e674e6c7ea9ebc6107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14601/0db785b39c36b490ef6940e674e6c7ea9ebc6107/lars.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
... |
fname : filename; string | fileName : filename; string | def save(self,fname): ''' Dump the class data into a csv or pickle file The encoding is determined by the filename's extension: 'csv' : When the filename ends in '.csv' the routine tries to interpret the file as comma seperated values. The variable names must be in the first row Any other extension is considered to me... | 45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
12749,
4672,
9163,
18242,
326,
667,
501,
1368,
279,
6101,
578,
13379,
585,
225,
1021,
2688,
353,
11383,
635,
326,
1544,
1807,
2710,
30,
296,
6715,
11,
294,
5203,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
12749,
4672,
9163,
18242,
326,
667,
501,
1368,
279,
6101,
578,
13379,
585,
225,
1021,
2688,
353,
11383,
635,
326,
1544,
1807,
2710,
30,
296,
6715,
11,
294,
5203,
326,... |
for k,v in new: | for k,v in new.items(): | def get_targets(self): raw_urls = self.get_search_urls() new = {} for url in raw_urls: split = url.rsplit('.',1) # Try to get filetype if len(split) > 1 and split[-1] in self.targets_by_type: new.setdefault(split[-1],[]).append(url) for k,v in new: self.targets_by_type[k].extend(v) return raw_urls | bd6f8aa7378e503055efe62aaffa7943911e6115 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/bd6f8aa7378e503055efe62aaffa7943911e6115/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11358,
12,
2890,
4672,
1831,
67,
10518,
273,
365,
18,
588,
67,
3072,
67,
10518,
1435,
394,
273,
2618,
364,
880,
316,
1831,
67,
10518,
30,
1416,
273,
880,
18,
86,
4939,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11358,
12,
2890,
4672,
1831,
67,
10518,
273,
365,
18,
588,
67,
3072,
67,
10518,
1435,
394,
273,
2618,
364,
880,
316,
1831,
67,
10518,
30,
1416,
273,
880,
18,
86,
4939,
2668,
... |
write_class_tree_item(self, out, doc, classes) | write_class_tree_item(self, out, doc, class_set) | def write_class_tree(self, out): """ Write HTML code for a nested list showing the base/subclass relationships between all documented classes. Each element of the top-level list is a class with no (documented) bases; and under each class is listed all of its subclasses. Note that in the case of multiple inheritance, ... | 28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1106,
67,
3413,
12,
2890,
16,
596,
4672,
3536,
2598,
3982,
981,
364,
279,
4764,
666,
17253,
326,
1026,
19,
10678,
11499,
3086,
777,
23051,
3318,
18,
225,
8315,
930,
434,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1106,
67,
3413,
12,
2890,
16,
596,
4672,
3536,
2598,
3982,
981,
364,
279,
4764,
666,
17253,
326,
1026,
19,
10678,
11499,
3086,
777,
23051,
3318,
18,
225,
8315,
930,
434,
326,
... |
val = _unpack(data, nelem, ftype=ftype, as_numpy=as_numpy) | val = _unpack(data, count=nelem, ftype=ftype, as_numpy=as_numpy) | def get(chid, ftype=None, as_string=False, as_numpy=True): """return the current value for a Channel. Options are ftype field type to use (native type is default) as_string flag(True/False) to get a string representation of the value returned. This is not nearly as featured as for a PV -- see pv.py for more d... | 28874478c6cea5ea860f4176f6474063b84ddb90 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12945/28874478c6cea5ea860f4176f6474063b84ddb90/ca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
343,
350,
16,
21219,
33,
7036,
16,
487,
67,
1080,
33,
8381,
16,
487,
67,
15974,
33,
5510,
4672,
3536,
2463,
326,
783,
460,
364,
279,
5307,
18,
225,
5087,
854,
21219,
4202,
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,
12,
343,
350,
16,
21219,
33,
7036,
16,
487,
67,
1080,
33,
8381,
16,
487,
67,
15974,
33,
5510,
4672,
3536,
2463,
326,
783,
460,
364,
279,
5307,
18,
225,
5087,
854,
21219,
4202,
6... |
return ExtensionFactory(modulus, prec, print_mode, halt, names, check = True) | return ExtensionFactory(self, modulus, prec, print_mode, halt, names, check = True) | def extension(self, modulus, prec = None, names = None, print_mode = None, halt = None): """ Create an extension of this p-adic ring. | 30a764f77f807a9f30b4503dfb3c45d3268a9450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/30a764f77f807a9f30b4503dfb3c45d3268a9450/padic_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2710,
12,
2890,
16,
24770,
16,
13382,
273,
599,
16,
1257,
273,
599,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
599,
4672,
3536,
1788,
392,
2710,
434,
333,
293,
17,
20333,
9221,
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,
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,
2710,
12,
2890,
16,
24770,
16,
13382,
273,
599,
16,
1257,
273,
599,
16,
1172,
67,
3188,
273,
599,
16,
18389,
273,
599,
4672,
3536,
1788,
392,
2710,
434,
333,
293,
17,
20333,
9221,
18,
... |
self.assertEqual(e2.gr_name.lower(), e.gr_name.lower()) | self.assertEqual(e2.gr_name.lower(), name.lower()) | def test_values(self): entries = grp.getgrall() | 124b18295af0d0c5c299e370eb6872d7dfa7ec4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/124b18295af0d0c5c299e370eb6872d7dfa7ec4e/test_grp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1842,
67,
2372,
12,
2890,
4672,
3222,
273,
14295,
18,
588,
3197,
454,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
noline() s += space(False,result=s) s += write(":") s += space(False,result=s) return s | cls.noline() r += cls.space(False,result=r) r += cls.write(":") r += cls.space(False,result=r) return r | def closing(self, node): s = u'' # for loop if node.parent.type == "loop" and node.parent.get("loopType") == "FOR": s += write(";") | 01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7647,
12,
2890,
16,
756,
4672,
272,
273,
582,
6309,
468,
364,
2798,
309,
756,
18,
2938,
18,
723,
422,
315,
6498,
6,
471,
756,
18,
2938,
18,
588,
2932,
6498,
559,
7923,
422,
315,
7473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7647,
12,
2890,
16,
756,
4672,
272,
273,
582,
6309,
468,
364,
2798,
309,
756,
18,
2938,
18,
723,
422,
315,
6498,
6,
471,
756,
18,
2938,
18,
588,
2932,
6498,
559,
7923,
422,
315,
7473... |
env.AddMethod(ChromeInstall) | def generate(env): env.AddMethod(ChromeProgram) env.AddMethod(ChromeTestProgram) env.AddMethod(ChromeLibrary) env.AddMethod(ChromeLoadableModule) env.AddMethod(ChromeStaticLibrary) env.AddMethod(ChromeSharedLibrary) env.AddMethod(ChromeObject) env.AddMethod(ChromeInstall) env.AddMethod(FilterOut) # Add the grit tool ... | 8654036d617cd47db19b21a8c6cafb9c6bbf29f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/8654036d617cd47db19b21a8c6cafb9c6bbf29f1/chromium_builders.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
1550,
18,
986,
1305,
12,
28548,
9459,
13,
1550,
18,
986,
1305,
12,
28548,
4709,
9459,
13,
1550,
18,
986,
1305,
12,
28548,
9313,
13,
1550,
18,
986,
1305,
12,
28548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
3074,
4672,
1550,
18,
986,
1305,
12,
28548,
9459,
13,
1550,
18,
986,
1305,
12,
28548,
4709,
9459,
13,
1550,
18,
986,
1305,
12,
28548,
9313,
13,
1550,
18,
986,
1305,
12,
28548... | |
res = csc.__rsub__(other) return res | return csc.__rsub__(other) | def __rsub__(self, other): # other - self csc = self.tocsc() res = csc.__rsub__(other) return res | bdabf856b614694a8ef20c73a7d82bda3a7cf386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/bdabf856b614694a8ef20c73a7d82bda3a7cf386/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
86,
1717,
972,
12,
2890,
16,
1308,
4672,
468,
1308,
300,
365,
276,
1017,
273,
365,
18,
1391,
1017,
1435,
400,
273,
276,
1017,
16186,
86,
1717,
972,
12,
3011,
13,
327,
400,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
86,
1717,
972,
12,
2890,
16,
1308,
4672,
468,
1308,
300,
365,
276,
1017,
273,
365,
18,
1391,
1017,
1435,
400,
273,
276,
1017,
16186,
86,
1717,
972,
12,
3011,
13,
327,
400,
2,
-... |
cros_build_lib.RunCommand('repo sync', shell=True) cros_build_lib.RunCommand('repo start %s .' % prebuilt_branch, shell=True) | cros_build_lib.RunCommand('repo sync .', shell=True) cros_build_lib.RunCommand('repo start %s .' % prebuilt_branch, shell=True) | def RevGitFile(filename, value): """Update and push the git file. Args: filename: file to modify that is in a git repo already key: board or host package type e.g. x86-dogfood value: string representing the version of the prebuilt that has been uploaded. """ prebuilt_branch = 'prebuilt_branch' old_cwd = os.getcwd() os... | b593c39e9d98762574a8dd7ba4e6114d4ab74f75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/b593c39e9d98762574a8dd7ba4e6114d4ab74f75/prebuilt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14477,
11540,
812,
12,
3459,
16,
460,
4672,
3536,
1891,
471,
1817,
326,
5071,
585,
18,
225,
6634,
30,
1544,
30,
585,
358,
5612,
716,
353,
316,
279,
5071,
3538,
1818,
498,
30,
11094,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14477,
11540,
812,
12,
3459,
16,
460,
4672,
3536,
1891,
471,
1817,
326,
5071,
585,
18,
225,
6634,
30,
1544,
30,
585,
358,
5612,
716,
353,
316,
279,
5071,
3538,
1818,
498,
30,
11094,
57... |
self.hide_broken_links = hide_broken_links | def __init__(self, book, path, font_delta=0, verbose=False, cover=None, max_link_levels=sys.maxint, link_level=0, is_root=True, baen=False, chapter_detection=True, chapter_regex=re.compile('chapter|book|appendix', re.IGNORECASE), link_exclude=re.compile('$'), page_break=re.compile('h[12]', re.IGNORECASE), profile=PRS50... | 7329106b9971a236c22ef7a40e8a849bddcad759 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/7329106b9971a236c22ef7a40e8a849bddcad759/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6978,
16,
589,
16,
3512,
67,
9878,
33,
20,
16,
3988,
33,
8381,
16,
5590,
33,
7036,
16,
943,
67,
1232,
67,
12095,
33,
9499,
18,
1896,
474,
16,
1692,
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,
1001,
2738,
972,
12,
2890,
16,
6978,
16,
589,
16,
3512,
67,
9878,
33,
20,
16,
3988,
33,
8381,
16,
5590,
33,
7036,
16,
943,
67,
1232,
67,
12095,
33,
9499,
18,
1896,
474,
16,
1692,
6... | |
print "OFF", self.attribute_name, id(self), self.label_text | def update_label(self): if self.label is None: return if self.changed(): print "ON ", self.attribute_name, id(self), self.label_text if len(self.label.get_label()) == len(self.label_text): self.label.set_label(self.label_text + changed_indicator) else: print "OFF", self.attribute_name, id(self), self.label_text if len(... | e5bec2e8ca501764ba08945a99128225579e2082 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/e5bec2e8ca501764ba08945a99128225579e2082/mixin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1925,
12,
2890,
4672,
309,
365,
18,
1925,
353,
599,
30,
327,
309,
365,
18,
6703,
13332,
1172,
315,
673,
3104,
365,
18,
4589,
67,
529,
16,
612,
12,
2890,
3631,
365,
18,
1925... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1925,
12,
2890,
4672,
309,
365,
18,
1925,
353,
599,
30,
327,
309,
365,
18,
6703,
13332,
1172,
315,
673,
3104,
365,
18,
4589,
67,
529,
16,
612,
12,
2890,
3631,
365,
18,
1925... | |
vereq(x.a, None) | verify(not hasattr(x, "a")) | def slots(): if verbose: print "Testing __slots__..." class C0(object): __slots__ = [] x = C0() verify(not hasattr(x, "__dict__")) verify(not hasattr(x, "foo")) class C1(object): __slots__ = ['a'] x = C1() verify(not hasattr(x, "__dict__")) vereq(x.a, None) x.a = 1 vereq(x.a, 1) del x.a vereq(x.a, None) class C3(obje... | c1866478f3a9f6521eeed546038098ad2ed37ae8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c1866478f3a9f6521eeed546038098ad2ed37ae8/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12169,
13332,
309,
3988,
30,
1172,
315,
22218,
1001,
18875,
972,
7070,
667,
385,
20,
12,
1612,
4672,
1001,
18875,
972,
273,
5378,
619,
273,
385,
20,
1435,
3929,
12,
902,
3859,
12,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12169,
13332,
309,
3988,
30,
1172,
315,
22218,
1001,
18875,
972,
7070,
667,
385,
20,
12,
1612,
4672,
1001,
18875,
972,
273,
5378,
619,
273,
385,
20,
1435,
3929,
12,
902,
3859,
12,
92,
... |
process.wait() output = p.getResults(process) | output = self.assertSuccess(p, process) | def testPingViaISCript(self): p = self._getProcessor() input = rmap({}) input.val["a"] = rint(2) input.val["b"] = rstring("d") process = p.execute(input) process.wait() output = p.getResults(process) self.assert_( 2 == output.val["a"].val ) | 5910bcd7c81784d51705b94bee64e2b761549e73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/5910bcd7c81784d51705b94bee64e2b761549e73/ping.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
17223,
21246,
45,
2312,
1485,
12,
2890,
4672,
293,
273,
365,
6315,
588,
5164,
1435,
810,
273,
436,
1458,
23506,
13,
810,
18,
1125,
9614,
69,
11929,
273,
436,
474,
12,
22,
13,
810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17223,
21246,
45,
2312,
1485,
12,
2890,
4672,
293,
273,
365,
6315,
588,
5164,
1435,
810,
273,
436,
1458,
23506,
13,
810,
18,
1125,
9614,
69,
11929,
273,
436,
474,
12,
22,
13,
810... |
self.cfgfile = "%s/%s" % (directory, cfgfile) self.dyncfgfile = "%s/%s.dynconf" % (directory, cfgfile) self.logfile = "%s/%s" % (directory, logfile) | self.cfgfile = cfgfile self.dyncfgfile = "%s.dynconf" % (cfgfile) self.logfile = logfile | def __init__(self, directory, cfgfile, logfile, parsexml): VermontInstance.__init__(self, parsexml) self.dir = directory self.cfgfile = "%s/%s" % (directory, cfgfile) self.dyncfgfile = "%s/%s.dynconf" % (directory, cfgfile) self.logfile = "%s/%s" % (directory, logfile) self.pid = 0 | c5ffc4ffec54b8f4af65e9d57389559f566007ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13005/c5ffc4ffec54b8f4af65e9d57389559f566007ec/LocalVermontInstance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
2776,
768,
16,
15204,
16,
1109,
2902,
4672,
776,
1035,
1580,
1442,
16186,
2738,
972,
12,
2890,
16,
1109,
2902,
13,
365,
18,
1214,
273,
1867,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1867,
16,
2776,
768,
16,
15204,
16,
1109,
2902,
4672,
776,
1035,
1580,
1442,
16186,
2738,
972,
12,
2890,
16,
1109,
2902,
13,
365,
18,
1214,
273,
1867,
36... |
max_species = max(by_count.values()) | if by_count.values(): max_species = max(by_count.values()) | def get_place_species(place, user, limit=None): passport = Trip.get_passport(user) by_count = {} for sighting in Sighting.objects.filter(place=place): species = sighting.species by_count[species] = by_count.get(species, 0) + 1 max_species = max(by_count.values()) species_list = by_count.keys() for species in species... | 2c45dd1a57101a3de29e23644a7b4c7e824b2564 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9909/2c45dd1a57101a3de29e23644a7b4c7e824b2564/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
964,
67,
22657,
12,
964,
16,
729,
16,
1800,
33,
7036,
4672,
1342,
655,
273,
10000,
84,
18,
588,
67,
5466,
655,
12,
1355,
13,
225,
635,
67,
1883,
273,
2618,
364,
272,
750,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
964,
67,
22657,
12,
964,
16,
729,
16,
1800,
33,
7036,
4672,
1342,
655,
273,
10000,
84,
18,
588,
67,
5466,
655,
12,
1355,
13,
225,
635,
67,
1883,
273,
2618,
364,
272,
750,
... |
invoice = Document.get_invoice(request.user, prog.anchor, li_types, dont_duplicate=True) | invoice = Document.get_invoice(user, prog.anchor, li_types, dont_duplicate=True) | def paiditems(self, request, tl, one, two, module, extra, prog): | 39624cf6546bbec2f3895136f326c12ac66753b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/39624cf6546bbec2f3895136f326c12ac66753b9/onsitepaiditemsmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30591,
3319,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
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,
30591,
3319,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def printMessageInVerboseMode(self, message): '''Prints a message to console if hg has been executed with -v option.''' self.ui.note(message) | def push_hook(ui, repo, hooktype, node=None, source=None, **kwargs): if hooktype != 'pretxnchangegroup': raise util.Abort(_('config error - hook type "%s" cannot stop ' 'incoming changesets') % hooktype) for rev in xrange(repo[node], len(repo)): ctx = repo[rev] for f in ctx.files(): if deny(f): ui.debug(_('filecheck:... | def printMessageInVerboseMode(self, message): '''Prints a message to console if hg has been executed with -v option.''' self.ui.note(message) | 074e2628370475e95f6c6deb7b03f4b5d0d25ddc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4206/074e2628370475e95f6c6deb7b03f4b5d0d25ddc/filecheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1079,
382,
14489,
2309,
12,
2890,
16,
883,
4672,
9163,
15402,
279,
883,
358,
2983,
309,
22576,
711,
2118,
7120,
598,
300,
90,
1456,
1093,
6309,
365,
18,
4881,
18,
7652,
12,
2150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1079,
382,
14489,
2309,
12,
2890,
16,
883,
4672,
9163,
15402,
279,
883,
358,
2983,
309,
22576,
711,
2118,
7120,
598,
300,
90,
1456,
1093,
6309,
365,
18,
4881,
18,
7652,
12,
2150,
... |
self.hComPort = win32file.CreateFile(self.makeDeviceName(self.portstr), | self.hComPort = win32file.CreateFile(port, | def open(self): """Open port with current settings. This may throw a SerialException if the port cannot be opened.""" if self._port is None: raise SerialException("Port must be configured before it can be used.") self.hComPort = None try: self.hComPort = win32file.CreateFile(self.makeDeviceName(self.portstr), win32con.... | 8b7cff02814bdd6343af788ae646b186ff18db2a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2937/8b7cff02814bdd6343af788ae646b186ff18db2a/serialwin32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
4672,
3536,
3678,
1756,
598,
783,
1947,
18,
1220,
2026,
604,
279,
7366,
503,
309,
326,
1756,
2780,
506,
10191,
12123,
309,
365,
6315,
655,
353,
599,
30,
1002,
7366,
503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
3536,
3678,
1756,
598,
783,
1947,
18,
1220,
2026,
604,
279,
7366,
503,
309,
326,
1756,
2780,
506,
10191,
12123,
309,
365,
6315,
655,
353,
599,
30,
1002,
7366,
503,
... |
self.text.append(self.new_line) | self.text.append(self.new_line_dont_remove) | def process_table(self, node, style=""): self.text.append(self.new_line) self.new_table = True style += self._table_style(node) for i in node.childNodes: if i.nodeType == Node.ELEMENT_NODE: name = i.localName if name == 'tr': self.process_table_record(i, style) style = "" elif name in ('thead', 'tbody', 'tfoot'): self.... | 7d8541a2420fca5fca728585cb673bf3fc962015 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/7d8541a2420fca5fca728585cb673bf3fc962015/text_html_text_moin_wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2121,
12,
2890,
16,
756,
16,
2154,
1546,
6,
4672,
365,
18,
955,
18,
6923,
12,
2890,
18,
2704,
67,
1369,
67,
72,
1580,
67,
4479,
13,
365,
18,
2704,
67,
2121,
273,
1053,
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,
1207,
67,
2121,
12,
2890,
16,
756,
16,
2154,
1546,
6,
4672,
365,
18,
955,
18,
6923,
12,
2890,
18,
2704,
67,
1369,
67,
72,
1580,
67,
4479,
13,
365,
18,
2704,
67,
2121,
273,
1053,
21... |
outfititem[0] = \ self.itemattrlist[self.currentTabLabel].TemplateIndex | outfit[self.currentTabLabel] = ( self.itemattrlist[self.currentTabLabel].TemplateIndex, self.itemattrlist[self.currentTabLabel].Equipped,) | def deleteCurrentItem(self): if self.itemattrlist[self.currentTabLabel].next is None: self.clearCurrentItem() return item = self.itemattrlist[self.currentTabLabel] self.itemattrlist[self.currentTabLabel] = item.next item.next = None if item.Equipped == "1": self.itemattrlist[self.currentTabLabel].Equipped = 1 for outfi... | d280253f621b6d1e91ce22b55f8a34f03dec1dd7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/d280253f621b6d1e91ce22b55f8a34f03dec1dd7/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
3935,
1180,
12,
2890,
4672,
309,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
8009,
4285,
353,
599,
30,
365,
18,
8507,
3935,
1180,
1435,
327,
761,
273,
365,
18,
172... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
3935,
1180,
12,
2890,
4672,
309,
365,
18,
1726,
1747,
1098,
63,
2890,
18,
2972,
5661,
2224,
8009,
4285,
353,
599,
30,
365,
18,
8507,
3935,
1180,
1435,
327,
761,
273,
365,
18,
172... |
self.menu.delete(0, END) | self.menu.tk.call(self.menu._w, 'delete', 0, END) | def RebuildMenu(self): if self.entries is not None: self.menu.delete(0, END) if self.rebuild_func is not None: try: self.entries = self.rebuild_func() except: warn_tb(INTERNAL, 'Trying to rebuild menu') self.__build_menu() self.Update() | 4198a144c10d6673bea0584829a87b7aada39ecf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/4198a144c10d6673bea0584829a87b7aada39ecf/tkext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
3510,
4599,
12,
2890,
4672,
309,
365,
18,
8219,
353,
486,
599,
30,
225,
365,
18,
5414,
18,
16099,
18,
1991,
12,
2890,
18,
5414,
6315,
91,
16,
296,
3733,
2187,
374,
16,
7273,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
3510,
4599,
12,
2890,
4672,
309,
365,
18,
8219,
353,
486,
599,
30,
225,
365,
18,
5414,
18,
16099,
18,
1991,
12,
2890,
18,
5414,
6315,
91,
16,
296,
3733,
2187,
374,
16,
7273,
13,... |
else: | if not ipList: | def textToIp(text): """ Return the IP of DNS found in a given text. """ ipList = list() # Search for plain IP plainIP = searchIP(text) for element in plainIP: ipList.append(element) else: # Try to get IP from possible DNS dnsList = textToDns(text) for element in dnsList: dns = dnsToIp(element) for e in dns: ipList.appe... | c442955e30ac29fa29d11156ecf3208c3961690a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12171/c442955e30ac29fa29d11156ecf3208c3961690a/dns.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
774,
5273,
12,
955,
4672,
3536,
2000,
326,
2971,
434,
8858,
1392,
316,
279,
864,
977,
18,
3536,
2359,
682,
273,
666,
1435,
468,
5167,
364,
7351,
2971,
7351,
2579,
273,
1623,
2579,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
774,
5273,
12,
955,
4672,
3536,
2000,
326,
2971,
434,
8858,
1392,
316,
279,
864,
977,
18,
3536,
2359,
682,
273,
666,
1435,
468,
5167,
364,
7351,
2971,
7351,
2579,
273,
1623,
2579,
... |
def __init__(self, id, parent_id, title): | def __init__(self, id, store, parent_id, title): self.url = store.urlbase+str(id) | def __init__(self, id, parent_id, title): self.parent_id = parent_id self.id = id self.name = title self.mimetype = 'directory' self.update_id = 0 self.children = [] | b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11626/b05ff0a9e7f655cfa0f1e793ec877c71f81adbdc/bbc_storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
16,
1707,
16,
982,
67,
350,
16,
2077,
4672,
365,
18,
718,
273,
1707,
18,
718,
1969,
15,
701,
12,
350,
13,
365,
18,
2938,
67,
350,
273,
982,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
16,
1707,
16,
982,
67,
350,
16,
2077,
4672,
365,
18,
718,
273,
1707,
18,
718,
1969,
15,
701,
12,
350,
13,
365,
18,
2938,
67,
350,
273,
982,
67,
... |
queueHandler.queueFunction(queueHandler.interactiveQueue, speech.speakText, line) | queueHandler.queueFunction(queueHandler.eventQueue, speech.speakText, line) | def monitorThread(self): try: consoleEvent=None # We want the first event to be handled immediately. timeSinceLast=5 checkDead_timer=0 #Keep the thread alive while keepMonitoring is true - disconnectConsole will make it false if the focus moves away while self.keepMonitoring: #If there has been a console event lately, ... | 8bc519acab26e2323701b1575d782b5f1e5286dc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/8bc519acab26e2323701b1575d782b5f1e5286dc/winConsole.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
3830,
12,
2890,
4672,
775,
30,
2983,
1133,
33,
7036,
468,
1660,
2545,
326,
1122,
871,
358,
506,
7681,
7636,
18,
813,
9673,
3024,
33,
25,
866,
11852,
67,
12542,
33,
20,
468,
11523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
3830,
12,
2890,
4672,
775,
30,
2983,
1133,
33,
7036,
468,
1660,
2545,
326,
1122,
871,
358,
506,
7681,
7636,
18,
813,
9673,
3024,
33,
25,
866,
11852,
67,
12542,
33,
20,
468,
11523... |
def addResourceToPackage(script, classToResourceMap, assetId, resvalue): | def addResourceToPackages(script, classToResourceMap, assetId, resval): def assetRexMatchItem(assetRex, item): if isinstance(item, types.StringTypes): return assetRex.match(item) else: for embId in item.embeds: if assetRex.match(embId): return True return False if isinstance(resval, NameSpace): resvalue = resval... | def addResourceToPackage(script, classToResourceMap, assetId, resvalue): classesUsing = set(()) for clazz, assetSet in classToResourceMap.items(): for assetRex in assetSet: if assetRex.match(assetId): classesUsing.add(clazz) break for package in script.packages: if classesUsing.intersection(set(package.classes)): packa... | 944a27fdae148f35239ab227d4fa63652b5bb099 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/944a27fdae148f35239ab227d4fa63652b5bb099/CodeGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23812,
774,
11425,
12,
4263,
16,
667,
774,
1420,
863,
16,
3310,
548,
16,
400,
1125,
4672,
565,
1652,
3310,
54,
338,
2060,
1180,
12,
9406,
54,
338,
16,
761,
4672,
225,
309,
1549,
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,
23812,
774,
11425,
12,
4263,
16,
667,
774,
1420,
863,
16,
3310,
548,
16,
400,
1125,
4672,
565,
1652,
3310,
54,
338,
2060,
1180,
12,
9406,
54,
338,
16,
761,
4672,
225,
309,
1549,
12,
... |
schema = DummySchema() widget = self._makeOne(schema) result = widget.deserialize(None) | widget = self._makeOne() field = DummyField() result = widget.deserialize(field, None) | def test_deserialize_None(self): schema = DummySchema() widget = self._makeOne(schema) result = widget.deserialize(None) self.assertEqual(result, '') | 49d5d30d4af077f6aa41daa625a871dba1abdb52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13087/49d5d30d4af077f6aa41daa625a871dba1abdb52/test_widget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18109,
67,
7036,
12,
2890,
4672,
3604,
273,
365,
6315,
6540,
3335,
1435,
652,
273,
28622,
974,
1435,
563,
273,
3604,
18,
18109,
12,
1518,
16,
599,
13,
365,
18,
11231,
5812,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18109,
67,
7036,
12,
2890,
4672,
3604,
273,
365,
6315,
6540,
3335,
1435,
652,
273,
28622,
974,
1435,
563,
273,
3604,
18,
18109,
12,
1518,
16,
599,
13,
365,
18,
11231,
5812,
1... |
req.hdf.setValue('ticket.changes.%d.new' % idx, util.escape(new)) idx = idx + 1 | changes[-1]['fields'][field] = {'old': old, 'new': new} util.add_to_hdf(changes, req.hdf, 'ticket.changes') | def insert_ticket_data(self, req, id, ticket, reporter_id): """Insert ticket data into the hdf""" evals = util.mydict(zip(ticket.keys(), map(lambda x: util.escape(x), ticket.values()))) util.add_to_hdf(evals, req.hdf, 'ticket') | d1c0c206b8a3a21eda1d0176db9e3475fd0d5996 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d1c0c206b8a3a21eda1d0176db9e3475fd0d5996/Ticket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
67,
16282,
67,
892,
12,
2890,
16,
1111,
16,
612,
16,
9322,
16,
11528,
67,
350,
4672,
3536,
4600,
9322,
501,
1368,
326,
24217,
8395,
22654,
273,
1709,
18,
4811,
1576,
12,
4450,
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,
2243,
67,
16282,
67,
892,
12,
2890,
16,
1111,
16,
612,
16,
9322,
16,
11528,
67,
350,
4672,
3536,
4600,
9322,
501,
1368,
326,
24217,
8395,
22654,
273,
1709,
18,
4811,
1576,
12,
4450,
12... |
a = self.dispatch['call'](frame, 0) | a = self.dispatch['call'](self, frame, 0) | def simulate_call(self, name): code = self.fake_code('profile', 0, name) if self.cur: pframe = self.cur[-2] else: pframe = None frame = self.fake_frame(code, pframe) a = self.dispatch['call'](frame, 0) return | e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20089,
67,
1991,
12,
2890,
16,
508,
4672,
981,
273,
365,
18,
28395,
67,
710,
2668,
5040,
2187,
374,
16,
508,
13,
309,
365,
18,
1397,
30,
293,
3789,
273,
365,
18,
1397,
18919,
22,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20089,
67,
1991,
12,
2890,
16,
508,
4672,
981,
273,
365,
18,
28395,
67,
710,
2668,
5040,
2187,
374,
16,
508,
13,
309,
365,
18,
1397,
30,
293,
3789,
273,
365,
18,
1397,
18919,
22,
65,... |
fields=self._label[1].lower())) | fields=label[1].lower())) | def do_remove(db): for name in sel: enum = self._enum_cls(self.env, name, db=db) enum.delete() | 9551c6f0906637670276f4f30356edd2f0c9f6f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/9551c6f0906637670276f4f30356edd2f0c9f6f1/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4479,
12,
1966,
4672,
364,
508,
316,
357,
30,
2792,
273,
365,
6315,
7924,
67,
6429,
12,
2890,
18,
3074,
16,
508,
16,
1319,
33,
1966,
13,
2792,
18,
3733,
1435,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4479,
12,
1966,
4672,
364,
508,
316,
357,
30,
2792,
273,
365,
6315,
7924,
67,
6429,
12,
2890,
18,
3074,
16,
508,
16,
1319,
33,
1966,
13,
2792,
18,
3733,
1435,
2,
-100,
-100,... |
self.print_topics(self.misc_header, help.keys(),15,80) | self.print_topics(self.misc_header, list(help.keys()),15,80) | def do_help(self, arg): if arg: # XXX check arg syntax try: func = getattr(self, 'help_' + arg) except AttributeError: try: doc=getattr(self, 'do_' + arg).__doc__ if doc: self.stdout.write("%s\n"%str(doc)) return except AttributeError: pass self.stdout.write("%s\n"%str(self.nohelp % (arg,))) return func() else: names =... | 7b955bd125951db694f19a1b8648b806b14bd61f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7b955bd125951db694f19a1b8648b806b14bd61f/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5201,
12,
2890,
16,
1501,
4672,
309,
1501,
30,
468,
11329,
866,
1501,
6279,
775,
30,
1326,
273,
3869,
12,
2890,
16,
296,
5201,
4623,
397,
1501,
13,
1335,
6394,
30,
775,
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,
741,
67,
5201,
12,
2890,
16,
1501,
4672,
309,
1501,
30,
468,
11329,
866,
1501,
6279,
775,
30,
1326,
273,
3869,
12,
2890,
16,
296,
5201,
4623,
397,
1501,
13,
1335,
6394,
30,
775,
30,
... |
comb_som.setAllAxisLabels([kwargs["x_label"], "Pixel Number"]) else: comb_som.setAllAxisLabels(["Arbitrary", "Pixel Number"]) | comb_som.setAllAxisLabels(["Pixel Number", kwargs["x_label"]]) else: comb_som.setAllAxisLabels(["Pixel Number", "Arbitrary"]) | def create_X_vs_pixpos(som, *args, **kwargs): """ This function takes a SOM of single spectrum with any given axes (wavelength, energy etc.) and rebins those axes to the given axis and converts the spectra into a single I(X, pixel) spectrum. Parameters: ---------- -> som is the input SOM with arbitrary (but same) axis... | e6d0daaa6114638d1eb821cdd4d9d1ac3b4ca77c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/e6d0daaa6114638d1eb821cdd4d9d1ac3b4ca77c/hlr_create_X_vs_pixpos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
60,
67,
6904,
67,
14861,
917,
12,
87,
362,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
1281,
864,
6515,
261,
91,
16775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
60,
67,
6904,
67,
14861,
917,
12,
87,
362,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
1281,
864,
6515,
261,
91,
16775,
... |
raise nagios.MKGeneralException('The log file "%s" from host "%s"' ' could not be opened.' % \ (htmllib.attrencode(file.replace('\\', '/')), htmllib.attrencode(host))) | raise MKGeneralException('The log file "%s" could not be opened.' % \ (htmllib.attrencode(file))) | def parse_file(file, hidecontext = "no"): try: f = open(file, 'r') except: raise nagios.MKGeneralException('The log file "%s" from host "%s"' ' could not be opened.' % \ (htmllib.attrencode(file.replace('\\', '/')), htmllib.attrencode(host))) chunk_open = False logs = [] log = None for line in f.rea... | c51ea4b3707f92c30a7fb862bed40646fc528673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/c51ea4b3707f92c30a7fb862bed40646fc528673/page_logwatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
768,
12,
768,
16,
6853,
2472,
273,
315,
2135,
6,
4672,
775,
30,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1335,
30,
1002,
490,
47,
12580,
503,
2668,
1986,
613,
585,
473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
12,
768,
16,
6853,
2472,
273,
315,
2135,
6,
4672,
775,
30,
284,
273,
1696,
12,
768,
16,
296,
86,
6134,
1335,
30,
1002,
490,
47,
12580,
503,
2668,
1986,
613,
585,
473,
... |
sqlcmd = """select rowid from tasks where taskid=\"%s\";""" | sqlcmd = """SELECT rowid FROM tasks WHERE taskid=\"%s\";""" | def __str__(self): return repr("Already inserted Task; cannot re-insert") | b26009864c3ded7e0ae30c762c93549db6bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5203/b26009864c3ded7e0ae30c762c93549db6bbc984/swamp_dbutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
8480,
2932,
9430,
9564,
3837,
31,
2780,
283,
17,
6387,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
8480,
2932,
9430,
9564,
3837,
31,
2780,
283,
17,
6387,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
(type=C{string}) - C{private}: Whether to create documentation for private | @type private: C{boolean} @keyword private: Whether to create documentation for private | def __init__(self, docmap, **kwargs): """ Construct a new HTML formatter, using the given documentation map. @param docmap: The documentation to output. @type docmap: L{DocMap} @param kwargs: Keyword arguments: - C{prj_name}: The name of the project. Defaults to none. (type=C{string}) - C{prj_url}: The target for the... | 21a6d8c30a29a133335836c07a6da6e2f0b95f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/21a6d8c30a29a133335836c07a6da6e2f0b95f2a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
1458,
16,
2826,
4333,
4672,
3536,
14291,
279,
394,
3982,
4453,
16,
1450,
326,
864,
7323,
852,
18,
632,
891,
997,
1458,
30,
1021,
7323,
358,
876,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
997,
1458,
16,
2826,
4333,
4672,
3536,
14291,
279,
394,
3982,
4453,
16,
1450,
326,
864,
7323,
852,
18,
632,
891,
997,
1458,
30,
1021,
7323,
358,
876,
18,... |
button = OWGUI.button(box, self, '...', callback = self.browseFile, disabled=0) | button = OWGUI.button(self.box, self, '...', callback = self.browseFile, disabled=0) | def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "File Widget") | b9fd533735ae70be1b0a56c619caab95650f43aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b9fd533735ae70be1b0a56c619caab95650f43aa/OWFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
812,
11103,
7923,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
315,
812,
11103,
7923,
2,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.