rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if task.batch is not None: task_data.update({'batch': unicode(task.batch), 'batch_slug': task.batch.slug,}) | def tasks(request): bzapi = BzAPI() items = [] show_resolved = request.GET.get('show_resolved', 0) if int(show_resolved) == 1: tasks = Todo.tasks.all() else: tasks = Todo.tasks.active() tasks = tasks.select_related('locale', 'project', 'batch', 'prototype') if request.GET.has_key('bug'): bugs = request.GET.getlist('bu... | 661ba6ec43d92f83481a705847bc02dfcfcf2b11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14391/661ba6ec43d92f83481a705847bc02dfcfcf2b11/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4592,
12,
2293,
4672,
24788,
2425,
273,
605,
94,
2557,
1435,
1516,
273,
5378,
2405,
67,
11792,
273,
590,
18,
3264,
18,
588,
2668,
4500,
67,
11792,
2187,
374,
13,
309,
509,
12,
4500,
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,
4592,
12,
2293,
4672,
24788,
2425,
273,
605,
94,
2557,
1435,
1516,
273,
5378,
2405,
67,
11792,
273,
590,
18,
3264,
18,
588,
2668,
4500,
67,
11792,
2187,
374,
13,
309,
509,
12,
4500,
67... | |
version='devel')) | version='devel') | def add_package(self, package, owner, summary): '''Add a new package to the database. ''' # Make sure the package doesn't already exist pkg = model.Package.get_by(name=package) if pkg: return dict(status=False, message='Package %s already exists' % package) | d5d600fc249fd3dd8711709c4a4d053cd945ca5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/d5d600fc249fd3dd8711709c4a4d053cd945ca5a/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
5610,
12,
2890,
16,
2181,
16,
3410,
16,
4916,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
4344,
3071,
326,
2181,
3302,
1404,
1818,
1005,
3475,
273,
938,
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,
527,
67,
5610,
12,
2890,
16,
2181,
16,
3410,
16,
4916,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
4344,
3071,
326,
2181,
3302,
1404,
1818,
1005,
3475,
273,
938,
18... |
_children['{%s}accesslevel' % GCAL_NAMESPACE] = ('access_level', | _children['{%s}accesslevel' % GCAL_NAMESPACE] = ('access_level', | def __init__(self, value_string=None, extension_elements=None, extension_attributes=None, text=None): self.value_string = value_string self.text = text self.extension_elements = extension_elements or [] self.extension_attributes = extension_attributes or {} | b441c0ccc7da55ff31f704dc6779ec676da299f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/b441c0ccc7da55ff31f704dc6779ec676da299f1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
460,
67,
1080,
33,
7036,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
1132,
67,
1080,
273,
460,
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,
460,
67,
1080,
33,
7036,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18,
1132,
67,
1080,
273,
460,
67,
... |
return self.eval('print %s'%var) | return self.eval('print %s'%var).strip() | def get(self, var): """ Get the value of the variable var. | fcf234e217e49a949664127632a603f69e90aff2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/fcf234e217e49a949664127632a603f69e90aff2/sage0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
460,
434,
326,
2190,
569,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
569,
4672,
3536,
968,
326,
460,
434,
326,
2190,
569,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
details.append("%s %s" % (line['unit_amount'], self.pool.get('product.uom').browse(cr, uid, [line['product_uom_id']])[0].name)) | details.append("%s %s" % (line['unit_amount'], self.pool.get('product.uom').browse(cr, uid, [line['product_uom_id']],context2)[0].name)) | def do_create(self, cr, uid, ids, context=None): mod_obj = self.pool.get('ir.model.data') analytic_account_obj = self.pool.get('account.analytic.account') res_partner_obj = self.pool.get('res.partner') account_payment_term_obj = self.pool.get('account.payment.term') invoices = [] | f46f7a770b2d814434573b77e25d0d05332000c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f46f7a770b2d814434573b77e25d0d05332000c7/hr_timesheet_invoice_create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
681,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
392,
7834,
335,
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,
741,
67,
2640,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
681,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
392,
7834,
335,
67,
... |
message = translate(_(u'msg_started_timer', default=u'Started the timer')) | message = _(u'msg_started_timer', default=u'Started the timer') | def start_timer(self): tracker = get_tracker(self.context) tracker.starttime = mx.DateTime.now() zope = self.getCommandSet('zope') zope.refreshProvider('#startstop', 'xm.tracker.startstop') message = translate(_(u'msg_started_timer', default=u'Started the timer')) plone = self.getCommandSet("plone") plone.issuePortalMe... | 92bd0351ae7a9b70e3efed0b809beae7df46e6a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10445/92bd0351ae7a9b70e3efed0b809beae7df46e6a2/ksstracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
12542,
12,
2890,
4672,
9745,
273,
336,
67,
16543,
12,
2890,
18,
2472,
13,
9745,
18,
1937,
957,
273,
7938,
18,
5096,
18,
3338,
1435,
998,
1306,
273,
365,
18,
588,
2189,
694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
12542,
12,
2890,
4672,
9745,
273,
336,
67,
16543,
12,
2890,
18,
2472,
13,
9745,
18,
1937,
957,
273,
7938,
18,
5096,
18,
3338,
1435,
998,
1306,
273,
365,
18,
588,
2189,
694,
... |
def truediv(w_bigint1, w_bigint2): div = _bigint_true_divide(w_bigint1, w_bigint2) | def truediv(self, other): div = _bigint_true_divide(self, other) | def truediv(w_bigint1, w_bigint2): div = _bigint_true_divide(w_bigint1, w_bigint2) return div | 87da397eba037ce53e8c5847c7c4b29acfda97b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/87da397eba037ce53e8c5847c7c4b29acfda97b2/rbigint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
433,
5957,
427,
12,
2890,
16,
1308,
4672,
3739,
273,
389,
14002,
474,
67,
3767,
67,
2892,
831,
12,
2890,
16,
1308,
13,
327,
3739,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
433,
5957,
427,
12,
2890,
16,
1308,
4672,
3739,
273,
389,
14002,
474,
67,
3767,
67,
2892,
831,
12,
2890,
16,
1308,
13,
327,
3739,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
sensor.set_hysteresis(self.positive, self.negative) sensor.get_hysteresis(self.s) | self.err = sensor.set_hysteresis(self.positive, self.negative, self) | def sensor_cb(self, sensor): if (self.setting): sensor.set_hysteresis(self.positive, self.negative) sensor.get_hysteresis(self.s) else: sensor.get_hysteresis(self) self.setting = True | c5c7ca34bb1b72dc9d3b8d473ae63256cc266795 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/c5c7ca34bb1b72dc9d3b8d473ae63256cc266795/_sensor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10583,
67,
7358,
12,
2890,
16,
10583,
4672,
309,
261,
2890,
18,
8920,
4672,
365,
18,
370,
273,
10583,
18,
542,
67,
76,
1094,
11737,
291,
12,
2890,
18,
21094,
16,
365,
18,
13258,
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,
10583,
67,
7358,
12,
2890,
16,
10583,
4672,
309,
261,
2890,
18,
8920,
4672,
365,
18,
370,
273,
10583,
18,
542,
67,
76,
1094,
11737,
291,
12,
2890,
18,
21094,
16,
365,
18,
13258,
16,
... |
for elem in caps.findall('Layer'): cm=ContentMetadata(elem) self.contents[cm.id]=cm for subelem in elem.findall('Layer'): subcm=ContentMetadata(subelem, cm) self.contents[subcm.id]=subcm for subsubelem in subelem.findall('Layer'): subsubcm=ContentMetadata(subsubelem, subcm) self.contents[subsubcm.id]=subsubcm | def gather_layers(parent_elem, parent_metadata): for index, elem in enumerate(parent_elem.findall('Layer')): cm = ContentMetadata(elem, parent=parent_metadata, index=index+1) if cm.id: if cm.id in self.contents: raise KeyError('Content metadata for layer "%s" already exists' % cm.id) self.contents[cm.id] = cm gather... | def _buildMetadata(self): ''' set up capabilities metadata objects ''' #serviceIdentification metadata serviceelem=self._capabilities.find('Service') self.identification=ServiceIdentification(serviceelem, self.version) #serviceProvider metadata self.provider=ServiceProvider(serviceelem) #serviceOperations metadata s... | 638cf24328c5cdda953724f5aa47ca607deeb77d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/638cf24328c5cdda953724f5aa47ca607deeb77d/wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
2277,
12,
2890,
4672,
9163,
444,
731,
12359,
1982,
2184,
9163,
225,
468,
3278,
24371,
1982,
1156,
10037,
33,
2890,
6315,
22140,
18,
4720,
2668,
1179,
6134,
365,
18,
6392,
1480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3510,
2277,
12,
2890,
4672,
9163,
444,
731,
12359,
1982,
2184,
9163,
225,
468,
3278,
24371,
1982,
1156,
10037,
33,
2890,
6315,
22140,
18,
4720,
2668,
1179,
6134,
365,
18,
6392,
1480,
... |
def __init__(self, q, var='a'): | def __init__(self, q, name='a'): | def __init__(self, q, var='a'): q = Integer(q) from sage.rings.arith import valuation t = valuation(q, 2) if 2**t != q or is_even(t): raise ValueError,"The ground field size %s must be an odd power of 2."%q id = 'SuzukiGroup(IsPermGroup,%s)'%q PermutationGroup_generic.__init__(self, id, from_group=True, check=False) se... | f5e431c71f8b59df3f8c5c258afa59632134296c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f5e431c71f8b59df3f8c5c258afa59632134296c/permgroup_named.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1043,
16,
508,
2218,
69,
11,
4672,
1043,
273,
2144,
12,
85,
13,
628,
272,
410,
18,
86,
899,
18,
297,
483,
1930,
21748,
367,
268,
273,
21748,
367,
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,
1001,
2738,
972,
12,
2890,
16,
1043,
16,
508,
2218,
69,
11,
4672,
1043,
273,
2144,
12,
85,
13,
628,
272,
410,
18,
86,
899,
18,
297,
483,
1930,
21748,
367,
268,
273,
21748,
367,
12,
... |
logger.debug('Joined an existing shared activity') | logging.debug('Joined an existing shared activity') | def _joined_cb(self, activity): if not self._shared_activity: return | 3a49b60a6de588c9ec4840acc5b9555570894754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5598/3a49b60a6de588c9ec4840acc5b9555570894754/shared.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5701,
329,
67,
7358,
12,
2890,
16,
5728,
4672,
309,
486,
365,
6315,
11574,
67,
9653,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5701,
329,
67,
7358,
12,
2890,
16,
5728,
4672,
309,
486,
365,
6315,
11574,
67,
9653,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
progress(len(x)) | progress(float(p) / size) | def makeinfo(file, piece_length, flag, progress): file = abspath(file) if isdir(file): subs = subfiles(file) subs.sort() pieces = [] sh = sha() done = 0 fs = [] for p, f in subs: pos = 0 size = getsize(f) fs.append({'length': size, 'path': p}) h = open(f, 'rb') while pos < size: a = min(size - pos, piece_length - done)... | 12b25f1217b14b76aeb8f362a263b83c4a3fe16c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/12b25f1217b14b76aeb8f362a263b83c4a3fe16c/btmakemetafile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1376,
12,
768,
16,
11151,
67,
2469,
16,
2982,
16,
4007,
4672,
585,
273,
9488,
12,
768,
13,
309,
9783,
12,
768,
4672,
11630,
273,
720,
2354,
12,
768,
13,
11630,
18,
3804,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1376,
12,
768,
16,
11151,
67,
2469,
16,
2982,
16,
4007,
4672,
585,
273,
9488,
12,
768,
13,
309,
9783,
12,
768,
4672,
11630,
273,
720,
2354,
12,
768,
13,
11630,
18,
3804,
1435,
... |
def __init__(self, maxread=10000, script_subdirectory="", logfile=None, server=None): | def __init__(self, maxread=10000, script_subdirectory="", logfile=None, server=None): | def __init__(self, maxread=10000, script_subdirectory="", logfile=None, server=None): Expect.__init__(self, name = 'macaulay2', prompt = 'i[0-9]* : ', command = "M2", maxread = maxread, server = server, script_subdirectory = script_subdirectory, verbose_start = False, logfile = None, eval_using_file_cutoff=500) | ff5e9178bafdb64eefa5b1ae2cc48cce9c3547fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/ff5e9178bafdb64eefa5b1ae2cc48cce9c3547fa/macaulay2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
943,
896,
33,
23899,
16,
2728,
67,
1717,
5149,
1546,
3113,
15204,
33,
7036,
16,
1438,
33,
7036,
4672,
15510,
16186,
2738,
972,
12,
2890,
16,
508,
273,
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,
1001,
2738,
972,
12,
2890,
16,
943,
896,
33,
23899,
16,
2728,
67,
1717,
5149,
1546,
3113,
15204,
33,
7036,
16,
1438,
33,
7036,
4672,
15510,
16186,
2738,
972,
12,
2890,
16,
508,
273,
29... |
sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: chi = a2(0,0,0)+2*a2(1,0,0)+3*a2(2,0,0) sage: mu = 3*a2(0,0,0)+2*a2(1,0,0)+a2(2,0,0) sage: chi - mu -2*a2(0,0,0) + 2*a2(2,0,0) | sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: chi = a2(0,0,0)+2*a2(1,0,0)+3*a2(2,0,0) sage: mu = 3*a2(0,0,0)+2*a2(1,0,0)+a2(2,0,0) sage: chi - mu -2*a2(0,0,0) + 2*a2(2,0,0) | def _sub_(self, y): """ EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: chi = a2(0,0,0)+2*a2(1,0,0)+3*a2(2,0,0) sage: mu = 3*a2(0,0,0)+2*a2(1,0,0)+a2(2,0,0) sage: chi - mu -2*a2(0,0,0) + 2*a2(2,0,0) """ return self._add_(y._neg_()) | da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
67,
12,
2890,
16,
677,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
67,
12,
2890,
16,
677,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
... |
space_group, assume_incomming_is_in_reference_setting=False): | space_group): | def __init__(self, unit_cell, space_group, assume_incomming_is_in_reference_setting=False): from cctbx import crystal | 8a368fff34c37f46d7f445e42d40bf65b8ce381c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/8a368fff34c37f46d7f445e42d40bf65b8ce381c/find_best_cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2836,
67,
3855,
16,
3476,
67,
1655,
4672,
628,
276,
299,
70,
92,
1930,
4422,
31365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2836,
67,
3855,
16,
3476,
67,
1655,
4672,
628,
276,
299,
70,
92,
1930,
4422,
31365,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
date = time.strftime(format_string, date) | date = time.strftime(format_string, date) | def get_datetime(var, format_string="%Y-%m-%d %H:%M:%S"): """Returns a date string according to the format string. It can handle normal date strings and shifts with respect to now.""" date = time.time() factors = {"d":24*3600, "h":3600, "m":60, "s":1} m = sre_datetime_shift.match(var) if m: sign = m.groups()[0] == "-" ... | e694f41220b7b03dd71e066005efb9ad5bd84b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e694f41220b7b03dd71e066005efb9ad5bd84b10/bibindex_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6585,
12,
1401,
16,
740,
67,
1080,
11613,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6,
4672,
3536,
1356,
279,
1509,
533,
4888,
358,
326,
740,
533,
18,
2597,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6585,
12,
1401,
16,
740,
67,
1080,
11613,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
6,
4672,
3536,
1356,
279,
1509,
533,
4888,
358,
326,
740,
533,
18,
2597,
848,
... |
test_args, png_path, shell_args = self._get_dump_render_tree_args(i) | test_args, png_path, shell_args = \ self._get_dump_render_tree_args(i) | def _instantiate_dump_render_tree_threads(self, test_files, result_summary): """Instantitates and starts the TestShellThread(s). | 26394c49216e73c421310e10692ee2f0b897ce41 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/26394c49216e73c421310e10692ee2f0b897ce41/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
24628,
3840,
67,
8481,
67,
5902,
67,
3413,
67,
12495,
12,
2890,
16,
1842,
67,
2354,
16,
563,
67,
7687,
4672,
3536,
10675,
305,
815,
471,
2542,
326,
7766,
13220,
3830,
12,
87,
2934... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
24628,
3840,
67,
8481,
67,
5902,
67,
3413,
67,
12495,
12,
2890,
16,
1842,
67,
2354,
16,
563,
67,
7687,
4672,
3536,
10675,
305,
815,
471,
2542,
326,
7766,
13220,
3830,
12,
87,
2934... |
data = self.get_data(rva) | data = self.get_data(rva, Structure(self.__IMAGE_RESOURCE_DIRECTORY_format__).sizeof() ) | def parse_resources_directory(self, rva, size=0, base_rva = None, level = 0): """Parse the resources directory. Given the rva of the resources directory, it will process all its entries. The root will have the corresponding member of its structure, IMAGE_RESOURCE_DIRECTORY plus 'entries', a list of all the entries in... | 1d5b4f161f415406d1d384dc2319874979bcdef8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/1d5b4f161f415406d1d384dc2319874979bcdef8/pefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4683,
67,
5149,
12,
2890,
16,
5633,
69,
16,
963,
33,
20,
16,
1026,
67,
4962,
69,
273,
599,
16,
1801,
273,
374,
4672,
3536,
3201,
326,
2703,
1867,
18,
225,
16803,
326,
5633,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4683,
67,
5149,
12,
2890,
16,
5633,
69,
16,
963,
33,
20,
16,
1026,
67,
4962,
69,
273,
599,
16,
1801,
273,
374,
4672,
3536,
3201,
326,
2703,
1867,
18,
225,
16803,
326,
5633,... |
r""" Number of partitions of $n$ into odd parts. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000009;a Number of partitions of n into odd parts. sage: a(0) 1 sage: a(1) 1 sage: a(13) 18 sage: a.list(14) [1, 1, 1, 2, 2, 3, 4, 5, 6, 8, 10, 12, 15, 18] AUTHOR: -- Jaap ... | def __init__(self): r""" Number of partitions of $n$ into odd parts. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000009;a Number of partitions of n into odd parts. sage: a(0) 1 sage: a(1) 1 sage: a(13) 18 sage: a.list(14) [1, 1, 1, 2, 2, 3, 4, 5, 6, 8, 10, 12, 15, 1... | def _eval(self, n): return arith.number_of_divisors(n) | 8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
2696,
67,
792,
67,
2892,
291,
1383,
12,
82,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
419,
483,
18,
2696,
67,
792,
67,
2892,
291,
1383,
12,
82,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
q = -1.0*atoms.f | q = -1.0*self.f | def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',... | 1a55a570d87917cc147bfa837a3336109417cb92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/1a55a570d87917cc147bfa837a3336109417cb92/glbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... |
sage: print T1 [ 0 -1 3 1] [-1 1 0 2] | sage: T1 [ 0 2 -1 1] [-1 0 1 3] [ 3 -1 0 2] | def alternating_group_bitrade_generators(m): """ Construct generators a, b, c for the alternating group on 3m+1 points, such that a*b*c = 1. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: a, b, c, G = alternating_group_bitrade_generators(1) ((1,2,3), (1,4,2), (2,4,3), Permutation Group with generato... | 9087d14f978c663baae98e9a365c4a3aa2a6f24c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9087d14f978c663baae98e9a365c4a3aa2a6f24c/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6416,
1776,
67,
1655,
67,
3682,
354,
323,
67,
25959,
12,
81,
4672,
3536,
14291,
13327,
279,
16,
324,
16,
276,
364,
326,
6416,
1776,
1041,
603,
890,
81,
15,
21,
3143,
16,
4123,
716,
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,
6416,
1776,
67,
1655,
67,
3682,
354,
323,
67,
25959,
12,
81,
4672,
3536,
14291,
13327,
279,
16,
324,
16,
276,
364,
326,
6416,
1776,
1041,
603,
890,
81,
15,
21,
3143,
16,
4123,
716,
2... |
patchf = self.opener(patchfn, 'r') for line in patchf: if line.startswith('diff --git'): diffopts.git = True break patchf.close() | for patchfn in patches: patchf = self.opener(patchfn, 'r') for line in patchf: if line.startswith('diff --git'): diffopts.git = True break patchf.close() | def patchopts(self, diffopts, patchfn): """Return a copy of input diff options with git set to true if referenced patch is a git patch. """ diffopts = diffopts.copy() patchf = self.opener(patchfn, 'r') # if the patch was a git patch, refresh it as a git patch for line in patchf: if line.startswith('diff --git'): diffop... | ca11c6a6a3c9b12152f9d0d06ea1d5e7e00effa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/ca11c6a6a3c9b12152f9d0d06ea1d5e7e00effa5/mq.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
4952,
12,
2890,
16,
1901,
617,
1092,
16,
4729,
4293,
4672,
3536,
990,
279,
1610,
434,
810,
3122,
702,
598,
5071,
444,
358,
638,
309,
8042,
4729,
353,
279,
5071,
4729,
18,
3536,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4729,
4952,
12,
2890,
16,
1901,
617,
1092,
16,
4729,
4293,
4672,
3536,
990,
279,
1610,
434,
810,
3122,
702,
598,
5071,
444,
358,
638,
309,
8042,
4729,
353,
279,
5071,
4729,
18,
3536,
1... |
self.reportsTable.insert(cursor, rowTuple, self.databasePool.connectionCursorPair, date_processed=date_processed) | try: cursor = threadLocalDbConnection.cursor() self.reportsTable.insert(cursor, rowTuple, self.databasePool.connectionCursorPair, date_processed=date_processed) except sdb.databaseModule.IntegrityError: logger.info('%s - already in the database, replacing', ooid) threadLocalDbConnection.rollback() r = sdb.execute(threa... | def insertReport(self, crash_json): threadLocalDbConnection = self.databasePool.connection() cursor = threadLocalDbConnection.cursor() rowTuple = tuple((crash_json[x] for x in self.reportsTable.columns)) # TODO: debug - remove this #items = dict(zip(self.reportsTable.columns, rowTuple)) #for key, value in items.iterite... | 2c279f312dccbfd63e06c4bb5b1902f685e82554 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/2c279f312dccbfd63e06c4bb5b1902f685e82554/dbfeeder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
4820,
12,
2890,
16,
17053,
67,
1977,
4672,
2650,
2042,
4331,
1952,
273,
365,
18,
6231,
2864,
18,
4071,
1435,
3347,
273,
2650,
2042,
4331,
1952,
18,
9216,
1435,
1027,
9038,
273,
319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
4820,
12,
2890,
16,
17053,
67,
1977,
4672,
2650,
2042,
4331,
1952,
273,
365,
18,
6231,
2864,
18,
4071,
1435,
3347,
273,
2650,
2042,
4331,
1952,
18,
9216,
1435,
1027,
9038,
273,
319... |
pos = pos - 4 | pos -= 4 | def beginPage(self) : """Indicates the beginning of a new page, and extracts media information.""" self.pagecount += 1 # Default values mediatypelabel = "Plain" mediasourcelabel = "Main" mediasizelabel = "Default" orientationlabel = "Portrait" duplexmode = None # Now go upstream to decode media type, size, source, an... | 197d53f6b2cec7da0cadce09072491fb0d0bb60f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/486/197d53f6b2cec7da0cadce09072491fb0d0bb60f/pclxl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
1964,
12,
2890,
13,
294,
3536,
23741,
326,
8435,
434,
279,
394,
1363,
16,
471,
16469,
3539,
1779,
12123,
365,
18,
2433,
1883,
1011,
404,
225,
468,
2989,
924,
20623,
270,
879,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
1964,
12,
2890,
13,
294,
3536,
23741,
326,
8435,
434,
279,
394,
1363,
16,
471,
16469,
3539,
1779,
12123,
365,
18,
2433,
1883,
1011,
404,
225,
468,
2989,
924,
20623,
270,
879,
292,
... |
pfd = gzip.GzipFile(fileobj=origpfd, mode="wb") | pfd = GzipFile(fileobj=origpfd, mode="wb") | def createRepo(self, baseurl): import gzip # Strip trailing slashes. while len(self.filename) > 1 and self.filename[-1] == "/": self.filename = self.filename[:-1] rt = {} for i in ("name", "epoch", "version", "release", "arch", "requirename"): rt[i] = rpmtag[i] filename = self.filename self.filerequires = [] filenames ... | d5b95a34fa0e48227e7afbfbbaaecef730519c14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d5b95a34fa0e48227e7afbfbbaaecef730519c14/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
8791,
12,
2890,
16,
25427,
4672,
1930,
10331,
468,
15589,
7341,
19034,
18,
1323,
562,
12,
2890,
18,
3459,
13,
405,
404,
471,
365,
18,
3459,
18919,
21,
65,
422,
4016,
30,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
8791,
12,
2890,
16,
25427,
4672,
1930,
10331,
468,
15589,
7341,
19034,
18,
1323,
562,
12,
2890,
18,
3459,
13,
405,
404,
471,
365,
18,
3459,
18919,
21,
65,
422,
4016,
30,
365,
18,
... |
demoData = [] | repositoryData = [] | def buildAllDemos(self, demoVersion="build", demoBrowser=None, copyDemos=False): if demoBrowser: demoBrowser = os.path.abspath(demoBrowser) console.info("Generating demos for all known libraries") demoData = [] console.indent() for libraryName in self.libraries: library = self.libraries[libraryName] libraryData = { "c... | 288414e4350f7dd7d937146712ab3a3a8ac0550a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/288414e4350f7dd7d937146712ab3a3a8ac0550a/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1595,
15058,
538,
12,
2890,
16,
21477,
1444,
1546,
3510,
3113,
21477,
9132,
33,
7036,
16,
1610,
15058,
538,
33,
8381,
4672,
309,
21477,
9132,
30,
21477,
9132,
273,
1140,
18,
803,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1595,
15058,
538,
12,
2890,
16,
21477,
1444,
1546,
3510,
3113,
21477,
9132,
33,
7036,
16,
1610,
15058,
538,
33,
8381,
4672,
309,
21477,
9132,
30,
21477,
9132,
273,
1140,
18,
803,
1... |
execsrc=compile(data,module,'exec') | execsrc=compile(data, module, 'exec') | def getObject(module, name, reload=0, # The use of a mutable default is intentional here, # because modules is a module cache. modules={} ): # The use of modules here is not thread safe, however, there is # no real harm in a rece condition here. If two threads # update the cache, then one will have simply worked a li... | b03b6ae5f46068e68e56657725742c755a916bf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b03b6ae5f46068e68e56657725742c755a916bf2/Extensions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6455,
12,
2978,
16,
508,
16,
7749,
33,
20,
16,
468,
1021,
999,
434,
279,
16074,
805,
353,
509,
5054,
287,
2674,
16,
468,
2724,
4381,
353,
279,
1605,
1247,
18,
4381,
12938,
262,
30,
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,
6455,
12,
2978,
16,
508,
16,
7749,
33,
20,
16,
468,
1021,
999,
434,
279,
16074,
805,
353,
509,
5054,
287,
2674,
16,
468,
2724,
4381,
353,
279,
1605,
1247,
18,
4381,
12938,
262,
30,
2... |
while 1: | while True: | def query_iter(q, limit=500, offset=0): q['limit'] = limit q['offset'] = offset while 1: ret = query(q) if not ret: return for i in query(q): yield i q['offset'] += limit | ed1b96de506e48935b2b347ec0db7375c1af5077 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3913/ed1b96de506e48935b2b347ec0db7375c1af5077/query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
2165,
12,
85,
16,
1800,
33,
12483,
16,
1384,
33,
20,
4672,
1043,
3292,
3595,
3546,
273,
1800,
1043,
3292,
3348,
3546,
273,
1384,
1323,
1053,
30,
325,
273,
843,
12,
85,
13,
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,
843,
67,
2165,
12,
85,
16,
1800,
33,
12483,
16,
1384,
33,
20,
4672,
1043,
3292,
3595,
3546,
273,
1800,
1043,
3292,
3348,
3546,
273,
1384,
1323,
1053,
30,
325,
273,
843,
12,
85,
13,
3... |
entry = self.doclist.UploadDocument(ms, 'test doc') | entry = self.client.Upload(ms, 'test doc') | def testUploadAndDeleteDocument(self): ms = gdata.MediaSource(file_path='test.doc', content_type='application/msword') entry = self.doclist.UploadDocument(ms, 'test doc') self.assertEqual(entry.title.text, 'test doc') self.assertEqual(entry.category[0].label, 'document') self.assert_(isinstance(entry, gdata.docs.Docume... | 76de6e666a2dc6ba3f703b89b870266619bcabd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/76de6e666a2dc6ba3f703b89b870266619bcabd4/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4777,
1876,
2613,
2519,
12,
2890,
4672,
4086,
273,
314,
892,
18,
5419,
1830,
12,
768,
67,
803,
2218,
3813,
18,
2434,
2187,
913,
67,
723,
2218,
3685,
19,
959,
1095,
6134,
1241,
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,
1842,
4777,
1876,
2613,
2519,
12,
2890,
4672,
4086,
273,
314,
892,
18,
5419,
1830,
12,
768,
67,
803,
2218,
3813,
18,
2434,
2187,
913,
67,
723,
2218,
3685,
19,
959,
1095,
6134,
1241,
27... |
self._prepareInstall(pkg, force, recursive) | self._prepareInstall(pkg, False, recursive) | def _prepareInstall(self, package, force=0, recursive=1): """Internal routine, recursive engine for prepareInstall. Test whether the package is installed and (if not installed or if force==1) prepend it to the temporary todo list and call ourselves recursively on all prerequisites.""" if not force: status, message = ... | 92a2c58171b7537a0bf7e97305993156fc2e416a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/92a2c58171b7537a0bf7e97305993156fc2e416a/pimp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
6410,
12,
2890,
16,
2181,
16,
2944,
33,
20,
16,
5904,
33,
21,
4672,
3536,
3061,
12245,
16,
5904,
4073,
364,
2911,
6410,
18,
225,
7766,
2856,
326,
2181,
353,
5876,
471,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9366,
6410,
12,
2890,
16,
2181,
16,
2944,
33,
20,
16,
5904,
33,
21,
4672,
3536,
3061,
12245,
16,
5904,
4073,
364,
2911,
6410,
18,
225,
7766,
2856,
326,
2181,
353,
5876,
471,
261,
... |
req = Mock(chrome={}, href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | req = Mock(chrome={}, abs_href=Href('http://example.org/trac.cgi'), href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | def test_logo(self): req = Mock(chrome={}, href=Href('/trac.cgi'), base_path='/trac.cgi', path_info='') | 27096567803726e379d16b4e3068b026d556205b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/27096567803726e379d16b4e3068b026d556205b/chrome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19882,
12,
2890,
4672,
1111,
273,
7867,
12,
343,
10896,
28793,
3897,
33,
15962,
2668,
19,
313,
1077,
18,
19062,
19899,
1026,
67,
803,
2218,
19,
313,
1077,
18,
19062,
2187,
589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19882,
12,
2890,
4672,
1111,
273,
7867,
12,
343,
10896,
28793,
3897,
33,
15962,
2668,
19,
313,
1077,
18,
19062,
19899,
1026,
67,
803,
2218,
19,
313,
1077,
18,
19062,
2187,
589,... |
global _platform_cache_terse, _platform_cache_not_terse global _platform_aliased_cache_terse, _platform_aliased_cache_not_terse if not aliased and terse and (_platform_cache_terse is not None): return _platform_cache_terse elif not aliased and not terse and (_platform_cache_not_terse is not None): return _platform_cac... | result = _platform_cache.get((aliased, terse), None) if result is not None: return result | def platform(aliased=0, terse=0): """ Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is ... | a044f77a4b5c28e24ec1d4068a77eb7ecbce6e83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a044f77a4b5c28e24ec1d4068a77eb7ecbce6e83/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4072,
12,
18083,
8905,
33,
20,
16,
19272,
307,
33,
20,
4672,
225,
3536,
2860,
279,
2202,
533,
29134,
326,
6808,
4072,
598,
487,
9816,
5301,
1779,
487,
3323,
261,
12885,
1158,
1898,
294,
... |
self.assy.modified = 1 | def changename(self, listItem, col, text): if col != 0: return self.assy.modified = 1 # Huaicai: the following line to make sure file name is not just space text = text.stripWhiteSpace() # Check if there is text for the listitem's name. If not, we must force an MT update. # Otherwise, the name will remain blank unti... | 48878960c33c730d922dd77dc1e410ffa44f4802 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/48878960c33c730d922dd77dc1e410ffa44f4802/modelTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9435,
1069,
12,
2890,
16,
19859,
16,
645,
16,
977,
4672,
309,
645,
480,
374,
30,
327,
225,
468,
670,
11886,
335,
10658,
30,
326,
3751,
980,
358,
1221,
3071,
585,
508,
353,
486,
2537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9435,
1069,
12,
2890,
16,
19859,
16,
645,
16,
977,
4672,
309,
645,
480,
374,
30,
327,
225,
468,
670,
11886,
335,
10658,
30,
326,
3751,
980,
358,
1221,
3071,
585,
508,
353,
486,
2537,
... | |
place['most_recent_trip'].start or place['most_recent_at'] | place['most_recent_trip'].start or place['most_recent_added_at'] | def gimmick_results(request, gimmick, name, lat, lon): all_possible_places = list(Place.objects.filter( sighting__species__gimmick = gimmick ).extra( select = { 'animals_species_id': 'animals_species.id' } ).values('pk', 'longitude', 'latitude', 'animals_species_id')) point1 = geopy.Point(latitude = lat, longitude = l... | 0800a286e5b33a22b1e59a57c1ca4dec2fa429c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9909/0800a286e5b33a22b1e59a57c1ca4dec2fa429c3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
381,
81,
1200,
67,
4717,
12,
2293,
16,
314,
381,
81,
1200,
16,
508,
16,
2516,
16,
4281,
4672,
777,
67,
12708,
67,
11350,
273,
666,
12,
6029,
18,
6911,
18,
2188,
12,
272,
750,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
381,
81,
1200,
67,
4717,
12,
2293,
16,
314,
381,
81,
1200,
16,
508,
16,
2516,
16,
4281,
4672,
777,
67,
12708,
67,
11350,
273,
666,
12,
6029,
18,
6911,
18,
2188,
12,
272,
750,
... |
if issubclass(c, POD): | if issubclass(curBase, POD): | def defaultGetter(self, name=name, default=cls.DataSet[name]): return getattr(self, name, default) | a13a2d5803c4397ca940e5ed78807aff644a7529 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/a13a2d5803c4397ca940e5ed78807aff644a7529/PythonUtil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
8461,
12,
2890,
16,
508,
33,
529,
16,
805,
33,
6429,
18,
13676,
63,
529,
65,
4672,
327,
3869,
12,
2890,
16,
508,
16,
805,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
8461,
12,
2890,
16,
508,
33,
529,
16,
805,
33,
6429,
18,
13676,
63,
529,
65,
4672,
327,
3869,
12,
2890,
16,
508,
16,
805,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not self.ioready(wait): | r, w, x = select.select([self.sock.fileno()], [], [], wait) if len(r) == 0: | def pollpacket(self, wait): self._stage0() if len(self.buffer) < self.bufneed: if not self.ioready(wait): return None try: s = self.sock.recv(BUFSIZE) except socket.error: raise EOFError if len(s) == 0: raise EOFError self.buffer += s self._stage0() return self._stage1() | e9ca8919b7709068410adac993875a15e1a49b7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e9ca8919b7709068410adac993875a15e1a49b7d/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
11482,
12,
2890,
16,
2529,
4672,
365,
6315,
12869,
20,
1435,
309,
562,
12,
2890,
18,
4106,
13,
411,
365,
18,
4385,
14891,
30,
436,
16,
341,
16,
619,
273,
2027,
18,
4025,
3816,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7672,
11482,
12,
2890,
16,
2529,
4672,
365,
6315,
12869,
20,
1435,
309,
562,
12,
2890,
18,
4106,
13,
411,
365,
18,
4385,
14891,
30,
436,
16,
341,
16,
619,
273,
2027,
18,
4025,
3816,
... |
msg = exc_type + ' Exception\n' | msg = str(exc_type) + ' Exception\n' | def get_traceback(): """Stack dump to stdout. Collect the current exception information (after catching the exception) as a string so it can be reported to the user or logged. This is an internal function, don't call it directly, use the reporterror() function instead. Stolen from the Pmw source code. """ import sys,... | c44541d0f0270c5538775a94bcee9fd213a7ea7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5701/c44541d0f0270c5538775a94bcee9fd213a7ea7c/pypedebug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
21696,
13332,
3536,
2624,
4657,
358,
3909,
18,
225,
9302,
326,
783,
1520,
1779,
261,
5205,
1044,
310,
326,
1520,
13,
487,
279,
533,
1427,
518,
848,
506,
14010,
358,
326,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21696,
13332,
3536,
2624,
4657,
358,
3909,
18,
225,
9302,
326,
783,
1520,
1779,
261,
5205,
1044,
310,
326,
1520,
13,
487,
279,
533,
1427,
518,
848,
506,
14010,
358,
326,
729,
... |
if s1[-2:] == "\r\n": s1 = s1[:-2] + "\n" sys.stdout.write(s1) | sys.stdout.write(s1.replace("\r\n", "\n")) | def debug(msg): pass | b8c865079bb9b6ad5413c1651f04cbc95e8ee832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8c865079bb9b6ad5413c1651f04cbc95e8ee832/test_pty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
3576,
4672,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
3576,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.path.startswith('/rack-view'): | if self.path.startswith('/cluster-view'): | def do_GET(self): global metaserverPort, docRoot try: if self.path.startswith('/favicon.ico'): self.send_response(200) return if self.path.startswith('/files'): # skip over '/files/ fpath = os.path.join(docRoot, self.path[7:]) try: self.copyfile(urllib.urlopen(fpath), self.wfile) except IOError: self.send_response(404)... | 32c54edb8ba55a2c779c156bdab4b93431fb0173 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4466/32c54edb8ba55a2c779c156bdab4b93431fb0173/kfsstatus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3264,
12,
2890,
4672,
2552,
21232,
12330,
2617,
16,
997,
2375,
775,
30,
309,
365,
18,
803,
18,
17514,
1918,
2668,
19,
19731,
3950,
18,
10764,
11,
4672,
365,
18,
4661,
67,
2740... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3264,
12,
2890,
4672,
2552,
21232,
12330,
2617,
16,
997,
2375,
775,
30,
309,
365,
18,
803,
18,
17514,
1918,
2668,
19,
19731,
3950,
18,
10764,
11,
4672,
365,
18,
4661,
67,
2740... |
self.logger.debug("%s regex" % (time.time())) | self.logger.debug("Thread %s : regex : %s " % (threadname, time.time())) | def treatinv(self, deviceid, cont): content = cont[0] | 7f5253f5e176c62706a748e3cf56ca52f7ad59b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/7f5253f5e176c62706a748e3cf56ca52f7ad59b4/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10116,
5768,
12,
2890,
16,
2346,
350,
16,
466,
4672,
913,
273,
466,
63,
20,
65,
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,
10116,
5768,
12,
2890,
16,
2346,
350,
16,
466,
4672,
913,
273,
466,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'Si 0.00000000 0.00000000 0.00000000 14 F\n', | 'Si 0.00000000 0.00000000 0.00000000 14 T\n', | def setUp(self): self.at = supercell(diamond(5.44,14), 2,2,2) self.at.add_property('log', False) self.at.params['real'] = 1.0 self.at.params['int'] = 2 self.at.params['neg_int'] = -3 self.at.params['bad_neg'] = '3-4' self.at.params['int_a'] = [1,2,3] self.at.params['real_a'] = [1.0,2.0,3.0] self.at.params['int_a2'] = f... | 7502675bea294aff2717d10d874dd8bf54ee47a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/7502675bea294aff2717d10d874dd8bf54ee47a0/test_xyz_netcdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
270,
273,
2240,
3855,
12,
3211,
301,
1434,
12,
25,
18,
6334,
16,
3461,
3631,
576,
16,
22,
16,
22,
13,
365,
18,
270,
18,
1289,
67,
4468,
2668,
1330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
270,
273,
2240,
3855,
12,
3211,
301,
1434,
12,
25,
18,
6334,
16,
3461,
3631,
576,
16,
22,
16,
22,
13,
365,
18,
270,
18,
1289,
67,
4468,
2668,
1330,
... |
try: size = os.path.getsize(file) except AttributeError: size = os.stat(file)[6] if size < 1000: sz = ' %d bytes ' % size elif size < 1000000: sz = ' %d KB ' % (size / 1000) else: sz = ' %d MB ' % (size / 1000000) | def html_TOC_entry(self, arch): # Check to see if the archive is gzip'd or not txtfile = os.path.join(mm_cfg.PRIVATE_ARCHIVE_FILE_DIR, self.maillist.internal_name(), arch + '.txt') gzfile = txtfile + '.gz' templ = '<td><A href="%(url)s">[ %(fmt)sText%(sz)s]</a></td>' # which exists? .txt.gz first, then .txt if os.path... | 64d1541e4049f05184190e03c3b1002c660c6a33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/64d1541e4049f05184190e03c3b1002c660c6a33/HyperArch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
4296,
39,
67,
4099,
12,
2890,
16,
6637,
4672,
468,
2073,
358,
2621,
309,
326,
5052,
353,
10331,
14271,
578,
486,
6463,
768,
273,
1140,
18,
803,
18,
5701,
12,
7020,
67,
7066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
4296,
39,
67,
4099,
12,
2890,
16,
6637,
4672,
468,
2073,
358,
2621,
309,
326,
5052,
353,
10331,
14271,
578,
486,
6463,
768,
273,
1140,
18,
803,
18,
5701,
12,
7020,
67,
7066,
... | |
def compile_dir(dir, maxlevels=10, ddir=None, force=0): | def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None): | def compile_dir(dir, maxlevels=10, ddir=None, force=0): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name that wil... | c8123ba8709fb01b32659d2d930ad099c5e995e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8123ba8709fb01b32659d2d930ad099c5e995e2/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... |
int __declspec(dllexport) must_export_something(); | int __declspec(dllexport) must_export_something; | #ifdef _WIN32 | 5e84902733e101e267ca4718b7e8b4f292ec2d23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9981/5e84902733e101e267ca4718b7e8b4f292ec2d23/use_requirements.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
389,
24572,
1578,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
389,
24572,
1578,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return getattr(self,name)(url, realm) def retry_http_basic_auth(self, url, realm, data): | if data is None: return getattr(self,name)(url, realm) else: return getattr(self,name)(url, realm, data) def retry_http_basic_auth(self, url, realm, data=None): | def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): if headers.has_key('www-authenticate'): stuff = headers['www-authenticate'] import re match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff) if match: scheme, realm = match.groups() if string.lower(scheme) == 'basic': name = 'retry_' + sel... | 3a5bd739efe43e1407c3bacb5f150ccb46d4b617 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3a5bd739efe43e1407c3bacb5f150ccb46d4b617/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
1636,
67,
27002,
12,
2890,
16,
880,
16,
4253,
16,
393,
710,
16,
17460,
16,
1607,
16,
501,
33,
7036,
4672,
309,
1607,
18,
5332,
67,
856,
2668,
5591,
17,
22035,
11,
4672,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1062,
67,
1636,
67,
27002,
12,
2890,
16,
880,
16,
4253,
16,
393,
710,
16,
17460,
16,
1607,
16,
501,
33,
7036,
4672,
309,
1607,
18,
5332,
67,
856,
2668,
5591,
17,
22035,
11,
4672,
107... |
\item u = checkbox(default, label) | \item u = checkbox(default=True, label=None) | ... def _(a=(1,4), b=(0,10)): | d309010c54ba9edf1e2bfc229ca66c5c4e85a709 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d309010c54ba9edf1e2bfc229ca66c5c4e85a709/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
28657,
21,
16,
24,
3631,
324,
28657,
20,
16,
2163,
3719,
30,
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,
1372,
1652,
389,
12,
69,
28657,
21,
16,
24,
3631,
324,
28657,
20,
16,
2163,
3719,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
capability_name = _capability_names[ch] | capability_name = _capability_names.get(ch) if capability_name is None: return 0 | def has_key(ch): if type(ch) == type( '' ): ch = ord(ch) # Figure out the correct capability name for the keycode. capability_name = _capability_names[ch] #Check the current terminal description for that capability; #if present, return true, else return false. if _curses.tigetstr( capability_name ): return 1 else: re... | 38d31af3d9d9ba70c0b7dc3cc0c971b0c91607d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/38d31af3d9d9ba70c0b7dc3cc0c971b0c91607d9/has_key.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
856,
12,
343,
4672,
309,
618,
12,
343,
13,
422,
618,
12,
875,
262,
30,
462,
273,
4642,
12,
343,
13,
225,
468,
18818,
596,
326,
3434,
12593,
508,
364,
326,
498,
710,
18,
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,
711,
67,
856,
12,
343,
4672,
309,
618,
12,
343,
13,
422,
618,
12,
875,
262,
30,
462,
273,
4642,
12,
343,
13,
225,
468,
18818,
596,
326,
3434,
12593,
508,
364,
326,
498,
710,
18,
12... |
self.table.hide() | def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering') | 5921e86a0f8db837ec398576f4d3480209314d2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/5921e86a0f8db837ec398576f4d3480209314d2a/OWKMeans.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,... | |
return -cmp(string1, string2) | if string1 == string2: return 0 elif string1 < string2: return 1 else: return -1 | def collate_reverse(string1, string2): return -cmp(string1, string2) | dd764c3da7bfa1b68c706517eff0818ea5370e82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/dd764c3da7bfa1b68c706517eff0818ea5370e82/collation_reverse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4508,
340,
67,
9845,
12,
1080,
21,
16,
533,
22,
4672,
309,
533,
21,
422,
533,
22,
30,
327,
374,
1327,
533,
21,
411,
533,
22,
30,
327,
404,
469,
30,
327,
300,
21,
225,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4508,
340,
67,
9845,
12,
1080,
21,
16,
533,
22,
4672,
309,
533,
21,
422,
533,
22,
30,
327,
374,
1327,
533,
21,
411,
533,
22,
30,
327,
404,
469,
30,
327,
300,
21,
225,
2,
-100,
-1... |
def _closeCONN(self,fromMac): | def _closeCONN(self,fromMac,force=False): | def _closeCONN(self,fromMac): # Check if this client is even connected if self._isConnected(fromMac): # We just need to set the closed flag, since the socket will detect that and close itself # Lock the client self.clientDataBuffer[fromMac]["lock"].acquire() # Set it to be closed self.clientDataBuffer[fromMac]["closed... | 1524f73ddcdafea0593a636c358a3704901f8ce9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/1524f73ddcdafea0593a636c358a3704901f8ce9/NATLayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1652,
389,
4412,
27733,
12,
2890,
16,
2080,
9990,
16,
5734,
33,
8381,
4672,
468,
2073,
309,
333,
1004,
353,
5456,
5840,
309,
365,
6315,
291,
8932,
12,
2080,
9990,
4672,
468,
1660,
2537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1652,
389,
4412,
27733,
12,
2890,
16,
2080,
9990,
16,
5734,
33,
8381,
4672,
468,
2073,
309,
333,
1004,
353,
5456,
5840,
309,
365,
6315,
291,
8932,
12,
2080,
9990,
4672,
468,
1660,
2537,
... |
del msg['From'] msg['From'] = sender | msg['From'] = mail.addressencode(self.ui, sender, self.charsets) | def fix_sender(): '''try to make message have proper sender.''' | b7e568fe8787a79b868171c7e1ffb9ed3ddca72c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/b7e568fe8787a79b868171c7e1ffb9ed3ddca72c/notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
13332,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
15330,
13332,
9163,
698,
358,
1221,
883,
1240,
5338,
5793,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
launchUI = False | def run(): # Read the arguments. try: opts, args = getopt.getopt(sys.argv[1:], 'hbd:D:u:o:') except getopt.error, msg: print >>sys.stderr, str(msg) + '\n\n' + __doc__ sys.exit() launchUI = False for opt, arg in opts: if opt == '-h': print >>sys.stderr, __doc__ sys.exit() elif opt == '-b': launchUI = True elif opt == '... | c4d7670dff445a1db6fa6542323dae6b3cdc7cdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c4d7670dff445a1db6fa6542323dae6b3cdc7cdc/sb_pop3dnd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
468,
2720,
326,
1775,
18,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
16410,
30,
40,
30,
89,
30,
83,
2497,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
468,
2720,
326,
1775,
18,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
76,
16410,
30,
40,
30,
89,
30,
83,
2497,
1... | |
} else if (key_unindent(e)) { //unfortunately, shift-tab needs to get caught before not-shift tab | } else if (key_unindent(e) && cell_input.selectionStart != cell_input.selectionEnd) { //unfortunately, shift-tab needs to get caught before not-shift tab | def notebook_lib(): s= r""" | 7812d70ec18c3610dc87b53d5800fd7bc054e30a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7812d70ec18c3610dc87b53d5800fd7bc054e30a/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14718,
67,
2941,
13332,
272,
33,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
guests = \ groups.all_members(configuration.groups.guest_prefix + name) | guests = list( groups.all_members(configuration.groups.guest_prefix + name)) | def user_line(login): uid = users.login_to_uid(login) return '''<tr> <td>%s</td> <td>%s</td> <td>%s</td> </tr>''' % ( u[uid]['gecos'], login, uid ) | 1f04a4fc30ab0f9646c851ccb0f79e2bc831824d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/1f04a4fc30ab0f9646c851ccb0f79e2bc831824d/groups.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
1369,
12,
5819,
4672,
4555,
273,
3677,
18,
5819,
67,
869,
67,
1911,
12,
5819,
13,
327,
9163,
32,
313,
34,
411,
4465,
9822,
87,
1757,
4465,
34,
411,
4465,
9822,
87,
1757,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
67,
1369,
12,
5819,
4672,
4555,
273,
3677,
18,
5819,
67,
869,
67,
1911,
12,
5819,
13,
327,
9163,
32,
313,
34,
411,
4465,
9822,
87,
1757,
4465,
34,
411,
4465,
9822,
87,
1757,
446... |
self.portstr = device(port) | self.portstr = device(port) | def __init__(self, port, #number of device, numbering starts at #zero. if everything fails, the user #can specify a device string, note #that this isn't portable anymore baudrate=9600, #baudrate bytesize=EIGHTBITS, #number of databits parity=PARITY_NONE, #enable parity checking stopbits=S... | 8c4b0ed432b56741e9b9427d5694f2f92e7b461e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/8c4b0ed432b56741e9b9427d5694f2f92e7b461e/serialposix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1756,
16,
5375,
468,
2696,
434,
2346,
16,
1300,
310,
2542,
622,
468,
7124,
18,
309,
7756,
6684,
16,
326,
729,
468,
4169,
4800,
279,
2346,
533,
16,
4721,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1756,
16,
5375,
468,
2696,
434,
2346,
16,
1300,
310,
2542,
622,
468,
7124,
18,
309,
7756,
6684,
16,
326,
729,
468,
4169,
4800,
279,
2346,
533,
16,
4721,
... |
glX = (1, 1, 1e-6, 0.01) gXopt = fmin(self.newEKF, glX, xtol=1e-6) | glX = (0.0, 0.0, 0.0, 0.0) gXopt = fmin(self.newEKF, glX, xtol=1e-10) | def __init__(self, bagPath): # gX is: qV qW qB encVc encVl yawVc yawVl lec rec yc track self.bag = rosbag.Bag(bagPath) #self.mag = (20, 20, 1, 1, 1, 1, 1)#, 1e-5, 1e-5, .0126, .56) #self.signed = (1, 1, 1, 1, -1, 1, -1)#, 1e-5, 1e-5, .0126, .56) #gX = (1.0, 1.0, 1e-6, .002, .002, .002, .002)#, 1e-5, 1e-5, .0126, .56) g... | 34d4f09b039e70487059f0c0f57fcf51fdda7ac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14739/34d4f09b039e70487059f0c0f57fcf51fdda7ac3/cwru_ekf_kalibrater_thrun2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13189,
743,
4672,
468,
314,
60,
353,
30,
1043,
58,
1043,
59,
1043,
38,
2446,
58,
71,
2446,
58,
80,
677,
2219,
58,
71,
677,
2219,
58,
80,
884,
71,
195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13189,
743,
4672,
468,
314,
60,
353,
30,
1043,
58,
1043,
59,
1043,
38,
2446,
58,
71,
2446,
58,
80,
677,
2219,
58,
71,
677,
2219,
58,
80,
884,
71,
195... |
def get(self): requested_shard_index = self.request.get('shard_index') sitemap_info = _get_static_sitemap_info() shard_size_seconds = sitemap_info.shard_size_seconds then = sitemap_info.static_sitemaps_generation_time | def get(self): requested_shard_index = self.request.get('shard_index') sitemap_info = _get_static_sitemap_info() shard_size_seconds = sitemap_info.shard_size_seconds then = sitemap_info.static_sitemaps_generation_time | def get(self): requested_shard_index = self.request.get('shard_index') sitemap_info = _get_static_sitemap_info() shard_size_seconds = sitemap_info.shard_size_seconds then = sitemap_info.static_sitemaps_generation_time | 64c260bbfba7eb92917fa51399bfcab18972dc86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6014/64c260bbfba7eb92917fa51399bfcab18972dc86/sitemap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
3764,
67,
22630,
67,
1615,
273,
365,
18,
2293,
18,
588,
2668,
22630,
67,
1615,
6134,
14628,
67,
1376,
273,
389,
588,
67,
3845,
67,
21517,
67,
1376,
1435,
5820,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
3764,
67,
22630,
67,
1615,
273,
365,
18,
2293,
18,
588,
2668,
22630,
67,
1615,
6134,
14628,
67,
1376,
273,
389,
588,
67,
3845,
67,
21517,
67,
1376,
1435,
5820,
67,... |
def __del__(self): if hasattr(self, "set_colour_val"): del self.set_colour_val | def __del__(self): if hasattr(self, "set_colour_val"): del self.set_colour_val | a6ee08e16adcbd4aaf1f47690b79d8040f8ea1ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/a6ee08e16adcbd4aaf1f47690b79d8040f8ea1ee/colourselect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
315,
542,
67,
27408,
67,
1125,
6,
4672,
1464,
365,
18,
542,
67,
27408,
67,
1125,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
315,
542,
67,
27408,
67,
1125,
6,
4672,
1464,
365,
18,
542,
67,
27408,
67,
1125,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
old = sysconfig._config_vars.get('VERSION') | old = sysconfig.get_config_vars().get('VERSION') | def test_version_int(self): source = self.mkdtemp() target = self.mkdtemp() expected = self.write_sample_scripts(source) | 1895c5a9c92b8da3ffced0ed25293f7b54257600 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/1895c5a9c92b8da3ffced0ed25293f7b54257600/test_build_scripts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1589,
67,
474,
12,
2890,
4672,
1084,
273,
365,
18,
24816,
72,
5814,
1435,
1018,
273,
365,
18,
24816,
72,
5814,
1435,
2665,
273,
365,
18,
2626,
67,
6358,
67,
12827,
12,
3168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1589,
67,
474,
12,
2890,
4672,
1084,
273,
365,
18,
24816,
72,
5814,
1435,
1018,
273,
365,
18,
24816,
72,
5814,
1435,
2665,
273,
365,
18,
2626,
67,
6358,
67,
12827,
12,
3168,
... |
logger.debug("Removing connection point from %s", dn) | logger.debug("Removing connection point '%s' from %s", container_name, dn) | def ScpDelete(service_class_name, container_name = None, dn = None): container_name = container_name or service_class_name if dn is None: dn = win32api.GetComputerObjectName(win32con.NameFullyQualifiedDN) logger.debug("Removing connection point from %s", dn) # Compose the ADSpath and bind to the computer object for th... | e67bf574f1e0bed3d685e2d7db61bc43d2065b1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/e67bf574f1e0bed3d685e2d7db61bc43d2065b1e/scp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2850,
84,
2613,
12,
3278,
67,
1106,
67,
529,
16,
1478,
67,
529,
273,
599,
16,
8800,
273,
599,
4672,
1478,
67,
529,
273,
1478,
67,
529,
578,
1156,
67,
1106,
67,
529,
309,
8800,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2850,
84,
2613,
12,
3278,
67,
1106,
67,
529,
16,
1478,
67,
529,
273,
599,
16,
8800,
273,
599,
4672,
1478,
67,
529,
273,
1478,
67,
529,
578,
1156,
67,
1106,
67,
529,
309,
8800,
353,
... |
message['to'] = "%schat@conference.%s" % (wfo.lower(), CHATSERVER,) | message['to'] = "%schat@conference.%s" % (wfo.lower(), secret.CHATSERVER,) | def processMessagePC(self, elem): _from = jid.JID( elem["from"] ) # Intercept private messages via a chatroom, can't do that :) if (_from.host == "conference.%s" % (CHATSERVER,)): self.send_private_request( _from ) return | 24fa6a8a683868db6a24e95e0b656f67ea1dbe8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/24fa6a8a683868db6a24e95e0b656f67ea1dbe8d/iemchatbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1079,
3513,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
468,
5294,
956,
3238,
2743,
3970,
279,
7916,
13924,
16,
848,
1404,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1079,
3513,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
468,
5294,
956,
3238,
2743,
3970,
279,
7916,
13924,
16,
848,
1404,
741,
... |
print r.allAttributes("object1") print r.allValueRecords("object1", "has color") print [(record.valueBytes, record.timestamp) for record in r.allValueRecords("object1", "has color")] | print r.allAttributesForEntity("object1") print r.findAllRecordsForEntity("object1", "has color") print [(record.valueBytes, record.timestamp) for record in r.findAllRecordsForEntityAttribute("object1", "has color")] | def test(): r = Repository() print "writing ======" record1 = r.add("object1", "color", "red1") print record1, record1.position record2 = r.add("object1", "has color", "red2") print record2, record2.position record3 = r.add("object1", "has\ncolor", "red3") print record3, record3.position record4 = r.add("object1", "%ha... | 8839d41b4902284885aa0f6eec2baec40b95d651 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1514/8839d41b4902284885aa0f6eec2baec40b95d651/pointrel20071003.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
436,
273,
6281,
1435,
1172,
315,
14345,
422,
894,
6,
1409,
21,
273,
436,
18,
1289,
2932,
1612,
21,
3113,
315,
3266,
3113,
315,
1118,
21,
7923,
1172,
1409,
21,
16,
1409,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
436,
273,
6281,
1435,
1172,
315,
14345,
422,
894,
6,
1409,
21,
273,
436,
18,
1289,
2932,
1612,
21,
3113,
315,
3266,
3113,
315,
1118,
21,
7923,
1172,
1409,
21,
16,
1409,
21... |
handler = self.handler(sock_obj, self) | handler = self.handler(sock, self) | def handle_accept(self): """Called when remote client initiates a connection.""" try: sock_obj, addr = self.accept() except TypeError: # for some reason sometimes accept() returns None instead # of a socket return log("[]%s:%s Connected." %addr[:2]) | ac3495fc4fa1ac686345371b8771ab792c1da94c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3782/ac3495fc4fa1ac686345371b8771ab792c1da94c/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
3536,
8185,
1347,
2632,
1004,
1208,
16020,
279,
1459,
12123,
775,
30,
7313,
67,
2603,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
468,
364,
2690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
9436,
12,
2890,
4672,
3536,
8185,
1347,
2632,
1004,
1208,
16020,
279,
1459,
12123,
775,
30,
7313,
67,
2603,
16,
3091,
273,
365,
18,
9436,
1435,
1335,
3580,
30,
468,
364,
2690,
... |
if 'move%s_product_id'%(m.id) not in self._columns: self._columns['move%s_product_id'%(m.id)] = fields.many2one('product.product',string="Product") if 'move%s_product_qty'%(m.id) not in self._columns: self._columns['move%s_product_qty'%(m.id)] = fields.float("Quantity") if 'move%s_product_uom'%(m.id) not in self._colum... | def __get_active_stock_moves(self, cr, uid, context=None): move_obj = self.pool.get('stock.move') if not context: context = {} res = [] for move in move_obj.browse(cr, uid, context.get('active_ids', [])): if move.state in ('done', 'cancel'): continue res.append(self.__create_partial_move_memory(move)) print res | 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.... | 957482358411ba62d97e82c425318e0708be09e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/957482358411ba62d97e82c425318e0708be09e2/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... |
self.setRTS(0) self.setDTR(0) | def close(self): """close port""" if self.hComPort: #Wait until data is transmitted, but not too long... (Timeout-Time) #while 1: # flags, comState = win32file.ClearCommError(hComPort) # if comState.cbOutQue <= 0 or calcTimeout(startTime) > timeout: # break | fa722d41622f8c5675674f698fd3843a3d3a8e3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/fa722d41622f8c5675674f698fd3843a3d3a8e3a/serialwin32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4412,
1756,
8395,
309,
365,
18,
76,
799,
2617,
30,
468,
5480,
3180,
501,
353,
906,
7948,
16,
1496,
486,
4885,
1525,
2777,
261,
2694,
17,
950,
13,
468,
17523... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
4412,
1756,
8395,
309,
365,
18,
76,
799,
2617,
30,
468,
5480,
3180,
501,
353,
906,
7948,
16,
1496,
486,
4885,
1525,
2777,
261,
2694,
17,
950,
13,
468,
17523... | |
for (int iter_n=0; iter_n < Os[1]; iter_n++) { // loop over columns | for (int iter_n=0; iter_n < Os[1]; iter_n++) { // loop over columns | def my_dup2(st): s="" iter=0 for i in range(unroll_bsize): d["unroll_biter"]=i for j in range(unroll_ksize): d["unroll_kiter"]=j d["unroll_iter"]=iter iter+=1 s+=st%d return s+"\n" | aaea1d322c657ba643c240526cb3f00d5d2d997d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aaea1d322c657ba643c240526cb3f00d5d2d997d/conv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
26427,
22,
12,
334,
4672,
272,
1546,
6,
1400,
33,
20,
364,
277,
316,
1048,
12,
318,
2693,
67,
70,
1467,
4672,
302,
9614,
318,
2693,
67,
70,
2165,
11929,
33,
77,
364,
525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
26427,
22,
12,
334,
4672,
272,
1546,
6,
1400,
33,
20,
364,
277,
316,
1048,
12,
318,
2693,
67,
70,
1467,
4672,
302,
9614,
318,
2693,
67,
70,
2165,
11929,
33,
77,
364,
525,
... |
"""rows should be a sequence of (real value, displayed value, isSelected)""" | "rows should be a sequence of (real value, displayed value, isSelected)" | def selectBox(name, rows, blank=None, extra=''): """rows should be a sequence of (real value, displayed value, isSelected)""" res = '<select name="%s" %s>\n' % (name, extra) if blank is not None: res = res + '<OPTION value="%s"> </OPTION>\n' % blank for row in rows: res = res + '<OPTION value="%s"' % row[0] if row... | d3843e17612f84bb1410479bfebe54ab881ff694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/d3843e17612f84bb1410479bfebe54ab881ff694/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
3514,
12,
529,
16,
2595,
16,
7052,
33,
7036,
16,
2870,
2218,
11,
4672,
315,
3870,
1410,
506,
279,
3102,
434,
261,
7688,
460,
16,
10453,
460,
16,
20956,
2225,
400,
273,
2368,
4025... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
3514,
12,
529,
16,
2595,
16,
7052,
33,
7036,
16,
2870,
2218,
11,
4672,
315,
3870,
1410,
506,
279,
3102,
434,
261,
7688,
460,
16,
10453,
460,
16,
20956,
2225,
400,
273,
2368,
4025... |
Calling ``Digraph`` on a graph returns the original graph in which every edge is replaced by two different edges going toward opposite directions. In order to obtain more information about these degraph constructors, access the documentation as follows:: sage: digraphs.RandomDirectedGNP? Once you have defined the di... | Calling ``Digraph`` on a graph returns the original graph in which every edge is replaced by two different edges going toward opposite directions. In order to obtain more information about these digraph constructors, access the documentation by typing ``digraphs.RandomDirectedGNP?``. Once you have defined the digraph... | def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. INPUT: - ``weight_function`` - A function that takes an edge and returns a numeric weight. Defaults to assigning each edge a... | a1371df28f1a50021d7507de4e96bdcb7caafce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a1371df28f1a50021d7507de4e96bdcb7caafce8/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
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,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... |
check_style(u"''mainz''", "''") check_style(u"'''mainz'''", "'''") check_style(u"'''''mainz'''''", "'''", "''") check_style(u"'''''mainz'' bla'''", "'''", "''") check_style(u"'''''mainz''' bla''", "''", "'''") check_style(u"'''''''''''''''''''pp'''''", "'''", "''") check_style(u"'''test''bla", "''") | yield check_style, u"''frankfurt''", (2,) yield check_style, u"'''mainz'''", (3,) yield check_style,u"'''''hamburg'''''", (3,2) yield check_style, u"'''''foo'' bla'''", (3,2,3) yield check_style, u"'''''mainz''' bla''", (3,2,2) yield check_style, u"'''''''''''''''''''pp'''''", (3,2) yield check_style, u"'''test''bla", ... | def test_style(): check_style(u"''mainz''", "''") check_style(u"'''mainz'''", "'''") check_style(u"'''''mainz'''''", "'''", "''") check_style(u"'''''mainz'' bla'''", "'''", "''") check_style(u"'''''mainz''' bla''", "''", "'''") check_style(u"'''''''''''''''''''pp'''''", "'''", "''") check_style(u"'''test''bla", "''") | 998204e9703eb1c78ba66a64b5eb02b0e22f2807 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/998204e9703eb1c78ba66a64b5eb02b0e22f2807/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4060,
13332,
2824,
866,
67,
4060,
16,
582,
5187,
11,
4840,
2304,
74,
295,
88,
6309,
3113,
261,
22,
16,
13,
2824,
866,
67,
4060,
16,
582,
5187,
6309,
5254,
94,
26418,
3113,
... |
+ '3d.mode': On of | + '3d.mode': One of | def preprocessimage(image,regionid,options = {}): """ Preprocess the image image should be an Image object regionid should be an integer, which indexes into image.region options is a dictionary. The following options are accepted: + 'bgsub.way': One of - 'ml' (default) - 'mb' and controls whether the region is selec... | 500f56775613c3bb22d4c97987cf372e1b233fc8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/500f56775613c3bb22d4c97987cf372e1b233fc8/preprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
2730,
12,
2730,
16,
6858,
350,
16,
2116,
273,
2618,
4672,
3536,
2962,
2567,
326,
1316,
225,
1316,
1410,
506,
392,
3421,
733,
3020,
350,
1410,
506,
392,
3571,
16,
1492,
5596,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17942,
2730,
12,
2730,
16,
6858,
350,
16,
2116,
273,
2618,
4672,
3536,
2962,
2567,
326,
1316,
225,
1316,
1410,
506,
392,
3421,
733,
3020,
350,
1410,
506,
392,
3571,
16,
1492,
5596,
1368,... |
self.search_box.set_search_string(u'search:"%s"' % qname) | self.search_box.set_search_string(u'search:"%s"' % qname, emit_changed=False) | def saved_search_selected(self, qname): qname = unicode(qname) if qname is None or not qname.strip(): self.search_box.clear() return if not saved_searches().lookup(qname): self.search_box.clear() self.setEditText(qname) return self.search_box.set_search_string(u'search:"%s"' % qname) self.setEditText(qname) self.setToo... | 9dd662ac0b21654a56e8909e18ee8769e6bdb2b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/9dd662ac0b21654a56e8909e18ee8769e6bdb2b3/search_box.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5198,
67,
3072,
67,
8109,
12,
2890,
16,
12621,
4672,
12621,
273,
5252,
12,
85,
529,
13,
309,
12621,
353,
599,
578,
486,
12621,
18,
6406,
13332,
365,
18,
3072,
67,
2147,
18,
8507,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5198,
67,
3072,
67,
8109,
12,
2890,
16,
12621,
4672,
12621,
273,
5252,
12,
85,
529,
13,
309,
12621,
353,
599,
578,
486,
12621,
18,
6406,
13332,
365,
18,
3072,
67,
2147,
18,
8507,
1435,... |
parts = resp[left+1].split(resp[left + 1:right]) | parts = resp[left + 1:right].split(resp[left+1]) | def parse229(resp, peer): '''Parse the '229' response for a EPSV request. Raises error_proto if it does not contain '(|||port|)' Return ('host.addr.as.numbers', port#) tuple.''' if resp[:3] <> '229': raise error_reply, resp left = resp.find('(') if left < 0: raise error_proto, resp right = resp.find(')', left + 1) if ... | 447d957bfb02e3ea58cc1cbd770e18092b82b287 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/447d957bfb02e3ea58cc1cbd770e18092b82b287/ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
3787,
29,
12,
12243,
16,
4261,
4672,
9163,
3201,
326,
296,
3787,
29,
11,
766,
364,
279,
512,
5857,
58,
590,
18,
20497,
555,
67,
9393,
309,
518,
1552,
486,
912,
7747,
20081,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3787,
29,
12,
12243,
16,
4261,
4672,
9163,
3201,
326,
296,
3787,
29,
11,
766,
364,
279,
512,
5857,
58,
590,
18,
20497,
555,
67,
9393,
309,
518,
1552,
486,
912,
7747,
20081,
96,
... |
def _filter(list, skip): result = [] for item in list: if item not in skip: result.append(item) return result | def _filter(flist, skip): return list(ifilterfalse(skip.__contains__, flist)) | def _filter(list, skip): result = [] for item in list: if item not in skip: result.append(item) return result | 05595e9d73b2c05fcd9492cf8f5d126282b82053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05595e9d73b2c05fcd9492cf8f5d126282b82053/filecmp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
12,
74,
1098,
16,
2488,
4672,
327,
666,
12,
430,
1088,
5743,
12,
7457,
16186,
12298,
972,
16,
284,
1098,
3719,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
12,
74,
1098,
16,
2488,
4672,
327,
666,
12,
430,
1088,
5743,
12,
7457,
16186,
12298,
972,
16,
284,
1098,
3719,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.wavelengths and not self.wavelength_units: | if len(self.wavelengths)>0 and not self.wavelength_units: | def verifyAttributes(self): """Clean up after loading a cube to make sure some values are populated and that everything that should have defaults does.""" | e1dad8a624feff49b6c5869ea7c44727595a4fc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/e1dad8a624feff49b6c5869ea7c44727595a4fc6/cube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
2498,
12,
2890,
4672,
3536,
7605,
731,
1839,
7153,
279,
18324,
358,
1221,
3071,
2690,
924,
854,
6737,
471,
716,
7756,
716,
1410,
1240,
3467,
1552,
12123,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
2498,
12,
2890,
4672,
3536,
7605,
731,
1839,
7153,
279,
18324,
358,
1221,
3071,
2690,
924,
854,
6737,
471,
716,
7756,
716,
1410,
1240,
3467,
1552,
12123,
2,
-100,
-100,
-100,
-100,
... |
if sys.version < '2.2': | if get_python_version() < '2.2': | def get_config_h_filename(): """Return full pathname of installed pyconfig.h file.""" if python_build: inc_dir = os.curdir else: inc_dir = get_python_inc(plat_specific=1) if sys.version < '2.2': config_h = 'config.h' else: # The name of the config.h file changed in 2.2 config_h = 'pyconfig.h' return os.path.join(inc_di... | 2356cd82c3490347fc50ac030d0ebcb8dc8543a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2356cd82c3490347fc50ac030d0ebcb8dc8543a5/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1425,
67,
76,
67,
3459,
13332,
3536,
990,
1983,
9806,
434,
5876,
2395,
1425,
18,
76,
585,
12123,
309,
5790,
67,
3510,
30,
7290,
67,
1214,
273,
1140,
18,
1397,
1214,
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,
336,
67,
1425,
67,
76,
67,
3459,
13332,
3536,
990,
1983,
9806,
434,
5876,
2395,
1425,
18,
76,
585,
12123,
309,
5790,
67,
3510,
30,
7290,
67,
1214,
273,
1140,
18,
1397,
1214,
469,
30,
... |
bind_result = globalhotkeys.bind(key, self.show_hide) if not bind_result: print "Error when binding %s"%key import sys sys.exit(1) | globalhotkeys.bind(key, self.show_hide) | def __init__(self): super(Guake, self).__init__(common.gladefile('guake.glade')) self.client = gconf.client_get_default() | 4f4ab35d5cb2363dd464e6b252d1c798bd01c2fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11147/4f4ab35d5cb2363dd464e6b252d1c798bd01c2fb/guake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
6099,
911,
16,
365,
2934,
972,
2738,
972,
12,
6054,
18,
7043,
69,
536,
398,
2668,
6891,
911,
18,
7043,
2486,
26112,
365,
18,
2625,
273,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
6099,
911,
16,
365,
2934,
972,
2738,
972,
12,
6054,
18,
7043,
69,
536,
398,
2668,
6891,
911,
18,
7043,
2486,
26112,
365,
18,
2625,
273,
314,
... |
self.check_sizeof(class_newstyle, h +\ p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p +\ self.align(4) +\ 16*p + self.align(i) + 20*p +\ 10*p + 3*p + 2*p + 2*p); | self.check_sizeof(class_newstyle, h + p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p + self.align(4) + 16*p + self.align(i) + 17*p + 3*p + 10*p + 2*p + 2*p) | def method(): pass | 59e8993391a94e8c1a09a3fa4f460e509c70a3ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/59e8993391a94e8c1a09a3fa4f460e509c70a3ad/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
req.redirect(req.get_header('Referer') or env.href.wiki()) | req.redirect(referer or env.href.wiki()) | def dispatch_request(path_info, args, req, env, database=None): import Wiki if not database: database = env.get_db_cnx() # Let the wiki module build a dictionary of all page names database = env.get_db_cnx() Wiki.populate_page_dict(database, env) authenticator = auth.Authenticator(database, req) if path_info == '/lo... | f97449b52904630e109a12d6e1e9f040876ef5a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f97449b52904630e109a12d6e1e9f040876ef5a0/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
2293,
12,
803,
67,
1376,
16,
833,
16,
1111,
16,
1550,
16,
2063,
33,
7036,
4672,
1930,
28268,
225,
309,
486,
2063,
30,
2063,
273,
1550,
18,
588,
67,
1966,
67,
10305,
92,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
2293,
12,
803,
67,
1376,
16,
833,
16,
1111,
16,
1550,
16,
2063,
33,
7036,
4672,
1930,
28268,
225,
309,
486,
2063,
30,
2063,
273,
1550,
18,
588,
67,
1966,
67,
10305,
92,
143... |
% ( styles.colors[styles.ST_LOG], styles.colors[styles.ST_BAD], retcode, styles.colors[styles.ST_LOG], result_code, styles.colors[styles.ST_NO], test) ) | % ( colors[ST_LOG], colors[ST_BAD], retcode, colors[ST_LOG], result_code, colors[ST_NO], test) ) | def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
464,
67,
4177,
261,
3076,
16,
8322,
67,
3813,
33,
8381,
16,
563,
67,
710,
33,
20,
16,
2879,
1546,
3113,
6405,
33,
11369,
4672,
3536,
4236,
279,
1296,
16,
1836,
518,
16,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
464,
67,
4177,
261,
3076,
16,
8322,
67,
3813,
33,
8381,
16,
563,
67,
710,
33,
20,
16,
2879,
1546,
3113,
6405,
33,
11369,
4672,
3536,
4236,
279,
1296,
16,
1836,
518,
16,
471,... |
def ignore(message, category=DeprecationWarning): warnings.filterwarnings("ignore", message, category) | use_py_module = (module_name == 'xml.etree.ElementTree') | def ignore(message, category=DeprecationWarning): warnings.filterwarnings("ignore", message, category) | 93fd3fb39ec5b35b05dc483df88794e0b2b5a4ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/93fd3fb39ec5b35b05dc483df88794e0b2b5a4ec/test_xml_etree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2305,
12,
2150,
16,
3150,
33,
758,
13643,
6210,
4672,
5599,
18,
2188,
12103,
2932,
6185,
3113,
883,
16,
3150,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2305,
12,
2150,
16,
3150,
33,
758,
13643,
6210,
4672,
5599,
18,
2188,
12103,
2932,
6185,
3113,
883,
16,
3150,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
try: fp = open(file) except: return None | fp = open(file) | def __init__(self, file=None): if not file: file = os.path.join(os.environ['HOME'], ".netrc") try: fp = open(file) except: return None self.hosts = {} self.macros = {} lexer = shlex.shlex(fp) | 5e70cfe22fb4df86c6a3af887148ee6b96d59bc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5e70cfe22fb4df86c6a3af887148ee6b96d59bc9/netrc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
33,
7036,
4672,
309,
486,
585,
30,
585,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
14209,
17337,
3552,
2758,
1310,
7923,
4253,
273,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
33,
7036,
4672,
309,
486,
585,
30,
585,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
14209,
17337,
3552,
2758,
1310,
7923,
4253,
273,
169... |
rank = L.ct[1] | def irreducible_character_freudenthal(hwv, L, debug=False): """INPUT: hwv - a dominant weight in a weight lattice. L - the ambient lattice Produces the dictionary of multiplicities for the irreducible character with highest weight lamb. The weight multiplicities are computed by the Freudenthal multiplity formula. The... | da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
15934,
30,
16139,
90,
300,
279,
4092,
20030,
3119,
316,
279,
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,
9482,
1118,
5286,
1523,
67,
11560,
67,
74,
266,
1100,
319,
22314,
12,
20701,
90,
16,
511,
16,
1198,
33,
8381,
4672,
3536,
15934,
30,
16139,
90,
300,
279,
4092,
20030,
3119,
316,
279,
3... | |
return value | return ''.join(value) | def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = '' | baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
-100,
-100,
-100,
-100,
... |
pixbuf = gcompris.utils.load_pixmap(self.tools[i][1]), | pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin(self.tools[i][1])), | def draw_tools(self): | 71d2a5f1e776d1abf498b3c50bbff69637e75673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/71d2a5f1e776d1abf498b3c50bbff69637e75673/anim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
6642,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
6642,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for c in self.children.values(): c.destroy() | for c in list(self.children.values()): c.destroy() | def destroy(self): # For some widgets e.g., a NoteBook, when we call destructors, # we must be careful not to destroy the frame widget since this # also destroys the parent NoteBook thus leading to an exception # in Tkinter when it finally calls Tcl to destroy the NoteBook for c in self.children.values(): c.destroy() i... | 9ce06932db59fd7a34c3605b63dabad86844d11c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/9ce06932db59fd7a34c3605b63dabad86844d11c/tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
468,
2457,
2690,
10965,
425,
18,
75,
12990,
279,
3609,
9084,
16,
1347,
732,
745,
23819,
1383,
16,
468,
732,
1297,
506,
26850,
486,
358,
5546,
326,
2623,
3604,
3241,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5546,
12,
2890,
4672,
468,
2457,
2690,
10965,
425,
18,
75,
12990,
279,
3609,
9084,
16,
1347,
732,
745,
23819,
1383,
16,
468,
732,
1297,
506,
26850,
486,
358,
5546,
326,
2623,
3604,
3241,... |
return PyShellEditorWindow.close(self) | return OutputWindow.close(self) | def close(self): # Extend base class method if self.executing: # XXX Need to ask a question here if not tkMessageBox.askokcancel( "Kill?", "The program is still running; do you want to kill it?", default="ok", master=self.text): return "cancel" self.canceled = 1 if self.reading: self.top.quit() return "cancel" return P... | 4269601f5c57a16bce656efd4576c86b054a95cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4269601f5c57a16bce656efd4576c86b054a95cd/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
468,
27686,
1026,
667,
707,
309,
365,
18,
4177,
8490,
30,
468,
11329,
12324,
358,
6827,
279,
5073,
2674,
309,
486,
13030,
27647,
18,
835,
601,
10996,
12,
315,
19045... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
468,
27686,
1026,
667,
707,
309,
365,
18,
4177,
8490,
30,
468,
11329,
12324,
358,
6827,
279,
5073,
2674,
309,
486,
13030,
27647,
18,
835,
601,
10996,
12,
315,
19045... |
log.info( 'create request' ) | def validate(self, request, data): | 00adc283837bd01ff938602ac599a91aed3ee3b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13853/00adc283837bd01ff938602ac599a91aed3ee3b1/facebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
590,
16,
501,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
12,
2890,
16,
590,
16,
501,
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,
... | |
raise "Not Implemented" | raise NotImplementedError | def addObjects(self, doc): # XXX Kiva specific changes raise "Not Implemented" | 4e20c80df88eebd4a85ac28667b2bc18474bc122 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13166/4e20c80df88eebd4a85ac28667b2bc18474bc122/pdfmetrics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
4710,
12,
2890,
16,
997,
4672,
468,
11329,
1475,
427,
69,
2923,
3478,
1002,
315,
1248,
18788,
6,
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,
527,
4710,
12,
2890,
16,
997,
4672,
468,
11329,
1475,
427,
69,
2923,
3478,
1002,
315,
1248,
18788,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
sage: os.listdir(W.directory()) | sage: sorted(os.listdir(W.directory())) | def delete_cells_directory(self): """ Delete the directory in which all the cell computations occur. | ee9936d0b574f5068c98d6f9d4f5400d42d9d2af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ee9936d0b574f5068c98d6f9d4f5400d42d9d2af/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
14741,
67,
5149,
12,
2890,
4672,
3536,
2504,
326,
1867,
316,
1492,
777,
326,
2484,
5305,
1012,
3334,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
14741,
67,
5149,
12,
2890,
4672,
3536,
2504,
326,
1867,
316,
1492,
777,
326,
2484,
5305,
1012,
3334,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.root = fs.revision_root(self.fs_ptr, rev, self.pool()) node_type = fs.check_path(self.root, self._scoped_svn_path, self.pool()) | pool = self.pool() self.root = fs.revision_root(self.fs_ptr, rev, pool) node_type = fs.check_path(self.root, self._scoped_svn_path, pool) | def __init__(self, path, rev, repos, pool=None): self.repos = repos self.fs_ptr = repos.fs_ptr self.authz = repos.authz self.scope = repos.scope self._scoped_svn_path = _to_svn(self.scope, path) self.pool = Pool(pool) self._requested_rev = rev | 3dd37faa9ebf0aaf1d3a2ee519e52fb03d0756d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/3dd37faa9ebf0aaf1d3a2ee519e52fb03d0756d0/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
5588,
16,
13686,
16,
2845,
33,
7036,
4672,
365,
18,
15564,
273,
13686,
365,
18,
2556,
67,
6723,
273,
13686,
18,
2556,
67,
6723,
365,
18,
1944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
16,
5588,
16,
13686,
16,
2845,
33,
7036,
4672,
365,
18,
15564,
273,
13686,
365,
18,
2556,
67,
6723,
273,
13686,
18,
2556,
67,
6723,
365,
18,
1944,
... |
context.env['CAIRO-PNG'] = None | context.env['CAIROPNG'] = None | def cairo(context): context.Message("checking for cairo (PNG) ... ") oldpath = context.env.get('CPPPATH',[]) cairopath = context.env.get('CAIROPATH') if cairopath and os.path.isfile(os.path.join(cairopath,'cairo.h')): context.env['CPPPATH'] = oldpath + [cairopath] else: for top in ('/usr/include','/usr/local/include'... | 95c6ee5248663f39c2b17425d13fd117d70a6224 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3143/95c6ee5248663f39c2b17425d13fd117d70a6224/configure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14503,
12,
2472,
4672,
819,
18,
1079,
2932,
24609,
364,
14503,
261,
23092,
13,
1372,
9369,
225,
1592,
803,
273,
819,
18,
3074,
18,
588,
2668,
4258,
52,
4211,
2187,
63,
5717,
225,
14503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14503,
12,
2472,
4672,
819,
18,
1079,
2932,
24609,
364,
14503,
261,
23092,
13,
1372,
9369,
225,
1592,
803,
273,
819,
18,
3074,
18,
588,
2668,
4258,
52,
4211,
2187,
63,
5717,
225,
14503,
... |
sage: f(x) = function('f',x) sage: _integrate_latex_(f(x),x) | sage: f = function('f',x) sage: _integrate_latex_(0,f,x) | def _integrate_latex_(*args): r""" Return LaTeX expression for integration of a symbolic function. EXAMPLES:: sage: from sage.calculus.calculus import _integrate_latex_ sage: var('x,a,b') (x, a, b) sage: f(x) = function('f',x) sage: _integrate_latex_(f(x),x) '\\int f\\left(x\\right)\\,{d x}' sage: _integrate_latex_(f... | acf862616c491eaa6eff0382681451ce96478191 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/acf862616c491eaa6eff0382681451ce96478191/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14970,
5141,
67,
26264,
67,
30857,
1968,
4672,
436,
8395,
2000,
21072,
21575,
60,
2652,
364,
12040,
434,
279,
16754,
445,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14970,
5141,
67,
26264,
67,
30857,
1968,
4672,
436,
8395,
2000,
21072,
21575,
60,
2652,
364,
12040,
434,
279,
16754,
445,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
628,
2... |
if x.getAttr('stamp')<self.getTimestamp(): self.setTimestamp(x.getAttr('stamp')) | if not self.getTimestamp() or x.getAttr('stamp')<self.getTimestamp(): self.setTimestamp(x.getAttr('stamp')) | def __init__(self, name=None, to=None, typ=None, frm=None, attrs={}, payload=[], timestamp=None, xmlns=None, node=None): """ Constructor, name is the name of the stanza i.e. 'message' or 'presence' or 'iq'. to is the value of 'to' attribure, 'typ' - 'type' attribute frn - from attribure, attrs - other attributes mappin... | 3fe11c14898eb3f0acf9ae03fb0de0d5582c4b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7194/3fe11c14898eb3f0acf9ae03fb0de0d5582c4b29/protocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
358,
33,
7036,
16,
3815,
33,
7036,
16,
31074,
33,
7036,
16,
3422,
28793,
2385,
22850,
6487,
2858,
33,
7036,
16,
12302,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
33,
7036,
16,
358,
33,
7036,
16,
3815,
33,
7036,
16,
31074,
33,
7036,
16,
3422,
28793,
2385,
22850,
6487,
2858,
33,
7036,
16,
12302,
33,
7036,
16,
... |
This will calculate the forces for 6 displacements per atom ±x, ±y, ±z. Only those calculations that are not already done will be started. Be aware that an interrupted calculation may produce an empty file (ending with .pckl), which must be deleted before restarting the job. Otherwise the forces will not be calculated... | This will calculate the forces for 6 displacements per atom ±x, ±y, ±z. Only those calculations that are not already done will be started. Be aware that an interrupted calculation may produce an empty file (ending with .pckl), which must be deleted before restarting the job. Otherwise the forces will not be calculated ... | def run(self): """Run the vibration calculations. | a047611f56e13f5c6be3a791bb062efa7d2092b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/a047611f56e13f5c6be3a791bb062efa7d2092b6/vibrations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
331,
11723,
20882,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
331,
11723,
20882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"""resynchronize(self, float localTime, int networkTime) | """resynchronize(self, float localTime, uint32 networkTime) | def resynchronize(self, localTime, networkTime): """resynchronize(self, float localTime, int networkTime) | 3e21ef1b1edcae4bac4777405290c51500096748 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/3e21ef1b1edcae4bac4777405290c51500096748/ClockDelta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
400,
2600,
554,
12,
2890,
16,
1191,
950,
16,
2483,
950,
4672,
3536,
455,
2600,
554,
12,
2890,
16,
1431,
1191,
950,
16,
509,
2483,
950,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
400,
2600,
554,
12,
2890,
16,
1191,
950,
16,
2483,
950,
4672,
3536,
455,
2600,
554,
12,
2890,
16,
1431,
1191,
950,
16,
509,
2483,
950,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lst.sort(lambda x,y:cmp(x.frag, y.frag)) | lst.sort(key=lambda x: x.frag) | def defrag(plist): """defrag(plist) -> ([not fragmented], [defragmented], [ [bad fragments], [bad fragments], ... ])""" frags = {} nofrag = PacketList() for p in plist: ip = p[IP] if IP not in p: nofrag.append(p) continue if ip.frag == 0 and ip.flags & 1 == 0: nofrag.append(p) continue uniq = (ip.id,ip.src,ip.dst,ip.pr... | 7e8bdd8210586069d64921ecdcaff510dbd1286b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/7e8bdd8210586069d64921ecdcaff510dbd1286b/inet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1652,
2458,
12,
17842,
4672,
3536,
536,
2458,
12,
17842,
13,
317,
23265,
902,
5481,
329,
6487,
306,
536,
3520,
329,
6487,
306,
306,
8759,
14656,
6487,
306,
8759,
14656,
6487,
1372,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1652,
2458,
12,
17842,
4672,
3536,
536,
2458,
12,
17842,
13,
317,
23265,
902,
5481,
329,
6487,
306,
536,
3520,
329,
6487,
306,
306,
8759,
14656,
6487,
306,
8759,
14656,
6487,
1372,
308,
... |
RecurrenceDialog(wx.GetApp().mainFrame, self) | wx.GetApp().PostAsyncEvent(self.runDialog) | def __setattr__(self, name, value): if name in self.proxyAttributes: object.__setattr__(self, name, value) elif self.proxiedItem.rruleset is None: setattr(self.proxiedItem, name, value) else: if hasattr(self.proxiedItem, name) and \ getattr(self.proxiedItem, name) == value: pass elif self.currentlyModifying is None: se... | cec57a0f610302dd30616efeb1089c2fa0451779 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/cec57a0f610302dd30616efeb1089c2fa0451779/RecurrenceDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
316,
365,
18,
5656,
2498,
30,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
1327,
365,
18,
20314,
2092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
316,
365,
18,
5656,
2498,
30,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
1327,
365,
18,
20314,
2092... |
self.status_cb(progress=100*i/len(children)) | self.status_cb(progress=100*i/total_children) | def clean(self, cleanerMethods): """Clean parse tree using cleaner methods in the methodList.""" cleanerList = [] for method in cleanerMethods: f = getattr(self, method, None) if f: cleanerList.append(f) else: raise 'TreeCleaner has no method: %r' % method | c81bc82fc23bb13fc8e2d31f211477a1affcc48f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/c81bc82fc23bb13fc8e2d31f211477a1affcc48f/treecleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
12,
2890,
16,
25933,
4712,
4672,
3536,
7605,
1109,
2151,
1450,
25933,
2590,
316,
326,
707,
682,
12123,
25933,
682,
273,
5378,
364,
707,
316,
25933,
4712,
30,
284,
273,
3869,
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,
2721,
12,
2890,
16,
25933,
4712,
4672,
3536,
7605,
1109,
2151,
1450,
25933,
2590,
316,
326,
707,
682,
12123,
25933,
682,
273,
5378,
364,
707,
316,
25933,
4712,
30,
284,
273,
3869,
12,
28... |
attrs['mime'], mime, attrs['url']) | origmime, mime, attrs['url']) | def recognize (self, buf, attrs): # note: recognizing a mime type fixes exploits like # CVE-2002-0025 and CVE-2002-0024 wc.log.debug(wc.LOG_FILTER, "MIME recognize %d bytes of data", buf.tell()) try: mime = wc.magic.classify(buf) wc.log.debug(wc.LOG_FILTER, "MIME recognized %r", mime) if mime is not None and not attrs[... | bffc3d94a89ba5dab90f82581015bc299bcb8c9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/bffc3d94a89ba5dab90f82581015bc299bcb8c9a/MimeRecognizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21431,
261,
2890,
16,
1681,
16,
3422,
4672,
468,
4721,
30,
14603,
6894,
279,
4892,
618,
24436,
15233,
1282,
3007,
468,
385,
3412,
17,
6976,
22,
17,
713,
2947,
471,
385,
3412,
17,
6976,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21431,
261,
2890,
16,
1681,
16,
3422,
4672,
468,
4721,
30,
14603,
6894,
279,
4892,
618,
24436,
15233,
1282,
3007,
468,
385,
3412,
17,
6976,
22,
17,
713,
2947,
471,
385,
3412,
17,
6976,
... |
work_keys = update_works(akey, works, do_updates=True) for key in work_keys: w = ol.get(key) if 'cover_edition' not in w: print 'no cover found' update_work(withKey(key), debug=True) if work_keys: requests = ['<commit />'] solr_update(requests, debug=True) | to_update = update_works(akey, works, do_updates=True) requests = [] for w in to_update: requests += update_work(w) if to_update: solr_update(requests + ['<commit />'], debug=True) requests = update_author(akey) solr_update(requests + ['<commit/>'], index='authors', debug=True) | def update_works(akey, works, do_updates=False): # we can now look up all works by an author while True: # until redirects repaired q = {'type':'/type/edition', 'authors': akey, 'works': None} work_to_edition = defaultdict(set) edition_to_work = defaultdict(set) for e in query_iter(q): if e.get('works', None): for w in... | fdc40d1c05e36c09d13aa8bf1352122ac212737c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/fdc40d1c05e36c09d13aa8bf1352122ac212737c/find_works.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
18597,
12,
581,
402,
16,
6330,
16,
741,
67,
14703,
33,
8381,
4672,
468,
732,
848,
2037,
2324,
731,
777,
6330,
635,
392,
2869,
1323,
1053,
30,
468,
3180,
18064,
2071,
69,
2921... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
18597,
12,
581,
402,
16,
6330,
16,
741,
67,
14703,
33,
8381,
4672,
468,
732,
848,
2037,
2324,
731,
777,
6330,
635,
392,
2869,
1323,
1053,
30,
468,
3180,
18064,
2071,
69,
2921... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.