rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.logger.notifyChannel('init', netsvc.LOG_ERROR, "addon: %s xml_id: %s" % (self.module, xml_id)) | self.logger.notifyChannel('init', netsvc.LOG_ERROR, "module: %s xml_id: %s" % (self.module, xml_id)) | def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') self._test_xml_id(rec_id) m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) | 17eab28ef133599cf956036d41c3c28adaec7766 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/17eab28ef133599cf956036d41c3c28adaec7766/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
365,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
365,
6315... |
if self["filelist"].getFilename() is None: return if self["filelist"].getCurrentDirectory() is not None: self.nfifile = self["filelist"].getCurrentDirectory()+self["filelist"].getFilename() | if nfifile is None: self.session.summary.setText(self["filelist"].getFilename()) if self["filelist"].getFilename() is None: return if self["filelist"].getCurrentDirectory() is not None: self.nfifile = self["filelist"].getCurrentDirectory()+self["filelist"].getFilename() else: self.nfifile = nfifile | def check_for_NFO(self): self.session.summary.setText(self["filelist"].getFilename()) if self["filelist"].getFilename() is None: return if self["filelist"].getCurrentDirectory() is not None: self.nfifile = self["filelist"].getCurrentDirectory()+self["filelist"].getFilename() | 04d23246dd5c88df949d523e0c149be8070a0a96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/04d23246dd5c88df949d523e0c149be8070a0a96/flasher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1884,
67,
50,
3313,
12,
2890,
4672,
365,
18,
3184,
18,
7687,
18,
542,
1528,
12,
2890,
9614,
7540,
5449,
6,
8009,
588,
5359,
10756,
309,
365,
9614,
7540,
5449,
6,
8009,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1884,
67,
50,
3313,
12,
2890,
4672,
365,
18,
3184,
18,
7687,
18,
542,
1528,
12,
2890,
9614,
7540,
5449,
6,
8009,
588,
5359,
10756,
309,
365,
9614,
7540,
5449,
6,
8009,
588,
... |
if x_data_type not in common_complexity.COMPLEXITY_TYPES and | if x_data_type not in common_complexity.COMPLEXITY_TYPES and \ | def parse_args(): try: opts, args = getopt.getopt(sys.argv[1:], 'dpbx:y:', ['driven', 'passive', 'both', 'x_data_type', 'y_data_type']) except getopt.GetoptError, err: print str(err) usage() exit(2) if len(args) < 1: usage() print 'using defaults:', '--'+DEFAULT_GROUP, '-x', DEFAULT_X_DATA_TYPE, '-y', DEFAULT_Y_DATA_T... | 9a1cce72352ff7a271bce54c5e728baee1877ec7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5319/9a1cce72352ff7a271bce54c5e728baee1877ec7/plot_traces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1968,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
72,
5733,
92,
30,
93,
30,
2187,
10228,
3069,
837,
2187,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
13332,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
72,
5733,
92,
30,
93,
30,
2187,
10228,
3069,
837,
2187,
296,... |
captionTxt = ''.join(txt) | captionTxt = ''.join(txt) | def writeImageLink(self, img_node): if img_node.colon == True: items = [] for node in img_node.children: items.extend(self.write(node)) return items | 22f5d3b8dc32cac3da8fc7c2747a1137ca2b8244 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/22f5d3b8dc32cac3da8fc7c2747a1137ca2b8244/rlwriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2040,
2098,
12,
2890,
16,
3774,
67,
2159,
4672,
309,
3774,
67,
2159,
18,
22667,
422,
1053,
30,
1516,
273,
5378,
364,
756,
316,
3774,
67,
2159,
18,
5906,
30,
1516,
18,
14313,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
2040,
2098,
12,
2890,
16,
3774,
67,
2159,
4672,
309,
3774,
67,
2159,
18,
22667,
422,
1053,
30,
1516,
273,
5378,
364,
756,
316,
3774,
67,
2159,
18,
5906,
30,
1516,
18,
14313,
12,
... |
if not hasattr(self, "collisionTags"): self.collisionTags = {} self.collisionTags[key] = value | self.cSternSphereNodePath.setTag(key, value) self.cBowSphereNodePath.setTag(key, value) | def setTag(self, key, value): if not hasattr(self, "collisionTags"): self.collisionTags = {} self.collisionTags[key] = value | d25dbb573bf5a948cf0ff530bb56cd42edd07b5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/d25dbb573bf5a948cf0ff530bb56cd42edd07b5c/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31396,
12,
2890,
16,
498,
16,
460,
4672,
309,
486,
3859,
12,
2890,
16,
315,
12910,
1951,
3453,
6,
4672,
365,
18,
12910,
1951,
3453,
273,
2618,
365,
18,
12910,
1951,
3453,
63,
856,
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,
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,
31396,
12,
2890,
16,
498,
16,
460,
4672,
309,
486,
3859,
12,
2890,
16,
315,
12910,
1951,
3453,
6,
4672,
365,
18,
12910,
1951,
3453,
273,
2618,
365,
18,
12910,
1951,
3453,
63,
856,
65,
... |
return _cs_matrix._rmatvec(self, other, shape[0], shape[1], csrmux, conjugate=conjugate) | return _cs_matrix._rmatvec(self, other, self.shape[0], self.shape[1], csrmux, conjugate=conjugate) | def rmatvec(self, other, conjugate=True): return _cs_matrix._rmatvec(self, other, shape[0], shape[1], csrmux, conjugate=conjugate) | 6cb7ae94961a14f2dff9c7cc4ae611b497869c79 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/6cb7ae94961a14f2dff9c7cc4ae611b497869c79/sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6692,
270,
8799,
12,
2890,
16,
1308,
16,
10550,
31529,
33,
5510,
4672,
327,
389,
2143,
67,
5667,
6315,
86,
7373,
8799,
12,
2890,
16,
1308,
16,
2179,
63,
20,
6487,
2179,
63,
21,
6487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6692,
270,
8799,
12,
2890,
16,
1308,
16,
10550,
31529,
33,
5510,
4672,
327,
389,
2143,
67,
5667,
6315,
86,
7373,
8799,
12,
2890,
16,
1308,
16,
2179,
63,
20,
6487,
2179,
63,
21,
6487,
... |
feed.last_update = time() | def feed_parsed(parsed, feeds, manager, feed): logging.debug('Updating feed "%s" (%s)' % (feed.name, feed.url)) # Update etag/lastmod for future requests feed.last_update = time() feed.last_error = None if 'modified' in parsed: feed.modified = mktime(parsed.modified.timetuple()) if 'etag' in parsed: feed.etag = unico... | 3bb55dbe17adf6e343176ee5f0d037d67db76e8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12636/3bb55dbe17adf6e343176ee5f0d037d67db76e8e/checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
67,
10817,
12,
10817,
16,
27684,
16,
3301,
16,
4746,
4672,
225,
2907,
18,
4148,
2668,
17858,
4746,
2213,
87,
6,
6142,
87,
2506,
738,
261,
7848,
18,
529,
16,
4746,
18,
718,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4746,
67,
10817,
12,
10817,
16,
27684,
16,
3301,
16,
4746,
4672,
225,
2907,
18,
4148,
2668,
17858,
4746,
2213,
87,
6,
6142,
87,
2506,
738,
261,
7848,
18,
529,
16,
4746,
18,
718,
3719,
... | |
if debug: print "(result was '%s')" % result | debugOut( "result was '%s'" % result ) | def processCommand( self, command, params ): """Process a command. Check number of params and print a usage string, if appropriate""" if debug: print "(processing command '%s'...)" % command try: function, numparams, usage, helptext = cmds[command] except KeyError: print "SHELL: ERROR: '%s' command is not a valid comma... | d0f9b4561cda2df828b4828cd97f219bd81e6c59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/d0f9b4561cda2df828b4828cd97f219bd81e6c59/shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2189,
12,
365,
16,
1296,
16,
859,
262,
30,
3536,
2227,
279,
1296,
18,
2073,
1300,
434,
859,
471,
1172,
279,
4084,
533,
16,
309,
5505,
8395,
309,
1198,
30,
1172,
7751,
10632,
1296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2189,
12,
365,
16,
1296,
16,
859,
262,
30,
3536,
2227,
279,
1296,
18,
2073,
1300,
434,
859,
471,
1172,
279,
4084,
533,
16,
309,
5505,
8395,
309,
1198,
30,
1172,
7751,
10632,
1296... |
def __getitem__( self, key ): v = SvFormContentDict.__getitem__( self, key ) if v[0] in string.digits+'+-.' : try: return string.atoi( v ) | def __getitem__(self, key): v = SvFormContentDict.__getitem__(self, key) if v[0] in string.digits + '+-.': try: return string.atoi(v) | def __getitem__( self, key ): v = SvFormContentDict.__getitem__( self, key ) if v[0] in string.digits+'+-.' : try: return string.atoi( v ) except ValueError: try: return string.atof( v ) except ValueError: pass return string.strip(v) | a3c6a8a30ea6fe481aa7397c8acb53f8a483c93d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a3c6a8a30ea6fe481aa7397c8acb53f8a483c93d/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
331,
273,
348,
90,
1204,
1350,
5014,
16186,
31571,
972,
12,
2890,
16,
498,
13,
309,
331,
63,
20,
65,
316,
533,
18,
16649,
397,
15126,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
498,
4672,
331,
273,
348,
90,
1204,
1350,
5014,
16186,
31571,
972,
12,
2890,
16,
498,
13,
309,
331,
63,
20,
65,
316,
533,
18,
16649,
397,
15126,
17,
1... |
args += '-D ' + dir | args += ' -D ' + dir | def execute(self, iterations = 1, dir = None, nprocs = count_cpus(), args = ''): for i in range(iterations): args = args + ' -c '+self.srcdir+'/client.txt' if dir: args += '-D ' + dir args += ' %s' % nprocs system(self.srcdir + '/dbench ' + args) | 98464f24d003905e9279f3803387acc5354de91e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10349/98464f24d003905e9279f3803387acc5354de91e/dbench.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
11316,
273,
404,
16,
1577,
273,
599,
16,
290,
27537,
273,
1056,
67,
20696,
9334,
833,
273,
875,
4672,
364,
277,
316,
1048,
12,
19330,
4672,
833,
273,
833,
397,
296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2890,
16,
11316,
273,
404,
16,
1577,
273,
599,
16,
290,
27537,
273,
1056,
67,
20696,
9334,
833,
273,
875,
4672,
364,
277,
316,
1048,
12,
19330,
4672,
833,
273,
833,
397,
296,... |
add_ctxtnav(req, _('Back to Ticket | add_ctxtnav(req, _("Back to Ticket | def _render_comment_history(self, req, ticket, data, cnum): """Extract the history for a ticket comment.""" req.perm(ticket.resource).require('TICKET_VIEW') history = self._get_comment_history(req, ticket, cnum) history.reverse() url = self._make_comment_url(req, ticket, cnum) data.update({ 'title': _('Ticket Comment H... | 8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
3469,
67,
8189,
12,
2890,
16,
1111,
16,
9322,
16,
501,
16,
276,
2107,
4672,
3536,
4976,
326,
4927,
364,
279,
9322,
2879,
12123,
1111,
18,
12160,
12,
16282,
18,
3146,
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,
389,
5902,
67,
3469,
67,
8189,
12,
2890,
16,
1111,
16,
9322,
16,
501,
16,
276,
2107,
4672,
3536,
4976,
326,
4927,
364,
279,
9322,
2879,
12123,
1111,
18,
12160,
12,
16282,
18,
3146,
293... |
id=id, name=id)])) | id=id, name=id))) | def render_ticket_action_control(self, req, ticket, action): | ec5dbaff8e29989a9159be5f94ccf6762fdbae79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/ec5dbaff8e29989a9159be5f94ccf6762fdbae79/default_workflow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
16282,
67,
1128,
67,
7098,
12,
2890,
16,
1111,
16,
9322,
16,
1301,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
16282,
67,
1128,
67,
7098,
12,
2890,
16,
1111,
16,
9322,
16,
1301,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
'/Library/Frameworks', | def detect_tkinter_darwin(self, inc_dirs, lib_dirs): # The _tkinter module, using frameworks. Since frameworks are quite # different the UNIX search logic is not sharable. from os.path import join, exists framework_dirs = [ '/System/Library/Frameworks/', '/Library/Frameworks', join(os.getenv('HOME'), '/Library/Framewor... | 71916d2010daa791e32d3bc0eb4bb5efb57983b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/71916d2010daa791e32d3bc0eb4bb5efb57983b2/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
16099,
2761,
67,
28076,
12,
2890,
16,
7290,
67,
8291,
16,
2561,
67,
8291,
4672,
468,
1021,
389,
16099,
2761,
1605,
16,
1450,
8257,
87,
18,
7897,
8257,
87,
854,
25102,
468,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
16099,
2761,
67,
28076,
12,
2890,
16,
7290,
67,
8291,
16,
2561,
67,
8291,
4672,
468,
1021,
389,
16099,
2761,
1605,
16,
1450,
8257,
87,
18,
7897,
8257,
87,
854,
25102,
468,
37... | |
if isinstance(binary.right, schema.Column) and isinstance(binary.left, schema.Column) and ((not circular and binary.right.table is table) or (circular and binary.left in foreignkey)): | if isinstance(binary.right, schema.Column) and isinstance(binary.left, schema.Column) and ((not circular and column_in_table(table, binary.right)) or (circular and binary.left in foreignkey)): | def visit_binary(binary): circular = isinstance(binary.left, schema.Column) and isinstance(binary.right, schema.Column) and binary.left.table is binary.right.table if isinstance(binary.left, schema.Column) and isinstance(binary.right, schema.Column) and ((not circular and binary.left.table is table) or (circular and bi... | e4a47d7e4b04d67b3a062cd7f6d1fb2a0d16ca6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/e4a47d7e4b04d67b3a062cd7f6d1fb2a0d16ca6a/properties.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
8578,
12,
8578,
4672,
15302,
273,
1549,
12,
8578,
18,
4482,
16,
1963,
18,
1494,
13,
471,
1549,
12,
8578,
18,
4083,
16,
1963,
18,
1494,
13,
471,
3112,
18,
4482,
18,
2121,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
8578,
12,
8578,
4672,
15302,
273,
1549,
12,
8578,
18,
4482,
16,
1963,
18,
1494,
13,
471,
1549,
12,
8578,
18,
4083,
16,
1963,
18,
1494,
13,
471,
3112,
18,
4482,
18,
2121,
35... |
p_ids = self._menbar.GetIds() | o_ids = self._menbar.GetOpenIds() d_ids = self._menbar.GetRemoveIds() | def OnMenu(self, evt): """Handles the events associated with adding, opening, and removing paths in the menubars menus. | e90e499ee5b7bec434002466ca98e8c18ca9a363 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/e90e499ee5b7bec434002466ca98e8c18ca9a363/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4599,
12,
2890,
16,
6324,
4672,
3536,
8788,
326,
2641,
3627,
598,
6534,
16,
10890,
16,
471,
9427,
2953,
316,
326,
21247,
373,
5913,
21374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4599,
12,
2890,
16,
6324,
4672,
3536,
8788,
326,
2641,
3627,
598,
6534,
16,
10890,
16,
471,
9427,
2953,
316,
326,
21247,
373,
5913,
21374,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
raise SyntaxError("Duplicate label") | raise SyntaxError("Duplicate label", tokenizer) | def Statement(tokenizer, staticContext): """Parses a Statement.""" tokenType = tokenizer.get(True) builder = staticContext.builder # Cases for statements ending in a right curly return early, avoiding the # common semicolon insertion magic after this switch. if tokenType == "function": # "declared_form" extends func... | bdc507c93397dfb45618391af4f8ad06736bfaf9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/bdc507c93397dfb45618391af4f8ad06736bfaf9/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
760,
1042,
4672,
3536,
6656,
279,
8056,
12123,
225,
22302,
273,
10123,
18,
588,
12,
5510,
13,
2089,
273,
760,
1042,
18,
9574,
225,
468,
385,
3304,
364,
6317,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
760,
1042,
4672,
3536,
6656,
279,
8056,
12123,
225,
22302,
273,
10123,
18,
588,
12,
5510,
13,
2089,
273,
760,
1042,
18,
9574,
225,
468,
385,
3304,
364,
6317,
... |
self.fhandle = fhandle | self.fpath = fpath | def __init__(self, fhandle=None, wrapwidth=78): """ Constructor. | 418b31415acbfe149b6979cf1e06619eed712454 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/418b31415acbfe149b6979cf1e06619eed712454/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4110,
33,
7036,
16,
2193,
2819,
33,
8285,
4672,
3536,
11417,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
284,
4110,
33,
7036,
16,
2193,
2819,
33,
8285,
4672,
3536,
11417,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
shape = v[0].shape if not shape: shape = (1,) | def _parsedtype(d): """ | 1ac4fb0c79de15a9326830e51caac2682636b845 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8103/1ac4fb0c79de15a9326830e51caac2682636b845/netCDF4_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10817,
723,
12,
72,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10817,
723,
12,
72,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
self.changer.setInitialXML('abc123', first) | self.changer.setInitialHTML('abc123', first) | def testAttributeChange(self): first = '<div class="item" id="abc123">foo</div>' second = '<div class="item highlighed" id="abc123">foo</div>' self.changer.setInitialXML('abc123', first) self.checkChange('abc123', second, {'class': 'item highlighed'}, False) | 9a64f9a2694db44e2ec6cab2546fadbfa9f4884e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/9a64f9a2694db44e2ec6cab2546fadbfa9f4884e/templatetest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1499,
3043,
12,
2890,
4672,
1122,
273,
2368,
2892,
667,
1546,
1726,
6,
612,
1546,
18947,
12936,
6441,
11351,
1757,
2892,
1870,
2205,
273,
2368,
2892,
667,
1546,
1726,
3551,
80,
2031,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
3043,
12,
2890,
4672,
1122,
273,
2368,
2892,
667,
1546,
1726,
6,
612,
1546,
18947,
12936,
6441,
11351,
1757,
2892,
1870,
2205,
273,
2368,
2892,
667,
1546,
1726,
3551,
80,
2031,... |
if users is None: | if users is None or error is True: | def checkin(self, request, tl, one, two, module, extra, prog): error = False users = None if extra is not None: try: userid = int(extra) except: error = True user = ESPUser(ESPUser.objects.get(id = userid)) self.student = user | 8b80574b1c40048c6fc9070d52676603aede5a3a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/8b80574b1c40048c6fc9070d52676603aede5a3a/onsitecore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
267,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
555,
273,
1083,
3677,
273,
599,
309,
2870,
353,
486,
599,
30,
775,
30,
6709,
273,
509,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
267,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
555,
273,
1083,
3677,
273,
599,
309,
2870,
353,
486,
599,
30,
775,
30,
6709,
273,
509,... |
@param contextFactory: a L{twisted.internet.ssl.ContextFactory} object. | @param contextFactory: a L{twisted.internet.ssl.ClientContextFactory} object. | def connectSSL(self, host, port, factory, contextFactory, timeout=30, bindAddress=None): """Connect a client Protocol to a remote SSL socket. | 991c1227c269d1d5a7a8067391cf765653066fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/991c1227c269d1d5a7a8067391cf765653066fe4/interfaces.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
6745,
12,
2890,
16,
1479,
16,
1756,
16,
3272,
16,
819,
1733,
16,
2021,
33,
5082,
16,
1993,
1887,
33,
7036,
4672,
3536,
5215,
279,
1004,
4547,
358,
279,
2632,
7419,
2987,
18,
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,
3077,
6745,
12,
2890,
16,
1479,
16,
1756,
16,
3272,
16,
819,
1733,
16,
2021,
33,
5082,
16,
1993,
1887,
33,
7036,
4672,
3536,
5215,
279,
1004,
4547,
358,
279,
2632,
7419,
2987,
18,
2,
... |
tags=tag_list, notag_only=notag_only,is_root=False) | tags=tag_list, notag_only=notag_only,is_root=False, started_only=False) | def refresh_list(self,a=None) : #selected tasks : selected_uid = self.get_selected_task(self.task_tview) #selected_closed_uid = self.get_selected_task(self.taskdone_tview) t_model,t_path = self.task_tview.get_selection().get_selected_rows() d_model,d_path = self.taskdone_tview.get_selection().get_selected_rows() #to re... | 2e4821c045e7470cfbd26475ac7763dec3e0ac5a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/2e4821c045e7470cfbd26475ac7763dec3e0ac5a/taskbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
67,
1098,
12,
2890,
16,
69,
33,
7036,
13,
294,
468,
8109,
4592,
294,
3170,
67,
1911,
273,
365,
18,
588,
67,
8109,
67,
4146,
12,
2890,
18,
4146,
67,
88,
1945,
13,
468,
8109,
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,
4460,
67,
1098,
12,
2890,
16,
69,
33,
7036,
13,
294,
468,
8109,
4592,
294,
3170,
67,
1911,
273,
365,
18,
588,
67,
8109,
67,
4146,
12,
2890,
18,
4146,
67,
88,
1945,
13,
468,
8109,
6... |
pwt = getToolByName('portal_workflow') | pwt = getToolByName(site, 'portal_workflow') | def setupContent(site): """ Adds the db folder and registers the filter view as default as well as the portlets """ # enable addition of large folders getattr(site.portal_types, 'Large Plone Folder').global_allow = True _ = site.invokeFactory('Large Plone Folder', 'db') db = getattr(site, 'db') db.setTitle('Datenbank')... | dff4274496f86ab0d96e538126c08a54743026c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6870/dff4274496f86ab0d96e538126c08a54743026c9/setuphandlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
1350,
12,
4256,
4672,
3536,
15605,
326,
1319,
3009,
471,
10285,
326,
1034,
1476,
487,
805,
487,
5492,
487,
326,
13114,
87,
3536,
468,
4237,
2719,
434,
7876,
9907,
3869,
12,
4256,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
1350,
12,
4256,
4672,
3536,
15605,
326,
1319,
3009,
471,
10285,
326,
1034,
1476,
487,
805,
487,
5492,
487,
326,
13114,
87,
3536,
468,
4237,
2719,
434,
7876,
9907,
3869,
12,
4256,
1... |
requestsPerSecond = float(requests / self.nginxRequestsStore) / 60 return {'connections' : connections, 'reqPerSec' : requestsPerSecond} | requestsPerSecond = float(requests - self.nginxRequestsStore) / 60 if connections != None and requestsPerSecond != None: return {'connections' : connections, 'reqPerSec' : requestsPerSecond} else: return False | def getNginxStatus(self): self.checksLogger.debug('getNginxStatus: start') if self.agentConfig['nginxStatusUrl'] != 'http://www.example.com/server-status/?auto': # Don't do it if the status URL hasn't been provided self.checksLogger.debug('getNginxStatus: config set') try: self.checksLogger.debug('getNginxStatus: att... | f286ad54760f119845d6f9eefb102374c97b6947 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13266/f286ad54760f119845d6f9eefb102374c97b6947/checks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11069,
28433,
1482,
12,
2890,
4672,
365,
18,
12366,
3328,
18,
4148,
2668,
588,
50,
28433,
1482,
30,
787,
6134,
225,
309,
365,
18,
5629,
809,
3292,
82,
28433,
1482,
1489,
3546,
480,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11069,
28433,
1482,
12,
2890,
4672,
365,
18,
12366,
3328,
18,
4148,
2668,
588,
50,
28433,
1482,
30,
787,
6134,
225,
309,
365,
18,
5629,
809,
3292,
82,
28433,
1482,
1489,
3546,
480,
296,
... |
if not self.app_directory in sys.path: | if self.app_directory is not None and not self.app_directory in sys.path: | def init_publisher(self): self.cache = None if self.params['app_directory']: self.app_directory = self.expand_relative_path(self.params['app_directory']) else: self.app_directory = self.servlet_context.getRealPath('/') self.params['app_directory'] = self.app_directory if not self.app_directory in sys.path: sys.path.app... | fcf12ec9dd8802e134e610632a28e16d22561447 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6753/fcf12ec9dd8802e134e610632a28e16d22561447/modjy_publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
26018,
12,
2890,
4672,
365,
18,
2493,
273,
599,
309,
365,
18,
2010,
3292,
2910,
67,
5149,
3546,
30,
365,
18,
2910,
67,
5149,
273,
365,
18,
12320,
67,
11626,
67,
803,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
26018,
12,
2890,
4672,
365,
18,
2493,
273,
599,
309,
365,
18,
2010,
3292,
2910,
67,
5149,
3546,
30,
365,
18,
2910,
67,
5149,
273,
365,
18,
12320,
67,
11626,
67,
803,
12,
28... |
self.setFailedJob(job, result['Message']) | self.setFailedJob(job, result['Message'],classAdJob) | def checkJob( self, job, classAdJob ): """This method controls the checking of the job. """ jobDesc = JobDescription() result = jobDesc.loadDescription( classAdJob.asJDL() ) if not result[ 'OK' ]: self.setFailedJob(job, result['Message']) return result self.__syncJobDesc( job, jobDesc, classAdJob ) | 0223d31744ab672b3bc071ee8972711a16f92df5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/0223d31744ab672b3bc071ee8972711a16f92df5/JobPathAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2278,
12,
365,
16,
1719,
16,
667,
1871,
2278,
262,
30,
3536,
2503,
707,
11022,
326,
6728,
434,
326,
1719,
18,
3536,
1719,
4217,
273,
3956,
3291,
1435,
563,
273,
1719,
4217,
18,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
2278,
12,
365,
16,
1719,
16,
667,
1871,
2278,
262,
30,
3536,
2503,
707,
11022,
326,
6728,
434,
326,
1719,
18,
3536,
1719,
4217,
273,
3956,
3291,
1435,
563,
273,
1719,
4217,
18,
94... |
list, tuple, or vector | list, tuple, or vector. | def ruler_frame(lower_left, upper_right, ticks=4, sub_ticks=4, **kwds): """ Draw a frame made of 3D rulers, with major and minor ticks. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, or vector - ``t... | ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
40,
436,
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,
436,
17040,
67,
3789,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
13003,
33,
24,
16,
720,
67,
11767,
33,
24,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
7165,
434,
890,
40,
436,
3... |
for w, c in iter: d[w] = d.get(w, 1) + 1 for w, c in d.iteritems(): out.add(w, c) This example counts how many teams each key appears. | for k, v in iter: d[k] = d.get(k, 0) + 1 for k, c in d.iteritems(): out.add(k, c) This example counts how many times each key appears. | def fun_reduce(iter, out, params): d = {} for w, c in iter: d[w] = d.get(w, 1) + 1 for w, c in d.iteritems(): out.add(w, c) | 0fecab50df71b9d4f2a8fb9cd80e798e95c494cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/373/0fecab50df71b9d4f2a8fb9cd80e798e95c494cf/func.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9831,
67,
12498,
12,
2165,
16,
596,
16,
859,
4672,
302,
273,
2618,
364,
341,
16,
276,
316,
1400,
30,
302,
63,
91,
65,
273,
302,
18,
588,
12,
91,
16,
404,
13,
397,
404,
364,
341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9831,
67,
12498,
12,
2165,
16,
596,
16,
859,
4672,
302,
273,
2618,
364,
341,
16,
276,
316,
1400,
30,
302,
63,
91,
65,
273,
302,
18,
588,
12,
91,
16,
404,
13,
397,
404,
364,
341,
... |
raise NotImplementedError | raise NotImplementedErrors | def GetRoot(self): """ This method should return the repository root for the file or 'None' on failure. """ raise NotImplementedError | 329d49b565722e8465f2b32981390b24b9cf4634 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/329d49b565722e8465f2b32981390b24b9cf4634/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2375,
12,
2890,
4672,
3536,
1220,
707,
1410,
327,
326,
3352,
1365,
364,
326,
585,
578,
296,
7036,
11,
603,
5166,
18,
3536,
1002,
11206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
2375,
12,
2890,
4672,
3536,
1220,
707,
1410,
327,
326,
3352,
1365,
364,
326,
585,
578,
296,
7036,
11,
603,
5166,
18,
3536,
1002,
11206,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
....: def __init__(self): ....: 'docstring' ....: pass ....: | ... def __init__(self): ... 'docstring' ... pass ... | ....: def __init__(self): | 1a3ea52f437ae3ea04540dc90a98d2c8fb436ffd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1a3ea52f437ae3ea04540dc90a98d2c8fb436ffd/sageinspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
29710,
377,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
29710,
377,
1652,
1001,
2738,
972,
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,
-1... |
num_real_where_clauses = len(query._where) query._where.append('GROUP BY ' + ', '.join(group_fields)) | def _get_group_query_sql(self, query, group_by, extra_select_fields): group_fields = self._get_field_names(group_by) if query._distinct: pk_field = self._get_key_on_this_table(self.model._meta.pk.name) count_sql = 'COUNT(DISTINCT %s)' % pk_field else: count_sql = 'COUNT(1)' select_fields = (group_fields + [count_sql + ... | 225918b389ecc937d1a32650fc47579d799d957c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/225918b389ecc937d1a32650fc47579d799d957c/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
1655,
67,
2271,
67,
4669,
12,
2890,
16,
843,
16,
1041,
67,
1637,
16,
2870,
67,
4025,
67,
2821,
4672,
1041,
67,
2821,
273,
365,
6315,
588,
67,
1518,
67,
1973,
12,
1655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1655,
67,
2271,
67,
4669,
12,
2890,
16,
843,
16,
1041,
67,
1637,
16,
2870,
67,
4025,
67,
2821,
4672,
1041,
67,
2821,
273,
365,
6315,
588,
67,
1518,
67,
1973,
12,
1655,
... | |
def do_clear_break(self, arg): if not arg: self.do_clear("") return arg = string.strip(arg) args = string.split(arg) if len(args) < 2: print '*** Specify file and line number.' return try: line = int(args[1]) except: print '*** line number must be an integer.' return result =self.clear_break(args[0], line) if result:... | def do_clear(self, arg): # Three possibilities, tried in this order: # clear -> clear all breaks, ask for confirmation # clear file:lineno -> clear all breaks at file:lineno # clear bpno bpno ... -> clear breakpoints by number if not arg: try: reply = raw_input('Clear all breaks? ') except EOFError: reply = 'no' reply ... | 583cc31c223de8f021db7e427876e6097374bc9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/583cc31c223de8f021db7e427876e6097374bc9e/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8507,
12,
2890,
16,
1501,
4672,
468,
935,
992,
28550,
16,
12928,
316,
333,
1353,
30,
468,
2424,
317,
2424,
777,
16217,
16,
6827,
364,
14296,
468,
2424,
585,
30,
17782,
317,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8507,
12,
2890,
16,
1501,
4672,
468,
935,
992,
28550,
16,
12928,
316,
333,
1353,
30,
468,
2424,
317,
2424,
777,
16217,
16,
6827,
364,
14296,
468,
2424,
585,
30,
17782,
317,
24... | |
return isinstance(f, os_mock.FakeSymlink) | return type(f) == os_mock.FakeSymlink | def islink(path): f = os_mock._findFileFromPath(path) return isinstance(f, os_mock.FakeSymlink) | b0819242915daa9194ec7e4c75aab147ea865d1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/b0819242915daa9194ec7e4c75aab147ea865d1e/os_path_mock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1232,
12,
803,
4672,
284,
273,
1140,
67,
22851,
6315,
4720,
812,
23064,
12,
803,
13,
327,
618,
12,
74,
13,
422,
1140,
67,
22851,
18,
25462,
18475,
282,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1232,
12,
803,
4672,
284,
273,
1140,
67,
22851,
6315,
4720,
812,
23064,
12,
803,
13,
327,
618,
12,
74,
13,
422,
1140,
67,
22851,
18,
25462,
18475,
282,
2,
-100,
-100,
-100,
-100,
... |
if self.data and self.indiDiscretization != 5+which: self.indiDiscretization = 5 + which | if self.data and self.indiDiscretization != self.D_N_METHODS + which + 1: self.indiDiscretization = self.D_N_METHODS + which + 1 | def customSelected(self, which): if self.data and self.indiDiscretization != 5+which: self.indiDiscretization = 5 + which idx = self.continuousIndices[self.selectedAttr] attr = self.data.domain[idx] self.indiMethodChanged() | 9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43/OWInteractiveDiscretization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1679,
7416,
12,
2890,
16,
1492,
4672,
309,
365,
18,
892,
471,
365,
18,
728,
77,
28912,
1349,
1588,
480,
365,
18,
40,
67,
50,
67,
25750,
397,
1492,
397,
404,
30,
365,
18,
728,
77,
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,
1679,
7416,
12,
2890,
16,
1492,
4672,
309,
365,
18,
892,
471,
365,
18,
728,
77,
28912,
1349,
1588,
480,
365,
18,
40,
67,
50,
67,
25750,
397,
1492,
397,
404,
30,
365,
18,
728,
77,
2... |
except PackageSackError: | except Errors.PackageSackError: | def _processConflict(self, dep): """processes a Conflict dep from the resolveDeps() method""" CheckDeps = 0 missingdep = 0 conflicts = 0 errormsgs = [] | 37d086716b13c5c452009272bdda9d7af5adfd56 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/37d086716b13c5c452009272bdda9d7af5adfd56/depsolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
10732,
12,
2890,
16,
5993,
4672,
3536,
18675,
279,
23460,
5993,
628,
326,
2245,
14430,
1435,
707,
8395,
225,
2073,
14430,
273,
374,
3315,
15037,
273,
374,
14450,
273,
374,
393,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
10732,
12,
2890,
16,
5993,
4672,
3536,
18675,
279,
23460,
5993,
628,
326,
2245,
14430,
1435,
707,
8395,
225,
2073,
14430,
273,
374,
3315,
15037,
273,
374,
14450,
273,
374,
393,
... |
(%s,'%s','%d','%s', UTC_TIMESTAMP(), UTC_TIMESTAMP());" % (transID,'Created', 0, se) res = self._update(req,connection) | (%s,'%s','%d','%s', UTC_TIMESTAMP(), UTC_TIMESTAMP());" % ( transID, 'Created', 0, se ) res = self._update( req, connection ) | def addTaskForTransformation(self,transID,lfns=[],se='Unknown',connection=False): """ Create a new task with the supplied files for a transformation. """ res = self._getConnectionTransID(connection,transID) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] #... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2174,
1290,
15292,
12,
2890,
16,
2338,
734,
16,
20850,
2387,
22850,
6487,
307,
2218,
4874,
2187,
4071,
33,
8381,
4672,
3536,
1788,
279,
394,
1562,
598,
326,
4580,
1390,
364,
279,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2174,
1290,
15292,
12,
2890,
16,
2338,
734,
16,
20850,
2387,
22850,
6487,
307,
2218,
4874,
2187,
4071,
33,
8381,
4672,
3536,
1788,
279,
394,
1562,
598,
326,
4580,
1390,
364,
279,
86... |
avg_max_query = """\ SELECT virus_"""+self.__vendor_name+"""_name as name, count(*) AS foo FROM reports.n_mail_msgs WHERE time_stamp >= %s AND time_stamp < %s AND virus_"""+self.__vendor_name+"""_name != ''""" | avg_max_query = """ SELECT virus_"""+self.__vendor_name+"""_name, virus_"""+self.__vendor_name+"""_detected FROM reports.n_virus_mail_totals WHERE trunc_time >= %s AND trunc_time < %s""" | def get_plot(self, end_date, report_days, host=None, user=None, email=None): if host or user: return None | 105b5e27bf63d007da247194879b178db12c5076 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/105b5e27bf63d007da247194879b178db12c5076/untangle_base_virus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4032,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
1479,
578,
729,
30,
327,
599,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4032,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
1479,
578,
729,
30,
327,
599,
2,
-100,
-100,
-1... |
+ fpformat.fix(task.dt*1000, 2).rjust(dtWidth) + fpformat.fix(task.avgDt*1000, 2).rjust(dtWidth) + fpformat.fix(task.maxDt*1000, 2).rjust(dtWidth) | + dtfmt % (task.dt*1000) + dtfmt % (task.avgDt*1000) + dtfmt % (task.maxDt*1000) | def __repr__(self): taskNameWidth = 32 dtWidth = 10 priorityWidth = 10 totalDt = 0 totalAvgDt = 0 str = "The taskMgr is handling:\n" str += ('taskList'.ljust(taskNameWidth) + 'dt(ms)'.rjust(dtWidth) + 'avg'.rjust(dtWidth) + 'max'.rjust(dtWidth) + 'priority'.rjust(priorityWidth) + '\n') str += '-------------------------... | d300812b0d426bcde501f23e5e4f8a87f04857f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/d300812b0d426bcde501f23e5e4f8a87f04857f0/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
20172,
2384,
273,
3847,
3681,
2384,
273,
1728,
4394,
2384,
273,
1728,
2078,
19739,
273,
374,
2078,
22823,
19739,
273,
374,
609,
273,
315,
1986,
1562,
9455... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
972,
12,
2890,
4672,
20172,
2384,
273,
3847,
3681,
2384,
273,
1728,
4394,
2384,
273,
1728,
2078,
19739,
273,
374,
2078,
22823,
19739,
273,
374,
609,
273,
315,
1986,
1562,
9455... |
print '!!! exception', arg[0] + ':', `arg[1]` | print '!!!', arg[0] + ':', `arg[1]` | def dispatch_exception(self, frame, arg): if self.stop_here(frame): print '!!! exception', arg[0] + ':', `arg[1]` self.ask_user(frame, arg[2]) return self.dispatch | 7ac1c81f4f4b45722a0589e3ff42861b7082835a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7ac1c81f4f4b45722a0589e3ff42861b7082835a/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
4064,
12,
2890,
16,
2623,
16,
1501,
4672,
309,
365,
18,
5681,
67,
14852,
12,
3789,
4672,
1172,
296,
25885,
2187,
1501,
63,
20,
65,
397,
4290,
2187,
1375,
3175,
63,
21,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
4064,
12,
2890,
16,
2623,
16,
1501,
4672,
309,
365,
18,
5681,
67,
14852,
12,
3789,
4672,
1172,
296,
25885,
2187,
1501,
63,
20,
65,
397,
4290,
2187,
1375,
3175,
63,
21,
65,
... |
encodings = ['iso-8859-1', 'koi8_r', 'koi8_u', 'utf8'] if iswindows: encodings = ['cp1252'] + encodings if encoding not in ['cp1252', 'utf8']: encodings = [encoding] + encodings txt, enc = None, None for encoding in encodings: try: txt = codecs.open(txtfile, 'rb', encoding).read() except UnicodeDecodeError: continue en... | enc = encoding if not encoding: encodings = ['cp1252', 'latin-1', 'iso-8859-1', 'koi8_r', 'koi8_u', 'utf8'] txt, enc = None, None for encoding in encodings: try: txt = codecs.open(txtfile, 'rb', encoding).read() except UnicodeDecodeError: continue enc = encoding break if txt == None: raise ConversionError, 'Could not d... | def generate_html(txtfile, encoding): ''' Convert txtfile to html and return a PersistentTemporaryFile object pointing to the file with the HTML. ''' encodings = ['iso-8859-1', 'koi8_r', 'koi8_u', 'utf8'] if iswindows: encodings = ['cp1252'] + encodings if encoding not in ['cp1252', 'utf8']: encodings = [encoding] + en... | a69e3991b3fb593db099175fbae3ba9c2b4fdae3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/a69e3991b3fb593db099175fbae3ba9c2b4fdae3/convert_from.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2620,
12,
5830,
768,
16,
2688,
4672,
9163,
4037,
6463,
768,
358,
1729,
471,
327,
279,
11049,
23808,
733,
17022,
358,
326,
585,
598,
326,
3982,
18,
9163,
2446,
273,
2688,
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,
2103,
67,
2620,
12,
5830,
768,
16,
2688,
4672,
9163,
4037,
6463,
768,
358,
1729,
471,
327,
279,
11049,
23808,
733,
17022,
358,
326,
585,
598,
326,
3982,
18,
9163,
2446,
273,
2688,
309,
... |
>>> old = _unittest_reportflags >>> set_unittest_reportflags(REPORT_NDIFF | | >>> import doctest >>> old = doctest._unittest_reportflags >>> doctest.set_unittest_reportflags(REPORT_NDIFF | | def set_unittest_reportflags(flags): """Sets the unittest option flags. The old flag is returned so that a runner could restore the old value if it wished to: >>> old = _unittest_reportflags >>> set_unittest_reportflags(REPORT_NDIFF | ... REPORT_ONLY_FIRST_FAILURE) == old True >>> import doc... | b42cca9e880de5e1b077521211e87fe1d97b94bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b42cca9e880de5e1b077521211e87fe1d97b94bd/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4873,
3813,
67,
6006,
7133,
12,
7133,
4672,
3536,
2785,
326,
2836,
3813,
1456,
2943,
18,
225,
1021,
1592,
2982,
353,
2106,
1427,
716,
279,
8419,
3377,
5217,
326,
1592,
460,
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,
444,
67,
4873,
3813,
67,
6006,
7133,
12,
7133,
4672,
3536,
2785,
326,
2836,
3813,
1456,
2943,
18,
225,
1021,
1592,
2982,
353,
2106,
1427,
716,
279,
8419,
3377,
5217,
326,
1592,
460,
309,... |
def func(): self.assertEqual(len(opsutils.dirs()), 0) opsutils.pushd(self.path3) func() self.assertEqual(len(opsutils.dirs()), 1) opsutils.pushd(self.path2) self.check_path(self.path2) opsutils.popd() self.check_path(self.path1) | def func(): self.assertEqual(len(opsutils.dirs()), 0) opsutils.pushd(self.path3) | 2cdfb4d3bfac0bbfe723260880764c2cc5a57317 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12635/2cdfb4d3bfac0bbfe723260880764c2cc5a57317/test_dirs_push_pop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
13332,
365,
18,
11231,
5812,
12,
1897,
12,
4473,
5471,
18,
8291,
1435,
3631,
374,
13,
6727,
5471,
18,
6206,
72,
12,
2890,
18,
803,
23,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
13332,
365,
18,
11231,
5812,
12,
1897,
12,
4473,
5471,
18,
8291,
1435,
3631,
374,
13,
6727,
5471,
18,
6206,
72,
12,
2890,
18,
803,
23,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
expected = """<ul> | expected = """\ <ul> | def test_option_leftover_chunk(self): expected = """<table class="something" id="something" name="something"> | 88609def743d20a7d029c063edd2cea59f15cf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/88609def743d20a7d029c063edd2cea59f15cf61/test_widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3482,
67,
298,
74,
24540,
67,
6551,
12,
2890,
4672,
2665,
273,
3536,
32,
2121,
667,
1546,
30289,
6,
612,
1546,
30289,
6,
508,
1546,
30289,
6441,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3482,
67,
298,
74,
24540,
67,
6551,
12,
2890,
4672,
2665,
273,
3536,
32,
2121,
667,
1546,
30289,
6,
612,
1546,
30289,
6,
508,
1546,
30289,
6441,
2,
-100,
-100,
-100,
-100,
-1... |
if version_number >= 1.1 and self.protocol_version >= "HTTP/1.1": | if version_number >= (1, 1) and self.protocol_version >= "HTTP/1.1": | def parse_request(self): """Parse a request (internal). | 5f4df3753eb974dbd1cf239be74f9c0bc8da5122 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5f4df3753eb974dbd1cf239be74f9c0bc8da5122/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2293,
12,
2890,
4672,
3536,
3201,
279,
590,
261,
7236,
2934,
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,
1109,
67,
2293,
12,
2890,
4672,
3536,
3201,
279,
590,
261,
7236,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
""" Try without this: def Destroy(self): if isinstance(self, AETextCtrl): super(AETextCtrl, self).Destroy() else: pass """ | def Copy(self): result = self.GetStringSelection() super(AETextCtrl, self).Copy() return result | 19661c6aa0c5600aa447d942355db4ec7d2b08bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/19661c6aa0c5600aa447d942355db4ec7d2b08bd/AttributeEditors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
12,
2890,
4672,
563,
273,
365,
18,
967,
780,
6233,
1435,
2240,
12,
16985,
1528,
12418,
16,
365,
2934,
2951,
1435,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
12,
2890,
4672,
563,
273,
365,
18,
967,
780,
6233,
1435,
2240,
12,
16985,
1528,
12418,
16,
365,
2934,
2951,
1435,
327,
563,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if self.outputFreq == "skip" and self.skip > 0: | if numTimeSteps > 0 and self.outputFreq == "skip" and self.skip > 0: | def open(self, totalTime, numTimeSteps): """ Prepare for writing data. """ logEvent = "%sopen" % self._loggingPrefix self._logger.eventBegin(logEvent) | 446e3c02f38b6695257a5c611431f04ac97e26f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8645/446e3c02f38b6695257a5c611431f04ac97e26f6/OutputManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
2078,
950,
16,
818,
950,
11811,
4672,
3536,
7730,
364,
7410,
501,
18,
3536,
25424,
273,
2213,
87,
3190,
6,
738,
365,
6315,
11167,
2244,
365,
6315,
4901,
18,
2575,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
2078,
950,
16,
818,
950,
11811,
4672,
3536,
7730,
364,
7410,
501,
18,
3536,
25424,
273,
2213,
87,
3190,
6,
738,
365,
6315,
11167,
2244,
365,
6315,
4901,
18,
2575,
8... |
'wpConfirmB': '1' | 'wpConfirmB': '1', 'wpEditToken': token, | def delete(self, reason=None, prompt=True, throttle=True, mark=False): """Deletes the page from the wiki. | 9fc1bc84ab7232d5777e367445476322ea4a7c79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/9fc1bc84ab7232d5777e367445476322ea4a7c79/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3971,
33,
7036,
16,
6866,
33,
5510,
16,
18304,
33,
5510,
16,
2267,
33,
8381,
4672,
3536,
7551,
326,
1363,
628,
326,
9050,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
3971,
33,
7036,
16,
6866,
33,
5510,
16,
18304,
33,
5510,
16,
2267,
33,
8381,
4672,
3536,
7551,
326,
1363,
628,
326,
9050,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
[child._recycle() for child in cursor] | [child._recycle(False) for child in cursor] | def _recycle(self): """ Deletes an item logically. Bypasses security checks. @return: None """ if not self._isDeleted: db._db.handle_delete(self, False) self._isDeleted = int(self._isDeleted) + 1 if self.isCollection: conditions = (('displayName', (None, None)), ) cursor = db._db.query(conditions) cursor.set_scope(s... | fb9074cb03415822b4c6ea8376cd653e4c1aecfa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2504/fb9074cb03415822b4c6ea8376cd653e4c1aecfa/systemObjects.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
266,
13946,
12,
2890,
4672,
3536,
17973,
392,
761,
4058,
1230,
18,
605,
25567,
281,
4373,
4271,
18,
225,
632,
2463,
30,
599,
3536,
309,
486,
365,
6315,
291,
7977,
30,
1319,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
266,
13946,
12,
2890,
4672,
3536,
17973,
392,
761,
4058,
1230,
18,
605,
25567,
281,
4373,
4271,
18,
225,
632,
2463,
30,
599,
3536,
309,
486,
365,
6315,
291,
7977,
30,
1319,
6315,
... |
[c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.added], [c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.unchanged], [c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.deleted], ) | [(c is not None and c is not PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.added], [(c is not None and c is not PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.unchanged], [(c is not None and c is not PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.deleted], ) | def as_state(self): return History( [c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.added], [c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.unchanged], [c not in (None, PASSIVE_NO_RESULT) and instance_state(c) or None for c in self.deleted], ) | 5e2b2bbd95106cfc60df532da3f215f14da82961 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/5e2b2bbd95106cfc60df532da3f215f14da82961/attributes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2019,
12,
2890,
4672,
327,
16058,
12,
306,
12,
71,
353,
486,
599,
471,
276,
353,
486,
17882,
5354,
67,
3417,
67,
12289,
13,
471,
791,
67,
2019,
12,
71,
13,
578,
599,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2019,
12,
2890,
4672,
327,
16058,
12,
306,
12,
71,
353,
486,
599,
471,
276,
353,
486,
17882,
5354,
67,
3417,
67,
12289,
13,
471,
791,
67,
2019,
12,
71,
13,
578,
599,
364,
... |
ValueError: j values must be integer or half integer and fulfil the triangle relation | ValueError: j values must be integer or half integer and fulfill the triangle relation | def wigner_6j(j_1, j_2, j_3, j_4, j_5, j_6, prec=None): r""" Calculate the Wigner 6j symbol `Wigner6j(j_1,j_2,j_3,j_4,j_5,j_6)`. INPUT: - ``j_1``, ..., ``j_6`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation. OUTPUT: rational number ... | 7df69c5c6f107763eb9f25a2174930b0961c0f48 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7df69c5c6f107763eb9f25a2174930b0961c0f48/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
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,
341,
724,
264,
67,
26,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
localized_strings = getStrings(os.path.join(translation_dir, locale, | localized_strings = GetStrings(os.path.join(translation_dir, locale, | def main(argv): if len(argv) < 4: print __doc__ % argv[0] sys.exit(1) locales = [] translation_dir = argv.pop(-1) source_file = argv.pop(-1) target_file = argv.pop(-1) defines = getDefines(argv) # If this is an official build, warnings are treated as errors. treat_warnings_as_errors = defines.get('OFFICIAL_BUILD') !... | 00ea35b9791951af01325916fb87ff7ff1bbf5a5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00ea35b9791951af01325916fb87ff7ff1bbf5a5/parse_stab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
309,
562,
12,
19485,
13,
411,
1059,
30,
1172,
1001,
2434,
972,
738,
5261,
63,
20,
65,
2589,
18,
8593,
12,
21,
13,
225,
6922,
273,
5378,
225,
4794,
67,
1214,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
309,
562,
12,
19485,
13,
411,
1059,
30,
1172,
1001,
2434,
972,
738,
5261,
63,
20,
65,
2589,
18,
8593,
12,
21,
13,
225,
6922,
273,
5378,
225,
4794,
67,
1214,
27... |
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", | opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", | def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:m", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir="]) except getopt.error, msg: sys.stderr.write("%s: %s\n" % (sys.a... | ed1ee6edcef108d19d14203d66a5b954531dd12f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed1ee6edcef108d19d14203d66a5b954531dd12f/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
19485,
273,
599,
4672,
1930,
336,
3838,
225,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
775,
30,
1500,
16,
11243,
67,
19485,
273,
336,
3838,
18,
588,
3838,
12,
1948... |
furthestBlock.childNodes.remove(furthestBlock) | furthestBlock.parent.removeChild(furthestBlock) | def endTagFormatting(self, name): """The much-feared adoption agency algorithm""" # XXX I don't like while True + break... too much # possibility of infinite loops while True: # Step 1 paragraph 1 afeElement = self.parser.elementInActiveFormattingElements(name) if not afeElement or (afeElement in self.parser.openElemen... | c884e7829c941ebf20a9cd32d2f4dfde638f64b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/c884e7829c941ebf20a9cd32d2f4dfde638f64b8/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29765,
23974,
12,
2890,
16,
508,
4672,
3536,
1986,
9816,
17,
3030,
2258,
1261,
3482,
1737,
2075,
4886,
8395,
468,
11329,
467,
2727,
1404,
3007,
1323,
1053,
397,
898,
2777,
4885,
9816,
468,... |
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,
... | |
instnode.cleanfields[field] = node | instnode.arrayfields[field] = node | def optimize_getarrayitem_gc(op, spec): instnode = spec.getnode(op.args[0]) if not instnode.possibly_virtualized_list: return False if not spec.getnode(op.args[1]).const: raise VirtualizedListAccessedWithVariableArg() field = spec.getnode(op.args[1]).source node = instnode.cleanfields.get(field, None) if node is not No... | b4b9584bcc1d101ec7209ae539b109dd9a98ee6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/b4b9584bcc1d101ec7209ae539b109dd9a98ee6d/optimize2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
67,
588,
1126,
1726,
67,
13241,
12,
556,
16,
857,
4672,
1804,
2159,
273,
857,
18,
588,
2159,
12,
556,
18,
1968,
63,
20,
5717,
309,
486,
1804,
2159,
18,
917,
8781,
67,
12384,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10979,
67,
588,
1126,
1726,
67,
13241,
12,
556,
16,
857,
4672,
1804,
2159,
273,
857,
18,
588,
2159,
12,
556,
18,
1968,
63,
20,
5717,
309,
486,
1804,
2159,
18,
917,
8781,
67,
12384,
1... |
for type, string, tid, alias in entries: | for type, value, tid, alias in entries: | def add_entry(word, subword, dic=new): entry = dic.get(word) if not entry: dic[word] = entry = [[], {}] if subword: add_entry(subword, '', dic=entry[1]) else: try: entry[0].append(builder.get_relative_uri('genindex', fn) + '#' + tid) except NoUri: pass | ee79eebe5d0978484fe53c99134a639351f09248 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/ee79eebe5d0978484fe53c99134a639351f09248/environment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4099,
12,
1095,
16,
720,
1095,
16,
11681,
33,
2704,
4672,
1241,
273,
11681,
18,
588,
12,
1095,
13,
309,
486,
1241,
30,
11681,
63,
1095,
65,
273,
1241,
273,
12167,
6487,
2618,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4099,
12,
1095,
16,
720,
1095,
16,
11681,
33,
2704,
4672,
1241,
273,
11681,
18,
588,
12,
1095,
13,
309,
486,
1241,
30,
11681,
63,
1095,
65,
273,
1241,
273,
12167,
6487,
2618,
... |
] | aaigrid_8 ] | def aaigrid_8(): tst = gdaltest.GDALTest( 'AAIGRID', 'byte.tif', 1, 4672 ) return tst.testCreateCopy( vsimem = 1 ) | d9d9cdea9038f56b93c87cb4d24f037bd726df18 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/d9d9cdea9038f56b93c87cb4d24f037bd726df18/aaigrid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12391,
360,
1691,
67,
28,
13332,
225,
268,
334,
273,
15551,
2390,
395,
18,
27338,
1013,
4709,
12,
296,
5284,
3047,
54,
734,
2187,
296,
7229,
18,
26922,
2187,
404,
16,
17077,
9060,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12391,
360,
1691,
67,
28,
13332,
225,
268,
334,
273,
15551,
2390,
395,
18,
27338,
1013,
4709,
12,
296,
5284,
3047,
54,
734,
2187,
296,
7229,
18,
26922,
2187,
404,
16,
17077,
9060,
262,
... |
def substitutename (name, objlist, globals, locals): if len(name) == 0: return '$' try: v = eval(name, globals, locals) except NameError: return '$' + name try: for objtype,objstr,objs in objlist: if isinstance(v, objtype): objs += [v] return '$' + objstr + str(len(objs)) except: pass return substitutevar(v) | def substitutename(name, objlist, globals, locals): if len(name) == 0: return '$' try: v = eval(name, globals, locals) except NameError: return '$' + name try: for objtype,objstr,objs in objlist: if isinstance(v, objtype): objs += [v] return '$' + objstr + str(len(objs)) except: pass return substitutevar(v) | def substitutename (name, objlist, globals, locals): | 4f69430b7199d7a36568f5b8c5606ff94d204949 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/4f69430b7199d7a36568f5b8c5606ff94d204949/substitute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7461,
322,
1069,
261,
529,
16,
1081,
1098,
16,
10941,
16,
8985,
4672,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7461,
322,
1069,
261,
529,
16,
1081,
1098,
16,
10941,
16,
8985,
4672,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
avg(100.0 * (l.price_unit*l.product_qty*u.factor) / (t.standard_price*l.product_qty*u.factor))::decimal(16,2) as negociation, | avg(case when t.standard_price <= 0 then (100.0 * (l.price_unit*l.product_qty*u.factor)) else (100.0 * (l.price_unit*l.product_qty*u.factor) / (t.standard_price*l.product_qty*u.factor)) end) as negociation, | def init(self, cr): tools.sql.drop_view_if_exists(cr, 'purchase_report') cr.execute(""" create or replace view purchase_report as ( select min(l.id) as id, s.date_order as date, to_char(s.date_order, 'YYYY') as name, to_char(s.date_order, 'MM') as month, to_char(s.date_order, 'YYYY-MM-DD') as day, s.state, s.date_appro... | 876bcf590be102c0ac1cd0a0f0048fe20f7fe929 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/876bcf590be102c0ac1cd0a0f0048fe20f7fe929/purchase_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
4669,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
12688,
12104,
67,
6006,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
4669,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
12688,
12104,
67,
6006,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476... |
def resolve(self, values, variables): | def resolve(self, values, output, variables): | def resolve(self, values, variables): values = variables.replace_list(values) self._arguments.check_arg_limits(values) if self._expects_varargs() and self._last_is_not_list(values): values[self._minargs:] = [values[self._minargs:]] return self._arguments.arg_coercer(values), {} | e26fd95ccf07cf1eb1c1a44f9a80860ac2939946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/e26fd95ccf07cf1eb1c1a44f9a80860ac2939946/arguments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
924,
16,
876,
16,
3152,
4672,
924,
273,
3152,
18,
2079,
67,
1098,
12,
2372,
13,
365,
6315,
7099,
18,
1893,
67,
3175,
67,
14270,
12,
2372,
13,
309,
365,
6315,
1233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
924,
16,
876,
16,
3152,
4672,
924,
273,
3152,
18,
2079,
67,
1098,
12,
2372,
13,
365,
6315,
7099,
18,
1893,
67,
3175,
67,
14270,
12,
2372,
13,
309,
365,
6315,
1233... |
except RuntimeError: raise TypeError, "no possible coercion implemented" | except RuntimeError: raise TypeError, "no possible coercion implemented" | def __init__(self, parent, value): """ Create element of a finite field. | 5cd2c654f9a2b18447febc610c587cfe59e18c90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5cd2c654f9a2b18447febc610c587cfe59e18c90/finite_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
460,
4672,
3536,
1788,
930,
434,
279,
25922,
652,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
460,
4672,
3536,
1788,
930,
434,
279,
25922,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
lib_opts = gen_lib_options (self.library_dirs + library_dirs, self.libraries + libraries, "-L%s", "-l%s") | lib_opts = gen_lib_options (self, self.library_dirs + library_dirs, self.libraries + libraries) | def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): | 2eb3867e8dff3a0d22bd6a90398938ccc002e01b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2eb3867e8dff3a0d22bd6a90398938ccc002e01b/unixccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
2870,
67,
1484,
1968,
33,
7036,... |
tests = [Signed_TestCase, Unsigned_TestCase] | tests = [Signed_TestCase, Unsigned_TestCase, Tuple_TestCase] | def test_main(): tests = [Signed_TestCase, Unsigned_TestCase] try: from _testcapi import getargs_L, getargs_K except ImportError: pass # PY_LONG_LONG not available else: tests.append(LongLong_TestCase) test_support.run_unittest(*tests) | 4a59717597c743b1b54a4b6fcfe11f96ee05bbe6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4a59717597c743b1b54a4b6fcfe11f96ee05bbe6/test_getargs2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
7434,
273,
306,
12294,
67,
4709,
2449,
16,
1351,
5679,
67,
4709,
2449,
16,
7257,
67,
4709,
2449,
65,
775,
30,
628,
389,
3813,
71,
2425,
1930,
336,
1968,
67,
48,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
13332,
7434,
273,
306,
12294,
67,
4709,
2449,
16,
1351,
5679,
67,
4709,
2449,
16,
7257,
67,
4709,
2449,
65,
775,
30,
628,
389,
3813,
71,
2425,
1930,
336,
1968,
67,
48,
... |
cxx = conf.find_program(compiler_name, path_list=MSVC_PATH) | def get_msvc_version(conf, compiler, version, target, vcvars): debug('msvc: get_msvc_version: ' + compiler + ' ' + version + ' ' + target + ' ...') batfile = os.path.join(conf.blddir, "waf-print-msvc.bat") f = open(batfile, 'w') f.write("""@echo off | 05495af483649bfc6f90e3fef7d4b6f6cdb27e4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/05495af483649bfc6f90e3fef7d4b6f6cdb27e4d/msvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
959,
4227,
67,
1589,
12,
3923,
16,
5274,
16,
1177,
16,
1018,
16,
12802,
4699,
4672,
1198,
2668,
959,
4227,
30,
336,
67,
959,
4227,
67,
1589,
30,
296,
397,
5274,
397,
296,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
959,
4227,
67,
1589,
12,
3923,
16,
5274,
16,
1177,
16,
1018,
16,
12802,
4699,
4672,
1198,
2668,
959,
4227,
30,
336,
67,
959,
4227,
67,
1589,
30,
296,
397,
5274,
397,
296,
29... | |
self.auto_accept_files = auto_accept_files | self.logger = logger | def __init__(self, engine, account, console, auto_accept_files=False): self.engine = engine self.account = account self.console = console self.auto_accept_files = auto_accept_files self.sessions = [] self.current_session = None self.procs = proc.RunningProcSet() NotificationCenter().add_observer(NotifyFromThreadObserve... | 1ebda03bc28a719ce0034f7073cb487fd08808b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/1ebda03bc28a719ce0034f7073cb487fd08808b3/sip_session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4073,
16,
2236,
16,
2983,
16,
3656,
67,
9436,
67,
2354,
33,
8381,
4672,
365,
18,
8944,
273,
4073,
365,
18,
4631,
273,
2236,
365,
18,
8698,
273,
2983,
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,
1001,
2738,
972,
12,
2890,
16,
4073,
16,
2236,
16,
2983,
16,
3656,
67,
9436,
67,
2354,
33,
8381,
4672,
365,
18,
8944,
273,
4073,
365,
18,
4631,
273,
2236,
365,
18,
8698,
273,
2983,
3... |
catMethod = self.Categorization if catMethod == 0: discretizer = orange.EntropyDiscretization() else: nInt = self.NumberOfIntervals if catMethod==1: discretizer = orange.EquiNDiscretization(numberOfIntervals=nInt) else: discretizer = orange.EquiDistDiscretization(numberOfIntervals=nInt) self.catData = orange.Preproce... | discretizer = self.methods[self.Categorization][1] discretizer.numberOfIntervals=int(self.NumberOfIntervals) self.discData = orange.Preprocessor_discretize(self.dataset, method=discretizer) | def categorize(self): if self.dataset == None: return | dd1d765dc3e19161f4c3e8769c6d619e4b07ec77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/dd1d765dc3e19161f4c3e8769c6d619e4b07ec77/OWCategorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31921,
554,
12,
2890,
4672,
309,
365,
18,
8682,
422,
599,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31921,
554,
12,
2890,
4672,
309,
365,
18,
8682,
422,
599,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def init(self): self = super(PyObjCDebuggingDelegate, self).init() self.setVerbosity_(DEFAULTVERBOSITY) return self | verbosity = objc.ivar('verbosity', 'i') | def init(self): self = super(PyObjCDebuggingDelegate, self).init() self.setVerbosity_(DEFAULTVERBOSITY) return self | 3dbe5364d1bb1b6f13a97c06192827e669a7ff2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/3dbe5364d1bb1b6f13a97c06192827e669a7ff2f/Debugging.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
9413,
2675,
39,
2829,
1998,
9586,
16,
365,
2934,
2738,
1435,
365,
18,
542,
30594,
67,
12,
5280,
2204,
25400,
13,
327,
365,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
2890,
4672,
365,
273,
2240,
12,
9413,
2675,
39,
2829,
1998,
9586,
16,
365,
2934,
2738,
1435,
365,
18,
542,
30594,
67,
12,
5280,
2204,
25400,
13,
327,
365,
2,
-100,
-100,
-100... |
cb(True) | reactor.callWhenRunning(cb, True) | def cb(first): try: reactor.listenTCP(tcp_port, dfactory, interface='127.0.0.1') except twisted.internet.error.CannotListenError: if first: LOG.warning("TCP bind failed. Killing old process...") if terminate(): LOG.info("Ok. Sleeping...") reactor.callLater(2.0, cb, False) else: LOG.error("Kill failed. Giving up.") r... | bf6661232dfab42aff451f0196edec35aa1d8e77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11503/bf6661232dfab42aff451f0196edec35aa1d8e77/dtella.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
12,
3645,
4672,
775,
30,
19178,
18,
18085,
13891,
12,
14832,
67,
655,
16,
302,
6848,
16,
1560,
2218,
14260,
18,
20,
18,
20,
18,
21,
6134,
1335,
2339,
25444,
18,
267,
14726,
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,
2875,
12,
3645,
4672,
775,
30,
19178,
18,
18085,
13891,
12,
14832,
67,
655,
16,
302,
6848,
16,
1560,
2218,
14260,
18,
20,
18,
20,
18,
21,
6134,
1335,
2339,
25444,
18,
267,
14726,
18,
... |
return "-".join(map(str, [tile.layer.name, tile.z , tile.x, tile.y])) | if self.use_tms_paths == True or self.use_tms_paths = "flipped": grid = tile.layer.grid(tile.z) y = tile.y if self.use_tms_paths == "flipped": y = int(grid[1] - 1 - tile.y) version = "1.0.0" path = "/".join(map(str, [version, tile.layer.name, tile.z, tile.x, y])) path = ".".join(map(str, [path, tile.layer.extension])) ... | def getKey(self, tile): return "-".join(map(str, [tile.layer.name, tile.z , tile.x, tile.y])) | e4c94f563f9ec7b1e14bb660420cd8d897535752 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6188/e4c94f563f9ec7b1e14bb660420cd8d897535752/AWSS3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3579,
12,
2890,
16,
4769,
4672,
327,
7514,
18,
5701,
12,
1458,
12,
701,
16,
306,
15368,
18,
6363,
18,
529,
16,
4769,
18,
94,
269,
4769,
18,
92,
16,
4769,
18,
93,
22643,
225,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3579,
12,
2890,
16,
4769,
4672,
327,
7514,
18,
5701,
12,
1458,
12,
701,
16,
306,
15368,
18,
6363,
18,
529,
16,
4769,
18,
94,
269,
4769,
18,
92,
16,
4769,
18,
93,
22643,
225,
2,
-10... |
self.R_spin = TSpinbox(frame, min = 0, max = 255, step = 1, vartype = 1, width = 7, | self.R_spin = TSpinbox(frame, min = 0, max = 255, step = 1, vartype = 0, width = 7, | def __init__(self, parent, callback, **kw): self.callback=callback TFrame.__init__(self, parent, style='FlatFrame', **kw) self.R_value=IntVar(0) self.G_value=IntVar(0) self.B_value=IntVar(0) self.HTML_value=StringVar('') html_frame = TFrame(self, borderwidth = 2, style='FlatFrame') html_frame.pack(side = BOTTOM) | 962c4d6d83a02520b20c005a50fa63867e6f48bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/962c4d6d83a02520b20c005a50fa63867e6f48bf/colordigitizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1348,
16,
2826,
9987,
4672,
365,
18,
3394,
33,
3394,
399,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
2154,
2218,
16384,
3219,
2187,
2826,
99... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1348,
16,
2826,
9987,
4672,
365,
18,
3394,
33,
3394,
399,
3219,
16186,
2738,
972,
12,
2890,
16,
982,
16,
2154,
2218,
16384,
3219,
2187,
2826,
99... |
data = {} data['play_count'] = self._extract(track, 'playcount') data['images'] = self._extract_all(track, 'image') list.append(Track(artist, title, self.api_key, self.secret, self.session_key, data)) | list.append(Track(artist, title, *self.auth_data)) | def getTopTracks(self): """Returns a list of the most listened to Tracks by this artist. """ params = self._getParams() doc = Request(self, 'artist.getTopTracks', self.api_key, params).execute() if not doc: return None list = [] for track in doc.getElementsByTagName('track'): t = {} title = self._extract(track, 'na... | e39fc5ab89fc4c2656db160d5e45c18284ee29b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/e39fc5ab89fc4c2656db160d5e45c18284ee29b7/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
22138,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
4486,
6514,
329,
358,
11065,
87,
635,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13729,
22138,
12,
2890,
4672,
3536,
1356,
279,
666,
434,
326,
4486,
6514,
329,
358,
11065,
87,
635,
333,
15469,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
1567,
12,
... |
if ordinal is None: msg = self.reporter.error( ('Enumerated list start value invalid at line %s: ' '"%s" (sequence %r)' % (self.state_machine.abs_line_number(), text, sequence))) self.parent += msg indented, line_offset, blank_finish = \ self.state_machine.get_known_indented(match.end()) bq = self.block_quote(indented,... | if not self.is_enumerated_list_item(ordinal, sequence, format): raise statemachine.TransitionCorrection('text') | def enumerator(self, match, context, next_state): """Enumerated List Item""" format, sequence, text, ordinal = self.parse_enumerator(match) if ordinal is None: msg = self.reporter.error( ('Enumerated list start value invalid at line %s: ' '"%s" (sequence %r)' % (self.state_machine.abs_line_number(), text, sequence))) s... | bffad4246d415e1bdcca82edd33fc85e30ba6755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/bffad4246d415e1bdcca82edd33fc85e30ba6755/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24679,
12,
2890,
16,
845,
16,
819,
16,
1024,
67,
2019,
4672,
3536,
3572,
19007,
987,
4342,
8395,
740,
16,
3102,
16,
977,
16,
12675,
273,
365,
18,
2670,
67,
7924,
7385,
12,
1916,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24679,
12,
2890,
16,
845,
16,
819,
16,
1024,
67,
2019,
4672,
3536,
3572,
19007,
987,
4342,
8395,
740,
16,
3102,
16,
977,
16,
12675,
273,
365,
18,
2670,
67,
7924,
7385,
12,
1916,
13,
... |
yield "<div id='build-counts' class='build-section'>\n" yield "<h2>Build counts:</h2>\n" yield "<table class='real'>\n" yield "<thead><tr><th>Tree</th><th>Total</th><th>Broken</th><th>Panic</th><th>Test coverage</th></tr></thead>\n" yield "<tbody>\n" | yield "<div id='build-counts' class='build-section'>" yield "<h2>Build counts:</h2>" yield "<table class='real'>" yield "<thead><tr><th>Tree</th><th>Total</th><th>Broken</th><th>Panic</th><th>Test coverage</th></tr></thead>" yield "<tbody>" | def render_html(self, myself): """view build summary""" | 6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
2620,
12,
2890,
16,
3399,
2890,
4672,
3536,
1945,
1361,
4916,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1743,
67,
2620,
12,
2890,
16,
3399,
2890,
4672,
3536,
1945,
1361,
4916,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
], CONTEXT) | ], 0, None, None, CONTEXT) | def test0050char(self): ''' Test Char. ''' char1_id = self.char.create({ 'char': 'Test', }, CONTEXT) self.assert_(char1_id) | 52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
713,
3361,
3001,
12,
2890,
4672,
9163,
7766,
3703,
18,
9163,
1149,
21,
67,
350,
273,
365,
18,
3001,
18,
2640,
12590,
296,
3001,
4278,
296,
4709,
2187,
19879,
13862,
13,
365,
18,
... |
EXAMPLES: | EXAMPLES:: | def __repr__(self): r""" Print a TestReduceNoGetinitargs. | a4aad1557cdf06ed8562711534ca467dff85c855 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a4aad1557cdf06ed8562711534ca467dff85c855/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
436,
8395,
3038,
279,
7766,
12944,
2279,
967,
2738,
1968,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
436,
8395,
3038,
279,
7766,
12944,
2279,
967,
2738,
1968,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec) | Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec=absprec) | def __init__(self, parent, x=None, check=True, is_gen = False, construct=False, absprec=None): Polynomial_generic_dense.__init__(self, parent, x, check, is_gen, absprec) | d660d3738f4382cdd8891c06c37337162e7a705f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d660d3738f4382cdd8891c06c37337162e7a705f/polynomial_element_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
33,
7036,
4672,
6730,
13602,
67,
13540,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
33,
7036,
4672,
6730,
13602,
67,
13540,
67... |
""" | """ | >>> def E(z, m): | 356f116413259d23b32151ce7fa1113ab7f96751 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11851/356f116413259d23b32151ce7fa1113ab7f96751/function_docs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
512,
12,
94,
16,
312,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
512,
12,
94,
16,
312,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"Id is not the same than existing one: " + str(line[i]) + ' !\n') | _("Id is not the same than existing one: %s")%(line[i])) | def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in... | a4f26ab675d1e9985259806b27d349535c04d876 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/a4f26ab675d1e9985259806b27d349535c04d876/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... |
auth = base64.encodestring(auth) | auth = base64.encodestring(urllib.unquote(auth)) | def get_host_info(self, host): | 768c98bb0b974cd3b5421252f8263e6d4afb8f79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/768c98bb0b974cd3b5421252f8263e6d4afb8f79/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
1479,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1652,
336,
67,
2564,
67,
1376,
12,
2890,
16,
1479,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
error("package name has empty version string") | bb.error("package name has empty version string") | def ververify(myorigval,silent=1): """Returns 1 if given a valid version string, els 0. Valid versions are in the format <v1>.<v2>...<vx>[a-z,_{_package_weights_}[vy]] >>> ververify('2.4.20') 1 >>> ververify('2.4..20') # two dots 0 >>> ververify('2.x.20') # 'x' is not numeric 0 >>> ververify('2.4.20... | 8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1924,
8705,
12,
4811,
4949,
1125,
16,
21862,
33,
21,
4672,
3536,
1356,
404,
309,
864,
279,
923,
1177,
533,
16,
7842,
374,
18,
2364,
5244,
854,
316,
326,
740,
225,
411,
90,
21,
18652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1924,
8705,
12,
4811,
4949,
1125,
16,
21862,
33,
21,
4672,
3536,
1356,
404,
309,
864,
279,
923,
1177,
533,
16,
7842,
374,
18,
2364,
5244,
854,
316,
326,
740,
225,
411,
90,
21,
18652,
... |
for match in re.findall(r'(?:^|[\s])(@\w+)', text): | for match in re.findall(r'(?:^|[\s])(@\w+)', text, re.UNICODE): | def on_quickadd_activate(self, widget): text = self.quickadd_entry.get_text() due_date = no_date defer_date = no_date if text: tags, notagonly = self.get_selected_tags() # Get tags in the title #NOTE: the ?: tells regexp that the first one is # a non-capturing group, so it must not be returned # to findall. http://www.... | c9fe504b71afd780119c02e9f9798b1607181321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/c9fe504b71afd780119c02e9f9798b1607181321/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
19525,
1289,
67,
10014,
12,
2890,
16,
3604,
4672,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
1158,
67,
712,
2220,
67,
712,
273,
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,
603,
67,
19525,
1289,
67,
10014,
12,
2890,
16,
3604,
4672,
977,
273,
365,
18,
19525,
1289,
67,
4099,
18,
588,
67,
955,
1435,
6541,
67,
712,
273,
1158,
67,
712,
2220,
67,
712,
273,
11... |
if (os.path.isdir(dstdir)): return(0); | if (os.path.isdir(dstdir)): return(0) | def CopyTree(dstdir,srcdir): if (os.path.isdir(dstdir)): return(0); if (COMPILER=="MSVC7"): cmd = "xcopy.exe /I/Y/E/Q \""+srcdir+"\" \""+dstdir+"\"" if (COMPILER=="LINUXA"): cmd = "cp --recursive --force "+srcdir+" "+dstdir oscmd(cmd) updatefiledate(dstdir) | aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5631,
2471,
12,
11057,
1214,
16,
4816,
1214,
4672,
309,
261,
538,
18,
803,
18,
291,
1214,
12,
11057,
1214,
3719,
30,
327,
12,
20,
13,
309,
261,
31075,
14668,
31713,
3537,
13464,
27,
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,
5631,
2471,
12,
11057,
1214,
16,
4816,
1214,
4672,
309,
261,
538,
18,
803,
18,
291,
1214,
12,
11057,
1214,
3719,
30,
327,
12,
20,
13,
309,
261,
31075,
14668,
31713,
3537,
13464,
27,
6,... |
color_by_label=False, heights=None, edge_style=None, save_pos=False): | color_by_label=False, heights=None, edge_style=None, save_pos=False, tree_root=None, tree_orientation="down"): | def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, talk=False, color_by_label=False, heights=None, edge_style=None, save_pos=False): """ Returns a graphics... | 39ed6250704cfa0559d254d3cea69e4e49ebb300 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/39ed6250704cfa0559d254d3cea69e4e49ebb300/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
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,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... |
dump the header and diffs for one or more changesets Print the changeset header and diffs for one or more revisions. The information shown in the changeset header is: author, changeset hash, parent and commit comment. Output may be to a file, in which case the name of the file is given using a format string. The fo... | Export patches with the changeset header and diffs for one or more revisions. If multiple revisions are given, one plain text unified diff file is generated for each one. These files should be applied using import_patch in order from smallest to largest revision number. The information shown in the changeset header ... | def export(self, filename=None, text=False, options=''): r""" dump the header and diffs for one or more changesets | 408d738c008dd203b8f05d2dd37890a1eccc99eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/408d738c008dd203b8f05d2dd37890a1eccc99eb/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
1544,
33,
7036,
16,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
12,
2890,
16,
1544,
33,
7036,
16,
977,
33,
8381,
16,
702,
2218,
11,
4672,
436,
8395,
4657,
326,
1446,
471,
15250,
364,
1245,
578,
1898,
3478,
2413,
2,
-100,
-100,
-100,
-100,
-10... |
print "Computing largest conductor." | def largest_conductor(self): """ The largest conductor for which the database is complete. OUTPUT: int -- largest conductor | 6fe1c9b14ea38d085b8198c36885091d9b1662aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6fe1c9b14ea38d085b8198c36885091d9b1662aa/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12756,
67,
591,
1828,
280,
12,
2890,
4672,
3536,
1021,
12756,
356,
1828,
280,
364,
1492,
326,
2063,
353,
3912,
18,
225,
11550,
30,
509,
1493,
12756,
356,
1828,
280,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12756,
67,
591,
1828,
280,
12,
2890,
4672,
3536,
1021,
12756,
356,
1828,
280,
364,
1492,
326,
2063,
353,
3912,
18,
225,
11550,
30,
509,
1493,
12756,
356,
1828,
280,
2,
-100,
-100,
-100,
... | |
inst_part = [('$(INSTALL) %s "$(DEST_DIR)\$(DATA_TYPE)"' % x) | inst_part = [('$(INSTALL) %s "$(DEST_DIR)\data\$(DATA_TYPE)"' % x) | def expand_template(makefile, name): if name == 'DATA': lst = get_list(makefile, '\w+_DATA') list_part = name + ' =' + ' \\\n\t'.join([''] + lst) inst_part = [('$(INSTALL) %s "$(DEST_DIR)\$(DATA_TYPE)"' % x) for x in lst] inst_part = '\n\t'.join(['install-data: data'] + inst_part) return list_part + '\n\n' + inst_part ... | 048a56801b8e206dc52da6238be04b05354badd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/048a56801b8e206dc52da6238be04b05354badd4/update-msvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
3202,
12,
6540,
768,
16,
508,
4672,
309,
508,
422,
296,
4883,
4278,
9441,
273,
336,
67,
1098,
12,
6540,
768,
16,
2337,
91,
15,
67,
4883,
6134,
666,
67,
2680,
273,
508,
397,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
3202,
12,
6540,
768,
16,
508,
4672,
309,
508,
422,
296,
4883,
4278,
9441,
273,
336,
67,
1098,
12,
6540,
768,
16,
2337,
91,
15,
67,
4883,
6134,
666,
67,
2680,
273,
508,
397,... |
command = "glite-wms-job-output --json --noint --dir " \ + outdir + " " + job.runningJob['schedulerId'] | command = "glite-wms-job-output --json --noint --dir /tmp/ " \ + job.runningJob['schedulerId'] | def purgeService( self, obj ): """ Purge job (even bulk) from wms """ | 43f247e4d781bea7996460f4eaa908072a35551d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/43f247e4d781bea7996460f4eaa908072a35551d/SchedulerGLite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
1179,
12,
365,
16,
1081,
262,
30,
3536,
14466,
908,
1719,
261,
16728,
8280,
13,
628,
341,
959,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
1179,
12,
365,
16,
1081,
262,
30,
3536,
14466,
908,
1719,
261,
16728,
8280,
13,
628,
341,
959,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
match=re.search(rec[4]+'\s*(([-]*\d+(\.\d+)?(e[+-]\d+)?)\s*)+', line) | match=re.search(rec[4]+'\s*((([-]*\d+(\.\d+)?(e[+-]\d+)?)\s*)+)', line) | def check_element_rec (time, elem, gp, kwd, value, line): global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0]=='er') and timeflag and (elem == rec[2]) and (gp == rec[3])): | 3b254563f2924fd9151678e2bb7606b4ffcedca1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1573/3b254563f2924fd9151678e2bb7606b4ffcedca1/extractor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2956,
67,
3927,
261,
957,
16,
3659,
16,
4178,
16,
417,
3623,
16,
460,
16,
980,
4672,
2552,
1950,
3053,
364,
277,
3927,
16,
3927,
316,
4241,
12,
1355,
3927,
4672,
309,
261,
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,
866,
67,
2956,
67,
3927,
261,
957,
16,
3659,
16,
4178,
16,
417,
3623,
16,
460,
16,
980,
4672,
2552,
1950,
3053,
364,
277,
3927,
16,
3927,
316,
4241,
12,
1355,
3927,
4672,
309,
261,
3... |
except error: | except (error, TypeError): | def subn(self, repl, source, count=0): """subn(repl, string[, count=0]) -> tuple | 6f7c3431c80b93d0b82e1d1a2d087192f9f9c590 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6f7c3431c80b93d0b82e1d1a2d087192f9f9c590/pre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
82,
12,
2890,
16,
6831,
16,
1084,
16,
1056,
33,
20,
4672,
3536,
1717,
82,
12,
26745,
16,
533,
63,
16,
1056,
33,
20,
5717,
317,
3193,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
82,
12,
2890,
16,
6831,
16,
1084,
16,
1056,
33,
20,
4672,
3536,
1717,
82,
12,
26745,
16,
533,
63,
16,
1056,
33,
20,
5717,
317,
3193,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
showing = 0 something = 0 | showing = 0 skipping = 0 something = 0 | def show_errors (self): """ Display all errors that occured during compilation. Return 0 if there was no error. """ pos = ["(no file)"] last_file = None showing = 0 something = 0 for line in self.lines: line = line.rstrip() if line == "": continue if showing: self.msg(0, line) if line[0:2] == "l." or line[0:3] == "***"... | be6975304f1695d2e8d5d95920b195bbd4313432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/be6975304f1695d2e8d5d95920b195bbd4313432/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
4324,
261,
2890,
4672,
3536,
9311,
777,
1334,
716,
16206,
4982,
8916,
18,
2000,
374,
309,
1915,
1703,
1158,
555,
18,
3536,
949,
273,
8247,
12,
2135,
585,
2225,
65,
1142,
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,
2405,
67,
4324,
261,
2890,
4672,
3536,
9311,
777,
1334,
716,
16206,
4982,
8916,
18,
2000,
374,
309,
1915,
1703,
1158,
555,
18,
3536,
949,
273,
8247,
12,
2135,
585,
2225,
65,
1142,
67,
... |
for i in range(len(self.data.domain.attributes)): | for i in range(len(self.data.domain.variables)): | def updateAttributes(self): if self.ShowAttributeMethod == 0: for i in range(len(self.data.domain.attributes)): self.table.showColumn(i) | acde42b780a096e9d4929aca4c7977762cda84c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/acde42b780a096e9d4929aca4c7977762cda84c3/OWPredictions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2498,
12,
2890,
4672,
309,
365,
18,
5706,
1499,
1305,
422,
374,
30,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
892,
18,
4308,
18,
7528,
3719,
30,
365,
18,
2121,
18,
4500,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2498,
12,
2890,
4672,
309,
365,
18,
5706,
1499,
1305,
422,
374,
30,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
892,
18,
4308,
18,
7528,
3719,
30,
365,
18,
2121,
18,
4500,
149... |
end_chain_id=line[30:32].strip(), | end_chain_id=parse_chain_id(line[30:32]), | def parse_helix_records (records) : helices = [] for line in records : if not line.startswith("HELIX") : continue try : length = string.atoi(line[71:76]) except ValueError : length = 0 current_helix = pdb_helix( serial=string.atoi(line[7:10]), helix_id=line[11:14].strip(), start_resname=line[15:18], start_chain_id=line... | acb8a4182f3216c7009b2516a414ecf02b532239 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/acb8a4182f3216c7009b2516a414ecf02b532239/secondary_structure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
76,
26342,
67,
7094,
261,
7094,
13,
294,
13150,
1242,
273,
5378,
364,
980,
316,
3853,
294,
309,
486,
980,
18,
17514,
1918,
2932,
3900,
2053,
60,
7923,
294,
1324,
775,
294,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
76,
26342,
67,
7094,
261,
7094,
13,
294,
13150,
1242,
273,
5378,
364,
980,
316,
3853,
294,
309,
486,
980,
18,
17514,
1918,
2932,
3900,
2053,
60,
7923,
294,
1324,
775,
294,
76... |
elif journal_id and (type in ('pay_voucher','bank_pay_voucher','journal_sale_vou')) : | elif journal_id and (type in ('pay_voucher','bank_pay_voucher','journal_sale_voucher')) : | def onchange_journal(self, cr, uid, ids, journal_id,type): if not journal_id: return {'value':{'account_id':False}} journal = self.pool.get('account.journal') if journal_id and (type in ('rec_voucher','bank_rec_voucher','journal_pur_voucher')): account_id = journal.browse(cr, uid, journal_id).default_debit_account_id r... | 05c0ca772168dfc9ba33273dc00cc34a540dd21f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/05c0ca772168dfc9ba33273dc00cc34a540dd21f/voucher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
22644,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
13001,
67,
350,
16,
723,
4672,
309,
486,
13001,
67,
350,
30,
327,
13666,
1132,
4278,
27828,
4631,
67,
350,
4278,
8381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
67,
22644,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
13001,
67,
350,
16,
723,
4672,
309,
486,
13001,
67,
350,
30,
327,
13666,
1132,
4278,
27828,
4631,
67,
350,
4278,
8381,... |
if receiver_in_url: group = Group.objects.get(id = group_id) else: group = group_receiver_form.cleaned_data['group'] | def marking(request, course_slug, activity_slug): #init student = None group = None student_receiver_form = None group_receiver_form = None error_info = "" course = get_object_or_404(CourseOffering, slug = course_slug) activity = get_object_or_404(NumericActivity, offering = course, slug = activity_slug) students_qse... | f8d114e5a90835591b402c87e300faf5c4ad54e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6634/f8d114e5a90835591b402c87e300faf5c4ad54e3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24073,
12,
2293,
16,
4362,
67,
6436,
16,
5728,
67,
6436,
4672,
468,
2738,
18110,
273,
599,
1041,
273,
599,
18110,
67,
24454,
67,
687,
273,
599,
1041,
67,
24454,
67,
687,
273,
599,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24073,
12,
2293,
16,
4362,
67,
6436,
16,
5728,
67,
6436,
4672,
468,
2738,
18110,
273,
599,
1041,
273,
599,
18110,
67,
24454,
67,
687,
273,
599,
1041,
67,
24454,
67,
687,
273,
599,
225,... | |
colBtn.SetForegroundColour(wxColour(0, 0, 0)) | colBtn.SetForegroundColour(wx.Colour(0, 0, 0)) | def editColTCProp(self, colCb, colBtn, prop, val=None): if val is None: colStr = colCb.GetValue() else: colStr = val if colStr: col = strToCol(colStr%self.commonDefs) if self.editProp(colStr!='', prop, colStr): if colStr: colBtn.SetForegroundColour(wxColour(0, 0, 0)) colBtn.SetBackgroundColour(col) else: colBtn.SetFore... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
914,
15988,
4658,
12,
2890,
16,
645,
15237,
16,
645,
20541,
16,
2270,
16,
1244,
33,
7036,
4672,
309,
1244,
353,
599,
30,
645,
1585,
273,
645,
15237,
18,
967,
620,
1435,
469,
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,
3874,
914,
15988,
4658,
12,
2890,
16,
645,
15237,
16,
645,
20541,
16,
2270,
16,
1244,
33,
7036,
4672,
309,
1244,
353,
599,
30,
645,
1585,
273,
645,
15237,
18,
967,
620,
1435,
469,
30,
... |
response = c.get(url, {'group_id':2}) | response = c.get(url, {'group_id': group1.id}) | def test_view_cluster_choices(self): """ Test retrieving list of clusters a user or usergroup has access to """ url = '/vm/add/choices/' Cluster.objects.all().delete() cluster0 = Cluster(hostname='user.create_vm', slug='user_create_vm') cluster0.save() cluster1 = Cluster(hostname='user.admin', slug='user_admin') cluste... | c24ff4471dfca799ba7ddabc41abb048929bc8fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/c24ff4471dfca799ba7ddabc41abb048929bc8fd/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1945,
67,
7967,
67,
11937,
12,
2890,
4672,
3536,
7766,
17146,
666,
434,
9566,
279,
729,
578,
729,
1655,
711,
2006,
358,
3536,
880,
273,
1173,
3489,
19,
1289,
19,
11937,
2473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1945,
67,
7967,
67,
11937,
12,
2890,
4672,
3536,
7766,
17146,
666,
434,
9566,
279,
729,
578,
729,
1655,
711,
2006,
358,
3536,
880,
273,
1173,
3489,
19,
1289,
19,
11937,
2473,
... |
def paintText( draw, x,y,width, height,text, font, colour, alignment): | def paintText(draw, x, y, width, height, text, font, colour, alignment): | def paintText( draw, x,y,width, height,text, font, colour, alignment): """Takes a piece of text and draws it onto an image inside a bounding box.""" #The text is wider than the width of the bounding box lines,tmp,h = intelliDraw(draw,text,font,width) j = 0 for i in lines: if (j*h) < (height-h): write( "Wrapped text ... | 4a04444bb400931195d3d8968b619bcd683cb485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/4a04444bb400931195d3d8968b619bcd683cb485/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
1528,
12,
9446,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
977,
16,
3512,
16,
15046,
16,
8710,
4672,
3536,
11524,
279,
11151,
434,
977,
471,
30013,
518,
10170,
392,
1316,
4832,
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,
12574,
1528,
12,
9446,
16,
619,
16,
677,
16,
1835,
16,
2072,
16,
977,
16,
3512,
16,
15046,
16,
8710,
4672,
3536,
11524,
279,
11151,
434,
977,
471,
30013,
518,
10170,
392,
1316,
4832,
2... |
if not ((buildenv['os'] == 'win') and (buildenv['version'] == 'debug')): os.chdir(os.path.join("model","util","ext")) if buildenv['version'] == 'debug': python = buildenv['python_d'] if buildenv['version'] == 'release': python = buildenv['python'] | os.chdir(os.path.join("model","util","ext")) if buildenv['version'] == 'debug': python = buildenv['python_d'] | def build(buildenv): if buildenv['os'] == 'posix': os.chdir("distrib/linux/launcher") if buildenv['version'] == 'release': hardhatlib.executeCommand( buildenv, info['name'], [buildenv['make']], "Making launcher programs") hardhatlib.copyFile("chandler_bin", buildenv['root'] + \ os.sep + "release") hardhatlib.copyFile(... | 3cb56d17e9254aca4a3bd2b5173d96380e2ff73d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/3cb56d17e9254aca4a3bd2b5173d96380e2ff73d/__hardhat__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
538,
3546,
422,
296,
24463,
4278,
1140,
18,
343,
1214,
2932,
2251,
665,
19,
20132,
19,
20738,
264,
7923,
309,
1361,
3074,
3292,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
3510,
3074,
4672,
225,
309,
1361,
3074,
3292,
538,
3546,
422,
296,
24463,
4278,
1140,
18,
343,
1214,
2932,
2251,
665,
19,
20132,
19,
20738,
264,
7923,
309,
1361,
3074,
3292,
15... |
if (m.picking_id.type == 'in') and (m.product_id.cost_method == 'average'): | if (m.product_id.cost_method == 'average'): | def view_init(self, cr, uid, fields_list, context=None): res = super(stock_partial_move, self).view_init(cr, uid, fields_list, context=context) move_obj = self.pool.get('stock.move') if not context: context={} for m in move_obj.browse(cr, uid, context.get('active_ids', [])): if m.state in ('done', 'cancel'): raise osv.... | 8259566f5354c077fb1a8488e173546ed1031041 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8259566f5354c077fb1a8488e173546ed1031041/stock_partial_move.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
2738,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
67,
1098,
16,
819,
33,
7036,
4672,
400,
273,
2240,
12,
15381,
67,
11601,
67,
8501,
16,
365,
2934,
1945,
67,
2738,
12,
3353,
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,
1476,
67,
2738,
12,
2890,
16,
4422,
16,
4555,
16,
1466,
67,
1098,
16,
819,
33,
7036,
4672,
400,
273,
2240,
12,
15381,
67,
11601,
67,
8501,
16,
365,
2934,
1945,
67,
2738,
12,
3353,
16... |
if doc[1]: print '\t' + build._safeQQQ(doc[1]) | if doc[1]: print '\t' + build._safeQuotedString(doc[1]) | def WriteClassHeader(self, generator): generator.checkWriteDispatchBaseClass() doc = self.doc print 'class ' + self.python_name + '(DispatchBaseClass):' if doc[1]: print '\t' + build._safeQQQ(doc[1]) try: progId = pythoncom.ProgIDFromCLSID(self.clsid) print "\t# This class is creatable by the name '%s'" % (progId) exce... | a4eeb81efbe95eb04992894dc9da01f6979a7bdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/a4eeb81efbe95eb04992894dc9da01f6979a7bdc/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
797,
1864,
12,
2890,
16,
4456,
4672,
4456,
18,
1893,
3067,
5325,
2171,
797,
1435,
997,
273,
365,
18,
2434,
1172,
296,
1106,
296,
397,
365,
18,
8103,
67,
529,
397,
7747,
5325,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
797,
1864,
12,
2890,
16,
4456,
4672,
4456,
18,
1893,
3067,
5325,
2171,
797,
1435,
997,
273,
365,
18,
2434,
1172,
296,
1106,
296,
397,
365,
18,
8103,
67,
529,
397,
7747,
5325,
217... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.