rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if must_quote_body:
if is_base64: line = line + 'base64\n' elif must_quote_body:
def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' has_cte = is_qp = 0 multipart = None must_quote_body = must_quote_header = has_iso_chars = 0 header = [] header_end = '' message = [] message_end = '' # read header hfile = HeaderFile(ifile) while 1: line = h...
efd33c9969400e02acf83f824ade8a5adac563c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/efd33c9969400e02acf83f824ade8a5adac563c9/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
class FutureDocument(DBEntity):
class FutureDocument:
def __repr__(self): return str(self)
9aa5d3632816e3dda49c296ec4daaf6a6a9c5de8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/9aa5d3632816e3dda49c296ec4daaf6a6a9c5de8/dbentity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1001, 12715, 972, 12, 2890, 4672, 327, 609, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
opts_c = c_flags + ["-D_REENTRANT", "-fPIC", "-D_GNU_SOURCE"]
opts_c = c_flags + ["-D_REENTRANT", "-fPIC", "-D_GNU_SOURCE", "-DGLIBC_SEPARATE_BUILD"]
def gcc(*args): target = GccTarget(*args) targets.append(target) return target
b57d059d595777c427f4899dc2f9fb653e7353be /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1008/b57d059d595777c427f4899dc2f9fb653e7353be/make_objs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 952, 30857, 1968, 4672, 1018, 273, 611, 952, 2326, 30857, 1968, 13, 5774, 18, 6923, 12, 3299, 13, 327, 1018, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 952, 30857, 1968, 4672, 1018, 273, 611, 952, 2326, 30857, 1968, 13, 5774, 18, 6923, 12, 3299, 13, 327, 1018, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
it = self.__iter__() for i in xtange(key): it.next() return it.next()
if key >= 0: for i,j in enumerate(self): if i == key: return j raise IndexError, key else: return list(self)[key]
def __getitem__(self, key): if isinstance(key, int): it = self.__iter__() for i in xtange(key): it.next() return it.next() elif isinstance(key, slice): if slice.step is None or slice.step > 0: key = key.indices(self.__len__()) return list(islice(self, key)) else: return list(self)[key] else: r = self.get(key) if r is N...
a3f6de6af7a2bd4f7eda416817e118ca007674eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11977/a3f6de6af7a2bd4f7eda416817e118ca007674eb/group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 309, 1549, 12, 856, 16, 509, 4672, 309, 498, 1545, 374, 30, 364, 277, 16, 78, 316, 4241, 12, 2890, 4672, 309, 277, 422, 498, 30, 327, 525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 309, 1549, 12, 856, 16, 509, 4672, 309, 498, 1545, 374, 30, 364, 277, 16, 78, 316, 4241, 12, 2890, 4672, 309, 277, 422, 498, 30, 327, 525, ...
if options.get('inline'):
if options.get('inline') and self._tree is not None:
def __init__(self, dom_tree, **options): self._tree = dom_tree # Caching: self._html = self._latex = self._plaintext = None self._terms = None # inline option -- mark top-level children as inline. if options.get('inline'): for elt in self._tree.children: elt.attribs['inline'] = True
7890857749542640357b5b1a58c7e6acef436e70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/7890857749542640357b5b1a58c7e6acef436e70/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4092, 67, 3413, 16, 2826, 2116, 4672, 365, 6315, 3413, 273, 4092, 67, 3413, 468, 23782, 310, 30, 365, 6315, 2620, 273, 365, 6315, 26264, 273, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4092, 67, 3413, 16, 2826, 2116, 4672, 365, 6315, 3413, 273, 4092, 67, 3413, 468, 23782, 310, 30, 365, 6315, 2620, 273, 365, 6315, 26264, 273, 365, 6315, ...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def contextMut(allele, context): if context == [0, 0]: if allele == 0 and random.random() < 0.1: return 1 elif context == [1, 1]: if allele == 0: return 1 # do not mutate return allele
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 7420, 12, 21962, 16, 819, 4672, 309, 819, 422, 306, 20, 16, 374, 14542, 309, 14551, 422, 374, 471, 2744, 18, 9188, 1435, 411, 374, 18, 21, 30, 327, 404, 1327, 819, 422, 306, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 819, 7420, 12, 21962, 16, 819, 4672, 309, 819, 422, 306, 20, 16, 374, 14542, 309, 14551, 422, 374, 471, 2744, 18, 9188, 1435, 411, 374, 18, 21, 30, 327, 404, 1327, 819, 422, 306, 21,...
fc = gc = 0
def zoom(a_lo, a_hi, phi_lo, phi_hi, derphi_lo, phi, derphi, phi0, derphi0, c1, c2): fc = gc = 0 maxiter = 10 i = 0 while 1: # interpolate to find a trial step length between a_lo and a_hi A = phi_lo; B = derphi_lo; dalpha = a_hi-a_lo; C = (phi_hi - phi_lo - dalpha*derphi_lo)/dalpha**2; if (c<=0) or (i%3)==2): # Use bi...
d00f433519cbe9ce0d4306fb9512ac79d655e1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/d00f433519cbe9ce0d4306fb9512ac79d655e1fc/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7182, 12, 69, 67, 383, 16, 279, 67, 12266, 16, 7706, 67, 383, 16, 7706, 67, 12266, 16, 4854, 9973, 67, 383, 16, 7706, 16, 4854, 9973, 16, 7706, 20, 16, 4854, 9973, 20, 16, 276, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7182, 12, 69, 67, 383, 16, 279, 67, 12266, 16, 7706, 67, 383, 16, 7706, 67, 12266, 16, 4854, 9973, 67, 383, 16, 7706, 16, 4854, 9973, 16, 7706, 20, 16, 4854, 9973, 20, 16, 276, 21,...
def rotate_dword(x, count): rotate_left(x, count, 32, 0) def rotate_word(x, count): rotate_left(x, count, 16, 0) def rotate_byte(x, count): rotate_left(x, count, 8, 0)
def rotate_dword(x, count): return rotate_left(x, count, 32, 0) def rotate_word(x, count): return rotate_left(x, count, 16, 0) def rotate_byte(x, count): return rotate_left(x, count, 8, 0)
def rotate_dword(x, count): rotate_left(x, count, 32, 0)
7d0f7431439c021ca8ff7fab2a58afcbdd115fe3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/7d0f7431439c021ca8ff7fab2a58afcbdd115fe3/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8534, 67, 72, 1095, 12, 92, 16, 1056, 4672, 8534, 67, 4482, 12, 92, 16, 1056, 16, 3847, 16, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8534, 67, 72, 1095, 12, 92, 16, 1056, 4672, 8534, 67, 4482, 12, 92, 16, 1056, 16, 3847, 16, 374, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return (self.path_dict["is_svn"] and self.path_dict["length"] == 1 and
return (self.path_dict["length"] == 1 and
def checkout(self, data=None): return (self.path_dict["is_svn"] and self.path_dict["length"] == 1 and self.path_dict["is_dir"] and not self.path_dict["is_working_copy"])
8ac7c3b4a084975efddb8b01575c03aeedd60653 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/8ac7c3b4a084975efddb8b01575c03aeedd60653/contextmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13926, 12, 2890, 16, 501, 33, 7036, 4672, 327, 261, 2890, 18, 803, 67, 1576, 9614, 2469, 11929, 422, 404, 471, 365, 18, 803, 67, 1576, 9614, 291, 67, 1214, 11929, 471, 486, 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, 13926, 12, 2890, 16, 501, 33, 7036, 4672, 327, 261, 2890, 18, 803, 67, 1576, 9614, 2469, 11929, 422, 404, 471, 365, 18, 803, 67, 1576, 9614, 291, 67, 1214, 11929, 471, 486, 365, 18, ...
print "executing command inside VM"
sys.stderr.write( "executing command inside VM")
def main(): qemu_identfile = "../sadbox/sshkey/vmkey" dest_path = "contestvm@localhost:~" try: opts, args = getopt.getopt(sys.argv[1:], "d:c:", ["directory=", "command="]) except getopt.GetoptError, err: print str(err) usage() sys.exit(2) sadbox_path = None cmd = None for o, a in opts: if o in ("-d", "--directory"): sa...
84414da8b24d69e9d10e1d9b9fa3cf25a8452f48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13129/84414da8b24d69e9d10e1d9b9fa3cf25a8452f48/sadbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1043, 24995, 67, 6392, 768, 273, 315, 6216, 87, 361, 2147, 19, 10975, 856, 19, 3489, 856, 6, 1570, 67, 803, 273, 315, 1213, 395, 3489, 36, 13014, 30, 98, 6, 775, 30, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1043, 24995, 67, 6392, 768, 273, 315, 6216, 87, 361, 2147, 19, 10975, 856, 19, 3489, 856, 6, 1570, 67, 803, 273, 315, 1213, 395, 3489, 36, 13014, 30, 98, 6, 775, 30, 150...
if self.helps.has_key(cmd):
if cmd == "help" and argc == 0 or not self.helps.has_key(cmd): reply = "AbilityProfile: " + " ;; ".join(self.helps.values()) else:
def handler(self, **args): import string from irclib import Event import priv
e3b2c9bcf16151b1b012f40db9eba0f713457d0c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10749/e3b2c9bcf16151b1b012f40db9eba0f713457d0c/AbilityProfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 1930, 533, 628, 9482, 830, 495, 1930, 2587, 1930, 6015, 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, 1838, 12, 2890, 16, 2826, 1968, 4672, 1930, 533, 628, 9482, 830, 495, 1930, 2587, 1930, 6015, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a, b]
Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a, b]
def subgroup(self, gensH, names="f"): """ Create a subgroup of this group. The "big" group must be defined using "named" generators.
ac7b9e1e09a437ce1112b2a6f61db8126e9ee984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ac7b9e1e09a437ce1112b2a6f61db8126e9ee984/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 1655, 12, 2890, 16, 314, 773, 44, 16, 1257, 1546, 74, 6, 4672, 3536, 1788, 279, 720, 1655, 434, 333, 1041, 18, 1021, 315, 14002, 6, 1041, 1297, 506, 2553, 1450, 315, 13188, 6, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 1655, 12, 2890, 16, 314, 773, 44, 16, 1257, 1546, 74, 6, 4672, 3536, 1788, 279, 720, 1655, 434, 333, 1041, 18, 1021, 315, 14002, 6, 1041, 1297, 506, 2553, 1450, 315, 13188, 6, 1...
str += I+'<TH CLASS="navbar">&nbsp;&nbsp;&nbsp;'+\ 'Module&nbsp;&nbsp;&nbsp;</TH></B>\n'
str += I+'<th class="navbar">&nbsp;&nbsp;&nbsp;' str += 'Module&nbsp;&nbsp;&nbsp;</th>\n'
def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA...
89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
with JSContext(g) as ctxt:
with JSContext(g) as ctxt:
def testPythonWrapper(self): class Global(JSClass): s = [1, 2, 3] d = {'a': {'b': 'c'}, 'd': ['e', 'f']} g = Global() with JSContext(g) as ctxt: ctxt.eval(""" s[2] = s[1] + 2; s[0] = s[1]; delete s[1]; """) self.assertEquals([2, 4], g.s) self.assertEquals('c', ctxt.eval("d.a.b")) self.assertEquals(['e', 'f'], ctxt.ev...
39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 15774, 3611, 12, 2890, 4672, 667, 8510, 12, 6479, 797, 4672, 272, 273, 306, 21, 16, 576, 16, 890, 65, 302, 273, 13666, 69, 4278, 13666, 70, 4278, 296, 71, 11, 5779, 296, 72, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 15774, 3611, 12, 2890, 4672, 667, 8510, 12, 6479, 797, 4672, 272, 273, 306, 21, 16, 576, 16, 890, 65, 302, 273, 13666, 69, 4278, 13666, 70, 4278, 296, 71, 11, 5779, 296, 72, 42...
'start_offset' : 8,
'start_offset' : 16,
def test_global_notification(self): c = Client() c.login(username='user1', password='test') print Notification.objects.all()
49e101e027e0e51faa1d68f1071b2c9fb88130eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5622/49e101e027e0e51faa1d68f1071b2c9fb88130eb/test_notifications.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6347, 67, 9927, 12, 2890, 4672, 276, 273, 2445, 1435, 276, 18, 5819, 12, 5053, 2218, 1355, 21, 2187, 2201, 2218, 3813, 6134, 1172, 8050, 18, 6911, 18, 454, 1435, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6347, 67, 9927, 12, 2890, 4672, 276, 273, 2445, 1435, 276, 18, 5819, 12, 5053, 2218, 1355, 21, 2187, 2201, 2218, 3813, 6134, 1172, 8050, 18, 6911, 18, 454, 1435, 2, -100, -10...
replacements.append(old, new)
replacements.append((old, new))
def main(): # How we want to retrieve information on which pages need to be changed. # Can either be 'xmldump', 'textfile' or 'userinput'. source = None # Array which will collect commandline parameters. # First element is original text, second element is replacement text. commandline_replacements = [] # A list of 2-tu...
89346c54a7af8203ebaf7a4389794d9eb6686fd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/89346c54a7af8203ebaf7a4389794d9eb6686fd6/replace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 2902, 8481, 2187, 296, 955, 768, 11, 578, 296, 1355, 2630, 10332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 2902, 8481, 2187, 296, 955, 768, 11, 578, 296, 1355, 2630, 10332...
node.appendChild(lastNode) lastNode = node if lastNode.parent: lastNode.parent.removeChild(lastNode) if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")): parent, insertBefore = self.tree.getTableMisnestedNodePosition() parent.insertBefore(lastNode, insertBefore) else: commonAncestor....
if commonAncestor.name in frozenset(("table", "tbody", "tfoot", "thead", "tr")): parent, insertBefore = self.tree.getTableMisnestedNodePosition() parent.insertBefore(lastNode, insertBefore) else: commonAncestor.appendChild(lastNode) clone = formattingElement.cloneNode() furthestBlock.reparentChildren(clone) furt...
def endTagFormatting(self, token): """The much-feared adoption agency algorithm""" # http://www.whatwg.org/specs/web-apps/current-work/#adoptionAgency # XXX Better parseError messages appreciated. name = token["name"] while True: # Step 1 paragraph 1 formattingElement = self.tree.elementInActiveFormattingElements( toke...
d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 23974, 12, 2890, 16, 1147, 4672, 3536, 1986, 9816, 17, 3030, 2258, 1261, 3482, 1737, 2075, 4886, 8395, 468, 1062, 2207, 5591, 18, 23770, 18197, 18, 3341, 19, 15115, 19, 4875, 17, ...
global sanitize_salt sanitize_salt = salthex_to_salt(options.salt) sanitize_dump_file( args[0], args[1] )
sanitizer = SanitizeDumpFile(options) copy_dump_file( args[0], args[1], sanitizer )
def svndump_sanitize_cmdline( appname, args ): """ Parses the commandline and executes the sanitization. Usage: >>> svndump_sanitize_cmdline( sys.argv[0], sys.argv[1:] ) @type appname: string @param appname: Name of the application (used in help text). @type args: list( string ) @param args: Commandline arguments. @...
67cfd8a81e93d89ac616d5c44142e2f7f03bd012 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13212/67cfd8a81e93d89ac616d5c44142e2f7f03bd012/sanitize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5893, 4880, 2801, 67, 20266, 67, 4172, 1369, 12, 22323, 16, 833, 262, 30, 3536, 2280, 2420, 326, 28305, 471, 11997, 326, 6764, 1588, 18, 225, 10858, 30, 225, 4080, 5893, 4880, 2801, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5893, 4880, 2801, 67, 20266, 67, 4172, 1369, 12, 22323, 16, 833, 262, 30, 3536, 2280, 2420, 326, 28305, 471, 11997, 326, 6764, 1588, 18, 225, 10858, 30, 225, 4080, 5893, 4880, 2801, 67, ...
self.contentModelFlag != contentModelFlags['PLAINTEXT']):
self.contentModelFlag != contentModelFlags["PLAINTEXT"]):
def dataState(self): data = self.consumeChar() if (data == u"&" and (self.contentModelFlag in (contentModelFlags["PCDATA"], contentModelFlags["RCDATA"]))): self.changeState("entityData") elif (data == u"<" and self.contentModelFlag != contentModelFlags['PLAINTEXT']): self.changeState("tagOpen") elif data == EOF: self.p...
d8aeded6692a6c10bf17823c9aa096a7c62743cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/d8aeded6692a6c10bf17823c9aa096a7c62743cf/tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 1119, 12, 2890, 4672, 501, 273, 365, 18, 21224, 2156, 1435, 309, 261, 892, 422, 582, 6, 10, 6, 471, 261, 2890, 18, 1745, 1488, 4678, 316, 261, 1745, 1488, 5094, 9614, 3513, 4883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 1119, 12, 2890, 4672, 501, 273, 365, 18, 21224, 2156, 1435, 309, 261, 892, 422, 582, 6, 10, 6, 471, 261, 2890, 18, 1745, 1488, 4678, 316, 261, 1745, 1488, 5094, 9614, 3513, 4883, ...
print 'add to hist, active: ', self.word_input.get_active()
def add_to_history(self, word, lang): self.word_input.handler_block(self.word_change_handler) model = self.word_input.get_model() insert = True; for i, row in enumerate(model): if word == row[0] and lang == row[1]: insert = False; break; if insert: print 'prev active', self.word_input.previous_active model.insert(None,...
adb7cebe2f76b7a125497a6d87f59310e93b6a2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/adb7cebe2f76b7a125497a6d87f59310e93b6a2e/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 8189, 12, 2890, 16, 2076, 16, 3303, 4672, 365, 18, 1095, 67, 2630, 18, 4176, 67, 2629, 12, 2890, 18, 1095, 67, 3427, 67, 4176, 13, 938, 273, 365, 18, 1095, 67, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 8189, 12, 2890, 16, 2076, 16, 3303, 4672, 365, 18, 1095, 67, 2630, 18, 4176, 67, 2629, 12, 2890, 18, 1095, 67, 3427, 67, 4176, 13, 938, 273, 365, 18, 1095, 67, 26...
if isinstance(x1, (types.MethodType, types.FunctionType, types.CodeType, types.ClassType)):
if isinstance(x1, _have_code):
def dis(x=None): """Disassemble classes, methods, functions, or code. With no argument, disassemble the last traceback. """ if x is None: distb() return if isinstance(x, types.InstanceType): x = x.__class__ if hasattr(x, 'im_func'): x = x.im_func if hasattr(x, 'func_code'): x = x.func_code if hasattr(x, '__dict__'): ...
0712bd4bda2f68daf4c33533c62b81d48869a754 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/0712bd4bda2f68daf4c33533c62b81d48869a754/dis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1015, 12, 92, 33, 7036, 4672, 3536, 1669, 29676, 3318, 16, 2590, 16, 4186, 16, 578, 981, 18, 225, 3423, 1158, 1237, 16, 1015, 29676, 326, 1142, 10820, 18, 225, 3536, 309, 619, 353, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1015, 12, 92, 33, 7036, 4672, 3536, 1669, 29676, 3318, 16, 2590, 16, 4186, 16, 578, 981, 18, 225, 3423, 1158, 1237, 16, 1015, 29676, 326, 1142, 10820, 18, 225, 3536, 309, 619, 353, 599...
devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties)
devs = map(lambda (handle, properties): [handle, map2sxp(properties)], zip(range(len(vif_properties)), vif_properties))
def xm_network_list(args): (use_long, params) = arg_check_for_resource_list(args, "network-list") dom = params[0] if serverType == SERVER_XEN_API: vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom)) vif_properties = \ map(server.xenapi.VIF.get_runtime_properties, vif_refs) devs = map(lambda x: [x.get('handle'), ...
6b52f541072ba0d4a48ed0835f6a24dbc248ac17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/6b52f541072ba0d4a48ed0835f6a24dbc248ac17/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25179, 67, 5185, 67, 1098, 12, 1968, 4672, 261, 1202, 67, 5748, 16, 859, 13, 273, 1501, 67, 1893, 67, 1884, 67, 3146, 67, 1098, 12, 1968, 16, 315, 5185, 17, 1098, 7923, 225, 4092, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25179, 67, 5185, 67, 1098, 12, 1968, 4672, 261, 1202, 67, 5748, 16, 859, 13, 273, 1501, 67, 1893, 67, 1884, 67, 3146, 67, 1098, 12, 1968, 16, 315, 5185, 17, 1098, 7923, 225, 4092, 27...
info.append("Rule dontmatch url changed")
info.append(i18n._("Rule dontmatch url changed"))
def _form_rule_matchurl (form): matchurl = getval(form, 'rule_matchurl').strip() if matchurl!=currule.matchurl: currule.matchurl = matchurl info.append("Rule match url changed") dontmatchurl = getval(form, 'rule_dontmatchurl').strip() if dontmatchurl!=currule.dontmatchurl: currule.dontmatchurl = dontmatchurl info.appen...
9ad2312d756ee18c5d8cc9bb1f58ad01a1c25b45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9ad2312d756ee18c5d8cc9bb1f58ad01a1c25b45/filterconfig_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 687, 67, 5345, 67, 1916, 718, 261, 687, 4672, 845, 718, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 1916, 718, 16063, 6406, 1435, 309, 845, 718, 5, 33, 1397, 5345, 18, 1916, 718...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 687, 67, 5345, 67, 1916, 718, 261, 687, 4672, 845, 718, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 1916, 718, 16063, 6406, 1435, 309, 845, 718, 5, 33, 1397, 5345, 18, 1916, 718...
self.N = X.shape[1]
self.N = self.X.shape[1]
def __init__(self, X, X_dims, Y_m, Ny): """Check and assign inputs.
ece52ef5d0cdfdfa1a8ada64b3be3c35e37203cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11824/ece52ef5d0cdfdfa1a8ada64b3be3c35e37203cc/pyentropy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1139, 16, 1139, 67, 8550, 16, 1624, 67, 81, 16, 423, 93, 4672, 3536, 1564, 471, 2683, 4540, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1139, 16, 1139, 67, 8550, 16, 1624, 67, 81, 16, 423, 93, 4672, 3536, 1564, 471, 2683, 4540, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
try: sys.ps2 except AttributeError:
if not hasattr(sys, 'ps2'):
def __init__(self, evScheduler, locals=None, filename="<console>"): """Constructor.
956200481c16813239597ab16c1e2e7230233d9f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5969/956200481c16813239597ab16c1e2e7230233d9f/AsynConsole.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2113, 11870, 16, 8985, 33, 7036, 16, 1544, 1546, 32, 8698, 2984, 4672, 3536, 6293, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2113, 11870, 16, 8985, 33, 7036, 16, 1544, 1546, 32, 8698, 2984, 4672, 3536, 6293, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
logging.debug("Entered clue square on_paint.")
def on_paint(self, actor): logging.debug("Entered clue square on_paint.") if self.clue.state == 'unanswered': self.set_text(config.clue_value_font, self.clue.get_value()) self.set_color(config.clue_value_color) elif self.clue.state == 'selected': self.set_text(config.clue_font, self.clue.answer) elif self.clue.state ==...
78d35b6eabb456ab59c6c32414df879edc75e4c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10391/78d35b6eabb456ab59c6c32414df879edc75e4c8/game_board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 84, 1598, 12, 2890, 16, 8327, 4672, 309, 365, 18, 830, 344, 18, 2019, 422, 296, 318, 13490, 329, 4278, 365, 18, 542, 67, 955, 12, 1425, 18, 830, 344, 67, 1132, 67, 5776, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 84, 1598, 12, 2890, 16, 8327, 4672, 309, 365, 18, 830, 344, 18, 2019, 422, 296, 318, 13490, 329, 4278, 365, 18, 542, 67, 955, 12, 1425, 18, 830, 344, 67, 1132, 67, 5776, 1...
print "CD .."
def parentDir(self): self.dirStack.pop() print "CD .."
867b6b777427cb43c3027d2bc3f912f3917d704a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10467/867b6b777427cb43c3027d2bc3f912f3917d704a/webdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 982, 1621, 12, 2890, 4672, 365, 18, 1214, 2624, 18, 5120, 1435, 1172, 315, 10160, 263, 1199, 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, 982, 1621, 12, 2890, 4672, 365, 18, 1214, 2624, 18, 5120, 1435, 1172, 315, 10160, 263, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sys.prefix.startswith('/Library', '/System/Library')):
sys.prefix.startswith(('/Library', '/System/Library'))):
def strip_prefix(path, prefix): """ If ``path`` begins with ``prefix``, return ``path`` with ``prefix`` stripped off. Otherwise return None.""" prefixes = [prefix] # Yep, we are special casing the framework layout of MacPython here if (sys.platform[:6] == 'darwin' and sys.prefix.startswith('/Library', '/System/Library...
925bb015f5f83e4c7c83e317e7790a0e7abb0cbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/925bb015f5f83e4c7c83e317e7790a0e7abb0cbc/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 67, 3239, 12, 803, 16, 1633, 4672, 3536, 971, 12176, 803, 10335, 17874, 598, 12176, 3239, 68, 9191, 327, 12176, 803, 10335, 598, 12176, 3239, 10335, 13300, 3397, 18, 225, 5272, 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, 2569, 67, 3239, 12, 803, 16, 1633, 4672, 3536, 971, 12176, 803, 10335, 17874, 598, 12176, 3239, 68, 9191, 327, 12176, 803, 10335, 598, 12176, 3239, 10335, 13300, 3397, 18, 225, 5272, 327, ...
self.fState.fZFlags |= hsGMatState.hsGMatZFlags["kNoZWrite"]
self.fState.fZFlags |= hsGMatState.hsGMatZFlags["kZNoZWrite"]
def FromBlenderMat(self,obj,mat): # Now Copy Settings from the material... mesh = obj.getData(False,True) # get the blender basic colors and options matR,matG,matB = mat.getRGBCol() #color triplet (map to diffuse) matA = mat.getAlpha() specR,specG,specB = mat.getSpecCol() #specular color triplet (map to specular) spe...
8dcd39d1e50395a8c95c82ef9a96c35d8c0dd744 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12286/8dcd39d1e50395a8c95c82ef9a96c35d8c0dd744/alc_MatClasses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6338, 4802, 2345, 15947, 12, 2890, 16, 2603, 16, 7373, 4672, 468, 4494, 5631, 8709, 628, 326, 9390, 2777, 6986, 273, 1081, 18, 588, 751, 12, 8381, 16, 5510, 13, 225, 468, 336, 326, 281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6338, 4802, 2345, 15947, 12, 2890, 16, 2603, 16, 7373, 4672, 468, 4494, 5631, 8709, 628, 326, 9390, 2777, 6986, 273, 1081, 18, 588, 751, 12, 8381, 16, 5510, 13, 225, 468, 336, 326, 281...
}
},
def fycomp(x,y): x = x.replace("y","i")+x.count("y")*"!" y = y.replace("y","i")+y.count("y")*"!" return cmp(x,y)
77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
((1, 3), 2) ((1, 0), 2) ((0, 2), 3)
def out_degree_iterator(self, vertices=None, labels=False): """ Same as degree_iterator, but for out degree. EXAMPLES: sage: D = graphs.Grid2dGraph(2,4).to_directed() sage: for i in D.out_degree_iterator(): ... print i 3 3 2 2 3 2 2 3 sage: for i in D.out_degree_iterator(labels=True): ... print i ((0, 1), 3) ((1...
b54583533bf5722e80f03aff4e8ce7cd5637b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b54583533bf5722e80f03aff4e8ce7cd5637b8f5/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 596, 67, 21361, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 8381, 4672, 3536, 17795, 487, 10782, 67, 9838, 16, 1496, 364, 596, 10782, 18, 225, 5675, 8900, 11386, 30, 272, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 596, 67, 21361, 67, 9838, 12, 2890, 16, 6928, 33, 7036, 16, 3249, 33, 8381, 4672, 3536, 17795, 487, 10782, 67, 9838, 16, 1496, 364, 596, 10782, 18, 225, 5675, 8900, 11386, 30, 272, 410...
def iter_packages(self, packages, selected, hint=False):
def iter_packages(self, packages, selected, hint=False, nuninst=None):
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, 16, 290, 318, 8591, 33, 7036, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 16, 290, 318, 8591, 33, 7036, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, ...
if (dtl_tools):
if (dtl_tools == 'true'):
def checkFormatEntries(dtl_tools): ''' Check all formats (\Format entries) ''' checkViewer('a Tgif viewer and editor', ['tgif'], rc_entry = [r'\Format tgif obj Tgif "" "%%" "%%" "vector"']) # checkViewer('a FIG viewer and editor', ['xfig'], rc_entry = [r'\Format fig fig FIG ...
bfe2d2c027bf6a95af9b276c46e12c692af8eda7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/bfe2d2c027bf6a95af9b276c46e12c692af8eda7/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1630, 5400, 12, 72, 6172, 67, 6642, 4672, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1630, 5400, 12, 72, 6172, 67, 6642, 4672, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, ...
if isinstance(x, systemObjects.GenericItem)]
if issubclass(x, systemObjects.GenericItem)]
def generateCode(self): bases = [self._getFullName(x) for x in self._bases] ccbases = [self._getFullName(x) for x in self._bases if isinstance(x, systemObjects.GenericItem)] code = ['# auto generated by codegen at %s\n' % time.asctime()] code.append('class %s(%s):\n' % (self._class.__name__, ','.join(bases))) # doc c...
eb0b7cc131dea922c8bdd8127d7606a8ed4fcaeb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2504/eb0b7cc131dea922c8bdd8127d7606a8ed4fcaeb/codegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1085, 12, 2890, 4672, 8337, 273, 306, 2890, 6315, 588, 19223, 12, 92, 13, 364, 619, 316, 365, 6315, 18602, 65, 4946, 18602, 273, 306, 2890, 6315, 588, 19223, 12, 92, 13, 364, 619...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1085, 12, 2890, 4672, 8337, 273, 306, 2890, 6315, 588, 19223, 12, 92, 13, 364, 619, 316, 365, 6315, 18602, 65, 4946, 18602, 273, 306, 2890, 6315, 588, 19223, 12, 92, 13, 364, 619...
ps.Publisher().sendMessage('Update slice viewer')
if m.location == const.SURFACE: ps.Publisher().sendMessage('Render volume viewer') else: ps.Publisher().sendMessage('Update slice viewer')
def _set_visibility(self, pubsub_evt): index, visibility = pubsub_evt.data m, mr = self.measures[index] m.is_shown = visibility mr.SetVisibility(visibility) ps.Publisher().sendMessage('Update slice viewer')
715511f15e5a8016f80afeff724005ecc377cbb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/715511f15e5a8016f80afeff724005ecc377cbb3/measures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 14422, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 770, 16, 9478, 273, 23288, 67, 73, 11734, 18, 892, 312, 16, 9752, 273, 365, 18, 21992, 1823, 63, 1615, 65, 312, 18, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 14422, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 770, 16, 9478, 273, 23288, 67, 73, 11734, 18, 892, 312, 16, 9752, 273, 365, 18, 21992, 1823, 63, 1615, 65, 312, 18, 291...
), 'incs': ('db.h',)},
)},
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
637e5aa23d513f9f0eb05233f49db4bd638d2eee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/637e5aa23d513f9f0eb05233f49db4bd638d2eee/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
return mobile_render(request, context, 'maps/postcode_detail')
return cls.render(request, context, 'maps/postcode_detail')
def handlde_GET(cls, request, context, post_code, ptypes=None): post_code = get_object_or_404(PostCode, post_code = cls.add_space(post_code))
3cd8c78e193cd999601c7269605a7d43cfb07068 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/3cd8c78e193cd999601c7269605a7d43cfb07068/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 948, 80, 323, 67, 3264, 12, 6429, 16, 590, 16, 819, 16, 1603, 67, 710, 16, 293, 2352, 33, 7036, 4672, 1603, 67, 710, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 3349, 1085, 16, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 948, 80, 323, 67, 3264, 12, 6429, 16, 590, 16, 819, 16, 1603, 67, 710, 16, 293, 2352, 33, 7036, 4672, 1603, 67, 710, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 3349, 1085, 16, 160...
validBackgroundColour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW), emptyBackgroundColour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW), foregroundColour = wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT),
validBackgroundColour=GetColour(wx.SYS_COLOUR_WINDOW), emptyBackgroundColour=GetColour(wx.SYS_COLOUR_WINDOW), foregroundColour=GetColour(wx.SYS_COLOUR_WINDOWTEXT),
def __init__( self, parent, id=-1, value = 0.0, pos = wx.DefaultPosition, size = wx.DefaultSize, style = wx.TE_RIGHT, validator = wx.DefaultValidator, name = "eg.SpinNumCtrl", **kwargs
df3b9e1266ca815063d3aa49390d701b48fc9133 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/df3b9e1266ca815063d3aa49390d701b48fc9133/SpinNumCtrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 612, 29711, 21, 16, 460, 273, 374, 18, 20, 16, 949, 273, 7075, 18, 1868, 2555, 16, 963, 273, 7075, 18, 1868, 1225, 16, 2154, 273, 7075, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 982, 16, 612, 29711, 21, 16, 460, 273, 374, 18, 20, 16, 949, 273, 7075, 18, 1868, 2555, 16, 963, 273, 7075, 18, 1868, 1225, 16, 2154, 273, 7075, 18, 1...
sage: print L.nr_distinct_symbols()
sage: L.nr_distinct_symbols()
def nr_distinct_symbols(self): """ Returns the number of distinct symbols in the partial latin square self.
0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9884, 67, 24592, 67, 15536, 12, 2890, 4672, 3536, 2860, 326, 1300, 434, 10217, 7963, 316, 326, 4702, 30486, 8576, 365, 18, 2, 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, 9884, 67, 24592, 67, 15536, 12, 2890, 4672, 3536, 2860, 326, 1300, 434, 10217, 7963, 316, 326, 4702, 30486, 8576, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return N.average(rms)[0], 0.0
return N.average(rms), 0.0
def avgRmsd( self, cluster, aMask=None, threshold=0. ): """ Claculate the average pairwise rmsd (in Angstrom) for members of a cluter.
9393d6f8c3f17b82de00c301cdf69d79b474262e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/482/9393d6f8c3f17b82de00c301cdf69d79b474262e/TrajCluster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11152, 54, 959, 72, 12, 365, 16, 2855, 16, 279, 5796, 33, 7036, 16, 5573, 33, 20, 18, 262, 30, 3536, 3905, 1077, 6243, 326, 8164, 21886, 27806, 72, 261, 267, 26956, 334, 520, 13, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11152, 54, 959, 72, 12, 365, 16, 2855, 16, 279, 5796, 33, 7036, 16, 5573, 33, 20, 18, 262, 30, 3536, 3905, 1077, 6243, 326, 8164, 21886, 27806, 72, 261, 267, 26956, 334, 520, 13, 364...
def __init__(self, mcmcJob, procParams, ifo, trig, cp,opts,dag): try:
def __init__(self, mcmcJob, procParams, ifo, trig, cp, opts, dag, datafindCache, d_node, datafindCommand): try: hipeCache = checkHipeCachePath(cp)
def __init__(self, mcmcJob, procParams, ifo, trig, cp,opts,dag):
5cd8d3923ef01328239be5138781f507d85b79ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/5cd8d3923ef01328239be5138781f507d85b79ba/fu_Condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6108, 13952, 2278, 16, 5418, 1370, 16, 21479, 16, 23142, 16, 3283, 16, 4952, 16, 30204, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 6108, 13952, 2278, 16, 5418, 1370, 16, 21479, 16, 23142, 16, 3283, 16, 4952, 16, 30204, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
else: opnd = rule_dic['operand'] if opnd and opnd.startswith('user.') and opnd.count('.') > 1: op = opnd[5:] opnd = opnd[:5+len(op[:op.find('.')])] +' and '+ opnd + ' or False' if rule_dic['operator'] in ('in', 'child_of', '|child_of'): res = safe_eval("[('%s', '%s', [%s])]" % (rule_dic['field_name'], rule_dic['opera...
def _get_value(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): if not rule.groups: res[rule.id] = True else: opnd = rule_dic['operand'] if opnd and opnd.startswith('user.') and opnd.count('.') > 1: #Need to check user.field.field1.field2(if field is False,it w...
af8e96e02948d8fa4e9386e6d64da7f5368fdac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/af8e96e02948d8fa4e9386e6d64da7f5368fdac3/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1132, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 364, 1720, 316, 365, 18, 25731, 12, 3353, 16, 4555, 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, 1132, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 652, 67, 529, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 364, 1720, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, ...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 381) else quickfix.DoubleField.__init__(self, 381, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 890, 11861, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 890, 11861, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 27...
self.assertEqual(len(w.warnings), 2) self.assertWarning(None, w.warnings[0], "Overriding __cmp__ blocks inheritance of __hash__ in 3.x")
self.assertEqual(len(w.warnings), 1)
def __eq__(self, other): pass
fd73ef7e5d34f58257f4d43fc2311b0a0e88b9b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/fd73ef7e5d34f58257f4d43fc2311b0a0e88b9b5/test_py3kwarn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 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, ...
[ 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, 1001, 11253, 972, 12, 2890, 16, 1308, 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, -10...
text = editwin.text text.bind("<<run-module>>", self.run_module) text.bind("<<run-script>>", self.run_script) text.bind("<<new-shell>>", self.new_shell)
self.flist = self.editwin.flist self.root = self.flist.root
def __init__(self, editwin): self.editwin = editwin text = editwin.text text.bind("<<run-module>>", self.run_module) text.bind("<<run-script>>", self.run_script) text.bind("<<new-shell>>", self.new_shell)
5473d5c84af752cc7faf56a473b6da3355b80411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5473d5c84af752cc7faf56a473b6da3355b80411/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3874, 8082, 4672, 365, 18, 4619, 8082, 273, 3874, 8082, 977, 273, 3874, 8082, 18, 955, 977, 18, 4376, 2932, 17685, 2681, 17, 2978, 34, 2984, 16, 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, 1001, 2738, 972, 12, 2890, 16, 3874, 8082, 4672, 365, 18, 4619, 8082, 273, 3874, 8082, 977, 273, 3874, 8082, 18, 955, 977, 18, 4376, 2932, 17685, 2681, 17, 2978, 34, 2984, 16, 365, 18,...
def zoombitmap(self, filename, scaling=None, bbx=0, bby=0, bbw=0, bbh=0, rotation = 0): if not pygame.display.get_init(): return None image = self._getbitmap(filename) if not image: return
def zoomsurface(self, image, scaling=None, bbx=0, bby=0, bbw=0, bbh=0, rotation = 0):
def loadbitmap(self, filename): self._getbitmap(filename)
6df99dc53926dc524a71e80f5983fd1dff419351 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6df99dc53926dc524a71e80f5983fd1dff419351/osd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3682, 1458, 12, 2890, 16, 1544, 4672, 365, 6315, 588, 3682, 1458, 12, 3459, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 1262, 3682, 1458, 12, 2890, 16, 1544, 4672, 365, 6315, 588, 3682, 1458, 12, 3459, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
% 'IS' if use_color_sorted_dls else 'is NOT'
% (use_color_sorted_dls and 'IS' or 'is NOT')
def finish(): """\ Finish sorting - objects recorded since "start" will be sorted and invoked now. """ from debug_prefs import debug_pref, Choice_boolean_False debug_which_renderer = debug_pref("debug print which renderer", Choice_boolean_False) #bruce 060314, imperfect but tolerable
da8af8172fb5114196ac5abf59fc0269bed4742b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/da8af8172fb5114196ac5abf59fc0269bed4742b/drawer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 13332, 3536, 64, 18560, 9602, 300, 2184, 16421, 3241, 315, 1937, 6, 903, 506, 3115, 471, 8187, 2037, 18, 3536, 628, 1198, 67, 1484, 2556, 1930, 1198, 67, 25724, 16, 16432, 67, 6494...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 13332, 3536, 64, 18560, 9602, 300, 2184, 16421, 3241, 315, 1937, 6, 903, 506, 3115, 471, 8187, 2037, 18, 3536, 628, 1198, 67, 1484, 2556, 1930, 1198, 67, 25724, 16, 16432, 67, 6494...
if 'file' == type:
elif 'file' == atype:
def handle_cleaner_option_action(self, action): """<action> element under <option>""" type = action.getAttribute('type') pathname = getText(action.childNodes) if 'children' == type: children = boolstr_to_bool(action.getAttribute('directories')) self.action.add_list_children(pathname, children) if 'file' == type: self.a...
c555294f20c24acab99ef81063b6257e22ea1f71 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/c555294f20c24acab99ef81063b6257e22ea1f71/CleanerML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 6200, 264, 67, 3482, 67, 1128, 12, 2890, 16, 1301, 4672, 3536, 32, 1128, 34, 930, 3613, 411, 3482, 2984, 3660, 618, 273, 1301, 18, 588, 1499, 2668, 723, 6134, 9806, 273, 6701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 6200, 264, 67, 3482, 67, 1128, 12, 2890, 16, 1301, 4672, 3536, 32, 1128, 34, 930, 3613, 411, 3482, 2984, 3660, 618, 273, 1301, 18, 588, 1499, 2668, 723, 6134, 9806, 273, 6701...
>>> dump_tokens("01234567 > ~0x15") NUMBER '01234567' (1, 0) (1, 8) OP '>' (1, 9) (1, 10) OP '~' (1, 11) (1, 12) NUMBER '0x15' (1, 12) (1, 16) >>> dump_tokens("2134568 != 01231515")
>>> dump_tokens("1234567 > ~0x15") NUMBER '1234567' (1, 0) (1, 7) OP '>' (1, 8) (1, 9) OP '~' (1, 10) (1, 11) NUMBER '0x15' (1, 11) (1, 15) >>> dump_tokens("2134568 != 1231515")
... " def y(m): # A whitespace after the colon\\n"
1fbae9878cfa20d661d49e29e47c6085f32923a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1fbae9878cfa20d661d49e29e47c6085f32923a3/test_tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 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, 1372, 6647, 315, 225, 1652, 677, 12, 81, 4672, 468, 432, 7983, 1839, 326, 13336, 1695, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def __str__(self): """Make it easier to debug features.
def __repr__(self): """A string representation of the record for debugging.""" answer = "%s(%s" % (self.__class__, repr(self.location)) if self.type : answer += ", type=%s" % repr(self.type) if self.location_operator : answer += ", location_operator=%s" % repr(self.location_operator) if self.strand : answer += ", stran...
def __str__(self): """Make it easier to debug features. """ out = "type: %s\n" % self.type out += "location: %s\n" % self.location out += "ref: %s:%s\n" % (self.ref, self.ref_db) out += "strand: %s\n" % self.strand out += "qualifiers: \n" qualifier_keys = self.qualifiers.keys() qualifier_keys.sort() for qual_key in qua...
4b609092bb2cd977d09afa024b4285803cbf6f63 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/4b609092bb2cd977d09afa024b4285803cbf6f63/SeqFeature.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 37, 533, 4335, 434, 326, 1409, 364, 10450, 12123, 5803, 273, 2213, 87, 9275, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16, 8480, 12, 2890, 18, 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, 1001, 12715, 972, 12, 2890, 4672, 3536, 37, 533, 4335, 434, 326, 1409, 364, 10450, 12123, 5803, 273, 2213, 87, 9275, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16, 8480, 12, 2890, 18, 35...
True returns dict keyed by node labels.
True returns dict keyed by vertex labels.
def clustering_coeff(self, nbunch=None, with_labels=False, weights=False): r""" Returns the clustering coefficient for each node in nbunch as an ordered list. The clustering coefficient of a graph is the fraction of possible triangles that are triangles, c_i = triangles_i / (k_i*(k_i-1)/2) where k_i is the degree of n...
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 756, 316, 4264, 4384, 487, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 18132, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 16, 5376, 33, 8381, 4672, 436, 8395, 2860, 326, 18743, 16554, 364, 1517, 756, 316, 4264, 4384, 487, 3...
self.assertEquals(x._objects, {"0": "spam", "1": "foo"})
self.assertEquals(x._objects, {"0": b"spam", "1": b"foo"})
def test_ccharp_struct(self): class X(Structure): _fields_ = [("a", c_char_p), ("b", c_char_p)] x = X() self.assertEquals(x._objects, None)
d73c0253cbd21c5285294000502c49d2e543178b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/d73c0253cbd21c5285294000502c49d2e543178b/test_keeprefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 67, ...
po = self._createRepoPackage('foo', '1')
po = self.repoPackage('foo', '1')
def testMissingReqSkip(self): ''' install is skipped, because of missing req. foo + bar is skipped, because foobar is not provided ''' po = self._createRepoPackage('foo', '1') po.addRequires('bar', None, (None,None,None)) self.tsInfo.addInstall(po)
f29fddfeba059aed51f7896bf712a7e74ea6c59d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/f29fddfeba059aed51f7896bf712a7e74ea6c59d/skipbroken-tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4841, 6113, 6368, 12, 2890, 4672, 9163, 3799, 353, 9700, 16, 2724, 434, 3315, 1111, 18, 8431, 397, 4653, 353, 9700, 16, 2724, 18261, 947, 297, 353, 486, 2112, 9163, 8275, 273, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4841, 6113, 6368, 12, 2890, 4672, 9163, 3799, 353, 9700, 16, 2724, 434, 3315, 1111, 18, 8431, 397, 4653, 353, 9700, 16, 2724, 18261, 947, 297, 353, 486, 2112, 9163, 8275, 273, 365,...
return objectmodel.we_are_jitted()
return jit.we_are_jitted()
def f(): return objectmodel.we_are_jitted()
72c60f4f0a04d13582670964468480ba06fc5876 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/72c60f4f0a04d13582670964468480ba06fc5876/test_symbolic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 327, 733, 2284, 18, 1814, 67, 834, 67, 78, 11541, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 327, 733, 2284, 18, 1814, 67, 834, 67, 78, 11541, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
req = "UPDATE JobCommands SET Status='%s' WHERE JobID=%d AND Command='%s'" % (jobID,command)
req = "UPDATE JobCommands SET Status='%s' WHERE JobID=%d AND Command='%s'" % (status,jobID,command)
def setJobCommandStatus(self,jobID,command,status): """ Set the command status """
708229dc06a155e56ce0b4a0b779a2d0bd3540dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/708229dc06a155e56ce0b4a0b779a2d0bd3540dc/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2189, 1482, 12, 2890, 16, 4688, 734, 16, 3076, 16, 2327, 4672, 3536, 1000, 326, 1296, 1267, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2278, 2189, 1482, 12, 2890, 16, 4688, 734, 16, 3076, 16, 2327, 4672, 3536, 1000, 326, 1296, 1267, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
reparentnames = [p.getName() for p in reparents if not p.hasStereoType('z3')] z3parentnames = [p.getName() for p in reparents if p.hasStereoType('z3')] if reparents:
z2reparentnames = [p.getName() for p in reparents if not p.hasStereoType('z3')] z3reparentnames = [p.getName() for p in reparents if p.hasStereoType('z3')] if z2reparentnames:
def generateImplements(self,element,parentnames): outfile = StringIO() # "__implements__" line -> handle realization parents reparents = element.getRealizationParents() reparentnames = [p.getName() for p in reparents if not p.hasStereoType('z3')] z3parentnames = [p.getName() for p in reparents if p.hasStereoType('z3')]...
27bf1936123b4d3c1da2de6b495fe444c073aafb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/27bf1936123b4d3c1da2de6b495fe444c073aafb/BaseGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 17516, 12, 2890, 16, 2956, 16, 2938, 1973, 4672, 8756, 273, 15777, 1435, 468, 10425, 17061, 14437, 980, 317, 1640, 2863, 1588, 6298, 2071, 817, 87, 273, 930, 18, 588, 6955, 1588, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 17516, 12, 2890, 16, 2956, 16, 2938, 1973, 4672, 8756, 273, 15777, 1435, 468, 10425, 17061, 14437, 980, 317, 1640, 2863, 1588, 6298, 2071, 817, 87, 273, 930, 18, 588, 6955, 1588, 1...
published = DateTime(published)
try: published = DateTime(published) except DateTime.SyntaxError: logger.warn("SyntaxError while parsing %r as DateTime for " "the 'published' field of entry %s", published, getattr(entry, 'title', '')) continue
def _retrieveSingleFeed(self, feedContainer, url): # feedparser doesn't understand proper file: url's if url.startswith('file://'): url = url[7:] if not os.path.exists(url): raise IOError("Couldn't locate %r" % url) # urllib does not support the 'feed' scheme -- replace with 'http' if url.startswith('feed://'): url = u...
67e8809cecdc9a848b1f84263011e82a798a2faf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10437/67e8809cecdc9a848b1f84263011e82a798a2faf/utilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17466, 5281, 8141, 12, 2890, 16, 4746, 2170, 16, 880, 4672, 468, 4746, 4288, 3302, 1404, 22413, 5338, 585, 30, 880, 1807, 309, 880, 18, 17514, 1918, 2668, 768, 8931, 4672, 880, 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, 17466, 5281, 8141, 12, 2890, 16, 4746, 2170, 16, 880, 4672, 468, 4746, 4288, 3302, 1404, 22413, 5338, 585, 30, 880, 1807, 309, 880, 18, 17514, 1918, 2668, 768, 8931, 4672, 880, 273,...
This method will cause this object to get reindexed. Of this
This method will cause this object to get reindexed. If this
def reindex_all(self, obj=None): """
81e8827b3f635cfb7e8ebbdac33846cef76e8985 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/81e8827b3f635cfb7e8ebbdac33846cef76e8985/CatalogAwarenessInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17492, 67, 454, 12, 2890, 16, 1081, 33, 7036, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 17492, 67, 454, 12, 2890, 16, 1081, 33, 7036, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "Running %s.test09_MultiDB..." % self.__class__.__name__
print "Running %s.test10_MultiDB..." % self.__class__.__name__
def test09_MultiDB(self): d1 = self.d if verbose: print '\n', '-=' * 30 print "Running %s.test09_MultiDB..." % self.__class__.__name__
c8cee2940288f4697e21d00f92531420c8285ff7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/c8cee2940288f4697e21d00f92531420c8285ff7/test_basics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5908, 67, 5002, 2290, 12, 2890, 4672, 302, 21, 273, 365, 18, 72, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 5908, 67, 5002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5908, 67, 5002, 2290, 12, 2890, 4672, 302, 21, 273, 365, 18, 72, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 5908, 67, 5002, ...
window_table.attach(widget, 0, 1, i, i+1,
table.attach(widget, 0, 1, i, i+1,
def behavior_tab(self, display_trayicon, prefs_trayicon_toggled, trayicon_in_use, sticky_toggled, ontop_toggled, decorated_toggled, infofile_changed): """Construct and layout the behavior tab""" windowlabel = ui.label(markup='<b>'+_('Window Behavior')+'</b>') window_frame = gtk.Frame() window_frame.set_label_widget(win...
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6885, 67, 7032, 12, 2890, 16, 2562, 67, 313, 528, 3950, 16, 15503, 67, 313, 528, 3950, 67, 88, 23972, 1259, 16, 268, 435, 3950, 67, 267, 67, 1202, 16, 21750, 67, 88, 23972, 1259, 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, 6885, 67, 7032, 12, 2890, 16, 2562, 67, 313, 528, 3950, 16, 15503, 67, 313, 528, 3950, 67, 88, 23972, 1259, 16, 268, 435, 3950, 67, 267, 67, 1202, 16, 21750, 67, 88, 23972, 1259, 16,...
if len(archlist) > 1: log(4, 'multiple archs in rpmdb for pkg: %s' % name)
if len(archlist) > 0: log(3, 'multiple archs in rpmdb for pkg: %s' % name)
def getupdatedhdrlist(headernevral, rpmnevral): "returns (name, arch) tuples of updated and uninstalled pkgs" uplist = [] newlist = [] uplist_archdict = {} for (name, arch) in headernevral.NAkeys(): # this is all hard and goofy to deal with pkgs changing arch # if we have the package installed # check to see if we have...
9c902b18c74b251a7435b4fb3c9f0b3db4a01184 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/9c902b18c74b251a7435b4fb3c9f0b3db4a01184/clientStuff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7007, 16587, 1098, 12, 3374, 4644, 18090, 287, 16, 25228, 4644, 18090, 287, 4672, 315, 6154, 261, 529, 16, 6637, 13, 10384, 434, 3526, 471, 640, 13435, 16922, 6, 582, 17842, 273, 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, 336, 7007, 16587, 1098, 12, 3374, 4644, 18090, 287, 16, 25228, 4644, 18090, 287, 4672, 315, 6154, 261, 529, 16, 6637, 13, 10384, 434, 3526, 471, 640, 13435, 16922, 6, 582, 17842, 273, 53...
print "Command-" +`c`
if DEBUG: print "Command-" +`c`
def do_key(self, event): (what, message, when, where, modifiers) = event c = chr(message & charCodeMask) if modifiers & cmdKey: if c == '.': raise self else: result = MenuKey(ord(c)) id = (result>>16) & 0xffff # Hi word item = result & 0xffff # Lo word if id: self.do_rawmenu(id, item, None, event) elif c == 'w': w = F...
7a58336511b8c405e01bcda0b886b19c2947189a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7a58336511b8c405e01bcda0b886b19c2947189a/FrameWork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 856, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 276, 273, 4513, 12, 2150, 473, 13096, 5796, 13, 309, 10429, 473, 1797, 653, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 856, 12, 2890, 16, 871, 4672, 261, 23770, 16, 883, 16, 1347, 16, 1625, 16, 10429, 13, 273, 871, 276, 273, 4513, 12, 2150, 473, 13096, 5796, 13, 309, 10429, 473, 1797, 653, 3...
marshal.dump(results.counts, open(os.path.join(dirname, "counts"), "w")) marshal.dump(results.modules, open(os.path.join(dirname, "modules"), "w")) except IOError, err: sys.stderr.write("cannot save counts/modules " \ "files because %s" % err) if summary and sums: mods = sums.keys() mods.sort() print "lines cov% m...
print "%s(%d): %s" % (bname, lineno, context[lineindex],), except IndexError: pass return self.localtrace def localtrace_trace(self, frame, why, arg):
def create_results_log(results, dirname = ".", show_missing = 1, save_counts = 0, summary = 0, coverdir = None): import re # turn the counts data ("(filename, lineno) = count") into something # accessible on a per-file basis per_file = {} for filename, lineno in results.counts.keys(): lines_hit = per_file[filename] = p...
8fb89f9fd74a61e165437eec10be9ace4c3738cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8fb89f9fd74a61e165437eec10be9ace4c3738cb/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4717, 67, 1330, 12, 4717, 16, 4283, 273, 4585, 16, 2405, 67, 7337, 273, 404, 16, 1923, 67, 8008, 273, 374, 16, 4916, 273, 374, 16, 5590, 1214, 273, 599, 4672, 1930, 283, 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, 752, 67, 4717, 67, 1330, 12, 4717, 16, 4283, 273, 4585, 16, 2405, 67, 7337, 273, 404, 16, 1923, 67, 8008, 273, 374, 16, 4916, 273, 374, 16, 5590, 1214, 273, 599, 4672, 1930, 283, 468...
"""
If a polynomial is univariate, the appropriate univariate factorization code is called. sage: R.<z> = PolynomialRing(CC,1) sage: f = z^4 - 6*z + 3 sage: f.factor() (z - 1.60443920904349) * (z - 0.511399619393097) * (z + 1.05791941421830 - 1.59281852704435*I) * (z + 1.05791941421830 + 1.59281852704435*I) """
def factor(self): r""" Compute the irreducible factorization of this polynomial.
a5574d3a6b9603681715a0ae4350ec429c111eae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a5574d3a6b9603681715a0ae4350ec429c111eae/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 4672, 436, 8395, 8155, 326, 9482, 1118, 5286, 1523, 5578, 1588, 434, 333, 16991, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5578, 12, 2890, 4672, 436, 8395, 8155, 326, 9482, 1118, 5286, 1523, 5578, 1588, 434, 333, 16991, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
1.73205080757
1.73205080756888
def kloosterman_sum_numerical(self, prec=53, a=1,b=0): r""" Return the Kloosterman sum associated to this Dirichlet character as an approximate complex number with prec bits of precision. See also :meth:`.kloosterman_sum`, which calculates the sum exactly (which is generally slower).
92a81c4657fcc0cca28f2c60fd73772ba681425b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/92a81c4657fcc0cca28f2c60fd73772ba681425b/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 383, 669, 29650, 67, 1364, 67, 2107, 10882, 12, 2890, 16, 13382, 33, 8643, 16, 279, 33, 21, 16, 70, 33, 20, 4672, 436, 8395, 2000, 326, 1475, 383, 669, 29650, 2142, 3627, 358, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 383, 669, 29650, 67, 1364, 67, 2107, 10882, 12, 2890, 16, 13382, 33, 8643, 16, 279, 33, 21, 16, 70, 33, 20, 4672, 436, 8395, 2000, 326, 1475, 383, 669, 29650, 2142, 3627, 358, 3...
val = a.lstrip(key+'=') args[key] = val
args[key] = a.replace(key+'=','')
def __argvlist2dict(self,argv): """Eliminates duplicates in argv and makes it a dictionary""" argv = self.__filter_equal_sign(argv) args = {} for a in argv: key = a.split('=')[0] val = a.lstrip(key+'=') args[key] = val return args
c7a383a097296c9789b4b293000f86bf6119e7d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3143/c7a383a097296c9789b4b293000f86bf6119e7d2/rsfbak.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 19485, 1098, 22, 1576, 12, 2890, 16, 19485, 4672, 3536, 4958, 381, 4174, 11211, 316, 5261, 471, 7297, 518, 279, 3880, 8395, 5261, 273, 365, 16186, 2188, 67, 9729, 67, 2977, 12, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19485, 1098, 22, 1576, 12, 2890, 16, 19485, 4672, 3536, 4958, 381, 4174, 11211, 316, 5261, 471, 7297, 518, 279, 3880, 8395, 5261, 273, 365, 16186, 2188, 67, 9729, 67, 2977, 12, 194...
res.append(f(z,ssens)) return res
yield f(z,ssens)
def _listbloc(n, nbrepets, listint=None): """ listbloc decomposes a set of n*nbrepets integers (the list listint) in nbrepets parts. It is used in the algorithm to generate all set partitions. Not to be called by the user. EXAMPLES: sage: sage.combinat.set_partition._listbloc(2,1) [{{1, 2}}] sage: l = [Set([Set([3, ...
43705e9dccfbffca72793f3fbd2104945b6fd6a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/43705e9dccfbffca72793f3fbd2104945b6fd6a6/set_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
self.reply("Hm? Get back to lynching.", from_private)
self.reply("Hm? Get back to lynching.", target)
def do_command(self, e, cmd, from_private): """This is the function called whenever someone sends a public or private message addressed to the bot. (e.g. "bot: blah"). Parse the CMD, execute it, then reply either to public channel or via /msg, based on how the command was received. E is the original event, and FROM_P...
4d50683af49eaee16b37bd91a6d4c97b720d04ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3953/4d50683af49eaee16b37bd91a6d4c97b720d04ec/wolfbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3076, 12, 2890, 16, 425, 16, 1797, 16, 628, 67, 1152, 4672, 3536, 2503, 353, 326, 445, 2566, 17334, 18626, 9573, 279, 1071, 578, 3238, 883, 527, 4638, 358, 326, 2512, 18, 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, 741, 67, 3076, 12, 2890, 16, 425, 16, 1797, 16, 628, 67, 1152, 4672, 3536, 2503, 353, 326, 445, 2566, 17334, 18626, 9573, 279, 1071, 578, 3238, 883, 527, 4638, 358, 326, 2512, 18, 261,...
self.nanohive_choose_btn.setGeometry(QRect(475,23,95,30))
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, ...
if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response)
if hasattr(response, 'getheader'): if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response) else: stream = response
def parse_response(self, response): # read response data from httpresponse, and parse it if response.getheader("Content-Encoding", "") == "gzip": stream = GzipDecodedResponse(response) else: stream = response
2dd997b0f2dfa3d6e747392ac070548642485c62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/2dd997b0f2dfa3d6e747392ac070548642485c62/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2740, 12, 2890, 16, 766, 4672, 468, 855, 766, 501, 628, 1062, 2740, 16, 471, 1109, 518, 225, 309, 3859, 12, 2740, 16, 296, 75, 546, 18105, 11, 4672, 309, 766, 18, 75, 546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2740, 12, 2890, 16, 766, 4672, 468, 855, 766, 501, 628, 1062, 2740, 16, 471, 1109, 518, 225, 309, 3859, 12, 2740, 16, 296, 75, 546, 18105, 11, 4672, 309, 766, 18, 75, 546, ...
msg = "mime type: %s" % mime_type
self.found_type = None
def have_type(self, typefind, probability, caps): mime_type = caps.to_string() msg = "mime type: %s" % mime_type for t in mime_whitelist: if t in mime_type: msg += " -> accepted!" self.found_type = mime_type log(msg)
379396c6578d6b0d4b61f3821f039f5fb9768a5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/379396c6578d6b0d4b61f3821f039f5fb9768a5f/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1240, 67, 723, 12, 2890, 16, 618, 4720, 16, 11331, 16, 15788, 4672, 4892, 67, 723, 273, 15788, 18, 869, 67, 1080, 1435, 365, 18, 7015, 67, 723, 273, 599, 364, 268, 316, 4892, 67, 204...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1240, 67, 723, 12, 2890, 16, 618, 4720, 16, 11331, 16, 15788, 4672, 4892, 67, 723, 273, 15788, 18, 869, 67, 1080, 1435, 365, 18, 7015, 67, 723, 273, 599, 364, 268, 316, 4892, 67, 204...
sort_on = ('+', find_sort_key(linkcl))
sort_on = ('+', linkcl.orderprop())
def menu(self, size=None, height=None, showid=0, additional=[], value=None, sort_on=None, **conditions): """ Render a form <select> list for this property.
46ef9c65888403af5dd6d8a3ae90b5b5fee16d94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1906/46ef9c65888403af5dd6d8a3ae90b5b5fee16d94/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 12, 2890, 16, 963, 33, 7036, 16, 2072, 33, 7036, 16, 2405, 350, 33, 20, 16, 3312, 22850, 6487, 460, 33, 7036, 16, 1524, 67, 265, 33, 7036, 16, 2826, 6381, 4672, 3536, 6987, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 12, 2890, 16, 963, 33, 7036, 16, 2072, 33, 7036, 16, 2405, 350, 33, 20, 16, 3312, 22850, 6487, 460, 33, 7036, 16, 1524, 67, 265, 33, 7036, 16, 2826, 6381, 4672, 3536, 6987, 279...
self.config.webRepositoryLogin = str(self.loginUser.text())
self.config.webRepositoryLogin = str(self.dialog.loginUser.text())
def clicked_on_login(self): """ Attempts to log into web repository stores auth cookie for session """ from gui.application import VistrailsApplication
9001cae1a3809039b46aed5d00bc5877b84f3544 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/9001cae1a3809039b46aed5d00bc5877b84f3544/repository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17688, 67, 265, 67, 5819, 12, 2890, 4672, 3536, 6020, 9585, 358, 613, 1368, 3311, 3352, 9064, 1357, 3878, 364, 1339, 3536, 628, 13238, 18, 3685, 1930, 776, 3337, 15208, 3208, 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, 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, 17688, 67, 265, 67, 5819, 12, 2890, 4672, 3536, 6020, 9585, 358, 613, 1368, 3311, 3352, 9064, 1357, 3878, 364, 1339, 3536, 628, 13238, 18, 3685, 1930, 776, 3337, 15208, 3208, 2, -100, -1...
self.gromacs_checkbox = QtGui.QCheckBox(self.file_locations_grp) self.gromacs_checkbox.setObjectName("gromacs_checkbox") self.hboxlayout53.addWidget(self.gromacs_checkbox) self.gromacs_label = QtGui.QLabel(self.file_locations_grp) self.gromacs_label.setObjectName("gromacs_label") self.hboxlayout53.addWidget(self.groma...
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,917,661).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
752b48c67dcf97437d2cb83fa267b09487665da0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/752b48c67dcf97437d2cb83fa267b09487665da0/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
buildfarm = CachingBuildFarm(cachedirname=opts.cachedirname)
from buildfarm.sqldb import StormCachingBuildFarm buildfarm = StormCachingBuildFarm()
def __call__(self, environ, start_response): form = cgi.FieldStorage(fp=environ['wsgi.input'], environ=environ) fn_name = get_param(form, 'function') or '' myself = wsgiref.util.application_uri(environ)
55d7006bc0710c2cb7e82ab4337095cf56ffcb6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/55d7006bc0710c2cb7e82ab4337095cf56ffcb6f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 276, 10052, 18, 974, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 13, 2295, 67, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 276, 10052, 18, 974, 3245, 12, 7944, 33, 28684, 3292, 28539, 18, 2630, 17337, 5473, 33, 28684, 13, 2295, 67, 529...
FastParser = None class SlowParser(xmllib.XMLParser):
class ExpatParser: def __init__(self, target): self._parser = parser = expat.ParserCreate(None, None) self._target = target parser.StartElementHandler = target.start parser.EndElementHandler = target.end parser.CharacterDataHandler = target.data encoding = None if not parser.returns_unicode: encoding = "utf-8" target...
def handle_entityref(self, entity): # <string> entity try: self.handle_data(self.entity[entity]) except KeyError: self.handle_data("&%s;" % entity)
cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 1096, 1734, 12, 2890, 16, 1522, 4672, 468, 411, 1080, 34, 1522, 775, 30, 365, 18, 4110, 67, 892, 12, 2890, 18, 1096, 63, 1096, 5717, 1335, 4999, 30, 365, 18, 4110, 67, 892,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 1096, 1734, 12, 2890, 16, 1522, 4672, 468, 411, 1080, 34, 1522, 775, 30, 365, 18, 4110, 67, 892, 12, 2890, 18, 1096, 63, 1096, 5717, 1335, 4999, 30, 365, 18, 4110, 67, 892,...
settingsList = ["sampleMethod", "nFolds", "pLearning", "pRepeat", "precision", "selectedCScores", "selectedRScores", "applyOnAnyChange"]
settingsList = ["nFolds", "pLearning", "pRepeat", "precision", "selectedCScores", "selectedRScores", "applyOnAnyChange", "resampling"]
def __init__(self, name, label, f, show=True, cmBased=False): self.name = name self.label = label self.f = f self.show = show self.cmBased = cmBased
b6da925d044fec442a4b02d9a5fa7e753c24afa5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/b6da925d044fec442a4b02d9a5fa7e753c24afa5/OWTestLearners.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1433, 16, 284, 16, 2405, 33, 5510, 16, 5003, 9802, 33, 8381, 4672, 365, 18, 529, 273, 508, 365, 18, 1925, 273, 1433, 365, 18, 74, 273, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1433, 16, 284, 16, 2405, 33, 5510, 16, 5003, 9802, 33, 8381, 4672, 365, 18, 529, 273, 508, 365, 18, 1925, 273, 1433, 365, 18, 74, 273, 284, ...
print u"Oppgradering fullført. Logg følger: \n\n=========\n" print opp.lesLogg()
print u"Oppgradering fullført. Den nye databasen heter faktura.nydb. \nLogg finnes i faktura.oppgradering.log. "
def lesLogg(self): self.logg.seek(0) r = self.logg.read() self.logg.close() return r
6994ec428ea0e01059014a8f65b2a215e28c11fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3611/6994ec428ea0e01059014a8f65b2a215e28c11fa/oppgradering.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18022, 1343, 75, 12, 2890, 4672, 365, 18, 1330, 75, 18, 16508, 12, 20, 13, 436, 273, 365, 18, 1330, 75, 18, 896, 1435, 365, 18, 1330, 75, 18, 4412, 1435, 327, 436, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18022, 1343, 75, 12, 2890, 4672, 365, 18, 1330, 75, 18, 16508, 12, 20, 13, 436, 273, 365, 18, 1330, 75, 18, 896, 1435, 365, 18, 1330, 75, 18, 4412, 1435, 327, 436, 2, -100, -100, -...
pass
pass except: self.PrintDebug("some exception was caught in the logwriter loop...\nhere it is:\n", sys.exc_info()) pass self.finished.set()
def start(self): '''This is the main workhorse function. Keeps popping events off the queue, and processing them, until program quits ''' ## line format: ## date; time (1 minute resolution); fullapppath; hwnd; username; window title; eventdata ## ## event data: ascii if normal key, escaped if "special" key, escaped if ...
b22b4cecb9bdecd99f5dea6b9ea6d9e7beaedc1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3638/b22b4cecb9bdecd99f5dea6b9ea6d9e7beaedc1d/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980, ...
self._send_log_msg(logMessage, '%s set to %s for %s' % (newAcl, statusname, user['human_name']), identity.current.user, (pkg,), otherEmail=(user['email'],))
self._send_log_msg(logMessage, '%s had acl change status' % ( pkg.package.name), identity.current.user, (pkg,), otherEmail=(user['email'],))
def set_acl_status(self, pkgid, personid, newAcl, statusname): ### FIXME: Changing Obsolete into "" sounds like it should be # Pushed out to the view (template) instead of being handled in the # controller. # We are making Obsolete into "" for our interface. Need to reverse # that here. if not statusname or not statu...
86e82a2b4d3ce67d7dd2881604f20fc61759f00b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/86e82a2b4d3ce67d7dd2881604f20fc61759f00b/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10150, 67, 2327, 12, 2890, 16, 3475, 350, 16, 6175, 350, 16, 394, 13538, 16, 1267, 529, 4672, 11849, 9852, 30, 1680, 18183, 531, 2038, 19513, 1368, 1408, 272, 9284, 3007, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10150, 67, 2327, 12, 2890, 16, 3475, 350, 16, 6175, 350, 16, 394, 13538, 16, 1267, 529, 4672, 11849, 9852, 30, 1680, 18183, 531, 2038, 19513, 1368, 1408, 272, 9284, 3007, 518, ...
try: rval = config.keys() except (AttributeError, TypeError):
if hasattr(config, 'keys'): return sorted(config.keys()) else:
def listKeys(self, config): """Return sorted keys of config. """ try: rval = config.keys() except (AttributeError, TypeError): return [] rval.sort() return rval
06eade0995d8174cd945dadb36f33f74d675fd22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11316/06eade0995d8174cd945dadb36f33f74d675fd22/permissions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2396, 12, 2890, 16, 642, 4672, 3536, 990, 3115, 1311, 434, 642, 18, 3536, 309, 3859, 12, 1425, 16, 296, 2452, 11, 4672, 327, 3115, 12, 1425, 18, 2452, 10756, 469, 30, 327, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2396, 12, 2890, 16, 642, 4672, 3536, 990, 3115, 1311, 434, 642, 18, 3536, 309, 3859, 12, 1425, 16, 296, 2452, 11, 4672, 327, 3115, 12, 1425, 18, 2452, 10756, 469, 30, 327, 5378, ...
argument is a list of strings or 2-tuples, If the translation is a
argument is a list of strings or 2-tuples. If the translation is a
def reccat_multi(self, rec_list, primary_key, translations): """Create a list of dictionaries from a list of records. This method has complex behavior to support translations of several PDB records into a Python format. The primary key is used to seperate the dictionaries within the list, and the translation argument...
39233ce8921d1424c03c7e0806f0a519dab74e10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/39233ce8921d1424c03c7e0806f0a519dab74e10/PDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 952, 270, 67, 7027, 12, 2890, 16, 1950, 67, 1098, 16, 3354, 67, 856, 16, 7863, 4672, 3536, 1684, 279, 666, 434, 16176, 628, 279, 666, 434, 3853, 18, 225, 1220, 707, 711, 7233, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 952, 270, 67, 7027, 12, 2890, 16, 1950, 67, 1098, 16, 3354, 67, 856, 16, 7863, 4672, 3536, 1684, 279, 666, 434, 16176, 628, 279, 666, 434, 3853, 18, 225, 1220, 707, 711, 7233, 6...
'datas': base64.encodestring(data),
'datas': base64.encodestring(data or ''),
def put(self, cursor, user, uri, data, content_type, context=None, cache=None): from DAV.errors import DAV_Forbidden from DAV.utils import get_uriparentpath, get_urifilename object_name, object_id = self._uri2object(cursor, user, get_uriparentpath(uri), context=context, cache=cache) if not object_name \ or object_name ...
dc30ed6f27068640a63e726374ea7c6b2dd57240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/dc30ed6f27068640a63e726374ea7c6b2dd57240/webdav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 501, 16, 913, 67, 723, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 628, 463, 5856, 18, 4324, 1930, 463, 5856, 67, 16553, 628, 463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 12, 2890, 16, 3347, 16, 729, 16, 2003, 16, 501, 16, 913, 67, 723, 16, 819, 33, 7036, 16, 1247, 33, 7036, 4672, 628, 463, 5856, 18, 4324, 1930, 463, 5856, 67, 16553, 628, 463, ...
if self._options.snapshot: url = entries.pop(name)
def GetURLAndRev(name, original_url): if not original_url: return None url, _ = gclient_utils.SplitUrlRevision(original_url) scm = gclient_scm.CreateSCM(original_url, self.root_dir(), name) return '%s@%s' % (url, scm.revinfo(self._options, [], None))
ac8e7b5460fdba96cdea5df46d2ead08a0501949 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/ac8e7b5460fdba96cdea5df46d2ead08a0501949/gclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1785, 1876, 10070, 12, 529, 16, 2282, 67, 718, 4672, 309, 486, 2282, 67, 718, 30, 327, 599, 880, 16, 389, 273, 314, 2625, 67, 5471, 18, 5521, 1489, 7939, 12, 8830, 67, 718, 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, 968, 1785, 1876, 10070, 12, 529, 16, 2282, 67, 718, 4672, 309, 486, 2282, 67, 718, 30, 327, 599, 880, 16, 389, 273, 314, 2625, 67, 5471, 18, 5521, 1489, 7939, 12, 8830, 67, 718, 13, ...
alt_down = self.alt_pressed, control_down = self.ctrl_pressed, shift_down = self.shift_pressed,
alt_down = event.alt_pressed, control_down = event.ctrl_pressed, shift_down = event.shift_pressed,
def _create_mouse_event(self, event): """ Convert a Pyglet mouse event into an Enable MouseEvent. Since Pyglet doesn't actually have a mouse event object like WX or Qt, PygletWindow actually does most of the work of creating an Enable MouseEvent when various things happen, and calls AbstractWindow._handle_mouse_event ...
c3ace548ce0fac0ab278c7cec88143137d42e8ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/c3ace548ce0fac0ab278c7cec88143137d42e8ad/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 11697, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 4037, 279, 453, 4338, 1810, 7644, 871, 1368, 392, 9677, 17013, 1133, 18, 225, 7897, 453, 4338, 1810, 3302, 1404, 6013, 1240...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 67, 11697, 67, 2575, 12, 2890, 16, 871, 4672, 3536, 4037, 279, 453, 4338, 1810, 7644, 871, 1368, 392, 9677, 17013, 1133, 18, 225, 7897, 453, 4338, 1810, 3302, 1404, 6013, 1240...
navtrail_previous_links = bibformatadminlib.getnavtrail(''' &gt; <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a> &gt; %s''' % (config.weburl, ln, _("Manage Knowledge Bases"), _("Delete Knowledge Base")))
navtrail_previous_links = bibformatadminlib.getnavtrail(''' &gt; <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a> &gt; %s''' % (config.weburl, ln, _("Manage Knowledge Bases"), _("Delete Knowledge Base")))
def kb_delete(req, kb, ln=config.cdslang, chosen_option="", sortby="to"): """ Deletes an existing kb @param kb the kb id to delete """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' &gt; <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_man...
f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9182, 67, 3733, 12, 3658, 16, 9182, 16, 7211, 33, 1425, 18, 4315, 2069, 539, 16, 10447, 67, 3482, 1546, 3113, 1524, 1637, 1546, 869, 6, 4672, 3536, 17973, 392, 2062, 9182, 225, 632, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9182, 67, 3733, 12, 3658, 16, 9182, 16, 7211, 33, 1425, 18, 4315, 2069, 539, 16, 10447, 67, 3482, 1546, 3113, 1524, 1637, 1546, 869, 6, 4672, 3536, 17973, 392, 2062, 9182, 225, 632, 89...
@param axisAndAxisAtomPairsToBond: A list containing pairs of the
@param axis_and_axis_atomPairs_to_bond: A list containing pairs of the
def _bond_axisNeighbors_with_orig_axisAtoms(self, axisAndAxisAtomPairsToBond ): """ The operation that replaces the overlapping axis atoms of the new dnas with the corresponding axis atoms of the original dna could leave out some neighboring axis atoms of the *new dna* without bonds. So those need to be bonded with the...
0f66720dc7592e697b0246deb3b5551a198d4c93 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/0f66720dc7592e697b0246deb3b5551a198d4c93/B_Dna_PAM3_SingleStrand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26425, 67, 4890, 27053, 67, 1918, 67, 4949, 67, 4890, 14280, 12, 2890, 16, 2654, 1876, 6558, 3641, 10409, 774, 9807, 262, 30, 3536, 1021, 1674, 716, 12878, 326, 18620, 2654, 9006, 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, 389, 26425, 67, 4890, 27053, 67, 1918, 67, 4949, 67, 4890, 14280, 12, 2890, 16, 2654, 1876, 6558, 3641, 10409, 774, 9807, 262, 30, 3536, 1021, 1674, 716, 12878, 326, 18620, 2654, 9006, 4...
if os.path.isfile(db_name): os.remove(db_name)
for name in glob.glob(db_name+"*"): if os.path.isfile(name): os.remove(name)
def testNoDBMAvailable(self): import tempfile from spambayes.storage import open_storage
bca9bbbfb105499e97f4ce773a9d6d00633a21d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6126/bca9bbbfb105499e97f4ce773a9d6d00633a21d0/test_storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2279, 2290, 49, 5268, 12, 2890, 4672, 1930, 13275, 628, 1694, 2536, 528, 281, 18, 5697, 1930, 1696, 67, 5697, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2279, 2290, 49, 5268, 12, 2890, 4672, 1930, 13275, 628, 1694, 2536, 528, 281, 18, 5697, 1930, 1696, 67, 5697, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
not event.isBetween(*currentRange))
not event.isBetween(*currentRange, **inclusive))
def HandleRemoveAndYieldChanged(self, currentRange): """ Operate on self.visibleEvents, remove any items that have been changed or removed from self.visibleEvents, yield (op, event), where op is 'add', 'change', or 'remove'. For changes to recurring events, yield occurrences in range, not masters. """ addedItems, rem...
5ed7539ebd7fa2ab8c0f8e6e635af744540da54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/5ed7539ebd7fa2ab8c0f8e6e635af744540da54e/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 3288, 1876, 16348, 5033, 12, 2890, 16, 783, 2655, 4672, 3536, 7692, 340, 603, 365, 18, 8613, 3783, 16, 1206, 1281, 1516, 716, 1240, 2118, 3550, 578, 3723, 628, 365, 18, 8613, 3783,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 3288, 1876, 16348, 5033, 12, 2890, 16, 783, 2655, 4672, 3536, 7692, 340, 603, 365, 18, 8613, 3783, 16, 1206, 1281, 1516, 716, 1240, 2118, 3550, 578, 3723, 628, 365, 18, 8613, 3783,...
if o.verbose: print('Out timecodes: %s\n' % ', '.join(['(%s,%s)' % (formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType)) for i in range(len(Trims2ts))]))
if o.verbose: print('Out timecodes: %s\n' % ', '.join(['(%s,%s)' % (formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1])) for i in range(len(Trims2ts))]))
def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action...
71f96ef73d9915935425b67dfff621761ff6819f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14863/71f96ef73d9915935425b67dfff621761ff6819f/vfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, ...
self.header = None
self.hdr = ""
def close(self): "Close a session, freeing resources." if self.handle: self.handle.close() if self.header: self.header.close() self.handle = None self.header = None self.payload = ""
4572567594c0451a09430bb0de12c8c95beafd10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10805/4572567594c0451a09430bb0de12c8c95beafd10/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 315, 4605, 279, 1339, 16, 4843, 310, 2703, 1199, 309, 365, 18, 4110, 30, 225, 365, 18, 4110, 18, 4412, 1435, 309, 365, 18, 3374, 30, 225, 365, 18, 3374, 18, 441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 315, 4605, 279, 1339, 16, 4843, 310, 2703, 1199, 309, 365, 18, 4110, 30, 225, 365, 18, 4110, 18, 4412, 1435, 309, 365, 18, 3374, 30, 225, 365, 18, 3374, 18, 441...
(headerinfo, additional_headers, body) = self.get_header_body_tuple( \ prepend, append, **kwargs)
(headerinfo, additional_headers, body) = self.get_header_body_tuple( prepend, append, **kwargs)
def get_mail_text(self, prepend='', append='', **kwargs): """Get header and body of e-mail as text (string)
cc31e39e16f8d33c50092a52df994848cd7318a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/cc31e39e16f8d33c50092a52df994848cd7318a9/PloneFormMailer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4408, 67, 955, 12, 2890, 16, 8254, 2218, 2187, 714, 2218, 2187, 2826, 4333, 4672, 3536, 967, 1446, 471, 1417, 434, 425, 17, 4408, 487, 977, 261, 1080, 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, 336, 67, 4408, 67, 955, 12, 2890, 16, 8254, 2218, 2187, 714, 2218, 2187, 2826, 4333, 4672, 3536, 967, 1446, 471, 1417, 434, 425, 17, 4408, 487, 977, 261, 1080, 13, 2, -100, -100, -100,...
desc = result[0][13]
desc = result[0][12]
def _cbBug(self, result): l = [] desc = result[0][13] email = cgi.escape(result[0][2], 1) result = map(cgi.escape, result[0]) l.append('<h3>%s</h3>\n' % result[11]) l.append('<p>\n<b>Submitted by <a href="mailto:%s">%s</a> on %s</b><br>\n' % (email, result[1], result[4])) l.append('<b>Last modified:</b> %s<br>\n' % res...
69f3d9f473b7af514e3260ad3e360aea73c3943d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/69f3d9f473b7af514e3260ad3e360aea73c3943d/gadgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7358, 19865, 12, 2890, 16, 563, 4672, 328, 273, 5378, 3044, 273, 563, 63, 20, 6362, 2138, 65, 2699, 273, 276, 10052, 18, 6939, 12, 2088, 63, 20, 6362, 22, 6487, 404, 13, 563, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7358, 19865, 12, 2890, 16, 563, 4672, 328, 273, 5378, 3044, 273, 563, 63, 20, 6362, 2138, 65, 2699, 273, 276, 10052, 18, 6939, 12, 2088, 63, 20, 6362, 22, 6487, 404, 13, 563, 27...
sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be an integer >= 2
def list(self, n): self._eval(n) # force computation return self._b[:n]
5a0329316f59468fea5c35f455df9e01cba65b0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5a0329316f59468fea5c35f455df9e01cba65b0a/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 365, 6315, 8622, 12, 82, 13, 282, 468, 2944, 16039, 327, 365, 6315, 70, 10531, 82, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 12, 2890, 16, 290, 4672, 365, 6315, 8622, 12, 82, 13, 282, 468, 2944, 16039, 327, 365, 6315, 70, 10531, 82, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.assert_(msg.get_from() == 'MAILER-DAEMON %s' %
self.assertEqual(msg.get_from(), 'MAILER-DAEMON %s' %
def test_maildir_to_mboxmmdf(self): # Convert MaildirMessage to mboxmessage and MMDFMessage pairs = (('D', ''), ('F', 'F'), ('P', ''), ('R', 'A'), ('S', 'R'), ('T', 'D'), ('DFPRST', 'RDFA')) for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage): msg_maildir = mailbox.MaildirMessage(_sample_message) msg_maildir.set_d...
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2540, 545, 481, 67, 869, 67, 81, 2147, 81, 1264, 74, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 312, 2147, 2150, 471, 18295, 4577, 1079, 5574, 273, 261, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2540, 545, 481, 67, 869, 67, 81, 2147, 81, 1264, 74, 12, 2890, 4672, 468, 4037, 490, 69, 545, 481, 1079, 358, 312, 2147, 2150, 471, 18295, 4577, 1079, 5574, 273, 261, 2668, ...
return getattr(self, '%s_property_%s' % (action, name), None)
return getattr(self, '%s_property_%s' % (action, propname), None)
def _get_prop_handler(self, propname, action): return getattr(self, '%s_property_%s' % (action, name), None)
0b442624d88f92d1d77c439ad5fd3dfdd031164d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11322/0b442624d88f92d1d77c439ad5fd3dfdd031164d/delegates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5986, 67, 4176, 12, 2890, 16, 2270, 529, 16, 1301, 4672, 327, 3869, 12, 2890, 16, 1995, 87, 67, 4468, 10185, 87, 11, 738, 261, 1128, 16, 508, 3631, 599, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 67, 5986, 67, 4176, 12, 2890, 16, 2270, 529, 16, 1301, 4672, 327, 3869, 12, 2890, 16, 1995, 87, 67, 4468, 10185, 87, 11, 738, 261, 1128, 16, 508, 3631, 599, 13, 2, -100, ...
parent = permgroup_named.SymmetricGroup(self._gap_().LargestMovedPoint())
parent = sage.groups.perm_gps.permgroup_named.SymmetricGroup(self._gap_().LargestMovedPoint())
def __init__(self, g, parent = None, check = True): r""" Create element of a permutation group.
1b19c978f3877b7d9fb2de9763c3f7fd25752943 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1b19c978f3877b7d9fb2de9763c3f7fd25752943/permgroup_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 16, 982, 273, 599, 16, 866, 273, 1053, 4672, 436, 8395, 1788, 930, 434, 279, 17440, 1041, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 314, 16, 982, 273, 599, 16, 866, 273, 1053, 4672, 436, 8395, 1788, 930, 434, 279, 17440, 1041, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
andi t3, t3, 1 or reg, reg, t3
andi t4, t3, 1, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_P { rdip t7 mov t1, t1, t0, dataSize=8 ld t1, seg, riprel, disp # Determine if the input was zero, and also move it to a temp reg. and t1, t1, t1, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register mov reg, reg, t0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, ...
8e2991b529fd63f4d7c56518ebfbd2424f964172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6787/8e2991b529fd63f4d7c56518ebfbd2424f964172/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 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, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 16, ...
self.vbox.current_machine.usb_master = { 'name' : name, 'path' : usb[0] }
self.vbox.current_machine.usb_master = { 'name' : "UFO", 'path' : usb[0] }
def check_usb_devices(self): old_attachmnts = self.vbox.current_machine.usb_attachmnts.copy()
45e478f965755cc36c67f4741b1c325af2d1acb2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/45e478f965755cc36c67f4741b1c325af2d1acb2/osbackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 25525, 67, 12506, 12, 2890, 4672, 1592, 67, 7331, 21818, 87, 273, 365, 18, 90, 2147, 18, 2972, 67, 9149, 18, 25525, 67, 7331, 21818, 87, 18, 3530, 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, 866, 67, 25525, 67, 12506, 12, 2890, 4672, 1592, 67, 7331, 21818, 87, 273, 365, 18, 90, 2147, 18, 2972, 67, 9149, 18, 25525, 67, 7331, 21818, 87, 18, 3530, 1435, 2, -100, -100, -100, ...
if same_type(v, []) or same_type(v, ()): w('\t<field name="%s">' % str(f.getName())) w('\t\t<list>') for item in v: type, value = convertValue(item) w('\t\t\t<value type="%s">%s</field>' % (type, value)) w('\t\t</list>') w('\t</field>') else: type, value = convertValue(v) w('\t<field name="%s" type="%s">%s</field>' % (...
writeField(f.getName(), v)
def vXML(v): if same_type(v, ''): w('\t\t<value type="string">%s</value>' % unicode(v, enc, 'replace').encode('utf-8')) elif same_type(v, 0): w('\t\t<value type="int">%s</value>' % str(v)) elif same_type(v, u''): w('\t\t<value type="string">%s</value>' % v.encode('utf-8')) elif same_type(v, 0.0): w('\t\t<value type="fl...
9c56bb0e89ca1fab4b0466cd882af974ba10ef1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/9c56bb0e89ca1fab4b0466cd882af974ba10ef1e/pcng_issue_xml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 4201, 12, 90, 4672, 309, 1967, 67, 723, 12, 90, 16, 875, 4672, 341, 2668, 64, 88, 64, 88, 32, 1132, 618, 1546, 1080, 24038, 87, 1757, 1132, 1870, 738, 5252, 12, 90, 16, 2446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 4201, 12, 90, 4672, 309, 1967, 67, 723, 12, 90, 16, 875, 4672, 341, 2668, 64, 88, 64, 88, 32, 1132, 618, 1546, 1080, 24038, 87, 1757, 1132, 1870, 738, 5252, 12, 90, 16, 2446, ...