rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
try: string = string.split('.', 1)[0] t = time.strptime(string, dateformat) timestamp = time.mktime(t) results = datetime.datetime.fromtimestamp(timestamp) except: raise raise ValueError("Unable to create time from string!\nExpecting " \ "format of: '12/06/06 12:54:67'\nRecieved:%s" % orig_string) | try: string = string.split('.', 1)[0] t = time.strptime(string, dateformat) timestamp = time.mktime(t) results = datetime.datetime.fromtimestamp(timestamp) except: raise raise ValueError("Unable to create time from string!\nExpecting " \ "format of: '12/06/06 12:54:67'\nRecieved:%s" % orig_string) | def convert_to_datetime( string ): orig_string = str( string ) try: if type(string) == datetime.datetime: results = string else: results = eval(str(string),{'__builtins__':None,'time':time,'math':math},{}) if type(results) == types.FloatType or type(results) == types.IntType: results = datetime.datetime.fromtimestamp( ... | d12a24d14c272a59a1adb2fbe6b24f8968b0de71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d12a24d14c272a59a1adb2fbe6b24f8968b0de71/GraphUtilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
869,
67,
6585,
12,
533,
262,
30,
1647,
67,
1080,
273,
609,
12,
533,
262,
775,
30,
309,
618,
12,
1080,
13,
422,
3314,
18,
6585,
30,
1686,
273,
533,
469,
30,
1686,
273,
530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
869,
67,
6585,
12,
533,
262,
30,
1647,
67,
1080,
273,
609,
12,
533,
262,
775,
30,
309,
618,
12,
1080,
13,
422,
3314,
18,
6585,
30,
1686,
273,
533,
469,
30,
1686,
273,
530... |
[(u'0', dummy1), (u'0.1', 1), (u'0.2', 2), (u'0.3', 3)] | [(u'0', dummy1), (u'1.1', 1), (u'1.2', 2), (u'1.3', 3), (u'2.4', 4)] | ... def getQueriables(self): | cfc44066bfea6f7dbfacd29b486355205f4de1a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/cfc44066bfea6f7dbfacd29b486355205f4de1a2/vocabulary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
336,
928,
264,
77,
1538,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
336,
928,
264,
77,
1538,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
line = chrset_res.group(1) + \ CHARSET + chrset_res.group(3) | line = '%s%s%s' % (chrset_res.group(1), CHARSET, chrset_res.group(3)) | def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' has_cte = is_qp = is_base64 = 0 multipart = None must_quote_body = must_quote_header = has_iso_chars = 0 header = [] header_end = '' message = [] message_end = '' # read header hfile = HeaderFile(ifile) while... | 2da64378fc8910a8cade10d25f8774ca051556f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2da64378fc8910a8cade10d25f8774ca051556f9/mimify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20369,
1164,
67,
2680,
12,
430,
398,
16,
434,
398,
16,
353,
67,
11757,
4672,
9163,
2723,
392,
1725,
3682,
1087,
434,
279,
13195,
4791,
883,
358,
9298,
17,
1188,
429,
1093,
6309,
711,
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,
20369,
1164,
67,
2680,
12,
430,
398,
16,
434,
398,
16,
353,
67,
11757,
4672,
9163,
2723,
392,
1725,
3682,
1087,
434,
279,
13195,
4791,
883,
358,
9298,
17,
1188,
429,
1093,
6309,
711,
6... |
edition["work_title"] = work_title | edition["work_titles"] = work_title | def find_work_title(r, edition): work_title = [] f = r.get_field('240') if f: work_title.append(' '.join(specific_subtags(f, 'amnpr'))) f = r.get_field('130') if f: work_title.append(' '.join([j for i,j in f.subfield_sequence if i.islower()])) if work_title: edition["work_title"] = work_title | da804bedd5a86ca4953a76539728719f215e8cf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/da804bedd5a86ca4953a76539728719f215e8cf0/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
1252,
67,
2649,
12,
86,
16,
28432,
4672,
1440,
67,
2649,
273,
5378,
284,
273,
436,
18,
588,
67,
1518,
2668,
28784,
6134,
309,
284,
30,
1440,
67,
2649,
18,
6923,
2668,
2418,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
1252,
67,
2649,
12,
86,
16,
28432,
4672,
1440,
67,
2649,
273,
5378,
284,
273,
436,
18,
588,
67,
1518,
2668,
28784,
6134,
309,
284,
30,
1440,
67,
2649,
18,
6923,
2668,
2418,
... |
children.append(IAccessible(windowHandle=self.windowHandle,IAccessibleObject=self.IAccessibleObject,IAccessibleChildID=IAccessibleChildID,event_windowHandle=self.event_windowHandle,event_objectID=self.event_objectID,event_childID=IAccesibleChildID)) | children.append(IAccessible(windowHandle=self.windowHandle,IAccessibleObject=self.IAccessibleObject,IAccessibleChildID=IAccessibleChildID,event_windowHandle=self.event_windowHandle,event_objectID=self.event_objectID,event_childID=IAccessibleChildID)) | def _get_children(self): if self.IAccessibleChildID>0: return [] try: childCount= self.IAccessibleObject.accChildCount except COMError: childCount=0 if childCount<=0: return [] children=[] for IAccessibleObject,IAccessibleChildID in IAccessibleHandler.accessibleChildren(self.IAccessibleObject,0,childCount): if IAccessi... | ac4f778f824c8dd0a3bae17627a6fcd8c90cab1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/ac4f778f824c8dd0a3bae17627a6fcd8c90cab1b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
775,
30,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
1335,
5423,
668,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
775,
30,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
1335,
5423,
668,
30,... |
date_cond += " AND date <= '%s'"% str(context.get('to_date')) | date_cond += " AND date <= '%s'" args.append(str(context['to_date'])) | def get_hours(self, cursor, user, ids, name, arg, context=None): all_ids = self.search(cursor, user, [('parent', 'child_of', ids)]) clause = "SELECT work_type, sum(hours) FROM timesheet_line "\ "WHERE work_type IN (%s) "\ % ",".join(["%s" for id in all_ids]) date_cond = "" if context.get('from_date'): date_cond = " AND... | f18761452aadf6b9bb74b7e045a21be8947053a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9268/f18761452aadf6b9bb74b7e045a21be8947053a9/work_type.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16814,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
777,
67,
2232,
273,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
2668,
2938,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16814,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
508,
16,
1501,
16,
819,
33,
7036,
4672,
777,
67,
2232,
273,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
2668,
2938,
2187,
... |
def __init__(self, tests, results_dir_root=None): | def __init__(self, tests, base_ssh_port=_DEFAULT_BASE_SSH_PORT, board=None, image_path=None, results_dir_root=None): | def __init__(self, tests, results_dir_root=None): """Constructs and initializes the test runner class. | 40508146b3557607ab05a9c471b22110d0ed4e29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/40508146b3557607ab05a9c471b22110d0ed4e29/cros_run_parallel_vm_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1026,
67,
10975,
67,
655,
33,
67,
5280,
67,
8369,
67,
12559,
67,
6354,
16,
11094,
33,
7036,
16,
1316,
67,
803,
33,
7036,
16,
1686,
67,
1214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1026,
67,
10975,
67,
655,
33,
67,
5280,
67,
8369,
67,
12559,
67,
6354,
16,
11094,
33,
7036,
16,
1316,
67,
803,
33,
7036,
16,
1686,
67,
1214,
... |
def get_image(fn,target,description): | def get_image(fn, target, description, debug=False): | def get_image(fn,target,description): uploadaddr='/wiki/%s:Upload'%wikipedia.special[wikipedia.mylang] # Get file contents uo = wikipedia.MyURLopener() file = uo.open(fn) contents = file.read() file.close() # Isolate the pure name if '/' in fn: fn = fn.split('/')[-1] if '\\' in fn: fn = fn.split('\\')[-1] print "The fi... | f73c18a0e4869642db2fb5dcaf31f3e1bb7fdabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/f73c18a0e4869642db2fb5dcaf31f3e1bb7fdabe/lib_images.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2730,
12,
4293,
16,
1018,
16,
2477,
16,
1198,
33,
8381,
4672,
3617,
4793,
2218,
19,
13044,
5258,
87,
30,
4777,
11,
9,
11999,
13744,
18,
9371,
63,
11999,
13744,
18,
4811,
4936,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2730,
12,
4293,
16,
1018,
16,
2477,
16,
1198,
33,
8381,
4672,
3617,
4793,
2218,
19,
13044,
5258,
87,
30,
4777,
11,
9,
11999,
13744,
18,
9371,
63,
11999,
13744,
18,
4811,
4936,... |
ids = [x[0] for x in ids], context=context, | ids = [x[0] for x in (ids or [])], context=context, | def sig_edit(self, widget): self.changed = False value = self._view.modelfield.get(self._view.model) self.focus_out = False if value: domain = self._view.modelfield.domain_get(self._view.model) dia = Dialog(self.attrs['relation'], self._view.modelfield.get(self._view.model), attrs=self.attrs, window=self._window, domai... | d34845dfdcea08cc5288ccf28b97cf7a7a02a93c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/d34845dfdcea08cc5288ccf28b97cf7a7a02a93c/many2one.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
67,
4619,
12,
2890,
16,
3604,
4672,
365,
18,
6703,
273,
1083,
460,
273,
365,
6315,
1945,
18,
2284,
1518,
18,
588,
12,
2890,
6315,
1945,
18,
2284,
13,
365,
18,
13923,
67,
659,
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,
3553,
67,
4619,
12,
2890,
16,
3604,
4672,
365,
18,
6703,
273,
1083,
460,
273,
365,
6315,
1945,
18,
2284,
1518,
18,
588,
12,
2890,
6315,
1945,
18,
2284,
13,
365,
18,
13923,
67,
659,
2... |
def setter(self, new_handlers): self._event_handlers = new_handlers | def setter(self, new_events): self._subscribable_events = new_events | def setter(self, new_handlers): self._event_handlers = new_handlers | 5f7a8b9c75204e65643f7222c9e9d1ecb50a03cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/5f7a8b9c75204e65643f7222c9e9d1ecb50a03cf/multiconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7794,
12,
2890,
16,
394,
67,
11046,
4672,
365,
6315,
2575,
67,
11046,
273,
394,
67,
11046,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7794,
12,
2890,
16,
394,
67,
11046,
4672,
365,
6315,
2575,
67,
11046,
273,
394,
67,
11046,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.logger=logging.getLogger('fuglu.plugins.vacation.Cache') | self.logger=logging.getLogger('fuglu.plugin.vacation.Cache') | def __init__(self,config): self.__dict__ = self.__shared_state if not hasattr(self, 'vacations'): self.vacations={} if not hasattr(self,'regexcache'): self.regexcache={} | 625be998c0f2f44a38d5c1d262fbfb9ae2f9da91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/625be998c0f2f44a38d5c1d262fbfb9ae2f9da91/vacation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1425,
4672,
365,
16186,
1576,
972,
273,
365,
16186,
11574,
67,
2019,
309,
486,
3859,
12,
2890,
16,
296,
90,
1077,
1012,
11,
4672,
365,
18,
90,
1077,
1012... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1425,
4672,
365,
16186,
1576,
972,
273,
365,
16186,
11574,
67,
2019,
309,
486,
3859,
12,
2890,
16,
296,
90,
1077,
1012,
11,
4672,
365,
18,
90,
1077,
1012... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 753) else quickfix.IntField.__init__(self, 753, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
8643,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
8643,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
27... |
ldapObj = ldapUserGroupControl() gecos=name+" "+surname gecos=str(delete_diacritics(gecos.encode("utf-8"))) name=str(name.encode("utf-8")) surname=str(surname.encode("utf-8")) if surname: ldapObj.changeUserAttributes(uid,"sn",surname) | l = logging.getLogger() ldapObj = ldapUserGroupControl() gecos = name + " " + surname l.debug(type(name)) l.debug(repr(name)) gecos = delete_diacritics(gecos) name = name surname = surname if surname: ldapObj.changeUserAttributes(uid, "sn", surname) | def changeUserMainAttributes(uid,newuid,name,surname): ldapObj = ldapUserGroupControl() gecos=name+" "+surname gecos=str(delete_diacritics(gecos.encode("utf-8"))) name=str(name.encode("utf-8")) surname=str(surname.encode("utf-8")) if surname: ldapObj.changeUserAttributes(uid,"sn",surname) if name: ldapObj.changeUserA... | 1184561e044014695a8558f51b589c0583f02ae1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/1184561e044014695a8558f51b589c0583f02ae1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1299,
6376,
2498,
12,
1911,
16,
2704,
1911,
16,
529,
16,
87,
12866,
4672,
328,
273,
2907,
18,
588,
3328,
1435,
8079,
2675,
273,
8079,
21255,
3367,
1435,
314,
557,
538,
273,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1299,
6376,
2498,
12,
1911,
16,
2704,
1911,
16,
529,
16,
87,
12866,
4672,
328,
273,
2907,
18,
588,
3328,
1435,
8079,
2675,
273,
8079,
21255,
3367,
1435,
314,
557,
538,
273,
508,
... |
def __init__(self, n, q): | def __init__(self, n, q, var='a'): | def __init__(self, n, q): id = 'PSU(%s,%s)'%(n,q) PermutationGroup_generic.__init__(self, id, from_group=True, check=False) self._q = q self._base_ring = GF(q) self._field_of_definition = GF(q**2) self._n = n | 8a3e314e4097d60bf0d5d08c79463da64af0e7ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/8a3e314e4097d60bf0d5d08c79463da64af0e7ac/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
1043,
16,
569,
2218,
69,
11,
4672,
612,
273,
296,
5857,
57,
9275,
87,
15529,
87,
2506,
17105,
82,
16,
85,
13,
13813,
9245,
1114,
67,
13540,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
1043,
16,
569,
2218,
69,
11,
4672,
612,
273,
296,
5857,
57,
9275,
87,
15529,
87,
2506,
17105,
82,
16,
85,
13,
13813,
9245,
1114,
67,
13540,
16... |
_impl_qi = re.compile(r'NS_IMPL_(?P<threadsafe>THREADSAFE_)?(?P<type>QUERY_INTERFACE|ISUPPORTS)(?:\d+)\((?P<bases>.*)\)\s*$') | _impl_qi = re.compile(r'NS_IMPL_(?P<threadsafe>THREADSAFE_)?(?P<type>QUERY_INTERFACE|ISUPPORTS)(?P<inherited>_INHERITED)?(?:\d+)\((?P<bases>.*)\)\s*$') | def build_map(f, cname, iids): """Parse the body of an NS_INTERFACE_MAP and return (members, unfound)""" unfound = None members = [] for line in f: if line == 'NS_INTERFACE_MAP_END': return (members, unfound) if line == 'NS_INTERFACE_MAP_UNFOUND': unfound = '' for line in f: if line == 'END': break unfound += line con... | dd354699a64afcc629329f47c6612c4ef71ee127 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/dd354699a64afcc629329f47c6612c4ef71ee127/gqi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1458,
12,
74,
16,
18290,
16,
277,
2232,
4672,
3536,
3201,
326,
1417,
434,
392,
11472,
67,
18865,
67,
8352,
471,
327,
261,
7640,
16,
640,
7015,
15574,
640,
7015,
273,
599,
483... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
1458,
12,
74,
16,
18290,
16,
277,
2232,
4672,
3536,
3201,
326,
1417,
434,
392,
11472,
67,
18865,
67,
8352,
471,
327,
261,
7640,
16,
640,
7015,
15574,
640,
7015,
273,
599,
483... |
self.assert_('stylesheet.txt' in | self.assert_(os.path.join('data', 'stylesheet.txt') in | def test_stylesheet_dependencies(self): # Parameters to publish_file. s = {'settings_overrides': {}} so = s['settings_overrides'] so['embed_stylesheet'] = 0 so['stylesheet_path'] = 'stylesheet.txt' so['stylesheet'] = None s['writer_name'] = 'html' self.assert_('stylesheet.txt' not in self.get_record(**s)) so['embed_sty... | 79bd47d25e6631665198d99347dbe55bfffc2888 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/79bd47d25e6631665198d99347dbe55bfffc2888/test_dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19403,
67,
11037,
12,
2890,
4672,
468,
7012,
358,
3808,
67,
768,
18,
272,
273,
13666,
4272,
67,
19775,
4278,
2618,
97,
1427,
273,
272,
3292,
4272,
67,
19775,
3546,
1427,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19403,
67,
11037,
12,
2890,
4672,
468,
7012,
358,
3808,
67,
768,
18,
272,
273,
13666,
4272,
67,
19775,
4278,
2618,
97,
1427,
273,
272,
3292,
4272,
67,
19775,
3546,
1427,
3292,
... |
if bRunInteractive: startType = startType | win32service.SERVICE_INTERACTIVE_PROCESS | serviceType = win32service.SERVICE_WIN32_OWN_PROCESS if bRunInteractive: serviceType = serviceType | win32service.SERVICE_INTERACTIVE_PROCESS | def InstallService(pythonClassString, serviceName, displayName, startType = None, errorControl = None, bRunInteractive = 0, serviceDeps = None, userName = None, password = None, exeName = None, perfMonIni = None, perfMonDll = None): # Handle the default arguments. if startType is None: startType = win32service.SERVICE_... | 3dd7eeb388ec6de4c9af6c4191561ef1ccbe50cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/3dd7eeb388ec6de4c9af6c4191561ef1ccbe50cb/win32serviceutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
1179,
12,
8103,
797,
780,
16,
6773,
16,
16218,
16,
787,
559,
273,
599,
16,
555,
3367,
273,
599,
16,
324,
1997,
26442,
273,
374,
16,
1156,
14430,
273,
599,
16,
12065,
273,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
1179,
12,
8103,
797,
780,
16,
6773,
16,
16218,
16,
787,
559,
273,
599,
16,
555,
3367,
273,
599,
16,
324,
1997,
26442,
273,
374,
16,
1156,
14430,
273,
599,
16,
12065,
273,
599,
... |
if self.event.audioFadePoints: context.set_source_rgb(*self._FADELINE_RGB) firstPoint = self.event.audioFadePoints[0] pixx = self.PixXFromSec(firstPoint[0]) - rect.x pixy = self.PixYFromVol(firstPoint[1]) context.move_to(pixx, pixy) for sec, vol in self.event.audioFadePoints[1:]: pixx = self.PixXFromSec(sec) - rect.... | def DrawWaveform(self, exposeArea): """ This function uses Cairo to draw the waveform level information onto a canvas in memory. """ allocArea = self.get_allocation() rect = gtk.gdk.Rectangle(exposeArea.x - exposeArea.width, exposeArea.y, exposeArea.width*3, exposeArea.height) #Check if our area to cache is outside th... | 005410d48dc77ca205ebb2ce32f601d2594680fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/005410d48dc77ca205ebb2ce32f601d2594680fb/EventViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
22368,
687,
12,
2890,
16,
15722,
5484,
4672,
3536,
1220,
445,
4692,
385,
10658,
303,
358,
3724,
326,
31511,
1801,
1779,
10170,
279,
5953,
316,
3778,
18,
3536,
4767,
5484,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
22368,
687,
12,
2890,
16,
15722,
5484,
4672,
3536,
1220,
445,
4692,
385,
10658,
303,
358,
3724,
326,
31511,
1801,
1779,
10170,
279,
5953,
316,
3778,
18,
3536,
4767,
5484,
273,
365,
... | |
return('[sep_key]') | return(npchrstr) | def ParseEventValue(self, event): '''Pass the event ascii value through the requisite filters. Returns the result as a string. ''' if chr(event.Ascii) == self.settings['General']['Log File Field Separator']: return('[sep_key]') #translate backspace into text string, if option is set. if event.Ascii == 8 and self.setti... | 01e0c0cca2f42daf828fcd59e2a6d786e413242d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/01e0c0cca2f42daf828fcd59e2a6d786e413242d/logwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1133,
620,
12,
2890,
16,
871,
4672,
9163,
6433,
326,
871,
11384,
460,
3059,
326,
10780,
291,
1137,
3415,
18,
2860,
326,
563,
487,
279,
533,
18,
9163,
309,
4513,
12,
2575,
18,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1133,
620,
12,
2890,
16,
871,
4672,
9163,
6433,
326,
871,
11384,
460,
3059,
326,
10780,
291,
1137,
3415,
18,
2860,
326,
563,
487,
279,
533,
18,
9163,
309,
4513,
12,
2575,
18,
213... |
print " \"--nodigest\": do not verify sha1/md5sum for header+payload" print " \"--nopayload\": do not read in the compressed cpio" \ | print " [--nodigest]: do not verify sha1/md5sum for header+payload" print " [--nopayload]: do not read in the compressed cpio" \ | def usage(): prog = sys.argv[0] print print "To check your rpm database:" print prog, "[--verbose|-v|--quiet|-q] [--rpmdbpath=/var/lib/rpm/] " \ + "--checkrpmdb" print print "Verify and sanity check rpm packages:" print prog, "[--strict] [--nopayload] [--nodigest] \\" print " /mirror/fedora/development/i386/Fedora/R... | 13be26721e21a4e961a8227db7d74cd35a0477dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/13be26721e21a4e961a8227db7d74cd35a0477dd/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
11243,
273,
2589,
18,
19485,
63,
20,
65,
1172,
1172,
315,
774,
866,
3433,
25228,
2063,
2773,
1172,
11243,
16,
5158,
413,
11369,
24718,
90,
96,
413,
20380,
24718,
85,
65,
306... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
11243,
273,
2589,
18,
19485,
63,
20,
65,
1172,
1172,
315,
774,
866,
3433,
25228,
2063,
2773,
1172,
11243,
16,
5158,
413,
11369,
24718,
90,
96,
413,
20380,
24718,
85,
65,
306... |
<a href="./remove?ln=%(ln)s&name=%(alertname)s&idq=%(queryid)d&idb=%(basketid)d">%(remove)s</a><br /> <a href="./modify?ln=%(ln)s&idq=%(queryid)d&name=%(alertname)s&freq=%(freq)s&notif=%(notif)s&idb=%(basketid)d&old_idb=%(basketid)d">%(modify)s</a><br /> | %(remove_link)s<br /> %(modify_link)s<br /> | def tmpl_list_alerts(self, ln, alerts, guest, guesttxt): """ Displays the list of alerts | 3bf297a38c8cdf3f646d70b99c88ffd9f6c6315b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/3bf297a38c8cdf3f646d70b99c88ffd9f6c6315b/webalert_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1098,
67,
11798,
87,
12,
2890,
16,
7211,
16,
24304,
16,
13051,
16,
13051,
5830,
4672,
3536,
9311,
87,
326,
666,
434,
24304,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
1098,
67,
11798,
87,
12,
2890,
16,
7211,
16,
24304,
16,
13051,
16,
13051,
5830,
4672,
3536,
9311,
87,
326,
666,
434,
24304,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info.get('referer', None)))) else: return (1, "%s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], make_apache_message... | return (1, "%s %s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], (called_from and "%s %s" % (CFG_WEBACCESS_MSGS[0] % quote(user_info['uri']), CFG_WEBACCESS_MSGS[1]) or ""), make_apache_message(name_action, arguments, user_info['uri']))) else: return (1, "%s %s" % (CFG_WEBACCESS_WARNING_MSGS[1], make_apache_message(name_action, ... | def acc_authorize_action(req, name_action, verbose=0, check_only_uid_p=False, **arguments): """Check if user is allowed to perform action with given list of arguments. Return (0, message) if authentication succeeds, (error code, error message) if it fails. The arguments are as follows: req - could be either one of th... | c50ee36de8f38280f7374317cf3953a825754da2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/c50ee36de8f38280f7374317cf3953a825754da2/access_control_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4078,
67,
22488,
67,
1128,
12,
3658,
16,
508,
67,
1128,
16,
3988,
33,
20,
16,
866,
67,
3700,
67,
1911,
67,
84,
33,
8381,
16,
2826,
7099,
4672,
3536,
1564,
309,
729,
353,
2935,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4078,
67,
22488,
67,
1128,
12,
3658,
16,
508,
67,
1128,
16,
3988,
33,
20,
16,
866,
67,
3700,
67,
1911,
67,
84,
33,
8381,
16,
2826,
7099,
4672,
3536,
1564,
309,
729,
353,
2935,
358,
... |
print results, parms | def execute(command, *args): parms = [command] parms.extend(args) execution = subprocess.Popen(parms, stdout=subprocess.PIPE, stderr=subprocess.PIPE) results = {} results['exitCode'] = execution.wait() (results['stdout'], results['stderr']) = execution.communicate() print results, parms return results | 2c08cf4ab3b6aada1aed73d73e75ad5ffb2149c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2223/2c08cf4ab3b6aada1aed73d73e75ad5ffb2149c9/rdw_helpers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
3076,
16,
380,
1968,
4672,
17902,
273,
306,
3076,
65,
17902,
18,
14313,
12,
1968,
13,
4588,
273,
6652,
18,
52,
3190,
12,
29927,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
3076,
16,
380,
1968,
4672,
17902,
273,
306,
3076,
65,
17902,
18,
14313,
12,
1968,
13,
4588,
273,
6652,
18,
52,
3190,
12,
29927,
16,
3909,
33,
1717,
2567,
18,
27602,
16,
4514,... | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | def ValidateOwls(self): """Validate list of neighbour owls | dc9721fcc827192141ecd0f4d2aa286514dce681 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/dc9721fcc827192141ecd0f4d2aa286514dce681/cOwlManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3554,
3494,
3251,
12,
2890,
4672,
3536,
4270,
666,
434,
16497,
2523,
3251,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3554,
3494,
3251,
12,
2890,
4672,
3536,
4270,
666,
434,
16497,
2523,
3251,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
from decimal import Decimal | def test_pop(self): from decimal import Decimal a = self.type2test([-1, 0, 1]) a.pop() self.assertEqual(a, [-1, 0]) a.pop(0) self.assertEqual(a, [0]) self.assertRaises(IndexError, a.pop, 5) a.pop(0) self.assertEqual(a, []) self.assertRaises(IndexError, a.pop) self.assertRaises(TypeError, a.pop, 42, 42) a = self.type2te... | c4772043f48e891acb192a3053d8a49ed5e964d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/c4772043f48e891acb192a3053d8a49ed5e964d4/list_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5120,
12,
2890,
4672,
282,
279,
273,
365,
18,
723,
22,
3813,
3816,
17,
21,
16,
374,
16,
404,
5717,
279,
18,
5120,
1435,
365,
18,
11231,
5812,
12,
69,
16,
23059,
21,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5120,
12,
2890,
4672,
282,
279,
273,
365,
18,
723,
22,
3813,
3816,
17,
21,
16,
374,
16,
404,
5717,
279,
18,
5120,
1435,
365,
18,
11231,
5812,
12,
69,
16,
23059,
21,
16,
3... | |
del dirs_in_sys_path | def addpackage(sitedir, name): fullname = os.path.join(sitedir, name) try: f = open(fullname) except IOError: return while 1: dir = f.readline() if not dir: break if dir[0] == '#': continue if dir.startswith("import"): exec dir continue if dir[-1] == '\n': dir = dir[:-1] dir, dircase = makepath(sitedir, dir) if not dir... | 27451d0fc8924bf2bd9750ff82fff169e3ee2308 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/27451d0fc8924bf2bd9750ff82fff169e3ee2308/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
5610,
12,
87,
16261,
481,
16,
508,
4672,
13321,
273,
1140,
18,
803,
18,
5701,
12,
87,
16261,
481,
16,
508,
13,
775,
30,
284,
273,
1696,
12,
21885,
13,
1335,
8340,
30,
327,
1323,... | |
ib = OWGUI.indentedBox(dendrogramBox, orientation = 0) OWGUI.widgetLabel(ib, "Depth"+ " ") slpd = OWGUI.hSlider(ib, self, "PrintDepth", minValue=1, maxValue=50, callback=self.applySettings) | option = QStyleOptionButton() cblp.initStyleOption(option) checkWidth = cblp.style().subElementRect(QStyle.SE_CheckBoxContents, option, cblp).x() ib = OWGUI.widgetBox(dendrogramBox, margin=0) ib.layout().setContentsMargins(checkWidth, 5, 5, 5) slpd = OWGUI.hSlider(ib, self, "PrintDepth", minValue=1, maxValue=50, la... | def __init__(self, parent=None, signalManager=None): #OWWidget.__init__(self, parent, 'Hierarchical Clustering') OWWidget.__init__(self, parent, signalManager, 'Hierarchical Clustering') self.parent=parent self.callbackDeposit=[] self.inputs=[("Distance matrix", orange.SymMatrix, self.dataset)] self.outputs=[("Selected... | 94b725165088a81ea27b58e2ace96e30782609f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/94b725165088a81ea27b58e2ace96e30782609f4/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
468,
7306,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
296,
44,
14529,
29103,
6134,
18233,
4609,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
468,
7306,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
296,
44,
14529,
29103,
6134,
18233,
4609,
16186,
... |
def __exitfunc(self): | def _exitfunc(self): | def __exitfunc(self): self._Thread__stop() t = _pickSomeNonDaemonThread() if t: if __debug__: self._note("%s: waiting for other threads", self) while t: t.join() t = _pickSomeNonDaemonThread() if __debug__: self._note("%s: exiting", self) self._Thread__delete() | 7b7c9d420817e5ffb5fd3adbc19a9be4ba0f4604 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7b7c9d420817e5ffb5fd3adbc19a9be4ba0f4604/threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8593,
644,
12,
2890,
4672,
365,
6315,
3830,
972,
5681,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
268,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8593,
644,
12,
2890,
4672,
365,
6315,
3830,
972,
5681,
1435,
268,
273,
389,
11503,
17358,
3989,
12858,
3830,
1435,
309,
268,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87... |
sale_taxes_def = map(lambda x: x.id, res.taxes_id) sale_tax_ids = [tax for tax in tax_ids if tax in sale_taxes_def] sale_taxes = tax_obj.browse(cr, uid, sale_tax_ids) sale_taxes_all = sale_taxes and sale_taxes or (a and self.pool.get('account.account').browse(cr, uid, a).tax_ids or False) tax_id = fpos_obj.map_tax(cr, ... | taxes = res.taxes_id and res.taxes_id or (a and self.pool.get('account.account').browse(cr, uid, a, context=context).tax_ids or False) | sale_taxes_def = map(lambda x: x.id, res.taxes_id) | 1d2295bbed2123449dc42500702eb2d64cde05a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1d2295bbed2123449dc42500702eb2d64cde05a9/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
5349,
67,
8066,
281,
67,
536,
273,
852,
12,
14661,
619,
30,
619,
18,
350,
16,
400,
18,
8066,
281,
67,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
5349,
67,
8066,
281,
67,
536,
273,
852,
12,
14661,
619,
30,
619,
18,
350,
16,
400,
18,
8066,
281,
67,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for line in input.split("\n"): | for line in input.splitlines(0): | def CopyWithInsertion(input, commentPrefix, retainDefs, *lists): copying = 1 listid = 0 output = [] for line in input.split("\n"): isStartGenerated = line.startswith(commentPrefix + "++Autogenerated") if copying and not isStartGenerated: output.append(line) if isStartGenerated: if retainDefs: output.append(line) copyin... | 2e64c228af0a6aace1ad3f50ebde97c7fdfa34f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6874/2e64c228af0a6aace1ad3f50ebde97c7fdfa34f3/LexGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
1190,
29739,
12,
2630,
16,
2879,
2244,
16,
15096,
14554,
16,
380,
9772,
4672,
8933,
273,
404,
666,
350,
273,
374,
876,
273,
5378,
364,
980,
316,
810,
18,
4939,
3548,
12,
20,
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,
5631,
1190,
29739,
12,
2630,
16,
2879,
2244,
16,
15096,
14554,
16,
380,
9772,
4672,
8933,
273,
404,
666,
350,
273,
374,
876,
273,
5378,
364,
980,
316,
810,
18,
4939,
3548,
12,
20,
4672... |
print '' print 'ON GPU:' R = MRG_RandomStreams(234, use_cuda=True) u = R.uniform(size=sample_size, dtype='float32') assert u.dtype == 'float32' f = theano.function([], theano.Out( theano.sandbox.cuda.basic_ops.gpu_from_host(u), borrow=True), mode=mode) theano.printing.debugprint(f) print 'random?[:10]\n', numpy.asarray... | if mode!='FAST_COMPILE': print '' print 'ON GPU:' R = MRG_RandomStreams(234, use_cuda=True) u = R.uniform(size=sample_size, dtype='float32') assert u.dtype == 'float32' f = theano.function([], theano.Out( theano.sandbox.cuda.basic_ops.gpu_from_host(u), borrow=True), mode=mode) theano.printing.debugprint(f) print 'rando... | def basictest(f, steps, prefix=""): dt = 0.0 for i in xrange(steps): t0 = time.time() ival = f() dt += time.time() - t0 ival = numpy.asarray(ival) if i == 0: mean = numpy.array(ival, copy=True) else: alpha = 1.0 / (1+i) mean = alpha * ival + (1-alpha)*mean assert ival.min()>0 and ival.max()<1 | adca49c92d412aa2e71c25928f977d9fcee41444 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/adca49c92d412aa2e71c25928f977d9fcee41444/test_rng_mrg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2580,
933,
395,
12,
74,
16,
6075,
16,
1633,
1546,
6,
4672,
3681,
273,
374,
18,
20,
364,
277,
316,
12314,
12,
8986,
4672,
268,
20,
273,
813,
18,
957,
1435,
277,
1125,
273,
284,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2580,
933,
395,
12,
74,
16,
6075,
16,
1633,
1546,
6,
4672,
3681,
273,
374,
18,
20,
364,
277,
316,
12314,
12,
8986,
4672,
268,
20,
273,
813,
18,
957,
1435,
277,
1125,
273,
284,
1435,
... |
result = RPC.getProductionRequestList(parent,sortBy,sortOrder, offset,limit); | result = RPC.getProductionRequestList_v2(parent,sortBy,sortOrder, offset,limit,filterOpts); | def getProductionRequestList(self,parent): try: offset = long(request.params.get('start', 0)) limit = long(request.params.get('limit', 0)) sortBy = str(request.params.get('sort', 'ID')) sortBy = self.serviceFields[self.localFields.index(sortBy)] sortOrder = str(request.params.get('dir', 'ASC')) except Exce... | a13b743e378a696dcffe076cd201c2c77a323148 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12767/a13b743e378a696dcffe076cd201c2c77a323148/ProductionRequest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
2544,
349,
691,
682,
12,
2890,
16,
2938,
4672,
775,
30,
1384,
565,
273,
1525,
12,
2293,
18,
2010,
18,
588,
2668,
1937,
2187,
374,
3719,
1800,
377,
273,
1525,
12,
2293,
18,
2010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
2544,
349,
691,
682,
12,
2890,
16,
2938,
4672,
775,
30,
1384,
565,
273,
1525,
12,
2293,
18,
2010,
18,
588,
2668,
1937,
2187,
374,
3719,
1800,
377,
273,
1525,
12,
2293,
18,
2010,
... |
report_xml = ir_obj.browse(cr, uid, report_xml_ids[0], context=context) if report_xml.attachment: | if report_xml_ids: report_xml = ir_obj.browse(cr, uid, report_xml_ids[0], context=context) attach = report_xml.attachment else: ir_menu_report_obj = pool.get('ir.ui.menu') report_menu_ids = ir_menu_report_obj.search(cr, uid, [('id', 'in', ids)], context=context) title = '' if report_menu_ids: report_name = ir_menu_rep... | def create(self, cr, uid, ids, data, context=None): if not context: context={} pool = pooler.get_pool(cr.dbname) ir_obj = pool.get('ir.actions.report.xml') report_xml_ids = ir_obj.search(cr, uid, [('report_name', '=', self.name[7:])], context=context) report_xml = ir_obj.browse(cr, uid, report_xml_ids[0], context=conte... | b2152a9d3a969ea5711a27eb725f2119d3526bfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/b2152a9d3a969ea5711a27eb725f2119d3526bfe/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
9482,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
9482,
... |
SQL_queryguest = "insert into user (email) values ('')" query_result = run_sql(SQL_queryguest) | query_result = run_sql("insert into user (email) values ('')") | def create_GuestUser(): """Create a guest user , insert into user null values in all fields create_GuestUser() -> GuestUserID """ SQL_queryguest = "insert into user (email) values ('')" query_result = run_sql(SQL_queryguest) return query_result | 89522df1aa794a89017aeb7e5aa2e1881da95d6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/89522df1aa794a89017aeb7e5aa2e1881da95d6e/webuser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
12978,
1299,
13332,
3536,
1684,
279,
13051,
729,
269,
2243,
1368,
729,
446,
924,
316,
777,
1466,
225,
752,
67,
12978,
1299,
1435,
317,
6467,
395,
16631,
3536,
225,
843,
67,
2088... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12978,
1299,
13332,
3536,
1684,
279,
13051,
729,
269,
2243,
1368,
729,
446,
924,
316,
777,
1466,
225,
752,
67,
12978,
1299,
1435,
317,
6467,
395,
16631,
3536,
225,
843,
67,
2088... |
product = Infsign[self._sign ^ other._sign] | product = _Infsign[self._sign ^ other._sign] | def fma(self, other, third, context=None): """Fused multiply-add. | ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
2540,
12,
2890,
16,
1308,
16,
12126,
16,
819,
33,
7036,
4672,
3536,
42,
3668,
10194,
17,
1289,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
2540,
12,
2890,
16,
1308,
16,
12126,
16,
819,
33,
7036,
4672,
3536,
42,
3668,
10194,
17,
1289,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._intgr_reso_high) defpix.set_resolution_high(self._intgr_reso_high) | self.get_integrater_high_resolution()) defpix.set_resolution_high(self.get_integrater_high_resolution()) | def _integrate(self): '''Actually do the integration - in XDS terms this will mean running DEFPIX and INTEGRATE to measure all the reflections.''' | 7e06fb29c53b69937e4461483924556c87c1185c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/7e06fb29c53b69937e4461483924556c87c1185c/XDSIntegrater.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14970,
5141,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
12040,
300,
316,
1139,
3948,
6548,
333,
903,
3722,
3549,
25957,
27381,
471,
2120,
1448,
6997,
1777,
358,
6649,
777,
326,
5463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
14970,
5141,
12,
2890,
4672,
9163,
2459,
3452,
741,
326,
12040,
300,
316,
1139,
3948,
6548,
333,
903,
3722,
3549,
25957,
27381,
471,
2120,
1448,
6997,
1777,
358,
6649,
777,
326,
5463,... |
status.create_and_add_event("discovered-active-proxy", [peer_permid, new_peer_data, buddycast_data]) | status.create_and_add_event("discovered-active-proxy", [show_permid_short(peer_permid), new_peer_data, buddycast_data]) | def handleBuddyCastMessage(self, sender_permid, buddycast_data, selversion): """ Handle received buddycast message Add peers, torrents and preferences into database and update last seen Add fresh peers to candidate list All database updates caused by buddycast msg should be handled here """ _now = now() cache_db_data... | c1eee061f3ec7fef74851eba4dbed76b7d5f9763 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/c1eee061f3ec7fef74851eba4dbed76b7d5f9763/buddycast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
38,
29017,
9735,
1079,
12,
2890,
16,
5793,
67,
12160,
350,
16,
324,
29017,
4155,
67,
892,
16,
357,
1589,
4672,
3536,
5004,
5079,
324,
29017,
4155,
883,
1436,
10082,
16,
17351,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
38,
29017,
9735,
1079,
12,
2890,
16,
5793,
67,
12160,
350,
16,
324,
29017,
4155,
67,
892,
16,
357,
1589,
4672,
3536,
5004,
5079,
324,
29017,
4155,
883,
1436,
10082,
16,
17351,
87,
... |
self.assertRaises((exceptions.IndexError, exceptions.TypeError), pop.alleleName, ModuleMaxAllele+1) | self.assertRaises((exceptions.IndexError, exceptions.TypeError, exceptions.OverflowError), pop.alleleName, ModuleMaxAllele+1) | def testAlleleName(self): 'Testing genoStruTrait::AlleleName(allele), alleleNames()' pop = population(size=[20, 80], ploidy=2, loci=[5, 7]) self.assertEqual(pop.alleleName(0), '0') self.assertEqual(pop.alleleName(1), '1') pop = self.getPop() self.assertEqual(pop.alleleName(0), '_') self.assertEqual(pop.alleleName(1), '... | 9a7433ab3ff6cff81ea4b54bc2140b9128207857 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/9a7433ab3ff6cff81ea4b54bc2140b9128207857/test_00_genoStru.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1595,
6516,
461,
12,
2890,
4672,
296,
22218,
3157,
83,
1585,
89,
15525,
2866,
1595,
6516,
461,
12,
21962,
3631,
14551,
1557,
11866,
1843,
273,
11209,
12,
1467,
22850,
3462,
16,
8958,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1595,
6516,
461,
12,
2890,
4672,
296,
22218,
3157,
83,
1585,
89,
15525,
2866,
1595,
6516,
461,
12,
21962,
3631,
14551,
1557,
11866,
1843,
273,
11209,
12,
1467,
22850,
3462,
16,
8958,... |
return str(hash((pkg.revision.id, c.user, pkg.get_average_rating()))) | return str(hash((pkg.id, pkg.revision.id, c.user, pkg.get_average_rating()))) | def _pkg_cache_key(self, pkg): return str(hash((pkg.revision.id, c.user, pkg.get_average_rating()))) | 2925f8493dae0a647ccf1457d7faefa128068e42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/2925f8493dae0a647ccf1457d7faefa128068e42/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10657,
67,
2493,
67,
856,
12,
2890,
16,
3475,
4672,
282,
327,
609,
12,
2816,
12443,
10657,
18,
350,
16,
3475,
18,
13057,
18,
350,
16,
276,
18,
1355,
16,
3475,
18,
588,
67,
15621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
10657,
67,
2493,
67,
856,
12,
2890,
16,
3475,
4672,
282,
327,
609,
12,
2816,
12443,
10657,
18,
350,
16,
3475,
18,
13057,
18,
350,
16,
276,
18,
1355,
16,
3475,
18,
588,
67,
15621... |
(as defined by next_bond_in_chain, called on a bond and one of its atoms) | (of the kind defined by next_bond_in_chain, called on a bond and one of its atoms) | def grow_bond_chain(bond, atom, next_bond_in_chain): #bruce 070415; generalized from grow_pi_sp_chain """Given a bond and one of its atoms, grow the bond chain containing bond (as defined by next_bond_in_chain, called on a bond and one of its atoms) in the direction of atom, adding newly found bonds and atoms to respec... | d964b3e68c182c35dec802f8c628767cb53060b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/d964b3e68c182c35dec802f8c628767cb53060b1/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
26425,
67,
5639,
12,
26425,
16,
3179,
16,
1024,
67,
26425,
67,
267,
67,
5639,
4672,
468,
2848,
3965,
10934,
3028,
3600,
31,
7470,
1235,
628,
13334,
67,
7259,
67,
1752,
67,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
26425,
67,
5639,
12,
26425,
16,
3179,
16,
1024,
67,
26425,
67,
267,
67,
5639,
4672,
468,
2848,
3965,
10934,
3028,
3600,
31,
7470,
1235,
628,
13334,
67,
7259,
67,
1752,
67,
5... |
self.Main = gtk.VBox(False, 0) self.Main.show() | self.Main4 = gtk.VBox(False, 0) self.Main4.show() | def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.UserBrowseTab = gtk.Window() ... | 363cba988d4bed5afdae4b3f448f4bf00e734531 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/363cba988d4bed5afdae4b3f448f4bf00e734531/nicotine_glade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
... |
def isomorphism_to(self,right,mode=None): | def isomorphism_to(self,right): | def isomorphism_to(self,right,mode=None): """ Return an isomorphism self to right if the groups are isomorphic, otherwise None. | 8f7fe5c4a2db0a764fbf9f274d4aef9acea2a215 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8f7fe5c4a2db0a764fbf9f274d4aef9acea2a215/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
362,
7657,
6228,
67,
869,
12,
2890,
16,
4083,
4672,
3536,
2000,
392,
353,
362,
7657,
6228,
365,
358,
2145,
309,
326,
3252,
854,
353,
362,
18435,
16,
3541,
599,
18,
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,
353,
362,
7657,
6228,
67,
869,
12,
2890,
16,
4083,
4672,
3536,
2000,
392,
353,
362,
7657,
6228,
365,
358,
2145,
309,
326,
3252,
854,
353,
362,
18435,
16,
3541,
599,
18,
2,
-100,
-100,
... |
cr.execute("select datname from pg_database where datdba=(select usesysid from pg_user where usename=%s) and datname not in ('template0', 'template1', 'postgres')", (db_user,)) | cr.execute("select decode(datname, 'escape') from pg_database where datdba=(select usesysid from pg_user where usename=%s) and datname not in ('template0', 'template1', 'postgres')", (db_user,)) | def list(self): db = sql_db.db_connect('template1') try: cr = db.cursor() db_user = tools.config["db_user"] if not db_user and os.name == 'posix': import pwd db_user = pwd.getpwuid(os.getuid())[0] if not db_user: cr.execute("select usename from pg_user where usesysid=(select datdba from pg_database where datname=%s)", ... | 028a994fe916a2a12f6678698a6a2b2ad3c8fed8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/028a994fe916a2a12f6678698a6a2b2ad3c8fed8/web_services.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
4672,
1319,
273,
1847,
67,
1966,
18,
1966,
67,
3612,
2668,
3202,
21,
6134,
775,
30,
4422,
273,
1319,
18,
9216,
1435,
1319,
67,
1355,
273,
8513,
18,
1425,
9614,
1966,
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,
666,
12,
2890,
4672,
1319,
273,
1847,
67,
1966,
18,
1966,
67,
3612,
2668,
3202,
21,
6134,
775,
30,
4422,
273,
1319,
18,
9216,
1435,
1319,
67,
1355,
273,
8513,
18,
1425,
9614,
1966,
67,... |
return bugs_to_json_response(bugs, request.GET.get( | return bugs_to_json_response(data, bugs, request.GET.get( | def fetch_bugs(request): # {{{ # FIXME: Give bugs some date field if request.user.is_authenticated(): suggestion_keys = request.user.get_profile().get_recommended_search_terms() else: suggestion_keys = [] suggestions = [(i, k, False) for i, k in enumerate(suggestion_keys)] query = request.GET.get('language', '') que... | 64118c56c6357e494252f33d7eec22b46d902207 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/64118c56c6357e494252f33d7eec22b46d902207/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
19381,
12,
2293,
4672,
468,
10179,
95,
468,
9852,
30,
22374,
22398,
2690,
1509,
652,
225,
309,
590,
18,
1355,
18,
291,
67,
14454,
13332,
19715,
67,
2452,
273,
590,
18,
1355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
67,
19381,
12,
2293,
4672,
468,
10179,
95,
468,
9852,
30,
22374,
22398,
2690,
1509,
652,
225,
309,
590,
18,
1355,
18,
291,
67,
14454,
13332,
19715,
67,
2452,
273,
590,
18,
1355,
... |
d_model, d_path = dselect.get_selected_rows() | d_model, d_path = dselect.get_selected_rows() | def refresh_note(self): #We build the notes pane dselect = self.note_tview.get_selection() d_path = None if dselect: d_model, d_path = dselect.get_selected_rows() #pylint: disable-msg=W0612 #We empty the pane self.note_ts.clear() #We rebuild it tag_list, notag_only = self.get_selected_tags() notes = self.req.get_notes_... | 451ea29e3924785bc6c6b8648aa6459b292a0db4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/451ea29e3924785bc6c6b8648aa6459b292a0db4/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
7652,
12,
2890,
4672,
468,
3218,
1361,
326,
10913,
13618,
302,
4025,
273,
365,
18,
7652,
67,
88,
1945,
18,
588,
67,
10705,
1435,
302,
67,
803,
273,
599,
309,
302,
4025,
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,
4460,
67,
7652,
12,
2890,
4672,
468,
3218,
1361,
326,
10913,
13618,
302,
4025,
273,
365,
18,
7652,
67,
88,
1945,
18,
588,
67,
10705,
1435,
302,
67,
803,
273,
599,
309,
302,
4025,
30,
... |
if self._Owner == -1: self._Owner = self._LastItem | def Start(self): try: if self._Content == None: self._Content = open(self.MetaFile, 'r').readlines() except: EdkLogger.error("Parser", FILE_READ_FAILURE, ExtraData=self.MetaFile) | 14590f6db67f4b621513cdea52165d0b513568c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/14590f6db67f4b621513cdea52165d0b513568c4/MetaFileParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
2890,
4672,
775,
30,
309,
365,
6315,
1350,
422,
599,
30,
365,
6315,
1350,
273,
1696,
12,
2890,
18,
2781,
812,
16,
296,
86,
16063,
896,
3548,
1435,
1335,
30,
512,
2883,
3328,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3603,
12,
2890,
4672,
775,
30,
309,
365,
6315,
1350,
422,
599,
30,
365,
6315,
1350,
273,
1696,
12,
2890,
18,
2781,
812,
16,
296,
86,
16063,
896,
3548,
1435,
1335,
30,
512,
2883,
3328,
... | |
for myrecord in original: myrecord.save(using='default') try: mysist =myrecord.sitracker if mysist.number_units_start != myrecord.NUMBER_OF_UNITS: try: change = myrecord.NUMBER_OF_UNITS - mysist.number_units_start mysist.number_units_left = mysist.number_units_left + change mysist.save(using='default') except: pass... | for myrecord in original: myrecord.save(using='default') try: mysist =myrecord.sitracker if mysist.number_units_start != myrecord.NUMBER_OF_UNITS: try: change = myrecord.NUMBER_OF_UNITS - mysist.number_units_start mysist.number_units_left = mysist.number_units_left + change mysist.save(using='default') except: pass... | def import_ltis(request): #Copy Persons originalPerson = EpicPerson.objects.using('compas').filter(org_unit_code='JERX001') for myrecord in originalPerson: myrecord.save(using='default') #copy LTIs original = ltioriginal.objects.using('compas').filter(REQUESTED_DISPATCH_DATE__gt='2010-06-01') for myrecord in original:... | 3221cdf289d9780b17ca471374f99593b06f4927 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/3221cdf289d9780b17ca471374f99593b06f4927/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
5618,
291,
12,
2293,
4672,
468,
2951,
11573,
87,
2282,
8346,
273,
512,
20003,
8346,
18,
6911,
18,
9940,
2668,
2919,
345,
16063,
2188,
12,
3341,
67,
4873,
67,
710,
2218,
46,
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,
1930,
67,
5618,
291,
12,
2293,
4672,
468,
2951,
11573,
87,
2282,
8346,
273,
512,
20003,
8346,
18,
6911,
18,
9940,
2668,
2919,
345,
16063,
2188,
12,
3341,
67,
4873,
67,
710,
2218,
46,
6... |
else | else: | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 669) else quickfix.DoubleField.__init__(self, 669, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
8148,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
1666,
8148,
13,
469,
30,
9549,
904,
18,
5265,
974,
16186,
27... |
self.failUnlessEqual(strtok(b, "\n"), "a") self.failUnlessEqual(strtok(None, "\n"), "b") self.failUnlessEqual(strtok(None, "\n"), "c") self.failUnlessEqual(strtok(None, "\n"), None) | self.failUnlessEqual(strtok(b, b"\n"), "a") self.failUnlessEqual(strtok(None, b"\n"), "b") self.failUnlessEqual(strtok(None, b"\n"), "c") self.failUnlessEqual(strtok(None, b"\n"), None) | def c_string(init): size = len(init) + 1 return (c_char*size)(*init) | f4f771fe0fd872c5d8ec752a40587e49f4192ff8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f4f771fe0fd872c5d8ec752a40587e49f4192ff8/test_funcptr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
1080,
12,
2738,
4672,
963,
273,
562,
12,
2738,
13,
397,
404,
327,
261,
71,
67,
3001,
14,
1467,
21433,
14,
2738,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
1080,
12,
2738,
4672,
963,
273,
562,
12,
2738,
13,
397,
404,
327,
261,
71,
67,
3001,
14,
1467,
21433,
14,
2738,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def launchProcess(self, cmd, outputFile = "process.txt", cwd = ''): | def launchProcess(self, cmd, outputFile = "process.txt", cwd = '', env = ''): | def launchProcess(self, cmd, outputFile = "process.txt", cwd = ''): cmdline = subprocess.list2cmdline(cmd) if (outputFile == "process.txt" or outputFile == None): outputFile = self.getDeviceRoot() + '/' + "process.txt" cmdline += " > " + outputFile | 6d855d666bf8a81ed9b14d5d4659023ea46c184a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/6d855d666bf8a81ed9b14d5d4659023ea46c184a/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
2227,
12,
2890,
16,
1797,
16,
15047,
273,
315,
2567,
18,
5830,
3113,
7239,
273,
10226,
1550,
273,
875,
4672,
22877,
273,
6652,
18,
1098,
22,
4172,
1369,
12,
4172,
13,
309,
261,
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,
8037,
2227,
12,
2890,
16,
1797,
16,
15047,
273,
315,
2567,
18,
5830,
3113,
7239,
273,
10226,
1550,
273,
875,
4672,
22877,
273,
6652,
18,
1098,
22,
4172,
1369,
12,
4172,
13,
309,
261,
2... |
try: me.conn = me.database.connection() me.cur = me.conn.cursor() except Exception, x: print "Exception at line 107",type(x),x socorro.lib.util.reportExceptionAndAbort(me.fileLogger) | me.conn = me.database.connection() me.cur = me.conn.cursor() | def setup_module(): global me if me: return me = Me() me.config = configurationManager.newConfiguration(configurationModule = testConfig, applicationName='Testing bugzilla') tutil.nosePrintModule(__file__) myDir = os.path.split(__file__)[0] if not myDir: myDir = '.' replDict = {'testDir':'%s'%myDir} for i in me.config:... | 2001b67b7bf5a4d3744ede55d765e4552ba04d6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/2001b67b7bf5a4d3744ede55d765e4552ba04d6d/testBugzilla.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
13332,
2552,
1791,
309,
1791,
30,
327,
1791,
273,
7499,
1435,
1791,
18,
1425,
273,
1664,
1318,
18,
2704,
1750,
12,
7025,
3120,
273,
1842,
809,
16,
21080,
2218,
22218,
793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
2978,
13332,
2552,
1791,
309,
1791,
30,
327,
1791,
273,
7499,
1435,
1791,
18,
1425,
273,
1664,
1318,
18,
2704,
1750,
12,
7025,
3120,
273,
1842,
809,
16,
21080,
2218,
22218,
793... |
""" Generic method to get attributes """ return self.parameters[self.item_called] | """ Generic method to get attributes """ return self.parameters[self.item_called] | def __get_parameter(self): """ Generic method to get attributes """ return self.parameters[self.item_called] | 8a26e2f2aacdff375cdbd8bc6daa5ac9171650b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/8a26e2f2aacdff375cdbd8bc6daa5ac9171650b3/RequestBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
6775,
12,
2890,
4672,
3536,
7928,
707,
358,
336,
1677,
3536,
327,
365,
18,
3977,
63,
2890,
18,
1726,
67,
11777,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
6775,
12,
2890,
4672,
3536,
7928,
707,
358,
336,
1677,
3536,
327,
365,
18,
3977,
63,
2890,
18,
1726,
67,
11777,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return stp, f, g | return stp | def step(self, stp, f, g, c1, c2, xtol, isave, dsave): if self.task[:5] == 'START': | 8951d1c402f77cba079d6d7c95cb54c0cd19b294 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/8951d1c402f77cba079d6d7c95cb54c0cd19b294/linesearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
384,
84,
16,
284,
16,
314,
16,
276,
21,
16,
276,
22,
16,
619,
3490,
16,
353,
836,
16,
3780,
836,
4672,
309,
365,
18,
4146,
10531,
25,
65,
422,
296,
7570,
4278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2235,
12,
2890,
16,
384,
84,
16,
284,
16,
314,
16,
276,
21,
16,
276,
22,
16,
619,
3490,
16,
353,
836,
16,
3780,
836,
4672,
309,
365,
18,
4146,
10531,
25,
65,
422,
296,
7570,
4278,
... |
class CompressObjectTestCase(unittest.TestCase): | @precisionbigmemtest(size=_1G + 1024 * 1024, memuse=3) def test_big_compress_buffer(self, size): compress = lambda s: zlib.compress(s, 1) self.check_big_compress_buffer(size, compress) @precisionbigmemtest(size=_1G + 1024 * 1024, memuse=2) def test_big_decompress_buffer(self, size): self.check_big_decompress_buffer(... | def test_speech128(self): # compress more data data = HAMLET_SCENE * 128 x = zlib.compress(data) self.assertEqual(zlib.decompress(x), data) | 4363fcea0f3f92325acadaeff4a47b646944df16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/4363fcea0f3f92325acadaeff4a47b646944df16/test_zlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
87,
12510,
10392,
12,
2890,
4672,
468,
8099,
1898,
501,
501,
273,
670,
2192,
15146,
67,
2312,
1157,
41,
380,
8038,
619,
273,
24220,
18,
14706,
12,
892,
13,
365,
18,
11231,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
87,
12510,
10392,
12,
2890,
4672,
468,
8099,
1898,
501,
501,
273,
670,
2192,
15146,
67,
2312,
1157,
41,
380,
8038,
619,
273,
24220,
18,
14706,
12,
892,
13,
365,
18,
11231,
58... |
finfo = macfs.FSSpec(name).GetFInfo() | finfo = FSSpec(name).FSpGetFInfo() | def getfileinfo(name): finfo = macfs.FSSpec(name).GetFInfo() dir, file = os.path.split(name) # XXXX Get resource/data sizes fp = open(name, 'rb') fp.seek(0, 2) dlen = fp.tell() fp = openrf(name, '*rb') fp.seek(0, 2) rlen = fp.tell() return file, finfo, dlen, rlen | 3cc48ceed9d84dd8ea049cba45c2d8356ee7f2e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3cc48ceed9d84dd8ea049cba45c2d8356ee7f2e5/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
1376,
12,
529,
4672,
15190,
273,
478,
1260,
705,
12,
529,
2934,
42,
3389,
967,
42,
966,
1435,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
529,
13,
468,
11329,
60,
968,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
1376,
12,
529,
4672,
15190,
273,
478,
1260,
705,
12,
529,
2934,
42,
3389,
967,
42,
966,
1435,
1577,
16,
585,
273,
1140,
18,
803,
18,
4939,
12,
529,
13,
468,
11329,
60,
968,... |
def _invoice_line_hook(self, cursor, user, move_line, invoice_line_id): | def _invoice_line_hook(self, cr, uid, move_line, invoice_line_id): | def _invoice_line_hook(self, cursor, user, move_line, invoice_line_id): '''Call after the creation of the invoice line''' return | 18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
16119,
67,
1369,
67,
4476,
12,
2890,
16,
4422,
16,
4555,
16,
3635,
67,
1369,
16,
9179,
67,
1369,
67,
350,
4672,
9163,
1477,
1839,
326,
6710,
434,
326,
9179,
980,
26418,
327,
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,
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,
16119,
67,
1369,
67,
4476,
12,
2890,
16,
4422,
16,
4555,
16,
3635,
67,
1369,
16,
9179,
67,
1369,
67,
350,
4672,
9163,
1477,
1839,
326,
6710,
434,
326,
9179,
980,
26418,
327,
2,
... |
def reportBacklinks(self, new): """Report missing back links. This will be called from finish() if needed.""" | def reportBacklinks(self, new, updatedSites): """ Report missing back links. This will be called from finish() if needed. updatedSites is a list that contains all sites we changed, to avoid reporting of missing backlinks for pages we already fixed """ | def reportBacklinks(self, new): """Report missing back links. This will be called from finish() if needed.""" try: for site, page in new.iteritems(): if not page.section(): shouldlink = new.values() + [self.inpl] linked = page.interwiki() for xpage in shouldlink: if xpage != page and not xpage in linked: for l in linke... | 4f8b8b98bc802c4749b1760c594b664f69d507e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4f8b8b98bc802c4749b1760c594b664f69d507e1/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
2711,
7135,
12,
2890,
16,
394,
16,
3526,
17055,
4672,
3536,
8706,
3315,
1473,
4716,
18,
1220,
903,
506,
2566,
628,
4076,
1435,
309,
3577,
18,
225,
3526,
17055,
353,
279,
666,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
2711,
7135,
12,
2890,
16,
394,
16,
3526,
17055,
4672,
3536,
8706,
3315,
1473,
4716,
18,
1220,
903,
506,
2566,
628,
4076,
1435,
309,
3577,
18,
225,
3526,
17055,
353,
279,
666,
716,
... |
self.__lc = self.base_ring()(self._singular_().leadcoef().sage_poly(self.parent())) | c = self._singular_().leadcoef().sage_poly(self.parent()) self.__lc = self.base_ring()(c.constant_coefficient()) | def lc(self): """ Returns the leading (or initial) coefficient of a polynomial with respect to the monomial ordering. | aa14874c4e6de8875a206b1b443011a4ce8ce00e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/aa14874c4e6de8875a206b1b443011a4ce8ce00e/polynomial_singular_interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9109,
12,
2890,
4672,
3536,
2860,
326,
7676,
261,
280,
2172,
13,
16554,
434,
279,
16991,
598,
8762,
358,
326,
312,
4708,
649,
9543,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9109,
12,
2890,
4672,
3536,
2860,
326,
7676,
261,
280,
2172,
13,
16554,
434,
279,
16991,
598,
8762,
358,
326,
312,
4708,
649,
9543,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
import gc; gc.collect() | test_support.gc_collect() | def __get__(self, ob, type=None): return 1 | e95ce49aa005020c50b0d820a37ca320fb92be85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/e95ce49aa005020c50b0d820a37ca320fb92be85/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
972,
12,
2890,
16,
3768,
16,
618,
33,
7036,
4672,
327,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1001,
588,
972,
12,
2890,
16,
3768,
16,
618,
33,
7036,
4672,
327,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.assertEqual(p.stdout.read(), "appleorange") | output = p.stdout.read() stripped = remove_stderr_debug_decorations(output) self.assertEqual(stripped, "appleorange") | def test_stdout_stderr_pipe(self): # capture stdout and stderr to the same pipe p = subprocess.Popen([sys.executable, "-c", 'import sys;' \ 'sys.stdout.write("apple");' \ 'sys.stdout.flush();' \ 'sys.stderr.write("orange")'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) self.assertEqual(p.stdout.read(), "appleoran... | 7ebb9fcf9e437f932409de74d92a511fbe5eeb6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7ebb9fcf9e437f932409de74d92a511fbe5eeb6c/test_subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10283,
67,
11241,
67,
14772,
12,
2890,
4672,
468,
7477,
3909,
471,
4514,
358,
326,
1967,
6010,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
296,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
10283,
67,
11241,
67,
14772,
12,
2890,
4672,
468,
7477,
3909,
471,
4514,
358,
326,
1967,
6010,
293,
273,
6652,
18,
52,
3190,
3816,
9499,
18,
17751,
16,
3701,
71,
3113,
296,
5... |
class MonthLoadSearchForm(CdrSearchForm): | class CdrSearchForm(forms.Form): from_date = CharField(label=_('From'), required=True, max_length=10, help_text="Please use the following format: <em>YYYY-MM-DD</em>.") to_date = CharField(label=_('To'), required=True, max_length=10, help_text="Please use the following format: <em>YYYY-MM-DD</em>.") result = forms.Ty... | from cdr.functions_def import * | a2bd5fa2e4fedb0281b051820c7a4a2d9420685c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/143/a2bd5fa2e4fedb0281b051820c7a4a2d9420685c/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
628,
276,
3069,
18,
10722,
67,
536,
1930,
380,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
628,
276,
3069,
18,
10722,
67,
536,
1930,
380,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bodyDataCallback, method, start, etag, modified, cookies, postVariables, postFiles) | bodyDataCallback, method, start, etag, modified, cookies, postVariables, postFiles) | def grabURL(url, callback, errback, headerCallback=None, bodyDataCallback=None, method="GET", start=0, etag=None, modified=None, cookies=None, postVariables=None, postFiles=None, defaultMimeType='application/octet-stream', clientClass=HTTPClient): if url is None: errback(MalformedURL(url)) if cookies == None: cookies =... | 5948a50722f3bb7d658dd9a1af550df189171d8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/5948a50722f3bb7d658dd9a1af550df189171d8b/httpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
1785,
12,
718,
16,
1348,
16,
29642,
16,
1446,
2428,
33,
7036,
16,
1417,
751,
2428,
33,
7036,
16,
707,
1546,
3264,
3113,
787,
33,
20,
16,
13655,
33,
7036,
16,
4358,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11086,
1785,
12,
718,
16,
1348,
16,
29642,
16,
1446,
2428,
33,
7036,
16,
1417,
751,
2428,
33,
7036,
16,
707,
1546,
3264,
3113,
787,
33,
20,
16,
13655,
33,
7036,
16,
4358,
33,
7036,
1... |
char.log(LOG_TRACE, 'Gainchance for skill %s is %f.\n' % (SKILLNAMES[skill], gainchance)) | def onSkillGain(char, skill, lower, higher, success): # See if we can gain at all # GMs don't gain skills if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[s... | db1ece49393a3a456480e3670ee92eec2ac8cb72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/db1ece49393a3a456480e3670ee92eec2ac8cb72/skillgain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
9030,
43,
530,
12,
3001,
16,
15667,
16,
2612,
16,
10478,
16,
2216,
4672,
468,
2164,
309,
732,
848,
17527,
622,
777,
468,
611,
6947,
2727,
1404,
17527,
15667,
87,
309,
1149,
18,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
9030,
43,
530,
12,
3001,
16,
15667,
16,
2612,
16,
10478,
16,
2216,
4672,
468,
2164,
309,
732,
848,
17527,
622,
777,
468,
611,
6947,
2727,
1404,
17527,
15667,
87,
309,
1149,
18,
22... | |
self.workspace_manager = VideoWorkspaceManager(self.space, self.source_list) self.workspace_manager.frames_updated.connect(self.handle_update_frames) | self.audio_workspace_manager = AudioWorkspaceManager(self.space, self.source_list) self.audio_player = process.AlsaPlayer(48000, 2, self.audio_workspace_manager.workspace) self.video_workspace_manager = VideoWorkspaceManager(self.space, self.source_list) self.video_workspace_manager.frames_updated.connect(self.handle_... | def __init__(self): QMainWindow.__init__(self) | ea74bd847f9b751190863f77ac5ce7509fa388e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10170/ea74bd847f9b751190863f77ac5ce7509fa388e0/qttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""translate(s,table [,deletechars]) -> string | """translate(s,table [,deletions]) -> string | def translate(s, table, deletions=""): """translate(s,table [,deletechars]) -> string Return a copy of the string s, where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table, which must be a string of length 256. ... | f25f785d3d0b9de2aaf9376a19aa595e1d9cabb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f25f785d3d0b9de2aaf9376a19aa595e1d9cabb3/string.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
87,
16,
1014,
16,
26334,
1546,
6,
4672,
3536,
13929,
12,
87,
16,
2121,
306,
16,
19003,
1115,
5717,
317,
533,
225,
2000,
279,
1610,
434,
326,
533,
272,
16,
1625,
777,
3949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
87,
16,
1014,
16,
26334,
1546,
6,
4672,
3536,
13929,
12,
87,
16,
2121,
306,
16,
19003,
1115,
5717,
317,
533,
225,
2000,
279,
1610,
434,
326,
533,
272,
16,
1625,
777,
3949,
... |
help='Display program version') | help=_('Display program version')) | def parse_options(): """Parse the command line options""" usage = "usage: %prog [options]" configobj = config.Config() parser = OptionParser(usage) parser.add_option('-v', '--version', action='store_true', dest='version', help='Display program version') parser.add_option('-m', '--maximise', action='store_true', dest=... | 91c0081af44862e827277b9d65000d169e222160 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/91c0081af44862e827277b9d65000d169e222160/optionparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... |
tags = Tag.objects.all() | tags = Tag.objects.filter( group__id__in = group_ids ) | def get_tags_for_categories(categories): from django.contrib.contenttypes.models import ContentType from sphene.community.models import Tag, TagLabel, TaggedItem from django.db import connection group_ids = list() category_ids = list() for category in categories: group = category.group if not group.id in group_ids: gr... | 261423e5e44b246140d07eeb155ece4a2e379ad6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11563/261423e5e44b246140d07eeb155ece4a2e379ad6/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4156,
67,
1884,
67,
8995,
12,
8995,
4672,
628,
13710,
18,
26930,
18,
1745,
2352,
18,
7665,
1930,
11691,
628,
272,
844,
4009,
18,
20859,
18,
7665,
1930,
4034,
16,
4034,
2224,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4156,
67,
1884,
67,
8995,
12,
8995,
4672,
628,
13710,
18,
26930,
18,
1745,
2352,
18,
7665,
1930,
11691,
628,
272,
844,
4009,
18,
20859,
18,
7665,
1930,
4034,
16,
4034,
2224,
1... |
self.changexaxis( self["entry1"] ) | self.changexaxis( self["entry1"] ) | def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)... | e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
365,
262,
30,
309,
365,
18,
3175,
738,
1728,
422,
1381,
30,
326,
1119,
682,
273,
365,
18,
542,
1119,
682,
1435,
365,
18,
2725,
3328,
24274,
1435,
225,
309,
365,
18,
3328,
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,
1089,
12,
365,
262,
30,
309,
365,
18,
3175,
738,
1728,
422,
1381,
30,
326,
1119,
682,
273,
365,
18,
542,
1119,
682,
1435,
365,
18,
2725,
3328,
24274,
1435,
225,
309,
365,
18,
3328,
2... |
if self.expanded and len(self.currentdata)>0: | if self.expander.get_expanded() and len(self.currentdata)>0: | def keep_song_visible_in_list(self): if self.expanded and len(self.currentdata)>0: try: row = self.songinfo.pos visible_rect = self.current.get_visible_rect() row_rect = self.current.get_background_area(row, self.currentcolumn) if row_rect.y + row_rect.height > visible_rect.height: top_coord = (row_rect.y + row_rect.he... | 52c79ca8b28459acec3607fb5ef450237f108f18 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/52c79ca8b28459acec3607fb5ef450237f108f18/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3455,
67,
816,
75,
67,
8613,
67,
267,
67,
1098,
12,
2890,
4672,
309,
365,
18,
12320,
264,
18,
588,
67,
17336,
1435,
471,
562,
12,
2890,
18,
2972,
892,
13,
34,
20,
30,
775,
30,
1027... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3455,
67,
816,
75,
67,
8613,
67,
267,
67,
1098,
12,
2890,
4672,
309,
365,
18,
12320,
264,
18,
588,
67,
17336,
1435,
471,
562,
12,
2890,
18,
2972,
892,
13,
34,
20,
30,
775,
30,
1027... |
o.form['values']=Value.objects.filter(vocab=o.vocab) | o.form['values']=[str(i) for i in Value.objects.filter(vocab=o.vocab)] o.form['values'].insert(0,'------') | def __init__(self,component,prefix=''): self.prefix=prefix self.component=component # filter chaining, see # http://docs.djangoproject.com/en/dev/topics/db/queries/#chaining-filters self.params=Param.objects.filter(component=component) self.orp=self.params.filter(ptype='OR') self.xorp=self.params.filter(ptype='XOR') ... | 6ccff1fdc539eeda7892ada8c41ef93d55b2a80e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7019/6ccff1fdc539eeda7892ada8c41ef93d55b2a80e/utilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4652,
16,
3239,
2218,
11,
4672,
225,
365,
18,
3239,
33,
3239,
365,
18,
4652,
33,
4652,
225,
468,
1034,
23381,
16,
2621,
468,
1062,
2207,
8532,
18,
31646,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4652,
16,
3239,
2218,
11,
4672,
225,
365,
18,
3239,
33,
3239,
365,
18,
4652,
33,
4652,
225,
468,
1034,
23381,
16,
2621,
468,
1062,
2207,
8532,
18,
31646,... |
k = len(G.rows()) | def decode(self, right): r""" Wraps GUAVA's Decodeword. Hamming codes have a special decoding algorithm. Otherwise, syndrome decoding is used. | 0ba98abb880903a64744b106daee6f5e9f0c2143 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0ba98abb880903a64744b106daee6f5e9f0c2143/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2890,
16,
2145,
4672,
436,
8395,
678,
7506,
611,
57,
15705,
1807,
6209,
1095,
18,
670,
301,
11987,
6198,
1240,
279,
4582,
13547,
4886,
18,
5272,
16,
6194,
72,
10896,
13547,
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,
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,
2495,
12,
2890,
16,
2145,
4672,
436,
8395,
678,
7506,
611,
57,
15705,
1807,
6209,
1095,
18,
670,
301,
11987,
6198,
1240,
279,
4582,
13547,
4886,
18,
5272,
16,
6194,
72,
10896,
13547,
353... | |
result = self._query(req) if not result['OK']: return result | result = self._query( req ) if not result['OK']: return result | def getMetadataSet(self,metaSetName,expandFlag,credDict): """ Get fully expanded contents of the metadata set """ result = self.getMetadataFields(credDict) if not result['OK']: return result metaTypeDict = result['Value'] req = "SELECT S.MetaKey,S.MetaValue FROM FC_MetaSets as S, FC_MetaSetNames as N WHERE N.MetaSetNa... | 127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11159,
694,
12,
2890,
16,
3901,
11924,
16,
12320,
4678,
16,
20610,
5014,
4672,
3536,
968,
7418,
8406,
2939,
434,
326,
1982,
444,
3536,
563,
273,
365,
18,
588,
2277,
2314,
12,
20610,
5014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11159,
694,
12,
2890,
16,
3901,
11924,
16,
12320,
4678,
16,
20610,
5014,
4672,
3536,
968,
7418,
8406,
2939,
434,
326,
1982,
444,
3536,
563,
273,
365,
18,
588,
2277,
2314,
12,
20610,
5014... |
``"backtrack"``. Two remarks on this respect : | ``"backtrack"``. Two remarks on this respect: | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
if current_element is None: parent = SubElement(parent, 'text:p', attrib={ 'text:style-name': self.rststyle(style_name), }) | def create_custom_headfoot(self, parent, text, style_name, automatic_styles): current_element = None field_iter = self.split_field_specifiers_iter(text) for item in field_iter: if item[0] == ODFTranslator.code_field: if item[1] not in ('p', 'P', 't1', 't2', 't3', 't4', 'd1', 'd2', 'd3', 'd4', 'd5', 's', 't', 'a'): msg ... | 65e38cb75f03b5b9e5507e9de8f0dc743a69a7c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/65e38cb75f03b5b9e5507e9de8f0dc743a69a7c3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3662,
67,
1978,
10923,
12,
2890,
16,
982,
16,
977,
16,
2154,
67,
529,
16,
5859,
67,
10218,
4672,
783,
67,
2956,
273,
599,
652,
67,
2165,
273,
365,
18,
4939,
67,
1518,
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,
752,
67,
3662,
67,
1978,
10923,
12,
2890,
16,
982,
16,
977,
16,
2154,
67,
529,
16,
5859,
67,
10218,
4672,
783,
67,
2956,
273,
599,
652,
67,
2165,
273,
365,
18,
4939,
67,
1518,
67,
... | |
vomsGroups = CS.getVOMSAttributeForGroup( userGroup ) if not vomsGroups: return S_ERROR( "No voms attributes assigned to group %s" % userGroup ) if len( vomsGroups ) > 1: return S_ERROR( "More than one voms attribute defined for group %s: %s" % ( userGroup, vomsGroups ) ) vomsAttr = vomsGroups[0] | vomsAttr = CS.getVOMSAttributeForGroup( userGroup ) if not vomsAttr: return S_ERROR( "No voms attribute assigned to group %s" % userGroup ) | def getPilotProxyFromDIRACGroup( self, userDN, userGroup, requiredTimeLeft = 43200, proxyToConnect = False ): """ Download a pilot proxy with VOMS extensions depending on the group """ #Assign VOMS attribute vomsGroups = CS.getVOMSAttributeForGroup( userGroup ) if not vomsGroups: return S_ERROR( "No voms attributes ass... | db31dab0d01403c29019cd0f30c642a4ee4ba938 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/db31dab0d01403c29019cd0f30c642a4ee4ba938/ProxyManagerClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
3886,
1265,
4537,
2226,
1114,
12,
365,
16,
729,
8609,
16,
26205,
16,
1931,
950,
3910,
273,
1059,
1578,
713,
16,
2889,
774,
5215,
273,
1083,
262,
30,
3536,
13059,
279,
293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1689,
22797,
3886,
1265,
4537,
2226,
1114,
12,
365,
16,
729,
8609,
16,
26205,
16,
1931,
950,
3910,
273,
1059,
1578,
713,
16,
2889,
774,
5215,
273,
1083,
262,
30,
3536,
13059,
279,
293,
... |
parser = etree.HTMLParser() | def main(): """Called from console script """ op = _createOptionParser(usage=usage) op.add_option("-x", "--xsl", metavar="transform.xsl", help="XSL transform", dest="xsl", default=None) (options, args) = op.parse_args() if len(args) > 2: op.error("Wrong number of arguments.") elif len(args) == 2: if options.xsl or opt... | 428f2701a3a76552025159eb96728eab428c138f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12188/428f2701a3a76552025159eb96728eab428c138f/run.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
8185,
628,
2983,
2728,
3536,
1061,
273,
389,
2640,
1895,
2678,
12,
9167,
33,
9167,
13,
1061,
18,
1289,
67,
3482,
2932,
17,
92,
3113,
5238,
30903,
3113,
15050,
1546,
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,
2774,
13332,
3536,
8185,
628,
2983,
2728,
3536,
1061,
273,
389,
2640,
1895,
2678,
12,
9167,
33,
9167,
13,
1061,
18,
1289,
67,
3482,
2932,
17,
92,
3113,
5238,
30903,
3113,
15050,
1546,
65... | |
for i in range(3): | for i in frange(3): | def update_from_atoms(self, at): # Add lattice to cell self['LATTICE_CART'] = [] for i in range(3): self['LATTICE_CART'].append('%f %f %f' % tuple(at.lattice[:,i])) | 39dd3544f0f8fd6f2cc4ecc741e1de15fbb88db0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/39dd3544f0f8fd6f2cc4ecc741e1de15fbb88db0/castep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
14937,
12,
2890,
16,
622,
4672,
225,
468,
1436,
16690,
358,
2484,
365,
3292,
12190,
56,
11774,
67,
39,
4928,
3546,
273,
5378,
364,
277,
316,
284,
3676,
12,
23,
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,
1089,
67,
2080,
67,
14937,
12,
2890,
16,
622,
4672,
225,
468,
1436,
16690,
358,
2484,
365,
3292,
12190,
56,
11774,
67,
39,
4928,
3546,
273,
5378,
364,
277,
316,
284,
3676,
12,
23,
4672... |
if im.format in _tif_names: datatype=np.uint16 elif im.format in _gif_names: datatype=np.uint8 | datatype = GetDatatype(im) | def LoadMonolithic(filename=None): #f='C:/Documents and Settings/Owner/Desktop/Stack_Zproject_GBR_DC.gif' if filename==None: filename=wx.FileSelector() im=Image.open(filename) if im.format in _tif_names: datatype=np.uint16 elif im.format in _gif_names: datatype=np.uint8 l=[] numFrames=0 while 1: l.append(np.asarray(... | 22ad5ff7285312db6c9670b2b41de790312eefa6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10587/22ad5ff7285312db6c9670b2b41de790312eefa6/GifTiffLoader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
11415,
355,
483,
335,
12,
3459,
33,
7036,
4672,
468,
74,
2218,
39,
27824,
12922,
471,
8709,
19,
5541,
19,
27583,
19,
2624,
67,
62,
4406,
67,
5887,
54,
67,
5528,
18,
13905,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
11415,
355,
483,
335,
12,
3459,
33,
7036,
4672,
468,
74,
2218,
39,
27824,
12922,
471,
8709,
19,
5541,
19,
27583,
19,
2624,
67,
62,
4406,
67,
5887,
54,
67,
5528,
18,
13905,
11,
... |
proc = rabbitvcs.util.helper.launch_ui_window("create", self.paths) | proc = rabbitvcs.util.helper.launch_ui_window("create", ["--vcs", "svn", self.paths[0]]) | def create_repository(self, widget, data1=None, data2=None): proc = rabbitvcs.util.helper.launch_ui_window("create", self.paths) self.caller.execute_after_process_exit(proc) | 8ac7c3b4a084975efddb8b01575c03aeedd60653 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/8ac7c3b4a084975efddb8b01575c03aeedd60653/contextmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
9071,
12,
2890,
16,
3604,
16,
501,
21,
33,
7036,
16,
501,
22,
33,
7036,
4672,
5418,
273,
767,
70,
3682,
18982,
18,
1367,
18,
4759,
18,
20738,
67,
4881,
67,
5668,
2932,
2640,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9071,
12,
2890,
16,
3604,
16,
501,
21,
33,
7036,
16,
501,
22,
33,
7036,
4672,
5418,
273,
767,
70,
3682,
18982,
18,
1367,
18,
4759,
18,
20738,
67,
4881,
67,
5668,
2932,
2640,... |
self.assert_(not icon.props.use_default_fallbacks) | self.assert_(not have_use_default_fallbacks or not icon.props.use_default_fallbacks) | def test_constructor(self): icon = gio.ThemedIcon('foo') self.assertEquals(['foo'], icon.props.names) self.assert_(not icon.props.use_default_fallbacks) | 6ec9a71b8ae621203fa546b60867f1198bf723bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8659/6ec9a71b8ae621203fa546b60867f1198bf723bc/test_gicon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12316,
12,
2890,
4672,
4126,
273,
314,
1594,
18,
1315,
351,
329,
5554,
2668,
11351,
6134,
365,
18,
11231,
8867,
12,
3292,
11351,
17337,
4126,
18,
9693,
18,
1973,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12316,
12,
2890,
4672,
4126,
273,
314,
1594,
18,
1315,
351,
329,
5554,
2668,
11351,
6134,
365,
18,
11231,
8867,
12,
3292,
11351,
17337,
4126,
18,
9693,
18,
1973,
13,
365,
18,
... |
OWGUI.checkBox(box, self, 'ShowLegend', 'Show legend', callback=self.drawDistanceMap) OWGUI.checkBox(box, self, 'ShowAnnotations', 'Show annotations', callback=self.drawDistanceMap) | OWGUI.checkBox(box, self, 'ShowLegend', 'Show legend', callback=self.drawDistanceMap) OWGUI.checkBox(box, self, 'ShowLabels', 'Show labels', callback=self.drawDistanceMap) | def __init__(self, parent=None, signalManager = None): self.callbackDeposit = [] # deposit for OWGUI callback function OWWidget.__init__(self, parent, signalManager, 'Distance Map') | 9dec2648a439fbcedb4a6e19f89488c157b33964 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9dec2648a439fbcedb4a6e19f89488c157b33964/OWDistanceMap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
365,
18,
3394,
758,
1724,
273,
5378,
468,
443,
1724,
364,
18233,
43,
5370,
1348,
445,
18233,
4609,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
365,
18,
3394,
758,
1724,
273,
5378,
468,
443,
1724,
364,
18233,
43,
5370,
1348,
445,
18233,
4609,
16186,
... |
"""Check that WeakKeyDictionary class conforms to the mapping protocol""" | """Check that WeakKeyDictionary conforms to the mapping protocol""" | def _reference(self): return self.__ref.copy() | 6389f7287b33da4e52014e29651372296ea546df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6389f7287b33da4e52014e29651372296ea546df/test_weakref.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6180,
12,
2890,
4672,
327,
365,
16186,
1734,
18,
3530,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6180,
12,
2890,
4672,
327,
365,
16186,
1734,
18,
3530,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
args = self._args assert not args | def runtest(self): target = self.obj args = self._args assert not args if option.runappdirect: return target(*args) space = gettestobjspace() func = app2interp_temp(target) print "executing", func self.execute_appex(space, func, space) | c9c38d30a544f95d0251ce9c02ffc8bbc7bd5e2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/c9c38d30a544f95d0251ce9c02ffc8bbc7bd5e2b/conftest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
1018,
273,
365,
18,
2603,
309,
1456,
18,
2681,
2910,
7205,
30,
327,
1018,
30857,
1968,
13,
3476,
273,
336,
3813,
2603,
2981,
1435,
1326,
273,
595,
22,
24940,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
1018,
273,
365,
18,
2603,
309,
1456,
18,
2681,
2910,
7205,
30,
327,
1018,
30857,
1968,
13,
3476,
273,
336,
3813,
2603,
2981,
1435,
1326,
273,
595,
22,
24940,
... | |
(w, h) = self.visibleRect ().size | visibleRect = self.convertRect_toView_ (self.superview ().bounds (), self) (w, h) = visibleRect.size | def mouseDragged_ (self, event): """ Implement color stretching by modifying the LUT """ (x, y) = event.locationInWindow () (w, h) = self.visibleRect ().size self.offset = x / w self.scale = (y - h / 2.) / h * MAX_CONTRAST * 2. # Modify a copy of the actual color tables i2r = (self.i2r * self.scale) + self.offset i2g... | 52c2a4ca79f0690dbaca69ecc01d542f6f0eb6ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2360/52c2a4ca79f0690dbaca69ecc01d542f6f0eb6ea/PyOpenGLView.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11728,
2423,
67,
261,
2890,
16,
871,
4672,
3536,
10886,
2036,
31435,
310,
635,
21920,
326,
511,
1693,
3536,
261,
92,
16,
677,
13,
273,
871,
18,
3562,
382,
3829,
1832,
225,
6021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11728,
2423,
67,
261,
2890,
16,
871,
4672,
3536,
10886,
2036,
31435,
310,
635,
21920,
326,
511,
1693,
3536,
261,
92,
16,
677,
13,
273,
871,
18,
3562,
382,
3829,
1832,
225,
6021,
... |
self.write(cr, uid, ids, { 'state' : 'done'}) | def survey_req_done(self, cr, uid, ids, context=None): if context is None: context = {} self.write(cr, uid, ids, { 'state' : 'done'}) hr_eval_obj = self.pool.get('hr_evaluation.evaluation') for id in self.browse(cr, uid, ids, context=context): flag = False wating_id = 0 tot_done_req = 0 records = hr_eval_obj.browse(cr,... | e32a158b18f2b5030b1476ae675bd460078f06fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e32a158b18f2b5030b1476ae675bd460078f06fb/hr_evaluation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14902,
67,
3658,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
15407,
67,
8622,
67,
2603,
273,
365,
18,
6011,
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,
14902,
67,
3658,
67,
8734,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
15407,
67,
8622,
67,
2603,
273,
365,
18,
6011,
18,... | |
if md5 is not None: return md5.new(open(path, 'r').read()).hexdigest() hash = hashlib.new('md5') hash.update(open(path, 'r').read()) return hash.hexdigest() | hash_value = md5() hash_value.update(open(path, 'r').read()) return hash_value.hexdigest() | def getHash(self, path=None): """Get the hash of a file. | 8fbf9280d3baad506a13bb3612aa42b4ba55f718 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9162/8fbf9280d3baad506a13bb3612aa42b4ba55f718/cachemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16075,
12,
2890,
16,
589,
33,
7036,
4672,
3536,
967,
326,
1651,
434,
279,
585,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16075,
12,
2890,
16,
589,
33,
7036,
4672,
3536,
967,
326,
1651,
434,
279,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
current_locale = "C" | if locale.getlocale()[0].startswith("en", 0, 2): current_locale = "C" else: current_locale = locale.getlocale()[0][:2] | def PopulateEncoders(): """ Check if the hardcoded list of encoders is available on the system. """ #HACK: we can't import gst at the top of Globals.py because #if we do, gstreamer will get to the sys.args and print it's own #message instead of ours. This will be fixed once we can use #GOption when we depend on pygobje... | f57d918efa0311f6e78f1f7f1dbb7f129ae98df1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/f57d918efa0311f6e78f1f7f1dbb7f129ae98df1/Globals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22254,
25100,
414,
13332,
3536,
2073,
309,
326,
7877,
24808,
666,
434,
17755,
414,
353,
2319,
603,
326,
2619,
18,
3536,
468,
44,
3649,
30,
732,
848,
1404,
1930,
314,
334,
622,
326,
1760,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22254,
25100,
414,
13332,
3536,
2073,
309,
326,
7877,
24808,
666,
434,
17755,
414,
353,
2319,
603,
326,
2619,
18,
3536,
468,
44,
3649,
30,
732,
848,
1404,
1930,
314,
334,
622,
326,
1760,... |
def _filter(list, skip): result = [] for item in list: if item not in skip: result.append(item) return result | def _filter(flist, skip): return list(ifilterfalse(skip.__contains__, flist)) | def _filter(list, skip): result = [] for item in list: if item not in skip: result.append(item) return result | 96a007422f48d730fd5c8fff2baba32db87faf76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96a007422f48d730fd5c8fff2baba32db87faf76/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
12,
74,
1098,
16,
2488,
4672,
327,
666,
12,
430,
1088,
5743,
12,
7457,
16186,
12298,
972,
16,
284,
1098,
3719,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
12,
74,
1098,
16,
2488,
4672,
327,
666,
12,
430,
1088,
5743,
12,
7457,
16186,
12298,
972,
16,
284,
1098,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: q = qsieve(n, block=False, time=True) sage: q | sage: q = qsieve(n, block=False, time=True) sage: q | def data_to_list(out, n, time): """ Convert output of Hart's sieve and n to a list and time. INPUT: out -- snapshot of text output of Hart's QuadraticSieve program n -- the integer being factored OUTPUT: list -- proper factors found so far str -- time information """ i = out.find('FACTORS:') if i == -1: return [], ''... | 2463b3ce4815f07e5d3193d0253a20020ab5651e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2463b3ce4815f07e5d3193d0253a20020ab5651e/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
869,
67,
1098,
12,
659,
16,
290,
16,
813,
4672,
3536,
4037,
876,
434,
670,
485,
1807,
272,
21271,
471,
290,
358,
279,
666,
471,
813,
18,
225,
12943,
30,
596,
1493,
4439,
434... |
`\sqrt( det ( Tr(e_i \bar(e_j) ) ) )`, where `\{e_i\}` is the | `\sqrt{ det ( Tr(e_i \bar{e_j} ) ) }`, where `\{e_i\}` is the | def discriminant(self): r""" Return the discriminant of this order, which we define as `\sqrt( det ( Tr(e_i \bar(e_j) ) ) )`, where `\{e_i\}` is the basis of the order. | aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29649,
20030,
12,
2890,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
333,
1353,
16,
1492,
732,
4426,
487,
1375,
64,
24492,
95,
3023,
261,
840,
12,
73,
67,
77,
521,
3215,
95,
73,
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,
29649,
20030,
12,
2890,
4672,
436,
8395,
2000,
326,
29649,
20030,
434,
333,
1353,
16,
1492,
732,
4426,
487,
1375,
64,
24492,
95,
3023,
261,
840,
12,
73,
67,
77,
521,
3215,
95,
73,
67,
... |
self.search_path + sys.path) | self.search_path + sys.path) | def instantiate_widget(self, node=None, parent=None, edit=False, autonomous=False): """ Return the corresponding widget initialised with node """ | 0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
67,
6587,
12,
2890,
16,
756,
33,
7036,
16,
982,
33,
7036,
16,
3874,
33,
8381,
16,
2059,
4708,
1481,
33,
8381,
4672,
3536,
2000,
326,
4656,
3604,
30372,
598,
756,
3536,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10275,
67,
6587,
12,
2890,
16,
756,
33,
7036,
16,
982,
33,
7036,
16,
3874,
33,
8381,
16,
2059,
4708,
1481,
33,
8381,
4672,
3536,
2000,
326,
4656,
3604,
30372,
598,
756,
3536,
2,
-100,
... |
exp_type='Foo') | exptype='Foo') | def test_NULL_instance_dict(self): 'Ensure that a PyInstanceObject with with a NULL in_dict is handled' self.assertSane(''' | 901d9376eee2057b5764ff2fef7ac0df3f1e021d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/901d9376eee2057b5764ff2fef7ac0df3f1e021d/test_gdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8560,
67,
1336,
67,
1576,
12,
2890,
4672,
296,
12512,
716,
279,
4707,
1442,
921,
598,
598,
279,
3206,
316,
67,
1576,
353,
7681,
11,
365,
18,
11231,
55,
8806,
2668,
6309,
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,
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,
8560,
67,
1336,
67,
1576,
12,
2890,
4672,
296,
12512,
716,
279,
4707,
1442,
921,
598,
598,
279,
3206,
316,
67,
1576,
353,
7681,
11,
365,
18,
11231,
55,
8806,
2668,
6309,
2,
... |
self.write_class_tree_item(out, doc, classes) | try: self.write_class_tree_item(out, doc, classes) except RuntimeError, e: print "OUCH.. ", e raise ValueError() | 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, ... | 1cd34dc4f7b279e4ac150be4b4be74d3336fb477 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/1cd34dc4f7b279e4ac150be4b4be74d3336fb477/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,
... |
print"<!-- $Date: 2001/07/31 18:54:16 $ -->" | print"<!-- $Date: 2001/08/01 20:21:18 $ -->" | def printHeader(linein): print "<HTML><TITLE>" + linein + "</title>" print"<!-- $Revsion:$ -->" print"<!-- $Date: 2001/07/31 18:54:16 $ -->" print"<!-- $Author: noel $ -->" | 22b46457cd5a1619555573e1ea29eda7803dffde /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/22b46457cd5a1619555573e1ea29eda7803dffde/otl2html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
1864,
12,
1369,
267,
4672,
1172,
3532,
4870,
4438,
14123,
2984,
397,
980,
267,
397,
6823,
2649,
2984,
1172,
6,
5586,
413,
225,
271,
426,
6904,
285,
20686,
1493,
2984,
1172,
6,
5586... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1864,
12,
1369,
267,
4672,
1172,
3532,
4870,
4438,
14123,
2984,
397,
980,
267,
397,
6823,
2649,
2984,
1172,
6,
5586,
413,
225,
271,
426,
6904,
285,
20686,
1493,
2984,
1172,
6,
5586... |
allResults.extend(results) if len(results) < tempStep: | allResults.extend( results ) if len( results ) < tempStep: | def __gfal_lsdir_wrapper(self,urls): """ This is a hack because the structures returned by the different SEs are different """ step = 200 gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = 1 gfalDict['srmv2_lscount'] = step failed = {} successful = [] for url in... | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
287,
67,
3251,
1214,
67,
8376,
12,
2890,
16,
10518,
4672,
3536,
1220,
353,
279,
11769,
2724,
326,
12597,
2106,
635,
326,
3775,
3174,
87,
854,
3775,
3536,
2235,
273,
4044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
74,
287,
67,
3251,
1214,
67,
8376,
12,
2890,
16,
10518,
4672,
3536,
1220,
353,
279,
11769,
2724,
326,
12597,
2106,
635,
326,
3775,
3174,
87,
854,
3775,
3536,
2235,
273,
4044,
... |
this = apply(_quickfix.new_MDImplicitDelete, args) | this = _quickfix.new_MDImplicitDelete(*args) | def __init__(self, *args): this = apply(_quickfix.new_MDImplicitDelete, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
6188,
15787,
2613,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
6188,
15787,
2613,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
... |
dbus_interface='org.freedesktop.Hal.Device.Volume') | dbus_interface='org.freedesktop.Hal.Device.Volume') | def conditional_mount(dev): mmo = bus.get_object("org.freedesktop.Hal", dev) label = mmo.GetPropertyString('volume.label', dbus_interface='org.freedesktop.Hal.Device') is_mounted = mmo.GetPropertyString('volume.is_mounted', dbus_interface='org.freedesktop.Hal.Device') mount_point = mmo.GetPropertyString('volume.mount_p... | ec35ad2be0495d9abc85dfe3775d657c66fc0f07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/ec35ad2be0495d9abc85dfe3775d657c66fc0f07/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11139,
67,
4778,
12,
5206,
4672,
312,
8683,
273,
5766,
18,
588,
67,
1612,
2932,
3341,
18,
74,
15656,
281,
11869,
18,
44,
287,
3113,
4461,
13,
1433,
273,
312,
8683,
18,
967,
1396,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11139,
67,
4778,
12,
5206,
4672,
312,
8683,
273,
5766,
18,
588,
67,
1612,
2932,
3341,
18,
74,
15656,
281,
11869,
18,
44,
287,
3113,
4461,
13,
1433,
273,
312,
8683,
18,
967,
1396,
780,
... |
def write(self, line): self.connection.write(line) | def write(self, line, channels = None): return self.connection.write(line, channels) | def write(self, line): self.connection.write(line) | c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13981/c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d/ircbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
980,
4672,
365,
18,
4071,
18,
2626,
12,
1369,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1045,
12,
2890,
16,
980,
4672,
365,
18,
4071,
18,
2626,
12,
1369,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
n = int(s.rstrip(NUL) or "0", 8) | n = int(s.rstrip(NUL + " ") or "0", 8) | def nti(s): """Convert a number field to a python number. """ # There are two possible encodings for a number field, see # itn() below. if s[0] != chr(0200): n = int(s.rstrip(NUL) or "0", 8) else: n = 0L for i in xrange(len(s) - 1): n <<= 8 n += ord(s[i + 1]) return n | 568d6a605565cfeb66ff0a3c8c5e1c1618aa9ce7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/568d6a605565cfeb66ff0a3c8c5e1c1618aa9ce7/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
9096,
12,
87,
4672,
3536,
2723,
279,
1300,
652,
358,
279,
5790,
1300,
18,
3536,
468,
6149,
854,
2795,
3323,
24118,
364,
279,
1300,
652,
16,
2621,
468,
518,
82,
1435,
5712,
18,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
9096,
12,
87,
4672,
3536,
2723,
279,
1300,
652,
358,
279,
5790,
1300,
18,
3536,
468,
6149,
854,
2795,
3323,
24118,
364,
279,
1300,
652,
16,
2621,
468,
518,
82,
1435,
5712,
18,
309... |
modname, ext = os.path.splitext(os.path.basename(filename)) if sys.modules.has_key(modname): mod = sys.modules[modname] else: mod = imp.new_module(modname) sys.modules[modname] = mod mod.__file__ = filename saveout = sys.stdout saveerr = sys.stderr owin = OnDemandOutputWindow(self.editwin.flist) try: sys.stderr = Pseud... | return filename | def run_module_event(self, event, debugger=None): if not self.editwin.get_saved(): tkMessageBox.showerror("Not saved", "Please save first!", master=self.editwin.text) self.editwin.text.focus_set() return filename = self.editwin.io.filename if not filename: tkMessageBox.showerror("No file name", "This window has no file... | 25d0d3c71190a0eaedfeddb16ec8c6372747e11e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/25d0d3c71190a0eaedfeddb16ec8c6372747e11e/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2978,
67,
2575,
12,
2890,
16,
871,
16,
19977,
33,
7036,
4672,
309,
486,
365,
18,
4619,
8082,
18,
588,
67,
14077,
13332,
13030,
27647,
18,
4500,
1636,
2932,
1248,
5198,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
2978,
67,
2575,
12,
2890,
16,
871,
16,
19977,
33,
7036,
4672,
309,
486,
365,
18,
4619,
8082,
18,
588,
67,
14077,
13332,
13030,
27647,
18,
4500,
1636,
2932,
1248,
5198,
3113,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.