rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if key in self._bookmarks: key = self._bookmarks[key]
if not getattr(self, '_loadingbookmarks', False): if key in self._bookmarks: key = self._bookmarks[key]
def lookup(self, key): if key in self._bookmarks: key = self._bookmarks[key] return super(bookmark_repo, self).lookup(key)
f7962bc47b741b4cb191aefa4096a830743586e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/f7962bc47b741b4cb191aefa4096a830743586e3/bookmarks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 2890, 16, 498, 4672, 309, 486, 3869, 12, 2890, 16, 2070, 15174, 3618, 17439, 2187, 1083, 4672, 309, 498, 316, 365, 6315, 3618, 17439, 30, 498, 273, 365, 6315, 3618, 17439, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 2890, 16, 498, 4672, 309, 486, 3869, 12, 2890, 16, 2070, 15174, 3618, 17439, 2187, 1083, 4672, 309, 498, 316, 365, 6315, 3618, 17439, 30, 498, 273, 365, 6315, 3618, 17439, 63, ...
self.builder.get_object("vbox2").show()
self.builder.get_object("lateralPanel").show()
def set_visible_lateral_panel(self, state): if state: self.builder.get_object("vbox2").show() else: self.builder.get_object("vbox2").hide()
33bbbf08dfbff9aa51d1033773995a75d699d107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/33bbbf08dfbff9aa51d1033773995a75d699d107/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8613, 67, 29082, 287, 67, 13916, 12, 2890, 16, 919, 4672, 309, 919, 30, 365, 18, 9574, 18, 588, 67, 1612, 2932, 29082, 287, 5537, 20387, 4500, 1435, 469, 30, 365, 18, 9574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8613, 67, 29082, 287, 67, 13916, 12, 2890, 16, 919, 4672, 309, 919, 30, 365, 18, 9574, 18, 588, 67, 1612, 2932, 29082, 287, 5537, 20387, 4500, 1435, 469, 30, 365, 18, 9574, ...
if ((l != 2) and (l != 3)): raise PicklingError, "tuple returned by %s must contain " \ "only two or three elements" % reduce callable = tup[0] arg_tup = tup[1]
if ((l != 2) and (l != 3)): raise PicklingError, "tuple returned by %s must contain " \ "only two or three elements" % reduce callable = tup[0] arg_tup = tup[1]
def save(self, object, pers_save = 0): memo = self.memo
971792dafe584efc723c3014ded6af302d155a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/971792dafe584efc723c3014ded6af302d155a6f/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 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, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
usertalkpage = wikipedia.Page(wsite, talk + username)
usertalkpage = wikipedia.Page(wsite, str(talk) + str(username))
def parselog(wsite, raw, talk, number): """ The function to load the users (only users who have a certain number of edits) """ done = list() pos = 0 # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure). while 1: # FIXME: That's the regex, if there are ...
39b7ba3c7caa86382857fed4504f0e143bf50fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/39b7ba3c7caa86382857fed4504f0e143bf50fc9/welcome.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 2731, 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, 779, 1786, 717, 12, 91, 4256, 16, 1831, 16, 26591, 16, 1300, 4672, 3536, 1021, 445, 358, 1262, 326, 3677, 261, 3700, 3677, 10354, 1240, 279, 8626, 1300, 434, 24450, 13, 3536, 2731, 273, ...
treeview.set_cursor( path, col, 0)
treeview.set_cursor(path, col, 0)
def on_closed_task_treeview_button_press_event(self, treeview, event): if event.button == 3: x = int(event.x) y = int(event.y) time = event.time pthinfo = treeview.get_path_at_pos(x, y) if pthinfo is not None: path, col, cellx, celly = pthinfo #pylint: disable-msg=W0612 treeview.grab_focus() treeview.set_cursor( path, ...
635136fd20926f114ccec03345d2215cd7a50e2a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/635136fd20926f114ccec03345d2215cd7a50e2a/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12204, 67, 4146, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 309, 871, 18, 5391, 422, 890, 30, 619, 273, 509, 12, 2575, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 12204, 67, 4146, 67, 3413, 1945, 67, 5391, 67, 1028, 67, 2575, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 309, 871, 18, 5391, 422, 890, 30, 619, 273, 509, 12, 2575, 18, 92, ...
raise Exception("gcl run outside of repository")
raise gclient.Error("gcl run outside of repository")
def GetRepositoryRoot(): """Returns the top level directory of the current repository. The directory is returned as an absolute path. """ global REPOSITORY_ROOT if not REPOSITORY_ROOT: infos = gclient.CaptureSVNInfo(os.getcwd(), print_error=False) cur_dir_repo_root = infos.get("Repository Root") if not cur_dir_repo_ro...
f2ca32ea6d2e6515c642eddb2d748a70fb3c07e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/f2ca32ea6d2e6515c642eddb2d748a70fb3c07e3/gcl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3305, 2375, 13332, 3536, 1356, 326, 1760, 1801, 1867, 434, 326, 783, 3352, 18, 225, 1021, 1867, 353, 2106, 487, 392, 4967, 589, 18, 3536, 2552, 2438, 30986, 67, 9185, 309, 486, 2438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3305, 2375, 13332, 3536, 1356, 326, 1760, 1801, 1867, 434, 326, 783, 3352, 18, 225, 1021, 1867, 353, 2106, 487, 392, 4967, 589, 18, 3536, 2552, 2438, 30986, 67, 9185, 309, 486, 2438...
self.cap_sk6[1] = int(packetbuf[5:9])
self.data.cap_sk6[1] = int(packetbuf[5:9])
def extract_ascii_packet(self, packet_type, packetbuf, playback, timestamp_packet): if packet_type == SK6_DATA_ACC: # fmt: $ACC,+dddd,+dddd,+dddd,ss*CS\r\n self.data.accx = int(packetbuf[5:10]) self.data.accy = int(packetbuf[11:16]) self.data.accz = int(packetbuf[17:22]) self.data.internal_timestamps[SHAKE_SENSOR_ACC] ...
1da5558944bc7bf0f7fdbcbc2fca73910caaaa4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4761/1da5558944bc7bf0f7fdbcbc2fca73910caaaa4b/pyshake_sk6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 9184, 67, 11482, 12, 2890, 16, 4414, 67, 723, 16, 4414, 4385, 16, 26335, 16, 2858, 67, 11482, 4672, 309, 4414, 67, 723, 422, 12038, 26, 67, 4883, 67, 31414, 30, 468, 1325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 9184, 67, 11482, 12, 2890, 16, 4414, 67, 723, 16, 4414, 4385, 16, 26335, 16, 2858, 67, 11482, 4672, 309, 4414, 67, 723, 422, 12038, 26, 67, 4883, 67, 31414, 30, 468, 1325, ...
"""Given a reference line, identify URLs in the line and tag them between <cds.URL> tags. URLs are identified in 2 forms:
"""Given a reference line, identify URLs in the line, record the information about them, and replace them with a "<cds.URL />" tag. URLs are identified in 2 forms:
def identify_and_tag_URLs(line): """Given a reference line, identify URLs in the line and tag them between <cds.URL> tags. URLs are identified in 2 forms: + Raw: http //cdsware.cern.ch/ + HTML marked-up: <a href="http //cdsware.cern.ch/">CERN Document Server Software Consortium</a> These URLs are considered to have 2 c...
2d59c329303d08c7f68b0f31c1734d909a7d8679 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/2d59c329303d08c7f68b0f31c1734d909a7d8679/refextract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 67, 464, 67, 2692, 67, 15749, 12, 1369, 4672, 3536, 6083, 279, 2114, 980, 16, 9786, 10414, 316, 326, 980, 16, 1409, 326, 1779, 2973, 2182, 16, 471, 1453, 2182, 598, 279, 3532, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9786, 67, 464, 67, 2692, 67, 15749, 12, 1369, 4672, 3536, 6083, 279, 2114, 980, 16, 9786, 10414, 316, 326, 980, 16, 1409, 326, 1779, 2973, 2182, 16, 471, 1453, 2182, 598, 279, 3532, 71...
self.forward(0)
def fill(self, flag): """ Call fill(1) before drawing the shape you want to fill, and fill(0) when done.
940f668a51bf98e56ee02b2398c53324deae8c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/940f668a51bf98e56ee02b2398c53324deae8c87/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, -100, -100, -100, -100, -100,...
if self.inscription.reference[i].get_state() & PRESENT:
if i % 7 < 5 or not "Week-end" in creche.feries: if self.inscription.reference[i].get_state() & PRESENT:
def __init__(self, inscrit, periode, options=0): self.inscrit = inscrit self.debut, self.fin = periode self.options = options errors = [] if not inscrit.prenom or (not options & NO_NOM and not inscrit.nom): errors.append(u" - L'état civil de l'enfant est incomplet.") if not options & NO_ADDRESS and (not inscrit.code_po...
2bbd0841abf01072751b6497ca17588ea02f7ce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8291/2bbd0841abf01072751b6497ca17588ea02f7ce8/cotisation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 316, 1017, 583, 16, 1534, 77, 390, 16, 702, 33, 20, 4672, 365, 18, 267, 1017, 583, 273, 316, 1017, 583, 365, 18, 323, 12885, 16, 365, 18, 926, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 316, 1017, 583, 16, 1534, 77, 390, 16, 702, 33, 20, 4672, 365, 18, 267, 1017, 583, 273, 316, 1017, 583, 365, 18, 323, 12885, 16, 365, 18, 926, 273, 1...
self.c_func_name = arg
self.c_func_name = repr(arg)
def trace_dispatch_i(self, frame, event, arg): timer = self.timer t = timer() - self.t - self.bias
4bebed7f41d355b06ad80be190d79611a385cc7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4bebed7f41d355b06ad80be190d79611a385cc7e/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 67, 77, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 5441, 273, 365, 18, 12542, 268, 273, 5441, 1435, 300, 365, 18, 88, 300, 365, 18, 13931, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 67, 10739, 67, 77, 12, 2890, 16, 2623, 16, 871, 16, 1501, 4672, 5441, 273, 365, 18, 12542, 268, 273, 5441, 1435, 300, 365, 18, 88, 300, 365, 18, 13931, 2, -100, -100, -100, -10...
val['qty'+str(i)]=self._get_price(self.pricelist,product.id,qty) i += 1
if qty == 0: val['qty'+str(i)] = "" else: val['qty'+str(i)]=self._get_price(self.pricelist,product['id'],qty) i += 1
def _get_categories(self, products,form): cat_ids=[] res=[] self.pricelist = form['price_list'] self._set_quantity(form) pool = pooler.get_pool(self.cr.dbname) pro_ids=[] for product in products: pro_ids.append(product.id) if product.categ_id.id not in cat_ids: cat_ids.append(product.categ_id.id) cats=pool.get('product...
967b12f89f806186cbdd8d4b6f8a7df52dac28c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/967b12f89f806186cbdd8d4b6f8a7df52dac28c7/product_pricelist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 8995, 12, 2890, 16, 10406, 16, 687, 4672, 6573, 67, 2232, 33, 8526, 400, 33, 8526, 365, 18, 683, 335, 5449, 273, 646, 3292, 8694, 67, 1098, 3546, 365, 6315, 542, 67, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 8995, 12, 2890, 16, 10406, 16, 687, 4672, 6573, 67, 2232, 33, 8526, 400, 33, 8526, 365, 18, 683, 335, 5449, 273, 646, 3292, 8694, 67, 1098, 3546, 365, 6315, 542, 67, 16...
def getCurrentTime(self): """ return the current time on the device """ data = self.sendCMD(['clok']) if (data == None): return None return self.stripPrompt(data).strip('\n') def addRemoteServerPref(self, profile_dir, server): """ edit the user.js in the profile (on the host machine) and add the xpconnect priviledges ...
def getInfo(self, directive=None): data = None result = {} collapseSpaces = re.compile(' +') directives = ['os', 'id','uptime','systime','screen','memory','process', 'disk','power'] if (directive in directives): directives = [directive] for d in directives: data = self.sendCMD(['info ' + d]) if (data is ...
def getCurrentTime(self): """ return the current time on the device """ data = self.sendCMD(['clok']) if (data == None): return None return self.stripPrompt(data).strip('\n')
fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/fd9e385f2805e09156e5ef3c1f5d56e976bc2bf6/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 950, 12, 2890, 4672, 3536, 327, 326, 783, 813, 603, 326, 2346, 3536, 501, 273, 365, 18, 4661, 19473, 12, 3292, 7550, 79, 19486, 309, 261, 892, 422, 599, 4672, 327, 599, 327, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 950, 12, 2890, 4672, 3536, 327, 326, 783, 813, 603, 326, 2346, 3536, 501, 273, 365, 18, 4661, 19473, 12, 3292, 7550, 79, 19486, 309, 261, 892, 422, 599, 4672, 327, 599, 327, 365,...
the global disconnected_stub, os it can be tested by identity.
the global disconnected_stub, so it can be tested by identity.
def get_timestamp(prev_ts=None): """Internal helper to return a unique TimeStamp instance. If the optional argument is not None, it must be a TimeStamp; the return value is then guaranteed to be at least 1 microsecond later the argument. """ t = time.time() t = TimeStamp(*time.gmtime(t)[:5] + (t % 60,)) if prev_ts is...
9dd6c6a3be92c5f1d2eb1663de17b6a085f73d40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10048/9dd6c6a3be92c5f1d2eb1663de17b6a085f73d40/ClientStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5508, 12, 10001, 67, 3428, 33, 7036, 4672, 3536, 3061, 4222, 358, 327, 279, 3089, 2647, 8860, 791, 18, 225, 971, 326, 3129, 1237, 353, 486, 599, 16, 518, 1297, 506, 279, 2647,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5508, 12, 10001, 67, 3428, 33, 7036, 4672, 3536, 3061, 4222, 358, 327, 279, 3089, 2647, 8860, 791, 18, 225, 971, 326, 3129, 1237, 353, 486, 599, 16, 518, 1297, 506, 279, 2647,...
print "OnClick", evt.GetId()
def OnClick(self, evt): print "OnClick", evt.GetId() id = evt.GetId() state = self.GetToolToggled(id) label = self.GetToolLabel(id) #if id != ID_ZOOM: # print "Toggled zoom off" # self.ToggleTool(ID_ZOOM, 0)
9ea636e5642af91c5164934cac1dbceeb58b46d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9ea636e5642af91c5164934cac1dbceeb58b46d5/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6563, 12, 2890, 16, 6324, 4672, 612, 273, 6324, 18, 967, 548, 1435, 919, 273, 365, 18, 967, 6364, 56, 23972, 1259, 12, 350, 13, 1433, 273, 365, 18, 967, 6364, 2224, 12, 350, 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, 2755, 6563, 12, 2890, 16, 6324, 4672, 612, 273, 6324, 18, 967, 548, 1435, 919, 273, 365, 18, 967, 6364, 56, 23972, 1259, 12, 350, 13, 1433, 273, 365, 18, 967, 6364, 2224, 12, 350, 13...
res = pfnparse(pfn)
res = pfnparse( pfn )
def _checkLFNPFNConvention(self,lfn,pfn,se): """ Check that the PFN corresponds to the LFN-PFN convention """ # Check if the PFN corresponds to the LFN convention if pfn == lfn: return S_OK() lfn_pfn = True # flag that the lfn is contained in the pfn if (len(pfn)<len(lfn)) or (pfn[-len(lfn):] != lfn) : return S_ERROR...
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 9105, 23430, 19793, 25947, 12, 2890, 16, 80, 4293, 16, 84, 4293, 16, 307, 4672, 3536, 2073, 716, 326, 453, 19793, 13955, 358, 326, 18803, 50, 17, 52, 19793, 15797, 3536, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 9105, 23430, 19793, 25947, 12, 2890, 16, 80, 4293, 16, 84, 4293, 16, 307, 4672, 3536, 2073, 716, 326, 453, 19793, 13955, 358, 326, 18803, 50, 17, 52, 19793, 15797, 3536, 468, ...
str += ' <DD><CODE>'+`func`+'</CODE>'
str += ' <dd><code>'+`func`+'</code>'
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
self.pdbg("parse_expression parsing expression: \"%s\"" % self.buffer)
if Opt.ParseDBG: self.pdbg("parse_expression parsing expression: \"%s\"" % self.buffer)
def parse_expression(self, prune=False): self.parse_dbg_indent += " " self.buffer = self.buffer.strip() if self.buffer == "": if self.readline(): if re_rule.match(self.buffer): self.pdbg("parse_expression new line started new rule, returning None") self.parse_dbg_indent = self.parse_dbg_indent[:-2] return(None, None) ...
0c9007da0c07e550781c18146d5a05ade578dced /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/0c9007da0c07e550781c18146d5a05ade578dced/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8692, 12, 2890, 16, 13293, 33, 8381, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 4106, 273, 365, 18, 4106, 18, 6406, 1435, 309, 365, 18, 4106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8692, 12, 2890, 16, 13293, 33, 8381, 4672, 365, 18, 2670, 67, 1966, 75, 67, 9355, 1011, 315, 225, 315, 365, 18, 4106, 273, 365, 18, 4106, 18, 6406, 1435, 309, 365, 18, 4106...
model, selected = selection.get_selected() return model.get_value(selected, 2)
if selection: model, selected = selection.get_selected() return model.get_value(selected, 2)
def _getIdentityFromSelection(self): selection = self.lvIdentities.get_selection() model, selected = selection.get_selected() return model.get_value(selected, 2)
9e9476612b2c800132c9475942d1030de00c95a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2229/9e9476612b2c800132c9475942d1030de00c95a5/identities_dialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4334, 1265, 6233, 12, 2890, 4672, 4421, 273, 365, 18, 3070, 20746, 18, 588, 67, 10705, 1435, 309, 4421, 30, 938, 16, 3170, 273, 4421, 18, 588, 67, 8109, 1435, 327, 938, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4334, 1265, 6233, 12, 2890, 4672, 4421, 273, 365, 18, 3070, 20746, 18, 588, 67, 10705, 1435, 309, 4421, 30, 938, 16, 3170, 273, 4421, 18, 588, 67, 8109, 1435, 327, 938, 18, ...
self.assertEqual(stdout, "Woke up, sleep function is: <built-in function sleep>\n")
self.assertEqual(stdout.strip(), "Woke up, sleep function is: <built-in function sleep>")
def child(): sleep(1) # As a non-daemon thread we SHOULD wake up and nothing # should be torn down yet print "Woke up, sleep function is:", sleep
1e6a57639c423a2690151e1fc57e84db964a4523 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/1e6a57639c423a2690151e1fc57e84db964a4523/test_threading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1151, 13332, 5329, 12, 21, 13, 468, 2970, 279, 1661, 17, 21511, 2650, 732, 6122, 31090, 19891, 731, 471, 5083, 468, 1410, 506, 8934, 82, 2588, 4671, 1172, 315, 59, 3056, 731, 16, 5329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1151, 13332, 5329, 12, 21, 13, 468, 2970, 279, 1661, 17, 21511, 2650, 732, 6122, 31090, 19891, 731, 471, 5083, 468, 1410, 506, 8934, 82, 2588, 4671, 1172, 315, 59, 3056, 731, 16, 5329, ...
d = pickle.load(open(filename,'rb')) if type not in d: d[type] = {}
try: d = pickle.load(open(filename,'rb')) if type not in d: d[type] = {} except: d = {type:{}}
def persist(self, filename, type='none'): """ Persist cross-document information for labeled nodes
b218504095127e389534715bea377d5123f66ce9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/b218504095127e389534715bea377d5123f66ce9/Context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3898, 12, 2890, 16, 1544, 16, 618, 2218, 6102, 11, 4672, 3536, 21583, 6828, 17, 5457, 1779, 364, 23585, 2199, 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, 3898, 12, 2890, 16, 1544, 16, 618, 2218, 6102, 11, 4672, 3536, 21583, 6828, 17, 5457, 1779, 364, 23585, 2199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
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
d37e632395c3a7f2b6d5a2234ac913f70ee48827 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/d37e632395c3a7f2b6d5a2234ac913f70ee48827/__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, ...
import sys sys.exit(0)
pyglet.app.exit()
def on_draw( self ): """Callback to draw the window. It propagates the event to the running scene.""" self.window.clear()
a148c879151c6a657bea383aa66f560f23be43a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/a148c879151c6a657bea383aa66f560f23be43a3/director.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9446, 12, 365, 262, 30, 3536, 2428, 358, 3724, 326, 2742, 18, 2597, 9619, 815, 326, 871, 358, 326, 3549, 9065, 12123, 225, 365, 18, 5668, 18, 8507, 1435, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9446, 12, 365, 262, 30, 3536, 2428, 358, 3724, 326, 2742, 18, 2597, 9619, 815, 326, 871, 358, 326, 3549, 9065, 12123, 225, 365, 18, 5668, 18, 8507, 1435, 2, -100, -100, -100, ...
def __init__(self, ct, base_ring=ZZ, prefix=None, cache=False): self.cartan_type = cartan_type.CartanType(ct)
ct = cartan_type.CartanType(ct) return cache_wcr(ct, base_ring=base_ring, prefix=prefix, cache=cache) class WeylCharacterRing_class(Algebra): def __init__(self, ct, base_ring, prefix, cache): """ EXAMPLES: sage: R = WeylCharacterRing(['A',3]) sage: R == loads(dumps(R)) True """ sage.structure.parent_base.ParentWithBas...
def __init__(self, ct, base_ring=ZZ, prefix=None, cache=False): self.cartan_type = cartan_type.CartanType(ct) self._base_ring = base_ring self._lattice = RootSystem(self.cartan_type).ambient_lattice() self._origin = tuple(self._lattice._free_module(0)) self.VS = VectorSpace(QQ, self._lattice.n) if prefix == None: prefi...
da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5691, 273, 7035, 304, 67, 723, 18, 13006, 304, 559, 12, 299, 13, 327, 1247, 67, 91, 3353, 12, 299, 16, 1026, 67, 8022, 33, 1969, 67, 8022, 16, 1633, 33, 3239, 16, 1247, 33, 2493, 13, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5691, 273, 7035, 304, 67, 723, 18, 13006, 304, 559, 12, 299, 13, 327, 1247, 67, 91, 3353, 12, 299, 16, 1026, 67, 8022, 33, 1969, 67, 8022, 16, 1633, 33, 3239, 16, 1247, 33, 2493, 13, 225...
if hasattr(__import__(os.name), "fork"): def test_fork(self):
def test_fork(self): import os if hasattr(__import__(os.name), "fork"):
def test_strerror(self): assert isinstance(self.posix.strerror(0), str) assert isinstance(self.posix.strerror(1), str)
d508770bdda83b8d974e863aeeb18bd53ffae4d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d508770bdda83b8d974e863aeeb18bd53ffae4d3/test_posix2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 1636, 12, 2890, 4672, 1815, 1549, 12, 2890, 18, 24463, 18, 701, 1636, 12, 20, 3631, 609, 13, 1815, 1549, 12, 2890, 18, 24463, 18, 701, 1636, 12, 21, 3631, 609, 13, 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, 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, 701, 1636, 12, 2890, 4672, 1815, 1549, 12, 2890, 18, 24463, 18, 701, 1636, 12, 20, 3631, 609, 13, 1815, 1549, 12, 2890, 18, 24463, 18, 701, 1636, 12, 21, 3631, 609, 13, 2, ...
if not self.is_on_page(pages.AccountsList):
if not self.is_on_page(pages.AccountsList) or self.page.is_account_page():
def get_accounts_list(self): if not self.is_on_page(pages.AccountsList): self.home() return self.page.get_list()
be990c150fd0a2174392409821a1b4de16084bcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/be990c150fd0a2174392409821a1b4de16084bcb/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13739, 67, 1098, 12, 2890, 4672, 309, 486, 365, 18, 291, 67, 265, 67, 2433, 12, 7267, 18, 13971, 682, 13, 578, 365, 18, 2433, 18, 291, 67, 4631, 67, 2433, 13332, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13739, 67, 1098, 12, 2890, 4672, 309, 486, 365, 18, 291, 67, 265, 67, 2433, 12, 7267, 18, 13971, 682, 13, 578, 365, 18, 2433, 18, 291, 67, 4631, 67, 2433, 13332, 365, 18, ...
if a.ndim > 1:
if a.ndim == 1: batch = None elif a.ndim == 2:
def fft(a, out=None): """ Do a 1D forward FFT. """ a = np.ascontiguousarray(a) if np.issubdtype(a.dtype, np.complexfloating): a = a.astype(np.csingle) type_ = cufft.CUFFT_C2C ct = c_complex else: a = a.astype(np.single) type_ = cufft.CUFFT_R2C ct = c_float nx = a.shape[-1] if a.ndim > 1: # Batch up many 1D transforms. ...
b96e7d995ec07c6d6b53d44174d685548702c7e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4539/b96e7d995ec07c6d6b53d44174d685548702c7e4/cufft_demo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15741, 12, 69, 16, 596, 33, 7036, 4672, 3536, 2256, 279, 404, 40, 5104, 16816, 18, 3536, 279, 273, 1130, 18, 345, 30611, 1126, 12, 69, 13, 309, 1130, 18, 1054, 373, 8972, 12, 69, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15741, 12, 69, 16, 596, 33, 7036, 4672, 3536, 2256, 279, 404, 40, 5104, 16816, 18, 3536, 279, 273, 1130, 18, 345, 30611, 1126, 12, 69, 13, 309, 1130, 18, 1054, 373, 8972, 12, 69, 18,...
sage:
def zero_subvariety(self): """ Return the zero subvariety of self. EXAMPLES: sage: J = J0(37) sage: J.zero_subvariety() Abelian variety factor of dimension 0 of J0(37) sage: J.zero_subvariety().level() 37 sage: sage: J.zero_subvariety().newform_level() 1 """ try: return self.__zero_subvariety except AttributeError: la...
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3634, 67, 1717, 4093, 14369, 12, 2890, 4672, 3536, 2000, 326, 3634, 720, 4093, 14369, 434, 365, 18, 225, 5675, 8900, 11386, 30, 804, 273, 804, 20, 12, 6418, 13, 804, 18, 7124, 67, 1717...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3634, 67, 1717, 4093, 14369, 12, 2890, 4672, 3536, 2000, 326, 3634, 720, 4093, 14369, 434, 365, 18, 225, 5675, 8900, 11386, 30, 804, 273, 804, 20, 12, 6418, 13, 804, 18, 7124, 67, 1717...
if storage_map[r][0] is not None: if r.owner is not None: print r, storage_map[r], type(storage_map[r]), id(storage_map[r]) assert r.owner is None
if (r.owner is None): if (storage_map[r][0] is None): raise Exception('Missing input', r) if not r.type.is_valid_value(storage_map[r][0]): raise InvalidValueError(r, storage_map[r][0])
def f(): for x in no_recycling: x[0] = None
209ec94b3abf24a4e76bcc3bde2d41d013ad2897 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/209ec94b3abf24a4e76bcc3bde2d41d013ad2897/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 364, 619, 316, 1158, 67, 266, 2431, 830, 310, 30, 619, 63, 20, 65, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 364, 619, 316, 1158, 67, 266, 2431, 830, 310, 30, 619, 63, 20, 65, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if pattern[0] == '-': args.append('--')
if pattern and pattern[0] == '-': args.append('--')
def search(self, pattern, index, stopindex=None, forwards=None, backwards=None, exact=None, regexp=None, nocase=None, count=None, elide=None): """Search PATTERN beginning from INDEX until STOPINDEX. Return the index of the first character of a match or an empty string.""" args = [self._w, 'search'] if forwards: args.ap...
e54f0c7080f0dd07bc279740f9eb92fb78b468ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/e54f0c7080f0dd07bc279740f9eb92fb78b468ff/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 1936, 16, 770, 16, 2132, 1615, 33, 7036, 16, 24578, 33, 7036, 16, 12727, 33, 7036, 16, 5565, 33, 7036, 16, 7195, 33, 7036, 16, 30601, 448, 33, 7036, 16, 1056, 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, 1623, 12, 2890, 16, 1936, 16, 770, 16, 2132, 1615, 33, 7036, 16, 24578, 33, 7036, 16, 12727, 33, 7036, 16, 5565, 33, 7036, 16, 7195, 33, 7036, 16, 30601, 448, 33, 7036, 16, 1056, 33,...
if os.path.isDir(fn):
if os.path.isdir(fn):
def clear(self): for fn in os.listdir(self.location): if os.path.isDir(fn): continue if fn.startswith(self.prefix) and fn.endswith(self.suffix): log.debug('deleted: %s', fn) os.remove(fn)
98bba3898dc982be960d2ee76257503da5cbb4f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/98bba3898dc982be960d2ee76257503da5cbb4f4/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 12, 2890, 4672, 364, 2295, 316, 1140, 18, 1098, 1214, 12, 2890, 18, 3562, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 4293, 4672, 1324, 309, 2295, 18, 17514, 1918, 12, 2890, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 12, 2890, 4672, 364, 2295, 316, 1140, 18, 1098, 1214, 12, 2890, 18, 3562, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 4293, 4672, 1324, 309, 2295, 18, 17514, 1918, 12, 2890, 18,...
Return type of the last xref obtained by [RD]first/next[B0] functions.
Return type of the last xref obtained by [RD]first/next[B0] functions.
def XrefType(): """ Return type of the last xref obtained by [RD]first/next[B0] functions. @return: constants fl_* or dr_* """ raise DeprecatedIDCError, "use XrefsFrom() XrefsTo() from idautils instead."
507ea15b7a89e88e413b47a9fe03b571d956c14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/507ea15b7a89e88e413b47a9fe03b571d956c14a/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1139, 1734, 559, 13332, 3536, 2000, 618, 434, 326, 1142, 15187, 12700, 635, 306, 20403, 65, 3645, 19, 4285, 63, 38, 20, 65, 4186, 18, 225, 632, 2463, 30, 6810, 1183, 67, 14, 578, 5081,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1139, 1734, 559, 13332, 3536, 2000, 618, 434, 326, 1142, 15187, 12700, 635, 306, 20403, 65, 3645, 19, 4285, 63, 38, 20, 65, 4186, 18, 225, 632, 2463, 30, 6810, 1183, 67, 14, 578, 5081,...
'forms': forms,
'user_form': user_form, 'password_form': password_form,
def user_profile(request): if request.method == 'POST': user_form = UserForm(request.POST,instance=request.user) password_form = PasswordChangeForm(request.user,request.POST) if user_form.is_valid() and password_form.is_valid(): user_form.save() password_form.save() return HttpResponseRedirect(reverse('reviewapp.dashb...
81e12a530d4ce492bbcfbfc3495c35070764a8e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/81e12a530d4ce492bbcfbfc3495c35070764a8e1/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 5040, 12, 2293, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 729, 67, 687, 273, 2177, 1204, 12, 2293, 18, 3798, 16, 1336, 33, 2293, 18, 1355, 13, 2201, 67, 687, 273, 9234...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 5040, 12, 2293, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 729, 67, 687, 273, 2177, 1204, 12, 2293, 18, 3798, 16, 1336, 33, 2293, 18, 1355, 13, 2201, 67, 687, 273, 9234...
>>> hasher = pyradiogatun.new(32)
>>> hasher = pyradiogatun.new(wl=32) >>> hasher.update('Santa Barbara, California') >>> hasher.hexdigest(512) '041666388ef9655d48996a66dada1193d6646012a7b25a24fb10e6075cf0fc54a162949f4022531dbb6f66b64c3579df49f0f3af5951df9d68af310f2703b06d' radiogatun[16] --------------- >>> hasher = pyradiogatun.new(wl=16)
def new(wl=64,arg=None): """Return a new RadioGatun hash object wl = wordlength (in bits) of the RadioGatun hash method between 1 and 64 (default = 64) arg = if present, the method call update(arg) is made EXAMPLES: (testvectors from: http://radiogatun.noekeon.org/) ========== >>> import pyradiogatun radiogatun[64...
7b516f8fe1f3a2988cacd3343c2fa51aae031fd3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/7b516f8fe1f3a2988cacd3343c2fa51aae031fd3/pyradiogatun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 21504, 33, 1105, 16, 3175, 33, 7036, 4672, 3536, 990, 279, 394, 31552, 43, 270, 318, 1651, 733, 225, 19564, 225, 273, 2076, 2469, 261, 267, 4125, 13, 434, 326, 31552, 43, 270,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 21504, 33, 1105, 16, 3175, 33, 7036, 4672, 3536, 990, 279, 394, 31552, 43, 270, 318, 1651, 733, 225, 19564, 225, 273, 2076, 2469, 261, 267, 4125, 13, 434, 326, 31552, 43, 270,...
return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
if self._fpointer is None: return '%s(fpointer=None, finalise=%d)' % (self.__class__.__name__, self._finalise) else: return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
def __repr__(self): return '%s(fpointer=0x%x, finalise=%d)' % (self.__class__.__name__, self._fpointer, self._finalise)
84d6809ac63d59a2020e611003c64d23122fd2c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/84d6809ac63d59a2020e611003c64d23122fd2c6/oo_fortran.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 12, 7944, 2480, 33, 20, 92, 9, 92, 16, 727, 784, 5095, 72, 2506, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 6315, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 1995, 87, 12, 7944, 2480, 33, 20, 92, 9, 92, 16, 727, 784, 5095, 72, 2506, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 6315, 79...
removed = unsetpkg(packages, pid=args.pid)
removed = unsetpkg(packages, pid=args.pid, recurse=args.recurse)
def f(): if args.all: packages = list_active_packages(pid=args.pid) else: packages = args.packages removed = unsetpkg(packages, pid=args.pid) changed = set([]) for package in removed: changed.update(package.environ.keys()) return sorted(changed)
b0d601c6503d24853799ea87031f53a9a5173822 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14112/b0d601c6503d24853799ea87031f53a9a5173822/setpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 309, 833, 18, 454, 30, 5907, 273, 666, 67, 3535, 67, 10308, 12, 6610, 33, 1968, 18, 6610, 13, 469, 30, 5907, 273, 833, 18, 10308, 3723, 273, 2646, 10657, 12, 10308, 16, 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, 284, 13332, 309, 833, 18, 454, 30, 5907, 273, 666, 67, 3535, 67, 10308, 12, 6610, 33, 1968, 18, 6610, 13, 469, 30, 5907, 273, 833, 18, 10308, 3723, 273, 2646, 10657, 12, 10308, 16, 4...
def to_html(tree, indent=0, seclevel=0, **kwargs): """ Given the DOM tree for an epytext string (as returned by C{parse()}), return a string encoding it in HTML. This string does not include C{<HTML>} and C{</HTML>} tags. todo: doesn't honor ordered list bullets. """ if isinstance(tree, Text): return tree.toxml() if...
def to_epytext(tree, indent=0, seclevel=0, **kwargs): """ Convert a DOM tree encoding epytext back to an epytext string. This is the inverse operation from L{parse}. I.e., assuming there are no errors, the following is true: - C{parse(to_epytext(tree)) == tree} The inverse is true, except that whitespace and line wra...
def to_html(tree, indent=0, seclevel=0, **kwargs): """ Given the DOM tree for an epytext string (as returned by C{parse()}), return a string encoding it in HTML. This string does not include C{<HTML>} and C{</HTML>} tags. todo: doesn't honor ordered list bullets. """ if isinstance(tree, Text): return tree.toxml() if...
26f654ea66befeec31f7f9ebcebabc7d09f33070 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/26f654ea66befeec31f7f9ebcebabc7d09f33070/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 881, 93, 955, 12, 3413, 16, 3504, 33, 20, 16, 1428, 2815, 33, 20, 16, 2826, 4333, 4672, 3536, 4037, 279, 4703, 2151, 2688, 425, 2074, 955, 1473, 358, 392, 425, 2074, 955, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 881, 93, 955, 12, 3413, 16, 3504, 33, 20, 16, 1428, 2815, 33, 20, 16, 2826, 4333, 4672, 3536, 4037, 279, 4703, 2151, 2688, 425, 2074, 955, 1473, 358, 392, 425, 2074, 955, 53...
raise RuntimeError("Ratios from minimum and maximum ctibs do not "\ +"bracket ratio. Increase the maximum ctib "
raise RuntimeError("Ratios from minimum and maximum cwdbs do not "\ +"bracket ratio. Increase the maximum cwdb "
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...
36badd65c251eeb079d3bfab833aabc1dc8ebc9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/36badd65c251eeb079d3bfab833aabc1dc8ebc9b/find_ldb.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...
debug('joining ack handler') ack_handler.join(1e100)
def _terminate_pool(cls, taskqueue, inqueue, outqueue, ackqueue, pool, ack_handler, worker_handler, task_handler, result_handler, cache, timeout_handler):
409811c9c25cd86bffb6fbec5abbd7fce80b765f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/409811c9c25cd86bffb6fbec5abbd7fce80b765f/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30017, 67, 6011, 12, 6429, 16, 1562, 4000, 16, 316, 4000, 16, 596, 4000, 16, 8479, 4000, 16, 2845, 16, 8479, 67, 4176, 16, 4322, 67, 4176, 16, 1562, 67, 4176, 16, 563, 67, 4176,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 30017, 67, 6011, 12, 6429, 16, 1562, 4000, 16, 316, 4000, 16, 596, 4000, 16, 8479, 4000, 16, 2845, 16, 8479, 67, 4176, 16, 4322, 67, 4176, 16, 1562, 67, 4176, 16, 563, 67, 4176,...
for whitespace in whitespace_string: format = format.replace(whitespace, r'\s*')
whitespace_replacement = re_compile('\s+') format = whitespace_replacement.sub('\s*', format)
def pattern(self, format): """Return re pattern for the format string.""" processed_format = '' for whitespace in whitespace_string: format = format.replace(whitespace, r'\s*') while format.find('%') != -1: directive_index = format.index('%')+1 processed_format = "%s%s%s" % (processed_format, format[:directive_index-1]...
875b7cf3fe9703b594ee475b209ce5789178496c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/875b7cf3fe9703b594ee475b209ce5789178496c/_strptime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1936, 12, 2890, 16, 740, 4672, 3536, 990, 283, 1936, 364, 326, 740, 533, 12123, 5204, 67, 2139, 273, 875, 7983, 67, 24394, 273, 283, 67, 11100, 2668, 64, 87, 15, 6134, 740, 273, 7983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1936, 12, 2890, 16, 740, 4672, 3536, 990, 283, 1936, 364, 326, 740, 533, 12123, 5204, 67, 2139, 273, 875, 7983, 67, 24394, 273, 283, 67, 11100, 2668, 64, 87, 15, 6134, 740, 273, 7983, ...
print "Cannot load sound:", wav
print "Cannot load sound:", fullname
def play(self): pass
4e3f9c96e03b33960522c9584c79871f5aeb9685 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4035/4e3f9c96e03b33960522c9584c79871f5aeb9685/bambam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if(thread_tag){
if(thread_tag.length){
def resources(self): for r in super(Thread, self).resources(): yield r for w in self.widgets.itervalues(): for r in w.resources(): yield r yield ew.JSScript(''' $(document).ready(function(){ var thread_reply = $('a.sidebar_thread_reply'); var thread_tag = $('a.sidebar_thread_tag'); var thread_spam = $('a.sidebar_thread...
aab93a4da9b0255ae119bc833bbc0cf057d26076 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/aab93a4da9b0255ae119bc833bbc0cf057d26076/discuss.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2703, 12, 2890, 4672, 364, 436, 316, 2240, 12, 3830, 16, 365, 2934, 4683, 13332, 2824, 436, 364, 341, 316, 365, 18, 18148, 18, 2165, 2372, 13332, 364, 436, 316, 341, 18, 4683, 13332, 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, 2703, 12, 2890, 4672, 364, 436, 316, 2240, 12, 3830, 16, 365, 2934, 4683, 13332, 2824, 436, 364, 341, 316, 365, 18, 18148, 18, 2165, 2372, 13332, 364, 436, 316, 341, 18, 4683, 13332, 2...
if newSpeed in ["0","1","2","3","4","5","6","7","8","9"]:
if newSpeed in [0,1,2,3,4,5,6,7,8,9]:
def changeSpeed(newSpeed): global currentSpeed if newSpeed in ["0","1","2","3","4","5","6","7","8","9"]: msg = "Changing speed to %s" % newSpeed commandOut(newSpeed) currentSpeed=newSpeed else: msg = "Speed %s is out of range [0-9]" % newSpeed speak(msg)
d0a63120870abe1fdff36c89193509733e87211f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5143/d0a63120870abe1fdff36c89193509733e87211f/cellbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 16562, 12, 2704, 16562, 4672, 2552, 783, 16562, 309, 394, 16562, 316, 306, 20, 16, 21, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 16, 28, 16, 29, 14542, 1234, 273, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 16562, 12, 2704, 16562, 4672, 2552, 783, 16562, 309, 394, 16562, 316, 306, 20, 16, 21, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 16, 28, 16, 29, 14542, 1234, 273, 315, ...
bounds = [(),(), ()] delta = [0,0]
tilesbounds = [(),(), ()]
def calculateTilesAuto( points ):
2b0ae4793cca6985c2bb04f17293a2fac4b6ab13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/2b0ae4793cca6985c2bb04f17293a2fac4b6ab13/gpx2png.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 27669, 4965, 12, 3143, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4604, 27669, 4965, 12, 3143, 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, -10...
def gendelta(delta): i = 0 result = [] while i < len(delta): start = delta[i][2] end = delta[i][3] l = delta[i][4] if l == None: l = "" while i < len(delta) - 1 and start <= delta[i+1][2] \ and end >= delta[i+1][2]: if delta[i+1][3] > end: end = delta[i+1][3] if delta[i+1][4]: l += delta[i+1][4]
def manifestsearch(m, s, lo=0, hi=None): def advance(i, c): while i < lenm and m[i] != c:
def add(self, map, flags, transaction, link, p1=None, p2=None, changed=None): # directly generate the mdiff delta from the data collected during # the bisect loop below def gendelta(delta): i = 0 result = [] while i < len(delta): start = delta[i][2] end = delta[i][3] l = delta[i][4] if l == None: l = "" while i < len(d...
76ca12fee2b5685766b26502ce1628cbacaeb661 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/76ca12fee2b5685766b26502ce1628cbacaeb661/manifest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 852, 16, 2943, 16, 2492, 16, 1692, 16, 293, 21, 33, 7036, 16, 293, 22, 33, 7036, 16, 3550, 33, 7036, 4672, 468, 5122, 2103, 326, 3481, 3048, 3622, 628, 326, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 852, 16, 2943, 16, 2492, 16, 1692, 16, 293, 21, 33, 7036, 16, 293, 22, 33, 7036, 16, 3550, 33, 7036, 4672, 468, 5122, 2103, 326, 3481, 3048, 3622, 628, 326, 501, ...
bounded_func = MethodType(func, self.breaker, type(self.breaker)) setattr(self.breaker, func_name, bounded_func)
setattr(obj, func.__name__, MethodType(func, self.breaker))
def _mock_function(self, func_name, func): """ Replaces a bounded function in `self.breaker` by another. """ bounded_func = MethodType(func, self.breaker, type(self.breaker)) setattr(self.breaker, func_name, bounded_func)
3b1a996baa6521ecf03da424911b23427653caed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14452/3b1a996baa6521ecf03da424911b23427653caed/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22851, 67, 915, 12, 2890, 16, 1326, 67, 529, 16, 1326, 4672, 3536, 868, 11350, 279, 28079, 445, 316, 1375, 2890, 18, 8820, 264, 68, 635, 4042, 18, 3536, 28079, 67, 644, 273, 2985,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22851, 67, 915, 12, 2890, 16, 1326, 67, 529, 16, 1326, 4672, 3536, 868, 11350, 279, 28079, 445, 316, 1375, 2890, 18, 8820, 264, 68, 635, 4042, 18, 3536, 28079, 67, 644, 273, 2985,...
FT = 200
continue
def get_experiment_id2accession_id2FT(self, experiment_id2data, experiment_id2accession_id2reading_ls): """ 2008-03-01 move the average/stdev operation to output_experiment_id2accession_id2FT() 2008-02-20 """ sys.stderr.write("Getting experiment_id2accession_id2FT ...\n") experiment_id2accession_id2FT = {} for experime...
e6897ae45631832ceb92bfc9db5ab27edc82a829 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/e6897ae45631832ceb92bfc9db5ab27edc82a829/ProcessPhenotype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18142, 67, 350, 22, 3860, 285, 67, 350, 22, 4464, 12, 2890, 16, 8724, 67, 350, 22, 892, 16, 8724, 67, 350, 22, 3860, 285, 67, 350, 22, 21803, 67, 3251, 4672, 3536, 4044, 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, 336, 67, 18142, 67, 350, 22, 3860, 285, 67, 350, 22, 4464, 12, 2890, 16, 8724, 67, 350, 22, 892, 16, 8724, 67, 350, 22, 3860, 285, 67, 350, 22, 21803, 67, 3251, 4672, 3536, 4044, 2...
if isinstance(x, types.StringTypes):
if len(x) == 1:
def distinctAttribute(self, arg): """ Find distinct values for an attribute. Corresponds to the DISTINCT method in the LSCsegFindServer RPC protocol.
ffc89bcea9118e5d914de1e69e9d78d9f2bd3a09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/ffc89bcea9118e5d914de1e69e9d78d9f2bd3a09/LSCsegFindServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10217, 1499, 12, 2890, 16, 1501, 4672, 3536, 4163, 10217, 924, 364, 392, 1566, 18, 9557, 455, 12545, 358, 326, 23286, 707, 316, 326, 511, 2312, 5680, 3125, 2081, 8295, 1771, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10217, 1499, 12, 2890, 16, 1501, 4672, 3536, 4163, 10217, 924, 364, 392, 1566, 18, 9557, 455, 12545, 358, 326, 23286, 707, 316, 326, 511, 2312, 5680, 3125, 2081, 8295, 1771, 18, 2, -100,...
XmlData = map(lambda x: re.sub(r'(<\s*(?:[^:]*:)?ReportableVOName\s*>\s*).*?(\s*<\s*/)',
xmlData = map(lambda x: re.sub(r'(<\s*(?:[^:]*:)?ReportableVOName\s*>\s*).*?(\s*<\s*/)',
def SendXMLFiles(fileDir, removeOriginal = False): global Config path = os.path.join(fileDir, "*") files = glob.glob(path) probeNamePattern = re.compile(r'<\s*(?:[^:]*:)?ProbeName\s*>') siteNamePattern = re.compile(r'<\s*(?:[^:]*:)?SiteName\s*>') endUsageRecordPattern = re.compile(r'<\s*/\s*(?:[^:]*:)?UsageRecord\s*>...
e8a55e85dabbdfea821b70b7ae475063f602189a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/e8a55e85dabbdfea821b70b7ae475063f602189a/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 4201, 2697, 12, 768, 1621, 16, 1206, 8176, 273, 1083, 4672, 2552, 1903, 225, 589, 273, 1140, 18, 803, 18, 5701, 12, 768, 1621, 16, 10971, 13, 1390, 273, 4715, 18, 10581, 12, 803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 4201, 2697, 12, 768, 1621, 16, 1206, 8176, 273, 1083, 4672, 2552, 1903, 225, 589, 273, 1140, 18, 803, 18, 5701, 12, 768, 1621, 16, 10971, 13, 1390, 273, 4715, 18, 10581, 12, 803,...
entries = cleanURLs(indexUrls)
entries = findURLs(indexUrls)
def processEntries(entries, name): done = [] for entry in entries: if ((entry not in proscribedEntries) and (entry not in done) and (entry != name)): outputFile.write(name + " -> " + entry + "\n") done.append(entry)
67ee0675ca67ffc57390b47eb704f3c8a3c28ada /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11199/67ee0675ca67ffc57390b47eb704f3c8a3c28ada/lexiconGrapher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 5400, 12, 8219, 16, 508, 4672, 2731, 273, 5378, 364, 1241, 316, 3222, 30, 309, 14015, 4099, 486, 316, 450, 15802, 5400, 13, 471, 261, 4099, 486, 316, 2731, 13, 471, 225, 261, 409...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 5400, 12, 8219, 16, 508, 4672, 2731, 273, 5378, 364, 1241, 316, 3222, 30, 309, 14015, 4099, 486, 316, 450, 15802, 5400, 13, 471, 261, 4099, 486, 316, 2731, 13, 471, 225, 261, 409...
avgdist.append(0.0) avgdiststderr.append(0.0)
avgdist.append(avgDist) avgdiststderr.append(avgDistStdErr)
def writeToFile(self, filename, dataUnit, timepoint): """ write the objects from a given timepoint to file """ settings = dataUnit.getSettings() settings.set("StatisticsFile", filename)
0291e4740f7b79883902a89fc31d6f97e7c67f93 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2877/0291e4740f7b79883902a89fc31d6f97e7c67f93/TestData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12870, 812, 12, 2890, 16, 1544, 16, 501, 2802, 16, 813, 1153, 4672, 3536, 1045, 326, 2184, 628, 279, 864, 813, 1153, 358, 585, 3536, 1947, 273, 501, 2802, 18, 588, 2628, 1435, 1947, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12870, 812, 12, 2890, 16, 1544, 16, 501, 2802, 16, 813, 1153, 4672, 3536, 1045, 326, 2184, 628, 279, 864, 813, 1153, 358, 585, 3536, 1947, 273, 501, 2802, 18, 588, 2628, 1435, 1947, 18...
recipient_table[get_email_address_for_user(recipient)] = 1
recipients.add(get_email_address_for_user(recipient))
def send_review_mail(user, review_request, subject, in_reply_to, extra_recipients, template_name, context={}): """ Formats and sends an e-mail out with the current domain and review request being added to the template context. Returns the resulting message ID. """ current_site = Site.objects.get(pk=settings.SITE_ID) f...
abc32ae4339bcfd19962ad7ab9f4a882ffc53635 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/abc32ae4339bcfd19962ad7ab9f4a882ffc53635/email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 16041, 67, 4408, 12, 1355, 16, 10725, 67, 2293, 16, 3221, 16, 316, 67, 10629, 67, 869, 16, 2870, 67, 27925, 16, 1542, 67, 529, 16, 819, 12938, 4672, 3536, 2748, 2323, 471, ...
itself. The callback will be passed exception that was raised (and args and kwargs if present).
itself. The callback will be passed the exception that was raised (and args and kwargs if present).
def _(st): return st
f696723c2d26f554cc641be0d28757f1ea18bc64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7001/f696723c2d26f554cc641be0d28757f1ea18bc64/mirror.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 334, 4672, 327, 384, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 334, 4672, 327, 384, 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,...
self.out_params.append( t )
self.out_params.append( t )
def ParseLoadedCode(self): import xml.dom.minidom as mdom parsed = mdom.parse(self.filename) # TODO: exception handling node = parsed.getElementsByTagName("node")[0] self.name = self.SafeGetXMLAttribute(node, "name") logging.info(self.name) self.author = self.SafeGetXMLAttribute(node, "author") logging.info(self.auth...
6bd85cf6e2a55bdf19f45d978ce7eed9e77df9b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5435/6bd85cf6e2a55bdf19f45d978ce7eed9e77df9b3/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2884, 8835, 1085, 12, 2890, 4672, 1930, 2025, 18, 9859, 18, 1154, 350, 362, 487, 3481, 362, 2707, 273, 3481, 362, 18, 2670, 12, 2890, 18, 3459, 13, 468, 2660, 30, 1520, 5057, 756, 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, 2884, 8835, 1085, 12, 2890, 4672, 1930, 2025, 18, 9859, 18, 1154, 350, 362, 487, 3481, 362, 2707, 273, 3481, 362, 18, 2670, 12, 2890, 18, 3459, 13, 468, 2660, 30, 1520, 5057, 756, 273,...
FILE.write('''"reverse ''') FILE.write("%s" % BUCKETTYPELIST[BUCKETTYPE.val-1]) FILE.write('''"''') FILE.write("\n")
FILE.write("\"reverse %s\"\n" % BUCKETTYPELIST[BUCKETTYPE.val-1])
def export_output(): print "o exporting output details..." FILE.write("image {\n") FILE.write("\tresolution %d %d\n" % (IM_WIDTH, IM_HEIGHT)) FILE.write("\taa %s %s\n" % (MINAA.val, MAXAA.val)) FILE.write("\tsamples %s\n" % AASAMPLES.val) FILE.write("\tfilter %s\n" % IMGFILTERLIST[IMGFILTER.val-1]) if AAJITTER == 1: FI...
bc18952df9ac3a895120d99039aa8acae08ab617 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/bc18952df9ac3a895120d99039aa8acae08ab617/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 2844, 13332, 1172, 315, 83, 3359, 310, 876, 3189, 7070, 7527, 18, 2626, 2932, 2730, 18890, 82, 7923, 7527, 18, 2626, 31458, 88, 19182, 738, 72, 738, 72, 64, 82, 6, 738, 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, 3359, 67, 2844, 13332, 1172, 315, 83, 3359, 310, 876, 3189, 7070, 7527, 18, 2626, 2932, 2730, 18890, 82, 7923, 7527, 18, 2626, 31458, 88, 19182, 738, 72, 738, 72, 64, 82, 6, 738, 261, ...
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None):
def main(tests=None, testdir=None, verbose=0, quiet=False, generate=False, exclude=False, single=False, randomize=False, fromfile=None, findleaks=False, use_resources=None, trace=False):
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdi...
3feaba6409bd3f4dce920f7a4f22e9e9361f6c5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3feaba6409bd3f4dce920f7a4f22e9e9361f6c5f/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 8381, 16, 2103, 33, 8381, 16, 4433, 33, 8381, 16, 2202, 33, 8381, 16, 2744, 554, 33, 8381, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 8381, 16, 2103, 33, 8381, 16, 4433, 33, 8381, 16, 2202, 33, 8381, 16, 2744, 554, 33, 8381, 16, ...
result = space.call_function(pop, w(1), w(44))
result = space.call_function(pop, w("1"), w(44))
def deepwrap(lp): return [[w(a),w(b)] for a,b in lp]
82b5d0f837decdacd0104fa4cf833b8605fd5f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/82b5d0f837decdacd0104fa4cf833b8605fd5f28/test_dictobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4608, 4113, 12, 9953, 4672, 327, 12167, 91, 12, 69, 3631, 91, 12, 70, 25887, 364, 279, 16, 70, 316, 12423, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4608, 4113, 12, 9953, 4672, 327, 12167, 91, 12, 69, 3631, 91, 12, 70, 25887, 364, 279, 16, 70, 316, 12423, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def get_tag(self):
def get_default_tag(self): """Returns the opening tag (without brackets). Usage: element.get_default_tag() [Grouped under "Rendering methods"] """
def get_tag(self): output = '%s' % (self.name) for key, value in self.attributes.iteritems(): output += ' %s="%s"' % (key, value) return output
31746b2c12abc94e701d932b47560a36d5494b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10890/31746b2c12abc94e701d932b47560a36d5494b1d/sparkup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1886, 67, 2692, 12, 2890, 4672, 3536, 1356, 326, 10890, 1047, 261, 13299, 15597, 2934, 225, 10858, 30, 930, 18, 588, 67, 1886, 67, 2692, 1435, 225, 306, 24125, 3613, 315, 14261,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 67, 2692, 12, 2890, 4672, 3536, 1356, 326, 10890, 1047, 261, 13299, 15597, 2934, 225, 10858, 30, 930, 18, 588, 67, 1886, 67, 2692, 1435, 225, 306, 24125, 3613, 315, 14261,...
elif (self.infeed or self.insource) and (not self.intextinput) and (not self.inimage):
elif (self.infeed or self.insource):
def pop(self, element, stripWhitespace=1): if not self.elementstack: return if self.elementstack[-1][0] != element: return element, expectingText, pieces = self.elementstack.pop() output = ''.join(pieces) if stripWhitespace: output = output.strip() if not expectingText: return output
44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 12, 2890, 16, 930, 16, 2569, 9431, 33, 21, 4672, 309, 486, 365, 18, 2956, 3772, 30, 327, 309, 365, 18, 2956, 3772, 18919, 21, 6362, 20, 65, 480, 930, 30, 327, 225, 930, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1843, 12, 2890, 16, 930, 16, 2569, 9431, 33, 21, 4672, 309, 486, 365, 18, 2956, 3772, 30, 327, 309, 365, 18, 2956, 3772, 18919, 21, 6362, 20, 65, 480, 930, 30, 327, 225, 930, 16, 1...
self.fp.write("class %s(aetools.NProperty):\n" % pname) self.fp.write('\t"""%s - %s """\n' % (name, what[1])) self.fp.write("\twhich = %s\n" % `code`) self.fp.write("\twant = %s\n" % `what[0]`) self.propnames[pname] = code self.propcodes[code] = pname
if self.fp: self.fp.write("class %s(aetools.NProperty):\n" % pname) self.fp.write('\t"""%s - %s """\n' % (name, what[1])) self.fp.write("\twhich = %s\n" % `code`) self.fp.write("\twant = %s\n" % `what[0]`) self.namemappers[0].addnamecode('property', pname, code)
def compileproperty(self, prop): [name, code, what] = prop if code == 'c@#!': # Something silly with plurals. Skip it. return pname = identify(name) if self.propcodes.has_key(code): self.fp.write("# repeated property %s %s\n"%(pname, what[1])) else: self.fp.write("class %s(aetools.NProperty):\n" % pname) self.fp.write(...
b18e37723e6f3e7fe6bae03f14e954721df23eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b18e37723e6f3e7fe6bae03f14e954721df23eaf/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 4468, 12, 2890, 16, 2270, 4672, 306, 529, 16, 981, 16, 4121, 65, 273, 2270, 309, 981, 422, 296, 71, 36, 7, 5, 4278, 468, 29116, 17714, 715, 598, 21211, 18, 6611, 518, 18, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 4468, 12, 2890, 16, 2270, 4672, 306, 529, 16, 981, 16, 4121, 65, 273, 2270, 309, 981, 422, 296, 71, 36, 7, 5, 4278, 468, 29116, 17714, 715, 598, 21211, 18, 6611, 518, 18, 327, ...
SIGNAL("stateChanged(int)"), self._enableAspectRatioSpinBox)
SIGNAL("stateChanged(int)"), self._enableAspectRatioSpinBox)
def connect_or_disconnect_signals(self, isConnect): """ Connect or disconnect widget signals sent to their slot methods. This can be overridden in subclasses. By default it does nothing. @param isConnect: If True the widget will send the signals to the slot method. @type isConnect: boolean """ #TODO: Fix for bug: When...
6ca1728879e65f379512b44ee2623ad89c7a92ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/6ca1728879e65f379512b44ee2623ad89c7a92ac/PlanePropertyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 67, 280, 67, 20177, 67, 29659, 12, 2890, 16, 353, 5215, 4672, 3536, 8289, 578, 9479, 3604, 11505, 3271, 358, 3675, 4694, 2590, 18, 1220, 848, 506, 11000, 316, 15320, 18, 2525, 805,...
@neediface
@neediface(False)
def FlushRoutes(self): """ Flush network routes for this device. """ if self.ip_cmd and self.flush_tool in [misc.AUTO, misc.IP]: cmds = ['%s route flush dev %s' % (self.ip_cmd, self.iface)] elif self.route_cmd and self.flush_tool in [misc.AUTO, misc.ROUTE]: cmds = ['%s del dev %s' % (self.route_cmd, self.iface)] else: ...
f79067c692f0f9e17f472e0b2aa153a3eb78a51f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/f79067c692f0f9e17f472e0b2aa153a3eb78a51f/wnettools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11624, 8110, 12, 2890, 4672, 3536, 11624, 2483, 4912, 364, 333, 2346, 18, 3536, 309, 365, 18, 625, 67, 4172, 471, 365, 18, 11330, 67, 6738, 316, 306, 23667, 18, 18909, 16, 20448, 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, 11624, 8110, 12, 2890, 4672, 3536, 11624, 2483, 4912, 364, 333, 2346, 18, 3536, 309, 365, 18, 625, 67, 4172, 471, 365, 18, 11330, 67, 6738, 316, 306, 23667, 18, 18909, 16, 20448, 18, 2...
'Use secureSend instead!' % self.absulute_url(0))
'Use secureSend instead!' % self.absolute_url(0))
def sendTemplate(trueself, self, messageTemplate, statusTemplate=None, mto=None, mfrom=None, encode=None, REQUEST=None): """render a mail template, then send it... """ #raise MailHostError, 'sendTemplate is disabled' if not hasattr(self,'_v_sendtemplate'): LOG('SecureMailHost', WARNING, 'Deprecation warning: ' 'The usa...
327b106d508a5b987bb386ea92c954bbee5a6b21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/327b106d508a5b987bb386ea92c954bbee5a6b21/SecureMailHost.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 2283, 12, 313, 3610, 19079, 16, 365, 16, 883, 2283, 16, 1267, 2283, 33, 7036, 16, 312, 869, 33, 7036, 16, 312, 2080, 33, 7036, 16, 2017, 33, 7036, 16, 12492, 33, 7036, 4672, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 2283, 12, 313, 3610, 19079, 16, 365, 16, 883, 2283, 16, 1267, 2283, 33, 7036, 16, 312, 869, 33, 7036, 16, 312, 2080, 33, 7036, 16, 2017, 33, 7036, 16, 12492, 33, 7036, 4672, 35...
except sqlite3.ProgrammingError:
except sqlite3.ProgrammingError, e:
def addNewKey(self, userId, pgpKeyData): cu = self.db.cursor() # start a transaction so that our SELECT is protected against # race conditions self.db._begin() r = cu.execute('SELECT IFNULL(MAX(keyId),0) + 1 FROM PGPKeys') keyId = r.fetchone()[0] keyRing = StringIO.StringIO(pgpKeyData)
1ecabffc4e69b0474f81838d8c935ee8d018d86f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/1ecabffc4e69b0474f81838d8c935ee8d018d86f/keytable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20973, 653, 12, 2890, 16, 6249, 16, 293, 6403, 653, 751, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 468, 787, 279, 2492, 1427, 716, 3134, 9111, 353, 4750, 5314, 468, 17996, 4636, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20973, 653, 12, 2890, 16, 6249, 16, 293, 6403, 653, 751, 4672, 15985, 273, 365, 18, 1966, 18, 9216, 1435, 468, 787, 279, 2492, 1427, 716, 3134, 9111, 353, 4750, 5314, 468, 17996, 4636, ...
if imm > (2**8) or imm < (-(2**8) + 1): print 2**8 print -2**8 print imm > 2**8 print imm < -(2**8) + 1 print imm
if imm > 2**8 or imm < -(2**8) + 1:
def parse_const(instruc = "", word_buf = ""): if instruc == "": print "ERROR: someone accidentally the code in parse_const" return "-1" instruc = sanitize(instruc) ins = instruc[0] regD = instruc[1] imm = instruc[2] imm = hexorint(imm) #imm = -15 if ins == "const": if imm > (2**8) or imm < (-(2**8) + 1): print 2**8 p...
3544f255124af0db34ea242b135b6b6390308500 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/3544f255124af0db34ea242b135b6b6390308500/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10248, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, 326, 981, 316, 1109, 67, 10248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10248, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230, 326, 981, 316, 1109, 67, 10248...
form = self.browser.get_form(3)
form = self.browser.get_form(2)
def browser_do_login(self, username, password): self.browser.go('http://localhost/portal/login_html') form = self.browser.get_form(3) field = self.browser.get_form_field(form, '__ac_name') self.browser.clicked(form, field) form['__ac_name'] = username form['__ac_password'] = password self.browser.submit() self.failUnle...
4e389948b9b0cbd7bfa39472c12e0e19f720ab34 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/4e389948b9b0cbd7bfa39472c12e0e19f720ab34/NaayaFunctionalTestCase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4748, 67, 2896, 67, 5819, 12, 2890, 16, 2718, 16, 2201, 4672, 365, 18, 11213, 18, 3240, 2668, 2505, 2207, 13014, 19, 24386, 19, 5819, 67, 2620, 6134, 646, 273, 365, 18, 11213, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4748, 67, 2896, 67, 5819, 12, 2890, 16, 2718, 16, 2201, 4672, 365, 18, 11213, 18, 3240, 2668, 2505, 2207, 13014, 19, 24386, 19, 5819, 67, 2620, 6134, 646, 273, 365, 18, 11213, 18, 588,...
>>> form['age']
>>> form.data['age']
def add_validator(cls, validator): cls._converter.add_validator(validator)
f95105a4e0c240821e86d7b5d2305e9c23ac1b4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/f95105a4e0c240821e86d7b5d2305e9c23ac1b4d/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7357, 12, 6429, 16, 4213, 4672, 2028, 6315, 15747, 18, 1289, 67, 7357, 12, 7357, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7357, 12, 6429, 16, 4213, 4672, 2028, 6315, 15747, 18, 1289, 67, 7357, 12, 7357, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self._test_list = { "base": self.TestBase, "base_unittests": self.TestBase, "browser": self.TestBrowser, "browser_tests": self.TestBrowser, "googleurl": self.TestGURL, "googleurl_unittests": self.TestGURL, "ipc": self.TestIpc, "ipc_tests": self.TestIpc, "layout": self.TestLayout, ...
if ':' in test: (self._test, self._gtest_filter) = test.split(':', 1) else: self._test = test self._gtest_filter = options.gtest_filter if self._test not in self._test_list:
def __init__(self, options, args, test): # The known list of tests. # Recognise the original abbreviations as well as full executable names. self._test_list = { "base": self.TestBase, "base_unittests": self.TestBase, "browser": self.TestBrowser, "browser_tests": self.TestBrowser, "googleurl": self.TestG...
12b088258129428dc1801ea3c18d209258507ff6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/12b088258129428dc1801ea3c18d209258507ff6/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 833, 16, 1842, 4672, 468, 1021, 4846, 666, 434, 7434, 18, 468, 7776, 4198, 784, 326, 2282, 1223, 7379, 1012, 487, 5492, 487, 1983, 9070, 1257, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 702, 16, 833, 16, 1842, 4672, 468, 1021, 4846, 666, 434, 7434, 18, 468, 7776, 4198, 784, 326, 2282, 1223, 7379, 1012, 487, 5492, 487, 1983, 9070, 1257, 1...
cur_type["required"] = __parse_field_ent(parse_ent(line, "require"))
cur_type["required"] = __parse_field_ent(parse_ent(line, "require"))
def parse_ent(line, key): return line.replace(key, "").replace("=", "").strip()
6fe71434653c0fa1e5d80b3f323d07c45f9bc874 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/353/6fe71434653c0fa1e5d80b3f323d07c45f9bc874/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 319, 12, 1369, 16, 498, 4672, 327, 980, 18, 2079, 12, 856, 16, 1408, 2934, 2079, 2932, 1546, 16, 1408, 2934, 6406, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 319, 12, 1369, 16, 498, 4672, 327, 980, 18, 2079, 12, 856, 16, 1408, 2934, 2079, 2932, 1546, 16, 1408, 2934, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.output_write("Apparently successful\n")
def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one
124a122a4d1781c15e7d8ce5a75df2c0c337d6c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/124a122a4d1781c15e7d8ce5a75df2c0c337d6c3/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, 2, -100, -100, -100, -100, -100...
self.secure_overlay.send(target_permid, BARTERCAST+bartercast_msg, self.bartercastSendCallback)
def createAndSendBarterCastMessage(self, target_permid, selversion):
b9008d2752404957f60efb7037ce0bf525a3c626 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/b9008d2752404957f60efb7037ce0bf525a3c626/bartercast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30545, 3826, 5190, 387, 9735, 1079, 12, 2890, 16, 1018, 67, 12160, 350, 16, 357, 1589, 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, ...
[ 1, 1, 1, 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, 30545, 3826, 5190, 387, 9735, 1079, 12, 2890, 16, 1018, 67, 12160, 350, 16, 357, 1589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _get_category_leave_ids(self, cr, uid, ids): """Returns the leaves taken by the employees of the category if holiday type is 'category'.""" leave_ids = [] for record in self.browse(cr, uid, ids): if record.holiday_type == 'category' and record.type == 'remove': leave_ids += self.search(cr, uid, [('category_holiday...
def _employee_get(obj, cr, uid, context=None): ids = obj.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context) if ids: return ids[0] return False
d6451e011dbfc79f10dbf349593fa319c26ec083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d6451e011dbfc79f10dbf349593fa319c26ec083/hr_holidays.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 351, 2817, 1340, 67, 588, 12, 2603, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3258, 273, 1081, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 16063, 3072, 12, 3353, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 351, 2817, 1340, 67, 588, 12, 2603, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3258, 273, 1081, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 16063, 3072, 12, 3353, 16, ...
except AttributeError:
except (AttributeError,TypeError):
def tmp(s,l,t): return f()
963e26a9e74b3f47c686af73d9c00f2f71392bf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12364/963e26a9e74b3f47c686af73d9c00f2f71392bf6/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1853, 12, 87, 16, 80, 16, 88, 4672, 327, 284, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1853, 12, 87, 16, 80, 16, 88, 4672, 327, 284, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
""" SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """
""" SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """
def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("ehlo",name) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # M...
58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
res.get(self.attrs['name'], False))
res.get(self.attrs['name'], False), modified=True)
def _menu_sig_default_get(self): if self._view.modelfield.get_state_attrs(self._view.model)\ .get('readonly', False): return False model = self._view.modelfield.parent.resource try: res = rpc.execute('object', 'execute', model, 'default_get', [self.attrs['name']]) except Exception, exception: process_exception(exceptio...
31caa690292e4fdf4b75a5c84086fade90c50901 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/31caa690292e4fdf4b75a5c84086fade90c50901/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5414, 67, 7340, 67, 1886, 67, 588, 12, 2890, 4672, 309, 365, 6315, 1945, 18, 2284, 1518, 18, 588, 67, 2019, 67, 7039, 12, 2890, 6315, 1945, 18, 2284, 5153, 263, 588, 2668, 16365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5414, 67, 7340, 67, 1886, 67, 588, 12, 2890, 4672, 309, 365, 6315, 1945, 18, 2284, 1518, 18, 588, 67, 2019, 67, 7039, 12, 2890, 6315, 1945, 18, 2284, 5153, 263, 588, 2668, 16365, ...
else: return self._round_half_down(prec)
def _round_half_even(self, prec): """Round 5 to even, rest to nearest.""" if prec and self._int[prec-1] in '13579': return self._round_half_up(prec) else: return self._round_half_down(prec)
2ec7415db5ad63c4e4b27ee793214071454f6fe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/2ec7415db5ad63c4e4b27ee793214071454f6fe5/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2260, 67, 20222, 67, 16728, 12, 2890, 16, 13382, 4672, 3536, 11066, 1381, 358, 5456, 16, 3127, 358, 11431, 12123, 309, 13382, 471, 365, 6315, 474, 63, 4036, 17, 21, 65, 316, 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, 389, 2260, 67, 20222, 67, 16728, 12, 2890, 16, 13382, 4672, 3536, 11066, 1381, 358, 5456, 16, 3127, 358, 11431, 12123, 309, 13382, 471, 365, 6315, 474, 63, 4036, 17, 21, 65, 316, 296, ...
""", """\ <document source="test data">
""" expected_regex = \ r"""^<document source="test data">
def suite(): s = DocutilsTestSupport.ParserTestSuite() s.generateTests(totest) return s
77a1f9cf0f30337a2921c4a1cf2fdb3ab26841a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/77a1f9cf0f30337a2921c4a1cf2fdb3ab26841a0/test_include.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11371, 13332, 272, 273, 3521, 5471, 4709, 6289, 18, 2678, 4709, 13587, 1435, 272, 18, 7163, 14650, 12, 3307, 395, 13, 327, 272, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
tokens = [] for token in args[1:]: if '=' in token: keyword, value = token.split('=', 1) else: keyword = token value = '' tokens.append((keyword.lower(), value)) p3dFilename = Filename.fromOsSpecific(sys.argv[1]) osFilename = p3dFilename.toOsSpecific() if not p3dFilename.exists(): osFilename = '' if 'src' not in dict...
arg0 = args[0] p3dFilename = Filename.fromOsSpecific(arg0) if p3dFilename.exists(): p3dFilename.makeAbsolute() arg0 = p3dFilename.toOsSpecific() return [arg0] + args[1:]
def parseSysArgs(self): """ Converts sys.argv into (p3dFilename, tokens). """ import getopt opts, args = getopt.getopt(sys.argv[1:], 'h')
2dd92da38010783ab9ffdf8def1f761e1fbdb3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/2dd92da38010783ab9ffdf8def1f761e1fbdb3f7/runp3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12712, 2615, 12, 2890, 4672, 3536, 20377, 2589, 18, 19485, 1368, 261, 84, 23, 72, 5359, 16, 2430, 2934, 3536, 1930, 336, 3838, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12712, 2615, 12, 2890, 4672, 3536, 20377, 2589, 18, 19485, 1368, 261, 84, 23, 72, 5359, 16, 2430, 2934, 3536, 1930, 336, 3838, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9...
self.updateCache(logDate, hits)
self.updateCache(latest, hits)
def addHitsFromLog(self, hits, cacheDate): """ Parse the log, add hits after cacheDate and update the cache """ event_log = eventlog.EventLog(self.request) try: logDate = event_log.date() except logfile.LogMissing: return
770a2498175f7a987cfe745d1a3e0dfb18c23488 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/770a2498175f7a987cfe745d1a3e0dfb18c23488/PageHits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 20950, 1265, 1343, 12, 2890, 16, 11076, 16, 1247, 1626, 4672, 3536, 2884, 326, 613, 16, 527, 11076, 1839, 1247, 1626, 471, 1089, 326, 1247, 3536, 871, 67, 1330, 273, 871, 1330, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 20950, 1265, 1343, 12, 2890, 16, 11076, 16, 1247, 1626, 4672, 3536, 2884, 326, 613, 16, 527, 11076, 1839, 1247, 1626, 471, 1089, 326, 1247, 3536, 871, 67, 1330, 273, 871, 1330, 18, ...
base ring as the given MPolynomial and in the variable 'x' if no ring 'ring' is provided.
base ring as the given MPolynomial.
def univariate_polynomial(self, R=None): """ Returns a univariate polynomial associated to this multivariate polynomial.
8932961336a2e30c16bc529548ab7b19976a7af4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8932961336a2e30c16bc529548ab7b19976a7af4/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 27693, 67, 3915, 13602, 12, 2890, 16, 534, 33, 7036, 4672, 3536, 2860, 279, 640, 27693, 16991, 3627, 358, 333, 1778, 27693, 16991, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 27693, 67, 3915, 13602, 12, 2890, 16, 534, 33, 7036, 4672, 3536, 2860, 279, 640, 27693, 16991, 3627, 358, 333, 1778, 27693, 16991, 18, 2, -100, -100, -100, -100, -100, -100, -100, -...
self.tk.call(self._w, 'active', 'set', index)
self.tk.call(self._w, 'active', 'set', index)
def active_set(self, index):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 67, 542, 12, 2890, 16, 770, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2695, 67, 542, 12, 2890, 16, 770, 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, ...
PiXi = np.dot(self.PXiY, self.PY)
def sample(self, method='naive'): """Sample probabilities of system.
fa3d7f2f4f2840d2fd46886d44222154769b4471 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11824/fa3d7f2f4f2840d2fd46886d44222154769b4471/pyentropy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3296, 12, 2890, 16, 707, 2218, 6582, 688, 11, 4672, 3536, 8504, 17958, 434, 2619, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 3296, 12, 2890, 16, 707, 2218, 6582, 688, 11, 4672, 3536, 8504, 17958, 434, 2619, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
win = element.Window("check", elementary.ELM_WIN_BASIC)
win = elementary.Window("check", elementary.ELM_WIN_BASIC) win.title_set("Check test") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(1.0, 1.0) bg.show() win.resize(320, 320) win.show() def radio_clicked(obj, event, data): win = elementary.Window("check", elem...
def check_clicked(obj, event, data): win = element.Window("check", elementary.ELM_WIN_BASIC)
69c1e0ea30ad664c78d4ad6a35b8aebe67b8a49d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/69c1e0ea30ad664c78d4ad6a35b8aebe67b8a49d/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 7475, 329, 12, 2603, 16, 871, 16, 501, 4672, 5657, 273, 930, 814, 18, 3829, 2932, 1893, 3113, 930, 814, 18, 2247, 49, 67, 24572, 67, 25642, 13, 5657, 18, 2649, 67, 542, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7475, 329, 12, 2603, 16, 871, 16, 501, 4672, 5657, 273, 930, 814, 18, 3829, 2932, 1893, 3113, 930, 814, 18, 2247, 49, 67, 24572, 67, 25642, 13, 5657, 18, 2649, 67, 542, 2932...
rounds = int( math.log( padded_team_num ) + 1 )
rounds = int( math.log( padded_team_num, 2 ) + 1 )
def build(self,db,teams_,description): session = db.sessionmaker() self.teams = teams_ #random.shuffle(self.teams) self.description = description actual_team_num = len(teams_) padded_team_num = int( math.pow( 2, math.ceil( math.log( actual_team_num ) ) + 1 ) ) print 'got %d teams, padded to %d teams'%(actual_team_num,p...
4d0bf173307c3d7b85e0af64dac6f934fcff8925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11284/4d0bf173307c3d7b85e0af64dac6f934fcff8925/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 1966, 16, 27292, 67, 16, 3384, 4672, 1339, 273, 1319, 18, 3184, 29261, 1435, 365, 18, 27292, 273, 21475, 67, 468, 9188, 18, 31980, 12, 2890, 18, 27292, 13, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 1966, 16, 27292, 67, 16, 3384, 4672, 1339, 273, 1319, 18, 3184, 29261, 1435, 365, 18, 27292, 273, 21475, 67, 468, 9188, 18, 31980, 12, 2890, 18, 27292, 13, 365, 18,...
r1 = dataregion.DataRegion(0, 9, self.testData)
r1 = dataregion.DataRegion(0, 10, self.testData)
def testInstanciation(self): r1 = dataregion.DataRegion(0, 9, self.testData) self.assertEqual(len(r1), len(self.testData))
5f455cfcc823175dcffe76203420910068f9f37a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/5f455cfcc823175dcffe76203420910068f9f37a/dataregion_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 382, 27866, 7072, 12, 2890, 4672, 436, 21, 273, 501, 6858, 18, 751, 5165, 12, 20, 16, 1728, 16, 365, 18, 3813, 751, 13, 365, 18, 11231, 5812, 12, 1897, 12, 86, 21, 3631, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 382, 27866, 7072, 12, 2890, 4672, 436, 21, 273, 501, 6858, 18, 751, 5165, 12, 20, 16, 1728, 16, 365, 18, 3813, 751, 13, 365, 18, 11231, 5812, 12, 1897, 12, 86, 21, 3631, 562, ...
msg = string.replace(msg3, '\012', '')
msg = msg.replace('\012', '')
def build_credentials(config_dic): ""
954ceb7c4c8abd9065837b8bf80cafbba9e80f32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2865/954ceb7c4c8abd9065837b8bf80cafbba9e80f32/basic_auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11687, 12, 1425, 67, 15859, 4672, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11687, 12, 1425, 67, 15859, 4672, 1408, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
portalProperties = getToolByName(context, 'portal_properties')
portalProperties = getToolByName(site, 'portal_properties')
def setupHideToolsFromNavigation(context): """hide tools""" # uncatalog tools site = context.getSite() toolnames = <dtml-var "repr(toolnames)"> portalProperties = getToolByName(context, 'portal_properties') navtreeProperties = getattr(portalProperties, 'navtree_properties') if navtreeProperties.hasProperty('idsNotToLis...
ff748588b2e64e1d8fc249df59e80db5601ab17f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11941/ff748588b2e64e1d8fc249df59e80db5601ab17f/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 15690, 10348, 1265, 14301, 12, 2472, 4672, 3536, 11248, 8513, 8395, 468, 6301, 4392, 8513, 2834, 273, 819, 18, 588, 4956, 1435, 5226, 1973, 273, 411, 72, 1419, 17, 1401, 315, 12715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15690, 10348, 1265, 14301, 12, 2472, 4672, 3536, 11248, 8513, 8395, 468, 6301, 4392, 8513, 2834, 273, 819, 18, 588, 4956, 1435, 5226, 1973, 273, 411, 72, 1419, 17, 1401, 315, 12715, ...
self.body = appuifw.Listbox([u"empty"], self.go_to)
self.body = self.create_listbox([u"empty"], self.go_to)
def __init__(self, player_ui, navigator, service_locator): Window.__init__(self, player_ui, navigator) self.__music_repository = service_locator.music_repository self.body = appuifw.Listbox([u"empty"], self.go_to) self.menu = self.get_menu_items()
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7291, 67, 4881, 16, 19796, 16, 1156, 67, 20048, 4672, 6076, 16186, 2738, 972, 12, 2890, 16, 7291, 67, 4881, 16, 19796, 13, 365, 16186, 81, 14894, 67, 907...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7291, 67, 4881, 16, 19796, 16, 1156, 67, 20048, 4672, 6076, 16186, 2738, 972, 12, 2890, 16, 7291, 67, 4881, 16, 19796, 13, 365, 16186, 81, 14894, 67, 907...
op.args[1:], op.result, [fn.value])
op.args[1:], op.result, targets)
def OP_DIRECT_CALL(self, op): fn = op.args[0] return self.generic_call(fn.concretetype, self.expr(fn), op.args[1:], op.result, [fn.value])
a5730bf03156fc4bcaf2c6bda4fb14fb45c3f177 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/a5730bf03156fc4bcaf2c6bda4fb14fb45c3f177/funcgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7247, 67, 17541, 67, 13730, 12, 2890, 16, 1061, 4672, 2295, 273, 1061, 18, 1968, 63, 20, 65, 327, 365, 18, 13540, 67, 1991, 12, 4293, 18, 11504, 1349, 5872, 16, 365, 18, 8638, 12, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7247, 67, 17541, 67, 13730, 12, 2890, 16, 1061, 4672, 2295, 273, 1061, 18, 1968, 63, 20, 65, 327, 365, 18, 13540, 67, 1991, 12, 4293, 18, 11504, 1349, 5872, 16, 365, 18, 8638, 12, 42...
peer_object[object.primary_key] = object[object.primary_key] trace ("in objects : comparing") if not object.__eq__(peer_object):
peer_object[primary_key] = object[primary_key] if equal_fields(object,peer_object, columns):
def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message)
be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 261, 2150, 4672, 309, 7479, 422, 2606, 67, 723, 471, 4261, 67, 1612, 67, 350, 316, 2606, 67, 2232, 30, 883, 67, 11369, 2668, 23827, 34, 1870, 15, 2150, 13, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2606, 261, 2150, 4672, 309, 7479, 422, 2606, 67, 723, 471, 4261, 67, 1612, 67, 350, 316, 2606, 67, 2232, 30, 883, 67, 11369, 2668, 23827, 34, 1870, 15, 2150, 13, 2, -100, -100, -100, ...
this = apply(_quickfix.new_LegMaturityMonthYear, args)
this = _quickfix.new_LegMaturityMonthYear(*args)
def __init__(self, *args): this = apply(_quickfix.new_LegMaturityMonthYear, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 8329, 15947, 2336, 5445, 5593, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 8329, 15947, 2336, 5445, 5593, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13,...
if treeview == self.treeview: bool_col = 1 name_col = 0
def on_cursor_changed(self, treeview): bool_col = 0 name_col = 1 if treeview == self.treeview: bool_col = 1 name_col = 0 selection = treeview.get_selection() treemodel, iter = selection.get_selected() info = '' if not iter: return
93ddfe641716f80e47632e1f7b4fbc47032072bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/93ddfe641716f80e47632e1f7b4fbc47032072bf/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9216, 67, 6703, 12, 2890, 16, 2151, 1945, 4672, 1426, 67, 1293, 273, 374, 508, 67, 1293, 273, 404, 225, 4421, 273, 2151, 1945, 18, 588, 67, 10705, 1435, 9787, 351, 1009, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 9216, 67, 6703, 12, 2890, 16, 2151, 1945, 4672, 1426, 67, 1293, 273, 374, 508, 67, 1293, 273, 404, 225, 4421, 273, 2151, 1945, 18, 588, 67, 10705, 1435, 9787, 351, 1009, 16, ...
whereList = map(lambda t: t[0][0], whereList) print "unpacked wherelist",whereList
def partMapCares(token): return token.upper() in pVariables
bc475b601326e57a29a13ae9f5c6a1ef715a1673 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/bc475b601326e57a29a13ae9f5c6a1ef715a1673/sqlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1087, 863, 39, 4807, 12, 2316, 4672, 327, 1147, 18, 5797, 1435, 316, 293, 6158, 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, 1087, 863, 39, 4807, 12, 2316, 4672, 327, 1147, 18, 5797, 1435, 316, 293, 6158, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
del threading.__warningregistry__
try: del threading.__warningregistry__ except AttributeError: pass
def check(_, w, msg): self.assertEqual(str(w.message), msg)
732005d99200a29b37e50b028e9405c9470d6637 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/732005d99200a29b37e50b028e9405c9470d6637/test_threading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 24899, 16, 341, 16, 1234, 4672, 365, 18, 11231, 5812, 12, 701, 12, 91, 18, 2150, 3631, 1234, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 24899, 16, 341, 16, 1234, 4672, 365, 18, 11231, 5812, 12, 701, 12, 91, 18, 2150, 3631, 1234, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return html.A(label, class_="changeset", title=title, href=href)
return tag.a(label, class_="changeset", title=title, href=href)
def pathrev(path): if '@' in path: return path.split('@', 1) else: return (path, None)
b8cf3c6db8f11cabf90461f9832dbd945e3380b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/b8cf3c6db8f11cabf90461f9832dbd945e3380b6/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 9083, 12, 803, 4672, 309, 9175, 316, 589, 30, 327, 589, 18, 4939, 2668, 36, 2187, 404, 13, 469, 30, 327, 261, 803, 16, 599, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 9083, 12, 803, 4672, 309, 9175, 316, 589, 30, 327, 589, 18, 4939, 2668, 36, 2187, 404, 13, 469, 30, 327, 261, 803, 16, 599, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100...
k = len(G.rows())
def module_composition_factors(self,gp): r""" Prints the GAP record of the Meataxe composition factors module in Meataxe notation.
3a7625918ca06799454663aea3e731edc0d084bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3a7625918ca06799454663aea3e731edc0d084bf/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1605, 67, 24388, 67, 22108, 12, 2890, 16, 6403, 4672, 436, 8395, 3038, 87, 326, 611, 2203, 1409, 434, 326, 7499, 396, 6554, 16919, 14490, 1605, 316, 7499, 396, 6554, 12155, 18, 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, 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, 1605, 67, 24388, 67, 22108, 12, 2890, 16, 6403, 4672, 436, 8395, 3038, 87, 326, 611, 2203, 1409, 434, 326, 7499, 396, 6554, 16919, 14490, 1605, 316, 7499, 396, 6554, 12155, 18, 2, -100, ...
Return the dimension of the new (or p-new) subspace of cusp forms for the character or group X.
Return the dimension of the new (or $p$-new) subspace of cusp forms for the character or group $X$.
def dimension_new_cusp_forms(X, k=2, p=0): """ Return the dimension of the new (or p-new) subspace of cusp forms for the character or group X. INPUT: X -- integer, congruence subgroup or Dirichlet character k -- weight (integer) p -- 0 or a prime EXAMPLES: sage: dimension_new_cusp_forms(100,2) 1 sage: dimension_new_...
231200694940d44e11baa531020b171931c64488 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/231200694940d44e11baa531020b171931c64488/dims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 12, 60, 16, 417, 33, 22, 16, 293, 33, 20, 4672, 3536, 2000, 326, 4968, 434, 326, 394, 261, 280, 271, 84, 8, 17, 2704, 13, 720, 2981, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 12, 60, 16, 417, 33, 22, 16, 293, 33, 20, 4672, 3536, 2000, 326, 4968, 434, 326, 394, 261, 280, 271, 84, 8, 17, 2704, 13, 720, 2981, 43...
fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try:
with TemporaryFile("w+b") as fileobj:
def test_double_write(self): import array contents = [(20-i)*0.1 for i in range(20)] a = array.array('d', contents) fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: writer = csv.writer(fileobj, dialect="excel") writer.writerow(a) expected = ",".join([str(i) for i in a])+"\r\n" fileobj.seek(0) self.asse...
2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9056, 67, 2626, 12, 2890, 4672, 1930, 526, 2939, 273, 306, 12, 3462, 17, 77, 17653, 20, 18, 21, 364, 277, 316, 1048, 12, 3462, 25887, 279, 273, 526, 18, 1126, 2668, 72, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9056, 67, 2626, 12, 2890, 4672, 1930, 526, 2939, 273, 306, 12, 3462, 17, 77, 17653, 20, 18, 21, 364, 277, 316, 1048, 12, 3462, 25887, 279, 273, 526, 18, 1126, 2668, 72, 218...
t = globals()['__builtins__'].get(name)
t = getattr(builtins, name, None)
def _copy_immutable(x): return x
ff2fc039230317b3270098da3f06f848f35b0f4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/ff2fc039230317b3270098da3f06f848f35b0f4d/copy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 67, 381, 5146, 12, 92, 4672, 327, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3530, 67, 381, 5146, 12, 92, 4672, 327, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _fill(self, wtd):
def _fill(self, wtd):
def _fill(self, wtd):
a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5935, 12, 2890, 16, 341, 4465, 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, 389, 5935, 12, 2890, 16, 341, 4465, 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,...