rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
subtree = self.children[prefix] subtree._unindex_term(suffix, doc_number)
if prefix in self.children: subtree = self.children[prefix] subtree._unindex_term(suffix, doc_number)
def _unindex_term(self, word, doc_number): if word: prefix, suffix = word[0], word[1:] subtree = self.children[prefix] subtree._unindex_term(suffix, doc_number) else: del self.documents[doc_number] # Update resource tree_rsrc = self.root.tree_handler.resource docs = self.root.docs_handler docs_rsrc = docs.resource # Search the document slot tree_slot = 16 + self.slot * 16 docs_slot_r = tree_rsrc[tree_slot+4:tree_slot+8] docs_slot_n = IO.decode_link(docs_slot_r) # Free slot prev_slot_n = prev_slot = None while docs_slot_n is not None: docs_slot = 12 + docs_slot_n * 12 x = IO.decode_uint32(docs_rsrc[docs_slot:docs_slot+4]) next_slot_r = docs_rsrc[docs_slot+8:docs_slot+12] next_slot_n = IO.decode_link(next_slot_r) if x == doc_number: # Remove from the documents list if prev_slot_n is None: tree_rsrc[tree_slot+4:tree_slot+8] = next_slot_r else: docs_rsrc[prev_slot+8:prev_slot+12] = next_slot_r # Add to the free list old_first_r = docs_rsrc[8:12] docs_rsrc[docs_slot+8:docs_slot+12] = old_first_r docs_rsrc[8:12] = IO.encode_link(docs_slot_n) # Update on memory docs.first_empty = docs_slot_n # Done break # Next prev_slot_n, prev_slot = docs_slot_n, docs_slot docs_slot_n = next_slot_n else: raise ValueError, 'The database is corrupted!!'
0f25159ac78f6533e983857dd8eb3f011e7ae412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/0f25159ac78f6533e983857dd8eb3f011e7ae412/IIndex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 1615, 67, 6408, 12, 2890, 16, 2076, 16, 997, 67, 2696, 4672, 309, 2076, 30, 1633, 16, 3758, 273, 2076, 63, 20, 6487, 2076, 63, 21, 26894, 309, 1633, 316, 365, 18, 5906, 30, 12773, 273, 365, 18, 5906, 63, 3239, 65, 12773, 6315, 318, 1615, 67, 6408, 12, 8477, 16, 997, 67, 2696, 13, 469, 30, 1464, 365, 18, 24795, 63, 2434, 67, 2696, 65, 468, 2315, 1058, 2151, 67, 86, 4816, 273, 365, 18, 3085, 18, 3413, 67, 4176, 18, 3146, 3270, 273, 365, 18, 3085, 18, 8532, 67, 4176, 3270, 67, 86, 4816, 273, 3270, 18, 3146, 468, 5167, 326, 1668, 4694, 2151, 67, 14194, 273, 2872, 397, 365, 18, 14194, 380, 2872, 3270, 67, 14194, 67, 86, 273, 2151, 67, 86, 4816, 63, 3413, 67, 14194, 15, 24, 30, 3413, 67, 14194, 15, 28, 65, 3270, 67, 14194, 67, 82, 273, 1665, 18, 3922, 67, 1232, 12, 8532, 67, 14194, 67, 86, 13, 468, 15217, 4694, 2807, 67, 14194, 67, 82, 273, 2807, 67, 14194, 273, 599, 1323, 3270, 67, 14194, 67, 82, 353, 486, 599, 30, 3270, 67, 14194, 273, 2593, 397, 3270, 67, 14194, 67, 82, 380, 2593, 619, 273, 1665, 18, 3922, 67, 11890, 1578, 12, 8532, 67, 86, 4816, 63, 8532, 67, 14194, 30, 8532, 67, 14194, 15, 24, 5717, 1024, 67, 14194, 67, 86, 273, 3270, 67, 86, 4816, 63, 8532, 67, 14194, 15, 28, 30, 8532, 67, 14194, 15, 2138, 65, 1024, 67, 14194, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 1615, 67, 6408, 12, 2890, 16, 2076, 16, 997, 67, 2696, 4672, 309, 2076, 30, 1633, 16, 3758, 273, 2076, 63, 20, 6487, 2076, 63, 21, 26894, 309, 1633, 316, 365, 18, 5906, 30, 12773, 273, 365, 18, 5906, 63, 3239, 65, 12773, 6315, 318, 1615, 67, 6408, 12, 8477, 16, 997, 67, 2696, 13, 469, 30, 1464, 365, 18, 24795, 63, 2434, 67, 2696, 65, 468, 2315, 1058, 2151, 67, 86, 4816, 273, 365, 18, 3085, 18, 3413, 67, 4176, 18, 3146, 3270, 273, 365, 18, 3085, 18, 8532, 67, 4176, 3270, 67, 86, 4816, 273, 3270, 18, 3146, 468, 5167, 326, 1668, 4694, 2151, 67, 14194, 273, 2872, 397, 365, 18, 14194, 380, 2872, 2 ]
return self.name.lower() == other.name.lower()
return str(self.name).lower() == str(other.name).lower()
def __eq__(self, other): if isinstance(other, SimpleRecord): return self.name.lower() == other.name.lower() return 0
8c5744280915832cf4f388aaad8f3e6e46f23b1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8c5744280915832cf4f388aaad8f3e6e46f23b1f/dns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 309, 1549, 12, 3011, 16, 4477, 2115, 4672, 327, 609, 12, 2890, 18, 529, 2934, 8167, 1435, 422, 609, 12, 3011, 18, 529, 2934, 8167, 1435, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 1549, 12, 3011, 16, 4477, 2115, 4672, 327, 609, 12, 2890, 18, 529, 2934, 8167, 1435, 422, 609, 12, 3011, 18, 529, 2934, 8167, 1435, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
config.positioner.storage = configElement_nonSave("storage", configSelection, 0, ("1", "2", "3"))
storepos = [] for x in range(255): storepos.append(str(x)) config.positioner.storage = configElement_nonSave("storage", configSelection, 0, storepos)
def createConfig(self): config.positioner = ConfigSubsection() config.positioner.tune = configElement_nonSave("tune", configNothing, 0, None) config.positioner.move = configElement_nonSave("move", configNothing, 0, None) config.positioner.limits = configElement_nonSave("limits", configNothing, 0, None) config.positioner.storage = configElement_nonSave("storage", configSelection, 0, ("1", "2", "3"))
96c90246cf97606521e7ceca8fcb7e6fe70703fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/96c90246cf97606521e7ceca8fcb7e6fe70703fc/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 809, 12, 2890, 4672, 642, 18, 3276, 264, 273, 1903, 1676, 3464, 1435, 642, 18, 3276, 264, 18, 88, 7556, 273, 642, 1046, 67, 5836, 4755, 2932, 88, 7556, 3113, 642, 23814, 16, 374, 16, 599, 13, 642, 18, 3276, 264, 18, 8501, 273, 642, 1046, 67, 5836, 4755, 2932, 8501, 3113, 642, 23814, 16, 374, 16, 599, 13, 642, 18, 3276, 264, 18, 14270, 273, 642, 1046, 67, 5836, 4755, 2932, 14270, 3113, 642, 23814, 16, 374, 16, 599, 13, 1707, 917, 273, 5378, 364, 619, 316, 1048, 12, 10395, 4672, 1707, 917, 18, 6923, 12, 701, 12, 92, 3719, 642, 18, 3276, 264, 18, 5697, 273, 642, 1046, 67, 5836, 4755, 2932, 5697, 3113, 642, 6233, 16, 374, 16, 1707, 917, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3464, 1435, 642, 18, 3276, 264, 18, 88, 7556, 273, 642, 1046, 67, 5836, 4755, 2932, 88, 7556, 3113, 642, 23814, 16, 374, 16, 599, 13, 642, 18, 3276, 264, 18, 8501, 273, 642, 1046, 67, 5836, 4755, 2932, 8501, 3113, 642, 23814, 16, 374, 16, 599, 13, 642, 18, 3276, 264, 18, 14270, 273, 642, 1046, 67, 5836, 4755, 2932, 14270, 3113, 642, 23814, 16, 374, 16, 599, 13, 1707, 917, 273, 5378, 364, 619, 316, 1048, 12, 10395, 4672, 1707, 917, 18, 6923, 12, 701, 12, 92, 3719, 642, 18, 3276, 264, 18, 5697, 273, 642, 1046, 67, 5836, 4755, 2932, 5697, 3113, 642, 2 ]
'bd6566af7b3bfa28f917aa545bf4174661817d79' : 'http://www.asturlinux.org/~jsmanrique/foaf.rdf'
'bd6566af7b3bfa28f917aa545bf4174661817d79' : 'http://www.asturlinux.org/~jsmanrique/foaf.rdf', '97d9756f1281858d0e9e4489003073e4986546ce' : 'http://xtrasgu.asturlinux.org/descargas/foaf.rdf'
def getFoaf(self, mail): """ Services to obtain FOAF URI from an email address @param mail: an email address @type mail: string @return: the FOAF URI of this email owner @rtype: string @todo customize foaf service """ mail_sha1sum = self.getShaMail(mail) # TODO: customize this with a real service # # ideas: - PyGoogle <http://pygoogle.sourceforge.net/> # import google # google.LICENSE_KEY = '...' # data = google.doGoogleSearch('119222cf3a2893a375cc4f884a0138155c771415 filetype:rdf') # # - Swoogle <http://swoogle.umbc.edu/> foafs = { '119222cf3a2893a375cc4f884a0138155c771415' : 'http://www.wikier.org/foaf.rdf', '98a99390f2fe9395041bddc41e933f50e59a5ecb' : 'http://www.asturlinux.org/~berrueta/foaf.rdf', '8114083efd55b6d18cae51f1591dd9906080ae89' : 'http://di002.edv.uniovi.es/~labra/labraFoaf.rdf', '84d076726727b596b08198e26ef37e4817353e97' : 'http://frade.no-ip.info:2080/~ivan/foaf.rdf', 'bd6566af7b3bfa28f917aa545bf4174661817d79' : 'http://www.asturlinux.org/~jsmanrique/foaf.rdf' } if (mail_sha1sum in foafs): return foafs[mail_sha1sum] else: return None
e54260464af1a4b46d84b68f728a1e4b88d7b4ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2232/e54260464af1a4b46d84b68f728a1e4b88d7b4ef/services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 83, 1727, 12, 2890, 16, 4791, 4672, 3536, 12826, 358, 7161, 17634, 6799, 3699, 628, 392, 2699, 1758, 225, 632, 891, 4791, 30, 392, 2699, 1758, 632, 723, 4791, 30, 533, 632, 2463, 30, 326, 17634, 6799, 3699, 434, 333, 2699, 3410, 632, 86, 723, 30, 533, 225, 632, 9012, 20236, 18261, 1727, 1156, 3536, 225, 4791, 67, 7819, 21, 1364, 273, 365, 18, 588, 20375, 6759, 12, 4408, 13, 225, 468, 2660, 30, 20236, 333, 598, 279, 2863, 1156, 468, 468, 540, 10572, 345, 30, 300, 4707, 9639, 411, 2505, 2207, 2074, 9536, 18, 3168, 1884, 908, 18, 2758, 21259, 468, 8227, 1930, 5200, 468, 8227, 5200, 18, 6065, 23396, 67, 3297, 273, 20243, 468, 8227, 501, 273, 5200, 18, 2896, 9639, 2979, 2668, 23635, 28855, 8522, 23, 69, 6030, 11180, 69, 23, 5877, 952, 24, 74, 28, 5193, 69, 1611, 7414, 23643, 71, 4700, 3461, 3600, 18902, 30, 19299, 6134, 468, 468, 7734, 300, 5434, 83, 2968, 411, 2505, 2207, 5328, 83, 2968, 18, 3592, 71, 18, 28049, 21259, 225, 18261, 1727, 87, 273, 288, 565, 296, 23635, 28855, 8522, 23, 69, 6030, 11180, 69, 23, 5877, 952, 24, 74, 28, 5193, 69, 1611, 7414, 23643, 71, 4700, 3461, 3600, 11, 294, 296, 2505, 2207, 5591, 18, 11999, 2453, 18, 3341, 19, 617, 1727, 18, 19299, 2187, 296, 10689, 69, 2733, 5520, 20, 74, 22, 3030, 29, 5520, 25, 3028, 21, 70, 449, 71, 9803, 73, 29, 3707, 74, 3361, 73, 6162, 69, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2812, 83, 1727, 12, 2890, 16, 4791, 4672, 3536, 12826, 358, 7161, 17634, 6799, 3699, 628, 392, 2699, 1758, 225, 632, 891, 4791, 30, 392, 2699, 1758, 632, 723, 4791, 30, 533, 632, 2463, 30, 326, 17634, 6799, 3699, 434, 333, 2699, 3410, 632, 86, 723, 30, 533, 225, 632, 9012, 20236, 18261, 1727, 1156, 3536, 225, 4791, 67, 7819, 21, 1364, 273, 365, 18, 588, 20375, 6759, 12, 4408, 13, 225, 468, 2660, 30, 20236, 333, 598, 279, 2863, 1156, 468, 468, 540, 10572, 345, 30, 300, 4707, 9639, 411, 2505, 2207, 2074, 9536, 18, 3168, 1884, 908, 18, 2758, 21259, 468, 8227, 1930, 5200, 468, 8227, 5200, 18, 6065, 23396, 67, 3297, 273, 20243, 468, 8227, 2 ]
self.center = 0 self.bond_width = -abs( self.bond_width)
return (-1, 0)
def get_circles_for_side( side): res = 0 side1, side2 = side while len( side1): a1 = side1.pop(0) for a2 in side2: atoms = copy.copy( self.molecule.atoms_map) atoms.remove( self.atom1) atoms.remove( self.atom2) if accessible( a1, a2, atoms): res += 1 return res
63aa8de15cad833fb626b0c351076ad00b5150de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/63aa8de15cad833fb626b0c351076ad00b5150de/classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11614, 9558, 67, 1884, 67, 5564, 12, 4889, 4672, 400, 273, 374, 4889, 21, 16, 4889, 22, 273, 4889, 1323, 562, 12, 4889, 21, 4672, 279, 21, 273, 4889, 21, 18, 5120, 12, 20, 13, 364, 279, 22, 316, 4889, 22, 30, 9006, 273, 1610, 18, 3530, 12, 365, 18, 81, 10545, 18, 14937, 67, 1458, 13, 9006, 18, 4479, 12, 365, 18, 7466, 21, 13, 9006, 18, 4479, 12, 365, 18, 7466, 22, 13, 309, 12718, 12, 279, 21, 16, 279, 22, 16, 9006, 4672, 400, 1011, 404, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11614, 9558, 67, 1884, 67, 5564, 12, 4889, 4672, 400, 273, 374, 4889, 21, 16, 4889, 22, 273, 4889, 1323, 562, 12, 4889, 21, 4672, 279, 21, 273, 4889, 21, 18, 5120, 12, 20, 13, 364, 279, 22, 316, 4889, 22, 30, 9006, 273, 1610, 18, 3530, 12, 365, 18, 81, 10545, 18, 14937, 67, 1458, 13, 9006, 18, 4479, 12, 365, 18, 7466, 21, 13, 9006, 18, 4479, 12, 365, 18, 7466, 22, 13, 309, 12718, 12, 279, 21, 16, 279, 22, 16, 9006, 4672, 400, 1011, 404, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
extend -- bool (default: True); if True, return a square root in an extension ring, if necessary. Otherwise, raise a ValueError if the square is not in the base ring.
extend -- bool (default: True); this is a place holder, and is always ignored or passed to the sqrt function for x, since in the symbolic ring everything has a square root.
def __call__(self, x, *args, **kwds): """ INPUT: x -- a number prec -- integer (default: None): if None, returns an exact square root; otherwise returns a numerical square root if necessary, to the given bits of precision. extend -- bool (default: True); if True, return a square root in an extension ring, if necessary. Otherwise, raise a ValueError if the square is not in the base ring. all -- bool (default: False); if True, return all square roots of self, instead of just one. """ if isinstance(x, float): return math.sqrt(x) try: return x.sqrt(*args, **kwds) except AttributeError: pass return self._do_sqrt(x, *args, **kwds)
69afd4144711eb5a412d07852ac91cbafa95d845 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/69afd4144711eb5a412d07852ac91cbafa95d845/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 12943, 30, 619, 1493, 279, 1300, 13382, 1493, 3571, 261, 1886, 30, 599, 4672, 309, 599, 16, 1135, 392, 5565, 8576, 1365, 31, 3541, 1135, 279, 17409, 8576, 1365, 309, 4573, 16, 358, 326, 864, 4125, 434, 6039, 18, 2133, 1493, 1426, 261, 1886, 30, 1053, 1769, 333, 353, 279, 3166, 10438, 16, 471, 353, 3712, 5455, 578, 2275, 358, 326, 5700, 445, 364, 619, 16, 3241, 316, 326, 16754, 9221, 7756, 711, 279, 8576, 1365, 18, 777, 1493, 1426, 261, 1886, 30, 1083, 1769, 309, 1053, 16, 327, 777, 8576, 12876, 434, 365, 16, 3560, 434, 2537, 1245, 18, 3536, 309, 1549, 12, 92, 16, 1431, 4672, 327, 4233, 18, 24492, 12, 92, 13, 775, 30, 327, 619, 18, 24492, 30857, 1968, 16, 2826, 25577, 13, 1335, 6394, 30, 1342, 327, 365, 6315, 2896, 67, 24492, 12, 92, 16, 380, 1968, 16, 2826, 25577, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1991, 972, 12, 2890, 16, 619, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 12943, 30, 619, 1493, 279, 1300, 13382, 1493, 3571, 261, 1886, 30, 599, 4672, 309, 599, 16, 1135, 392, 5565, 8576, 1365, 31, 3541, 1135, 279, 17409, 8576, 1365, 309, 4573, 16, 358, 326, 864, 4125, 434, 6039, 18, 2133, 1493, 1426, 261, 1886, 30, 1053, 1769, 333, 353, 279, 3166, 10438, 16, 471, 353, 3712, 5455, 578, 2275, 358, 326, 5700, 445, 364, 619, 16, 3241, 316, 326, 16754, 9221, 7756, 711, 279, 8576, 1365, 18, 777, 1493, 1426, 261, 1886, 30, 1083, 1769, 309, 1053, 16, 327, 777, 8576, 12876, 434, 365, 16, 3560, 434, 2537, 1245, 18, 3536, 309, 1549, 2 ]
print 'realizando calculo venta:'
def compute_venta(self, cr, uid, ids, scl_obj, q_mov,tot,prom,q_des): subtot = 0.0 print 'q mov: ',q_mov print 'qda antes: ',q_des print 'subtotal antes: ',subtot print 'total antes: ',tot print 'avg antes: ',prom q_des-=q_mov print 'realizando calculo venta:' subtot = prom*q_mov tot -= subtot
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 616, 69, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1172, 296, 85, 5730, 30, 2265, 85, 67, 81, 1527, 1172, 296, 85, 2414, 392, 1078, 30, 2265, 85, 67, 5489, 1172, 296, 1717, 4963, 392, 1078, 30, 2265, 1717, 3307, 1172, 296, 4963, 392, 1078, 30, 2265, 3307, 1172, 296, 14141, 392, 1078, 30, 2265, 17401, 1043, 67, 5489, 17, 33, 85, 67, 81, 1527, 225, 720, 3307, 273, 3012, 14, 85, 67, 81, 1527, 9997, 3947, 720, 3307, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3671, 67, 616, 69, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 31648, 67, 2603, 16, 1043, 67, 81, 1527, 16, 3307, 16, 17401, 16, 85, 67, 5489, 4672, 720, 3307, 273, 374, 18, 20, 1172, 296, 85, 5730, 30, 2265, 85, 67, 81, 1527, 1172, 296, 85, 2414, 392, 1078, 30, 2265, 85, 67, 5489, 1172, 296, 1717, 4963, 392, 1078, 30, 2265, 1717, 3307, 1172, 296, 4963, 392, 1078, 30, 2265, 3307, 1172, 296, 14141, 392, 1078, 30, 2265, 17401, 1043, 67, 5489, 17, 33, 85, 67, 81, 1527, 225, 720, 3307, 273, 3012, 14, 85, 67, 81, 1527, 9997, 3947, 720, 3307, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
res = reg.match(name[::-1]).groups() return [ r[::-1] for r in res[::-1]]
res = reg.match(name).groups() if len(res[0]) == len(res[1]) == 0: return [res[2],'', ''] return [ r for r in res]
def numstem(name): """ cant see how to do without reversing strings Match 1 or more digits going backwards from the end of the string """ import re reg = re.compile("""(\D*)(\d\d*)(\w*)""") try: res = reg.match(name[::-1]).groups() return [ r[::-1] for r in res[::-1]] except AttributeError: # no digits found return [name, "", ""]
b8c13e3451855b44528564c95f36ddc69bb89ee8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9619/b8c13e3451855b44528564c95f36ddc69bb89ee8/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 818, 19781, 12, 529, 4672, 3536, 848, 88, 2621, 3661, 358, 741, 2887, 19795, 310, 2064, 4639, 404, 578, 1898, 6815, 8554, 12727, 628, 326, 679, 434, 326, 533, 225, 3536, 1930, 283, 960, 273, 283, 18, 11100, 2932, 3660, 4713, 40, 12437, 4713, 72, 64, 72, 12437, 4713, 91, 14, 15574, 13, 775, 30, 400, 273, 960, 18, 1916, 12, 529, 2934, 4650, 1435, 282, 309, 562, 12, 455, 63, 20, 5717, 422, 562, 12, 455, 63, 21, 5717, 422, 374, 30, 327, 306, 455, 63, 22, 6487, 11, 2187, 875, 65, 327, 306, 436, 364, 436, 316, 400, 65, 1335, 6394, 30, 468, 1158, 6815, 1392, 327, 306, 529, 16, 23453, 1408, 65, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 326, 981, 30, 1652, 818, 19781, 12, 529, 4672, 3536, 848, 88, 2621, 3661, 358, 741, 2887, 19795, 310, 2064, 4639, 404, 578, 1898, 6815, 8554, 12727, 628, 326, 679, 434, 326, 533, 225, 3536, 1930, 283, 960, 273, 283, 18, 11100, 2932, 3660, 4713, 40, 12437, 4713, 72, 64, 72, 12437, 4713, 91, 14, 15574, 13, 775, 30, 400, 273, 960, 18, 1916, 12, 529, 2934, 4650, 1435, 282, 309, 562, 12, 455, 63, 20, 5717, 422, 562, 12, 455, 63, 21, 5717, 422, 374, 30, 327, 306, 455, 63, 22, 6487, 11, 2187, 875, 65, 327, 306, 436, 364, 436, 316, 400, 65, 1335, 6394, 30, 468, 1158, 6815, 1392, 327, 306, 529, 16, 23453, 1408, 65, 282, 2, -100, -100 ]
resource = libutils.path_to_resource(self.project, os.path.join(self.project.address, glade_file))
resource = self.project.get_resource(glade_file)
def get_class_attributes(self, pyclass): scope_path = get_attribute_scope_path(pyclass) try: return self.cache[scope_path] except KeyError: pass if scope_path not in self.gtk_aware_classes: attrs = {} self.cache[scope_path] = attrs return attrs glade_file = self.gtk_aware_classes[scope_path] resource = libutils.path_to_resource(self.project, os.path.join(self.project.address, glade_file)) handler = GladeHandler() xml.sax.parseString(open(resource.real_path).read(), handler) attrs = {} for id, cls, line in handler.objects: type = self.get_type(self.get_pygtk_class_name(cls)) attrs[id] = GladeName(type.get_object(), ResourceAsModule(resource), line) self.cache[scope_path] = attrs return attrs
42c89015a9e7a15f60cdf141b964cf6d1328d268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/42c89015a9e7a15f60cdf141b964cf6d1328d268/pygtkhints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1106, 67, 4350, 12, 2890, 16, 2395, 1106, 4672, 2146, 67, 803, 273, 336, 67, 4589, 67, 4887, 67, 803, 12, 2074, 1106, 13, 775, 30, 327, 365, 18, 2493, 63, 4887, 67, 803, 65, 1335, 4999, 30, 1342, 225, 309, 2146, 67, 803, 486, 316, 365, 18, 4521, 79, 67, 30799, 67, 4701, 30, 3422, 273, 2618, 365, 18, 2493, 63, 4887, 67, 803, 65, 273, 3422, 327, 3422, 225, 5118, 2486, 67, 768, 273, 365, 18, 4521, 79, 67, 30799, 67, 4701, 63, 4887, 67, 803, 65, 1058, 273, 365, 18, 4406, 18, 588, 67, 3146, 12, 7043, 2486, 67, 768, 13, 225, 1838, 273, 15157, 2486, 1503, 1435, 2025, 18, 87, 651, 18, 2670, 780, 12, 3190, 12, 3146, 18, 7688, 67, 803, 2934, 896, 9334, 1838, 13, 225, 3422, 273, 2618, 364, 612, 16, 2028, 16, 980, 316, 1838, 18, 6911, 30, 618, 273, 365, 18, 588, 67, 723, 12, 2890, 18, 588, 67, 2074, 4521, 79, 67, 1106, 67, 529, 12, 6429, 3719, 3422, 63, 350, 65, 273, 15157, 2486, 461, 12, 723, 18, 588, 67, 1612, 9334, 2591, 1463, 3120, 12, 3146, 3631, 980, 13, 225, 365, 18, 2493, 63, 4887, 67, 803, 65, 273, 3422, 225, 327, 3422, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1106, 67, 4350, 12, 2890, 16, 2395, 1106, 4672, 2146, 67, 803, 273, 336, 67, 4589, 67, 4887, 67, 803, 12, 2074, 1106, 13, 775, 30, 327, 365, 18, 2493, 63, 4887, 67, 803, 65, 1335, 4999, 30, 1342, 225, 309, 2146, 67, 803, 486, 316, 365, 18, 4521, 79, 67, 30799, 67, 4701, 30, 3422, 273, 2618, 365, 18, 2493, 63, 4887, 67, 803, 65, 273, 3422, 327, 3422, 225, 5118, 2486, 67, 768, 273, 365, 18, 4521, 79, 67, 30799, 67, 4701, 63, 4887, 67, 803, 65, 1058, 273, 365, 18, 4406, 18, 588, 67, 3146, 12, 7043, 2486, 67, 768, 13, 225, 1838, 273, 15157, 2486, 1503, 1435, 2025, 18, 87, 651, 18, 2 ]
subprocess.Popen(('taskkill.exe', '/f', '/im', layout_package_path_utils.TestShellBinary()),
subprocess.Popen(['taskkill.exe', '/f', '/im', self.TestShellBinary()],
def KillAllTestShells(self): """Kills all instances of the test_shell binary currently running.""" subprocess.Popen(('taskkill.exe', '/f', '/im', layout_package_path_utils.TestShellBinary()), stdout=subprocess.PIPE, stderr=subprocess.PIPE).wait()
e025ef6b51ab89989971abb7930e741a50a92bc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/e025ef6b51ab89989971abb7930e741a50a92bc2/platform_utils_win.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20520, 1595, 4709, 13220, 87, 12, 2890, 4672, 3536, 19045, 87, 777, 3884, 434, 326, 1842, 67, 10304, 3112, 4551, 3549, 12123, 6652, 18, 52, 3190, 12, 3292, 4146, 16418, 18, 14880, 2187, 1173, 74, 2187, 1173, 381, 2187, 365, 18, 4709, 13220, 5905, 1435, 6487, 3909, 33, 1717, 2567, 18, 27602, 16, 4514, 33, 1717, 2567, 18, 27602, 2934, 7048, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20520, 1595, 4709, 13220, 87, 12, 2890, 4672, 3536, 19045, 87, 777, 3884, 434, 326, 1842, 67, 10304, 3112, 4551, 3549, 12123, 6652, 18, 52, 3190, 12, 3292, 4146, 16418, 18, 14880, 2187, 1173, 74, 2187, 1173, 381, 2187, 365, 18, 4709, 13220, 5905, 1435, 6487, 3909, 33, 1717, 2567, 18, 27602, 16, 4514, 33, 1717, 2567, 18, 27602, 2934, 7048, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.returncode == None:
if self.returncode is None:
def poll(self): """Check if child process has terminated. Returns returncode attribute.""" if self.returncode == None: if WaitForSingleObject(self._handle, 0) == WAIT_OBJECT_0: self.returncode = GetExitCodeProcess(self._handle) _active.remove(self) return self.returncode
587e8b6e7deec97da104d8c9590d53e2cbdee4c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/587e8b6e7deec97da104d8c9590d53e2cbdee4c5/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 2890, 4672, 3536, 1564, 309, 1151, 1207, 711, 14127, 18, 225, 2860, 18125, 1566, 12123, 309, 365, 18, 2463, 710, 353, 599, 30, 309, 24129, 5281, 921, 12, 2890, 6315, 4110, 16, 374, 13, 422, 26859, 67, 9422, 67, 20, 30, 365, 18, 2463, 710, 273, 968, 29008, 2227, 12, 2890, 6315, 4110, 13, 389, 3535, 18, 4479, 12, 2890, 13, 327, 365, 18, 2463, 710, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 5281, 921, 12, 2890, 6315, 4110, 16, 374, 13, 422, 26859, 67, 9422, 67, 20, 30, 365, 18, 2463, 710, 273, 968, 29008, 2227, 12, 2890, 6315, 4110, 13, 389, 3535, 18, 4479, 12, 2890, 13, 327, 365, 18, 2463, 710, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'already_out' : fields.float('Already Out', readonly=True, \
'already_out': fields.float('Already Out', readonly=True, \
coeff = coeff_uom2def * coeff_def2uom
6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11943, 273, 11943, 67, 89, 362, 22, 536, 380, 11943, 67, 536, 22, 89, 362, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 273, 11943, 67, 89, 362, 22, 536, 380, 11943, 67, 536, 22, 89, 362, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" % (getattr(rec, 'context%d_id'%(i,)).name, 'task%d_ids'%(i,))
""" % (getattr(rec, 'context%d_id'%(i,)).name.encode('utf-8'), 'task%d_ids'%(i,))
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False): res = super(project_gtd_timebox,self).fields_view_get(cr, uid, view_id, view_type, context, toolbar) if (res['type']=='form') and ('record_id' in context): if context['record_id']: rec = self.browse(cr, uid, int(context['record_id']), context) else: iids = self.search(cr,uid, [('user_id','=',uid),('parent_id','=',False)], context=context) if len(iids): rec = self.browse(cr, uid, int(iids[0]), context=context) else: return res res['arch'] = """
c72da62763e5e8efa3299f5141307c05846ded09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c72da62763e5e8efa3299f5141307c05846ded09/project_gtd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 4672, 400, 273, 2240, 12, 4406, 67, 75, 4465, 67, 957, 2147, 16, 2890, 2934, 2821, 67, 1945, 67, 588, 12, 3353, 16, 4555, 16, 1476, 67, 350, 16, 1476, 67, 723, 16, 819, 16, 12748, 13, 309, 261, 455, 3292, 723, 3546, 18920, 687, 6134, 471, 7707, 3366, 67, 350, 11, 316, 819, 4672, 309, 819, 3292, 3366, 67, 350, 3546, 30, 1950, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 509, 12, 2472, 3292, 3366, 67, 350, 3546, 3631, 819, 13, 469, 30, 277, 2232, 273, 365, 18, 3072, 12, 3353, 16, 1911, 16, 306, 2668, 1355, 67, 350, 17023, 33, 2187, 1911, 3631, 2668, 2938, 67, 350, 17023, 33, 2187, 8381, 13, 6487, 819, 33, 2472, 13, 309, 562, 12, 77, 2232, 4672, 1950, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 509, 12, 77, 2232, 63, 20, 65, 3631, 819, 33, 2472, 13, 469, 30, 327, 400, 400, 3292, 991, 3546, 273, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 4672, 400, 273, 2240, 12, 4406, 67, 75, 4465, 67, 957, 2147, 16, 2890, 2934, 2821, 67, 1945, 67, 588, 12, 3353, 16, 4555, 16, 1476, 67, 350, 16, 1476, 67, 723, 16, 819, 16, 12748, 13, 309, 261, 455, 3292, 723, 3546, 18920, 687, 6134, 471, 7707, 3366, 67, 350, 11, 316, 819, 4672, 309, 819, 3292, 3366, 67, 350, 3546, 30, 1950, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 509, 12, 2472, 3292, 3366, 67, 350, 3546, 3631, 819, 13, 469, 30, 277, 2 ]
self.archive = zipfile.ZipFile(self.infile)
self.archive = zipfile.ZipFile(self.filename)
def isValid(self) : """Returns True if data is OpenDocument, else False.""" if self.firstblock[:2] == "PK" : try : self.archive = zipfile.ZipFile(self.infile) self.contentxml = self.archive.read("content.xml") self.metaxml = self.archive.read("meta.xml") except : return False else : self.logdebug("DEBUG: Input file is in the OpenDocument (ISO/IEC DIS 26300) format.") return True else : return False
30256b9e247a433cc383cc46972e8794eefcb623 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/486/30256b9e247a433cc383cc46972e8794eefcb623/ooo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4908, 12, 2890, 13, 294, 3536, 1356, 1053, 309, 501, 353, 3502, 2519, 16, 469, 1083, 12123, 309, 365, 18, 3645, 2629, 10531, 22, 65, 422, 315, 8784, 6, 294, 775, 294, 365, 18, 10686, 273, 18823, 18, 29394, 12, 2890, 18, 3459, 13, 365, 18, 1745, 2902, 273, 365, 18, 10686, 18, 896, 2932, 1745, 18, 2902, 7923, 365, 18, 10578, 651, 781, 273, 365, 18, 10686, 18, 896, 2932, 3901, 18, 2902, 7923, 1335, 294, 327, 1083, 469, 294, 365, 18, 1330, 4148, 2932, 9394, 30, 2741, 585, 353, 316, 326, 3502, 2519, 261, 12609, 19, 45, 7228, 17641, 576, 4449, 713, 13, 740, 1199, 13, 327, 1053, 469, 294, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4908, 12, 2890, 13, 294, 3536, 1356, 1053, 309, 501, 353, 3502, 2519, 16, 469, 1083, 12123, 309, 365, 18, 3645, 2629, 10531, 22, 65, 422, 315, 8784, 6, 294, 775, 294, 365, 18, 10686, 273, 18823, 18, 29394, 12, 2890, 18, 3459, 13, 365, 18, 1745, 2902, 273, 365, 18, 10686, 18, 896, 2932, 1745, 18, 2902, 7923, 365, 18, 10578, 651, 781, 273, 365, 18, 10686, 18, 896, 2932, 3901, 18, 2902, 7923, 1335, 294, 327, 1083, 469, 294, 365, 18, 1330, 4148, 2932, 9394, 30, 2741, 585, 353, 316, 326, 3502, 2519, 261, 12609, 19, 45, 7228, 17641, 576, 4449, 713, 13, 740, 1199, 13, 327, 1053, 469, 294, 327, 1083, 225, 2, -100, -100, -100 ]
rstack.resume_point("CALL_METHOD_no_kwargs", f, n_args, returns=w_result)
rstack.resume_point("CALL_METHOD", f, w_self, n_args, returns=w_result)
def CALL_METHOD(f, oparg, *ignored): # opargs contains the arg, and kwarg count, excluding the implicit 'self' n_args = oparg & 0xff n_kwargs = (oparg >> 8) & 0xff w_self = f.peekvalue(n_args + (2 * n_kwargs)) w_callable = f.peekvalue(n_args + (2 * n_kwargs) + 1) n = n_args + (w_self is not None) if not n_kwargs: try: w_result = f.space.call_valuestack(w_callable, n, f) rstack.resume_point("CALL_METHOD_no_kwargs", f, n_args, returns=w_result) finally: f.dropvalues(n_args + 2) else: keywords = [None] * n_kwargs keywords_w = [None] * n_kwargs while True: n_kwargs -= 1 if n_kwargs < 0: break w_value = f.popvalue() w_key = f.popvalue() key = f.space.str_w(w_key) keywords[n_kwargs] = key keywords_w[n_kwargs] = w_value arguments = f.popvalues(n) args = f.argument_factory(arguments, keywords, keywords_w, None, None) try: w_result = f.space.call_args(w_callable, args) rstack.resume_point("CALL_METHOD", f, w_self, returns=w_result) finally: f.dropvalues(1 + (w_self is None)) f.pushvalue(w_result)
694eb993a65fb48ce097d1b91febe7ce634f4e7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/694eb993a65fb48ce097d1b91febe7ce634f4e7d/callmethod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22753, 67, 5327, 12, 74, 16, 1061, 3175, 16, 380, 24055, 4672, 468, 1061, 1968, 1914, 326, 1501, 16, 471, 19554, 1056, 16, 19560, 326, 10592, 296, 2890, 11, 290, 67, 1968, 273, 1061, 3175, 473, 374, 5297, 290, 67, 4333, 273, 261, 556, 3175, 1671, 1725, 13, 473, 374, 5297, 341, 67, 2890, 273, 284, 18, 347, 3839, 1132, 12, 82, 67, 1968, 397, 261, 22, 380, 290, 67, 4333, 3719, 341, 67, 7293, 273, 284, 18, 347, 3839, 1132, 12, 82, 67, 1968, 397, 261, 22, 380, 290, 67, 4333, 13, 397, 404, 13, 290, 273, 290, 67, 1968, 397, 261, 91, 67, 2890, 353, 486, 599, 13, 225, 309, 486, 290, 67, 4333, 30, 775, 30, 341, 67, 2088, 273, 284, 18, 2981, 18, 1991, 67, 4531, 395, 484, 12, 91, 67, 7293, 16, 290, 16, 284, 13, 436, 3772, 18, 25158, 67, 1153, 2932, 13730, 67, 5327, 3113, 284, 16, 341, 67, 2890, 16, 290, 67, 1968, 16, 1135, 33, 91, 67, 2088, 13, 3095, 30, 284, 18, 7285, 2372, 12, 82, 67, 1968, 397, 576, 13, 469, 30, 7093, 273, 306, 7036, 65, 380, 290, 67, 4333, 7093, 67, 91, 273, 306, 7036, 65, 380, 290, 67, 4333, 1323, 1053, 30, 290, 67, 4333, 3947, 404, 309, 290, 67, 4333, 411, 374, 30, 898, 341, 67, 1132, 273, 284, 18, 5120, 1132, 1435, 341, 67, 856, 273, 284, 18, 5120, 1132, 1435, 498, 273, 284, 18, 2981, 18, 701, 67, 91, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22753, 67, 5327, 12, 74, 16, 1061, 3175, 16, 380, 24055, 4672, 468, 1061, 1968, 1914, 326, 1501, 16, 471, 19554, 1056, 16, 19560, 326, 10592, 296, 2890, 11, 290, 67, 1968, 273, 1061, 3175, 473, 374, 5297, 290, 67, 4333, 273, 261, 556, 3175, 1671, 1725, 13, 473, 374, 5297, 341, 67, 2890, 273, 284, 18, 347, 3839, 1132, 12, 82, 67, 1968, 397, 261, 22, 380, 290, 67, 4333, 3719, 341, 67, 7293, 273, 284, 18, 347, 3839, 1132, 12, 82, 67, 1968, 397, 261, 22, 380, 290, 67, 4333, 13, 397, 404, 13, 290, 273, 290, 67, 1968, 397, 261, 91, 67, 2890, 353, 486, 599, 13, 225, 309, 486, 290, 67, 4333, 30, 775, 2 ]
REQUEST[ 'RESPONSE' ].redirect( self.absolute_url() + '/manage_cachingPolicies' + '?manage_tabs_message=Policy+added.' )
if REQUEST is not None: REQUEST[ 'RESPONSE' ].redirect( self.absolute_url() + '/manage_cachingPolicies' + '?manage_tabs_message=' + 'Policy+added.' )
def addPolicy( self , policy_id , predicate # TALES expr (def. 'python:1') , mtime_func # TALES expr (def. 'content/modified') , max_age_secs # integer, seconds (def. 0) , no_cache # boolean (def. 0) , no_store # boolean (def. 0) , must_revalidate # boolean (def. 0) , vary # string value , REQUEST ): """ Add a caching policy. """ self._addPolicy( policy_id , predicate , mtime_func , max_age_secs , no_cache , no_store , must_revalidate , vary ) REQUEST[ 'RESPONSE' ].redirect( self.absolute_url() + '/manage_cachingPolicies' + '?manage_tabs_message=Policy+added.' )
574c72e1f5820a51f924caf0a3ad2720c5766720 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/574c72e1f5820a51f924caf0a3ad2720c5766720/CachingPolicyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2582, 12, 365, 269, 3329, 67, 350, 269, 5641, 3639, 468, 399, 37, 11386, 3065, 261, 536, 18, 296, 8103, 30, 21, 6134, 269, 13158, 67, 644, 4202, 468, 399, 37, 11386, 3065, 261, 536, 18, 296, 1745, 19, 7342, 6134, 269, 943, 67, 410, 67, 21317, 377, 468, 3571, 16, 3974, 261, 536, 18, 374, 13, 269, 1158, 67, 2493, 540, 468, 1250, 261, 536, 18, 374, 13, 269, 1158, 67, 2233, 540, 468, 1250, 261, 536, 18, 374, 13, 269, 1297, 67, 266, 5662, 225, 468, 1250, 261, 536, 18, 374, 13, 269, 23674, 2398, 468, 533, 460, 269, 12492, 262, 30, 3536, 1436, 279, 11393, 3329, 18, 3536, 365, 6315, 1289, 2582, 12, 3329, 67, 350, 269, 5641, 269, 13158, 67, 644, 269, 943, 67, 410, 67, 21317, 269, 1158, 67, 2493, 269, 1158, 67, 2233, 269, 1297, 67, 266, 5662, 269, 23674, 262, 12492, 63, 296, 14508, 11, 308, 18, 7590, 12, 365, 18, 12547, 67, 718, 1435, 397, 1173, 12633, 67, 17703, 310, 8825, 11, 397, 13023, 12633, 67, 16056, 67, 2150, 33, 2582, 15, 9665, 1093, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2582, 12, 365, 269, 3329, 67, 350, 269, 5641, 3639, 468, 399, 37, 11386, 3065, 261, 536, 18, 296, 8103, 30, 21, 6134, 269, 13158, 67, 644, 4202, 468, 399, 37, 11386, 3065, 261, 536, 18, 296, 1745, 19, 7342, 6134, 269, 943, 67, 410, 67, 21317, 377, 468, 3571, 16, 3974, 261, 536, 18, 374, 13, 269, 1158, 67, 2493, 540, 468, 1250, 261, 536, 18, 374, 13, 269, 1158, 67, 2233, 540, 468, 1250, 261, 536, 18, 374, 13, 269, 1297, 67, 266, 5662, 225, 468, 1250, 261, 536, 18, 374, 13, 269, 23674, 2398, 468, 533, 460, 269, 12492, 262, 30, 3536, 1436, 279, 11393, 3329, 18, 3536, 365, 6315, 1289, 2582, 12, 3329, 2 ]
class KeepaliveServerTestCase(BaseServerTestCase):
class BaseKeepaliveServerTestCase(BaseServerTestCase):
def test_dotted_attribute(self): # Raises an AttributeError because private methods are not allowed. self.assertRaises(AttributeError, xmlrpc.server.resolve_dotted_attribute, str, '__add')
f6087ca999b42aab51b44fce7b72040a07a7dfb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/f6087ca999b42aab51b44fce7b72040a07a7dfb3/test_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9811, 2344, 67, 4589, 12, 2890, 4672, 468, 20497, 392, 6394, 2724, 3238, 2590, 854, 486, 2935, 18, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 31811, 18, 3567, 18, 10828, 67, 9811, 2344, 67, 4589, 16, 609, 16, 4940, 1289, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2344, 67, 4589, 12, 2890, 4672, 468, 20497, 392, 6394, 2724, 3238, 2590, 854, 486, 2935, 18, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 31811, 18, 3567, 18, 10828, 67, 9811, 2344, 67, 4589, 16, 609, 16, 4940, 1289, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
1 - normal redirect, target page exists and is not a redirect
1 - normal redirect, target page exists and is not a redirect
def get_redirects_via_api(self, number = u'max', namespaces = [], start = None, until = None, maxlen = 8 ): """ Generator which will yield a tuple of data about Pages that are redirects: 0 - page title of a redirect page 1 - type of redirect: 0 - broken redirect, target page title missing 1 - normal redirect, target page exists and is not a redirect 2..maxlen - start of a redirect chain of that many redirects (currently, the API seems not to return sufficient data to make these return values possible, but that may change) maxlen+1 - start of an even longer chain, or a loop (currently, the API seems not to return sufficient data to allow this return vaules, but that may change) None - start of a redirect chain of unknown length, or loop 2 - target page title of the redirect, or chain (may not exist) 3 - target page of the redirect, or end of chain, or page title where chain or loop detecton was halted, or None if unknown Get number of page ids in one go. Iterates over namespaces, Main if an empty list. In each namespace, start alphabetically from a pagetitle start, wich need not exist. """ # wikipedia.output(u'====> get_redirects_via_api(number=%s, #ns=%d, start=%s, until=%s, maxlen=%s)' % (number, len(namespaces), start, until, maxlen)) import urllib if namespaces == []: namespaces = [ 0 ] params = { 'action':'query', 'redirects':1, #'':'', } for apiQ in self._next_redirects_via_api_commandline(number, namespaces, start, until): # wikipedia.output (u'===apiQ=%s' % apiQ) params['pageids'] = apiQ data = query.GetData(params, self.site) # wikipedia.output(u'===RESULT===\n%s\n' % result) redirects = {} pages = {} redirects = dict([[x['from'], x['to']] for x in data['query']['redirects']]) for pagetitle in data['query']['pages'].values(): # wikipedia.output (u'M: %s' % pagetitle) if 'missing' in pagetitle and 'pageid' not in pagetitle: pages[pagetitle['title']] = False else: pages[pagetitle['title']] = True for redirect in redirects: target = redirects[redirect] result = 0 final = None try: if pages[target]: final = target try: while result <= maxlen: result += 1 final = redirects[final] # result = None except KeyError: pass except KeyError: result = None pass yield (redirect, result, target, final) # wikipedia.output (u'X%d: %s => %s ----> %s' % (result, redirect, target, final))
c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22715, 67, 21985, 67, 2425, 12, 2890, 16, 1300, 273, 582, 17784, 651, 2187, 7728, 273, 5378, 16, 225, 787, 273, 599, 16, 3180, 273, 599, 16, 21882, 273, 1725, 262, 30, 3536, 10159, 1492, 903, 2824, 279, 3193, 434, 501, 2973, 22648, 716, 854, 18064, 30, 374, 300, 1363, 2077, 434, 279, 3136, 1363, 404, 300, 618, 434, 3136, 30, 374, 300, 12933, 3136, 16, 1018, 1363, 2077, 3315, 404, 300, 2212, 3136, 16, 1018, 1363, 1704, 471, 353, 486, 279, 3136, 576, 838, 1896, 1897, 300, 787, 434, 279, 3136, 2687, 434, 716, 4906, 18064, 261, 2972, 715, 16, 326, 1491, 12001, 486, 358, 327, 18662, 501, 358, 1221, 4259, 327, 924, 3323, 16, 1496, 716, 2026, 2549, 13, 21882, 15, 21, 300, 787, 434, 392, 5456, 7144, 2687, 16, 578, 279, 2798, 261, 2972, 715, 16, 326, 1491, 12001, 486, 358, 327, 18662, 501, 358, 1699, 333, 327, 14162, 1513, 16, 1496, 716, 2026, 2549, 13, 599, 300, 787, 434, 279, 3136, 2687, 434, 5917, 769, 16, 578, 2798, 576, 300, 1018, 1363, 2077, 434, 326, 3136, 16, 578, 2687, 261, 24877, 486, 1005, 13, 890, 300, 1018, 1363, 434, 326, 3136, 16, 578, 679, 434, 2687, 16, 578, 1363, 2077, 1625, 2687, 578, 2798, 5966, 265, 1703, 19514, 2344, 16, 578, 599, 309, 5917, 968, 1300, 434, 1363, 3258, 316, 1245, 1960, 18, 3016, 815, 1879, 7728, 16, 12740, 309, 392, 1008, 666, 18, 657, 1517, 1981, 16, 787, 10877, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22715, 67, 21985, 67, 2425, 12, 2890, 16, 1300, 273, 582, 17784, 651, 2187, 7728, 273, 5378, 16, 225, 787, 273, 599, 16, 3180, 273, 599, 16, 21882, 273, 1725, 262, 30, 3536, 10159, 1492, 903, 2824, 279, 3193, 434, 501, 2973, 22648, 716, 854, 18064, 30, 374, 300, 1363, 2077, 434, 279, 3136, 1363, 404, 300, 618, 434, 3136, 30, 374, 300, 12933, 3136, 16, 1018, 1363, 2077, 3315, 404, 300, 2212, 3136, 16, 1018, 1363, 1704, 471, 353, 486, 279, 3136, 576, 838, 1896, 1897, 300, 787, 434, 279, 3136, 2687, 434, 716, 4906, 18064, 261, 2972, 715, 16, 326, 1491, 12001, 486, 358, 327, 18662, 501, 358, 1221, 4259, 327, 924, 3323, 16, 2 ]
box = wx.StaticBox(parent = self, label = "Bouy")
box = wx.StaticBox(parent = self, label = name)
def _createControls(self): # Creat box around controls box = wx.StaticBox(parent = self, label = "Bouy") topSizer = wx.StaticBoxSizer(box) self.sizer = wx.FlexGridSizer(0, 2, 10, 10) topSizer.Add(self.sizer, 1, wx.EXPAND) # Buoy Text and Label self._hide = wx.Button(self, label = "Hide") self.sizer.Add(self._hide, 1, flag = wx.ALIGN_CENTER) self._hide.Bind(wx.EVT_BUTTON, self._onButton)
dbfe0ba996521b1d01d8cb971d1132a55c29e7bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/dbfe0ba996521b1d01d8cb971d1132a55c29e7bb/vision.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 16795, 12, 2890, 4672, 468, 5799, 270, 3919, 6740, 11022, 3919, 273, 7075, 18, 5788, 3514, 12, 2938, 273, 365, 16, 1433, 273, 508, 13, 1760, 20512, 273, 7075, 18, 5788, 3514, 20512, 12, 2147, 13, 225, 365, 18, 87, 1824, 273, 7075, 18, 19667, 6313, 20512, 12, 20, 16, 576, 16, 1728, 16, 1728, 13, 1760, 20512, 18, 986, 12, 2890, 18, 87, 1824, 16, 404, 16, 7075, 18, 16109, 4307, 13, 225, 468, 605, 89, 13372, 3867, 471, 5287, 365, 6315, 11248, 273, 7075, 18, 3616, 12, 2890, 16, 1433, 273, 315, 15690, 7923, 365, 18, 87, 1824, 18, 986, 12, 2890, 6315, 11248, 16, 404, 16, 2982, 273, 7075, 18, 26439, 67, 19835, 13, 365, 6315, 11248, 18, 3357, 12, 27226, 18, 24427, 56, 67, 20068, 16, 365, 6315, 265, 3616, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 16795, 12, 2890, 4672, 468, 5799, 270, 3919, 6740, 11022, 3919, 273, 7075, 18, 5788, 3514, 12, 2938, 273, 365, 16, 1433, 273, 508, 13, 1760, 20512, 273, 7075, 18, 5788, 3514, 20512, 12, 2147, 13, 225, 365, 18, 87, 1824, 273, 7075, 18, 19667, 6313, 20512, 12, 20, 16, 576, 16, 1728, 16, 1728, 13, 1760, 20512, 18, 986, 12, 2890, 18, 87, 1824, 16, 404, 16, 7075, 18, 16109, 4307, 13, 225, 468, 605, 89, 13372, 3867, 471, 5287, 365, 6315, 11248, 273, 7075, 18, 3616, 12, 2890, 16, 1433, 273, 315, 15690, 7923, 365, 18, 87, 1824, 18, 986, 12, 2890, 6315, 11248, 16, 404, 16, 2982, 273, 7075, 18, 26439, 67, 19835, 2 ]
attrib[fixname(key)] = self._fixtext(value)
attrib[fixname(key)] = value
def _start(self, tag, attrib_in): fixname = self._fixname tag = fixname(tag) attrib = {} for key, value in attrib_in.items(): attrib[fixname(key)] = self._fixtext(value) return self._target.start(tag, attrib)
e4cfaf8f7bb5d21848fb232e3757979401720c1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e4cfaf8f7bb5d21848fb232e3757979401720c1d/ElementTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 12, 2890, 16, 1047, 16, 5885, 67, 267, 4672, 2917, 529, 273, 365, 6315, 904, 529, 1047, 273, 2917, 529, 12, 2692, 13, 5885, 273, 2618, 364, 498, 16, 460, 316, 5885, 67, 267, 18, 3319, 13332, 5885, 63, 904, 529, 12, 856, 25887, 273, 460, 327, 365, 6315, 3299, 18, 1937, 12, 2692, 16, 5885, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 12, 2890, 16, 1047, 16, 5885, 67, 267, 4672, 2917, 529, 273, 365, 6315, 904, 529, 1047, 273, 2917, 529, 12, 2692, 13, 5885, 273, 2618, 364, 498, 16, 460, 316, 5885, 67, 267, 18, 3319, 13332, 5885, 63, 904, 529, 12, 856, 25887, 273, 460, 327, 365, 6315, 3299, 18, 1937, 12, 2692, 16, 5885, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
wrap = None
wrap = None
def insert(arr, obj, values, axis=None): """Return a new array with values inserted along the given axis before the given indices If axis is None, then ravel the array first. The obj argument can be an integer, a slice, or a sequence of integers. Example: >>> a = array([[1,2,3], [4,5,6], [7,8,9]]) >>> insertinto(a, [1,2], [[4],[5]], axis=0) array([[1,2,3], [4,4,4], [4,5,6], [5,5,5], [7,8,9]) """ wrap = None if type(arr) is not ndarray: try: wrap = arr.__array_wrap__ except AttributeError: pass arr = asarray(arr) ndim = arr.ndim if axis is None: if ndim != 1: arr = arr.ravel() ndim = arr.ndim axis = ndim-1 if (ndim == 0): arr = arr.copy() arr[...] = values if wrap: return wrap(arr) else: return arr slobj = [slice(None)]*ndim N = arr.shape[axis] newshape = list(arr.shape) if isinstance(obj, (int, long, integer)): if (obj < 0): obj += N if (obj < 0 or obj >=N): raise ValueError, "index (%d) out of range (0<=index<=%d) "\ "in dimension %d" % (obj, N, axis) newshape[axis] += 1; new = empty(newshape, arr.dtype, arr.flags.fnc) slobj[axis] = slice(None, obj) new[slobj] = arr[slobj] slobj[axis] = obj new[slobj] = values slobj[axis] = slice(obj+1,None) slobj2 = [slice(None)]*ndim slobj2[axis] = slice(obj,None) new[slobj] = arr[slobj2] if wrap: return wrap(new) return new elif isinstance(obj, slice): # turn it into a range object obj = arange(*obj.indices(N),**{'dtype':intp}) # get two sets of indices # one is the indices which will hold the new stuff # two is the indices where arr will be copied over obj = asarray(obj, dtype=intp) numnew = len(obj) index1 = obj + arange(numnew) index2 = setdiff1d(arange(numnew+N),index1) newshape[axis] += numnew new = empty(newshape, arr.dtype, arr.flags.fnc) slobj2 = [slice(None)]*ndim slobj[axis] = index1 slobj2[axis] = index2 new[slobj] = values new[slobj2] = arr if wrap: return wrap(new) return new
c268f1d89bbf826e69bafabbf0029b7847ca59a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/c268f1d89bbf826e69bafabbf0029b7847ca59a4/function_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 5399, 16, 1081, 16, 924, 16, 2654, 33, 7036, 4672, 3536, 990, 279, 394, 526, 598, 924, 9564, 7563, 326, 864, 2654, 1865, 326, 864, 4295, 225, 971, 2654, 353, 599, 16, 1508, 15910, 326, 526, 1122, 18, 225, 1021, 1081, 1237, 848, 506, 392, 3571, 16, 279, 2788, 16, 578, 279, 3102, 434, 12321, 18, 225, 5090, 30, 4080, 279, 273, 526, 3816, 63, 21, 16, 22, 16, 23, 6487, 306, 24, 16, 25, 16, 26, 6487, 306, 27, 16, 28, 16, 29, 65, 5717, 225, 4080, 2243, 18591, 12, 69, 16, 306, 21, 16, 22, 6487, 12167, 24, 6487, 63, 25, 65, 6487, 2654, 33, 20, 13, 526, 3816, 63, 21, 16, 22, 16, 23, 6487, 306, 24, 16, 24, 16, 24, 6487, 306, 24, 16, 25, 16, 26, 6487, 306, 25, 16, 25, 16, 25, 6487, 306, 27, 16, 28, 16, 29, 5717, 3536, 2193, 273, 599, 309, 618, 12, 5399, 13, 353, 486, 8304, 30, 775, 30, 2193, 273, 2454, 16186, 1126, 67, 4113, 972, 1335, 6394, 30, 1342, 225, 2454, 273, 10455, 12, 5399, 13, 9209, 273, 2454, 18, 82, 3509, 309, 2654, 353, 599, 30, 309, 9209, 480, 404, 30, 2454, 273, 2454, 18, 354, 941, 1435, 9209, 273, 2454, 18, 82, 3509, 2654, 273, 9209, 17, 21, 309, 261, 82, 3509, 422, 374, 4672, 2454, 273, 2454, 18, 3530, 1435, 2454, 63, 2777, 65, 273, 924, 309, 2193, 30, 327, 2193, 12, 5399, 13, 469, 30, 327, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 5399, 16, 1081, 16, 924, 16, 2654, 33, 7036, 4672, 3536, 990, 279, 394, 526, 598, 924, 9564, 7563, 326, 864, 2654, 1865, 326, 864, 4295, 225, 971, 2654, 353, 599, 16, 1508, 15910, 326, 526, 1122, 18, 225, 1021, 1081, 1237, 848, 506, 392, 3571, 16, 279, 2788, 16, 578, 279, 3102, 434, 12321, 18, 225, 5090, 30, 4080, 279, 273, 526, 3816, 63, 21, 16, 22, 16, 23, 6487, 306, 24, 16, 25, 16, 26, 6487, 306, 27, 16, 28, 16, 29, 65, 5717, 225, 4080, 2243, 18591, 12, 69, 16, 306, 21, 16, 22, 6487, 12167, 24, 6487, 63, 25, 65, 6487, 2654, 33, 20, 13, 526, 3816, 63, 21, 16, 22, 16, 2 ]
if _debug: print "\t%s: Called Camera.__init__()" % rendererName
Item.__init__(self) debugMsg("Called Camera.__init__()")
def __init__(self,scene): """ Initialisation of the Camera object
9eafeed6682cc7693274ff2418342722b828961f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/9eafeed6682cc7693274ff2418342722b828961f/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 23694, 4672, 3536, 10188, 10742, 434, 326, 30355, 733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23694, 4672, 3536, 10188, 10742, 434, 326, 30355, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parser.add_option("-d", "--output-dir", dest = "output_dir", help = "stored captured images at the given directory")
parser.add_option("-o", "--output-dir", dest = "output_dir", help = "store captured images at the given directory") parser.add_option("-d", "--debug", action="store_true", dest = "debug", default = False, help = "activate debugging features") parser.add_option("-c", "--camera", type="int", dest = "camera_dev", help = "camera device to be selected (-1 for default)")
def read_cmd_options(): parser = OptionParser("usage: %prog [options]") parser.add_option("-e", "--exam-data-file", dest = "ex_data_filename", help = "read model data from FILENAME") parser.add_option("-a", "--answers-file", dest = "answers_filename", help = "write students' answers to FILENAME") parser.add_option("-s", "--start-id", dest = "start_id", type = "int", help = "start at the given exam id", default = 0) parser.add_option("-d", "--output-dir", dest = "output_dir", help = "stored captured images at the given directory") (options, args) = parser.parse_args() return options
2ec431991d17410c7738e13419a987de6b90b5c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/2ec431991d17410c7738e13419a987de6b90b5c2/camgrade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4172, 67, 2116, 13332, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 73, 3113, 5238, 338, 301, 17, 892, 17, 768, 3113, 1570, 273, 315, 338, 67, 892, 67, 3459, 3113, 2809, 273, 315, 896, 938, 501, 628, 7527, 1985, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 69, 3113, 5238, 22340, 17, 768, 3113, 1570, 273, 315, 22340, 67, 3459, 3113, 2809, 273, 315, 2626, 10068, 4877, 11, 12415, 358, 7527, 1985, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 87, 3113, 5238, 1937, 17, 350, 3113, 1570, 273, 315, 1937, 67, 350, 3113, 618, 273, 315, 474, 3113, 2809, 273, 315, 1937, 622, 326, 864, 19707, 612, 3113, 805, 273, 374, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 83, 3113, 5238, 2844, 17, 1214, 3113, 1570, 273, 315, 2844, 67, 1214, 3113, 2809, 273, 315, 2233, 19550, 4602, 622, 326, 864, 1867, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 72, 3113, 5238, 4148, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 273, 315, 4148, 3113, 805, 273, 1083, 16, 2809, 273, 315, 10014, 10450, 4467, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 71, 3113, 5238, 26426, 3113, 618, 1546, 474, 3113, 1570, 273, 315, 26426, 67, 5206, 3113, 2809, 273, 315, 26426, 2346, 358, 506, 3170, 24927, 21, 364, 805, 2225, 13, 261, 2116, 16, 833, 13, 273, 2082, 18, 2670, 67, 1968, 1435, 327, 702, 225, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 67, 4172, 67, 2116, 13332, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 4279, 13, 2082, 18, 1289, 67, 3482, 2932, 17, 73, 3113, 5238, 338, 301, 17, 892, 17, 768, 3113, 1570, 273, 315, 338, 67, 892, 67, 3459, 3113, 2809, 273, 315, 896, 938, 501, 628, 7527, 1985, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 69, 3113, 5238, 22340, 17, 768, 3113, 1570, 273, 315, 22340, 67, 3459, 3113, 2809, 273, 315, 2626, 10068, 4877, 11, 12415, 358, 7527, 1985, 7923, 2082, 18, 1289, 67, 3482, 2932, 17, 87, 3113, 5238, 1937, 17, 350, 3113, 1570, 273, 315, 1937, 67, 350, 3113, 618, 273, 315, 474, 3113, 2809, 273, 315, 1937, 622, 2 ]
a.append((c, "%+d" % (d,)))
a.append((c, d))
def update_model(self): a = self.combatant_model a.clear() b = self.combatants for c, d in b.iteritems(): a.append((c, "%+d" % (d,))) print a.get_sort_column_id()
f746e8f97b379cc2f7f2f13b09f594fe438f5353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4811/f746e8f97b379cc2f7f2f13b09f594fe438f5353/genkounter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2284, 12, 2890, 4672, 279, 273, 365, 18, 9301, 270, 970, 67, 2284, 279, 18, 8507, 1435, 324, 273, 365, 18, 9301, 270, 4388, 364, 276, 16, 302, 316, 324, 18, 2165, 3319, 13332, 279, 18, 6923, 12443, 71, 16, 302, 3719, 1172, 279, 18, 588, 67, 3804, 67, 2827, 67, 350, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2284, 12, 2890, 4672, 279, 273, 365, 18, 9301, 270, 970, 67, 2284, 279, 18, 8507, 1435, 324, 273, 365, 18, 9301, 270, 4388, 364, 276, 16, 302, 316, 324, 18, 2165, 3319, 13332, 279, 18, 6923, 12443, 71, 16, 302, 3719, 1172, 279, 18, 588, 67, 3804, 67, 2827, 67, 350, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
different strides? (This can catch bugs, but is generally overly strict.)
different strides? (This can catch bugs, but is generally overly strict.) 0 no check, 1 warn, 2 err.
def _pickle_DebugMode_Maker(maker): raise NotImplementedError('DebugMode is not picklable (yet)')
46b095c0e7ff8443f597aafb093374e91179f1cc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/46b095c0e7ff8443f597aafb093374e91179f1cc/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 20847, 67, 2829, 2309, 67, 12373, 12, 29261, 4672, 1002, 11206, 2668, 2829, 2309, 353, 486, 6002, 80, 429, 261, 24404, 2506, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 20847, 67, 2829, 2309, 67, 12373, 12, 29261, 4672, 1002, 11206, 2668, 2829, 2309, 353, 486, 6002, 80, 429, 261, 24404, 2506, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
hrefs = set(xpath(ncx, '//ncx:content/@src'))
hrefs = set(map(urlnormalize, xpath(ncx, '//ncx:content/@src')))
def _update_playorder(self, ncx): hrefs = set(xpath(ncx, '//ncx:content/@src')) playorder = {} next = 1 selector = XPath('h:body//*[@id or @name]') for item in self.spine: base = item.href if base in hrefs: playorder[base] = next next += 1 for elem in selector(item.data): added = False for attr in ('id', 'name'): id = elem.get(attr) if not id: continue href = '#'.join([base, id]) if href in hrefs: playorder[href] = next added = True if added: next += 1 selector = XPath('ncx:content/@src') for elem in xpath(ncx, '//*[@playOrder and ./ncx:content[@src]]'): href = selector(elem)[0] order = playorder.get(href, 0) elem.attrib['playOrder'] = str(order) return
925b3ea1fcdf76b98b9048f09c8d5333f85deead /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/925b3ea1fcdf76b98b9048f09c8d5333f85deead/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 1601, 1019, 12, 2890, 16, 8194, 92, 4672, 3897, 87, 273, 444, 12, 1458, 12, 718, 12237, 16, 6748, 12, 14202, 92, 16, 12084, 14202, 92, 30, 1745, 19, 36, 4816, 11, 20349, 6599, 1019, 273, 2618, 1024, 273, 404, 3451, 273, 10172, 2668, 76, 30, 3432, 759, 14, 14782, 350, 578, 632, 529, 3864, 13, 364, 761, 316, 365, 18, 1752, 558, 30, 1026, 273, 761, 18, 7547, 309, 1026, 316, 3897, 87, 30, 6599, 1019, 63, 1969, 65, 273, 1024, 1024, 1011, 404, 364, 3659, 316, 3451, 12, 1726, 18, 892, 4672, 3096, 273, 1083, 364, 1604, 316, 7707, 350, 2187, 296, 529, 11, 4672, 612, 273, 3659, 18, 588, 12, 1747, 13, 309, 486, 612, 30, 1324, 3897, 273, 6501, 18, 5701, 3816, 1969, 16, 612, 5717, 309, 3897, 316, 3897, 87, 30, 6599, 1019, 63, 7547, 65, 273, 1024, 3096, 273, 1053, 309, 3096, 30, 1024, 1011, 404, 3451, 273, 10172, 2668, 14202, 92, 30, 1745, 19, 36, 4816, 6134, 364, 3659, 316, 6748, 12, 14202, 92, 16, 12084, 14, 14782, 1601, 2448, 471, 263, 19, 14202, 92, 30, 1745, 14782, 4816, 65, 3864, 4672, 3897, 273, 3451, 12, 10037, 25146, 20, 65, 1353, 273, 6599, 1019, 18, 588, 12, 7547, 16, 374, 13, 3659, 18, 14588, 3292, 1601, 2448, 3546, 273, 609, 12, 1019, 13, 327,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404, 3451, 273, 10172, 2668, 76, 30, 3432, 759, 14, 14782, 350, 578, 632, 529, 3864, 13, 364, 761, 316, 365, 18, 1752, 558, 30, 1026, 273, 761, 18, 7547, 309, 1026, 316, 3897, 87, 30, 6599, 1019, 63, 1969, 65, 273, 1024, 1024, 1011, 404, 364, 3659, 316, 3451, 12, 1726, 18, 892, 4672, 3096, 273, 1083, 364, 1604, 316, 7707, 350, 2187, 296, 529, 11, 4672, 612, 273, 3659, 18, 588, 12, 1747, 13, 2 ]
def set_escape_dos_devices(self): SetConnections.UpdateGlobal('escape_dos_devices', \ self.dest_fsa.escape_dos_devices)
def set_escape_dos_devices(self): SetConnections.UpdateGlobal('escape_dos_devices', \ self.dest_fsa.escape_dos_devices)
7da9bdf57df966f94b1ffc47ed21cb4e47d2cf2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/783/7da9bdf57df966f94b1ffc47ed21cb4e47d2cf2d/fs_abilities.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6939, 67, 19219, 67, 12506, 12, 2890, 4672, 1000, 9314, 18, 1891, 5160, 2668, 6939, 67, 19219, 67, 12506, 2187, 521, 365, 18, 10488, 67, 2556, 69, 18, 6939, 67, 19219, 67, 12506, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6939, 67, 19219, 67, 12506, 12, 2890, 4672, 1000, 9314, 18, 1891, 5160, 2668, 6939, 67, 19219, 67, 12506, 2187, 521, 365, 18, 10488, 67, 2556, 69, 18, 6939, 67, 19219, 67, 12506, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"back " + pixvals(GL_BACK))
"back " + pixvals(GL_BACK) )
def pixvals(buff): glReadBuffer(buff) gl_format, gl_type = GL_RGBA, GL_UNSIGNED_BYTE rgba = glReadPixels( wX, wY, 1, 1, gl_format, gl_type )[0][0] return ("rgba %u, %u, %u, %u" % (us(rgba[0]), us(rgba[1]), us(rgba[2]), us(rgba[3])))
748256dc87917c09570e64f2cc27bfb918b53b06 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/748256dc87917c09570e64f2cc27bfb918b53b06/DynamicTip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11871, 4524, 12, 20664, 4672, 5118, 1994, 1892, 12, 20664, 13, 5118, 67, 2139, 16, 5118, 67, 723, 273, 10252, 67, 23263, 16, 10252, 67, 2124, 21049, 67, 15377, 19465, 273, 5118, 1994, 18079, 12, 341, 60, 16, 341, 61, 16, 404, 16, 404, 16, 5118, 67, 2139, 16, 5118, 67, 723, 262, 63, 20, 6362, 20, 65, 327, 7566, 26198, 738, 89, 16, 738, 89, 16, 738, 89, 16, 738, 89, 6, 738, 261, 407, 12, 26198, 63, 20, 65, 3631, 584, 12, 26198, 63, 21, 65, 3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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11871, 4524, 12, 20664, 4672, 5118, 1994, 1892, 12, 20664, 13, 5118, 67, 2139, 16, 5118, 67, 723, 273, 10252, 67, 23263, 16, 10252, 67, 2124, 21049, 67, 15377, 19465, 273, 5118, 1994, 18079, 12, 341, 60, 16, 341, 61, 16, 404, 16, 404, 16, 5118, 67, 2139, 16, 5118, 67, 723, 262, 63, 20, 6362, 20, 65, 327, 7566, 26198, 738, 89, 16, 738, 89, 16, 738, 89, 16, 738, 89, 6, 738, 261, 407, 12, 26198, 63, 20, 65, 3631, 584, 12, 26198, 63, 21, 65, 3631, 584, 12, 26198, 63, 22, 65, 3631, 584, 12, 26198, 63, 23, 65, 20349, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.baseclass.push('226 transfer complete') self.close()
if not self.dtp_conn_closed: self.baseclass.push('226 transfer complete') self.close() self.dtp_conn_closed = True
def handle_close(self): self.baseclass.push('226 transfer complete') self.close()
dbbbc946039920dffbeef9e7a5bd9be2e8685b36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/dbbbc946039920dffbeef9e7a5bd9be2e8685b36/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4412, 12, 2890, 4672, 365, 18, 1969, 1106, 18, 6206, 2668, 3787, 26, 7412, 3912, 6134, 365, 18, 4412, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1640, 67, 4412, 12, 2890, 4672, 365, 18, 1969, 1106, 18, 6206, 2668, 3787, 26, 7412, 3912, 6134, 365, 18, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sharedArea = gConfig.getValue('/LocalSite/SharedArea')
def configure(self, csSection, submitPool ): """ Here goes common configuration for DIRAC PilotDirector """
d4abebe0f52eb23d65894d6e3e3c5d75eba9084e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/d4abebe0f52eb23d65894d6e3e3c5d75eba9084e/DIRACPilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 16, 2873, 5285, 16, 4879,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5068, 12, 2890, 16, 2873, 5285, 16, 4879, 2864, 262, 30, 3536, 13743, 13998, 2975, 1664, 364, 18544, 2226, 453, 22797, 28280, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except ProgrammerError, err: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Recieved a ProgrammerError while calling interface.acquire_vessels. Details: " + str(err))
def acquire_resources(auth, rspec): """ <Purpose> Acquires resources for users over XMLRPC. <Arguments> auth An authorization dict of the form {'username':username, 'password':password} rspec A resource specificiation dict of the form {'rspec_type':type, 'number_of_nodes':num} <Exceptions> Raises xmlrpclib Fault objects: 100, "GENIOpError" for internal errors. 103, "GENINotEnoughCredits" if user has insufficient vessel credits to complete request. <Returns> A list of 'info' dictionaries, each 'infodict' contains acquired vessel info. """ geni_user = _auth(auth) resource_type = rspec['rspec_type'] num_vessels = rspec['number_of_nodes'] acquired_vessels = [] # validate rspec data if not isinstance(resource_type, str) or not isinstance(num_vessels, int): raise xmlrpclib.Fault(102, "GENIInvalidUserInput: rspec has invalid data types.") if (resource_type != "lan" and resource_type != "wan" and \ resource_type != "random") or num_vessels < 1: raise xmlrpclib.Fault(102, "GENIInvalidUserInput: rspec has invalid values.") # since acquired_vessels expects rand instead of random if resource_type == 'random': resource_type = 'rand' try: acquired_vessels = interface.acquire_vessels(geni_user, num_vessels, resource_type) except DoesNotExistError: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Recieved a DoesNotExistError while calling interface.acquire_vessels") except UnableToAcquireResourcesError, err: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Unable to fulfill vessel acquire request at this given time. Please try again later.") except InsufficientUserResourcesError, err: raise xmlrpclib.Fault(103, "GENINotEnoughCredits: You do not have enough vessel credits to acquire the number of vessels requested.") except ProgrammerError, err: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Recieved a ProgrammerError while calling interface.acquire_vessels. Details: " + str(err)) # since acquire_vessels returns a list of Vessel objects, we # need to convert them into a list of 'info' dictionaries. return interface.get_vessel_infodict_list(acquired_vessels)
e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 67, 4683, 12, 1944, 16, 436, 2793, 4672, 3536, 411, 10262, 4150, 34, 12848, 4138, 2703, 364, 3677, 1879, 3167, 8087, 18, 411, 4628, 34, 1357, 1922, 6093, 2065, 434, 326, 646, 13666, 5053, 4278, 5053, 16, 296, 3664, 4278, 3664, 97, 436, 2793, 432, 1058, 2923, 7072, 2065, 434, 326, 646, 13666, 86, 2793, 67, 723, 4278, 723, 16, 296, 2696, 67, 792, 67, 4690, 4278, 2107, 97, 411, 11416, 34, 20497, 2025, 13832, 830, 495, 25609, 2184, 30, 2130, 16, 315, 16652, 45, 3817, 668, 6, 364, 2713, 1334, 18, 1728, 23, 16, 315, 16652, 706, 352, 664, 4966, 24201, 1282, 6, 309, 729, 711, 2763, 11339, 331, 403, 292, 6197, 1282, 358, 3912, 590, 18, 411, 1356, 34, 432, 666, 434, 296, 1376, 11, 16176, 16, 1517, 296, 10625, 369, 933, 11, 1914, 20598, 331, 403, 292, 1123, 18, 3536, 3157, 77, 67, 1355, 273, 389, 1944, 12, 1944, 13, 225, 1058, 67, 723, 273, 436, 2793, 3292, 86, 2793, 67, 723, 3546, 818, 67, 90, 403, 10558, 273, 436, 2793, 3292, 2696, 67, 792, 67, 4690, 3546, 20598, 67, 90, 403, 10558, 273, 5378, 225, 468, 1954, 436, 2793, 501, 309, 486, 1549, 12, 3146, 67, 723, 16, 609, 13, 578, 486, 1549, 12, 2107, 67, 90, 403, 10558, 16, 509, 4672, 1002, 2025, 13832, 830, 495, 18, 7083, 12, 20481, 16, 315, 16652, 45, 1941, 29423, 30, 436, 2793, 711, 2057, 501, 1953, 1199, 13, 225, 309, 261, 3146, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10533, 67, 4683, 12, 1944, 16, 436, 2793, 4672, 3536, 411, 10262, 4150, 34, 12848, 4138, 2703, 364, 3677, 1879, 3167, 8087, 18, 411, 4628, 34, 1357, 1922, 6093, 2065, 434, 326, 646, 13666, 5053, 4278, 5053, 16, 296, 3664, 4278, 3664, 97, 436, 2793, 432, 1058, 2923, 7072, 2065, 434, 326, 646, 13666, 86, 2793, 67, 723, 4278, 723, 16, 296, 2696, 67, 792, 67, 4690, 4278, 2107, 97, 411, 11416, 34, 20497, 2025, 13832, 830, 495, 25609, 2184, 30, 2130, 16, 315, 16652, 45, 3817, 668, 6, 364, 2713, 1334, 18, 1728, 23, 16, 315, 16652, 706, 352, 664, 4966, 24201, 1282, 6, 309, 729, 711, 2763, 11339, 331, 403, 292, 6197, 1282, 358, 3912, 590, 2 ]
self.Logger.error("Invalid Address ID %s"%str(slot)); raise pyDCPU.FatIOModError; def write(self, Connection, Data): self.Logger.error("This module is read only"); raise pyDCPU.IOModError;
def write(self, Connection, Data): raise pyDCPU.AccessDenied("This module is read only");
def read(self, Connection, len): slot = Connection.Address; if not slot: self.Logger.error("No connection!!!"); raise pyDCPU.FatIOModError;
2797f7cc5dfc35cdc1823b3697093c4c7e49463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2439/2797f7cc5dfc35cdc1823b3697093c4c7e49463b/AGI54622A.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4050, 16, 562, 4672, 4694, 273, 4050, 18, 1887, 31, 309, 486, 4694, 30, 365, 18, 3328, 18, 1636, 2932, 2279, 1459, 8548, 4442, 1769, 1002, 2395, 40, 15222, 18, 42, 270, 4294, 1739, 668, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 855, 12, 2890, 16, 4050, 16, 562, 4672, 4694, 273, 4050, 18, 1887, 31, 309, 486, 4694, 30, 365, 18, 3328, 18, 1636, 2932, 2279, 1459, 8548, 4442, 1769, 1002, 2395, 40, 15222, 18, 42, 270, 4294, 1739, 668, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Check that the action can be performed by username on the resource
"""Check that the action can be performed by username on the resource
def check_permission(action, username, resource, perm):
aaea2624d62378836b05f688a633d7962e1d2e38 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/aaea2624d62378836b05f688a633d7962e1d2e38/perm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9827, 12, 1128, 16, 2718, 16, 1058, 16, 4641, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9827, 12, 1128, 16, 2718, 16, 1058, 16, 4641, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return repl.getstdout()
return clirepl.getstdout()
def main_curses(scr, args, config, interactive=True, locals_=None, banner=None): """main function for the curses convenience wrapper Initialise the two main objects: the interpreter and the repl. The repl does what a repl does and lots of other cool stuff like syntax highlighting and stuff. I've tried to keep it well factored but it needs some tidying up, especially in separating the curses stuff from the rest of the repl. """ global stdscr global DO_RESIZE global colors global repl DO_RESIZE = False old_sigwinch_handler = signal.signal(signal.SIGWINCH, lambda *_: sigwinch(scr)) # redraw window after being suspended old_sigcont_handler = signal.signal(signal.SIGCONT, lambda *_: sigcont(scr)) stdscr = scr try: curses.start_color() curses.use_default_colors() cols = make_colors(config) except curses.error: cols = FakeDict(-1) # FIXME: Gargh, bad design results in using globals without a refactor :( colors = cols scr.timeout(300) curses.raw(True) main_win, statusbar = init_wins(scr, cols, config) if locals_ is None: sys.modules['__main__'] = ModuleType('__main__') locals_ = sys.modules['__main__'].__dict__ interpreter = repl.Interpreter(locals_, getpreferredencoding()) clirepl = CLIRepl(main_win, interpreter, statusbar, config, idle) clirepl._C = cols sys.stdin = FakeStdin(repl) sys.stdout = repl sys.stderr = repl if args: bpython.args.exec_code(interpreter, args) if not interactive: curses.raw(False) return clirepl.getstdout() else: sys.path.insert(0, '') clirepl.startup() if banner is not None: clirepl.write(banner) clirepl.write('\n') clirepl.repl() if config.hist_length: histfilename = os.path.expanduser(config.hist_file) clirepl.rl_history.save(histfilename, getpreferredencoding()) main_win.erase() main_win.refresh() statusbar.win.clear() statusbar.win.refresh() curses.raw(False) # Restore signal handlers signal.signal(signal.SIGWINCH, old_sigwinch_handler) signal.signal(signal.SIGCONT, old_sigcont_handler) return repl.getstdout()
d389b904b92863eb8b2572189a64f322ae038343 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/d389b904b92863eb8b2572189a64f322ae038343/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 67, 1397, 2420, 12, 24638, 16, 833, 16, 642, 16, 12625, 33, 5510, 16, 8985, 67, 33, 7036, 16, 14090, 33, 7036, 4672, 3536, 5254, 445, 364, 326, 30436, 13553, 4053, 225, 31739, 326, 2795, 2774, 2184, 30, 326, 16048, 471, 326, 6831, 18, 1021, 6831, 1552, 4121, 279, 6831, 1552, 471, 328, 6968, 434, 1308, 27367, 10769, 3007, 6279, 8839, 310, 471, 10769, 18, 467, 8081, 12928, 358, 3455, 518, 5492, 5410, 7653, 1496, 518, 4260, 2690, 11594, 14946, 731, 16, 29440, 316, 5102, 1776, 326, 30436, 10769, 628, 326, 3127, 434, 326, 6831, 18, 3536, 2552, 2044, 24638, 2552, 5467, 67, 862, 4574, 2552, 5740, 2552, 6831, 5467, 67, 862, 4574, 273, 1083, 225, 1592, 67, 7340, 8082, 343, 67, 4176, 273, 4277, 18, 10420, 12, 10420, 18, 18513, 24572, 1792, 16, 3195, 380, 67, 30, 3553, 8082, 343, 12, 24638, 3719, 468, 16540, 2742, 1839, 3832, 21850, 1592, 67, 7340, 1213, 67, 4176, 273, 4277, 18, 10420, 12, 10420, 18, 18513, 6067, 16, 3195, 380, 67, 30, 3553, 1213, 12, 24638, 3719, 225, 2044, 24638, 273, 11991, 775, 30, 30436, 18, 1937, 67, 3266, 1435, 30436, 18, 1202, 67, 1886, 67, 9724, 1435, 5347, 273, 1221, 67, 9724, 12, 1425, 13, 1335, 30436, 18, 1636, 30, 5347, 273, 11551, 5014, 19236, 21, 13, 225, 468, 9852, 30, 611, 3175, 76, 16, 5570, 8281, 1686, 316, 1450, 10941, 2887, 279, 26627, 294, 12, 5740, 273, 5347, 225, 11991, 18, 4538, 12, 19249, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1397, 2420, 12, 24638, 16, 833, 16, 642, 16, 12625, 33, 5510, 16, 8985, 67, 33, 7036, 16, 14090, 33, 7036, 4672, 3536, 5254, 445, 364, 326, 30436, 13553, 4053, 225, 31739, 326, 2795, 2774, 2184, 30, 326, 16048, 471, 326, 6831, 18, 1021, 6831, 1552, 4121, 279, 6831, 1552, 471, 328, 6968, 434, 1308, 27367, 10769, 3007, 6279, 8839, 310, 471, 10769, 18, 467, 8081, 12928, 358, 3455, 518, 5492, 5410, 7653, 1496, 518, 4260, 2690, 11594, 14946, 731, 16, 29440, 316, 5102, 1776, 326, 30436, 10769, 628, 326, 3127, 434, 326, 6831, 18, 3536, 2552, 2044, 24638, 2552, 5467, 67, 862, 4574, 2552, 5740, 2552, 6831, 5467, 67, 862, 4574, 273, 1083, 225, 1592, 2 ]
if not(isinstance(val,float) or isinstance(val,int)):
if not(isinstance(val,float) or isinstance(val,int) or isinstance(val,int32) or \ isinstance(val,int64) or isinstance(val,float32) or isinstance(val,float64) ):
def add_des_var(self,ref,low=None,high=None): """adds a design variable to the driver. 'ref' is a string refering to the public variable the driver should vary during execution. 'low' and 'high' refer to the minimum and maximum allowed values for the optimizer to use. If neither are specified, the min and max will default to the values in the metadata of the public variable being referenced. If they are not specified in the metadata and not provided as arguments a ValueError is raised. """
927808af643fac87e7e83e0fb5fcc60a35582f2d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/927808af643fac87e7e83e0fb5fcc60a35582f2d/genetic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5489, 67, 1401, 12, 2890, 16, 1734, 16, 821, 33, 7036, 16, 8766, 33, 7036, 4672, 3536, 25428, 279, 8281, 2190, 358, 326, 3419, 18, 296, 1734, 11, 353, 279, 533, 8884, 310, 358, 326, 1071, 2190, 326, 3419, 1410, 23674, 4982, 4588, 18, 296, 821, 11, 471, 296, 8766, 11, 8884, 358, 326, 5224, 471, 4207, 2935, 924, 364, 326, 13066, 358, 999, 18, 971, 15826, 854, 1269, 16, 326, 1131, 471, 943, 903, 805, 358, 326, 924, 316, 326, 1982, 434, 326, 1071, 2190, 3832, 8042, 18, 971, 2898, 854, 486, 1269, 316, 326, 1982, 471, 486, 2112, 487, 1775, 279, 2068, 353, 11531, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 5489, 67, 1401, 12, 2890, 16, 1734, 16, 821, 33, 7036, 16, 8766, 33, 7036, 4672, 3536, 25428, 279, 8281, 2190, 358, 326, 3419, 18, 296, 1734, 11, 353, 279, 533, 8884, 310, 358, 326, 1071, 2190, 326, 3419, 1410, 23674, 4982, 4588, 18, 296, 821, 11, 471, 296, 8766, 11, 8884, 358, 326, 5224, 471, 4207, 2935, 924, 364, 326, 13066, 358, 999, 18, 971, 15826, 854, 1269, 16, 326, 1131, 471, 943, 903, 805, 358, 326, 924, 316, 326, 1982, 434, 326, 1071, 2190, 3832, 8042, 18, 971, 2898, 854, 486, 1269, 316, 326, 1982, 471, 486, 2112, 487, 1775, 279, 2068, 353, 11531, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
], CONTEXT)
], 0, None, None, CONTEXT)
def test0020integer(self): ''' Test Integer. ''' integer1_id = self.integer.create({ 'integer': 1, }, CONTEXT) self.assert_(integer1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3462, 7745, 12, 2890, 4672, 9163, 7766, 2144, 18, 9163, 3571, 21, 67, 350, 273, 365, 18, 7745, 18, 2640, 12590, 296, 7745, 4278, 404, 16, 19879, 13862, 13, 365, 18, 11231, 67, 12, 7745, 21, 67, 350, 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, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 713, 3462, 7745, 12, 2890, 4672, 9163, 7766, 2144, 18, 9163, 3571, 21, 67, 350, 273, 365, 18, 7745, 18, 2640, 12590, 296, 7745, 4278, 404, 16, 19879, 13862, 13, 365, 18, 11231, 67, 12, 7745, 21, 67, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.assertEqual(d.values(), [2])
self.assertEqual(set(d.values()), {2})
def test_values(self): d = {} self.assertEqual(d.values(), []) d = {1:2} self.assertEqual(d.values(), [2])
d97ef59cd009e3205fe166ecac3a2935156c382d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/d97ef59cd009e3205fe166ecac3a2935156c382d/test_dict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 302, 273, 2618, 365, 18, 11231, 5812, 12, 72, 18, 2372, 9334, 5378, 13, 302, 273, 288, 21, 30, 22, 97, 365, 18, 11231, 5812, 12, 72, 18, 2372, 9334, 306, 22, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2372, 12, 2890, 4672, 302, 273, 2618, 365, 18, 11231, 5812, 12, 72, 18, 2372, 9334, 5378, 13, 302, 273, 288, 21, 30, 22, 97, 365, 18, 11231, 5812, 12, 72, 18, 2372, 9334, 306, 22, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'time':time} print rule.domain_force
'time':time}
def _domain_force_get(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): eval_user_data = {'user': self.pool.get('res.users').browse(cr, 1, uid), 'time':time} print rule.domain_force res[rule.id] = eval(rule.domain_force, eval_user_data) return res
833d3f5afdbfca3c0c56ba5e8cf224d1f27ef66f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/833d3f5afdbfca3c0c56ba5e8cf224d1f27ef66f/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4308, 67, 5734, 67, 588, 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, 3258, 16, 819, 4672, 5302, 67, 1355, 67, 892, 273, 13666, 1355, 4278, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 404, 16, 4555, 3631, 296, 957, 4278, 957, 97, 400, 63, 5345, 18, 350, 65, 273, 5302, 12, 5345, 18, 4308, 67, 5734, 16, 5302, 67, 1355, 67, 892, 13, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4308, 67, 5734, 67, 588, 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, 3258, 16, 819, 4672, 5302, 67, 1355, 67, 892, 273, 13666, 1355, 4278, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 25731, 12, 3353, 16, 404, 16, 4555, 3631, 296, 957, 4278, 957, 97, 400, 63, 5345, 18, 350, 65, 273, 5302, 12, 5345, 18, 4308, 67, 5734, 16, 5302, 67, 1355, 67, 892, 13, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
function = location_text_table[style] location = function(self.location_text) else: function = location_pos_table[style] location = function(self.location_start, self.location_end) self.callback(location)
self.callback(self.location_style, (self.text_join_func(self.text_lines), None)) else: self.callback(self.location_style, (self.location_start, self.location_end)) def start_feature_location(self, tag, attrs): self.save_characters() def end_feature_location(self, tag): self.text_lines.append(self.get_characters()) add_text_handler(Handle_feature_location, "feature_location_start", "location_start") add_text_handler(Handle_feature_location, "feature_location_end", "location_end")
def end_(self, tag): style = self.location_style if self.location_text: if self.location_start or self.location_end: raise TypeError("Cannot have both location text and start/end") function = location_text_table[style] location = function(self.location_text) else: function = location_pos_table[style] location = function(self.location_start, self.location_end) self.callback(location)
7795919201eb3f63ba6ae6a328d1c7499aba60a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/7795919201eb3f63ba6ae6a328d1c7499aba60a2/StdHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 12, 2890, 16, 1047, 4672, 2154, 273, 365, 18, 3562, 67, 4060, 309, 365, 18, 3562, 67, 955, 30, 309, 365, 18, 3562, 67, 1937, 578, 365, 18, 3562, 67, 409, 30, 1002, 3580, 2932, 4515, 1240, 3937, 2117, 977, 471, 787, 19, 409, 7923, 445, 273, 2117, 67, 955, 67, 2121, 63, 4060, 65, 2117, 273, 445, 12, 2890, 18, 3562, 67, 955, 13, 469, 30, 445, 273, 2117, 67, 917, 67, 2121, 63, 4060, 65, 2117, 273, 445, 12, 2890, 18, 3562, 67, 1937, 16, 365, 18, 3562, 67, 409, 13, 365, 18, 3394, 12, 3562, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 3562, 67, 4060, 309, 365, 18, 3562, 67, 955, 30, 309, 365, 18, 3562, 67, 1937, 578, 365, 18, 3562, 67, 409, 30, 1002, 3580, 2932, 4515, 1240, 3937, 2117, 977, 471, 787, 19, 409, 7923, 445, 273, 2117, 67, 955, 67, 2121, 63, 4060, 65, 2117, 273, 445, 12, 2890, 18, 3562, 67, 955, 13, 469, 30, 445, 273, 2117, 67, 917, 67, 2121, 63, 4060, 65, 2117, 273, 445, 12, 2890, 18, 3562, 67, 1937, 16, 365, 18, 3562, 67, 409, 13, 365, 18, 3394, 12, 3562, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
w(t) = - t + \cdots
i(t) = - t + a_1 t^2 + \cdots
def inverse(self, prec=20): r""" The formal group power series w.
d6d52d622e2ed6ae873e4370b7a510dcaf6f4837 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d6d52d622e2ed6ae873e4370b7a510dcaf6f4837/formal_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8322, 12, 2890, 16, 13382, 33, 3462, 4672, 436, 8395, 1021, 25739, 1041, 7212, 4166, 341, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8322, 12, 2890, 16, 13382, 33, 3462, 4672, 436, 8395, 1021, 25739, 1041, 7212, 4166, 341, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
resource_count = list(c.execute( "SELECT count(*) FROM resources WHERE name = ?", (name,) ))[0][0]
resource_count = list(cc.execute( "SELECT count(*) FROM resources WHERE name = ?", (name,) ))[0][0]
def store(self, name, obj, c=None): cc = self.conn.cursor() if c is None else c resource_count = list(c.execute( "SELECT count(*) FROM resources WHERE name = ?", (name,) ))[0][0] if resource_count == 0: cc.execute( "INSERT INTO resources VALUES (?, ?)", (name, cPickle.dumps( obj )) ) if not c: self.conn.commit() if not c: cc.close()
64752f54b6e9904860e4d1fa29d3b25fddbe125e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10974/64752f54b6e9904860e4d1fa29d3b25fddbe125e/graphdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 12, 2890, 16, 508, 16, 1081, 16, 276, 33, 7036, 4672, 4946, 273, 365, 18, 4646, 18, 9216, 1435, 309, 276, 353, 599, 469, 276, 1058, 67, 1883, 273, 666, 12, 952, 18, 8837, 12, 315, 4803, 1056, 24099, 4571, 2703, 4852, 508, 273, 692, 3113, 261, 529, 16, 13, 8623, 63, 20, 6362, 20, 65, 309, 1058, 67, 1883, 422, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1707, 12, 2890, 16, 508, 16, 1081, 16, 276, 33, 7036, 4672, 4946, 273, 365, 18, 4646, 18, 9216, 1435, 309, 276, 353, 599, 469, 276, 1058, 67, 1883, 273, 666, 12, 952, 18, 8837, 12, 315, 4803, 1056, 24099, 4571, 2703, 4852, 508, 273, 692, 3113, 261, 529, 16, 13, 8623, 63, 20, 6362, 20, 65, 309, 1058, 67, 1883, 422, 374, 30, 4946, 18, 8837, 12, 315, 11356, 12421, 2703, 13477, 13590, 16, 692, 2225, 16, 261, 529, 16, 276, 17968, 298, 18, 13302, 1121, 12, 1081, 8623, 262, 309, 486, 276, 30, 365, 18, 4646, 18, 7371, 1435, 309, 486, 276, 30, 4946, 18, 4412, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
if prog.stop < now:
if ( prog.stop + config.RECORD_PADDING) < now:
def checkToRecord(self): if DEBUG: log.debug('in checkToRecord') rec_cmd = None rec_prog = None cleaned = None scheduledRecordings = self.getScheduledRecordings()
f79c81409fa066f1fd35ff211636eb7c2c76f741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/f79c81409fa066f1fd35ff211636eb7c2c76f741/recordserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 774, 2115, 12, 2890, 4672, 309, 6369,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 774, 2115, 12, 2890, 4672, 309, 6369, 30, 613, 18, 4148, 2668, 267, 866, 774, 2115, 6134, 1950, 67, 4172, 273, 599, 1950, 67, 14654, 273, 599, 9426, 273, 599, 9755, 2115, 899, 273, 365, 18, 588, 10660, 2115, 899, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def init(self):
def init(self, parent):
def init(self): super(AddChannelSheetController, self).initWithWindowNibName_owner_("AddChannelSheet", self) return self.retain()
844613ba16f5aa178e0454025827157881e137b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/844613ba16f5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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1208, 12, 2890, 16, 982, 4672, 2240, 12, 986, 2909, 8229, 2933, 16, 365, 2934, 2738, 1190, 3829, 50, 495, 461, 67, 8443, 67, 2932, 986, 2909, 8229, 3113, 365, 13, 327, 365, 18, 1349, 530, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return map(lambda (a,b,c): detector_thresholds(min_threshold,ifos,a,b,c,sensitivities), zip(RA,dec,gps_time))
return map(lambda (a,b,c): detector_thresholds(ifos,a,b,c,sensitivities,min_threshold=min_threshold,max_threshold=max_threshold), zip(RA,dec,gps_time))
def detector_thresholds(min_threshold, ifos, RA, dec, gps_time, sensitivities=None): """ Return a dictionary of sensitivity thresholds for each detector, based on a minimum threshold of min_threshold in the least sensitive one, for a source at position (RA,dec) specified in radians at time gps_time. Specifying a dictionary of sensitivities allows one to weight also by the relative SNR of a reference system in each detector to handle different noise curves. """ # Recurse if multiple RA, dec and GPS times are specified if type(gps_time)!=float or type(RA)!=float or type(dec)!=float: assert len(gps_time)==len(RA),len(gps_time)==len(dec) return map(lambda (a,b,c): detector_thresholds(min_threshold,ifos,a,b,c,sensitivities), zip(RA,dec,gps_time)) from pylal import antenna # Sensitivies specifies relative SNRs of a reference signal (BNS) if sensitivities is None: sensitivities={} for det in ifos: sensitivies[det]=1.0 else: assert len(ifos)==len(sensitivites) # Normalise sensitivities minsens=min(sensitivities.values()) for det in ifos: sensitivities[det]/=minsens resps={} threshs={} # Make a dictionary of average responses for det in ifos: resps[det]=antenna.response(gps_time,RA,dec,0,0,'radians',det)[2] worst_resp=min(resps.values()) # Assuming that lowest threshold is in worst detector, return thresholds for det in ifos: threshs[det]=min_threshold*(resps[det]/worst_resp)*sensitivities[det] return threshs
323638fdd5a246491641cf1f6c20df7c1ed90d57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/323638fdd5a246491641cf1f6c20df7c1ed90d57/grbsummary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13826, 67, 8699, 87, 12, 1154, 67, 8699, 16, 309, 538, 16, 26880, 16, 2109, 16, 20985, 67, 957, 16, 15390, 305, 427, 1961, 33, 7036, 4672, 3536, 2000, 279, 3880, 434, 15390, 20862, 19983, 364, 1517, 13826, 16, 2511, 603, 279, 5224, 5573, 434, 1131, 67, 8699, 316, 326, 4520, 16692, 1245, 16, 364, 279, 1084, 622, 1754, 261, 2849, 16, 4924, 13, 1269, 316, 13703, 622, 813, 20985, 67, 957, 18, 21664, 310, 279, 3880, 434, 15390, 305, 427, 1961, 5360, 1245, 358, 3119, 2546, 635, 326, 3632, 14204, 54, 434, 279, 2114, 2619, 316, 1517, 13826, 358, 1640, 3775, 10825, 24106, 18, 3536, 225, 468, 868, 17682, 309, 3229, 26880, 16, 2109, 471, 29783, 4124, 854, 1269, 309, 618, 12, 75, 1121, 67, 957, 13, 5, 33, 5659, 578, 618, 12, 2849, 13, 5, 33, 5659, 578, 618, 12, 4924, 13, 5, 33, 5659, 30, 1815, 562, 12, 75, 1121, 67, 957, 13, 631, 1897, 12, 2849, 3631, 1897, 12, 75, 1121, 67, 957, 13, 631, 1897, 12, 4924, 13, 327, 852, 12, 14661, 261, 69, 16, 70, 16, 71, 4672, 13826, 67, 8699, 87, 12, 430, 538, 16, 69, 16, 70, 16, 71, 16, 87, 773, 305, 427, 1961, 16, 1154, 67, 8699, 33, 1154, 67, 8699, 16, 1896, 67, 8699, 33, 1896, 67, 8699, 3631, 3144, 12, 2849, 16, 4924, 16, 75, 1121, 67, 957, 3719, 225, 628, 2395, 80, 287, 1930, 392, 2253, 6582, 225, 468, 348, 773, 305, 427, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13826, 67, 8699, 87, 12, 1154, 67, 8699, 16, 309, 538, 16, 26880, 16, 2109, 16, 20985, 67, 957, 16, 15390, 305, 427, 1961, 33, 7036, 4672, 3536, 2000, 279, 3880, 434, 15390, 20862, 19983, 364, 1517, 13826, 16, 2511, 603, 279, 5224, 5573, 434, 1131, 67, 8699, 316, 326, 4520, 16692, 1245, 16, 364, 279, 1084, 622, 1754, 261, 2849, 16, 4924, 13, 1269, 316, 13703, 622, 813, 20985, 67, 957, 18, 21664, 310, 279, 3880, 434, 15390, 305, 427, 1961, 5360, 1245, 358, 3119, 2546, 635, 326, 3632, 14204, 54, 434, 279, 2114, 2619, 316, 1517, 13826, 358, 1640, 3775, 10825, 24106, 18, 3536, 225, 468, 868, 17682, 309, 3229, 26880, 16, 2109, 471, 29783, 4124, 2 ]
if w > max_w and max_w != 0:
if max_w and w > max_w:
def _verify_min_w(self, w, group_w, group_h, max_w, group): if w < 0: w = 0 if w > max_w and max_w != 0: w = max_w if w > group_w: group.resize(w, group_h)
7e7a5b5846f817a4dbbbfe738d3f37068ba15d1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12343/7e7a5b5846f817a4dbbbfe738d3f37068ba15d1a/editable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8705, 67, 1154, 67, 91, 12, 2890, 16, 341, 16, 1041, 67, 91, 16, 1041, 67, 76, 16, 943, 67, 91, 16, 1041, 4672, 309, 341, 411, 374, 30, 341, 273, 374, 309, 943, 67, 91, 471, 341, 405, 943, 67, 91, 30, 341, 273, 943, 67, 91, 309, 341, 405, 1041, 67, 91, 30, 1041, 18, 15169, 12, 91, 16, 1041, 67, 76, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8705, 67, 1154, 67, 91, 12, 2890, 16, 341, 16, 1041, 67, 91, 16, 1041, 67, 76, 16, 943, 67, 91, 16, 1041, 4672, 309, 341, 411, 374, 30, 341, 273, 374, 309, 943, 67, 91, 471, 341, 405, 943, 67, 91, 30, 341, 273, 943, 67, 91, 309, 341, 405, 1041, 67, 91, 30, 1041, 18, 15169, 12, 91, 16, 1041, 67, 76, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
title = t.artist.name + ' - ' + t.title
trackArtist = t.artist if t.artist else release.artist title = trackArtist.name + ' - ' + t.title
def showReleaseHandler(self): print "loading release from server ... " print
741c324e66e51d0c6c91f7151df37b2e855247d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6926/741c324e66e51d0c6c91f7151df37b2e855247d5/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 7391, 1503, 12, 2890, 4672, 1172, 315, 15174, 3992, 628, 1438, 1372, 315, 1172, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2405, 7391, 1503, 12, 2890, 4672, 1172, 315, 15174, 3992, 628, 1438, 1372, 315, 1172, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
renderer = gtk.CellRendererText() self._pattern_combo.pack_start(renderer, True) self._pattern_combo.add_attribute(renderer, "text", 0)
self._pattern_combo.set_text_column(0)
def _init_pattern_combo(self): """Initialize the pattern combo box.""" store = gtk.ListStore(str) self._pattern_combo.set_model(store) for pattern in self.patterns: store.append((pattern,)) renderer = gtk.CellRendererText() self._pattern_combo.pack_start(renderer, True) self._pattern_combo.add_attribute(renderer, "text", 0)
5802fb813a76082ea8f64aeabac6832a9f0a6b4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12852/5802fb813a76082ea8f64aeabac6832a9f0a6b4e/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4951, 67, 25053, 12, 2890, 4672, 3536, 7520, 326, 1936, 16778, 3919, 12123, 1707, 273, 22718, 18, 682, 2257, 12, 701, 13, 365, 6315, 4951, 67, 25053, 18, 542, 67, 2284, 12, 2233, 13, 364, 1936, 316, 365, 18, 13317, 30, 1707, 18, 6923, 12443, 4951, 16, 3719, 5690, 273, 22718, 18, 4020, 6747, 1528, 1435, 365, 6315, 4951, 67, 25053, 18, 2920, 67, 1937, 12, 14374, 16, 1053, 13, 365, 6315, 4951, 67, 25053, 18, 1289, 67, 4589, 12, 14374, 16, 315, 955, 3113, 374, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 18, 542, 67, 2284, 12, 2233, 13, 364, 1936, 316, 365, 18, 13317, 30, 1707, 18, 6923, 12443, 4951, 16, 3719, 5690, 273, 22718, 18, 4020, 6747, 1528, 1435, 365, 6315, 4951, 67, 25053, 18, 2920, 67, 1937, 12, 14374, 16, 1053, 13, 365, 6315, 4951, 67, 25053, 18, 1289, 67, 4589, 12, 14374, 16, 315, 955, 3113, 374, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if options.verbose: print "%s not done yet" % (system['name'])
if options.verbose: print "%s not completed yet." % (system['name'])
def get_action_results(key, systems): '''Gets action results that have been scheduled''' if options.debug: wait = 5 elif options.verbose: wait = 15 else: wait = 30 complete = False while not complete: for system in systems: if system['skip']: continue if not system['complete']: if options.verbose: print "checking system:", system['name'] script_result = client.system.get_script_results(key, system['action_id']) if options.verbose: print "Script result:", script_result if not script_result == []: if options.verbose: print "%s script result:" % (system['name']) if options.debug: print script_result system['output'] = script_result[0]['output'] system['return_code'] = script_result[0]['returnCode'] system['complete'] = True else: system['complete'] = False if options.verbose: print "%s not done yet" % (system['name']) complete = True for system in systems: if system['skip']: continue if not system['complete']: complete = False if not complete: print "waiting %i seconds for results ..." % (wait) time.sleep(wait) for system in systems: if system['skip']: continue data = system['output'].split('\n') if options.debug: print "DEBUG: Raw output from %s script: %s" %(system['name'], data) for line in data: if options.debug: print "DEBUG: %s checking '%s'" % (system['name'], line) if 'System ID:' in line: if options.verbose: print "Found system_id of:", line.split()[-1] system['system_id'] = line.split()[-1].lower() break else: system['system_id'] = False for system in systems: if system['skip']: continue if options.verbose: print "Output for %s is: %s" % (system['name'], system['system_id']) new_channel = DELL_INFO['label'] + '-' + SYSTEM_VENDOR_ID + '.dev_' + system['system_id'] + '-' + system['base_channel'] system['system_channel'] = new_channel if options.verbose: print "Subscribing %s to channel %s" % (system['name'], system['system_channel']) subscribe(key, system['base_channel'], system['system_channel'], system['id']) return systems
a505c3724245a7ab265bfa6c2d81e21adace87b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/a505c3724245a7ab265bfa6c2d81e21adace87b1/dell-satellite-sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1128, 67, 4717, 12, 856, 16, 14908, 4672, 9163, 3002, 1301, 1686, 716, 1240, 2118, 9755, 26418, 309, 702, 18, 4148, 30, 2529, 273, 1381, 1327, 702, 18, 11369, 30, 2529, 273, 4711, 469, 30, 2529, 273, 5196, 3912, 273, 1083, 225, 1323, 486, 3912, 30, 364, 2619, 316, 14908, 30, 309, 2619, 3292, 7457, 3546, 30, 1324, 309, 486, 2619, 3292, 6226, 3546, 30, 309, 702, 18, 11369, 30, 1172, 315, 24609, 2619, 2773, 16, 2619, 3292, 529, 3546, 2728, 67, 2088, 273, 1004, 18, 4299, 18, 588, 67, 4263, 67, 4717, 12, 856, 16, 2619, 3292, 1128, 67, 350, 19486, 309, 702, 18, 11369, 30, 1172, 315, 3651, 563, 2773, 16, 2728, 67, 2088, 309, 486, 2728, 67, 2088, 422, 5378, 30, 309, 702, 18, 11369, 30, 1172, 2213, 87, 2728, 563, 2773, 738, 261, 4299, 3292, 529, 19486, 309, 702, 18, 4148, 30, 1172, 2728, 67, 2088, 2619, 3292, 2844, 3546, 273, 2728, 67, 2088, 63, 20, 23962, 2844, 3546, 2619, 3292, 2463, 67, 710, 3546, 273, 2728, 67, 2088, 63, 20, 23962, 2463, 1085, 3546, 2619, 3292, 6226, 3546, 273, 1053, 469, 30, 2619, 3292, 6226, 3546, 273, 1083, 309, 702, 18, 11369, 30, 1172, 2213, 87, 486, 5951, 4671, 1199, 738, 261, 4299, 3292, 529, 19486, 3912, 273, 1053, 364, 2619, 316, 14908, 30, 309, 2619, 3292, 7457, 3546, 30, 1324, 309, 486, 2619, 3292, 6226, 3546, 30, 3912, 273, 1083, 309, 486, 3912, 30, 1172, 315, 20241, 738, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1128, 67, 4717, 12, 856, 16, 14908, 4672, 9163, 3002, 1301, 1686, 716, 1240, 2118, 9755, 26418, 309, 702, 18, 4148, 30, 2529, 273, 1381, 1327, 702, 18, 11369, 30, 2529, 273, 4711, 469, 30, 2529, 273, 5196, 3912, 273, 1083, 225, 1323, 486, 3912, 30, 364, 2619, 316, 14908, 30, 309, 2619, 3292, 7457, 3546, 30, 1324, 309, 486, 2619, 3292, 6226, 3546, 30, 309, 702, 18, 11369, 30, 1172, 315, 24609, 2619, 2773, 16, 2619, 3292, 529, 3546, 2728, 67, 2088, 273, 1004, 18, 4299, 18, 588, 67, 4263, 67, 4717, 12, 856, 16, 2619, 3292, 1128, 67, 350, 19486, 309, 702, 18, 11369, 30, 1172, 315, 3651, 563, 2773, 16, 2728, 67, 2088, 2 ]
dt = now - self.networkToLocalTime(networkTime, now)
dt = now - self.networkToLocalTime(networkTime, now, bits=bits)
def localElapsedTime(self, networkTime): """localElapsedTime(self, int networkTime)
633409b2bf5e7b41caaa168cac1cf1fe5ae3d4d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/633409b2bf5e7b41caaa168cac1cf1fe5ae3d4d2/ClockDelta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 28827, 950, 12, 2890, 16, 2483, 950, 4672, 3536, 3729, 28827, 950, 12, 2890, 16, 509, 2483, 950, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 16, 509, 2483, 950, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(1, 'bottom'): ('', ''), (1, 'middle'): ('\\raisebox{-0.5\\height}{', '}'), (1, 'top'): ('\\raisebox{-\\height}{', '}'), (0, 'center'): ('{\\hfill', '\\hfill}'), (0, 'left'): ('{', '\\hfill}'), (0, 'right'): ('{\\hfill', '}'),} if 'scale' in attrs: pre.append('\\scalebox{%f}{' % (attrs['scale'] / 100.0,)) post.append('}') if 'width' in attrs: include_graphics_options.append('width=%s' % ( self.latex_image_length(attrs['width']), )) if 'height' in attrs: include_graphics_options.append('height=%s' % ( self.latex_image_length(attrs['height']), ))
(True, 'bottom'): ('', ''), (True, 'middle'): (r'\raisebox{-0.5\height}{', '}'), (True, 'top'): (r'\raisebox{-\height}{', '}'), (False, 'center'): (r'\noindent\makebox[\textwidth][c]{', '}'), (False, 'left'): ('{', r'\hfill}'), (False, 'right'): (r'{\hfill', '}'),}
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) pre = [] # in reverse order post = [] include_graphics_options = [] inline = isinstance(node.parent, nodes.TextElement) align_prepost = { # key == (<inline>, <align>) # By default latex aligns the bottom of an image. (1, 'bottom'): ('', ''), (1, 'middle'): ('\\raisebox{-0.5\\height}{', '}'), (1, 'top'): ('\\raisebox{-\\height}{', '}'), (0, 'center'): ('{\\hfill', '\\hfill}'), # According to the HTML standard # http://www.w3.org/TR/html4/struct/objects.html#adef-align-IMG # the image should be floated alongside the paragraph. # However, this is not even honoured by all HTML browsers. (0, 'left'): ('{', '\\hfill}'), (0, 'right'): ('{\\hfill', '}'),} if 'scale' in attrs: # Could also be done with ``scale`` option to # ``\includegraphics``; doing it this way for consistency. pre.append('\\scalebox{%f}{' % (attrs['scale'] / 100.0,)) post.append('}') if 'width' in attrs: include_graphics_options.append('width=%s' % ( self.latex_image_length(attrs['width']), )) if 'height' in attrs: include_graphics_options.append('height=%s' % ( self.latex_image_length(attrs['height']), )) if 'align' in attrs: try: pre.append(align_prepost[inline, attrs['align']][0]) post.append(align_prepost[inline, attrs['align']][1]) except KeyError: pass # XXX complain here? if not inline: pre.append('\n') post.append('\n') pre.reverse() self.body.extend( pre ) options = '' if len(include_graphics_options)>0: options = '[%s]' % (','.join(include_graphics_options)) self.body.append( '\\includegraphics%s{%s}' % ( options, attrs['uri'] ) ) self.body.extend( post )
ca2f22b1c4e8be5a06f234a03127244e2db8bd3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1532/ca2f22b1c4e8be5a06f234a03127244e2db8bd3c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18, 4272, 18, 3366, 67, 11037, 18, 1289, 12, 7039, 3292, 1650, 19486, 675, 273, 5378, 13491, 468, 316, 4219, 1353, 1603, 273, 5378, 2341, 67, 31586, 67, 2116, 273, 5378, 6370, 273, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 1528, 1046, 13, 5689, 67, 1484, 2767, 273, 288, 468, 498, 422, 261, 32, 10047, 20401, 411, 7989, 23429, 468, 2525, 805, 25079, 5689, 87, 326, 5469, 434, 392, 1316, 18, 261, 21, 16, 296, 9176, 11, 4672, 7707, 2187, 875, 3631, 261, 21, 16, 296, 18661, 11, 4672, 7707, 1695, 11628, 2147, 95, 17, 20, 18, 25, 1695, 4210, 8637, 2187, 9571, 3631, 261, 21, 16, 296, 3669, 11, 4672, 7707, 1695, 11628, 2147, 95, 20400, 4210, 8637, 2187, 9571, 3631, 261, 20, 16, 296, 5693, 11, 4672, 7707, 95, 1695, 76, 5935, 2187, 3718, 76, 5935, 1713, 3631, 468, 12848, 4643, 358, 326, 3982, 4529, 468, 1062, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 2620, 24, 19, 1697, 19, 6911, 18, 2620, 7, 69, 536, 17, 7989, 17, 3445, 43, 468, 326, 1316, 1410, 506, 20802, 690, 524, 7260, 831, 326, 10190, 18, 468, 10724, 16, 333, 353, 486, 5456, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, 666, 16, 15144, 716, 518, 1807, 468, 1278, 20245, 358, 279, 1191, 585, 18, 365, 18, 4272, 18, 3366, 67, 11037, 18, 1289, 12, 7039, 3292, 1650, 19486, 675, 273, 5378, 13491, 468, 316, 4219, 1353, 1603, 273, 5378, 2341, 67, 31586, 67, 2116, 273, 5378, 6370, 273, 1549, 12, 2159, 18, 2938, 16, 2199, 18, 1528, 1046, 13, 5689, 67, 1484, 2767, 273, 288, 468, 498, 422, 261, 32, 10047, 20401, 411, 7989, 23429, 468, 2525, 805, 25079, 5689, 87, 326, 5469, 2 ]
atts['align'] = node['align']
atts['class'] += " align-" + node['align']
def visit_figure(self, node): atts = {'class': 'figure'} if node.get('width'): atts['style'] = 'width: %spx' % node['width'] if node.get('align'): atts['align'] = node['align'] self.body.append(self.starttag(node, 'div', **atts))
56c63b60aa36007ad9f919386a755e628ba4b2a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/56c63b60aa36007ad9f919386a755e628ba4b2a9/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 19675, 12, 2890, 16, 756, 4672, 15687, 273, 13666, 1106, 4278, 296, 19675, 11, 97, 309, 756, 18, 588, 2668, 2819, 11, 4672, 15687, 3292, 4060, 3546, 273, 296, 2819, 30, 738, 1752, 92, 11, 738, 756, 3292, 2819, 3546, 309, 756, 18, 588, 2668, 7989, 11, 4672, 15687, 3292, 1106, 3546, 1011, 315, 5689, 10951, 397, 756, 3292, 7989, 3546, 365, 18, 3432, 18, 6923, 12, 2890, 18, 1937, 2692, 12, 2159, 16, 296, 2892, 2187, 2826, 270, 3428, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3757, 67, 19675, 12, 2890, 16, 756, 4672, 15687, 273, 13666, 1106, 4278, 296, 19675, 11, 97, 309, 756, 18, 588, 2668, 2819, 11, 4672, 15687, 3292, 4060, 3546, 273, 296, 2819, 30, 738, 1752, 92, 11, 738, 756, 3292, 2819, 3546, 309, 756, 18, 588, 2668, 7989, 11, 4672, 15687, 3292, 1106, 3546, 1011, 315, 5689, 10951, 397, 756, 3292, 7989, 3546, 365, 18, 3432, 18, 6923, 12, 2890, 18, 1937, 2692, 12, 2159, 16, 296, 2892, 2187, 2826, 270, 3428, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if choice == 's': return text, False elif choice == 'e': editor = editarticle.TextEditor() newText = editor.edit(text, jumpIndex = match.start()) if newText: return newText, True else: return text, True elif choice == 'm': return self.handleNextLink(text, match, context = context + 100) else: new = match.group('label') or match.group('title') new += match.group('linktrail') return text[:match.start()] + new + text[match.end():], False
if choice == 's': return text, False elif choice == 'e': editor = editarticle.TextEditor() newText = editor.edit(text, jumpIndex = match.start()) if newText: return newText, True else: return text, True elif choice == 'm': return self.handleNextLink(text, match, context = context + 100) elif choice == 'a': self.always = True elif choice == 'q': self.done = True return text, False new = match.group('label') or match.group('title') new += match.group('linktrail') return text[:match.start()] + new + text[match.end():], False
def handleNextLink(self, text, match, context = 100): """ Returns a tuple (text, jumpToBeginning). text is the unicode string after the current link has been processed. jumpToBeginning is a boolean which specifies if the cursor position should be reset to 0. This is required after the user has edited the article. """ # ignore interwiki links and links to sections of the same page as well as section links if not match.group('title') or self.pageToUnlink.site().isInterwikiLink(match.group('title')) or match.group('section'): return text, False
333c7adbfe5dafc20ddb17800987a60848d63725 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/333c7adbfe5dafc20ddb17800987a60848d63725/unlink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 2134, 2098, 12, 2890, 16, 977, 16, 845, 16, 819, 273, 2130, 4672, 3536, 2860, 279, 3193, 261, 955, 16, 11833, 774, 8149, 2093, 2934, 977, 353, 326, 5252, 533, 1839, 326, 783, 1692, 711, 2118, 5204, 18, 11833, 774, 8149, 2093, 353, 279, 1250, 1492, 11470, 309, 326, 3347, 1754, 1410, 506, 2715, 358, 374, 18, 1220, 353, 1931, 1839, 326, 729, 711, 18532, 326, 7559, 18, 3536, 468, 2305, 1554, 13044, 4716, 471, 4716, 358, 7178, 434, 326, 1967, 1363, 487, 5492, 487, 2442, 4716, 309, 486, 845, 18, 1655, 2668, 2649, 6134, 578, 365, 18, 2433, 774, 984, 1232, 18, 4256, 7675, 291, 2465, 13044, 2098, 12, 1916, 18, 1655, 2668, 2649, 26112, 578, 845, 18, 1655, 2668, 3464, 11, 4672, 327, 977, 16, 1083, 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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0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 2134, 2098, 12, 2890, 16, 977, 16, 845, 16, 819, 273, 2130, 4672, 3536, 2860, 279, 3193, 261, 955, 16, 11833, 774, 8149, 2093, 2934, 977, 353, 326, 5252, 533, 1839, 326, 783, 1692, 711, 2118, 5204, 18, 11833, 774, 8149, 2093, 353, 279, 1250, 1492, 11470, 309, 326, 3347, 1754, 1410, 506, 2715, 358, 374, 18, 1220, 353, 1931, 1839, 326, 729, 711, 18532, 326, 7559, 18, 3536, 468, 2305, 1554, 13044, 4716, 471, 4716, 358, 7178, 434, 326, 1967, 1363, 487, 5492, 487, 2442, 4716, 309, 486, 845, 18, 1655, 2668, 2649, 6134, 578, 365, 18, 2433, 774, 984, 1232, 18, 4256, 7675, 291, 2465, 13044, 2098, 12, 1916, 18, 1655, 2668, 2649, 26112, 578, 2 ]
if self.window.window.get_state() & gtk.gdk.WINDOW_STATE_WITHDRAWN:
if not self.window.window:
def trayaction_activate(self, status_icon): # Clicking on a gtk.StatusIcon: if not self.ignore_toggle_signal: # This prevents the user clicking twice in a row quickly # and having the second click not revert to the intial # state self.ignore_toggle_signal = True prev_state = self.UIManager.get_widget('/traymenu/showmenu').get_active() self.UIManager.get_widget('/traymenu/showmenu').set_active(not prev_state) if self.window.window.get_state() & gtk.gdk.WINDOW_STATE_WITHDRAWN: # window is hidden self.withdraw_app_undo() elif not (self.window.window.get_state() & gtk.gdk.WINDOW_STATE_WITHDRAWN): # window is showing self.withdraw_app() # This prevents the tooltip from popping up again until the user # leaves and enters the trayicon again #if self.traytips.notif_handler == None and self.traytips.notif_handler <> -1: # self.traytips._remove_timer() gobject.timeout_add(100, self.set_ignore_toggle_signal_false)
b6771580c235cbf7f0b7e95275fd82e4dcb413b3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/b6771580c235cbf7f0b7e95275fd82e4dcb413b3/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 435, 1128, 67, 10014, 12, 2890, 16, 1267, 67, 3950, 4672, 468, 18417, 310, 603, 279, 22718, 18, 1482, 5554, 30, 309, 486, 365, 18, 6185, 67, 14401, 67, 10420, 30, 468, 1220, 17793, 326, 729, 4682, 310, 13605, 316, 279, 1027, 23459, 468, 471, 7999, 326, 2205, 4682, 486, 15226, 358, 326, 509, 649, 468, 919, 365, 18, 6185, 67, 14401, 67, 10420, 273, 1053, 2807, 67, 2019, 273, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 313, 528, 5414, 19, 4500, 5414, 16063, 588, 67, 3535, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 313, 528, 5414, 19, 4500, 5414, 16063, 542, 67, 3535, 12, 902, 2807, 67, 2019, 13, 309, 486, 365, 18, 5668, 18, 5668, 30, 282, 468, 2742, 353, 5949, 365, 18, 1918, 9446, 67, 2910, 67, 31226, 1435, 1327, 486, 261, 2890, 18, 5668, 18, 5668, 18, 588, 67, 2019, 1435, 473, 22718, 18, 75, 2883, 18, 23407, 67, 7998, 67, 9147, 28446, 5665, 4672, 468, 2742, 353, 17253, 365, 18, 1918, 9446, 67, 2910, 1435, 468, 1220, 17793, 326, 11915, 628, 1843, 1382, 731, 3382, 3180, 326, 729, 468, 15559, 471, 3281, 414, 326, 268, 435, 3950, 3382, 468, 430, 365, 18, 313, 528, 88, 7146, 18, 902, 430, 67, 4176, 422, 599, 471, 365, 18, 313, 528, 88, 7146, 18, 902, 430, 67, 4176, 2813, 300, 21, 30, 468, 202, 2890, 18, 313, 528, 88, 7146, 6315, 4479, 67, 12542, 1435, 314, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 435, 1128, 67, 10014, 12, 2890, 16, 1267, 67, 3950, 4672, 468, 18417, 310, 603, 279, 22718, 18, 1482, 5554, 30, 309, 486, 365, 18, 6185, 67, 14401, 67, 10420, 30, 468, 1220, 17793, 326, 729, 4682, 310, 13605, 316, 279, 1027, 23459, 468, 471, 7999, 326, 2205, 4682, 486, 15226, 358, 326, 509, 649, 468, 919, 365, 18, 6185, 67, 14401, 67, 10420, 273, 1053, 2807, 67, 2019, 273, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 313, 528, 5414, 19, 4500, 5414, 16063, 588, 67, 3535, 1435, 365, 18, 5370, 1318, 18, 588, 67, 6587, 2668, 19, 313, 528, 5414, 19, 4500, 5414, 16063, 542, 67, 3535, 12, 902, 2807, 67, 2019, 13, 2 ]
shape == None
shape = None
def F(dfn, dfd, shape=[]): """F(dfn, dfd) or F(dfn, dfd, [n, m, ...]) returns array of F distributed random numbers with dfn degrees of freedom in the numerator and dfd degrees of freedom in the denominator.""" if shape == []: shape == None return mt.f(dfn, dfd, shape)
dea664f86f0f24f0f999945e20f9b2042d6b159c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/dea664f86f0f24f0f999945e20f9b2042d6b159c/random_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 12, 2180, 82, 16, 3013, 72, 16, 2179, 33, 8526, 4672, 3536, 42, 12, 2180, 82, 16, 3013, 72, 13, 578, 478, 12, 2180, 82, 16, 3013, 72, 16, 306, 82, 16, 312, 16, 1372, 5717, 1135, 526, 434, 478, 16859, 2744, 5600, 598, 3013, 82, 10904, 434, 28004, 362, 316, 326, 16730, 471, 3013, 72, 10904, 434, 28004, 362, 316, 326, 15030, 12123, 309, 2179, 422, 5378, 30, 2179, 273, 599, 327, 5874, 18, 74, 12, 2180, 82, 16, 3013, 72, 16, 2179, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 478, 12, 2180, 82, 16, 3013, 72, 16, 2179, 33, 8526, 4672, 3536, 42, 12, 2180, 82, 16, 3013, 72, 13, 578, 478, 12, 2180, 82, 16, 3013, 72, 16, 306, 82, 16, 312, 16, 1372, 5717, 1135, 526, 434, 478, 16859, 2744, 5600, 598, 3013, 82, 10904, 434, 28004, 362, 316, 326, 16730, 471, 3013, 72, 10904, 434, 28004, 362, 316, 326, 15030, 12123, 309, 2179, 422, 5378, 30, 2179, 273, 599, 327, 5874, 18, 74, 12, 2180, 82, 16, 3013, 72, 16, 2179, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
navmenuid='login')
navmenuid='youraccount')
def login(self, req, form): args = wash_urlargd(form, { 'p_un': (str, None), 'p_pw': (str, None), 'login_method': (str, None), 'action': (str, ''), 'referer': (str, '')})
4c876fe64fb130207f0be345ae26cff77b07aac9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/4c876fe64fb130207f0be345ae26cff77b07aac9/websession_webinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 1111, 16, 646, 4672, 833, 273, 341, 961, 67, 718, 3175, 72, 12, 687, 16, 288, 296, 84, 67, 318, 4278, 261, 701, 16, 599, 3631, 296, 84, 67, 14921, 4278, 261, 701, 16, 599, 3631, 296, 5819, 67, 2039, 4278, 261, 701, 16, 599, 3631, 296, 1128, 4278, 261, 701, 16, 875, 3631, 296, 28596, 4278, 261, 701, 16, 28707, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 67, 718, 3175, 72, 12, 687, 16, 288, 296, 84, 67, 318, 4278, 261, 701, 16, 599, 3631, 296, 84, 67, 14921, 4278, 261, 701, 16, 599, 3631, 296, 5819, 67, 2039, 4278, 261, 701, 16, 599, 3631, 296, 1128, 4278, 261, 701, 16, 875, 3631, 296, 28596, 4278, 261, 701, 16, 28707, 6792, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
>>> browser.getControl('Approved') <ItemControl ...>
>>> 'Indicate whether this project is approved by product reviewers.' in browser.contents True
>>> def browserLogin(id, password):
65a8e09b38031e81f1eb9cb45d3108ba71865310 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12516/65a8e09b38031e81f1eb9cb45d3108ba71865310/test_reviewer_security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 4748, 5358, 12, 350, 16, 2201, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 4748, 5358, 12, 350, 16, 2201, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._inUseLED = ram.gui.led.LED(parent, state = 3)
self._enableLED = ram.gui.led.LED(parent, state = 0)
def _createControls(self, powerSource, parent): # Define custom color ranges yellow = wx.Color(255, 255, 0) colorList = [] valueList = [] if self._mode == PowerSourceDisplay.VOLTAGE: colorList = [wx.RED, yellow, wx.GREEN, yellow, wx.RED] valueList = [22, 25.5, 26.5, 29.5, 30, 31] elif self._mode == PowerSourceDisplay.CURRENT: colorList = [wx.GREEN, yellow, wx.RED] valueList = [0, 7, 9, 10]
d170db9cee3f309190f467021b22e8cd2c3fae11 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/d170db9cee3f309190f467021b22e8cd2c3fae11/controls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 16795, 12, 2890, 16, 7212, 1830, 16, 982, 4672, 468, 13184, 1679, 2036, 7322, 20614, 273, 7075, 18, 2957, 12, 10395, 16, 4561, 16, 374, 13, 2036, 682, 273, 5378, 460, 682, 273, 5378, 309, 365, 6315, 3188, 422, 23783, 1830, 4236, 18, 19971, 56, 2833, 30, 2036, 682, 273, 306, 27226, 18, 5879, 16, 20614, 16, 7075, 18, 29500, 16, 20614, 16, 7075, 18, 5879, 65, 460, 682, 273, 306, 3787, 16, 6969, 18, 25, 16, 10659, 18, 25, 16, 12899, 18, 25, 16, 5196, 16, 8231, 65, 1327, 365, 6315, 3188, 422, 23783, 1830, 4236, 18, 15487, 30, 2036, 682, 273, 306, 27226, 18, 29500, 16, 20614, 16, 7075, 18, 5879, 65, 460, 682, 273, 306, 20, 16, 2371, 16, 2468, 16, 1728, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 16795, 12, 2890, 16, 7212, 1830, 16, 982, 4672, 468, 13184, 1679, 2036, 7322, 20614, 273, 7075, 18, 2957, 12, 10395, 16, 4561, 16, 374, 13, 2036, 682, 273, 5378, 460, 682, 273, 5378, 309, 365, 6315, 3188, 422, 23783, 1830, 4236, 18, 19971, 56, 2833, 30, 2036, 682, 273, 306, 27226, 18, 5879, 16, 20614, 16, 7075, 18, 29500, 16, 20614, 16, 7075, 18, 5879, 65, 460, 682, 273, 306, 3787, 16, 6969, 18, 25, 16, 10659, 18, 25, 16, 12899, 18, 25, 16, 5196, 16, 8231, 65, 1327, 365, 6315, 3188, 422, 23783, 1830, 4236, 18, 15487, 30, 2036, 682, 273, 306, 27226, 18, 29500, 16, 20614, 16, 7075, 18, 5879, 65, 460, 682, 2 ]
"""Send a command to the server. """
"""Send a command to the server."""
def putcmd(self, cmd, args=""): """Send a command to the server. """ str = '%s %s%s' % (cmd, args, CRLF) self.send(str)
58a0b3fcac35fd85d6794fbcb62a4f4925cb00da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/58a0b3fcac35fd85d6794fbcb62a4f4925cb00da/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 4172, 12, 2890, 16, 1797, 16, 833, 1546, 6, 4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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1378, 4172, 12, 2890, 16, 1797, 16, 833, 1546, 6, 4672, 3536, 3826, 279, 1296, 358, 326, 1438, 12123, 609, 273, 1995, 87, 738, 87, 9, 87, 11, 738, 261, 4172, 16, 833, 16, 21791, 13, 365, 18, 4661, 12, 701, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
[Local data at Fractional ideal (-3*i - 2):
[Local data at Fractional ideal (2*i + 1): Reduction type: bad non-split multiplicative Local minimal model: Elliptic Curve defined by y^2 + (i+1)*x*y + y = x^3 over Number Field in i with defining polynomial x^2 + 1 Minimal discriminant valuation: 1 Conductor exponent: 1 Kodaira Symbol: I1 Tamagawa Number: 1, Local data at Fractional ideal (-3*i - 2):
def local_data(self, P=None, proof = None): r""" Local data for this elliptic curve at the prime `P`.
829cfc94952c0c1813e9f7aef0851ba5cb4e5b39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/829cfc94952c0c1813e9f7aef0851ba5cb4e5b39/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 892, 12, 2890, 16, 453, 33, 7036, 16, 14601, 273, 599, 4672, 436, 8395, 3566, 501, 364, 333, 415, 549, 21507, 8882, 622, 326, 17014, 1375, 52, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1191, 67, 892, 12, 2890, 16, 453, 33, 7036, 16, 14601, 273, 599, 4672, 436, 8395, 3566, 501, 364, 333, 415, 549, 21507, 8882, 622, 326, 17014, 1375, 52, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cmd = "d"
print "ERROR: unknown dumpmode:", self.dumpmode return
def dump_address(self, address): self.address_label.set_text("0x%06x" % address) if self.dumpmode == self._MEMDUMP: cmd = "m" else: cmd = "d" # request memory data from Hatari and wait until it's available self.hatari.debug_command("%s %06x" % (cmd, address)) self.memory_label.set_label(self.get_data()) self.address = address
a839da0699cb05f1e3add20b29be66d8dc90680a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/a839da0699cb05f1e3add20b29be66d8dc90680a/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 2867, 12, 2890, 16, 1758, 4672, 365, 18, 2867, 67, 1925, 18, 542, 67, 955, 2932, 20, 92, 9, 7677, 92, 6, 738, 1758, 13, 309, 365, 18, 8481, 3188, 422, 365, 6315, 958, 6188, 23942, 30, 1797, 273, 315, 81, 6, 469, 30, 1172, 315, 3589, 30, 5917, 4657, 3188, 2773, 16, 365, 18, 8481, 3188, 327, 468, 590, 3778, 501, 628, 670, 8761, 77, 471, 2529, 3180, 518, 1807, 2319, 365, 18, 76, 8761, 77, 18, 4148, 67, 3076, 27188, 87, 738, 7677, 92, 6, 738, 261, 4172, 16, 1758, 3719, 365, 18, 7858, 67, 1925, 18, 542, 67, 1925, 12, 2890, 18, 588, 67, 892, 10756, 365, 18, 2867, 273, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2932, 20, 92, 9, 7677, 92, 6, 738, 1758, 13, 309, 365, 18, 8481, 3188, 422, 365, 6315, 958, 6188, 23942, 30, 1797, 273, 315, 81, 6, 469, 30, 1172, 315, 3589, 30, 5917, 4657, 3188, 2773, 16, 365, 18, 8481, 3188, 327, 468, 590, 3778, 501, 628, 670, 8761, 77, 471, 2529, 3180, 518, 1807, 2319, 365, 18, 76, 8761, 77, 18, 4148, 67, 3076, 27188, 87, 738, 7677, 92, 6, 738, 261, 4172, 16, 1758, 3719, 365, 18, 7858, 67, 1925, 18, 542, 67, 1925, 12, 2890, 18, 588, 67, 892, 10756, 365, 18, 2867, 273, 1758, 2, -100, -100 ]
self.assertRaises(Exception, test_view('sale_price_list'))
test_view('sale_price_list')
def test0005views(self): ''' Test views. ''' self.assertRaises(Exception, test_view('sale_price_list'))
c02959f642e6f2c7a8f3ee8fb080aa8f3280fdae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9287/c02959f642e6f2c7a8f3ee8fb080aa8f3280fdae/test_sale_price_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 2668, 87, 5349, 67, 8694, 67, 1098, 26112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 3784, 25, 7061, 12, 2890, 4672, 9163, 7766, 7361, 18, 9163, 365, 18, 11231, 12649, 6141, 12, 503, 16, 1842, 67, 1945, 2668, 87, 5349, 67, 8694, 67, 1098, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sources.append((file, 'tarball', extractDir, use, ())) def addPatch(self, file, level='1', backup='', extractDir='', keyid=None, use=None, macros=False, extraArgs=''): self._appendSource(file, keyid, 'patch', extractDir, use, (level, backup, macros, extraArgs)) def addSource(self, file, keyid=None, extractDir='', apply=None, use=None): self._appendSource(file, keyid, 'source', extractDir, use, (apply))
self.sources.append((filename, 'tarball', extractDir, use, ())) def addPatch(self, filename, level='1', backup='', extractDir='', keyid=None, use=None, macros=False, extraArgs=''): self._appendSource(filename, keyid, 'patch', extractDir, use, (level, backup, macros, extraArgs)) def addSource(self, filename, keyid=None, extractDir='', apply=None, use=None, macros=False): self._appendSource(filename, keyid, 'source', extractDir, use, (apply, macros))
def addArchiveFromRPM(self, rpm, file, extractDir='', use=None):
7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7e87e4a2066ad87e01658b5a03e8e4dbdf32fde2/recipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7465, 1265, 54, 12728, 12, 2890, 16, 25228, 16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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7465, 1265, 54, 12728, 12, 2890, 16, 25228, 16, 585, 16, 2608, 1621, 2218, 2187, 999, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif linehook: linehook(line)
def getreply(self, linehook=None): """Get a reply from the server. Returns a tuple consisting of: - server response code (e.g. '250', or such, if all goes well) Note: returns -1 if it can't read response code. - server response string corresponding to response code (note : multiline responses converted to a single, multiline string) """ resp=[] self.file = self.sock.makefile('rb') while 1: line = self.file.readline() if self.debuglevel > 0: print 'reply:', `line` resp.append(string.strip(line[4:])) code=line[:3] #check if multiline resp if line[3:4]!="-": break elif linehook: linehook(line) try: errcode = string.atoi(code) except(ValueError): errcode = -1
2fa5f60664065d7f143e96d9f7ecc34ac6c401ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2fa5f60664065d7f143e96d9f7ecc34ac6c401ed/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 10629, 12, 2890, 16, 980, 4476, 33, 7036, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 300, 1438, 766, 981, 261, 73, 18, 75, 18, 296, 26520, 2187, 578, 4123, 16, 309, 777, 13998, 5492, 13, 3609, 30, 1135, 300, 21, 309, 518, 848, 1404, 855, 766, 981, 18, 300, 1438, 766, 533, 4656, 358, 766, 981, 261, 7652, 294, 19431, 7220, 5970, 358, 279, 2202, 16, 19431, 533, 13, 3536, 1718, 33, 8526, 365, 18, 768, 273, 365, 18, 15031, 18, 6540, 768, 2668, 6731, 6134, 1323, 404, 30, 980, 273, 365, 18, 768, 18, 896, 1369, 1435, 309, 365, 18, 4148, 2815, 405, 374, 30, 1172, 296, 10629, 30, 2187, 1375, 1369, 68, 1718, 18, 6923, 12, 1080, 18, 6406, 12, 1369, 63, 24, 30, 22643, 981, 33, 1369, 10531, 23, 65, 468, 1893, 309, 19431, 1718, 309, 980, 63, 23, 30, 24, 65, 5, 1546, 17, 6877, 898, 775, 30, 393, 710, 273, 533, 18, 270, 11359, 12, 710, 13, 1335, 12, 23610, 4672, 393, 710, 273, 300, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 10629, 12, 2890, 16, 980, 4476, 33, 7036, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 300, 1438, 766, 981, 261, 73, 18, 75, 18, 296, 26520, 2187, 578, 4123, 16, 309, 777, 13998, 5492, 13, 3609, 30, 1135, 300, 21, 309, 518, 848, 1404, 855, 766, 981, 18, 300, 1438, 766, 533, 4656, 358, 766, 981, 261, 7652, 294, 19431, 7220, 5970, 358, 279, 2202, 16, 19431, 533, 13, 3536, 1718, 33, 8526, 365, 18, 768, 273, 365, 18, 15031, 18, 6540, 768, 2668, 6731, 6134, 1323, 404, 30, 980, 273, 365, 18, 768, 18, 896, 1369, 1435, 309, 365, 18, 4148, 2815, 405, 374, 30, 1172, 296, 2 ]
name = "New Multi-Key Binding"
name = "Replace with Multi-Key Binding"
def action(self, index=-1, multiplier=1): KeystrokeRecording(self.mode, self.keyboard)
101a4c61f894038c4fae88bb1224bd5d9e43cf25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/101a4c61f894038c4fae88bb1224bd5d9e43cf25/keyboard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 1929, 16181, 21037, 12, 2890, 18, 3188, 16, 365, 18, 31486, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.browser is None: self.browser = WebBrowser(SIGNATURE, start = 1) self.browser.openfile(self.hits[i][1])
path = self.hits[i][1] url = "file://" + "/".join(path.split(":")) webbrowser.open(url)
def listhit(self, isdbl = 1): if isdbl: for i in self.w.results.getselection(): if self.browser is None: self.browser = WebBrowser(SIGNATURE, start = 1) self.browser.openfile(self.hits[i][1])
c4637cd08a9bbc96efb42cb813b77be74b9dae66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c4637cd08a9bbc96efb42cb813b77be74b9dae66/PyDocSearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 15989, 12, 2890, 16, 353, 1966, 80, 273, 404, 4672, 309, 353, 1966, 80, 30, 364, 277, 316, 365, 18, 91, 18, 4717, 18, 588, 10705, 13332, 309, 365, 18, 11213, 353, 599, 30, 365, 18, 11213, 273, 2999, 9132, 12, 26587, 16, 787, 273, 404, 13, 365, 18, 11213, 18, 3190, 768, 12, 2890, 18, 15173, 63, 77, 6362, 21, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 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, 15989, 12, 2890, 16, 353, 1966, 80, 273, 404, 4672, 309, 353, 1966, 80, 30, 364, 277, 316, 365, 18, 91, 18, 4717, 18, 588, 10705, 13332, 309, 365, 18, 11213, 353, 599, 30, 365, 18, 11213, 273, 2999, 9132, 12, 26587, 16, 787, 273, 404, 13, 365, 18, 11213, 18, 3190, 768, 12, 2890, 18, 15173, 63, 77, 6362, 21, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if pl.ordered_bases is None:
if pl.ordered_bases is None:
def make_or_unmake_crossover(twoPls, make = True, cmdname = None): "Make or Unmake (according to make option) a crossover, given Pl_recognizers for its two Pl atoms." # What we are doing is recognizing one local structure and replacing it with another # made from the same atoms. It'd sure be easier if I could do the manipulation in an mmp file, # save that somewhere, and read those to generate the operation! I'd have two sets of atoms, before and after, # and see how bonds and atomtypes got changed. # In this case it's not too hard to hand-code... I guess only the Pl atoms and their bonds are affected. # We probably do have to look at strand directions -- hmm, probably we should require them to exist before saying it's ok! # Or maybe better to give history error message when the command is chosen, saying you need to set them (or repair them) first... # Then we have to move the new/moved Pl atoms into a good position... # Note: Pl.ordered_bases are ordered by bond direction, to make this easier... # but if we want to patch up the directions in the end, do we need to care exactly which ones were defined? # or only "per-Pl"? hmm... it's per-Pl for now assert cmdname for pl in twoPls: if pl.ordered_bases is None: ###BUG: this could have various causes, not only the one reported below! Somehow we need access to the # message supplied to the RecognizerError, for use here. ###REVIEW: Does that mean it should pass through compute methods (probably in a controlled way) # rather than making computed values None? # Or, should the value not be None, but a "frozen" examinable and reraisable version of the error exception?? msg = "%s: Error: bond direction is locally undefined or inconsistent around %s" % (cmdname, pl.atom) ###UNTESTED env.history.message( redmsg( quote_html( msg))) return Pl1, Pl2 = twoPls a,b = Pl1.ordered_bases d,c = Pl2.ordered_bases # note: we use d,c rather than c,d so that the atom arrangement is as shown in the diagram below. # Note: the geometric arrangement is initially: # # c <-- Pl2 <-- d # # a --> Pl1 --> b # # and it ends up being (where dots indicate arrowheads, to show bond direction): # # c d # . / # \ . # Pl1 Pl2 # . \ # / . # a b # # Note: Pl1 stays attached to a, and Pl2 to d. Which two opposite bonds to preserve like that # is an arbitrary choice -- as long as Make and Unmake make the same choice about that, # they'll reverse each other's effects precisely (assuming the sugars were initially correct as Ss or Sj). # break the bonds we no longer want for obj1, obj2 in [(Pl1, b), (Pl2, c)]: bond = find_bond(obj1.atom, obj2.atom) bond.bust(make_bondpoints = False) # make the bonds we want and didn't already have for obj1, obj2 in [(Pl1, c), (Pl2, b)]: assert not atoms_are_bonded(obj1.atom, obj2.atom) ###e we should make bond_atoms do this assert itself, or maybe tolerate it (or does it already??) bond_atoms_faster(obj1.atom, obj2.atom, V_SINGLE) # set directions of all 4 bonds (even the preserved ones -- it's possible they were not set before, # if some but not all bonds had directions set in the part of a strand whose directions we look at.) for obj1, obj2 in [(a, Pl1), (Pl1, c), (d, Pl2), (Pl2, b)]: bond = find_bond(obj1.atom, obj2.atom) bond.set_bond_direction_from(obj1.atom, 1) # WARNING: after that bond rearrangement, don't use our Pl_recognizers in ways that depend on Pl bonding, # since it's not well defined whether they think about the old or new bonding to give their answers. Pl_atoms = Pl1.atom, Pl2.atom del Pl1, Pl2, twoPls # transmute base sugars to Sj or Ss as appropriate want = make and Element_Sj or Element_Ss for obj in (a,b,c,d): obj.atom.Transmute(want) # Note: we do this after the bond making/breaking so it doesn't add singlets which mess us up. # move Pl atoms into better positions # (someday, consider using local minimize; for now, just place them directly between their new neighbor atoms, # hopefully we leave them selected so user can easily do their own local minimize.) for pl in Pl_atoms: pl.setposn( average_value( map( lambda neighbor: neighbor.posn() , pl.neighbors() ))) env.history.message( greenmsg( cmdname + ": ") + quote_html("(%s - %s)" % tuple(Pl_atoms))) #e need assy.changed()? evidently not. return # from make_or_unmake_crossover
f3409c2827e88ba9c4c98914a03ed544d2b23aff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/f3409c2827e88ba9c4c98914a03ed544d2b23aff/crossovers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 280, 67, 318, 6540, 67, 14653, 1643, 12, 15415, 1749, 87, 16, 1221, 273, 1053, 16, 1797, 529, 273, 599, 4672, 315, 6464, 578, 1351, 6540, 261, 1077, 4643, 358, 1221, 1456, 13, 279, 6828, 1643, 16, 864, 3008, 67, 3927, 4198, 8426, 364, 2097, 2795, 3008, 9006, 1199, 225, 468, 18734, 732, 854, 9957, 353, 14603, 6894, 1245, 1191, 3695, 471, 13993, 518, 598, 4042, 468, 7165, 628, 326, 1967, 9006, 18, 2597, 14271, 3071, 506, 15857, 309, 467, 3377, 741, 326, 27029, 316, 392, 312, 1291, 585, 16, 468, 1923, 716, 22234, 16, 471, 855, 5348, 358, 2103, 326, 1674, 5, 467, 14271, 1240, 2795, 1678, 434, 9006, 16, 1865, 471, 1839, 16, 468, 471, 2621, 3661, 15692, 471, 3179, 2352, 2363, 3550, 18, 225, 468, 657, 333, 648, 518, 1807, 486, 4885, 7877, 358, 948, 17, 710, 2777, 467, 7274, 1338, 326, 3008, 9006, 471, 3675, 15692, 854, 9844, 18, 468, 1660, 8656, 741, 1240, 358, 2324, 622, 16706, 18558, 1493, 366, 7020, 16, 8656, 732, 1410, 2583, 2182, 358, 1005, 1865, 12532, 310, 518, 1807, 1529, 5, 468, 2965, 6944, 7844, 358, 8492, 4927, 555, 883, 1347, 326, 1296, 353, 10447, 16, 12532, 310, 1846, 1608, 358, 444, 2182, 261, 280, 20994, 2182, 13, 1122, 2777, 468, 9697, 732, 1240, 358, 3635, 326, 394, 19, 81, 9952, 3008, 9006, 1368, 279, 7494, 1754, 2777, 225, 468, 3609, 30, 3008, 18, 9885, 67, 18602, 854, 5901, 635, 8427, 4068, 16, 358, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 280, 67, 318, 6540, 67, 14653, 1643, 12, 15415, 1749, 87, 16, 1221, 273, 1053, 16, 1797, 529, 273, 599, 4672, 315, 6464, 578, 1351, 6540, 261, 1077, 4643, 358, 1221, 1456, 13, 279, 6828, 1643, 16, 864, 3008, 67, 3927, 4198, 8426, 364, 2097, 2795, 3008, 9006, 1199, 225, 468, 18734, 732, 854, 9957, 353, 14603, 6894, 1245, 1191, 3695, 471, 13993, 518, 598, 4042, 468, 7165, 628, 326, 1967, 9006, 18, 2597, 14271, 3071, 506, 15857, 309, 467, 3377, 741, 326, 27029, 316, 392, 312, 1291, 585, 16, 468, 1923, 716, 22234, 16, 471, 855, 5348, 358, 2103, 326, 1674, 5, 467, 14271, 1240, 2795, 1678, 434, 9006, 16, 1865, 471, 1839, 16, 468, 2 ]
"constructor; pass source code, and optionally 'twee' or 'html'"
"""Pass source code, and optionally 'twee' or 'html'"""
def __init__ (self, source, type = 'twee'): "constructor; pass source code, and optionally 'twee' or 'html'" if type == 'twee': self.init_twee(source) else: self.init_html(source)
6c1969959d8e0961fa5075dac2f76e60b7f2c5fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11433/6c1969959d8e0961fa5075dac2f76e60b7f2c5fe/tiddlywiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1084, 16, 618, 273, 296, 11246, 1340, 11, 4672, 3536, 6433, 1084, 981, 16, 471, 8771, 296, 11246, 1340, 11, 578, 296, 2620, 11, 8395, 309, 618, 422, 296, 11246, 1340, 4278, 365, 18, 2738, 67, 11246, 1340, 12, 3168, 13, 469, 30, 365, 18, 2738, 67, 2620, 12, 3168, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 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, 261, 2890, 16, 1084, 16, 618, 273, 296, 11246, 1340, 11, 4672, 3536, 6433, 1084, 981, 16, 471, 8771, 296, 11246, 1340, 11, 578, 296, 2620, 11, 8395, 309, 618, 422, 296, 11246, 1340, 4278, 365, 18, 2738, 67, 11246, 1340, 12, 3168, 13, 469, 30, 365, 18, 2738, 67, 2620, 12, 3168, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
where p is a prime such that `X_0(p)` has genus 0.
where `p` is a prime such that `X_0(p)` has genus 0.
def OverconvergentModularForms(prime, weight, radius, base_ring=QQ, prec = 20, char = None): r""" Create a space of overconvergent `p`-adic modular forms of level `\Gamma_0(p)`, over the given base ring. The base ring need not be a `p`-adic ring (the spaces we compute with typically have bases over `\QQ`). INPUT: - ``prime`` - a prime number `p`, which must be one of the primes `\{2, 3, 5, 7, 13\}`, or the congruence subgroup Gamma0(p) where p is one of these primes. - ``weight`` - an integer (which at present must be 0 or `\ge 2`), the weight. - ``radius`` - a rational number in the interval `\left( 0, \frac{p}{p+1} \right)`, the radius of overconvergence. - ``base_ring`` (default: `\QQ`), a ring over which to compute. This need not be a `p`-adic ring. - ``prec`` - an integer (default: 20), the number of `q`-expansion terms to compute. - ``char`` - a Dirichlet character modulo `p` or ``None`` (the default). Here ``None`` is interpreted as the trivial character modulo `p`. The character `\chi` and weight `k` must satisfy `(-1)^k = \chi(-1)`, and the base ring must contain an element `v` such that `{\rm ord}_p(v) = \frac{12 r}{p-1}` where `r` is the radius of overconvergence (and `{\rm ord}_p` is normalised so `{\rm ord}_p(p) = 1`). EXAMPLES:: sage: OverconvergentModularForms(3, 0, 1/2) Space of 3-adic 1/2-overconvergent modular forms of weight-character 0 over Rational Field sage: OverconvergentModularForms(3, 16, 1/2) Space of 3-adic 1/2-overconvergent modular forms of weight-character 16 over Rational Field sage: OverconvergentModularForms(3, 3, 1/2, char = DirichletGroup(3,QQ).0) Space of 3-adic 1/2-overconvergent modular forms of weight-character (3, 3, [-1]) over Rational Field """ if is_Gamma0(prime) or is_Gamma1(prime): prime = prime.level() else: prime = ZZ(prime) if char is None: char = trivial_character(prime, base_ring=QQ) if int(prime) not in [2, 3, 5, 7, 13]: raise ValueError, "p must be one of {2, 3, 5, 7, 13}" key = (prime, weight, radius, base_ring, prec, char) if __ocmfdict.has_key(key): w = __ocmfdict[key] M = w() if not (M is None): return M M = OverconvergentModularFormsSpace(*key) __ocmfdict[key] = weakref.ref(M) return M
b526c3d210b712e2659f9ba0fab589c5ff5e9564 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b526c3d210b712e2659f9ba0fab589c5ff5e9564/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10752, 591, 502, 75, 319, 1739, 2490, 18529, 12, 16382, 16, 3119, 16, 5725, 16, 1026, 67, 8022, 33, 53, 53, 16, 13382, 273, 4200, 16, 1149, 273, 599, 4672, 436, 8395, 1788, 279, 3476, 434, 1879, 591, 502, 75, 319, 1375, 84, 68, 17, 20333, 681, 2490, 10138, 434, 1801, 1375, 64, 31300, 67, 20, 12, 84, 13, 9191, 1879, 326, 864, 1026, 9221, 18, 1021, 1026, 9221, 1608, 486, 506, 279, 1375, 84, 68, 17, 20333, 9221, 261, 5787, 7292, 732, 3671, 598, 14755, 1240, 8337, 1879, 1375, 64, 53, 53, 68, 2934, 225, 12943, 30, 225, 300, 12176, 16382, 10335, 300, 279, 17014, 1300, 1375, 84, 9191, 1492, 1297, 506, 1245, 434, 326, 846, 4485, 1375, 64, 95, 22, 16, 890, 16, 1381, 16, 2371, 16, 5958, 64, 97, 9191, 578, 326, 356, 3197, 23209, 720, 1655, 25409, 20, 12, 84, 13, 1625, 293, 353, 1245, 434, 4259, 846, 4485, 18, 225, 300, 12176, 4865, 10335, 300, 392, 3571, 261, 12784, 622, 3430, 1297, 506, 374, 578, 1375, 64, 908, 576, 68, 3631, 326, 3119, 18, 225, 300, 12176, 11282, 10335, 300, 279, 436, 8371, 1300, 316, 326, 3673, 1375, 64, 4482, 12, 374, 16, 521, 22187, 95, 84, 8637, 84, 15, 21, 97, 521, 4083, 13, 9191, 326, 5725, 434, 1879, 591, 502, 15570, 18, 225, 300, 12176, 1969, 67, 8022, 10335, 261, 1886, 30, 1375, 64, 53, 53, 68, 3631, 279, 9221, 1879, 1492, 358, 3671, 18, 1220, 1608, 486, 506, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10752, 591, 502, 75, 319, 1739, 2490, 18529, 12, 16382, 16, 3119, 16, 5725, 16, 1026, 67, 8022, 33, 53, 53, 16, 13382, 273, 4200, 16, 1149, 273, 599, 4672, 436, 8395, 1788, 279, 3476, 434, 1879, 591, 502, 75, 319, 1375, 84, 68, 17, 20333, 681, 2490, 10138, 434, 1801, 1375, 64, 31300, 67, 20, 12, 84, 13, 9191, 1879, 326, 864, 1026, 9221, 18, 1021, 1026, 9221, 1608, 486, 506, 279, 1375, 84, 68, 17, 20333, 9221, 261, 5787, 7292, 732, 3671, 598, 14755, 1240, 8337, 1879, 1375, 64, 53, 53, 68, 2934, 225, 12943, 30, 225, 300, 12176, 16382, 10335, 300, 279, 17014, 1300, 1375, 84, 9191, 1492, 1297, 506, 1245, 434, 326, 846, 4485, 2 ]
def __new__(cls, output_paramters, stream):
def __new__(cls, output_parameters, stream):
def __new__(cls, output_paramters, stream): # Attempt to switch to the "true" writer as soon as possible cls = cls._lookup(output_paramters) return streamwriter.__new__(cls, output_paramters, stream)
74e87f1564798d630a4711cb91fd8cf5e7718ea0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14078/74e87f1564798d630a4711cb91fd8cf5e7718ea0/proxywriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 876, 67, 3977, 16, 1407, 4672, 468, 12864, 358, 1620, 358, 326, 315, 3767, 6, 2633, 487, 17136, 487, 3323, 2028, 273, 2028, 6315, 8664, 12,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2704, 972, 12, 6429, 16, 876, 67, 3977, 16, 1407, 4672, 468, 12864, 358, 1620, 358, 326, 315, 3767, 6, 2633, 487, 17136, 487, 3323, 2028, 273, 2028, 6315, 8664, 12, 2844, 67, 891, 5432, 13, 327, 1407, 6299, 16186, 2704, 972, 12, 6429, 16, 876, 67, 891, 5432, 16, 1407, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if real_last_text_version and real_last_text_version != self.last_text_version:
if real_last_text_version and real_last_text_version != last_text_version:
def update_denorm_fields(self): real_last_text_version = self.fetch_latest_version() modif = False if real_last_text_version and real_last_text_version != self.last_text_version: self.last_text_version = real_last_text_version modif = True if real_last_text_version and real_last_text_version.title and real_last_text_version.title != self.title: self.title = real_last_text_version.title modif = True if real_last_text_version and real_last_text_version.modified != self.modified: self.modified = real_last_text_version.modified modif = True if modif: self.save()
c7f22fd9ae5501491bebb7097c2473d86c332ccb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5622/c7f22fd9ae5501491bebb7097c2473d86c332ccb/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13002, 535, 67, 2821, 12, 2890, 4672, 2863, 67, 2722, 67, 955, 67, 1589, 273, 365, 18, 5754, 67, 13550, 67, 1589, 1435, 225, 681, 430, 273, 1083, 309, 2863, 67, 2722, 67, 955, 67, 1589, 471, 2863, 67, 2722, 67, 955, 67, 1589, 480, 1142, 67, 955, 67, 1589, 30, 365, 18, 2722, 67, 955, 67, 1589, 273, 2863, 67, 2722, 67, 955, 67, 1589, 681, 430, 273, 1053, 225, 309, 2863, 67, 2722, 67, 955, 67, 1589, 471, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2649, 471, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2649, 480, 365, 18, 2649, 30, 365, 18, 2649, 273, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2649, 681, 430, 273, 1053, 225, 309, 2863, 67, 2722, 67, 955, 67, 1589, 471, 2863, 67, 2722, 67, 955, 67, 1589, 18, 7342, 480, 365, 18, 7342, 30, 365, 18, 7342, 273, 2863, 67, 2722, 67, 955, 67, 1589, 18, 7342, 681, 430, 273, 1053, 225, 309, 681, 430, 30, 365, 18, 5688, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13002, 535, 67, 2821, 12, 2890, 4672, 2863, 67, 2722, 67, 955, 67, 1589, 273, 365, 18, 5754, 67, 13550, 67, 1589, 1435, 225, 681, 430, 273, 1083, 309, 2863, 67, 2722, 67, 955, 67, 1589, 471, 2863, 67, 2722, 67, 955, 67, 1589, 480, 1142, 67, 955, 67, 1589, 30, 365, 18, 2722, 67, 955, 67, 1589, 273, 2863, 67, 2722, 67, 955, 67, 1589, 681, 430, 273, 1053, 225, 309, 2863, 67, 2722, 67, 955, 67, 1589, 471, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2649, 471, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2649, 480, 365, 18, 2649, 30, 365, 18, 2649, 273, 2863, 67, 2722, 67, 955, 67, 1589, 18, 2 ]
sage: print genus(T1, T2)
sage: genus(T1, T2)
def genus(T1, T2): """ Returns the genus of hypermap embedding associated with the bitrade (T1, T2). Informally, we compute the [tau_1, tau_2, tau_3] permutation representation of the bitrade. Each cycle of tau_1, tau_2, and tau_3 gives a rotation scheme for a black, white, and star vertex (respectively). The genus then comes from Euler's formula. For more details see Carlo Hamalainen: Partitioning 3-homogeneous latin bitrades. To appear in Geometriae Dedicata, available at http://arxiv.org/abs/0710.0938 EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: (a, b, c, G) = alternating_group_bitrade_generators(1) sage: (T1, T2) = bitrade_from_group(a, b, c, G) sage: print genus(T1, T2) 1 sage: (a, b, c, G) = pq_group_bitrade_generators(3, 7) sage: (T1, T2) = bitrade_from_group(a, b, c, G) sage: print genus(T1, T2) 3 """ cells_map, t1, t2, t3 = tau123(T1, T2) return (len(t1.to_cycles()) + len(t2.to_cycles()) + len(t3.to_cycles()) - T1.nr_filled_cells() - 2)/(-2)
494f2bd1cd82ea9dcc25f8e258b7375812aed1c9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/494f2bd1cd82ea9dcc25f8e258b7375812aed1c9/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 407, 12, 56, 21, 16, 399, 22, 4672, 3536, 2860, 326, 3157, 407, 434, 9512, 1458, 15853, 3627, 598, 326, 2831, 354, 323, 261, 56, 21, 16, 399, 22, 2934, 657, 687, 1230, 16, 732, 3671, 326, 306, 29908, 67, 21, 16, 12284, 67, 22, 16, 12284, 67, 23, 65, 17440, 4335, 434, 326, 2831, 354, 323, 18, 8315, 8589, 434, 12284, 67, 21, 16, 12284, 67, 22, 16, 471, 12284, 67, 23, 14758, 279, 6752, 4355, 364, 279, 7721, 16, 9578, 16, 471, 10443, 5253, 261, 455, 1181, 4492, 2934, 1021, 3157, 407, 1508, 14535, 628, 512, 17040, 1807, 8013, 18, 2457, 1898, 3189, 2621, 23672, 383, 670, 301, 287, 530, 275, 30, 12598, 310, 890, 17, 17125, 30075, 1481, 30486, 2831, 354, 5489, 18, 2974, 9788, 316, 31442, 2969, 8906, 463, 329, 335, 396, 16, 2319, 622, 1062, 2207, 297, 92, 427, 18, 3341, 19, 5113, 19, 8642, 2163, 18, 5908, 7414, 225, 5675, 8900, 11386, 30, 272, 410, 30, 628, 272, 410, 18, 832, 4757, 270, 18, 7373, 12660, 18, 26578, 1930, 380, 272, 410, 30, 261, 69, 16, 324, 16, 276, 16, 611, 13, 273, 6416, 1776, 67, 1655, 67, 3682, 354, 323, 67, 25959, 12, 21, 13, 272, 410, 30, 261, 56, 21, 16, 399, 22, 13, 273, 2831, 354, 323, 67, 2080, 67, 1655, 12, 69, 16, 324, 16, 276, 16, 611, 13, 272, 410, 30, 3157, 407, 12, 56, 21, 16, 399, 22, 13, 404, 272, 410, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 407, 12, 56, 21, 16, 399, 22, 4672, 3536, 2860, 326, 3157, 407, 434, 9512, 1458, 15853, 3627, 598, 326, 2831, 354, 323, 261, 56, 21, 16, 399, 22, 2934, 657, 687, 1230, 16, 732, 3671, 326, 306, 29908, 67, 21, 16, 12284, 67, 22, 16, 12284, 67, 23, 65, 17440, 4335, 434, 326, 2831, 354, 323, 18, 8315, 8589, 434, 12284, 67, 21, 16, 12284, 67, 22, 16, 471, 12284, 67, 23, 14758, 279, 6752, 4355, 364, 279, 7721, 16, 9578, 16, 471, 10443, 5253, 261, 455, 1181, 4492, 2934, 1021, 3157, 407, 1508, 14535, 628, 512, 17040, 1807, 8013, 18, 2457, 1898, 3189, 2621, 23672, 383, 670, 301, 287, 530, 275, 30, 12598, 310, 890, 2 ]
page_start(req, of, cc, as, ln, uid)
def perform_request_search(req=None, cc=cdsname, c=None, p="", f="", rg="10", sf="", so="d", sp="", rm="", of="id", ot="", as="0", p1="", f1="", m1="", op1="", p2="", f2="", m2="", op2="", p3="", f3="", m3="", sc="0", jrec="0", recid="-1", recidb="-1", sysno="", id="-1", idb="-1", sysnb="", action="", d1y="0", d1m="0", d1d="0", d2y="0", d2m="0", d2d="0", verbose="0", ap="0", ln=cdslang): """Perform search or browse request, without checking for authentication. Return list of recIDs found, if of=id. Otherwise create web page. The arguments are as follows: req - mod_python Request class instance. cc - current collection (e.g. "ATLAS"). The collection the user started to search/browse from. c - collectin list (e.g. ["Theses", "Books"]). The collections user may have selected/deselected when starting to search from 'cc'. p - pattern to search for (e.g. "ellis and muon or kaon"). f - field to search within (e.g. "author"). rg - records in groups of (e.g. "10"). Defines how many hits per collection in the search results page are displayed. sf - sort field (e.g. "title"). so - sort order ("a"=ascending, "d"=descending). sp - sort pattern (e.g. "CERN-") -- in case there are more values in a sort field, this argument tells which one to prefer rm - ranking method (e.g. "jif"). Defines whether results should be ranked by some known ranking method. of - output format (e.g. "hb"). Usually starting "h" means HTML output (and "hb" for HTML brief, "hd" for HTML detailed), "x" means XML output, "t" means plain text output, "id" means no output at all but to return list of recIDs found. (Suitable for high-level API.) ot - output only these MARC tags (e.g. "100,700,909C0b"). Useful if only some fields are to be shown in the output, e.g. for library to control some fields. as - advanced search ("0" means no, "1" means yes). Whether search was called from within the advanced search interface. p1 - first pattern to search for in the advanced search interface. Much like 'p'. f1 - first field to search within in the advanced search interface. Much like 'f'. m1 - first matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). op1 - first operator, to join the first and the second unit in the advanced search interface. ("a" add, "o" or, "n" not). p2 - second pattern to search for in the advanced search interface. Much like 'p'. f2 - second field to search within in the advanced search interface. Much like 'f'. m2 - second matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). op2 - second operator, to join the second and the third unit in the advanced search interface. ("a" add, "o" or, "n" not). p3 - third pattern to search for in the advanced search interface. Much like 'p'. f3 - third field to search within in the advanced search interface. Much like 'f'. m3 - third matching type in the advanced search interface. ("a" all of the words, "o" any of the words, "e" exact phrase, "p" partial phrase, "r" regular expression). sc - split by collection ("0" no, "1" yes). Governs whether we want to present the results in a single huge list, or splitted by collection. jrec - jump to record (e.g. "234"). Used for navigation inside the search results. recid - display record ID (e.g. "20000"). Do not search/browse but go straight away to the Detailed record page for the given recID. recidb - display record ID bis (e.g. "20010"). If greater than 'recid', then display records from recid to recidb. Useful for example for dumping records from the database for reformatting. sysno - display old system SYS number (e.g. ""). If you migrate to CDSware from another system, and store your old SYS call numbers, you can use them instead of recid if you wish so. id - the same as recid, in case recid is not set. For backwards compatibility. idb - the same as recid, in case recidb is not set. For backwards compatibility. sysnb - the same as sysno, in case sysno is not set. For backwards compatibility. action - action to do. "SEARCH" for searching, "Browse" for browsing. Default is to search. d1y - first date year (e.g. "1998"). Useful for search limits on creation date. d1m - first date month (e.g. "08"). Useful for search limits on creation date. d1d - first date day (e.g. "23"). Useful for search limits on creation date. d2y - second date year (e.g. "1998"). Useful for search limits on creation date. d2m - second date month (e.g. "09"). Useful for search limits on creation date. d2d - second date day (e.g. "02"). Useful for search limits on creation date. verbose - verbose level (0=min, 9=max). Useful to print some internal information on the searching process in case something goes wrong. ap - alternative patterns (0=no, 1=yes). In case no exact match is found, the search engine can try alternative patterns e.g. to replace non-alphanumeric characters by a boolean query. ap defines if this is wanted. ln - language of the search interface (e.g. "en"). Useful for internationalization. """ # wash all passed arguments: cc = wash_url_argument(cc, 'str') sc = wash_url_argument(sc, 'int') (cc, colls_to_display, colls_to_search) = wash_colls(cc, c, sc) # which colls to search and to display? p = wash_pattern(wash_url_argument(p, 'str')) f = wash_field(wash_url_argument(f, 'str')) rg = wash_url_argument(rg, 'int') sf = wash_url_argument(sf, 'str') so = wash_url_argument(so, 'str') sp = wash_url_argument(sp, 'str') rm = wash_url_argument(rm, 'str') of = wash_url_argument(of, 'str') if type(ot) is list: ot = string.join(ot,",") ot = wash_url_argument(ot, 'str') as = wash_url_argument(as, 'int') p1 = wash_pattern(wash_url_argument(p1, 'str')) f1 = wash_field(wash_url_argument(f1, 'str')) m1 = wash_url_argument(m1, 'str') op1 = wash_url_argument(op1, 'str') p2 = wash_pattern(wash_url_argument(p2, 'str')) f2 = wash_field(wash_url_argument(f2, 'str')) m2 = wash_url_argument(m2, 'str') op2 = wash_url_argument(op2, 'str') p3 = wash_pattern(wash_url_argument(p3, 'str')) f3 = wash_field(wash_url_argument(f3, 'str')) m3 = wash_url_argument(m3, 'str') jrec = wash_url_argument(jrec, 'int') recid = wash_url_argument(recid, 'int') recidb = wash_url_argument(recidb, 'int') sysno = wash_url_argument(sysno, 'str') id = wash_url_argument(id, 'int') idb = wash_url_argument(idb, 'int') sysnb = wash_url_argument(sysnb, 'str') action = wash_url_argument(action, 'str') d1y = wash_url_argument(d1y, 'int') d1m = wash_url_argument(d1m, 'int') d1d = wash_url_argument(d1d, 'int') d2y = wash_url_argument(d2y, 'int') d2m = wash_url_argument(d2m, 'int') d2d = wash_url_argument(d2d, 'int') day1, day2 = wash_dates(d1y, d1m, d1d, d2y, d2m, d2d) verbose = wash_url_argument(verbose, 'int') ap = wash_url_argument(ap, 'int') ln = wash_language(ln) # backwards compatibility: id, idb, sysnb -> recid, recidb, sysno (if applicable) if sysnb != "" and sysno == "": sysno = sysnb if id > 0 and recid == -1: recid = id if idb > 0 and recidb == -1: recidb = idb # TODO deduce passed search limiting criterias (if applicable) pl, pl_in_url = "", "" # no limits by default if action != msg_browse[ln] and req and req.args: # we do not want to add options while browsing or while calling via command-line fieldargs = cgi.parse_qs(req.args) for fieldcode in get_fieldcodes(): if fieldargs.has_key(fieldcode): for val in fieldargs[fieldcode]: pl += "+%s:\"%s\" " % (fieldcode, val) pl_in_url += "&amp;%s=%s" % (urllib.quote(fieldcode), urllib.quote(val)) # deduce recid from sysno argument (if applicable): if sysno: # ALEPH SYS number was passed, so deduce MySQL recID for the record: recid = get_mysql_recid_from_aleph_sysno(sysno) # deduce collection we are in (if applicable): if recid>0: cc = guess_primary_collection_of_a_record(recid) # deduce user id (if applicable): try: uid = getUid(req) except: uid = 0 ## 0 - start output page_start(req, of, cc, as, ln, uid) if recid>0: ## 1 - detailed record display if of == "hb": of = "hd" if record_exists(recid): if recidb<=recid: # sanity check recidb=recid+1 print_records(req, range(recid,recidb), -1, -9999, of, ot, ln) else: # record does not exist if of.startswith("h"): print_warning(req, "Requested record does not seem to exist.") elif action == msg_browse[ln]: ## 2 - browse needed if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, action)) try: if as==1 or (p1 or p2 or p3): browse_pattern(req, colls_to_search, p1, f1, rg) browse_pattern(req, colls_to_search, p2, f2, rg) browse_pattern(req, colls_to_search, p3, f3, rg) else: browse_pattern(req, colls_to_search, p, f, rg) except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) return page_end(req, of, ln) else: ## 3 - search needed if of.startswith("h"): req.write(create_search_box(cc, colls_to_display, p, f, rg, sf, so, sp, rm, of, ot, as, ln, p1, f1, m1, op1, p2, f2, m2, op2, p3, f3, m3, sc, pl, d1y, d1m, d1d, d2y, d2m, d2d, action)) t1 = os.times()[4] results_in_any_collection = HitSet() if as == 1 or (p1 or p2 or p3): ## 3A - advanced search try: results_in_any_collection = search_pattern(req, p1, f1, m1, ap=ap, of=of, verbose=verbose, ln=ln) if results_in_any_collection._nbhits == 0: return page_end(req, of, ln) if p2: results_tmp = search_pattern(req, p2, f2, m2, ap=ap, of=of, verbose=verbose, ln=ln) if op1 == "a": # add results_in_any_collection.intersect(results_tmp) elif op1 == "o": # or results_in_any_collection.union(results_tmp) elif op1 == "n": # not results_in_any_collection.difference(results_tmp) else: if of.startswith("h"): print_warning(req, "Invalid set operation %s." % op1, "Error") results_in_any_collection.calculate_nbhits() if results_in_any_collection._nbhits == 0: return page_end(req, of, ln) if p3: results_tmp = search_pattern(req, p3, f3, m3, ap=ap, of=of, verbose=verbose, ln=ln) if op2 == "a": # add results_in_any_collection.intersect(results_tmp) elif op2 == "o": # or results_in_any_collection.union(results_tmp) elif op2 == "n": # not results_in_any_collection.difference(results_tmp) else: if of.startswith("h"): print_warning(req, "Invalid set operation %s." % op2, "Error") results_in_any_collection.calculate_nbhits() except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) return page_end(req, of, ln) else: ## 3B - simple search try: results_in_any_collection = search_pattern(req, p, f, ap=ap, of=of, verbose=verbose, ln=ln) except: if of.startswith("h"): req.write(create_error_box(req, verbose=verbose, ln=ln)) return page_end(req, of, ln) if results_in_any_collection._nbhits == 0: return page_end(req, of, ln)
97eb228b38eb0d434005896f76d64b6d3daf7801 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/97eb228b38eb0d434005896f76d64b6d3daf7801/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 1546, 72, 3113, 1694, 1546, 3113, 6692, 1546, 3113, 434, 1546, 350, 3113, 15835, 1546, 3113, 487, 1546, 20, 3113, 293, 21, 1546, 3113, 284, 21, 1546, 3113, 312, 21, 1546, 3113, 1061, 21, 1546, 3113, 293, 22, 1546, 3113, 284, 22, 1546, 3113, 312, 22, 1546, 3113, 1061, 22, 1546, 3113, 293, 23, 1546, 3113, 284, 23, 1546, 3113, 312, 23, 1546, 3113, 888, 1546, 20, 3113, 525, 3927, 1546, 20, 3113, 1950, 350, 1546, 17, 21, 3113, 1950, 350, 70, 1546, 17, 21, 3113, 2589, 2135, 1546, 3113, 612, 1546, 17, 21, 3113, 612, 70, 1546, 17, 21, 3113, 2589, 6423, 1546, 3113, 1301, 1546, 3113, 302, 21, 93, 1546, 20, 3113, 302, 21, 81, 1546, 20, 3113, 302, 21, 72, 1546, 20, 3113, 302, 22, 93, 1546, 20, 3113, 302, 22, 81, 1546, 20, 3113, 302, 22, 72, 1546, 20, 3113, 3988, 1546, 20, 3113, 513, 1546, 20, 3113, 7211, 33, 4315, 2069, 539, 4672, 3536, 4990, 1623, 578, 21670, 590, 16, 2887, 6728, 364, 5107, 18, 225, 2000, 666, 434, 1950, 5103, 1392, 16, 309, 434, 33, 350, 18, 5272, 752, 3311, 1363, 18, 225, 1021, 1775, 854, 487, 13040, 30, 225, 1111, 300, 681, 67, 8103, 1567, 667, 791, 18, 225, 4946, 300, 783, 1849, 261, 73, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2293, 67, 3072, 12, 3658, 33, 7036, 16, 4946, 33, 71, 2377, 529, 16, 276, 33, 7036, 16, 293, 1546, 3113, 284, 1546, 3113, 14524, 1546, 2163, 3113, 9033, 1546, 3113, 1427, 1546, 72, 3113, 1694, 1546, 3113, 6692, 1546, 3113, 434, 1546, 350, 3113, 15835, 1546, 3113, 487, 1546, 20, 3113, 293, 21, 1546, 3113, 284, 21, 1546, 3113, 312, 21, 1546, 3113, 1061, 21, 1546, 3113, 293, 22, 1546, 3113, 284, 22, 1546, 3113, 312, 22, 1546, 3113, 1061, 22, 1546, 3113, 293, 23, 1546, 3113, 284, 23, 1546, 3113, 312, 23, 1546, 3113, 888, 1546, 20, 3113, 525, 3927, 1546, 20, 3113, 1950, 350, 1546, 17, 21, 3113, 1950, 350, 70, 1546, 17, 2 ]
dist_s += (at.md_virial[i,j] - at.dft_virial[i,j])**2.0
dist_s += (at.md_stress[i,j] - at.dft_stress[i,j])**2.0
def costfn(config_list, pot, wf=1.0, ws=0.5, we=0.1, bulk_mod=2000.0/294156.6447): s = fzeros((3,3)) normweight = sqrt(wf*wf + ws*ws + we*we) wf /= normweight ws /= normweight we /= normweight dist_f = 0.0; norm_f = 0.0 dist_e = 0.0; norm_e = 0.0 dist_s = 0.0; norm_s = 0.0 for ati, at in enumerate(config_list): pot.calc(at, virial=s, calc_force=True, calc_energy=True) at.params['md_energy'] = at.params['energy'] / HARTREE at.params['md_virial'] = s / (HARTREE/(BOHR**3)) at.md_force = at.force / (HARTREE/BOHR) for i in frange(at.n): for j in (1,2,3): dist_f += (at.md_force[j,i] - at.dft_force[j,i])**2.0 norm_f += at.dft_force[j,i]**2.0 for i in (1,2,3): for j in (1,2,3): dist_s += (at.md_virial[i,j] - at.dft_virial[i,j])**2.0 norm_s += bulk_mod**2.0 for i, ati in enumerate(config_list): for j, atj in enumerate(config_list): if j <= i: continue diff_md = ati.md_energy - atj.md_energy diff_ai = ati.dft_energy - atj.dft_energy norm_e += diff_ai**2.0 dist_e += (diff_md - diff_ai)**2.0 dist_f = sqrt(dist_f / norm_f) dist_s = sqrt(dist_s / norm_s) dist_e = sqrt(dist_e / norm_e) return config_list, (wf*dist_f + ws*dist_s + we*dist_e, dist_f, dist_s, dist_e)
c678eb69f4e3322139aeed2586b2b437a89e282f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/c678eb69f4e3322139aeed2586b2b437a89e282f/sio2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6991, 4293, 12, 1425, 67, 1098, 16, 5974, 16, 11578, 33, 21, 18, 20, 16, 4945, 33, 20, 18, 25, 16, 732, 33, 20, 18, 21, 16, 8280, 67, 1711, 33, 17172, 18, 20, 19, 5540, 24, 28946, 18, 1105, 9462, 4672, 225, 272, 273, 284, 22008, 12443, 23, 16, 23, 3719, 225, 4651, 4865, 273, 5700, 12, 15581, 14, 15581, 397, 4945, 14, 4749, 397, 732, 14, 1814, 13, 11578, 9531, 4651, 4865, 4945, 9531, 4651, 4865, 732, 9531, 4651, 4865, 225, 2411, 67, 74, 273, 374, 18, 20, 31, 4651, 67, 74, 273, 374, 18, 20, 2411, 67, 73, 273, 374, 18, 20, 31, 4651, 67, 73, 273, 374, 18, 20, 2411, 67, 87, 273, 374, 18, 20, 31, 4651, 67, 87, 273, 374, 18, 20, 225, 364, 622, 77, 16, 622, 316, 4241, 12, 1425, 67, 1098, 4672, 5974, 18, 12448, 12, 270, 16, 16831, 649, 33, 87, 16, 7029, 67, 5734, 33, 5510, 16, 7029, 67, 15358, 33, 5510, 13, 225, 622, 18, 2010, 3292, 1264, 67, 15358, 3546, 273, 622, 18, 2010, 3292, 15358, 3546, 342, 670, 4928, 9719, 622, 18, 2010, 3292, 1264, 67, 25692, 649, 3546, 273, 272, 342, 261, 44, 4928, 9719, 19, 12, 5315, 15024, 636, 23, 3719, 622, 18, 1264, 67, 5734, 273, 622, 18, 5734, 342, 261, 44, 4928, 9719, 19, 5315, 15024, 13, 225, 364, 277, 316, 284, 3676, 12, 270, 18, 82, 4672, 364, 525, 316, 261, 21, 16, 22, 16, 23, 4672, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6991, 4293, 12, 1425, 67, 1098, 16, 5974, 16, 11578, 33, 21, 18, 20, 16, 4945, 33, 20, 18, 25, 16, 732, 33, 20, 18, 21, 16, 8280, 67, 1711, 33, 17172, 18, 20, 19, 5540, 24, 28946, 18, 1105, 9462, 4672, 225, 272, 273, 284, 22008, 12443, 23, 16, 23, 3719, 225, 4651, 4865, 273, 5700, 12, 15581, 14, 15581, 397, 4945, 14, 4749, 397, 732, 14, 1814, 13, 11578, 9531, 4651, 4865, 4945, 9531, 4651, 4865, 732, 9531, 4651, 4865, 225, 2411, 67, 74, 273, 374, 18, 20, 31, 4651, 67, 74, 273, 374, 18, 20, 2411, 67, 73, 273, 374, 18, 20, 31, 4651, 67, 73, 273, 374, 18, 20, 2411, 67, 87, 273, 374, 2 ]
self.statemachine.node += self.unindentwarning()
self.statemachine.node += self.unindent_warning('Field list')
def field_marker(self, match, context, nextstate): """Field list item.""" fieldlist = nodes.field_list() self.statemachine.node += fieldlist field, blankfinish = self.field(match) fieldlist += field offset = self.statemachine.lineoffset + 1 # next line newlineoffset, blankfinish = self.nestedlistparse( self.statemachine.inputlines[offset:], inputoffset=self.statemachine.abslineoffset() + 1, node=fieldlist, initialstate='FieldList', blankfinish=blankfinish) if not blankfinish: self.statemachine.node += self.unindentwarning() self.gotoline(newlineoffset) return [], nextstate, []
519a9371a95abd6fdb5d1592e8f592b84dddf678 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/519a9371a95abd6fdb5d1592e8f592b84dddf678/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 11145, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 974, 666, 761, 12123, 652, 1098, 273, 2199, 18, 1518, 67, 1098, 1435, 365, 18, 2019, 9149, 18, 2159, 1011, 652, 1098, 652, 16, 7052, 13749, 273, 365, 18, 1518, 12, 1916, 13, 652, 1098, 1011, 652, 1384, 273, 365, 18, 2019, 9149, 18, 1369, 3348, 397, 404, 282, 468, 1024, 980, 9472, 3348, 16, 7052, 13749, 273, 365, 18, 12985, 1098, 2670, 12, 365, 18, 2019, 9149, 18, 2630, 3548, 63, 3348, 30, 6487, 810, 3348, 33, 2890, 18, 2019, 9149, 18, 5113, 1369, 3348, 1435, 397, 404, 16, 756, 33, 1518, 1098, 16, 2172, 2019, 2218, 974, 682, 2187, 7052, 13749, 33, 12111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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 652, 67, 11145, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 974, 666, 761, 12123, 652, 1098, 273, 2199, 18, 1518, 67, 1098, 1435, 365, 18, 2019, 9149, 18, 2159, 1011, 652, 1098, 652, 16, 7052, 13749, 273, 365, 18, 1518, 12, 1916, 13, 652, 1098, 1011, 652, 1384, 273, 365, 18, 2019, 9149, 18, 1369, 3348, 397, 404, 282, 468, 1024, 980, 9472, 3348, 16, 7052, 13749, 273, 365, 18, 12985, 1098, 2670, 12, 365, 18, 2019, 9149, 18, 2630, 3548, 63, 3348, 30, 6487, 810, 3348, 33, 2890, 18, 2019, 9149, 18, 5113, 1369, 3348, 1435, 397, 404, 16, 756, 33, 1518, 1098, 16, 2172, 2019, 2218, 974, 682, 2187, 7052, 13749, 33, 2 ]
linker_so=('%s -mcygwin -mdll' % self.linker_dll))
linker_so=('%s -mcygwin %s' % (self.linker_dll, shared_option)))
def __init__ (self, verbose=0, dry_run=0, force=0):
11b3a6bf462f6f71f82b49e533ac03e7b26e2227 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/11b3a6bf462f6f71f82b49e533ac03e7b26e2227/cygwinccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 16, 2944, 33, 20, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 261, 2890, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 16, 2944, 33, 20, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
program = [('version', '1.5'),
program = [('version', '1.6'),
def test_translate_static_text_as_dynamic_from_bytecode(self): program = [('version', '1.5'),
7a4a610b6943a4f0e0eff9fe7a51800ee82104d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/7a4a610b6943a4f0e0eff9fe7a51800ee82104d5/test_talinterpreter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13929, 67, 3845, 67, 955, 67, 345, 67, 14507, 67, 2080, 67, 1637, 16651, 12, 2890, 4672, 5402, 273, 225, 306, 2668, 1589, 2187, 296, 21, 18, 25, 19899, 2, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13929, 67, 3845, 67, 955, 67, 345, 67, 14507, 67, 2080, 67, 1637, 16651, 12, 2890, 4672, 5402, 273, 225, 306, 2668, 1589, 2187, 296, 21, 18, 25, 19899, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return None
return []
def textToDns(text): """ Search for possible DNS in an arbitrary text. """ match = re.findall("\w*\.\w*\.\w*", text) if match: return match else: return None
8312439b4df870685d3e7b1f2c140b8dd54be72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/8312439b4df870685d3e7b1f2c140b8dd54be72e/dns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 774, 18600, 12, 955, 4672, 3536, 5167,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 977, 774, 18600, 12, 955, 4672, 3536, 5167, 364, 3323, 8858, 316, 392, 11078, 977, 18, 3536, 845, 273, 283, 18, 4720, 454, 31458, 91, 14, 19002, 91, 14, 19002, 91, 14, 3113, 977, 13, 309, 845, 30, 327, 845, 469, 30, 327, 5378, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.remove(group.get_logo_filename())
os.remove(group.logo.path)
def edit_group(request, group, is_admin=False): """Edit group properties""" old_logo = group.get_logo_filename() if request.method == 'POST': form = GroupForm(data=request.POST, files=request.FILES, instance=group, user=request.user) if form.is_valid(): form.save() if old_logo and old_logo != group.get_logo_filename(): os.remove(old_logo) elif 'delete_logo' in form.cleaned_data and old_logo: os.remove(group.get_logo_filename()) group.logo = '' group.save() request.user.message_set.create( message=_('Group successfully updated')) return HttpResponseRedirect(reverse('group-summary', args=(group.slug,))) else: form = GroupForm(instance=group) return render_to_response('common/group_form.html', { 'is_admin': is_admin, 'group': group, 'form': form, }, context_instance=RequestContext(request))
786ead23892b46b51a45b4469327037e4d4be279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/786ead23892b46b51a45b4469327037e4d4be279/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 1655, 12, 2293, 16, 1041, 16, 353, 67, 3666, 33, 8381, 4672, 3536, 4666, 1041, 1790, 8395, 225, 1592, 67, 19882, 273, 1041, 18, 588, 67, 19882, 67, 3459, 1435, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 3756, 1204, 12, 892, 33, 2293, 18, 3798, 16, 1390, 33, 2293, 18, 12669, 16, 791, 33, 1655, 16, 729, 33, 2293, 18, 1355, 13, 225, 309, 646, 18, 291, 67, 877, 13332, 646, 18, 5688, 1435, 225, 309, 1592, 67, 19882, 471, 1592, 67, 19882, 480, 1041, 18, 588, 67, 19882, 67, 3459, 13332, 1140, 18, 4479, 12, 1673, 67, 19882, 13, 1327, 296, 3733, 67, 19882, 11, 316, 646, 18, 6200, 329, 67, 892, 471, 1592, 67, 19882, 30, 1140, 18, 4479, 12, 1655, 18, 19882, 18, 803, 13, 1041, 18, 19882, 273, 875, 1041, 18, 5688, 1435, 225, 590, 18, 1355, 18, 2150, 67, 542, 18, 2640, 12, 883, 33, 67, 2668, 1114, 4985, 3526, 26112, 225, 327, 31780, 12, 9845, 2668, 1655, 17, 7687, 2187, 833, 28657, 1655, 18, 6436, 16, 20349, 469, 30, 646, 273, 3756, 1204, 12, 1336, 33, 1655, 13, 225, 327, 1743, 67, 869, 67, 2740, 2668, 6054, 19, 1655, 67, 687, 18, 2620, 2187, 288, 296, 291, 67, 3666, 4278, 353, 67, 3666, 16, 296, 1655, 4278, 1041, 16, 296, 687, 4278, 646, 16, 19879, 819, 67, 1336, 33, 21426, 12, 2293, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3874, 67, 1655, 12, 2293, 16, 1041, 16, 353, 67, 3666, 33, 8381, 4672, 3536, 4666, 1041, 1790, 8395, 225, 1592, 67, 19882, 273, 1041, 18, 588, 67, 19882, 67, 3459, 1435, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 3756, 1204, 12, 892, 33, 2293, 18, 3798, 16, 1390, 33, 2293, 18, 12669, 16, 791, 33, 1655, 16, 729, 33, 2293, 18, 1355, 13, 225, 309, 646, 18, 291, 67, 877, 13332, 646, 18, 5688, 1435, 225, 309, 1592, 67, 19882, 471, 1592, 67, 19882, 480, 1041, 18, 588, 67, 19882, 67, 3459, 13332, 1140, 18, 4479, 12, 1673, 67, 19882, 13, 1327, 296, 3733, 67, 19882, 11, 316, 646, 18, 6200, 329, 67, 2 ]
if (not os.path.isdir(os.path.join(dir, "icons"))):
if (not os.path.isdir(os.path.join(dir, DEFAULT_WBROOT))):
def check_source(dir): if (not os.path.isdir(dir)): raise InstallError("\n\nSource directory " + dir + " does not exist!") if (not os.path.isdir(os.path.join(dir, "icons"))): raise InstallError("\n\nSource directory does not seem to be valid:\n"+\ os.path.join(dir, "icons") + " not found.")
acf559e6e5de1c1854bbf63e6dc9e1b4740212a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8183/acf559e6e5de1c1854bbf63e6dc9e1b4740212a6/tomb-install-dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3168, 12, 1214, 4672, 309, 261, 902, 1140, 18, 803, 18, 291, 1214, 12, 1214, 3719, 30, 1002, 10284, 668, 31458, 82, 64, 82, 1830, 1867, 315, 397, 1577, 397, 315, 1552, 486, 1005, 4442, 13, 225, 309, 261, 902, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 3331, 67, 59, 38, 9185, 3719, 4672, 1002, 10284, 668, 31458, 82, 64, 82, 1830, 1867, 1552, 486, 19264, 358, 506, 923, 5581, 82, 6, 16971, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 14516, 7923, 397, 315, 486, 1392, 1199, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 3168, 12, 1214, 4672, 309, 261, 902, 1140, 18, 803, 18, 291, 1214, 12, 1214, 3719, 30, 1002, 10284, 668, 31458, 82, 64, 82, 1830, 1867, 315, 397, 1577, 397, 315, 1552, 486, 1005, 4442, 13, 225, 309, 261, 902, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 1214, 16, 3331, 67, 59, 38, 9185, 3719, 4672, 1002, 10284, 668, 31458, 82, 64, 82, 1830, 1867, 1552, 486, 19264, 358, 506, 923, 5581, 82, 6, 16971, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 14516, 7923, 397, 315, 486, 1392, 1199, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self -- a p-adic ring x -- an integer or element of $\Z / p\Z$ that is not divisible by $p$ OUTPUT: element -- the teichmuller lift of x EXAMPLES: sage: R = Zp(5, 10, 'capped-rel', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Qp(5, 10,'capped-rel','series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Zp(5, 10, 'capped-abs', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Zp(5, 10, 'fixed-mod', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10)
self -- a p-adic ring x -- something that can be cast into self OUTPUT: element -- the teichmuller lift of x EXAMPLES: sage: R = Zp(5, 10, 'capped-rel', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Qp(5, 10,'capped-rel','series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Zp(5, 10, 'capped-abs', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Zp(5, 10, 'fixed-mod', 'series') sage: R.teichmuller(2) 2 + 5 + 2*5^2 + 5^3 + 3*5^4 + 4*5^5 + 2*5^6 + 3*5^7 + 3*5^9 + O(5^10) sage: R = Zp(5,5) sage: S.<x> = R[] sage: f = x^5 + 75*x^3 - 15*x^2 +125*x - 5 sage: W.<w> = R.ext(f) sage: y = W.teichmuller(3); y 3 + 3*w^5 + w^7 + 2*w^9 + 2*w^10 + 4*w^11 + w^12 + 2*w^13 + 3*w^15 + 2*w^16 + 3*w^17 + w^18 + 3*w^19 + 3*w^20 + 2*w^21 + 2*w^22 + 3*w^23 + 4*w^24 + O(w^25) sage: y^5 == y True sage: g = x^3 + 3*x + 3 sage: A.<a> = R.ext(g) sage: b = A.teichmuller(1 + 2*a - a^2); b (4*a^2 + 2*a + 1) + 2*a*5 + (3*a^2 + 1)*5^2 + (a + 4)*5^3 + (a^2 + a + 1)*5^4 + O(5^5) sage: b^125 == b True
def teichmuller(self, x, prec = None): r""" Returns the teichmuller representative of x.
30a764f77f807a9f30b4503dfb3c45d3268a9450 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6489, 1354, 81, 420, 264, 12, 2890, 16, 619, 16, 13382, 273, 599, 4672, 436, 8395, 2860, 326, 6489, 1354, 81, 420, 264, 23174, 434, 619, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
unicode_names.append( (ix, unicodedata.name(unichr(ix))) )
unicode_names.append((ix, unicodedata.name(unichr(ix))))
def main(args): unicode_names= [] for ix in range(sys.maxunicode+1): try: unicode_names.append( (ix, unicodedata.name(unichr(ix))) ) except ValueError: # no name for the character pass for arg in args: pat = re.compile(arg, re.I) matches = [(x,y) for (x,y) in unicode_names if pat.search(y) is not None] if matches: print "***", arg, "matches", "***" for (x,y) in matches: print "%s (%d)" % (y,x)
3c531ff74ae7d943b8c50bdd89b1f0393015b964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/3c531ff74ae7d943b8c50bdd89b1f0393015b964/find-uname.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1968, 4672, 5252, 67, 1973, 33, 5378, 364, 8288, 316, 1048, 12, 9499, 18, 1896, 9124, 15, 21, 4672, 775, 30, 5252, 67, 1973, 18, 6923, 12443, 697, 16, 5252, 892, 18, 529, 12, 318, 1354, 86, 12, 697, 3719, 3719, 1335, 2068, 30, 468, 1158, 508, 364, 326, 3351, 1342, 364, 1501, 316, 833, 30, 9670, 273, 283, 18, 11100, 12, 3175, 16, 283, 18, 45, 13, 1885, 273, 306, 12, 92, 16, 93, 13, 364, 261, 92, 16, 93, 13, 316, 5252, 67, 1973, 309, 9670, 18, 3072, 12, 93, 13, 353, 486, 599, 65, 309, 1885, 30, 1172, 315, 14465, 3113, 1501, 16, 315, 8436, 3113, 28078, 7388, 364, 261, 92, 16, 93, 13, 316, 1885, 30, 1172, 2213, 87, 6142, 72, 2225, 738, 261, 93, 16, 92, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 697, 3719, 3719, 1335, 2068, 30, 468, 1158, 508, 364, 326, 3351, 1342, 364, 1501, 316, 833, 30, 9670, 273, 283, 18, 11100, 12, 3175, 16, 283, 18, 45, 13, 1885, 273, 306, 12, 92, 16, 93, 13, 364, 261, 92, 16, 93, 13, 316, 5252, 67, 1973, 309, 9670, 18, 3072, 12, 93, 13, 353, 486, 599, 65, 309, 1885, 30, 1172, 315, 14465, 3113, 1501, 16, 315, 8436, 3113, 28078, 7388, 364, 261, 92, 16, 93, 2 ]
if not self.podcast_list_can_tooltip:
if not self.podcast_list_can_tooltip or (column is not None and column != treeview.get_columns()[0]):
def treeview_channels_query_tooltip(self, treeview, x, y, keyboard_tooltip, tooltip): (path, column, rx, ry) = treeview.get_path_at_pos( x, y) or (None,)*4
e14200a9ba1c18883fbd91a008db394fec8f52c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/e14200a9ba1c18883fbd91a008db394fec8f52c6/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 1945, 67, 9114, 67, 2271, 67, 19798, 12, 2890, 16, 2151, 1945, 16, 619, 16, 677, 16, 16263, 67, 19798, 16, 11915, 4672, 261, 803, 16, 1057, 16, 8581, 16, 16826, 13, 273, 2151, 1945, 18, 588, 67, 803, 67, 270, 67, 917, 12, 619, 16, 677, 13, 578, 261, 7036, 16, 17653, 24, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 1945, 67, 9114, 67, 2271, 67, 19798, 12, 2890, 16, 2151, 1945, 16, 619, 16, 677, 16, 16263, 67, 19798, 16, 11915, 4672, 261, 803, 16, 1057, 16, 8581, 16, 16826, 13, 273, 2151, 1945, 18, 588, 67, 803, 67, 270, 67, 917, 12, 619, 16, 677, 13, 578, 261, 7036, 16, 17653, 24, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
static void *gen_userdata(int no) {
static void *gen_userdata(int no, int nr ATTRIBUTE_UNUSED) {
def is_known_param_type(name): for type in known_param_types: if type == name: return 1 return 0
3d97e669eca6f4849c7b3014f472cacc57817015 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/3d97e669eca6f4849c7b3014f472cacc57817015/gentest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2994, 67, 891, 67, 723, 12, 529, 4672, 364, 618, 316, 4846, 67, 891, 67, 2352, 30, 309, 618, 422, 508, 30, 327, 404, 327, 374, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.write(line)
self.write(line.encode('ascii'))
def mt_interact(self): """Multithreaded version of interact().""" import _thread _thread.start_new_thread(self.listener, ()) while 1: line = sys.stdin.readline() if not line: break self.write(line)
783645f700459069cdf72120d36d8c194397ec56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/783645f700459069cdf72120d36d8c194397ec56/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5874, 67, 2761, 621, 12, 2890, 4672, 3536, 5049, 483, 20528, 1177, 434, 16592, 1435, 12123, 1930, 389, 5930, 389, 5930, 18, 1937, 67, 2704, 67, 5930, 12, 2890, 18, 12757, 16, 1832, 13, 1323, 404, 30, 980, 273, 2589, 18, 21772, 18, 896, 1369, 1435, 309, 486, 980, 30, 898, 365, 18, 2626, 12, 1369, 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, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5874, 67, 2761, 621, 12, 2890, 4672, 3536, 5049, 483, 20528, 1177, 434, 16592, 1435, 12123, 1930, 389, 5930, 389, 5930, 18, 1937, 67, 2704, 67, 5930, 12, 2890, 18, 12757, 16, 1832, 13, 1323, 404, 30, 980, 273, 2589, 18, 21772, 18, 896, 1369, 1435, 309, 486, 980, 30, 898, 365, 18, 2626, 12, 1369, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
title = "TLS Model Translation Tensor RMSD Values of Principal Components",
title = "TLS Model Translation Tensor RMSD Values of Principal Components",
def write_data_file(self): """Generate the data file and return the filename. """ nrows = len(self.cpartition.chain) ncols = 1 + 3 * self.cpartition.num_tls_segments() tbl = table.StringTable(nrows, ncols, "?", title = "TLS Model Translation Tensor RMSD Values of Principal Components", column_titles = ["Residue"])
b506e1ac631a2bdb447b739ed1d90a635dddd71a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/b506e1ac631a2bdb447b739ed1d90a635dddd71a/gnuplots.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 892, 67, 768, 12, 2890, 4672, 3536, 4625, 326, 501, 585, 471, 327, 326, 1544, 18, 3536, 18871, 273, 562, 12, 2890, 18, 71, 10534, 18, 5639, 13, 21330, 273, 404, 397, 890, 380, 365, 18, 71, 10534, 18, 2107, 67, 17116, 67, 12838, 1435, 10142, 273, 1014, 18, 780, 1388, 12, 82, 3870, 16, 21330, 16, 18101, 3113, 2077, 273, 315, 9905, 3164, 17427, 13422, 534, 3537, 40, 6876, 434, 17010, 25286, 3113, 1057, 67, 17643, 273, 8247, 607, 23965, 6, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1045, 67, 892, 67, 768, 12, 2890, 4672, 3536, 4625, 326, 501, 585, 471, 327, 326, 1544, 18, 3536, 18871, 273, 562, 12, 2890, 18, 71, 10534, 18, 5639, 13, 21330, 273, 404, 397, 890, 380, 365, 18, 71, 10534, 18, 2107, 67, 17116, 67, 12838, 1435, 10142, 273, 1014, 18, 780, 1388, 12, 82, 3870, 16, 21330, 16, 18101, 3113, 2077, 273, 315, 9905, 3164, 17427, 13422, 534, 3537, 40, 6876, 434, 17010, 25286, 3113, 1057, 67, 17643, 273, 8247, 607, 23965, 6, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.unset_clip_planes() self.set_clip_planes()
if self.gl_active > 0: self.unset_clip_planes() self.set_clip_planes()
def update_clip_planes(self): self.unset_clip_planes() self.set_clip_planes()
1375395e9f64180c0c0e93a7ab98acdc55bb8a6a /local1/tlutelli/issta_data/temp/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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 14161, 67, 7088, 281, 12, 2890, 4672, 365, 18, 18579, 67, 14161, 67, 7088, 281, 1435, 365, 18, 542, 67, 14161, 67, 7088, 281, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
index = text.indexOf(expression)
index = expression.indexIn(text)
def highlightBlock(self, text):
4ef400c87059896564f79dd33991daa9fbb56a02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4440/4ef400c87059896564f79dd33991daa9fbb56a02/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 1768, 12, 2890, 16, 977, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8839, 1768, 12, 2890, 16, 977, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if options['tests'].get('full'): checks |= DocChecker.ALL_T if options['tests'].get('type'): DocChecker.TYPE
if options['tests'].get('vars'): checks |= DocChecker.ALL_T if options['tests'].get('types'): checks |= DocChecker.ALL_T DocChecker.TYPE
def _check(docmap, modules, options): """ Run completeness checks on the objects in the given documentation map. By default, C{_check} checks for docstrings in all public modules, classes, functions, and properties. Additional checks can be added with the C{'tests'} option: - C{private}: Also checks private objects. - C{full}: Also checks variables, parameters, and return values. @param docmap: A documentation map containing the documentation for the objects whose API documentation should be created. @param options: Options from the command-line arguments. @type options: C{dict} """ from epydoc.checker import DocChecker # Run completeness checks. if options['verbosity'] > 0: print >>sys.stderr, 'Performing completeness checks...' checker = DocChecker(docmap, modules) if options['tests'].get('all'): for test in TESTS: options['tests'][test] = 1 # Run the checks checks = 0 if (options['tests'].get('basic') or options['tests'].get('full') or options['tests'].get('private')): checks |= (DocChecker.MODULE | DocChecker.CLASS | DocChecker.FUNC | DocChecker.PROPERTY | DocChecker.DESCR_LAZY | DocChecker.PUBLIC) if options['tests'].get('private'): checks |= DocChecker.PRIVATE if options['tests'].get('full'): checks |= DocChecker.ALL_T if options['tests'].get('type'): DocChecker.TYPE passed_checks = checker.check(checks) if options['tests'].get('author'): checks = DocChecker.MODULE | DocChecker.PUBLIC | DocChecker.AUTHOR if options['tests'].get('private'): checks |= DocChecker.PRIVATE passed_checks = checker.check(checks) and passed_checks if options['tests'].get('version'): checks = DocChecker.MODULE | DocChecker.PUBLIC | DocChecker.VERSION if options['tests'].get('private'): checks |= DocChecker.PRIVATE passed_checks = checker.check(checks) and passed_checks if passed_checks and options['verbosity'] > 0: print >>sys.stderr, ' All checks passed!'
5397b1945fdf3feb9813ef60349d76c37defaafe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5397b1945fdf3feb9813ef60349d76c37defaafe/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2434, 1458, 16, 4381, 16, 702, 4672, 3536, 1939, 2302, 15681, 4271, 603, 326, 2184, 316, 326, 864, 7323, 225, 852, 18, 225, 2525, 805, 16, 385, 95, 67, 1893, 97, 4271, 364, 997, 10219, 316, 777, 1071, 4381, 16, 3318, 16, 4186, 16, 471, 1790, 18, 225, 15119, 4271, 848, 506, 3096, 598, 326, 385, 27828, 16341, 11, 97, 1456, 30, 225, 300, 385, 95, 1152, 6713, 8080, 4271, 3238, 2184, 18, 300, 385, 95, 2854, 6713, 8080, 4271, 3152, 16, 1472, 16, 471, 327, 924, 18, 225, 632, 891, 997, 1458, 30, 432, 7323, 852, 4191, 326, 7323, 364, 326, 2184, 8272, 1491, 7323, 1410, 506, 2522, 18, 632, 891, 702, 30, 5087, 628, 326, 1296, 17, 1369, 1775, 18, 632, 723, 702, 30, 385, 95, 1576, 97, 3536, 628, 425, 2074, 2434, 18, 19243, 1930, 3521, 8847, 225, 468, 1939, 2302, 15681, 4271, 18, 309, 702, 3292, 16629, 8807, 3546, 405, 374, 30, 1172, 225, 1671, 9499, 18, 11241, 16, 296, 4990, 310, 2302, 15681, 4271, 7821, 12489, 273, 3521, 8847, 12, 2434, 1458, 16, 4381, 13, 225, 309, 702, 3292, 16341, 29489, 588, 2668, 454, 11, 4672, 364, 1842, 316, 22130, 55, 30, 702, 3292, 16341, 3546, 63, 3813, 65, 273, 404, 225, 468, 1939, 326, 4271, 4271, 273, 374, 309, 261, 2116, 3292, 16341, 29489, 588, 2668, 13240, 6134, 578, 702, 3292, 16341, 29489, 588, 2668, 2854, 6134, 578, 702, 3292, 16341, 29489, 588, 2668, 1152, 26112, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2434, 1458, 16, 4381, 16, 702, 4672, 3536, 1939, 2302, 15681, 4271, 603, 326, 2184, 316, 326, 864, 7323, 225, 852, 18, 225, 2525, 805, 16, 385, 95, 67, 1893, 97, 4271, 364, 997, 10219, 316, 777, 1071, 4381, 16, 3318, 16, 4186, 16, 471, 1790, 18, 225, 15119, 4271, 848, 506, 3096, 598, 326, 385, 27828, 16341, 11, 97, 1456, 30, 225, 300, 385, 95, 1152, 6713, 8080, 4271, 3238, 2184, 18, 300, 385, 95, 2854, 6713, 8080, 4271, 3152, 16, 1472, 16, 471, 327, 924, 18, 225, 632, 891, 997, 1458, 30, 432, 7323, 852, 4191, 326, 7323, 364, 326, 2184, 8272, 1491, 7323, 1410, 506, 2522, 18, 632, 891, 702, 30, 5087, 2 ]
Returns True if the group is solvable.
Returns ``True`` if the group is solvable.
def is_solvable(self): """ Returns True if the group is solvable.
2d077a3331069892dd585070aa02c876686672d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2d077a3331069892dd585070aa02c876686672d2/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 18281, 16845, 12, 2890, 4672, 3536, 2860, 1053, 309, 326, 1041, 353, 3704, 16845, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 18281, 16845, 12, 2890, 4672, 3536, 2860, 1053, 309, 326, 1041, 353, 3704, 16845, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(default: 'vector')
(default: ``'vector'``)
def random_element(self, elem_type = "vector"): """ Return a random element for self. INPUT: - ``elem_type`` - either 'vector' or 'state array' (default: 'vector') EXAMPLE:: sage: sr = mq.SR() sage: sr.random_element() [ a^3 + a + 1] [ a^3 + 1] [a^3 + a^2 + 1] [a^3 + a^2 + a] sage: sr.random_element('state_array') [a + 1] """ if elem_type == "vector": return self.random_vector() elif elem_type == "state_array": return self.random_state_array() else: raise TypeError, "parameter type not understood"
f145241e51a69266a2640a052ee008637b5d9160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f145241e51a69266a2640a052ee008637b5d9160/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 67, 2956, 12, 2890, 16, 3659, 67, 723, 273, 315, 7737, 6, 4672, 3536, 2000, 279, 2744, 930, 364, 365, 18, 225, 12943, 30, 282, 300, 225, 12176, 10037, 67, 723, 10335, 300, 3344, 296, 7737, 11, 578, 296, 2019, 526, 11, 261, 1886, 30, 1375, 11294, 7737, 11, 10335, 13, 282, 5675, 21373, 2866, 225, 272, 410, 30, 9133, 273, 18327, 18, 10090, 1435, 272, 410, 30, 9133, 18, 9188, 67, 2956, 1435, 306, 225, 279, 66, 23, 397, 279, 397, 404, 65, 306, 1377, 279, 66, 23, 397, 404, 65, 306, 69, 66, 23, 397, 279, 66, 22, 397, 404, 65, 306, 69, 66, 23, 397, 279, 66, 22, 397, 279, 65, 272, 410, 30, 9133, 18, 9188, 67, 2956, 2668, 2019, 67, 1126, 6134, 306, 69, 397, 404, 65, 3536, 309, 3659, 67, 723, 422, 315, 7737, 6877, 327, 365, 18, 9188, 67, 7737, 1435, 1327, 3659, 67, 723, 422, 315, 2019, 67, 1126, 6877, 327, 365, 18, 9188, 67, 2019, 67, 1126, 1435, 469, 30, 1002, 3580, 16, 315, 6775, 618, 486, 31727, 4773, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0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 6, 4672, 3536, 2000, 279, 2744, 930, 364, 365, 18, 225, 12943, 30, 282, 300, 225, 12176, 10037, 67, 723, 10335, 300, 3344, 296, 7737, 11, 578, 296, 2019, 526, 11, 261, 1886, 30, 1375, 11294, 7737, 11, 10335, 13, 282, 5675, 21373, 2866, 225, 272, 410, 30, 9133, 273, 18327, 18, 10090, 1435, 272, 410, 30, 9133, 18, 9188, 67, 2956, 1435, 306, 225, 279, 66, 23, 397, 279, 397, 404, 65, 306, 1377, 279, 66, 23, 397, 404, 65, 306, 69, 66, 23, 397, 279, 66, 22, 397, 404, 65, 306, 69, 66, 23, 397, 279, 66, 22, 397, 279, 65, 272, 410, 30, 2 ]
reactor.callinthread(i[0], typ, f, body)
reactor.callInThread(i[0], typ, f, body)
def cbmessage(self, x): try: body=self.getChild(x, "body").getContent() except: body="" try: f=x["from"] except: f="" try: typ=x["type"] except: typ="chat" for i in self.msghandlers: if re.search(i[1], body) and (i[2] in (typ, None)) and (i[3] in (f, None)): reactor.callinthread(i[0], typ, f, body)
d5587d9129660712d4cf24ddd6ba4db646f1d8b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2729/d5587d9129660712d4cf24ddd6ba4db646f1d8b8/twistedwrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 2150, 12, 2890, 16, 619, 4672, 775, 30, 1417, 33, 2890, 18, 588, 1763, 12, 92, 16, 315, 3432, 20387, 588, 1350, 1435, 1335, 30, 1417, 1546, 6, 775, 30, 284, 33, 92, 9614, 2080, 11929, 1335, 30, 284, 1546, 6, 775, 30, 3815, 33, 92, 9614, 723, 11929, 1335, 30, 3815, 1546, 10880, 6, 364, 277, 316, 365, 18, 3576, 11046, 30, 309, 283, 18, 3072, 12, 77, 63, 21, 6487, 1417, 13, 471, 261, 77, 63, 22, 65, 316, 261, 12846, 16, 599, 3719, 471, 261, 77, 63, 23, 65, 316, 261, 74, 16, 599, 3719, 30, 19178, 18, 1991, 267, 5930, 12, 77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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2875, 2150, 12, 2890, 16, 619, 4672, 775, 30, 1417, 33, 2890, 18, 588, 1763, 12, 92, 16, 315, 3432, 20387, 588, 1350, 1435, 1335, 30, 1417, 1546, 6, 775, 30, 284, 33, 92, 9614, 2080, 11929, 1335, 30, 284, 1546, 6, 775, 30, 3815, 33, 92, 9614, 723, 11929, 1335, 30, 3815, 1546, 10880, 6, 364, 277, 316, 365, 18, 3576, 11046, 30, 309, 283, 18, 3072, 12, 77, 63, 21, 6487, 1417, 13, 471, 261, 77, 63, 22, 65, 316, 261, 12846, 16, 599, 3719, 471, 261, 77, 63, 23, 65, 316, 261, 74, 16, 599, 3719, 30, 19178, 18, 1991, 267, 5930, 12, 77, 63, 20, 6487, 3815, 16, 284, 16, 1417, 13, 2, -100, -100 ]
if ct in _addDefaults: self.style |= _addDefaults[ct]
def createDialogTemplate(self): ct = self.controlType if "CONTROL"==ct: ct = self.subType if ct in _addDefaults: self.style |= _addDefaults[ct] if ct in _controlMap: ct = _controlMap[ct] t = [ct, self.label, self.idNum, (self.x, self.y, self.w, self.h), self.style] #print t return t
4c7ce4aac702da7f45a3728e193d41cf292ed38d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/4c7ce4aac702da7f45a3728e193d41cf292ed38d/win32rcparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 2283, 12, 2890, 4672, 5691, 273, 365, 18, 7098, 559, 309, 315, 18248, 6, 631, 299, 30, 5691, 273, 365, 18, 1717, 559, 309, 5691, 316, 389, 7098, 863, 30, 5691, 273, 389, 7098, 863, 63, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 752, 6353, 2283, 12, 2890, 4672, 5691, 273, 365, 18, 7098, 559, 309, 315, 18248, 6, 631, 299, 30, 5691, 273, 365, 18, 1717, 559, 309, 5691, 316, 389, 7098, 863, 30, 5691, 273, 389, 7098, 863, 63, 299, 65, 268, 273, 306, 299, 16, 365, 18, 1925, 16, 365, 18, 350, 2578, 16, 261, 2890, 18, 92, 16, 365, 18, 93, 16, 365, 18, 91, 16, 365, 18, 76, 3631, 365, 18, 4060, 65, 468, 1188, 268, 327, 268, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return Utils.unquote(filename.strip())
if isinstance(filename, TupleType): newvalue = _unquotevalue(filename) return unicode(newvalue[2], newvalue[0]) else: newvalue = _unquotevalue(filename.strip()) return newvalue
def get_filename(self, failobj=None): """Return the filename associated with the payload if present.
908dc4bea84e4c1d5c20c03160a202c0f69db49d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/908dc4bea84e4c1d5c20c03160a202c0f69db49d/Message.py
[ 1, 8585,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3459, 12, 2890, 16, 2321, 2603, 33, 7036, 4672, 3536, 990, 326, 1544, 3627, 598, 326, 2385, 309, 3430, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for row, ifo in enumerate(ifos):
for row, ifo in enumerate(ifos[::-1]):
def add_contents(self, segdict, ifos=None): """ Add the contents of segdict to the plot. Provide the list ifos, if you wish to specify the order in which they appear or wish to plot a subset of the segmentlists in segdict. """ if ifos is None: ifos = segdict.keys() ifos.sort() self.ifos.extend(ifos[::-1]) for row, ifo in enumerate(ifos): color = self.color_code[ifo] for seg in segdict[ifo]: a = self._time_transform(seg[0]) b = self._time_transform(seg[1]) self.ax.fill([a, b, b, a, a], [row, row, row+1, row+1, row], color)
9200ab61a73e06f4f72a150fc5f99b0f68999685 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/9200ab61a73e06f4f72a150fc5f99b0f68999685/plotsegments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3980, 12, 2890, 16, 2291, 1576, 16, 309, 538, 33, 7036, 4672, 3536, 1436, 326, 2939, 434, 2291, 1576, 358, 326, 3207, 18, 225, 26569, 326, 666, 309, 538, 16, 309, 1846, 14302, 358, 4800, 326, 1353, 316, 1492, 2898, 9788, 578, 14302, 358, 3207, 279, 7931, 434, 326, 3267, 9772, 316, 2291, 1576, 18, 3536, 309, 309, 538, 353, 599, 30, 309, 538, 273, 2291, 1576, 18, 2452, 1435, 309, 538, 18, 3804, 1435, 365, 18, 430, 538, 18, 14313, 12, 430, 538, 63, 2866, 17, 21, 5717, 364, 1027, 16, 21479, 316, 4241, 12, 430, 538, 63, 2866, 17, 21, 65, 4672, 2036, 273, 365, 18, 3266, 67, 710, 63, 20299, 65, 364, 2291, 316, 2291, 1576, 63, 20299, 14542, 279, 273, 365, 6315, 957, 67, 6547, 12, 5680, 63, 20, 5717, 324, 273, 365, 6315, 957, 67, 6547, 12, 5680, 63, 21, 5717, 365, 18, 651, 18, 5935, 3816, 69, 16, 324, 16, 324, 16, 279, 16, 279, 6487, 306, 492, 16, 1027, 16, 1027, 15, 21, 16, 1027, 15, 21, 16, 1027, 6487, 2036, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 326, 1353, 316, 1492, 2898, 9788, 578, 14302, 358, 3207, 279, 7931, 434, 326, 3267, 9772, 316, 2291, 1576, 18, 3536, 309, 309, 538, 353, 599, 30, 309, 538, 273, 2291, 1576, 18, 2452, 1435, 309, 538, 18, 3804, 1435, 365, 18, 430, 538, 18, 14313, 12, 430, 538, 63, 2866, 17, 21, 5717, 364, 1027, 16, 21479, 316, 4241, 12, 430, 538, 63, 2866, 17, 21, 65, 4672, 2036, 273, 365, 18, 3266, 67, 710, 63, 20299, 65, 364, 2291, 2 ]
check_call_noisy([options.hg, 'clone', '-r', SWITCH_MOZILLA_BASE_REV] + hgopts + [backup_mozilla_path, mozilla_path])
check_call_noisy([options.hg, 'clone', '-r', SWITCH_MOZILLA_BASE_REV] + hgopts + [backup_mozilla_path, mozilla_path], retryMax=options.retries)
def switch_mozilla_repo(): """If the mozilla/ repo matches SWITCH_MOZILLA_REPO_REGEXP then: 1) Backup (unused anymore) checkout of mozilla/. 2a) If SWITCH_MOZILLA_REPO_OLD_REPO_LOCATION exists, move that to mozilla/. 2b) Else clone the backup of mozilla/ up to the SWITCH_MOZILLA_BASE_REV revision and set the pull location to SWITCH_MOZILLA_REPO_REPLACE. It is expected that the normal pull/update functions in this script will update the new mozilla/ repo to the latest version. """ mozilla_path = os.path.join(topsrcdir, 'mozilla') # Do nothing if there is no Mozilla directory. if not os.path.exists(mozilla_path): return import ConfigParser, re config = ConfigParser.ConfigParser() config.read([os.path.join(mozilla_path, '.hg', 'hgrc')]) if not config.has_option('paths', 'default'): # Abort, not to get into a possibly inconsistent state. sys.exit("Error: default path in mozilla/.hg/hgrc is undefined!") # Compile the Mozilla repository regex. moz_old_regex = re.compile(SWITCH_MOZILLA_REPO_REGEXP, re.I) match = moz_old_regex.match(config.get('paths', 'default')) # Do nothing if not pulling from the one we're trying to switch from. if not match: return config.set('paths', 'default', SWITCH_MOZILLA_REPO_REPLACE % match.group(1) ) if config.has_option('paths', 'default-push'): match = moz_old_regex.match(config.get('paths', 'default-push')) # Do not update this property if not pushing to Mozilla trunk. if match: config.set('paths', 'default-push', SWITCH_MOZILLA_REPO_REPLACE % match.group(1) ) hgopts = [] if options.hgopts: hgopts = options.hgopts.split() hgcloneopts = [] if options.hgcloneopts: hgcloneopts = options.hgcloneopts.split() backup_mozilla_path = os.path.join(topsrcdir, SWITCH_MOZILLA_REPO_BACKUP_LOCATION) print "Moving mozilla to " + SWITCH_MOZILLA_REPO_BACKUP_LOCATION + "..." try: os.rename(mozilla_path, backup_mozilla_path) except: # Print the exception without its traceback. sys.excepthook(sys.exc_info()[0], sys.exc_info()[1], None) sys.exit("Error: Mozilla directory renaming failed!") # Does the user have a pre-existing backup repository? old_backup_repository = os.path.join(topsrcdir, SWITCH_MOZILLA_REPO_OLD_REPO_LOCATION) if SWITCH_MOZILLA_REPO_OLD_REPO_LOCATION != "" and \ os.path.exists(old_backup_repository): # Yes, so let's use that print "Moving " + old_backup_repository + " to " + mozilla_path + "..." try: os.rename(old_backup_repository, mozilla_path) except: # Print the exception without its traceback. sys.excepthook(sys.exc_info()[0], sys.exc_info()[1], None) sys.exit("Error: Renaming old backup directory failed! You must recover manually.") # Let's leave the hgrc as it was, so any repo specific config is left # the same. return # Locally clone common repository history. check_call_noisy([options.hg, 'clone', '-r', SWITCH_MOZILLA_BASE_REV] + hgopts + [backup_mozilla_path, mozilla_path]) # Rewrite hgrc for new local mozilla repo based on pre-existing hgrc # but with new values f = open(os.path.join(topsrcdir, 'mozilla', '.hg', 'hgrc'), 'w') try: config.write(f) finally: f.close()
0376e156dff5362923ab01c36e488d21031811d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11044/0376e156dff5362923ab01c36e488d21031811d4/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 67, 8683, 15990, 67, 7422, 13332, 3536, 2047, 326, 27513, 19, 3538, 1885, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 28225, 1508, 30, 404, 13, 11856, 261, 14375, 16828, 13, 13926, 434, 27513, 15865, 576, 69, 13, 971, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 11846, 67, 862, 2419, 67, 15277, 1704, 16, 3635, 716, 358, 27513, 15865, 576, 70, 13, 16289, 3236, 326, 5114, 434, 27513, 19, 731, 358, 326, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 8369, 67, 862, 58, 6350, 471, 444, 326, 6892, 2117, 358, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 21726, 18, 225, 2597, 353, 2665, 716, 326, 2212, 6892, 19, 2725, 4186, 316, 333, 2728, 903, 1089, 326, 394, 27513, 19, 3538, 358, 326, 4891, 1177, 18, 3536, 225, 27513, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 3669, 4816, 1214, 16, 296, 8683, 15990, 6134, 468, 2256, 5083, 309, 1915, 353, 1158, 19058, 10745, 1867, 18, 309, 486, 1140, 18, 803, 18, 1808, 12, 8683, 15990, 67, 803, 4672, 327, 225, 1930, 25076, 16, 283, 642, 273, 25076, 18, 809, 2678, 1435, 642, 18, 896, 3816, 538, 18, 803, 18, 5701, 12, 8683, 15990, 67, 803, 16, 2418, 26981, 2187, 296, 26981, 1310, 6134, 5717, 309, 486, 642, 18, 5332, 67, 3482, 2668, 4481, 2187, 296, 1886, 11, 4672, 468, 14263, 16, 486, 358, 336, 1368, 279, 10016, 27403, 919, 18, 2589, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1620, 67, 8683, 15990, 67, 7422, 13332, 3536, 2047, 326, 27513, 19, 3538, 1885, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 28225, 1508, 30, 404, 13, 11856, 261, 14375, 16828, 13, 13926, 434, 27513, 15865, 576, 69, 13, 971, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 11846, 67, 862, 2419, 67, 15277, 1704, 16, 3635, 716, 358, 27513, 15865, 576, 70, 13, 16289, 3236, 326, 5114, 434, 27513, 19, 731, 358, 326, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 8369, 67, 862, 58, 6350, 471, 444, 326, 6892, 2117, 358, 16392, 25588, 67, 5980, 62, 2627, 2534, 67, 862, 2419, 67, 21726, 18, 225, 2597, 353, 2665, 716, 326, 2 ]
if ENABLE_DEBUG_PRINTS: print "~~~~~~~~~~
def _orient_for_modify(self, end1, end2): from model.Line import Line
c4a8d077f70d55111f7a19ce7efa485e92728f66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/c4a8d077f70d55111f7a19ce7efa485e92728f66/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14766, 67, 1884, 67, 17042, 12, 2890, 16, 679, 21, 16, 679, 22, 4672, 628, 938, 18, 1670, 1930, 5377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14766, 67, 1884, 67, 17042, 12, 2890, 16, 679, 21, 16, 679, 22, 4672, 628, 938, 18, 1670, 1930, 5377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
allow to install multiple versions of the package in parallel."""
allow to install multiple versions of the package in parallel.""", 'shlib-legacy-policy-name-error', """Your shared library package is not named after its SONAME, but it has been added to the list of legacy exceptions. Please do ot rename the package until SONAME changes, and if you have to rename it for another reason, make sure you name it correctly."""
def check(self, pkg): global _policy_legacy_exceptions
935c9162b22bdc1c58d1bc0df35806e5b3d35869 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10341/935c9162b22bdc1c58d1bc0df35806e5b3d35869/LibraryPolicyCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2552, 389, 5086, 67, 17386, 67, 11855, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3475, 4672, 2552, 389, 5086, 67, 17386, 67, 11855, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if string.find(sys.executable, sys.exec_prefix) != -1:
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
def finalize_options (self): from distutils import sysconfig
938a029f5a8ca7da527d1cfb19390ed3262eb72f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/938a029f5a8ca7da527d1cfb19390ed3262eb72f/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 628, 2411, 5471, 1930, 2589, 1425, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12409, 67, 2116, 261, 2890, 4672, 628, 2411, 5471, 1930, 2589, 1425, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_tryorder = ["galeon", "mozilla", "netscape", "kfm", "grail", "links", "lynx", "w3m",]
_tryorder = ["links", "lynx", "w3m"]
def open_new(self, url): self.open(url)
c75fd3de79457d9891801c2dd0c58b144120a306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c75fd3de79457d9891801c2dd0c58b144120a306/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 12, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def makeCallbackFloat(val):
def makeCallbackFloat(self, val):
def makeCallbackFloat(val): pyxpcomcalls.makeCallback(self.callbackID, val)
28bf8cd64231a2659099b37e09fae5d3668d0d2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/28bf8cd64231a2659099b37e09fae5d3668d0d2d/pycallback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2428, 4723, 12, 2890, 16, 1244, 4672, 2395, 23829, 832, 12550, 18, 6540, 2428, 12, 2890, 18, 3394, 734, 16, 1244, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2428, 4723, 12, 2890, 16, 1244, 4672, 2395, 23829, 832, 12550, 18, 6540, 2428, 12, 2890, 18, 3394, 734, 16, 1244, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]