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 |
|---|---|---|---|---|---|---|
"Return the system identifier for the current event." return None | "Return the system identifier for the current event." return None | def getSystemId(self): | d3d7bb4bfc15c5224e3fb0c3fea8be0163db5c70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d3d7bb4bfc15c5224e3fb0c3fea8be0163db5c70/xmlreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12996,
548,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12996,
548,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'OR planned_date IS NULL)) '\ | ')) '\ | def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Compute for each location and product the stock quantity in the default uom of the product. | 93e4602fa0fbb259aef89b41945d6e51956f82b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/93e4602fa0fbb259aef89b41945d6e51956f82b1/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
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,
10406,
67,
1637,
67,
3562,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
2232,
16,
3017,
67,
2232,
33,
7036,
16,
598,
67,
3624,
87,
33,
8381,
16,
2488,
67,
7124,
33,
5510,
16,
819,
33... |
xincludate(dom) | xincludate(dom, argv[0]) | def xincludate(dom, dropns = []): remove_attrs = [] for i in xrange(dom.documentElement.attributes.length): attr = dom.documentElement.attributes.item(i) if attr.prefix == 'xmlns': if attr.localName in dropns: remove_attrs.append(attr) else: dropns.append(attr.localName) for attr in remove_attrs: dom.documentElement.re... | 69abf631df39849a6e35cc67fa6422f97925acd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7593/69abf631df39849a6e35cc67fa6422f97925acd3/xincludator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
267,
830,
89,
712,
12,
9859,
16,
3640,
2387,
273,
5378,
4672,
1206,
67,
7039,
273,
5378,
364,
277,
316,
12314,
12,
9859,
18,
5457,
1046,
18,
4350,
18,
2469,
4672,
1604,
273,
4092,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
267,
830,
89,
712,
12,
9859,
16,
3640,
2387,
273,
5378,
4672,
1206,
67,
7039,
273,
5378,
364,
277,
316,
12314,
12,
9859,
18,
5457,
1046,
18,
4350,
18,
2469,
4672,
1604,
273,
4092,... |
os.makedirs(os.path.dirname(cachep), mode=0777) | try: os.makedirs(os.path.dirname(cachep), mode=0777) except: time.sleep(5) os.makedirs(os.path.dirname(cachep), mode=0777) | def open(self): time.sleep(5) self._main_prefix = self._card_prefix = None if islinux: try: self.open_linux() except DeviceError: time.sleep(3) self.open_linux() if iswindows: try: self.open_windows() except DeviceError: time.sleep(3) self.open_windows() if isosx: try: self.open_osx() except DeviceError: time.sleep(3) ... | 133d1d761baeb0bd8f24d0cb9409a0043337d85c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/133d1d761baeb0bd8f24d0cb9409a0043337d85c/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
4672,
813,
18,
19607,
12,
25,
13,
365,
6315,
5254,
67,
3239,
273,
365,
6315,
3327,
67,
3239,
273,
599,
309,
353,
20132,
30,
775,
30,
365,
18,
3190,
67,
20132,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
4672,
813,
18,
19607,
12,
25,
13,
365,
6315,
5254,
67,
3239,
273,
365,
6315,
3327,
67,
3239,
273,
599,
309,
353,
20132,
30,
775,
30,
365,
18,
3190,
67,
20132,
1435,
1... |
def son2_item_event(self, widget, event=None): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: gcompris.sound.play_ogg("melody/son2") return gtk.FALSE def son3_item_event(self, widget, event=None): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: gcompris.sound.play_ogg("melody/son3") return ... | def son1_item_event(self, widget, event=None): if event.type == gtk.gdk.BUTTON_PRESS: if event.button == 1: gcompris.sound.play_ogg("melody/son1") return gtk.FALSE | d0b9a61ff7e201727e6e488e54d1db34d86881e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/d0b9a61ff7e201727e6e488e54d1db34d86881e4/melody.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18882,
21,
67,
1726,
67,
2575,
12,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
309,
871,
18,
5391,
422,
404,
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,
18882,
21,
67,
1726,
67,
2575,
12,
2890,
16,
3604,
16,
871,
33,
7036,
4672,
309,
871,
18,
723,
422,
22718,
18,
75,
2883,
18,
20068,
67,
22526,
30,
309,
871,
18,
5391,
422,
404,
30,
... | |
i = M.rfind('[C\x1b[C\n') if i != -1: M = M[i+len('[C\x1b[C\n'):] x.append(M) | if UNAME == 'Darwin': phrase = L else: phrase = '[C\x1b[C\n' i = M.rfind(phrase) if i > 1: M = M[i+len(phrase):] x.append(M.strip()) | def eval(self, code, strip=True): self._synchronize() code = str(code) code = code.strip() code = code.replace('\n',' ') x = [] for L in code.split('\n'): if L != '': try: s = self.__in_seq + 1 pr = '\[%s\]>'%s #M = self._eval_line(L, wait_for_prompt=pr) M = self._eval_line(L, wait_for_prompt=self._prompt) i = M.rfind(... | 3c18e73031891983df373fa01c7337f27e0c190c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3c18e73031891983df373fa01c7337f27e0c190c/lisp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
981,
16,
2569,
33,
5510,
4672,
365,
6315,
87,
2600,
554,
1435,
981,
273,
609,
12,
710,
13,
981,
273,
981,
18,
6406,
1435,
981,
273,
981,
18,
2079,
2668,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
12,
2890,
16,
981,
16,
2569,
33,
5510,
4672,
365,
6315,
87,
2600,
554,
1435,
981,
273,
609,
12,
710,
13,
981,
273,
981,
18,
6406,
1435,
981,
273,
981,
18,
2079,
2668,
64,
82,
... |
th.append(xul.Splitter(_class="tree-splitter")) | th.append(xul.Splitter(_class=u"tree-splitter")) | def __init__(self, headerLabels, mapper, items=None, **kwargs): t = xul.Tree(**kwargs) th = xul.TreeCols() for cell in headerLabels: th.append(xul.TreeCol(flex=1, label=cell)) th.append(xul.Splitter(_class="tree-splitter")) t.append(th) tc = xul.TreeChildren() t.append(tc) self.tree = t self.treeChildren = tc self.clie... | 4be5471eb689be3e6968aa3370e51532dc413281 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2333/4be5471eb689be3e6968aa3370e51532dc413281/composite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1446,
5888,
16,
5815,
16,
1516,
33,
7036,
16,
2826,
4333,
4672,
268,
273,
619,
332,
18,
2471,
12,
636,
4333,
13,
286,
273,
619,
332,
18,
2471,
8011,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1446,
5888,
16,
5815,
16,
1516,
33,
7036,
16,
2826,
4333,
4672,
268,
273,
619,
332,
18,
2471,
12,
636,
4333,
13,
286,
273,
619,
332,
18,
2471,
8011,
14... |
'DBPort': {'signature': update_signature}} | 'DBPort': {'signature': update_signature}, 'DBGroup': {'workflow': update_workflow}} | def update_sigstring(old_obj, translate_dict): return old_obj.db_spec | b3a2a5134793632fcea9ab31592d997a27d91755 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/b3a2a5134793632fcea9ab31592d997a27d91755/v0_9_4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7340,
1080,
12,
1673,
67,
2603,
16,
4204,
67,
1576,
4672,
327,
1592,
67,
2603,
18,
1966,
67,
2793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
67,
7340,
1080,
12,
1673,
67,
2603,
16,
4204,
67,
1576,
4672,
327,
1592,
67,
2603,
18,
1966,
67,
2793,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
@xfail | def test_table_style_parsing_1(): """http://code.pediapress.com/wiki/ticket/172""" s = '{| class="prettytable"\n|-\n|blub\n|align="center"|+bla\n|}\n' r=parse(s) cells = r.find(parser.Cell) print "VLIST:", cells[1].vlist assert cells[1].vlist == dict(align="center"), "bad vlist" | 89e40ec3e97700072d194cfac87c6a7de1270a76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/89e40ec3e97700072d194cfac87c6a7de1270a76/test_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
4060,
67,
24979,
67,
21,
13332,
3536,
2505,
2207,
710,
18,
1845,
77,
438,
663,
18,
832,
19,
13044,
19,
16282,
19,
28406,
8395,
272,
273,
2292,
96,
667,
1546,
19073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2121,
67,
4060,
67,
24979,
67,
21,
13332,
3536,
2505,
2207,
710,
18,
1845,
77,
438,
663,
18,
832,
19,
13044,
19,
16282,
19,
28406,
8395,
272,
273,
2292,
96,
667,
1546,
19073,... | |
self.tags = {} | self.tags = odict() | def __init__(self, name): self.name = name self.value = None self.tags = {} | 6de1b29629397bc7328f1a44da7530ea2ff53dac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2770/6de1b29629397bc7328f1a44da7530ea2ff53dac/annotationparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
365,
18,
529,
273,
508,
365,
18,
1132,
273,
599,
365,
18,
4156,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
365,
18,
529,
273,
508,
365,
18,
1132,
273,
599,
365,
18,
4156,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return "[%json]" % r | return "[%s]" % r | def dump_list(item): r = "" for element in item: if r: r += "," r += dumps(element) return "[%json]" % r | e880137ada44591f4ec05036b28036095c7dcd24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/e880137ada44591f4ec05036b28036095c7dcd24/compactjson.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
1098,
12,
1726,
4672,
436,
273,
1408,
364,
930,
316,
761,
30,
309,
436,
30,
436,
1011,
5753,
436,
1011,
6711,
12,
2956,
13,
327,
30048,
87,
4279,
738,
436,
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,
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,
4657,
67,
1098,
12,
1726,
4672,
436,
273,
1408,
364,
930,
316,
761,
30,
309,
436,
30,
436,
1011,
5753,
436,
1011,
6711,
12,
2956,
13,
327,
30048,
87,
4279,
738,
436,
225,
2,
-100,
-1... |
"audioconvert ! audioresample ! " + _WAV_PCM_PARSE + " ! wavenc name=stw_wavenc" | "audioconvert ! wavenc name=stw_wavenc" | def source_to_wav(source, sink): """ Converts a given source element to wav format and sends it to sink element. To convert a media file to a wav using gst-launch: source ! decodebin ! audioconvert ! audioresample ! $_WAV_PCM_PARSE ! wavenc """ bin = gst.parse_launch( "decodebin name=stw_decodebin !" "audioconvert ! ... | 70ec8e50990300492f63464d4188f59deba13fd8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2207/70ec8e50990300492f63464d4188f59deba13fd8/audio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1084,
67,
869,
67,
24801,
12,
3168,
16,
9049,
4672,
3536,
20377,
279,
864,
1084,
930,
358,
19342,
740,
471,
9573,
518,
358,
9049,
930,
18,
225,
2974,
1765,
279,
3539,
585,
358,
279,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1084,
67,
869,
67,
24801,
12,
3168,
16,
9049,
4672,
3536,
20377,
279,
864,
1084,
930,
358,
19342,
740,
471,
9573,
518,
358,
9049,
930,
18,
225,
2974,
1765,
279,
3539,
585,
358,
279,
19... |
return "--output=%s:%s" % shellEscape(bz2mode, xmlbz2) | return "--output=%s:%s" % shellEscape((bz2mode, xmlbz2)) | def buildFilters(self, runner): """Construct the output filter options for dumpTextPass.php""" xmlbz2 = self._path(runner, "bz2") if runner.config.bzip2[-6:] == "dbzip2": bz2mode = "dbzip2" else: bz2mode = "bzip2" return "--output=%s:%s" % shellEscape(bz2mode, xmlbz2) | ed93a88b0e3d072036883711475f8385cbb47336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9870/ed93a88b0e3d072036883711475f8385cbb47336/worker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5422,
12,
2890,
16,
8419,
4672,
3536,
7249,
326,
876,
1034,
702,
364,
4657,
1528,
6433,
18,
2684,
8395,
2025,
25292,
22,
273,
365,
6315,
803,
12,
18156,
16,
315,
25292,
22,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5422,
12,
2890,
16,
8419,
4672,
3536,
7249,
326,
876,
1034,
702,
364,
4657,
1528,
6433,
18,
2684,
8395,
2025,
25292,
22,
273,
365,
6315,
803,
12,
18156,
16,
315,
25292,
22,
7923,
... |
del self.hrefs[item.href] | if item.href in self.hrefs: del self.hrefs[item.href] | def remove(self, item): """Removes :param:`item` from the manifest.""" if item in self.ids: item = self.ids[item] del self.ids[item.id] del self.hrefs[item.href] self.items.remove(item) if item in self.oeb.spine: self.oeb.spine.remove(item) | 4f4902481142953bd622de7d3beb3908eed9d22f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4f4902481142953bd622de7d3beb3908eed9d22f/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
761,
4672,
3536,
6220,
294,
891,
28288,
1726,
68,
628,
326,
5643,
12123,
309,
761,
316,
365,
18,
2232,
30,
761,
273,
365,
18,
2232,
63,
1726,
65,
1464,
365,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
761,
4672,
3536,
6220,
294,
891,
28288,
1726,
68,
628,
326,
5643,
12123,
309,
761,
316,
365,
18,
2232,
30,
761,
273,
365,
18,
2232,
63,
1726,
65,
1464,
365,
18,
2... |
real_dst = get_safe_path(real_dst) | real_dst = get_safe_path(os.path.join(dst, _basename(src))) | def move(src, dst, overwrite=False): """Recursively move a file or directory to another location. This is similar to the Unix "mv" command. If the destination is a directory or a symlink to a directory, the source is moved inside the directory. The destination path must not already exist. If the destination already e... | d01a6613f2a34c6fb5b92c1d661f9ab32a7c2086 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/d01a6613f2a34c6fb5b92c1d661f9ab32a7c2086/shutil_generatorized.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
4816,
16,
3046,
16,
6156,
33,
8381,
4672,
3536,
12474,
3635,
279,
585,
578,
1867,
358,
4042,
2117,
18,
1220,
353,
7281,
358,
326,
9480,
315,
17509,
6,
1296,
18,
225,
971,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
4816,
16,
3046,
16,
6156,
33,
8381,
4672,
3536,
12474,
3635,
279,
585,
578,
1867,
358,
4042,
2117,
18,
1220,
353,
7281,
358,
326,
9480,
315,
17509,
6,
1296,
18,
225,
971,
326... |
id+=1 make_collapsible_html('action', actionName, output, id, status) | indice +=1 make_collapsible_html('action', actionName, output, indice, status) | def pretty_print(m): output = m.group(1) actionName = m.group(2) status = m.group(3) # handle pretty-printing of static-analysis tools if actionName == 'cc_checker': output = print_log_cc_checker(output) | c0bf364b2176965a73f059454a07e5f91cef6f55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/c0bf364b2176965a73f059454a07e5f91cef6f55/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
67,
1188,
12,
81,
4672,
876,
273,
312,
18,
1655,
12,
21,
13,
15451,
273,
312,
18,
1655,
12,
22,
13,
1267,
273,
312,
18,
1655,
12,
23,
13,
468,
1640,
7517,
17,
1188,
310,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
67,
1188,
12,
81,
4672,
876,
273,
312,
18,
1655,
12,
21,
13,
15451,
273,
312,
18,
1655,
12,
22,
13,
1267,
273,
312,
18,
1655,
12,
23,
13,
468,
1640,
7517,
17,
1188,
310,
434,... |
assert total0 + total == 10 | assert total0 + total == 16 | def heuristic(graph): for block in graph.iterblocks(): for op in block.operations: if op.opname in ('malloc',): return inline.inlining_heuristic(graph) return sys.maxint, False | f93c66c3c64cfb2dea79949eba08e72d1fe33126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/f93c66c3c64cfb2dea79949eba08e72d1fe33126/test_mallocprediction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25833,
12,
4660,
4672,
364,
1203,
316,
2667,
18,
2165,
7996,
13332,
364,
1061,
316,
1203,
18,
17542,
30,
309,
1061,
18,
556,
529,
316,
7707,
81,
9853,
2187,
4672,
327,
6370,
18,
267,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25833,
12,
4660,
4672,
364,
1203,
316,
2667,
18,
2165,
7996,
13332,
364,
1061,
316,
1203,
18,
17542,
30,
309,
1061,
18,
556,
529,
316,
7707,
81,
9853,
2187,
4672,
327,
6370,
18,
267,
7... |
processor = WikiProcessor(Formatter(context), language) | processor = WikiProcessor(Formatter(self.env, context), language) | def code_formatter(language, text): processor = WikiProcessor(Formatter(context), language) html = processor.process(text) raw = nodes.raw('', html, format='html') return raw | c5b1deb08fea44d28556e249e49f9c7ef56ab987 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/c5b1deb08fea44d28556e249e49f9c7ef56ab987/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
12354,
12,
4923,
16,
977,
4672,
6659,
273,
28268,
5164,
12,
5074,
12,
2890,
18,
3074,
16,
819,
3631,
2653,
13,
1729,
273,
6659,
18,
2567,
12,
955,
13,
1831,
273,
2199,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
981,
67,
12354,
12,
4923,
16,
977,
4672,
6659,
273,
28268,
5164,
12,
5074,
12,
2890,
18,
3074,
16,
819,
3631,
2653,
13,
1729,
273,
6659,
18,
2567,
12,
955,
13,
1831,
273,
2199,
18,
1... |
added = difference(OOSet(new), OOSet(old)) removed = difference(OOSet(old), OOSet(new)) event = TranscriptEvent('incrementalchange', field=field, added=list(added), removed=list(removed)) self.add(event) | added = list(difference(OOSet(new), OOSet(old))) removed = list(difference(OOSet(old), OOSet(new))) if removed or added: event = TranscriptEvent('incrementalchange', field=field, added=added, removed=removed) self.add(event) | def addIncrementalChange(self, field, old, new): | 9e22e6fea850ff3ce24b05c1719f568d4cc202a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/9e22e6fea850ff3ce24b05c1719f568d4cc202a3/Transcript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
10798,
287,
3043,
12,
2890,
16,
652,
16,
1592,
16,
394,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
10798,
287,
3043,
12,
2890,
16,
652,
16,
1592,
16,
394,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
sets = server.call(session, 'product_attribute_set.list') for set in sets: if set['name']=='Default': attr_set_id=set['set_id'] | def do_export(self, cr, uid, data, context): #=============================================================================== # Init #=============================================================================== prod_new = 0 prod_update = 0 logger = netsvc.Logger() pool = pooler.get_pool(cr.dbname) if data['model... | c22e2be938d8f48c3d5134a11f7e07771df0a3c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/c22e2be938d8f48c3d5134a11f7e07771df0a3c7/magento_product_synchronize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
6530,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
468,
9917,
14468,
12275,
468,
225,
4378,
468,
9917,
14468,
12275,
225,
10791,
67,
2704,
273,
374,
10791,
67,
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,
741,
67,
6530,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
225,
468,
9917,
14468,
12275,
468,
225,
4378,
468,
9917,
14468,
12275,
225,
10791,
67,
2704,
273,
374,
10791,
67,
2... | |
detail_html = '' | detail_html = '' | def check_quality(uri, user, pwd, dbname, modules): uid = login(uri, dbname, user, pwd) if uid: conn = xmlrpclib.ServerProxy(uri + '/xmlrpc/object') qualityresult = {} final = {} test_detail = {} for module in modules: quality_result = execute(conn,'execute', dbname, uid, pwd,'module.quality.check','check_quality',modu... | 394b361dedd1707263f6181bd5d85f013837d7c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/394b361dedd1707263f6181bd5d85f013837d7c7/base_quality_interrogation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16495,
12,
1650,
16,
729,
16,
14720,
16,
18448,
16,
4381,
4672,
4555,
273,
3925,
12,
1650,
16,
18448,
16,
729,
16,
14720,
13,
309,
4555,
30,
1487,
273,
2025,
13832,
830,
495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
16495,
12,
1650,
16,
729,
16,
14720,
16,
18448,
16,
4381,
4672,
4555,
273,
3925,
12,
1650,
16,
18448,
16,
729,
16,
14720,
13,
309,
4555,
30,
1487,
273,
2025,
13832,
830,
495,
... |
if neg_opt.has_key(option): | is_string = type(value) is StringType if neg_opt.has_key(option) and is_string: | def _set_command_options (self, command_obj, option_dict=None): """Set the options for 'command_obj' from 'option_dict'. Basically this means copying elements of a dictionary ('option_dict') to attributes of an instance ('command'). | 6277b9c1b2f3c6fa72131120e5a6c420a6db4503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6277b9c1b2f3c6fa72131120e5a6c420a6db4503/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
3076,
67,
2116,
261,
2890,
16,
1296,
67,
2603,
16,
1456,
67,
1576,
33,
7036,
4672,
3536,
694,
326,
702,
364,
296,
3076,
67,
2603,
11,
628,
296,
3482,
67,
1576,
10332,
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,
542,
67,
3076,
67,
2116,
261,
2890,
16,
1296,
67,
2603,
16,
1456,
67,
1576,
33,
7036,
4672,
3536,
694,
326,
702,
364,
296,
3076,
67,
2603,
11,
628,
296,
3482,
67,
1576,
10332,
2... |
self.n = ct.rank()+1 | self.n = ct.rank() | def __init__(self, ct): self.ct = ct self.n = ct.rank()+1 | 6b5ea644697d97c262a8bb2b154e92bd1324d8d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/6b5ea644697d97c262a8bb2b154e92bd1324d8d6/root_system.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5691,
4672,
365,
18,
299,
273,
5691,
365,
18,
82,
273,
5691,
18,
11500,
1435,
15,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5691,
4672,
365,
18,
299,
273,
5691,
365,
18,
82,
273,
5691,
18,
11500,
1435,
15,
21,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
from Products.PageTemplates.TALES import Undefined | def test_BadCall( self ): | e51f91f71691702ddecb74678ede922b90901600 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/e51f91f71691702ddecb74678ede922b90901600/test_FSPageTemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6434,
1477,
12,
365,
262,
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,
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,
1842,
67,
6434,
1477,
12,
365,
262,
30,
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,
... | |
def default_fifo_quantity_out(self, cursor, user, context=None): | def default_fifo_quantity(self, cursor, user, context=None): | def default_fifo_quantity_out(self, cursor, user, context=None): return 0.0 | bebd25a96f9e259c8f07abf1640de5a71b1e5a82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9303/bebd25a96f9e259c8f07abf1640de5a71b1e5a82/move.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
74,
20299,
67,
16172,
12,
2890,
16,
3347,
16,
729,
16,
819,
33,
7036,
4672,
327,
374,
18,
20,
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,
805,
67,
74,
20299,
67,
16172,
12,
2890,
16,
3347,
16,
729,
16,
819,
33,
7036,
4672,
327,
374,
18,
20,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def DeleteArray(id): | def DeleteArray(hashid): | def DeleteArray(id): raise DeprecatedIDCError, "Use python pickles instead." | 4f22943d42ee1d5013421d280b3bd776bee83fb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3410/4f22943d42ee1d5013421d280b3bd776bee83fb9/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
1076,
12,
2816,
350,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
1076,
12,
2816,
350,
4672,
1002,
9336,
734,
39,
668,
16,
315,
3727,
5790,
6002,
1040,
3560,
1199,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self._addPathnames([prefix]) | self._addPathnames([prefix]) | def prepareTargetRepository(self): """ Do anything required to host the target repository. """ | e4c93505b0a6c1af78401309313fbf4693ac46ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/e4c93505b0a6c1af78401309313fbf4693ac46ed/target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
2326,
3305,
12,
2890,
4672,
3536,
2256,
6967,
1931,
358,
1479,
326,
1018,
3352,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
2326,
3305,
12,
2890,
4672,
3536,
2256,
6967,
1931,
358,
1479,
326,
1018,
3352,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
elif partition.getFlag(parted.PARTITION_LOGICAL): | elif partition.type == parted.PARTITION_LOGICAL: | def __init__(self, partition): self.partition = partition self.size = partition.getSize() self.start = partition.geometry.start self.end = partition.geometry.end self.description = "" self.used_space = "" if partition.number != -1: self.name = partition.path if partition.fileSystem is None: # no filesystem, check flag... | c4993745f76e2dbbb7e80145e7a6166e91f08d7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1953/c4993745f76e2dbbb7e80145e7a6166e91f08d7e/screen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3590,
4672,
365,
18,
10534,
273,
3590,
365,
18,
1467,
273,
3590,
18,
588,
1225,
1435,
365,
18,
1937,
273,
3590,
18,
14330,
18,
1937,
365,
18,
409,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3590,
4672,
365,
18,
10534,
273,
3590,
365,
18,
1467,
273,
3590,
18,
588,
1225,
1435,
365,
18,
1937,
273,
3590,
18,
14330,
18,
1937,
365,
18,
409,
273,
... |
if size is not None: if i==-1 and len(c) > size: i=size-1 elif size <= i: i = size -1 | def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) # Read from the file in small chunks while True: if size == 0: return "".join(bufs) # Return resulting line | 0bad1f821b8419d53dfcfeb05d061c69ee8d82e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0bad1f821b8419d53dfcfeb05d061c69ee8d82e9/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
1681,
87,
273,
5378,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
565,
468,
2720,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12023,
12,
2890,
16,
963,
29711,
21,
4672,
309,
963,
411,
374,
30,
963,
273,
2589,
18,
1896,
474,
1681,
87,
273,
5378,
855,
1467,
273,
1131,
12,
6625,
16,
963,
13,
565,
468,
2720,
62... | |
rules.AddRule(rule_str, relative_dir + "'s include_rules") | if not len(relative_dir): rule_description = "the top level include_rules" else: rule_description = relative_dir + "'s include_rules" rules.AddRule(rule_str, rule_description) | def ApplyRules(existing_rules, deps, includes, cur_dir): """Applies the given deps and include rules, returning the new rules. Args: existing_rules: A set of existing rules that will be combined. deps: The list of imports from the "deps" section of the DEPS file. include: The list of rules from the "include_rules" sec... | c40671f2093ca48862fb1212226c8ccb95d0adc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/c40671f2093ca48862fb1212226c8ccb95d0adc9/checkdeps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
4478,
12,
11711,
67,
7482,
16,
8740,
16,
6104,
16,
662,
67,
1214,
4672,
3536,
13029,
326,
864,
8740,
471,
2341,
2931,
16,
5785,
326,
394,
2931,
18,
225,
6634,
30,
2062,
67,
7482,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5534,
4478,
12,
11711,
67,
7482,
16,
8740,
16,
6104,
16,
662,
67,
1214,
4672,
3536,
13029,
326,
864,
8740,
471,
2341,
2931,
16,
5785,
326,
394,
2931,
18,
225,
6634,
30,
2062,
67,
7482,... |
buildscript.execute(['git', 'pull', 'origin', self.branch], 'git', cwd=cwd) | if self.branch: buildscript.execute(['git', 'pull', 'origin', self.branch], 'git', cwd=cwd) else: buildscript.execute(['git', 'pull', 'origin', 'master'], 'git', cwd=cwd) | def _update(self, buildscript, copydir=None): cwd = self.get_checkoutdir(copydir) if self.config.sticky_date: commit = self._get_commit_from_date() branch = 'jhbuild-date-branch' branch_cmd = ['git', 'checkout', branch] try: buildscript.execute(branch_cmd, 'git', cwd=cwd) except CommandError: branch_cmd = ['git', 'chec... | 013aadbab9838e7015376f20492ff709d1bbc818 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4596/013aadbab9838e7015376f20492ff709d1bbc818/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
1361,
4263,
16,
1610,
1214,
33,
7036,
4672,
7239,
273,
365,
18,
588,
67,
17300,
1214,
12,
3530,
1214,
13,
309,
365,
18,
1425,
18,
334,
13055,
67,
712,
30,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
12,
2890,
16,
1361,
4263,
16,
1610,
1214,
33,
7036,
4672,
7239,
273,
365,
18,
588,
67,
17300,
1214,
12,
3530,
1214,
13,
309,
365,
18,
1425,
18,
334,
13055,
67,
712,
30,
32... |
if (m_1 + m_2 + m_3 <> 0): return 0 prefid = Integer((-1) ** (int(j_1 - j_2 - m_3))) | if m_1 + m_2 + m_3 != 0: return 0 prefid = Integer((-1) ** int(j_1 - j_2 - m_3)) | def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat... | 2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
23,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
312,
67,
21,
16,
312,
67,
22,
16,
312,
67,
23,
16,
13382,
33,
7036,
4672,
436,
8395,
9029,
326,... |
self.assertTrue(re.match('<TestThread\(.*, \w+ -?\d+\)>', repr(t))) | self.assertTrue(re.match('<TestThread\(.*, stopped -?\d+\)>', repr(t))) | def test_various_ops(self): # This takes about n/3 seconds to run (about n/3 clumps of tasks, # times about 1 second per clump). NUMTASKS = 10 | bc89827ee2bb5ec925f12ef2ea6508800b502daf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/bc89827ee2bb5ec925f12ef2ea6508800b502daf/test_threading.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4093,
1481,
67,
4473,
12,
2890,
4672,
468,
1220,
5530,
2973,
290,
19,
23,
3974,
358,
1086,
261,
21071,
290,
19,
23,
927,
23868,
434,
4592,
16,
468,
4124,
2973,
404,
2205,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
4093,
1481,
67,
4473,
12,
2890,
4672,
468,
1220,
5530,
2973,
290,
19,
23,
3974,
358,
1086,
261,
21071,
290,
19,
23,
927,
23868,
434,
4592,
16,
468,
4124,
2973,
404,
2205,
153... |
actions = ( ('FileMenu', None, _('_File')), | actions = ( ('FileMenu', None, _('_File')), | def __init__(self): try: gettext.install('mirage', '/usr/share/locale', unicode=1) except: gettext.install('mirage', '/usr/local/share/locale', unicode=1) # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_z... | f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... |
'to "../.." relative to the script file, which will ' 'normally be the repository root.') | 'to "../../.." relative to the script file, which ' 'will normally be the repository root.') | def main(options, args): global VERBOSE if options.verbose: VERBOSE = True # Optional base directory of the repository. global BASE_DIRECTORY if not options.base_directory: BASE_DIRECTORY = os.path.abspath( os.path.join(os.path.abspath(sys.argv[0]), "..\..")) else: BASE_DIRECTORY = os.path.abspath(sys.argv[2]) # Figu... | c40671f2093ca48862fb1212226c8ccb95d0adc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/c40671f2093ca48862fb1212226c8ccb95d0adc9/checkdeps.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
2552,
27857,
309,
702,
18,
11369,
30,
27857,
273,
1053,
225,
468,
4055,
1026,
1867,
434,
326,
3352,
18,
2552,
10250,
67,
17229,
309,
486,
702,
18,
1969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
2552,
27857,
309,
702,
18,
11369,
30,
27857,
273,
1053,
225,
468,
4055,
1026,
1867,
434,
326,
3352,
18,
2552,
10250,
67,
17229,
309,
486,
702,
18,
1969,
... |
outer_row = aa_rows[row['aa']] for field in self.angles: outer_row.update(row) | outer_row = aa_rows[row[aa_field]] outer_row.update(row) if self.prefix != '%s': for row in results: row['aa'] = row[aa_field] del row[aa_field] | def _execute(self): """ Private method for executing query, always runs query and then updates cache """ annotations = {} aa_rows = {} # main aggregate functions for field in self.angles: annotations['min_%s' % field] = Min(field) annotations['max_%s' % field] = Max(field) annotations['avg_%s' % field] = DirectionalAv... | 74f9b2a1bd92e5595f4550b8f493b12de94b2b27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/74f9b2a1bd92e5595f4550b8f493b12de94b2b27/directional_stddev.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
12,
2890,
4672,
3536,
8726,
707,
364,
11274,
843,
16,
3712,
7597,
843,
471,
1508,
4533,
1247,
3536,
5617,
273,
2618,
12391,
67,
3870,
273,
2618,
225,
468,
2774,
7047,
4186,
36... |
try: data = version except: continue | data = version | def _verify_doc(self, doc): doc_broken = False if getattr(doc, 'getFileItems', None): for lang, item in doc.getFileItems(): filename = item._get_data_name() if not filename: continue data = item.get_data(as_string=False) if data.is_broken(): logger.debug('Broken %s: %s, lang: %s, filename: %s', doc.meta_type, doc.absol... | 3a33c9ab07b7321ba6449801e0802cc4c0707fc4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/3a33c9ab07b7321ba6449801e0802cc4c0707fc4/search_broken_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8705,
67,
2434,
12,
2890,
16,
997,
4672,
997,
67,
70,
19906,
273,
1083,
309,
3869,
12,
2434,
16,
296,
29925,
3126,
2187,
599,
4672,
364,
3303,
16,
761,
316,
997,
18,
29925,
3126,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8705,
67,
2434,
12,
2890,
16,
997,
4672,
997,
67,
70,
19906,
273,
1083,
309,
3869,
12,
2434,
16,
296,
29925,
3126,
2187,
599,
4672,
364,
3303,
16,
761,
316,
997,
18,
29925,
3126,
... |
key = hexrepr(mapkey) value = hexrepr(mapvalue) | key = hexrepr(mapkey, key_precision) value = hexrepr(mapvalue, value_precision) | def python_mapdef_code(varname, map, comments=1): l = [] append = l.append if map.has_key("IDENTITY"): append("%s = codecs.make_identity_dict(range(%d))" % (varname, map["IDENTITY"])) append("%s.update({" % varname) splits = 1 del map["IDENTITY"] identity = 1 else: append("%s = {" % varname) splits = 0 identity = 0 m... | bd20ea55bc7a044a773e6824f7fcef4f5669d44c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/bd20ea55bc7a044a773e6824f7fcef4f5669d44c/gencodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
1458,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
309,
852,
18,
5332,
67,
856,
2932,
29413,
6,
4672,
714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5790,
67,
1458,
536,
67,
710,
12,
1401,
529,
16,
852,
16,
5678,
33,
21,
4672,
225,
328,
273,
5378,
714,
273,
328,
18,
6923,
309,
852,
18,
5332,
67,
856,
2932,
29413,
6,
4672,
714,
... |
object.convertToNumArray() | obj.convertToNumArray() | def setData(self, *dataList, **options): """ Set data to the plot | cd4aefd6501a46432131840f7455b36b75e33c79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/cd4aefd6501a46432131840f7455b36b75e33c79/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
380,
892,
682,
16,
2826,
2116,
4672,
3536,
1000,
501,
358,
326,
3207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
380,
892,
682,
16,
2826,
2116,
4672,
3536,
1000,
501,
358,
326,
3207,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
stream, parser = get_parser(data, stream_id, sessid) | stream, parser = get_parser(data, data['streams'][stream_id], sessid) | def handle_form(): """Process submitted data. See comments for details. """ prune_old() form = cgi.FieldStorage() if 'file' in form and form['file'].file: # compute session id sessid = get_sessid() if not sessid: rand = str(time.time())+form['file'].filename+str(random.random()) sessid = hashlib.md5(rand).hexdigest()... | 60cbc1f820023a307121da60cd35ce7090e9d798 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/60cbc1f820023a307121da60cd35ce7090e9d798/hachoir.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
687,
13332,
3536,
2227,
9638,
501,
18,
225,
2164,
5678,
364,
3189,
18,
225,
3536,
13293,
67,
1673,
1435,
646,
273,
276,
10052,
18,
974,
3245,
1435,
309,
296,
768,
11,
316,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
687,
13332,
3536,
2227,
9638,
501,
18,
225,
2164,
5678,
364,
3189,
18,
225,
3536,
13293,
67,
1673,
1435,
646,
273,
276,
10052,
18,
974,
3245,
1435,
309,
296,
768,
11,
316,
64... |
users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE '%s' ORDER BY email """ % (email_user_pattern, )) | users1 = run_sql("""SELECT id, email FROM user WHERE email RLIKE %s ORDER BY email """, (email_user_pattern, )) | def perform_addroleuser(req, email_user_pattern='', id_user='0', id_role='0', confirm=0): """delete connection between role and user. id_role - id of role to disconnect id_user - id of user to disconnect. """ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) em... | 6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1289,
4615,
1355,
12,
3658,
16,
2699,
67,
1355,
67,
4951,
2218,
2187,
612,
67,
1355,
2218,
20,
2187,
612,
67,
4615,
2218,
20,
2187,
6932,
33,
20,
4672,
3536,
3733,
1459,
3086... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
1289,
4615,
1355,
12,
3658,
16,
2699,
67,
1355,
67,
4951,
2218,
2187,
612,
67,
1355,
2218,
20,
2187,
612,
67,
4615,
2218,
20,
2187,
6932,
33,
20,
4672,
3536,
3733,
1459,
3086... |
sage: G = Graph(); G.add_vertex(); G | sage: G = Graph(); G.add_vertex() | def add_vertex(self, name=None): """ Creates an isolated vertex. If the vertex already exists, then nothing is done. | 83b209455c18f02969e2eb638936d98e1292aba4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/83b209455c18f02969e2eb638936d98e1292aba4/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
15281,
12,
2890,
16,
508,
33,
7036,
4672,
3536,
10210,
392,
25790,
5253,
18,
225,
971,
326,
5253,
1818,
1704,
16,
1508,
5083,
353,
2731,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
15281,
12,
2890,
16,
508,
33,
7036,
4672,
3536,
10210,
392,
25790,
5253,
18,
225,
971,
326,
5253,
1818,
1704,
16,
1508,
5083,
353,
2731,
18,
2,
-100,
-100,
-100,
-100,
-100,
-... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 526) else quickfix.StringField.__init__(self, 526, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5558,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5558,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
print prettyInt(n)+" non-sanctioned non-registered sites reported " \ | print prettyInt(n)+" non-sanctioned non-registered storage resources reported " \ | def DataTransferSumup(range_end = datetime.date.today(), range_begin = None, output = "text", header = True): if not gGrid or gGrid.lower() == 'local': try: gridDisplayName = gConfig.get("local", "grid_name") except: gridDisplayName = "" else: gridDisplayName = 'OSG' if not range_end: if not range_begin: range_end = ... | 6d8a4b1e13b56fd714149dae3171a05103390c56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/637/6d8a4b1e13b56fd714149dae3171a05103390c56/AccountingReports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1910,
5912,
3495,
416,
12,
3676,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
3113,
1446,
273,
1053,
4672,
225,
309,
486,
314,
6313,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1910,
5912,
3495,
416,
12,
3676,
67,
409,
273,
3314,
18,
712,
18,
30064,
9334,
1048,
67,
10086,
273,
599,
16,
876,
273,
315,
955,
3113,
1446,
273,
1053,
4672,
225,
309,
486,
314,
6313,... |
vars = { | vars = { | /.notdef { 0 0 hsbw endchar } |- | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
342,
18,
902,
536,
288,
374,
374,
12670,
70,
91,
679,
3001,
289,
571,
17,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
342,
18,
902,
536,
288,
374,
374,
12670,
70,
91,
679,
3001,
289,
571,
17,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"""This class is an asyncore.disptacher subclass. It creates a socket listening on a local port, dispatching the resultant connection DTPHandler. | """This class is an asyncore.disptacher subclass. It creates a socket listening on a local port, dispatching the resultant connection DTPHandler. | def close_all(self, map=None, ignore_all=False): """'clean' shutdown: instead of using the current asyncore.close_all() function which only close sockets, we iterates over all existent channels calling close() method for each one of them, avoiding memory leaks. This is how close_all function will appear in the fixed v... | 367a95e4363ae8b7515230480fff6ef354b95226 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/367a95e4363ae8b7515230480fff6ef354b95226/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
454,
12,
2890,
16,
852,
33,
7036,
16,
2305,
67,
454,
33,
8381,
4672,
3536,
11,
6200,
11,
5731,
30,
3560,
434,
1450,
326,
783,
4326,
479,
18,
4412,
67,
454,
1435,
445,
1492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
454,
12,
2890,
16,
852,
33,
7036,
16,
2305,
67,
454,
33,
8381,
4672,
3536,
11,
6200,
11,
5731,
30,
3560,
434,
1450,
326,
783,
4326,
479,
18,
4412,
67,
454,
1435,
445,
1492,... |
res+=indent("%s('%s',\n" % (fieldtype % map,name), indent_level) | res+=indent("%s('%s',\n" % (fieldtype % {'type':fieldType.capitalize()},name), indent_level) | def getFieldFormatted(self,name,fieldtype,map={},doc=None,indent_level=0): ''' returns the formatted field definitions for the schema ''' res = '' # add comment if doc: res+=indent(doc,indent_level,'#')+'\n'+res res+=indent("%s('%s',\n" % (fieldtype % map,name), indent_level) map_keys=map.keys() map_keys.sort() res+=in... | 69455fa25d35355037b42a3cf60479c640958209 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/69455fa25d35355037b42a3cf60479c640958209/ArchetypesGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5031,
18298,
12,
2890,
16,
529,
16,
1518,
723,
16,
1458,
28793,
2434,
33,
7036,
16,
9355,
67,
2815,
33,
20,
4672,
9163,
1135,
326,
4955,
652,
6377,
364,
326,
1963,
9163,
400,
273,
875,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5031,
18298,
12,
2890,
16,
529,
16,
1518,
723,
16,
1458,
28793,
2434,
33,
7036,
16,
9355,
67,
2815,
33,
20,
4672,
9163,
1135,
326,
4955,
652,
6377,
364,
326,
1963,
9163,
400,
273,
875,... |
def write(self, text, alert=sys._MessageBox): | def write(self, text, alert=sys._MessageBox, fname=sys.executable + '.log'): | def write(self, text, alert=sys._MessageBox): if self._file is None and self._error is None: fname = sys.executable + '.log' try: self._file = open(fname, 'a') except Exception, details: self._error = details import atexit atexit.register(alert, 0, "The logfile '%s' could be opened:\n %s" % (fname, details), "Errors oc... | d8b10017175a244cd3d305edee1c280d0af1348c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/d8b10017175a244cd3d305edee1c280d0af1348c/boot_common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
977,
16,
6881,
33,
9499,
6315,
27647,
16,
5299,
33,
9499,
18,
17751,
397,
2418,
1330,
11,
4672,
309,
365,
6315,
768,
353,
599,
471,
365,
6315,
1636,
353,
599,
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,
1045,
12,
2890,
16,
977,
16,
6881,
33,
9499,
6315,
27647,
16,
5299,
33,
9499,
18,
17751,
397,
2418,
1330,
11,
4672,
309,
365,
6315,
768,
353,
599,
471,
365,
6315,
1636,
353,
599,
30,
... |
def __del__(self, obj): | def __delete__(self, obj): | def __del__(self, obj): if self.prop in obj.properties: del obj.properties[self.prop] | 73da8d05c8853936f73fafcba4e855a4614ee866 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12287/73da8d05c8853936f73fafcba4e855a4614ee866/cachecontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3733,
972,
12,
2890,
16,
1081,
4672,
309,
365,
18,
5986,
316,
1081,
18,
4738,
30,
1464,
1081,
18,
4738,
63,
2890,
18,
5986,
65,
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,
0,
0,
0,
0,
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,
3733,
972,
12,
2890,
16,
1081,
4672,
309,
365,
18,
5986,
316,
1081,
18,
4738,
30,
1464,
1081,
18,
4738,
63,
2890,
18,
5986,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
raise WalkerEror | raise WalkerError | def trailer(self, nodelist): raise WalkerEror | f0af0e7a466797d9ed3fa7d635b9b1e91d5c2674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f0af0e7a466797d9ed3fa7d635b9b1e91d5c2674/transformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25899,
12,
2890,
16,
30068,
4672,
1002,
7564,
264,
29228,
280,
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,
25899,
12,
2890,
16,
30068,
4672,
1002,
7564,
264,
29228,
280,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
checker = OutputChecker() | def test_freeze(): """ Some tests of freeze, first we have to install some stuff. Note that the test is a little crude at the end because Python 2.5+ adds egg info to the standard library, so stuff like wsgiref will show up in the freezing. (Probably that should be accounted for in pip, but currently it is not). TOD... | 23d3d0fdb48cf271676f74c50d5d52819a2e9e01 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/23d3d0fdb48cf271676f74c50d5d52819a2e9e01/test_freeze.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
29631,
13332,
3536,
10548,
7434,
434,
16684,
16,
1122,
732,
1240,
358,
3799,
2690,
10769,
18,
225,
3609,
716,
326,
1842,
353,
279,
12720,
4422,
1317,
622,
326,
679,
2724,
6600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29631,
13332,
3536,
10548,
7434,
434,
16684,
16,
1122,
732,
1240,
358,
3799,
2690,
10769,
18,
225,
3609,
716,
326,
1842,
353,
279,
12720,
4422,
1317,
622,
326,
679,
2724,
6600,
... | |
pagenum = self.notebook.page_num(box) | def add_tab(self, *args): """Adds a new tab to the terminal notebook. """ box = GuakeTerminalBox() box.terminal.grab_focus() box.terminal.connect('button-press-event', self.show_context_menu) box.terminal.connect('child-exited', self.on_terminal_exited, box) box.show() | 2d18e1b6fb53ac8a1ea498e80b756b46bd4bc26a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11147/2d18e1b6fb53ac8a1ea498e80b756b46bd4bc26a/guake.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7032,
12,
2890,
16,
380,
1968,
4672,
3536,
3655,
279,
394,
3246,
358,
326,
8651,
14718,
18,
3536,
3919,
273,
6467,
911,
11336,
3514,
1435,
3919,
18,
15979,
18,
2752,
70,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
7032,
12,
2890,
16,
380,
1968,
4672,
3536,
3655,
279,
394,
3246,
358,
326,
8651,
14718,
18,
3536,
3919,
273,
6467,
911,
11336,
3514,
1435,
3919,
18,
15979,
18,
2752,
70,
67,
1... | |
return False | return None | def getCookie(self, remember=True): """Login to wikipedia. remember Remember login (default: True) Returns cookie data if succesful, False otherwise.""" data = {"wpName": self.username, "wpPassword": self.password, "wpLoginattempt": "Aanmelden & Inschrijven", # dutch button label seems to work for all wikis "wpRe... | d8726f0a89eb09437143b02cca49e64816eb817a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d8726f0a89eb09437143b02cca49e64816eb817a/login.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24643,
12,
2890,
16,
11586,
33,
5510,
4672,
3536,
5358,
358,
21137,
18,
225,
11586,
565,
23133,
3925,
261,
1886,
30,
1053,
13,
225,
2860,
3878,
501,
309,
8667,
764,
2706,
16,
1083,
3541,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24643,
12,
2890,
16,
11586,
33,
5510,
4672,
3536,
5358,
358,
21137,
18,
225,
11586,
565,
23133,
3925,
261,
1886,
30,
1053,
13,
225,
2860,
3878,
501,
309,
8667,
764,
2706,
16,
1083,
3541,... |
username = getUsernameSlcs1(comp['CN'],dn,domains[comp['O']]) | username = getUsername(comp['CN'],dn,domains[comp['O']]) | def getUsernameSlcs1(user, dn, domain): #the DC stuff has to be at the start of the string?? if(isSlcs1(dn)): user = user.split(' ')[:-1] username = '' for string in user: username += string.lower() username = checkLength(user, username, domain) #username = checkExisting(username, domain) return username else: return u... | aac6216d29f27f38350e4a7b85eaea698d79c9c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1913/aac6216d29f27f38350e4a7b85eaea698d79c9c3/dnToUserDomain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17827,
3738,
2143,
21,
12,
1355,
16,
8800,
16,
2461,
4672,
468,
5787,
21533,
10769,
711,
358,
506,
622,
326,
787,
434,
326,
533,
14646,
309,
12,
291,
3738,
2143,
21,
12,
5176,
3719,
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,
17827,
3738,
2143,
21,
12,
1355,
16,
8800,
16,
2461,
4672,
468,
5787,
21533,
10769,
711,
358,
506,
622,
326,
787,
434,
326,
533,
14646,
309,
12,
291,
3738,
2143,
21,
12,
5176,
3719,
30... |
self.cdrom_mount) | self.cdrom_cd1_mount) | def setup_pxe_boot(self): """ Sets up a PXE boot environment using the built in qemu TFTP server. Copies the PXE Linux bootloader pxelinux.0 from the host (needs the pxelinux package or equivalent for your distro), and vmlinuz and initrd.img files from the CD to a directory that qemu will serve trough TFTP to the VM. "... | 36fda64645777edd6c627843022cb1e821dc1735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/36fda64645777edd6c627843022cb1e821dc1735/unattended.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4430,
73,
67,
7137,
12,
2890,
4672,
3536,
11511,
731,
279,
453,
60,
41,
4835,
3330,
1450,
326,
6650,
316,
1043,
24995,
399,
17104,
1438,
18,
28506,
606,
326,
453,
60,
41,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
4430,
73,
67,
7137,
12,
2890,
4672,
3536,
11511,
731,
279,
453,
60,
41,
4835,
3330,
1450,
326,
6650,
316,
1043,
24995,
399,
17104,
1438,
18,
28506,
606,
326,
453,
60,
41,
133... |
zoom_label1.set_markup("<i>_('Fastest')</i>") | zoom_label1.set_markup('<i>' + _('Fastest') + '</i>') | def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs: | d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1484,
2556,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
1484,
2556,
12,
2890,
16,
1301,
4672,
365,
18,
1484,
2556,
67,
12730,
273,
22718,
18,
6353,
12,
2649,
33,
67,
2932,
49,
481,
410,
28310,
6,
3631,
982,
33,
2890,
18,
5668,
1... |
d_som5.attr_list["corner_angles"] = corner_angles | d_som5.attr_list["corner_geom"] = corner_angles | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.Di... | 245d0770e960899f6acd8fce74daad0df72c9baa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/763/245d0770e960899f6acd8fce74daad0df72c9baa/dgs_reduction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
if self.downloading_art: return self.downloading_art = True | def download_image_to_filename(self, artist, album, dest_filename, all_images=False): if len(artist) == 0 and len(album) == 0: return try: if self.downloading_art: return self.downloading_art = True artist = urllib.quote(artist) album = urllib.quote(album) amazon_key = "12DR2PGAQT303YTEWP02" search_url = "http://webser... | 7887607cb534b053442ac9710ec7241659a64004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/7887607cb534b053442ac9710ec7241659a64004/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2730,
67,
869,
67,
3459,
12,
2890,
16,
15469,
16,
14844,
16,
1570,
67,
3459,
16,
777,
67,
7369,
33,
8381,
4672,
309,
562,
12,
25737,
13,
422,
374,
471,
562,
12,
25090,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
67,
2730,
67,
869,
67,
3459,
12,
2890,
16,
15469,
16,
14844,
16,
1570,
67,
3459,
16,
777,
67,
7369,
33,
8381,
4672,
309,
562,
12,
25737,
13,
422,
374,
471,
562,
12,
25090,
13,
... | |
time.sleep(sleep) | def __send_message(smtpserver, from_addr, to_addr_list, msg, sleep, smtpuser, smtppassword, use_tls): """Message sending dispatcher. """ if smtpserver.startswith('/'): # Use the sendmail tool __send_message_sendmail(smtpserver, msg) else: # Use the SMTP server (we have host and port information) __send_message_smtp(smt... | 4a545fa1dd24bf0e23477b5e8afd2c5500bfe600 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12366/4a545fa1dd24bf0e23477b5e8afd2c5500bfe600/mail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4661,
67,
2150,
12,
20278,
3567,
16,
628,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
5329,
16,
17660,
1355,
16,
17660,
3664,
16,
999,
67,
17116,
4672,
3536,
1079,
5431,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
67,
2150,
12,
20278,
3567,
16,
628,
67,
4793,
16,
358,
67,
4793,
67,
1098,
16,
1234,
16,
5329,
16,
17660,
1355,
16,
17660,
3664,
16,
999,
67,
17116,
4672,
3536,
1079,
5431,... | |
self.languages_by_size = [ 'fr', 'en', 'tr', 'lt', 'vi', 'ru', 'io', 'zh', 'el', 'pl', 'fi', 'no', 'hu', 'it', 'ta', 'sv', 'de', 'ko', 'lo', 'pt', 'nl', 'ku', 'ja', 'es', 'id', 'te', 'ro', 'et', 'gl', 'bg', 'ca', 'ar', 'vo', 'uk', 'fa', 'is', 'sr', 'af', 'sw', 'scn', 'fy', 'th', 'br', 'oc', 'simple', 'li', 'cs', 'he', ... | self.languages_by_size = [ 'fr', 'en', 'tr', 'lt', 'vi', 'ru', 'io', 'zh', 'el', 'pl', 'fi', 'no', 'hu', 'it', 'ta', 'sv', 'de', 'ko', 'lo', 'pt', 'nl', 'ku', 'ja', 'es', 'id', 'te', 'ro', 'et', 'gl', 'bg', 'ca', 'ar', 'vo', 'uk', 'fa', 'is', 'sr', 'af', 'sw', 'scn', 'fy', 'th', 'br', 'oc', 'simple', 'li', 'cs', 'he', ... | def __init__(self): family.Family.__init__(self) self.name = 'wiktionary' | 54befa18293a07a41d29aa2e1b9df0ee99e4e979 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/54befa18293a07a41d29aa2e1b9df0ee99e4e979/wiktionary_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
24252,
814,
11,
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,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
24252,
814,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"proxy_username", "proxy_password", "pkgpolicy", "plugins", "metadata_expire") | "proxy_username", "proxy_password", "pkgpolicy", "plugins", "metadata_expire") | def __init__(self, parent_conf, stanza, initdict=None): DictType.__init__(self, initdict) self.conf = parent_conf self.stanza = stanza | 427871e48b993cbe1bec0e26f0693386c8014c95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/427871e48b993cbe1bec0e26f0693386c8014c95/oldpyrpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
67,
3923,
16,
21650,
16,
1208,
1576,
33,
7036,
4672,
9696,
559,
16186,
2738,
972,
12,
2890,
16,
1208,
1576,
13,
365,
18,
3923,
273,
982,
67,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
67,
3923,
16,
21650,
16,
1208,
1576,
33,
7036,
4672,
9696,
559,
16186,
2738,
972,
12,
2890,
16,
1208,
1576,
13,
365,
18,
3923,
273,
982,
67,
3923,
... |
connection.execute(sql.text("BEGIN")) | def do_begin_twophase(self, connection, xid): # Two phase transactions seem to require that the transaction is explicitly started. # The implicit transactions that usually work aren't enough. connection.execute(sql.text("BEGIN")) self.do_begin(connection.connection) | c931b9d9d1e6dd7ed1fd2dbb5437ab31dd872721 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/c931b9d9d1e6dd7ed1fd2dbb5437ab31dd872721/postgres.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
10086,
67,
11246,
23169,
448,
12,
2890,
16,
1459,
16,
19031,
4672,
468,
16896,
6855,
8938,
19264,
358,
2583,
716,
326,
2492,
353,
8122,
5746,
18,
468,
1021,
10592,
8938,
716,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
10086,
67,
11246,
23169,
448,
12,
2890,
16,
1459,
16,
19031,
4672,
468,
16896,
6855,
8938,
19264,
358,
2583,
716,
326,
2492,
353,
8122,
5746,
18,
468,
1021,
10592,
8938,
716,
11... | |
attrs = attrs.keys() attrs.sort() | attrs = sorted(attrs.keys()) | def _set_attrs(self, attrs): for attr in self.ATTRS: if attr in attrs: setattr(self, attr, attrs[attr]) del attrs[attr] else: if attr == 'default': setattr(self, attr, NO_DEFAULT) else: setattr(self, attr, None) if attrs: attrs = attrs.keys() attrs.sort() raise OptionError( "invalid keyword arguments: %s" % ", ".join(a... | 5ac7fba982781427c68fc9587941db9806092b6e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/5ac7fba982781427c68fc9587941db9806092b6e/optparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
7039,
12,
2890,
16,
3422,
4672,
364,
1604,
316,
365,
18,
12043,
55,
30,
309,
1604,
316,
3422,
30,
9241,
12,
2890,
16,
1604,
16,
3422,
63,
1747,
5717,
1464,
3422,
63,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
7039,
12,
2890,
16,
3422,
4672,
364,
1604,
316,
365,
18,
12043,
55,
30,
309,
1604,
316,
3422,
30,
9241,
12,
2890,
16,
1604,
16,
3422,
63,
1747,
5717,
1464,
3422,
63,
17... |
metadataToObtain.append(lfn) | metadataToObtain.append( lfn ) | def __getCatalogFileMetadata(self,files): lfnFileID = {} metadataToObtain = [] for fileID,metadata in files.items(): if not (metadata['Size'] and metadata['Checksum']): lfn = metadata['LFN'] metadataToObtain.append(lfn) lfnFileID[lfn] = fileID if not metadataToObtain: return S_OK() res = self.ReplicaManager.getCatalogF... | d0365a9152f6e7105162edd475d5401448bfdaed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d0365a9152f6e7105162edd475d5401448bfdaed/MigrationMonitoringAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
9769,
812,
2277,
12,
2890,
16,
2354,
4672,
328,
4293,
812,
734,
273,
2618,
1982,
774,
20019,
273,
5378,
364,
585,
734,
16,
4165,
316,
1390,
18,
3319,
13332,
309,
486,
261,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
9769,
812,
2277,
12,
2890,
16,
2354,
4672,
328,
4293,
812,
734,
273,
2618,
1982,
774,
20019,
273,
5378,
364,
585,
734,
16,
4165,
316,
1390,
18,
3319,
13332,
309,
486,
261,
4... |
actual_project =_SimpleRunCommand(cmd).rstrip() | actual_project = _SimpleRunCommand(cmd).rstrip() | def GetCommitId(self): """Get the commit id for this ebuild.""" | 804ad7df2772bbb0df99bab523e0e6acca66ef39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/804ad7df2772bbb0df99bab523e0e6acca66ef39/cros_mark_as_stable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5580,
548,
12,
2890,
4672,
3536,
967,
326,
3294,
612,
364,
333,
425,
3510,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5580,
548,
12,
2890,
4672,
3536,
967,
326,
3294,
612,
364,
333,
425,
3510,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (not SDK.has_key(version)): | if (not version in SDK): | def SdkLocateMax(): if (sys.platform != "win32"): return for version,key1,key2,subdir in MAXVERSIONINFO: if (PkgSkip(version)==0): if (SDK.has_key(version)==0): GetSdkDir("maxsdk"+version.lower()[3:], version) GetSdkDir("maxsdk"+version.lower()[3:], version+"CS") if (not SDK.has_key(version)): top = GetRegistryKey(key1... | fdcc1205b8a0b6802b88877ecb24913b8464ac72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/fdcc1205b8a0b6802b88877ecb24913b8464ac72/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3426,
1333,
340,
2747,
13332,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
327,
364,
1177,
16,
856,
21,
16,
856,
22,
16,
1717,
1214,
316,
4552,
5757,
5923,
30,
309,
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,
3426,
1333,
340,
2747,
13332,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
327,
364,
1177,
16,
856,
21,
16,
856,
22,
16,
1717,
1214,
316,
4552,
5757,
5923,
30,
309,
261,
... |
sbox += self.field_polynomials("k",i) sbox += self.field_polynomials("s",i-1, r) | sbox += self.field_polynomials("k", i) sbox += self.field_polynomials("s", i-1, r) | def key_schedule_polynomials(self, i): """ Return polynomials for the $i$-th round of the key schedule. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
271,
77,
8,
17,
451,
3643,
434,
326,
498,
4788,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
271,
77,
8,
17,
451,
3643,
434,
326,
498,
4788,
18,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
def get_lang_obj(code): """Tries to get a Language object based on a language code from an HTTP header. Since the header can be in the form 'af-za' or 'af', we first try with the 'lang_COUNTRY' form and otherwise fallback to 'lang'. Also, language codes are normalized to the form 'af_ZA', because this is how Pootle st... | def get_lang_from_cookie(request, supported): """See if the user's browser sent a cookie with a her preferred language.""" lang_code = request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME) if lang_code and lang_code in supported: return lang_code else: | def get_lang_obj(code): """Tries to get a Language object based on a language code from an HTTP header. Since the header can be in the form 'af-za' or 'af', we first try with the 'lang_COUNTRY' form and otherwise fallback to 'lang'. Also, language codes are normalized to the form 'af_ZA', because this is how Pootle st... | 22217057e0d5202ecc0d82ce297829c564eab061 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/22217057e0d5202ecc0d82ce297829c564eab061/user_lang_discovery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4936,
67,
2603,
12,
710,
4672,
3536,
13652,
358,
336,
279,
9889,
733,
2511,
603,
279,
2653,
981,
628,
392,
2239,
1446,
18,
225,
7897,
326,
1446,
848,
506,
316,
326,
646,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4936,
67,
2603,
12,
710,
4672,
3536,
13652,
358,
336,
279,
9889,
733,
2511,
603,
279,
2653,
981,
628,
392,
2239,
1446,
18,
225,
7897,
326,
1446,
848,
506,
316,
326,
646,
296,
... |
banner_objects = [] | banner_brains = [] | def getBanners(self): """ Returns a list of objects that provide ICarouselBanner. """ banner_objects = [] if IFolderish.providedBy(self.context): banner_objects = self.context.objectValues() elif IATTopic.providedBy(self.context): banner_objects = [brain.getObject() for brain \ in self.context.queryCatalog()] return ... | 2e6b96fbde808a09623eec4935376e1e36858479 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10575/2e6b96fbde808a09623eec4935376e1e36858479/folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
19637,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
2184,
716,
5615,
467,
16321,
16405,
27398,
18,
3536,
225,
14090,
67,
15397,
2679,
273,
5378,
309,
467,
3899,
1468,
18,
29206,
858,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
19637,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
2184,
716,
5615,
467,
16321,
16405,
27398,
18,
3536,
225,
14090,
67,
15397,
2679,
273,
5378,
309,
467,
3899,
1468,
18,
29206,
858,
... |
return r'\caption{%s}\\' '\n' % self.caption return r'\caption[]{%s (... continued)}\\' '\n' % self.caption | return r'\caption{%s}\\' '\n' % caption return r'\caption[]{%s (... continued)}\\' '\n' % caption | def get_caption(self): if not self.caption: return '' if 1 == self._translator.thead_depth(): return r'\caption{%s}\\' '\n' % self.caption return r'\caption[]{%s (... continued)}\\' '\n' % self.caption | 975a7baefa62e45824db20fa2fef3b13aef67e9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/975a7baefa62e45824db20fa2fef3b13aef67e9c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15386,
12,
2890,
4672,
309,
486,
365,
18,
15386,
30,
327,
875,
309,
404,
422,
365,
6315,
17879,
18,
24604,
67,
5979,
13332,
327,
436,
8314,
15386,
95,
9,
87,
97,
10471,
2337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15386,
12,
2890,
4672,
309,
486,
365,
18,
15386,
30,
327,
875,
309,
404,
422,
365,
6315,
17879,
18,
24604,
67,
5979,
13332,
327,
436,
8314,
15386,
95,
9,
87,
97,
10471,
2337,
... |
dispatcher=FactoryDispatcher(product, self.aq_parent, REQUEST) | dispatcher_class=getattr( getattr(Products, name, None), '__FactoryDispatcher__', FactoryDispatcher) dispatcher=dispatcher_class(product, self.aq_parent, REQUEST) | def __bobo_traverse__(self, REQUEST, name): product=self.aq_acquire('_getProducts')()._product(name) dispatcher=FactoryDispatcher(product, self.aq_parent, REQUEST) return dispatcher.__of__(self) | a593fea82fd275dda0573d6b643f08fb9cf2e980 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a593fea82fd275dda0573d6b643f08fb9cf2e980/FactoryDispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
70,
947,
83,
67,
2033,
2476,
972,
12,
2890,
16,
12492,
16,
508,
4672,
3017,
33,
2890,
18,
69,
85,
67,
1077,
1039,
2668,
67,
588,
13344,
6134,
1435,
6315,
5896,
12,
529,
13,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
947,
83,
67,
2033,
2476,
972,
12,
2890,
16,
12492,
16,
508,
4672,
3017,
33,
2890,
18,
69,
85,
67,
1077,
1039,
2668,
67,
588,
13344,
6134,
1435,
6315,
5896,
12,
529,
13,
282... |
else | else: | def _get_currency(self, cr, uid, context): user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid])[0] if user.company: return user.company_id.currency_id.id else return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=',1.0)])[0] | 15fe85f663e578410cd76fa34f94571cce3074e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/15fe85f663e578410cd76fa34f94571cce3074e3/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7095,
12,
2890,
16,
4422,
16,
4555,
16,
819,
4672,
729,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7095,
12,
2890,
16,
4422,
16,
4555,
16,
819,
4672,
729,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
2934,
588,
2668,
455,
18,
5577,
16063,
25731,
12,
3353,
... |
self.tk.call(self._w, 'indicator', 'delete', entry) | self.tk.call(self._w, 'indicator', 'delete', entry) | def indicator_delete(self, entry): | 86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10664,
67,
3733,
12,
2890,
16,
1241,
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,
... | [
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,
10664,
67,
3733,
12,
2890,
16,
1241,
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... |
if self.do_list() | if self.do_list(): | def parse(self): (self.options, self.args) = self.parser.parse_args() if self.do_list() print self.format_available_repos() return False if len(self.args) == 0: self.parser.print_help() return False return True | f6145a51eb7647265a21bec123d1b354731895ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8331/f6145a51eb7647265a21bec123d1b354731895ef/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
365,
18,
4288,
18,
2670,
67,
1968,
1435,
309,
365,
18,
2896,
67,
1098,
13332,
1172,
365,
18,
2139,
67,
5699,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
261,
2890,
18,
2116,
16,
365,
18,
1968,
13,
273,
365,
18,
4288,
18,
2670,
67,
1968,
1435,
309,
365,
18,
2896,
67,
1098,
13332,
1172,
365,
18,
2139,
67,
5699,
67... |
self.button.update_editor() | def OnLeftDown(self, evt): # if the button is supposed to toggle, set the toggle_state # to the opposite of what it currently is if self.button.factory.toggle: self.toggle_state = not self.toggle_state | 556b76753288c35096011f1e2936040220215372 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13166/556b76753288c35096011f1e2936040220215372/svg_button_editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
4164,
12,
2890,
16,
6324,
4672,
468,
309,
326,
3568,
353,
18405,
358,
10486,
16,
444,
326,
10486,
67,
2019,
468,
358,
326,
20759,
434,
4121,
518,
4551,
353,
309,
365,
18,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
4164,
12,
2890,
16,
6324,
4672,
468,
309,
326,
3568,
353,
18405,
358,
10486,
16,
444,
326,
10486,
67,
2019,
468,
358,
326,
20759,
434,
4121,
518,
4551,
353,
309,
365,
18,
5... | |
TRUE = _micropolisengine.TRUE FALSE = _micropolisengine.FALSE | def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | 6a61e7c91d7cad2ac82ba6753dd74db43bb2586f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10557/6a61e7c91d7cad2ac82ba6753dd74db43bb2586f/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
12715,
12,
2890,
4672,
775,
30,
609,
2211,
273,
315,
5656,
434,
315,
397,
365,
18,
2211,
16186,
12715,
972,
1435,
1335,
30,
609,
2211,
273,
1408,
327,
3532,
9,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
12715,
12,
2890,
4672,
775,
30,
609,
2211,
273,
315,
5656,
434,
315,
397,
365,
18,
2211,
16186,
12715,
972,
1435,
1335,
30,
609,
2211,
273,
1408,
327,
3532,
9,
87,
... | |
print "Subscribing registered systems to the %s channel" % (PLATFORM_INDEPENDENT) | print timestamp(), "Subscribing registered systems to the %s channel." % (PLATFORM_INDEPENDENT) | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in... | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... |
self.indexSet = self.cartanType.index_set() | self.index_set = self.cartanType.index_set() | def __init__(self, type): self.cartanType = CartanType(type) self._name = "The crystal of letters for type %s"%type self.indexSet = self.cartanType.index_set() self.module_generators = [self(1)] | 35daa2ce800f484aa708f1cc267bf33e55f68eb5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/35daa2ce800f484aa708f1cc267bf33e55f68eb5/crystals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
4672,
365,
18,
11848,
304,
559,
273,
17695,
304,
559,
12,
723,
13,
365,
6315,
529,
273,
315,
1986,
4422,
31365,
434,
13768,
364,
618,
738,
87,
28385... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
618,
4672,
365,
18,
11848,
304,
559,
273,
17695,
304,
559,
12,
723,
13,
365,
6315,
529,
273,
315,
1986,
4422,
31365,
434,
13768,
364,
618,
738,
87,
28385... |
log.write('%s\n' % ('*' * 78)) log.write('DATE: %s\n' % datetime.now()) if context is not None: user = context.user log.write('URI : %s\n' % str(context.uri)) log.write('USER: %s\n' % (user and user.name or None)) log.write('\n') request = context.request log.write(request.request_line_to_str()) log.write(request.h... | request = context.request log.write(request.request_line_to_str()) log.write(request.headers_to_str()) log.write('\n') print_exc(file=log) log.flush() def log_debug(self, message): log = self.debug_log if log is None: return log.write('%s %s\n' % (datetime.now(), message)) log.flush() | def log_error(self, context=None): # TODO This method may be called from different threads, lock log = self.error_log if log is not None: # The separator log.write('\n') log.write('%s\n' % ('*' * 78)) # The date log.write('DATE: %s\n' % datetime.now()) # The request data if context is not None: # The URI and user user ... | 6429db5a9f1119fde95c21a6a70b31250de1a0c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/6429db5a9f1119fde95c21a6a70b31250de1a0c9/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1636,
12,
2890,
16,
819,
33,
7036,
4672,
468,
2660,
1220,
707,
2026,
506,
2566,
628,
3775,
7403,
16,
2176,
613,
273,
365,
18,
1636,
67,
1330,
309,
613,
353,
486,
599,
30,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
1636,
12,
2890,
16,
819,
33,
7036,
4672,
468,
2660,
1220,
707,
2026,
506,
2566,
628,
3775,
7403,
16,
2176,
613,
273,
365,
18,
1636,
67,
1330,
309,
613,
353,
486,
599,
30,
46... |
self._books_toolbar._search_entry.grab_focus() | self._books_toolbar.search_entry.grab_focus() | def find_books(self, search_text): self._books_toolbar._enable_button(False) textbuffer = self.textview.get_buffer() textbuffer.set_text(_('Performing lookup, please wait') + '...') self.book_selected = False self.ls.clear() search_tuple = search_text.lower().split() if len(search_tuple) == 0: self._alert(_('Error'), _... | ec2d816270546616258518cdc9befcfd8fb8204c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5566/ec2d816270546616258518cdc9befcfd8fb8204c/GetIABooksActivity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12567,
12,
2890,
16,
1623,
67,
955,
4672,
365,
6315,
12567,
67,
18849,
6315,
7589,
67,
5391,
12,
8381,
13,
977,
4106,
273,
365,
18,
955,
1945,
18,
588,
67,
4106,
1435,
977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12567,
12,
2890,
16,
1623,
67,
955,
4672,
365,
6315,
12567,
67,
18849,
6315,
7589,
67,
5391,
12,
8381,
13,
977,
4106,
273,
365,
18,
955,
1945,
18,
588,
67,
4106,
1435,
977,
... |
'product_uom_qty': product_uos_qty}, 'domain':{}} | 'product_uom_qty': product_uos_qty}, 'domain': {}} | def uos_change(self, cr, uid, ids, product_uos, product_uos_qty=0, product_id=None): product_obj = self.pool.get('product.product') if not product_id: return {'value': {'product_uom': product_uos, 'product_uom_qty': product_uos_qty}, 'domain':{}} | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
538,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
89,
538,
16,
3017,
67,
89,
538,
67,
85,
4098,
33,
20,
16,
3017,
67,
350,
33,
7036,
4672,
3017,
67,
2603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
582,
538,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
89,
538,
16,
3017,
67,
89,
538,
67,
85,
4098,
33,
20,
16,
3017,
67,
350,
33,
7036,
4672,
3017,
67,
2603,
... |
tmplist = [(l, -machineDistance(l["arch"], arch)) for l in list ] tmplist.sort() | tmplist = [(l, machineDistance(l["arch"], arch)) for l in list ] tmplist.sort(pkgmdcmp) | def orderList(list, arch): """Order RpmPackage list by "distance" to arch (ascending) and EVR (descending), in that order.""" tmplist = [(l, -machineDistance(l["arch"], arch)) for l in list ] tmplist.sort() tmplist.reverse() list[:] = [l[0] for l in tmplist] | 5f261428ab3a26e11bd6ac05a75855bd39fb033d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/5f261428ab3a26e11bd6ac05a75855bd39fb033d/functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
682,
12,
1098,
16,
6637,
4672,
3536,
2448,
534,
7755,
2261,
666,
635,
315,
8969,
6,
358,
6637,
261,
3691,
2846,
13,
471,
512,
10986,
261,
5569,
2846,
3631,
316,
716,
1353,
12123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1353,
682,
12,
1098,
16,
6637,
4672,
3536,
2448,
534,
7755,
2261,
666,
635,
315,
8969,
6,
358,
6637,
261,
3691,
2846,
13,
471,
512,
10986,
261,
5569,
2846,
3631,
316,
716,
1353,
12123,
... |
return a iterator which yields only fragments within the range. | return an iterator which yields only fragments within the range. | def iter_fragments(fragiter, start_frag_id = None, stop_frag_id = None): """Given a fragment iterator and a start and end fragment id, return a iterator which yields only fragments within the range. """ if start_frag_id and stop_frag_id: dpred = lambda f: fragment_id_lt(f.fragment_id, start_frag_id) tpred = lambda f: f... | a181eacbeb3c68b8f7caba918a821d3f3e6c50f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/a181eacbeb3c68b8f7caba918a821d3f3e6c50f6/Structure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
29528,
12,
17073,
2165,
16,
787,
67,
17073,
67,
350,
273,
599,
16,
2132,
67,
17073,
67,
350,
273,
599,
4672,
3536,
6083,
279,
5481,
2775,
471,
279,
787,
471,
679,
5481,
612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
29528,
12,
17073,
2165,
16,
787,
67,
17073,
67,
350,
273,
599,
16,
2132,
67,
17073,
67,
350,
273,
599,
4672,
3536,
6083,
279,
5481,
2775,
471,
279,
787,
471,
679,
5481,
612,
... |
framereq = self.req.load("http://relink.us/frame.php?"+link_string, cookies=True) | framereq = self.req.load("http://relink.us/frame.php?"+link_string, cookies=True) | def proceed(self, url, location): container_id = self.parent.url.split("/")[-1].split("id=")[-1] url = "http://relink.us/view.php?id="+container_id self.html = self.req.load(url, cookies=True) temp_links = [] | 2599ae0c23fd9f0766ba22a1741d458a08985823 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/2599ae0c23fd9f0766ba22a1741d458a08985823/RelinkUs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
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,
11247,
12,
2890,
16,
880,
16,
2117,
4672,
1478,
67,
350,
273,
365,
18,
2938,
18,
718,
18,
4939,
2932,
4898,
13,
18919,
21,
8009,
4939,
2932,
350,
1546,
13,
18919,
21,
65,
880,
273,
3... |
icon_size = 0 | def DrawMenu_Selection(self, menuw, settings, x0, y0, width, height): val = settings menu = menuw.menustack[-1] | da357c70833b3ac92b415741c7c88fd4eea72965 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/da357c70833b3ac92b415741c7c88fd4eea72965/skin_aubin1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10184,
4599,
67,
6233,
12,
2890,
16,
3824,
91,
16,
1947,
16,
619,
20,
16,
677,
20,
16,
1835,
16,
2072,
4672,
1244,
273,
1947,
3824,
273,
3824,
91,
18,
27617,
641,
484,
18919,
21,
65,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10184,
4599,
67,
6233,
12,
2890,
16,
3824,
91,
16,
1947,
16,
619,
20,
16,
677,
20,
16,
1835,
16,
2072,
4672,
1244,
273,
1947,
3824,
273,
3824,
91,
18,
27617,
641,
484,
18919,
21,
65,... | |
srcendpoint[0]=['', 32] | srcendpoint[0]=['', '32'] | def main(): user=os.environ['LOGNAME'] host='localhost' password='' database='' starttime=0 interval=60 length=1 addr='' mask=32 port='' proto='' hitter=[] srcendpoint=[] dstendpoint=[] try: opts, args = getopt.gnu_getopt(sys.argv[1:], "u:h:p:d:T:I:L:A:M:P:R:H:S:D:", ["user=", "host=", "password=", "database=", "time=... | 36da5ebce86e3ad89a7e51790f261c3c224af8d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2286/36da5ebce86e3ad89a7e51790f261c3c224af8d8/inspect-anomaly.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
729,
33,
538,
18,
28684,
3292,
4842,
1985,
3546,
1479,
2218,
13014,
11,
2201,
2218,
11,
2063,
2218,
11,
23437,
33,
20,
3673,
33,
4848,
769,
33,
21,
3091,
2218,
11,
3066,
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,
2774,
13332,
729,
33,
538,
18,
28684,
3292,
4842,
1985,
3546,
1479,
2218,
13014,
11,
2201,
2218,
11,
2063,
2218,
11,
23437,
33,
20,
3673,
33,
4848,
769,
33,
21,
3091,
2218,
11,
3066,
3... |
wa.cback = connectControl(wa, master, value, callback and callbackOnType, "textChanged(const QString &)", CallFront_lineEdit(wa), fvcb = value and valueType)[1] | wa.cback = connectControl(wa, master, value, callbackOnType and callback, "textChanged(const QString &)", CallFront_lineEdit(wa), fvcb = value and valueType)[1] | def lineEdit(widget, master, value, label=None, labelWidth=None, orientation='vertical', box=None, tooltip=None, callback=None, valueType = unicode, validator=None, controlWidth = None, callbackOnType = False, focusInCallback = None): if box or label: b = widgetBox(widget, box, orientation) widgetLabel(b, label, labelW... | 0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
4666,
12,
6587,
16,
4171,
16,
460,
16,
1433,
33,
7036,
16,
1433,
2384,
33,
7036,
16,
9820,
2218,
17824,
2187,
3919,
33,
7036,
16,
11915,
33,
7036,
16,
1348,
33,
7036,
16,
13692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
4666,
12,
6587,
16,
4171,
16,
460,
16,
1433,
33,
7036,
16,
1433,
2384,
33,
7036,
16,
9820,
2218,
17824,
2187,
3919,
33,
7036,
16,
11915,
33,
7036,
16,
1348,
33,
7036,
16,
13692,
... |
wdname = self.kind.capitalize() + 'WorkingDir' modname = 'vcpx.repository.' + self.kind | def workingDir(self): """ Return an instance of the specific WorkingDir for this kind of repository. """ | 6a9bd83e9d215c86dfac7591e8d0edd54323c1d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/6a9bd83e9d215c86dfac7591e8d0edd54323c1d5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5960,
1621,
12,
2890,
4672,
3536,
2000,
392,
791,
434,
326,
2923,
22732,
1621,
364,
333,
3846,
434,
3352,
18,
3536,
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,
5960,
1621,
12,
2890,
4672,
3536,
2000,
392,
791,
434,
326,
2923,
22732,
1621,
364,
333,
3846,
434,
3352,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
Returns a Huffman code for each one of the given elements. INPUT: - ``dic`` (dictionary) -- associates to each letter of the alphabet a frequency or a number of occurrences. | Constructs a Huffman code corresponding to an alphabet with the given weight table. INPUT: - ``dic`` -- a dictionary that associates to each symbol of an alphabet a numeric value. If we consider the frequency of each alphabetic symbol, then ``dic`` is considered as the frequency table of the alphabet with each numeri... | def _build_code(self, dic): r""" Returns a Huffman code for each one of the given elements. INPUT: - ``dic`` (dictionary) -- associates to each letter of the alphabet a frequency or a number of occurrences. | 1b9c6cbddf459d54e7643b46fc74830b6a3ea80c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1b9c6cbddf459d54e7643b46fc74830b6a3ea80c/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
710,
12,
2890,
16,
11681,
4672,
436,
8395,
2860,
279,
670,
28581,
981,
364,
1517,
1245,
434,
326,
864,
2186,
18,
225,
12943,
30,
225,
300,
12176,
15859,
10335,
261,
15556,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
710,
12,
2890,
16,
11681,
4672,
436,
8395,
2860,
279,
670,
28581,
981,
364,
1517,
1245,
434,
326,
864,
2186,
18,
225,
12943,
30,
225,
300,
12176,
15859,
10335,
261,
15556,... |
gp.oldpath = line[10:].rstrip() | gp.oldpath = line[10:] | def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] # Can have a git patch with only metadata, causing patch to complain dopatch = 0 lineno = 0 for line in lr: lineno += 1 if line.startswith('diff --git'): m = gitre.match(l... | be5497a5fc601c2dd2fa6a4688b100383b0f1202 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/be5497a5fc601c2dd2fa6a4688b100383b0f1202/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
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,
855,
6845,
2272,
12,
10826,
4672,
3536,
8004,
5071,
17,
4060,
1982,
2973,
16482,
628,
411,
2272,
529,
2984,
3660,
225,
468,
4008,
4729,
364,
5071,
1779,
4178,
273,
599,
5071,
30278,
273,
... |
generic_load_model_test(modelfile, cpath, 'optimica') | _generic_load_model_trial(modelfile, cpath, 'optimica') | def test_load_model_optimica(): """Test the load_model(...) function of an Optimica problem.""" modelfile = "VDP.mo" cpath = "VDP_pack.VDP_Opt_Min_Time" generic_load_model_test(modelfile, cpath, 'optimica') | 6878d7b8434bc55c9db4c9ed255419de5cd16b3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/6878d7b8434bc55c9db4c9ed255419de5cd16b3d/test_jmi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
945,
67,
2284,
67,
16689,
26433,
13332,
3536,
4709,
326,
1262,
67,
2284,
5825,
13,
445,
434,
392,
19615,
26433,
6199,
12123,
938,
768,
273,
315,
58,
8640,
18,
8683,
6,
276,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
945,
67,
2284,
67,
16689,
26433,
13332,
3536,
4709,
326,
1262,
67,
2284,
5825,
13,
445,
434,
392,
19615,
26433,
6199,
12123,
938,
768,
273,
315,
58,
8640,
18,
8683,
6,
276,
8... |
print "Attempts will continue to submit the last %d songs." % len(self.queue) | log("Attempts will continue to submit the last %d songs." % len(self.queue)) | def submit_song_helper(self): if self.__enabled: print "Plugin re-enabled - accepting new songs." if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 else: print "Plugin disabled - not accepting any new songs." if len(self.queue) > 0: self.submission_tid = gobject.timeout_... | 6813e514c46661f83b0631485a195a56144fb77d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/6813e514c46661f83b0631485a195a56144fb77d/qlscrobbler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
309,
365,
16186,
5745,
30,
1172,
315,
3773,
283,
17,
5745,
300,
25806,
394,
272,
7260,
1199,
309,
365,
18,
12684,
67,
18081,
480,
300,
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,
4879,
67,
816,
75,
67,
4759,
12,
2890,
4672,
309,
365,
16186,
5745,
30,
1172,
315,
3773,
283,
17,
5745,
300,
25806,
394,
272,
7260,
1199,
309,
365,
18,
12684,
67,
18081,
480,
300,
21,
... |
self.data.comments[-1] = self.data.comments[-1] + line[5:] | self.data.comments[-1] += line[5:] | def comment(self, line): if line[5:8] == '-!-': # Make a new comment self.data.comments.append(line[9:]) elif line[5:8] == ' ': # add to the previous comment if not self.data.comments: # TCMO_STRGA in Release 37 has comment with no topic self.data.comments.append(line[9:]) else: self.data.comments[-1] = self.data.c... | a076fb069aa689427988c32e2093d8c8c4274506 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/a076fb069aa689427988c32e2093d8c8c4274506/SProt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2879,
12,
2890,
16,
980,
4672,
309,
980,
63,
25,
30,
28,
65,
422,
2400,
5,
17,
4278,
282,
468,
4344,
279,
394,
2879,
365,
18,
892,
18,
9231,
18,
6923,
12,
1369,
63,
29,
30,
5717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2879,
12,
2890,
16,
980,
4672,
309,
980,
63,
25,
30,
28,
65,
422,
2400,
5,
17,
4278,
282,
468,
4344,
279,
394,
2879,
365,
18,
892,
18,
9231,
18,
6923,
12,
1369,
63,
29,
30,
5717,
... |
('ELEVATION_MIN', '67109928' ), ('ELEVATION_MAX', '83887572' ), | ('ELEVATION_MIN', '1064' ), ('ELEVATION_MAX', '1492' ), | def lcp_1(): ds = gdal.Open('data/test_FARSITE_UTM12.LCP') if ds.RasterCount != 8: gdaltest.post_reason('wrong number of bands') return 'fail' metadata = [ ('LATITUDE', '49'), ('LINEAR_UNIT', 'Meters'), ('DESCRIPTION', 'This is a test LCP file created with FARSITE 4.1.054, using data downloaded from the USGS \r\nNati... | d2e8ee10ac2ea02f628e0a02c8f7aa48c0f9c537 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/d2e8ee10ac2ea02f628e0a02c8f7aa48c0f9c537/lcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
4057,
67,
21,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
3813,
67,
42,
985,
20609,
67,
1693,
49,
2138,
18,
48,
4258,
6134,
309,
3780,
18,
18637,
1380,
480,
1725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
4057,
67,
21,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
3813,
67,
42,
985,
20609,
67,
1693,
49,
2138,
18,
48,
4258,
6134,
309,
3780,
18,
18637,
1380,
480,
1725,
... |
phone = FallbackPrefsSerices.Service(self, 'phone') | phone = FallbackPrefsServices.Service(self, 'phone') | def __init__(self): phone = FallbackPrefsSerices.Service(self, 'phone') phone['ring-tone'] = {'default': 'music1'} phone['ring-volume'] = {'default': 10, 'silent': 0} self.services = {'phone': phone} self.profiles = ['default', 'silent', 'outdoor'] self.activated_profiles = ['default'] | dcdaafb6e4e378ae4d765c2a422a29f3b25a0c05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/dcdaafb6e4e378ae4d765c2a422a29f3b25a0c05/prefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7353,
273,
21725,
1386,
2556,
5676,
18,
1179,
12,
2890,
16,
296,
10540,
6134,
7353,
3292,
8022,
17,
88,
476,
3546,
273,
13666,
1886,
4278,
296,
81,
14894... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
7353,
273,
21725,
1386,
2556,
5676,
18,
1179,
12,
2890,
16,
296,
10540,
6134,
7353,
3292,
8022,
17,
88,
476,
3546,
273,
13666,
1886,
4278,
296,
81,
14894... |
if not self.copy_debug: shutil.rmtree(dsymbundle) | shutil.rmtree(dsymbundle) | def ProcessFile(self, file): """dump_syms on Mac needs to be run on a dSYM bundle produced by dsymutil(1), so run dsymutil here and pass the bundle name down to the superclass method instead.""" dsymbundle = file + ".dSYM" if os.path.exists(dsymbundle): shutil.rmtree(dsymbundle) # dsymutil takes --arch=foo instead of -... | 35a9da7dbe8b00eb4a43e9cce59d1ce6450c3fdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/35a9da7dbe8b00eb4a43e9cce59d1ce6450c3fdc/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
812,
12,
2890,
16,
585,
4672,
3536,
8481,
67,
9009,
959,
603,
13217,
4260,
358,
506,
1086,
603,
279,
302,
7474,
49,
3440,
14929,
635,
3780,
2942,
1367,
12,
21,
3631,
1427,
1086,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
812,
12,
2890,
16,
585,
4672,
3536,
8481,
67,
9009,
959,
603,
13217,
4260,
358,
506,
1086,
603,
279,
302,
7474,
49,
3440,
14929,
635,
3780,
2942,
1367,
12,
21,
3631,
1427,
1086,
... |
pixmaps.append('data/pixmaps/%s' % pix) | if pix.endswith('png'): pixmaps.append('data/pixmaps/%s' % pix) | def log(message): if VERBOSE: print 'Pida:', message | 96553a7c2878d55b929e8a7b961bd933149fe180 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/96553a7c2878d55b929e8a7b961bd933149fe180/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
12,
2150,
4672,
309,
27857,
30,
1172,
296,
12478,
69,
30,
2187,
883,
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,
... | [
1,
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,
613,
12,
2150,
4672,
309,
27857,
30,
1172,
296,
12478,
69,
30,
2187,
883,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
BayesProxyListener(serverName, serverPort, proxyPort) | for (server, serverPort), proxyPort in zip(servers, proxyPorts): BayesProxyListener(server, serverPort, proxyPort) | def main(serverName, serverPort, proxyPort, uiPort, launchUI, databaseFilename, useDB): """Runs the proxy forever or until a 'KILL' command is received or someone hits Ctrl+Break.""" BayesProxyListener(serverName, serverPort, proxyPort) UserInterfaceListener(uiPort) if launchUI: webbrowser.open_new("http://localhost:%d... | b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3567,
461,
16,
1438,
2617,
16,
2889,
2617,
16,
5915,
2617,
16,
8037,
5370,
16,
2063,
5359,
16,
999,
2290,
4672,
3536,
9361,
326,
2889,
21238,
578,
3180,
279,
296,
47,
15125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3567,
461,
16,
1438,
2617,
16,
2889,
2617,
16,
5915,
2617,
16,
8037,
5370,
16,
2063,
5359,
16,
999,
2290,
4672,
3536,
9361,
326,
2889,
21238,
578,
3180,
279,
296,
47,
15125,
... |
goodargs = argsreduce(cond, *((q,)+args+(loc,))) loc, goodargs = goodargs[-1], goodargs[:-1] place(output,cond,self._ppf(*goodargs) + loc) | if any(cond): goodargs = argsreduce(cond, *((q,)+args+(loc,))) loc, goodargs = goodargs[-1], goodargs[:-1] place(output,cond,self._isf(*goodargs) + loc) | def isf(self,q,*args,**kwds): """Inverse survival function (1-sf) at q of the given RV | 4ca9f7d91b2d0cf6aa79bb5c23d73807cff34ffb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/4ca9f7d91b2d0cf6aa79bb5c23d73807cff34ffb/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
74,
12,
2890,
16,
85,
16,
14,
1968,
16,
636,
25577,
4672,
3536,
16376,
25397,
5162,
445,
261,
21,
17,
21668,
13,
622,
1043,
434,
326,
864,
534,
58,
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,
353,
74,
12,
2890,
16,
85,
16,
14,
1968,
16,
636,
25577,
4672,
3536,
16376,
25397,
5162,
445,
261,
21,
17,
21668,
13,
622,
1043,
434,
326,
864,
534,
58,
2,
-100,
-100,
-100,
-100,
-1... |
self._cached_image_data_widths = self._get_index_mapper_data_bounds() | def _compute_cached_image(self, selection_masks=None): """ Updates the cached image. """ if not self._mapped_image_cache_valid: cached_mapped_image = \ self.value_mapper.map_screen(self.value.data) * 255 if selection_masks is not None: # construct a composite mask mask = zeros(cached_mapped_image.shape[:2], dtype=bool)... | 352b007239a2021364e35ca32a3e864fb48033d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/352b007239a2021364e35ca32a3e864fb48033d4/cmap_image_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9200,
67,
7097,
67,
2730,
12,
2890,
16,
4421,
67,
29102,
33,
7036,
4672,
3536,
15419,
326,
3472,
1316,
18,
3536,
309,
486,
365,
6315,
13654,
67,
2730,
67,
2493,
67,
877,
30,
3472,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
67,
7097,
67,
2730,
12,
2890,
16,
4421,
67,
29102,
33,
7036,
4672,
3536,
15419,
326,
3472,
1316,
18,
3536,
309,
486,
365,
6315,
13654,
67,
2730,
67,
2493,
67,
877,
30,
3472,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.