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
(uid, gid, pid) = self.GetContext() tsumufs.cacheManager.access(uid, path, os.W_OK)
context = self.GetContext() tsumufs.cacheManager.access(context['uid'], path, os.W_OK)
def unlink(self, path): ''' Callback to unlink a file on disk.
c3478d05944e6e6bef9ad5c70ada99c0c43c2db1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/c3478d05944e6e6bef9ad5c70ada99c0c43c2db1/fusethread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 589, 4672, 9163, 8444, 358, 8255, 279, 585, 603, 4234, 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, 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, 8255, 12, 2890, 16, 589, 4672, 9163, 8444, 358, 8255, 279, 585, 603, 4234, 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, -100, -100 ]
logging.exception("Failed to stop instance")
logging.exception("Failed to stop instance: %s" % err)
def ShutdownInstance(instance): """Shut an instance down. @note: this functions uses polling with a hardcoded timeout. @type instance: L{objects.Instance} @param instance: the instance object @rtype: boolean @return: whether the startup was successful or not """ hv_name = instance.hypervisor running_instances = GetInstanceList([hv_name]) if instance.name not in running_instances: return True hyper = hypervisor.GetHypervisor(hv_name) try: hyper.StopInstance(instance) except errors.HypervisorError, err: logging.error("Failed to stop instance") return False # test every 10secs for 2min time.sleep(1) for dummy in range(11): if instance.name not in GetInstanceList([hv_name]): break time.sleep(10) else: # the shutdown did not succeed logging.error("shutdown of '%s' unsuccessful, using destroy", instance) try: hyper.StopInstance(instance, force=True) except errors.HypervisorError, err: logging.exception("Failed to stop instance") return False time.sleep(1) if instance.name in GetInstanceList([hv_name]): logging.error("could not shutdown instance '%s' even by destroy", instance.name) return False _RemoveBlockDevLinks(instance.name, instance.disks) return True
920aae9860f2265b572828db04f512bc886c5444 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/920aae9860f2265b572828db04f512bc886c5444/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17640, 1442, 12, 1336, 4672, 3536, 1555, 322, 392, 791, 2588, 18, 225, 632, 7652, 30, 333, 4186, 4692, 13708, 598, 279, 7877, 24808, 2021, 18, 225, 632, 723, 791, 30, 511, 95, 6911, 18, 1442, 97, 632, 891, 791, 30, 326, 791, 733, 632, 86, 723, 30, 1250, 632, 2463, 30, 2856, 326, 11850, 1703, 6873, 578, 486, 225, 3536, 366, 90, 67, 529, 273, 791, 18, 17203, 10227, 3549, 67, 10162, 273, 21337, 682, 3816, 76, 90, 67, 529, 5717, 225, 309, 791, 18, 529, 486, 316, 3549, 67, 10162, 30, 327, 1053, 225, 9512, 273, 9512, 10227, 18, 967, 15996, 10227, 12, 76, 90, 67, 529, 13, 775, 30, 9512, 18, 4947, 1442, 12, 1336, 13, 1335, 1334, 18, 15996, 10227, 668, 16, 393, 30, 2907, 18, 1636, 2932, 2925, 358, 2132, 791, 7923, 327, 1083, 225, 468, 1842, 3614, 1728, 21317, 364, 576, 1154, 225, 813, 18, 19607, 12, 21, 13, 364, 9609, 316, 1048, 12, 2499, 4672, 309, 791, 18, 529, 486, 316, 21337, 682, 3816, 76, 90, 67, 529, 65, 4672, 898, 813, 18, 19607, 12, 2163, 13, 469, 30, 468, 326, 5731, 5061, 486, 12897, 2907, 18, 1636, 2932, 15132, 434, 1995, 87, 11, 29411, 16, 1450, 5546, 3113, 791, 13, 225, 775, 30, 9512, 18, 4947, 1442, 12, 1336, 16, 2944, 33, 5510, 13, 1335, 1334, 18, 15996, 10227, 668, 16, 393, 30, 2907, 18, 4064, 2932, 2925, 358, 2132, 791, 30, 738, 87, 6, 738, 393, 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, 17640, 1442, 12, 1336, 4672, 3536, 1555, 322, 392, 791, 2588, 18, 225, 632, 7652, 30, 333, 4186, 4692, 13708, 598, 279, 7877, 24808, 2021, 18, 225, 632, 723, 791, 30, 511, 95, 6911, 18, 1442, 97, 632, 891, 791, 30, 326, 791, 733, 632, 86, 723, 30, 1250, 632, 2463, 30, 2856, 326, 11850, 1703, 6873, 578, 486, 225, 3536, 366, 90, 67, 529, 273, 791, 18, 17203, 10227, 3549, 67, 10162, 273, 21337, 682, 3816, 76, 90, 67, 529, 5717, 225, 309, 791, 18, 529, 486, 316, 3549, 67, 10162, 30, 327, 1053, 225, 9512, 273, 9512, 10227, 18, 967, 15996, 10227, 12, 76, 90, 67, 529, 13, 775, 30, 9512, 18, 4947, 1442, 12, 1336, 2 ]
for line in apply(traceback.format_exception, err): for l in string.split(line,"\n")[:-1]: self.stream.writeln("%s" % l)
self.stream.writeln("%s" % err)
def printErrorList(self, flavour, errors): for test, err in errors: self.stream.writeln(self.separator1) self.stream.writeln("%s: %s" % (flavour,self.getDescription(test))) self.stream.writeln(self.separator2) for line in apply(traceback.format_exception, err): for l in string.split(line,"\n")[:-1]: self.stream.writeln("%s" % l)
7b0657027f04ac0367908ee0474f6d762366e4bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7b0657027f04ac0367908ee0474f6d762366e4bb/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 668, 682, 12, 2890, 16, 31227, 477, 16, 1334, 4672, 364, 1842, 16, 393, 316, 1334, 30, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 21, 13, 365, 18, 3256, 18, 5363, 292, 82, 27188, 87, 30, 738, 87, 6, 738, 261, 2242, 842, 477, 16, 2890, 18, 588, 3291, 12, 3813, 20349, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 22, 13, 364, 980, 316, 2230, 12, 21696, 18, 2139, 67, 4064, 16, 393, 4672, 364, 328, 316, 533, 18, 4939, 12, 1369, 10837, 64, 82, 7923, 10531, 17, 21, 14542, 365, 18, 3256, 18, 5363, 292, 82, 27188, 87, 6, 738, 328, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 668, 682, 12, 2890, 16, 31227, 477, 16, 1334, 4672, 364, 1842, 16, 393, 316, 1334, 30, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 21, 13, 365, 18, 3256, 18, 5363, 292, 82, 27188, 87, 30, 738, 87, 6, 738, 261, 2242, 842, 477, 16, 2890, 18, 588, 3291, 12, 3813, 20349, 365, 18, 3256, 18, 5363, 292, 82, 12, 2890, 18, 11287, 22, 13, 364, 980, 316, 2230, 12, 21696, 18, 2139, 67, 4064, 16, 393, 4672, 364, 328, 316, 533, 18, 4939, 12, 1369, 10837, 64, 82, 7923, 10531, 17, 21, 14542, 365, 18, 3256, 18, 5363, 292, 82, 27188, 87, 6, 738, 328, 13, 2, -100, -100, -100, -100, -100, -100 ]
''' Determine the context of this page from the URL:
""" Determine the context of this page from the URL:
def determine_context(self, dre=re.compile(r'([^\d]+)(\d+)')): ''' Determine the context of this page from the URL:
f11907437836b035b89a935141d5777def9d1278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/f11907437836b035b89a935141d5777def9d1278/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4199, 67, 2472, 12, 2890, 16, 302, 266, 33, 266, 18, 11100, 12, 86, 11, 19042, 72, 7941, 4713, 72, 29169, 3719, 30, 9163, 10229, 326, 819, 434, 333, 1363, 628, 326, 1976, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4199, 67, 2472, 12, 2890, 16, 302, 266, 33, 266, 18, 11100, 12, 86, 11, 19042, 72, 7941, 4713, 72, 29169, 3719, 30, 9163, 10229, 326, 819, 434, 333, 1363, 628, 326, 1976, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 indiData and indiData[0] == 2:
if indiData and indiData[0] == self.D_ENTROPY:
def cdata(self, data=None): self.closeContext() self.indiData = [] self.attrList.clear() for le in self.customLineEdits: le.clear() self.indiDiscretization = 0
9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a3bb5d5397a9a71bb0ca6aaa8a1203ab70bcd43/OWInteractiveDiscretization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20712, 12, 2890, 16, 501, 33, 7036, 4672, 365, 18, 4412, 1042, 1435, 225, 365, 18, 728, 77, 751, 273, 5378, 365, 18, 1747, 682, 18, 8507, 1435, 364, 884, 316, 365, 18, 3662, 1670, 2671, 1282, 30, 884, 18, 8507, 1435, 365, 18, 728, 77, 28912, 1349, 1588, 273, 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,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, 1435, 364, 884, 316, 365, 18, 3662, 1670, 2671, 1282, 30, 884, 18, 8507, 1435, 365, 18, 728, 77, 28912, 1349, 1588, 273, 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 ]
if tile.element[:2] not in ('WI', 'DR') and tile.element[1] < '8':
if tile.element[:2] not in ('WI', 'DR') and tile.element[-1] < '8':
def __meldVariants(self, tile): """returns a list of possible variants based on the dropped tile. The Variants are scoring strings. Do not use the real tiles because we change their properties""" lowerName = tile.scoringStr().lower() upperName = lowerName[0].upper() + lowerName[1] if self.lowerHalf: scName = upperName else: scName = lowerName variants = [scName] baseTiles = self.selector.tilesByElement(tile.element)[0].count if baseTiles >= 2: variants.append(scName * 2) if baseTiles >= 3: variants.append(scName * 3) if baseTiles == 4: if self.lowerHalf: variants.append(lowerName + upperName * 2 + lowerName) else: variants.append(lowerName * 4) variants.append(lowerName * 3 + upperName) if tile.element[:2] not in ('WI', 'DR') and tile.element[1] < '8': chow2 = self.chiNext(tile.element, 2) chow3 = self.chiNext(tile.element, 3) chow2 = self.selector.tilesByElement(chow2)[0] chow3 = self.selector.tilesByElement(chow3)[0] if chow2.count and chow3.count: baseChar = scName[0] baseValue = ord(scName[1]) varStr = '%s%s%s%s%s' % (scName, baseChar, chr(baseValue+1), baseChar, chr(baseValue+2)) variants.append(varStr) return [Meld(x) for x in variants]
74c31959fb14264c2ed3be5736f860b7fe52df3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/74c31959fb14264c2ed3be5736f860b7fe52df3d/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 2863, 12568, 2724, 732, 2549, 3675, 1790, 8395, 2612, 461, 273, 4769, 18, 1017, 6053, 1585, 7675, 8167, 1435, 3854, 461, 273, 2612, 461, 63, 20, 8009, 5797, 1435, 397, 2612, 461, 63, 21, 65, 309, 365, 18, 8167, 16168, 30, 888, 461, 273, 3854, 461, 469, 30, 888, 461, 273, 2612, 461, 12935, 273, 306, 1017, 461, 65, 1026, 27669, 273, 365, 18, 9663, 18, 28366, 858, 1046, 12, 15368, 18, 2956, 25146, 20, 8009, 1883, 309, 1026, 27669, 1545, 576, 30, 12935, 18, 6923, 12, 1017, 461, 380, 576, 13, 309, 1026, 27669, 1545, 890, 30, 12935, 18, 6923, 12, 1017, 461, 380, 890, 13, 309, 1026, 27669, 422, 1059, 30, 309, 365, 18, 8167, 16168, 30, 12935, 18, 6923, 12, 8167, 461, 397, 3854, 461, 380, 576, 397, 2612, 461, 13, 469, 30, 12935, 18, 6923, 12, 8167, 461, 380, 1059, 13, 12935, 18, 6923, 12, 8167, 461, 380, 890, 397, 3854, 461, 13, 309, 4769, 18, 2956, 10531, 22, 65, 486, 316, 7707, 23109, 2187, 296, 6331, 6134, 471, 4769, 18, 2956, 18919, 21, 65, 411, 296, 28, 4278, 462, 543, 22, 273, 365, 18, 24010, 2134, 12, 15368, 18, 2956, 16, 576, 13, 462, 543, 23, 273, 365, 18, 24010, 2134, 12, 15368, 18, 2956, 16, 890, 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, 1001, 81, 488, 21165, 12, 2890, 16, 4769, 4672, 3536, 6154, 279, 666, 434, 3323, 12935, 2511, 603, 326, 14611, 4769, 18, 1021, 11487, 4388, 854, 22958, 2064, 18, 2256, 486, 999, 326, 2863, 12568, 2724, 732, 2549, 3675, 1790, 8395, 2612, 461, 273, 4769, 18, 1017, 6053, 1585, 7675, 8167, 1435, 3854, 461, 273, 2612, 461, 63, 20, 8009, 5797, 1435, 397, 2612, 461, 63, 21, 65, 309, 365, 18, 8167, 16168, 30, 888, 461, 273, 3854, 461, 469, 30, 888, 461, 273, 2612, 461, 12935, 273, 306, 1017, 461, 65, 1026, 27669, 273, 365, 18, 9663, 18, 28366, 858, 1046, 12, 15368, 18, 2956, 25146, 20, 8009, 1883, 309, 1026, 27669, 1545, 576, 30, 12935, 18, 2 ]
self._progress = (block_count * block_size) / total_size * 100
self._progress = float(block_count * block_size) / total_size * 100 if self.dl.result == False: self._status = self.ERROR return if float(block_count * block_size) >= total_size: self._status = self.COMPLETE
def _set_status(self, block_count, block_size, total_size): self._progress = (block_count * block_size) / total_size * 100
be7d935a54e3bab81897512e96e17839ed102700 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6425/be7d935a54e3bab81897512e96e17839ed102700/JDownload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2327, 12, 2890, 16, 1203, 67, 1883, 16, 1203, 67, 1467, 16, 2078, 67, 1467, 4672, 365, 6315, 8298, 273, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 342, 2078, 67, 1467, 380, 2130, 309, 365, 18, 5761, 18, 2088, 422, 1083, 30, 365, 6315, 2327, 273, 365, 18, 3589, 327, 225, 309, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 1545, 2078, 67, 1467, 30, 365, 6315, 2327, 273, 365, 18, 15795, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 542, 67, 2327, 12, 2890, 16, 1203, 67, 1883, 16, 1203, 67, 1467, 16, 2078, 67, 1467, 4672, 365, 6315, 8298, 273, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 342, 2078, 67, 1467, 380, 2130, 309, 365, 18, 5761, 18, 2088, 422, 1083, 30, 365, 6315, 2327, 273, 365, 18, 3589, 327, 225, 309, 1431, 12, 2629, 67, 1883, 380, 1203, 67, 1467, 13, 1545, 2078, 67, 1467, 30, 365, 6315, 2327, 273, 365, 18, 15795, 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 ]
random = RandomStreams(234)
random = RandomStreams(utt.fetch_seed())
def test_multinomial(self): """Test that RandomStreams.multinomial generates the same results as numpy""" # Check over two calls to see if the random state is correctly updated. random = RandomStreams(234) fn = function([], random.multinomial((4,4), 1, [0.1]*10), updates=random.updates())
767a7312c152b7ed8872e5185c2457d0aa95a8d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/767a7312c152b7ed8872e5185c2457d0aa95a8d0/test_shared_randomstreams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5421, 267, 11496, 12, 2890, 4672, 3536, 4709, 716, 8072, 10301, 18, 5421, 267, 11496, 6026, 326, 1967, 1686, 487, 3972, 8395, 468, 2073, 1879, 2795, 4097, 358, 2621, 309, 326, 2744, 919, 353, 8783, 3526, 18, 2744, 273, 8072, 10301, 12, 322, 88, 18, 5754, 67, 12407, 10756, 2295, 273, 445, 3816, 6487, 2744, 18, 5421, 267, 11496, 12443, 24, 16, 24, 3631, 404, 16, 306, 20, 18, 21, 5772, 2163, 3631, 4533, 33, 9188, 18, 14703, 10756, 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, 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, 30, 1652, 1842, 67, 5421, 267, 11496, 12, 2890, 4672, 3536, 4709, 716, 8072, 10301, 18, 5421, 267, 11496, 6026, 326, 1967, 1686, 487, 3972, 8395, 468, 2073, 1879, 2795, 4097, 358, 2621, 309, 326, 2744, 919, 353, 8783, 3526, 18, 2744, 273, 8072, 10301, 12, 322, 88, 18, 5754, 67, 12407, 10756, 2295, 273, 445, 3816, 6487, 2744, 18, 5421, 267, 11496, 12443, 24, 16, 24, 3631, 404, 16, 306, 20, 18, 21, 5772, 2163, 3631, 4533, 33, 9188, 18, 14703, 10756, 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 ]
L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
L.append( 'Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename))
def encode_multipart_formdata(self, fields, files): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF = '\r\n' L = [] for (key, value) in fields: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"' % key) L.append('') L.append(value) for (key, filename, value) in files: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"; filename="%s"' % (key, filename)) L.append('Content-Type: %s' % self.get_content_type(filename)) L.append('') L.append(value) L.append('--' + BOUNDARY + '--') L.append('') body = CRLF.join(L) content_type = 'multipart/form-data; boundary=%s' % BOUNDARY return content_type, body
9fb477f51590bae04c7375cb3b5f4e60a3cffe02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/9fb477f51590bae04c7375cb3b5f4e60a3cffe02/interwiki_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 67, 16404, 67, 687, 892, 12, 2890, 16, 1466, 16, 1390, 4672, 3536, 1466, 353, 279, 3102, 434, 261, 529, 16, 460, 13, 2186, 364, 6736, 646, 1466, 18, 1390, 353, 279, 3102, 434, 261, 529, 16, 1544, 16, 460, 13, 2186, 364, 501, 358, 506, 9140, 487, 1390, 2000, 261, 1745, 67, 723, 16, 1417, 13, 5695, 364, 15851, 6673, 18, 3693, 791, 3536, 9784, 5240, 6043, 273, 296, 15392, 1315, 2520, 67, 2520, 67, 88, 5256, 67, 16818, 50, 2414, 9590, 67, 9227, 21791, 273, 2337, 86, 64, 82, 11, 511, 273, 5378, 364, 261, 856, 16, 460, 13, 316, 1466, 30, 511, 18, 6923, 2668, 413, 11, 397, 9784, 5240, 6043, 13, 511, 18, 6923, 2668, 1350, 17, 15087, 30, 646, 17, 892, 31, 508, 11613, 87, 5187, 738, 498, 13, 511, 18, 6923, 2668, 6134, 511, 18, 6923, 12, 1132, 13, 364, 261, 856, 16, 1544, 16, 460, 13, 316, 1390, 30, 511, 18, 6923, 2668, 413, 11, 397, 9784, 5240, 6043, 13, 511, 18, 6923, 12, 296, 1350, 17, 15087, 30, 646, 17, 892, 31, 508, 11613, 87, 14432, 1544, 11613, 87, 5187, 738, 261, 856, 16, 1544, 3719, 511, 18, 6923, 2668, 1350, 17, 559, 30, 738, 87, 11, 738, 365, 18, 588, 67, 1745, 67, 723, 12, 3459, 3719, 511, 18, 6923, 2668, 6134, 511, 18, 6923, 12, 1132, 13, 511, 18, 6923, 2668, 413, 11, 397, 9784, 5240, 6043, 397, 3534, 6134, 511, 18, 6923, 2668, 6134, 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, 2017, 67, 16404, 67, 687, 892, 12, 2890, 16, 1466, 16, 1390, 4672, 3536, 1466, 353, 279, 3102, 434, 261, 529, 16, 460, 13, 2186, 364, 6736, 646, 1466, 18, 1390, 353, 279, 3102, 434, 261, 529, 16, 1544, 16, 460, 13, 2186, 364, 501, 358, 506, 9140, 487, 1390, 2000, 261, 1745, 67, 723, 16, 1417, 13, 5695, 364, 15851, 6673, 18, 3693, 791, 3536, 9784, 5240, 6043, 273, 296, 15392, 1315, 2520, 67, 2520, 67, 88, 5256, 67, 16818, 50, 2414, 9590, 67, 9227, 21791, 273, 2337, 86, 64, 82, 11, 511, 273, 5378, 364, 261, 856, 16, 460, 13, 316, 1466, 30, 511, 18, 6923, 2668, 413, 11, 397, 9784, 5240, 6043, 13, 511, 18, 2 ]
print
def dump(self, header): game_count = float(self.count)
cfd5fe253f886f0b8d400727543ebbaf36742094 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/cfd5fe253f886f0b8d400727543ebbaf36742094/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4657, 12, 2890, 16, 1446, 4672, 7920, 67, 1883, 273, 1431, 12, 2890, 18, 1883, 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 ]
cmd = [ options.runpython[mode], 'Chandler.py', '--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ]
cmd = options.runchandler[mode][:] cmd += ['--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ]
def runRecordedScripts(options): """ Run recorded script tests >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> options.modes = ['release', 'debug'] >>> runRecordedScripts(options) /.../RunPython... Chandler.py --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --recordedTest=... - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ... """ failed = False testlist = [] for item in glob.glob(os.path.join('tools', 'cats', 'recorded_scripts', '*.py')): testlist.append(os.path.split(item)[1][:-3]) for mode in options.modes: for test in testlist: cmd = [ options.runpython[mode], 'Chandler.py', '--create', '--catch=tests', '--profileDir=%s' % options.profileDir, '--parcelPath=%s' % options.parcelPath, '--recordedTest=%s' % test, ] if options.params: cmd += [ options.params ] if options.verbose: log(' '.join(cmd)) if options.dryrun: result = 0 else: result = build_lib.runCommand(cmd, timeout=1200) if result != 0: log('***Error exit code=%d' % result) failed = True failedTests.append('recordedTest %s' % test) if not options.noStop: break log('- + ' * 15) return failed
134ce2a6ff32b988db479ade6fcf70a08aac23f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/134ce2a6ff32b988db479ade6fcf70a08aac23f5/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 426, 3850, 785, 15041, 12, 2116, 4672, 3536, 1939, 16421, 2728, 7434, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 702, 18, 19282, 273, 10228, 9340, 2187, 296, 4148, 3546, 4080, 1086, 426, 3850, 785, 15041, 12, 2116, 13, 342, 2777, 19, 1997, 15774, 2777, 1680, 464, 749, 18, 2074, 1493, 2640, 1493, 14683, 33, 16341, 1493, 5040, 1621, 33, 3813, 67, 5040, 1493, 1065, 2183, 743, 33, 6642, 19, 24750, 19, 751, 2697, 1493, 266, 3850, 785, 4709, 33, 2777, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 1372, 3536, 2535, 273, 1083, 1842, 1098, 273, 5378, 225, 364, 761, 316, 4715, 18, 10581, 12, 538, 18, 803, 18, 5701, 2668, 6642, 2187, 296, 24750, 2187, 296, 266, 3850, 785, 67, 12827, 2187, 19962, 2074, 26112, 30, 1842, 1098, 18, 6923, 12, 538, 18, 803, 18, 4939, 12, 1726, 25146, 21, 6362, 30, 17, 23, 5717, 282, 364, 1965, 316, 702, 18, 19282, 30, 364, 1842, 316, 1842, 1098, 30, 1797, 225, 273, 702, 18, 2681, 343, 464, 749, 63, 3188, 6362, 26894, 1797, 1011, 10228, 413, 2640, 2187, 3534, 14683, 33, 16341, 2187, 3534, 5040, 1621, 5095, 87, 11, 738, 702, 18, 5040, 1621, 16, 3534, 1065, 2183, 743, 5095, 87, 11, 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, 1086, 426, 3850, 785, 15041, 12, 2116, 4672, 3536, 1939, 16421, 2728, 7434, 225, 4080, 702, 273, 1109, 1320, 1435, 4080, 866, 1320, 12, 2116, 13, 4080, 702, 18, 25011, 2681, 273, 1053, 4080, 702, 18, 11369, 273, 1053, 4080, 702, 18, 19282, 273, 10228, 9340, 2187, 296, 4148, 3546, 4080, 1086, 426, 3850, 785, 15041, 12, 2116, 13, 342, 2777, 19, 1997, 15774, 2777, 1680, 464, 749, 18, 2074, 1493, 2640, 1493, 14683, 33, 16341, 1493, 5040, 1621, 33, 3813, 67, 5040, 1493, 1065, 2183, 743, 33, 6642, 19, 24750, 19, 751, 2697, 1493, 266, 3850, 785, 4709, 33, 2777, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 397, 300, 2 ]
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.img_in_list_random, "ss")
self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.goto_random_image, "ss")
def img_in_list_last(self, action): if self.slideshow_mode == True and action != "ss": gobject.source_remove(self.timer_delay) if len(self.image_list) > 1 and self.curr_img_in_list != len(self.image_list)-1: try: gobject.source_remove(self.preload_when_idle) gobject.source_remove(self.preload_when_idle2) except: pass self.randomlist = [] self.curr_img_in_list = len(self.image_list)-1 self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) gtk.main_iteration() try: self.load_new_image(False, False, True) except: self.image_load_failed(True) self.set_go_navigation_sensitivities(False) if self.slideshow_mode == True: if self.curr_slideshow_random == True: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.img_in_list_random, "ss") else: self.timer_delay = gobject.timeout_add(self.delayoptions[self.curr_slideshow_delay]*1000, self.img_in_list_next, "ss") self.preloadimg_next_pixbuf_original = None self.preloadimg_prev_pixbuf_original = None self.preload_when_idle = gobject.idle_add(self.preload_next_image, False) self.preload_when_idle2 = gobject.idle_add(self.preload_prev_image, False)
80bd8b120d791a7c2ba16ac790e82ce97ab073e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/80bd8b120d791a7c2ba16ac790e82ce97ab073e3/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 12542, 67, 10790, 13, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 471, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 480, 562, 12, 2890, 18, 2730, 67, 1098, 24950, 21, 30, 775, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 13, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 22, 13, 1335, 30, 1342, 365, 18, 9188, 1098, 273, 5378, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 273, 562, 12, 2890, 18, 2730, 67, 1098, 24950, 21, 365, 18, 3427, 67, 9216, 12, 4521, 79, 18, 75, 2883, 18, 6688, 12, 4521, 79, 18, 75, 2883, 18, 59, 5858, 3719, 22718, 18, 5254, 67, 16108, 1435, 775, 30, 365, 18, 945, 67, 2704, 67, 2730, 12, 8381, 16, 1083, 16, 1053, 13, 1335, 30, 365, 18, 2730, 67, 945, 67, 7307, 12, 5510, 13, 365, 18, 542, 67, 3240, 67, 19537, 67, 87, 773, 305, 427, 1961, 12, 8381, 13, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 30, 309, 365, 18, 17016, 67, 2069, 4369, 13606, 67, 9188, 422, 1053, 30, 365, 18, 12542, 67, 10790, 273, 314, 1612, 18, 4538, 67, 1289, 12, 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, 3774, 67, 267, 67, 1098, 67, 2722, 12, 2890, 16, 1301, 4672, 309, 365, 18, 2069, 4369, 13606, 67, 3188, 422, 1053, 471, 1301, 480, 315, 1049, 6877, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 12542, 67, 10790, 13, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 471, 365, 18, 17016, 67, 6081, 67, 267, 67, 1098, 480, 562, 12, 2890, 18, 2730, 67, 1098, 24950, 21, 30, 775, 30, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 13, 314, 1612, 18, 3168, 67, 4479, 12, 2890, 18, 1484, 945, 67, 13723, 67, 20390, 22, 13, 1335, 30, 1342, 365, 18, 9188, 1098, 273, 5378, 365, 2 ]
k = 1
k = self._k
def gen(self,a0,a1,d): """ """ x, y = ZZ(a0), ZZ(a1) k = 1 yield x while True: k = k+1 x, y = y, k*y+(k-d)*x yield x
69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 12, 2890, 16, 69, 20, 16, 69, 21, 16, 72, 4672, 3536, 225, 3536, 619, 16, 677, 273, 2285, 62, 12, 69, 20, 3631, 2285, 62, 12, 69, 21, 13, 417, 273, 365, 6315, 79, 2824, 619, 1323, 1053, 30, 417, 273, 417, 15, 21, 619, 16, 677, 273, 677, 16, 417, 14, 93, 15, 12, 79, 17, 72, 17653, 92, 2824, 619, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 12, 2890, 16, 69, 20, 16, 69, 21, 16, 72, 4672, 3536, 225, 3536, 619, 16, 677, 273, 2285, 62, 12, 69, 20, 3631, 2285, 62, 12, 69, 21, 13, 417, 273, 365, 6315, 79, 2824, 619, 1323, 1053, 30, 417, 273, 417, 15, 21, 619, 16, 677, 273, 677, 16, 417, 14, 93, 15, 12, 79, 17, 72, 17653, 92, 2824, 619, 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 ]
"""Logs given `list's` length and content with given `level`
"""Logs the length and contents of the `list` using given `level`.
def log_list(self, list_, level='INFO'): """Logs given `list's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(list_) == 0: print 'List is empty' elif len(list_) == 1: print "List has one item '%s'" % (list_[0]) else: print "List length is '%s'" % (len(list_)) for i in range(0, len(list_)): print '%s: %s' % (i, list_[i])
de39b6e29004a5333c4bba068a24007a666cf2eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/de39b6e29004a5333c4bba068a24007a666cf2eb/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 1098, 12, 2890, 16, 666, 67, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 769, 471, 2939, 434, 326, 1375, 1098, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 12734, 16, 6369, 16, 9286, 261, 1886, 3631, 471, 20440, 18, 225, 657, 648, 1846, 2545, 1338, 613, 326, 769, 16, 999, 4932, 1375, 967, 11311, 68, 628, 27376, 382, 5313, 18, 3536, 1172, 14609, 9, 87, 14, 296, 738, 261, 67, 5662, 67, 1330, 67, 2815, 12, 2815, 13, 3631, 309, 562, 12, 1098, 67, 13, 422, 374, 30, 1172, 296, 682, 353, 1008, 11, 1327, 562, 12, 1098, 67, 13, 422, 404, 30, 1172, 315, 682, 711, 1245, 761, 1995, 87, 4970, 738, 261, 1098, 67, 63, 20, 5717, 469, 30, 1172, 315, 682, 769, 353, 1995, 87, 4970, 738, 261, 1897, 12, 1098, 67, 3719, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 1098, 67, 3719, 30, 1172, 1995, 87, 30, 738, 87, 11, 738, 261, 77, 16, 666, 67, 63, 77, 5717, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 1098, 12, 2890, 16, 666, 67, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 769, 471, 2939, 434, 326, 1375, 1098, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 12734, 16, 6369, 16, 9286, 261, 1886, 3631, 471, 20440, 18, 225, 657, 648, 1846, 2545, 1338, 613, 326, 769, 16, 999, 4932, 1375, 967, 11311, 68, 628, 27376, 382, 5313, 18, 3536, 1172, 14609, 9, 87, 14, 296, 738, 261, 67, 5662, 67, 1330, 67, 2815, 12, 2815, 13, 3631, 309, 562, 12, 1098, 67, 13, 422, 374, 30, 1172, 296, 682, 353, 1008, 11, 1327, 562, 12, 1098, 67, 13, 422, 404, 30, 1172, 315, 682, 711, 1245, 761, 1995, 87, 4970, 2 ]
if entry.doc and entry.doc[1]: print '
if entry.doc and entry.doc[1]: print '
print '#\tdef ' + methName + '(self' + build.BuildCallList(fdesc, entry.names, "defaultNamedOptArg", "defaultNamedNotOptArg","defaultUnnamedArg") + '):'
a4eeb81efbe95eb04992894dc9da01f6979a7bdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/a4eeb81efbe95eb04992894dc9da01f6979a7bdc/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 2946, 64, 88, 536, 296, 397, 7917, 461, 397, 7747, 2890, 11, 397, 1361, 18, 3116, 1477, 682, 12, 74, 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, 1248, 6179, 4117, 15937, 1886, 984, 13188, 4117, 7923, 397, 8624, 2497, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 2946, 64, 88, 536, 296, 397, 7917, 461, 397, 7747, 2890, 11, 397, 1361, 18, 3116, 1477, 682, 12, 74, 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, 1248, 6179, 4117, 15937, 1886, 984, 13188, 4117, 7923, 397, 8624, 2497, 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 ]
"""
"""
def fl_create_glcanvas(type, x, y, w, h, label): """ fl_create_glcanvas(type, x, y, w, h, label) -> object """ retval = _fl_create_glcanvas(type, x, y, w, h, label) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 4672, 3536, 1183, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 317, 733, 3536, 225, 5221, 273, 389, 2242, 67, 2640, 67, 7043, 15424, 12, 723, 16, 619, 16, 677, 16, 341, 16, 366, 16, 1433, 13, 327, 5221, 282, 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 ]
js += " $('
js += " $('
def injectScript(self): """ Returns a string of script to inject in to the page """
952b62eb135d8d38d7313d638f328c25dadafebb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/952b62eb135d8d38d7313d638f328c25dadafebb/BrowserMediaAnimatedBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4590, 3651, 12, 2890, 4672, 3536, 2860, 279, 533, 434, 2728, 358, 4590, 316, 358, 326, 1363, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 3536, 2860, 279, 533, 434, 2728, 358, 4590, 316, 358, 326, 1363, 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, -100, -100, -100, -100, -100 ]
def unpack(self, archive, output=None):
def unpack(self, archive, output=None, package=None):
def unpack(self, archive, output=None): return None
b8bc1787f4d2ad5bafcd19ae7aee7c0bf279e0f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b8bc1787f4d2ad5bafcd19ae7aee7c0bf279e0f5/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 12, 2890, 16, 5052, 16, 876, 33, 7036, 16, 2181, 33, 7036, 4672, 327, 599, 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, 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 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6167, 12, 2890, 16, 5052, 16, 876, 33, 7036, 16, 2181, 33, 7036, 4672, 327, 599, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if key == 'Mythical'
if key == 'Mythical':
def summarize(self): charlevel = int(self.CharLevel.text()) tot = {} tot['Cost'] = 0 tot['Price'] = 0 tot['Utility'] = 0.0 tot['Stats'] = {} tot['Resists'] = {} tot['Skills'] = {} tot['Focus'] = {} tot['OtherBonuses'] = {} tot['PvEBonuses'] = {} for effect in DropLists['All']['Stat'] + ('AF', '% Power Pool'): tot['Stats'][effect] = {} tot['Stats'][effect]['TotalBonus'] = 0 tot['Stats'][effect]['Bonus'] = 0 tot['Stats'][effect]['TotalCapBonus'] = 0 tot['Stats'][effect]['CapBonus'] = 0 if HighCapBonusList.has_key(effect): capcalc = HighCapBonusList[effect] capcapcalc = HighCapBonusList[effect + ' Cap'] else: capcalc = HighCapBonusList['Stat'] capcapcalc = HighCapBonusList['Stat Cap'] tot['Stats'][effect]['BaseCap'] \ = int(charlevel * capcalc[0]) + capcalc[1] tot['Stats'][effect]['BaseCapToCapBonus'] \ = int(charlevel * capcapcalc[0]) + capcapcalc[1] for effect in DropLists['All']['Resist']: tot['Resists'][effect] = {} tot['Resists'][effect]['TotalBonus'] = 0 tot['Resists'][effect]['Bonus'] = 0 race = str(self.CharRace.currentText()) if Races['All'][race]['Resists'].has_key(effect): tot['Resists'][effect]['RacialBonus'] \ = Races['All'][race]['Resists'][effect] capcalc = HighCapBonusList['Resist'] tot['Resists'][effect]['BaseCap'] \ = int(charlevel * capcalc[0]) + capcalc[1] for key, item in self.itemattrlist.iteritems(): tot['Cost'] += item.cost() tot['Price'] += item.price(self.pricingInfo) if not item.Equipped == '1': continue tot['Utility'] += item.utility() for i in range(0, item.slotCount()): gemtype = item.slot(i).type() effect = item.slot(i).effect() amount = int('0'+re.sub('[^\d]', '', item.slot(i).amount())) if gemtype == 'Skill': effects = [effect,] if effect[0:4] == 'All ': effects.extend(AllBonusList[self.realm] \ [self.charclass][effect]) for effect in effects: if tot['Skills'].has_key(effect): amts = tot['Skills'][effect] amts['TotalBonus'] += amount else: tot['Skills'][effect] = {} amts = tot['Skills'][effect] amts['TotalBonus'] = amount capcalc = HighCapBonusList['Skill'] amts['BaseCap'] = int(charlevel * capcalc[0]) \ + capcalc[1] amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) elif gemtype == 'Focus': effects = [effect,] if effect[0:4] == 'All ': effects.extend(AllBonusList[self.realm] \ [self.charclass][effect]) for effect in effects: if effect == '': continue if tot['Focus'].has_key(effect): amts = tot['Focus'][effect] else: tot['Focus'][effect] = {} amts = tot['Focus'][effect] capcalc = HighCapBonusList['Focus'] amts['BaseCap'] = int(charlevel * capcalc[0]) \ + capcalc[1] amts['TotalBonus'] = amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) elif gemtype == 'Resist': amts = tot['Resists'][effect] amts['TotalBonus'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) elif gemtype == 'Resist Cap' and key == 'Mythical': amts = tot['Resists'][effect] amts['BaseCap'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) elif gemtype == 'Stat': effects = [effect,] if effect == 'Acuity': effects.extend(AllBonusList[self.realm] \ [self.charclass][effect]) for effect in effects: amts = tot['Stats'][effect] amts['TotalBonus'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap'] + amts['CapBonus']) elif gemtype == 'Cap Increase': effects = [effect,] # Power cap affects both Power and % Power Pool if effect == 'Power': effects.append('% Power Pool') elif effect == 'Acuity': effects.extend(AllBonusList[self.realm] \ [self.charclass][effect]) for effect in effects: amts = tot['Stats'][effect] amts['TotalCapBonus'] += amount if key == 'Mythical' amts['BaseCapToCapBonus'] += amount amts['CapBonus'] = min(amts['TotalCapBonus'], amts['BaseCapToCapBonus']) amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap'] + amts['CapBonus']) elif gemtype == 'Other Bonus': if effect in ('AF', '% Power Pool',): amts = tot['Stats'][effect] amts['TotalBonus'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap'] + amts['CapBonus']) elif tot['OtherBonuses'].has_key(effect): amts = tot['OtherBonuses'][effect] amts['TotalBonus'] += amount if key == 'Mythical' amts['BaseCap'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) else: tot['OtherBonuses'][effect] = {} amts = tot['OtherBonuses'][effect] if HighCapBonusList.has_key(effect): capcalc = HighCapBonusList[effect] else: capcalc = HighCapBonusList[gemtype] amts['BaseCap'] = int(charlevel * capcalc[0]) \ + capcalc[1] amts['TotalBonus'] = amount if key == 'Mythical' amts['BaseCap'] += amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) elif gemtype == 'PvE Bonus': if tot['PvEBonuses'].has_key(effect): amts = tot['PvEBonuses'][effect] amts['TotalBonus'] += amount else: tot['PvEBonuses'][effect] = {} amts = tot['PvEBonuses'][effect] if HighCapBonusList.has_key(effect): capcalc = HighCapBonusList[effect] else: capcalc = HighCapBonusList[gemtype] amts['BaseCap'] = int(charlevel * capcalc[0]) \ + capcalc[1] amts['TotalBonus'] = amount amts['Bonus'] = min(amts['TotalBonus'], amts['BaseCap']) tot['Price'] += self.pricingInfo.get('PPOrder', 0) * 10000 return tot
fb7e2dea77ecbd907b4a380dbbfcb41d751f5149 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/fb7e2dea77ecbd907b4a380dbbfcb41d751f5149/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28712, 12, 2890, 4672, 1149, 2815, 273, 509, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 9997, 273, 2618, 9997, 3292, 8018, 3546, 273, 374, 9997, 3292, 5147, 3546, 273, 374, 9997, 3292, 6497, 3546, 273, 374, 18, 20, 9997, 3292, 4195, 3546, 273, 2618, 9997, 3292, 607, 1486, 3546, 273, 2618, 9997, 3292, 20057, 3546, 273, 2618, 9997, 3292, 9233, 3546, 273, 2618, 9997, 3292, 8290, 38, 265, 6117, 3546, 273, 2618, 9997, 3292, 52, 90, 29258, 265, 6117, 3546, 273, 2618, 364, 5426, 316, 10895, 7432, 3292, 1595, 21712, 5000, 3546, 397, 7707, 6799, 2187, 1995, 23783, 8828, 11, 4672, 9997, 3292, 4195, 3546, 63, 13867, 65, 273, 2618, 9997, 3292, 4195, 3546, 63, 13867, 23962, 5269, 38, 22889, 3546, 273, 374, 9997, 3292, 4195, 3546, 63, 13867, 23962, 38, 22889, 3546, 273, 374, 9997, 3292, 4195, 3546, 63, 13867, 23962, 5269, 4664, 38, 22889, 3546, 273, 374, 9997, 3292, 4195, 3546, 63, 13867, 23962, 4664, 38, 22889, 3546, 273, 374, 309, 15207, 4664, 38, 22889, 682, 18, 5332, 67, 856, 12, 13867, 4672, 3523, 12448, 273, 15207, 4664, 38, 22889, 682, 63, 13867, 65, 3523, 5909, 12448, 273, 15207, 4664, 38, 22889, 682, 63, 13867, 397, 296, 11200, 3546, 469, 30, 3523, 12448, 273, 15207, 4664, 38, 22889, 682, 3292, 5000, 3546, 3523, 5909, 12448, 273, 15207, 4664, 38, 22889, 682, 3292, 5000, 11200, 3546, 9997, 3292, 4195, 3546, 63, 13867, 23962, 2171, 4664, 3546, 521, 273, 509, 12, 3001, 2815, 380, 3523, 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, 28712, 12, 2890, 4672, 1149, 2815, 273, 509, 12, 2890, 18, 2156, 2355, 18, 955, 10756, 9997, 273, 2618, 9997, 3292, 8018, 3546, 273, 374, 9997, 3292, 5147, 3546, 273, 374, 9997, 3292, 6497, 3546, 273, 374, 18, 20, 9997, 3292, 4195, 3546, 273, 2618, 9997, 3292, 607, 1486, 3546, 273, 2618, 9997, 3292, 20057, 3546, 273, 2618, 9997, 3292, 9233, 3546, 273, 2618, 9997, 3292, 8290, 38, 265, 6117, 3546, 273, 2618, 9997, 3292, 52, 90, 29258, 265, 6117, 3546, 273, 2618, 364, 5426, 316, 10895, 7432, 3292, 1595, 21712, 5000, 3546, 397, 7707, 6799, 2187, 1995, 23783, 8828, 11, 4672, 9997, 3292, 4195, 3546, 63, 13867, 65, 273, 2618, 9997, 3292, 4195, 3546, 63, 13867, 23962, 2 ]
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 426) else quickfix.DoubleField.__init__(self, 426, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 5558, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 5558, 16, 501, 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, 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972, 12, 2890, 16, 1059, 5558, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 5558, 16, 501, 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 ]
font-family: "Courier New",courier, monospace;
font-family: courier, monospace;
def css(color='default'): r""" Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' \code{('#ff0000', '#0000ff')} EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
0125450000233d3e1b290821a4be9f6c7a827bd2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/0125450000233d3e1b290821a4be9f6c7a827bd2/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 436, 8395, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, 75, 12990, 296, 75, 4408, 11, 296, 11556, 93, 11, 521, 710, 95, 2668, 7, 1403, 2787, 2187, 2946, 2787, 1403, 6134, 97, 225, 5675, 8900, 11386, 30, 272, 410, 30, 1930, 272, 410, 18, 3567, 18, 24422, 18, 5212, 487, 276, 272, 410, 30, 618, 12, 71, 18, 5212, 10756, 411, 723, 296, 701, 29256, 3536, 272, 273, 436, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for e in node.get_entries()
for e in sorted(node.get_entries(), key=kind_order)
def process_request(self, req): repos = self.env.get_repository(req.authname) authz = SubversionAuthorizer(self.env, req.authname)
7eeb255b3bf39b39acc8071d16f061d4cfa12c7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/7eeb255b3bf39b39acc8071d16f061d4cfa12c7c/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 13686, 273, 365, 18, 3074, 18, 588, 67, 9071, 12, 3658, 18, 1944, 529, 13, 18686, 273, 2592, 1589, 17170, 12, 2890, 18, 3074, 16, 1111, 18, 1944, 529, 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,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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, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 13686, 273, 365, 18, 3074, 18, 588, 67, 9071, 12, 3658, 18, 1944, 529, 13, 18686, 273, 2592, 1589, 17170, 12, 2890, 18, 3074, 16, 1111, 18, 1944, 529, 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 ]
raise util.Abort("[ui] username is not configured in .hgrc")
user = ui.config("ui", "username") if not user: raise util.Abort("[ui] username is not configured in .hgrc") userline = FindContributor(ui, repo, user, warn=False) if not userline: raise util.Abort("cannot find %s in CONTRIBUTORS" % (user,)) return userline def FindContributor(ui, repo, user, warn=True):
def CheckContributor(ui, repo): user = ui.config("ui", "username") if not user: raise util.Abort("[ui] username is not configured in .hgrc") try: f = open(repo.root + '/CONTRIBUTORS', 'r') except: raise util.Abort("cannot open %s: %s" % (repo.root+'/CONTRIBUTORS', ExceptionDetail())) for line in f.readlines(): if line.rstrip() == user.rstrip(): return raise util.Abort("cannot find %s in CONTRIBUTORS" % (user,))
790c9b59d674768bafd1cd45ffe856ee7db3b8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6483/790c9b59d674768bafd1cd45ffe856ee7db3b8ce/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 442, 19293, 12, 4881, 16, 3538, 4672, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 1002, 1709, 18, 13572, 2932, 63, 4881, 65, 2718, 353, 486, 4351, 316, 263, 26981, 1310, 7923, 729, 1369, 273, 4163, 442, 19293, 12, 4881, 16, 3538, 16, 729, 16, 1894, 33, 8381, 13, 309, 486, 729, 1369, 30, 1002, 1709, 18, 13572, 2932, 12892, 1104, 738, 87, 316, 3492, 6566, 38, 1693, 14006, 6, 738, 261, 1355, 16, 3719, 327, 729, 1369, 225, 1652, 4163, 442, 19293, 12, 4881, 16, 3538, 16, 729, 16, 1894, 33, 5510, 4672, 775, 30, 284, 273, 1696, 12, 7422, 18, 3085, 397, 1173, 6067, 2259, 38, 1693, 14006, 2187, 296, 86, 6134, 1335, 30, 1002, 1709, 18, 13572, 2932, 12892, 1696, 738, 87, 30, 738, 87, 6, 738, 261, 7422, 18, 3085, 6797, 19, 6067, 2259, 38, 1693, 14006, 2187, 1185, 6109, 1435, 3719, 364, 980, 316, 284, 18, 896, 3548, 13332, 309, 980, 18, 86, 6406, 1435, 422, 729, 18, 86, 6406, 13332, 327, 1002, 1709, 18, 13572, 2932, 12892, 1104, 738, 87, 316, 3492, 6566, 38, 1693, 14006, 6, 738, 261, 1355, 16, 3719, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 442, 19293, 12, 4881, 16, 3538, 4672, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 729, 273, 5915, 18, 1425, 2932, 4881, 3113, 315, 5053, 7923, 309, 486, 729, 30, 1002, 1709, 18, 13572, 2932, 63, 4881, 65, 2718, 353, 486, 4351, 316, 263, 26981, 1310, 7923, 729, 1369, 273, 4163, 442, 19293, 12, 4881, 16, 3538, 16, 729, 16, 1894, 33, 8381, 13, 309, 486, 729, 1369, 30, 1002, 1709, 18, 13572, 2932, 12892, 1104, 738, 87, 316, 3492, 6566, 38, 1693, 14006, 6, 738, 261, 1355, 16, 3719, 327, 729, 1369, 225, 1652, 4163, 442, 19293, 12, 4881, 16, 3538, 16, 729, 16, 1894, 33, 5510, 4672, 775, 2 ]
self.is_immediate = False
def __init__(self, original_name, name, info, return_type, original_args, args_for_cmds, cmd_args, init_args, num_pointer_args): self.name = name self.original_name = original_name self.info = info self.type_handler = info.type_handler self.return_type = return_type self.original_args = original_args self.num_pointer_args = num_pointer_args self.can_auto_generate = num_pointer_args == 0 and return_type == "void" self.cmd_args = cmd_args self.init_args = init_args self.args_for_cmds = args_for_cmds self.type_handler.InitFunction(self) self.is_immediate = False
56cf771f243d94985cd4e18f5f61bf6bab39d12c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/56cf771f243d94985cd4e18f5f61bf6bab39d12c/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2282, 67, 529, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818, 67, 10437, 67, 1968, 4672, 365, 18, 529, 273, 508, 365, 18, 8830, 67, 529, 273, 2282, 67, 529, 365, 18, 1376, 273, 1123, 365, 18, 723, 67, 4176, 273, 1123, 18, 723, 67, 4176, 365, 18, 2463, 67, 723, 273, 327, 67, 723, 365, 18, 8830, 67, 1968, 273, 2282, 67, 1968, 365, 18, 2107, 67, 10437, 67, 1968, 273, 818, 67, 10437, 67, 1968, 365, 18, 4169, 67, 6079, 67, 7163, 273, 818, 67, 10437, 67, 1968, 422, 374, 471, 327, 67, 723, 422, 315, 6459, 6, 365, 18, 4172, 67, 1968, 273, 1797, 67, 1968, 365, 18, 2738, 67, 1968, 273, 1208, 67, 1968, 365, 18, 1968, 67, 1884, 67, 24680, 273, 833, 67, 1884, 67, 24680, 365, 18, 723, 67, 4176, 18,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 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2282, 67, 529, 16, 508, 16, 1123, 16, 327, 67, 723, 16, 2282, 67, 1968, 16, 833, 67, 1884, 67, 24680, 16, 1797, 67, 1968, 16, 1208, 67, 1968, 16, 818, 67, 10437, 67, 1968, 4672, 365, 18, 529, 273, 508, 365, 18, 8830, 67, 529, 273, 2282, 67, 529, 365, 18, 1376, 273, 1123, 365, 18, 723, 67, 4176, 273, 1123, 18, 723, 67, 4176, 365, 18, 2463, 67, 723, 273, 327, 67, 723, 365, 18, 8830, 67, 1968, 273, 2282, 67, 1968, 365, 18, 2107, 67, 10437, 67, 1968, 273, 818, 67, 10437, 67, 1968, 365, 18, 4169, 67, 6079, 67, 7163, 273, 818, 67, 10437, 67, 1968, 422, 374, 2 ]
readmes = ['README', 'readme.txt', 'LICENSE', 'ACKNOWLEDGEMENTS'] for readme in readmes: if os.path.exists(readme): copy_file(readme, pkg_dir)
def run (self): name = self.distribution.metadata.name version = self.distribution.metadata.version description = self.distribution.metadata.description self.run_command('build') install = self.reinitialize_command('install', reinit_subcommands=1) install.root = self.bdist_dir install.warn_dir = 0 log.info("installing to %s" % self.bdist_dir) self.run_command('install')
e24c7be3948de844c8f43e643c213af03f056b13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/e24c7be3948de844c8f43e643c213af03f056b13/gamera_mac_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 508, 273, 365, 18, 16279, 18, 4165, 18, 529, 1177, 273, 365, 18, 16279, 18, 4165, 18, 1589, 2477, 273, 365, 18, 16279, 18, 4165, 18, 3384, 225, 365, 18, 2681, 67, 3076, 2668, 3510, 6134, 225, 3799, 273, 365, 18, 266, 11160, 67, 3076, 2668, 5425, 2187, 283, 2738, 67, 1717, 7847, 33, 21, 13, 3799, 18, 3085, 273, 365, 18, 70, 4413, 67, 1214, 3799, 18, 8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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 508, 273, 365, 18, 16279, 18, 4165, 18, 529, 1177, 273, 365, 18, 16279, 18, 4165, 18, 1589, 2477, 273, 365, 18, 16279, 18, 4165, 18, 3384, 225, 365, 18, 2681, 67, 3076, 2668, 3510, 6134, 225, 3799, 273, 365, 18, 266, 11160, 67, 3076, 2668, 5425, 2187, 283, 2738, 67, 1717, 7847, 33, 21, 13, 3799, 18, 3085, 273, 365, 18, 70, 4413, 67, 1214, 3799, 18, 8935, 67, 1214, 273, 374, 225, 613, 18, 1376, 2932, 5425, 310, 358, 738, 87, 6, 738, 365, 18, 70, 4413, 67, 1214, 13, 365, 18, 2681, 67, 3076, 2668, 5425, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.write(cr, uid, ids, {'state':'closed'}) return True
self.write(cr, uid, ids, {'state': 'closed'}) return True
def state_close_set(self, cr, uid, ids, *args): wf_service = netsvc.LocalService('workflow') for step in self.browse(cr, uid, ids): wf_service.trg_validate(uid, 'dm.offer.step', step.id, 'state_close_set', cr) self.write(cr, uid, ids, {'state':'closed'}) return True
85a1e7b7da9518beac3cb0935570916534cd57ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/85a1e7b7da9518beac3cb0935570916534cd57ee/dm_offer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 67, 4412, 67, 542, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2668, 13815, 6134, 364, 2235, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 11578, 67, 3278, 18, 313, 75, 67, 5662, 12, 1911, 16, 296, 10956, 18, 23322, 18, 4119, 2187, 2235, 18, 350, 16, 296, 2019, 67, 4412, 67, 542, 2187, 4422, 13, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 12204, 11, 6792, 327, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 919, 67, 4412, 67, 542, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 11578, 67, 3278, 273, 21954, 4227, 18, 25635, 2668, 13815, 6134, 364, 2235, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 11578, 67, 3278, 18, 313, 75, 67, 5662, 12, 1911, 16, 296, 10956, 18, 23322, 18, 4119, 2187, 2235, 18, 350, 16, 296, 2019, 67, 4412, 67, 542, 2187, 4422, 13, 365, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 12204, 11, 6792, 327, 1053, 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 ]
print '***setboard***'
def go (queue): """ Finds and prints the best move from the current position """ searchLock.acquire() try: queue.put(None) # TODO: Length info should be put in the book. # Btw. 10 is not enough. Try 20 if len(board.history) < 14: movestr = getBestOpening(board) if movestr: mvs = [parseSAN(board, movestr)] if len(board.history) >= 14 or not movestr: global mytime, increment, scr lsearch.skipPruneChance = skipPruneChance lsearch.searching = True if mytime == None: lsearch.endtime = sys.maxint mvs, scr = alphaBeta (board, sd) else: usetime = mytime / remainingMovesA(len(board.history)) if mytime < 6*60+increment*40: # If game is blitz, we assume 40 moves rather than 80 usetime *= 2 # The increment is a constant. We'll use this allways usetime += increment if usetime < 0.5: # We don't wan't to search for e.g. 0 secs usetime = 0.5 starttime = time() lsearch.endtime = starttime + usetime prevtime = 0 print "Time left: %3.2f seconds; Plan to thinking for %3.2f seconds" % \ (mytime, usetime) for depth in range(1, sd+1): # Heuristic time saving # Don't waste time, if the estimated isn't enough to complete next depth if usetime > prevtime*4 or usetime <= 1: lsearch.timecheck_counter = lsearch.TIMECHECK_FREQ search_result = alphaBeta(board, depth) if lsearch.searching: mvs, scr = search_result if time() > lsearch.endtime: # Endtime occured after depth break else: # Endtime occured in depth break prevtime = time()-starttime - prevtime else: # Not enough time for depth break mytime -= time() - starttime mytime += increment if not mvs: if not lsearch.searching: # We were interupted lsearch.movesearches = 0 lsearch.nodes = 0 searchLock.release() return #if lsearch.last == 4: # print "resign" #else: if scr == 0: print "result", reprResult[DRAW] elif scr < 0: if board.color == WHITE: print "result", reprResult[BLACKWON] else: print "result", reprResult[WHITEWON] else: if board.color == WHITE: print "result", reprResult[WHITEWON] else: print "result", reprResult[BLACKWON] print "last:", lsearch.last, scr return print "moves were:", " ".join(listToSan(board, mvs)), scr lsearch.movesearches = 0 lsearch.nodes = 0 lsearch.searching = False move = mvs[0] print "move", toSAN(board, move) board.applyMove(move) finally: searchLock.release()
d71b6fd56eaf827c3306c41dc1c6f2afa5889598 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/d71b6fd56eaf827c3306c41dc1c6f2afa5889598/PyChess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 326, 6978, 18, 468, 605, 11246, 18, 1728, 353, 486, 7304, 18, 6161, 4200, 309, 562, 12, 3752, 18, 8189, 13, 411, 5045, 30, 13934, 313, 273, 28782, 21378, 12, 3752, 13, 309, 13934, 313, 30, 312, 6904, 273, 306, 2670, 22721, 12, 3752, 16, 13934, 313, 25887, 225, 309, 562, 12, 3752, 18, 8189, 13, 1545, 5045, 578, 486, 13934, 313, 30, 225, 2552, 3399, 957, 16, 5504, 16, 11991, 328, 3072, 18, 7457, 28404, 782, 1359, 273, 2488, 28404, 782, 1359, 328, 3072, 18, 3072, 310, 273, 1053, 225, 309, 3399, 957, 422, 599, 30, 328, 3072, 18, 409, 957, 273, 2589, 18, 1896, 474, 312, 6904, 16, 11991, 273, 4190, 38, 1066, 261, 3752, 16, 8349, 13, 225, 469, 30, 584, 2374, 273, 3399, 957, 342, 4463, 19297, 37, 12, 1897, 12, 3752, 18, 8189, 3719, 309, 3399, 957, 411, 1666, 14, 4848, 15, 15016, 14, 7132, 30, 468, 971, 7920, 353, 2811, 305, 94, 16, 732, 6750, 8063, 13934, 9178, 2353, 8958, 584, 2374, 6413, 576, 468, 1021, 5504, 353, 279, 5381, 18, 1660, 5614, 999, 333, 777, 3052, 584, 2374, 1011, 5504, 309, 584, 2374, 411, 374, 18, 25, 30, 468, 1660, 2727, 1404, 341, 304, 1404, 358, 1623, 364, 425, 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, 1960, 261, 4000, 4672, 3536, 4163, 87, 471, 14971, 326, 3796, 3635, 628, 326, 783, 1754, 3536, 1623, 2531, 18, 1077, 1039, 1435, 775, 30, 2389, 18, 458, 12, 7036, 13, 468, 2660, 30, 11311, 1123, 1410, 506, 1378, 316, 326, 6978, 18, 468, 605, 11246, 18, 1728, 353, 486, 7304, 18, 6161, 4200, 309, 562, 12, 3752, 18, 8189, 13, 411, 5045, 30, 13934, 313, 273, 28782, 21378, 12, 3752, 13, 309, 13934, 313, 30, 312, 6904, 273, 306, 2670, 22721, 12, 3752, 16, 13934, 313, 25887, 225, 309, 562, 12, 3752, 18, 8189, 13, 1545, 5045, 578, 486, 13934, 313, 30, 225, 2552, 3399, 957, 16, 5504, 16, 11991, 328, 3072, 18, 7457, 28404, 782, 1359, 2 ]
genhtml_command = "utils/lcov/genhtml -o " + lcov_report_data + " " + info_file
genhtml_command = "utils/lcov/genhtml -o " + lcov_report_dir genhtml_command += " " + info_file
def generate_dependencies (self): env = Environment() self.gen_mod_config (env) cc = env['CC'] cxx = env.subst (env['CXX']) common_flags = ARGUMENTS.get('cflags', '').split (' ') cxxflags = ARGUMENTS.get('cxxflags', '').split (' ') ldflags = ARGUMENTS.get('ldflags', '').split (' ') if cc == 'cl' and cxx == 'cl': env = Environment (tools = ['mingw']) cc = env['CC'] cxx = env.subst (env['CXX']) if cc == 'gcc' and cxx == 'g++': common_flags.extend (['-g3', '-Wall', '-Werror']) debug_flags = [] opti_flags = ['-O3'] elif cc == 'cl' and cxx == 'cl': env = Environment (ENV = os.environ) debug_flags = ['-W1', '-GX', '-EHsc', '-D_DEBUG', '/MDd'] opti_flags = ['-O2', '-EHsc', '-DNDEBUG', '/MD'] env.Append (CCFLAGS=common_flags, CPPDEFINES=['RUN_SELF_TESTS'], TARFLAGS='-c -z', CPPFLAGS=cxxflags, LINKFLAGS=ldflags) verbose = ARGUMENTS.get('verbose', 'n') if verbose == 'n': env['PRINT_CMD_LINE_FUNC'] = print_cmd_line header_builder = Builder (action = Action (MyCopyAction, strfunction = MyCopyActionPrint)) env.Append (BUILDERS = {'MyCopyBuilder':header_builder}) gcxx_builder = Builder (action = Action (MyCopyAction, strfunction = MyCopyActionPrint), emitter = GcxxEmitter) env.Append (BUILDERS = {'CopyGcxxBuilder':gcxx_builder}) variant = Ns3BuildVariant () builders = []
65b62108099d81522603b9e45d6beed0151463e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11087/65b62108099d81522603b9e45d6beed0151463e1/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11037, 261, 2890, 4672, 1550, 273, 7518, 1435, 365, 18, 4507, 67, 1711, 67, 1425, 261, 3074, 13, 4946, 273, 1550, 3292, 6743, 3546, 276, 5279, 273, 1550, 18, 1717, 334, 261, 3074, 3292, 39, 5619, 19486, 2975, 67, 7133, 273, 23654, 55, 18, 588, 2668, 71, 7133, 2187, 875, 2934, 4939, 7707, 8624, 276, 5279, 7133, 273, 23654, 55, 18, 588, 2668, 71, 5279, 7133, 2187, 875, 2934, 4939, 7707, 8624, 328, 2180, 80, 1341, 273, 23654, 55, 18, 588, 2668, 1236, 7133, 2187, 875, 2934, 4939, 7707, 8624, 309, 4946, 422, 296, 830, 11, 471, 276, 5279, 422, 296, 830, 4278, 1550, 273, 7518, 261, 6642, 273, 10228, 11987, 91, 19486, 4946, 273, 1550, 3292, 6743, 3546, 276, 5279, 273, 1550, 18, 1717, 334, 261, 3074, 3292, 39, 5619, 19486, 309, 4946, 422, 296, 75, 952, 11, 471, 276, 5279, 422, 296, 75, 9904, 4278, 2975, 67, 7133, 18, 14313, 261, 3292, 17, 75, 23, 2187, 2400, 26558, 2187, 2400, 59, 1636, 19486, 1198, 67, 7133, 273, 5378, 2153, 77, 67, 7133, 273, 10228, 17, 51, 23, 3546, 1327, 4946, 422, 296, 830, 11, 471, 276, 5279, 422, 296, 830, 4278, 1550, 273, 7518, 261, 11986, 273, 1140, 18, 28684, 13, 1198, 67, 7133, 273, 10228, 17, 59, 21, 2187, 2400, 43, 60, 2187, 2400, 41, 44, 1017, 2187, 2400, 40, 67, 9394, 2187, 1173, 6188, 72, 3546, 2153, 77, 67, 7133, 273, 10228, 17, 51, 22, 2187, 2400, 41, 44, 1017, 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, 2103, 67, 11037, 261, 2890, 4672, 1550, 273, 7518, 1435, 365, 18, 4507, 67, 1711, 67, 1425, 261, 3074, 13, 4946, 273, 1550, 3292, 6743, 3546, 276, 5279, 273, 1550, 18, 1717, 334, 261, 3074, 3292, 39, 5619, 19486, 2975, 67, 7133, 273, 23654, 55, 18, 588, 2668, 71, 7133, 2187, 875, 2934, 4939, 7707, 8624, 276, 5279, 7133, 273, 23654, 55, 18, 588, 2668, 71, 5279, 7133, 2187, 875, 2934, 4939, 7707, 8624, 328, 2180, 80, 1341, 273, 23654, 55, 18, 588, 2668, 1236, 7133, 2187, 875, 2934, 4939, 7707, 8624, 309, 4946, 422, 296, 830, 11, 471, 276, 5279, 422, 296, 830, 4278, 1550, 273, 7518, 261, 6642, 273, 10228, 11987, 91, 19486, 4946, 273, 1550, 2 ]
col.set_sort_order(gtk.SORT_ASCENDING)
col.set_spacing(6)
def populateProductDialog(self): self.tv_products = self.subsxml.get_widget("treeview_updates") self.productList = gtk.ListStore(gtk.gdk.Pixbuf, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING) self.warn_count = 0 for product in managerlib.getInstalledProductStatus(): if product[1] in ["Expired", "Not Subscribed"]: self.warn_count += 1 self.status_icon = self.tv_products.render_icon(gtk.STOCK_DIALOG_QUESTION, size=gtk.ICON_SIZE_MENU) else: self.status_icon = self.tv_products.render_icon(gtk.STOCK_APPLY, size=gtk.ICON_SIZE_MENU) self.productList.append((self.status_icon, product[0], product[1], product[2])) self.tv_products.set_model(self.productList)
7dfd9087f4487a8bb74057606ef9d612ad68f05b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11137/7dfd9087f4487a8bb74057606ef9d612ad68f05b/managergui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 682, 2257, 12, 4521, 79, 18, 75, 2883, 18, 21816, 4385, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 13, 365, 18, 8935, 67, 1883, 273, 374, 364, 3017, 316, 3301, 2941, 18, 588, 16747, 4133, 1482, 13332, 309, 3017, 63, 21, 65, 316, 8247, 10556, 3113, 315, 1248, 2592, 15802, 11929, 30, 365, 18, 8935, 67, 1883, 1011, 404, 365, 18, 2327, 67, 3950, 273, 365, 18, 24161, 67, 18736, 18, 5902, 67, 3950, 12, 4521, 79, 18, 31487, 3507, 67, 2565, 18683, 67, 4740, 1146, 16, 963, 33, 4521, 79, 18, 21745, 67, 4574, 67, 29227, 13, 469, 30, 365, 18, 2327, 67, 3950, 273, 365, 18, 24161, 67, 18736, 18, 5902, 67, 3950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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 4133, 6353, 12, 2890, 4672, 365, 18, 24161, 67, 18736, 273, 225, 365, 18, 22284, 2902, 18, 588, 67, 6587, 2932, 3413, 1945, 67, 14703, 7923, 365, 18, 5896, 682, 273, 22718, 18, 682, 2257, 12, 4521, 79, 18, 75, 2883, 18, 21816, 4385, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 16, 314, 1612, 18, 2399, 67, 5804, 13, 365, 18, 8935, 67, 1883, 273, 374, 364, 3017, 316, 3301, 2941, 18, 588, 16747, 4133, 1482, 13332, 309, 3017, 63, 21, 65, 316, 8247, 10556, 3113, 315, 1248, 2592, 15802, 11929, 30, 365, 18, 8935, 67, 1883, 1011, 404, 365, 18, 2327, 67, 3950, 273, 365, 18, 24161, 67, 18736, 2 ]
SmmSize += ImageClass.Size
SmmSize += ImageInfo.Image.Size
def _CollectModuleMapBuffer (self, MapBuffer, ModuleList): sys.stdout.write ("Generate Load Module At Fix Address Map") sys.stdout.flush() PatchEfiImageList = [] PeiModuleList = {} BtModuleList = {} RtModuleList = {} SmmModuleList = {} PeiSize = 0 BtSize = 0 RtSize = 0 # reserve 4K size in SMRAM to make SMM module address not from 0. SmmSize = 0x1000 for Module in ModuleList: GlobalData.gProcessingFile = "%s [%s, %s, %s]" % (Module.MetaFile, Module.Arch, Module.ToolChain, Module.BuildTarget) OutputImageFile = '' for ResultFile in Module.CodaTargetList: if str(ResultFile.Target).endswith('.efi'): # # module list for PEI, DXE, RUNTIME and SMM # OutputImageFile = os.path.join(Module.OutputDir, Module.Name + '.efi') ImageClass = PeImageClass (OutputImageFile) if not ImageClass.IsValid: EdkLogger.error("build", FILE_PARSE_FAILURE, ExtraData=ImageClass.ErrorInfo) ImageInfo = PeImageInfo(Module.Name, Module.Guid, Module.OutputDir, ImageClass) if Module.ModuleType in ['PEI_CORE', 'PEIM', 'COMBINED_PEIM_DRIVER','PIC_PEIM', 'RELOCATABLE_PEIM', 'DXE_CORE']: PeiModuleList[Module.MetaFile] = ImageInfo PeiSize += ImageClass.Size elif Module.ModuleType in ['BS_DRIVER', 'DXE_DRIVER', 'UEFI_DRIVER']: BtModuleList[Module.MetaFile] = ImageInfo BtSize += ImageClass.Size elif Module.ModuleType in ['DXE_RUNTIME_DRIVER', 'RT_DRIVER', 'DXE_SAL_DRIVER', 'SAL_RT_DRIVER']: RtModuleList[Module.MetaFile] = ImageInfo RtSize += ImageClass.Size elif Module.ModuleType in ['SMM_CORE', 'DXE_SMM_DRIVER']: SmmModuleList[Module.MetaFile] = ImageInfo SmmSize += ImageClass.Size if Module.ModuleType == 'DXE_SMM_DRIVER': PiSpecVersion = 0 if 'PI_SPECIFICATION_VERSION' in Module.Module.Specification: PiSpecVersion = Module.Module.Specification['PI_SPECIFICATION_VERSION'] # for PI specification < PI1.1, DXE_SMM_DRIVER also runs as BOOT time driver. if PiSpecVersion < 0x0001000A: BtModuleList[Module.MetaFile] = ImageInfo BtSize += ImageClass.Size break # # EFI image is final target. # Check EFI image contains patchable FixAddress related PCDs. # if OutputImageFile != '': ModuleIsPatch = False for Pcd in Module.ModulePcdList: if Pcd.Type == TAB_PCDS_PATCHABLE_IN_MODULE and Pcd.TokenCName in TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_LIST: ModuleIsPatch = True break if not ModuleIsPatch: for Pcd in Module.LibraryPcdList: if Pcd.Type == TAB_PCDS_PATCHABLE_IN_MODULE and Pcd.TokenCName in TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_LIST: ModuleIsPatch = True break if not ModuleIsPatch: continue # # Module includes the patchable load fix address PCDs. # It will be fixed up later. # PatchEfiImageList.append (OutputImageFile) # # Patch FixAddress related PCDs into EFI image # for EfiImage in PatchEfiImageList: EfiImageMap = EfiImage.replace('.efi', '.map') if not os.path.exists(EfiImageMap): continue # # Get PCD offset in EFI image by GenPatchPcdTable function # PcdTable = parsePcdInfoFromMapFile(EfiImageMap, EfiImage) # # Patch real PCD value by PatchPcdValue tool # for PcdInfo in PcdTable: ReturnValue = 0 if PcdInfo[0] == TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_PEI_PAGE_SIZE: ReturnValue, ErrorInfo = PatchBinaryFile (EfiImage, PcdInfo[1], TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_PEI_PAGE_SIZE_DATA_TYPE, str (PeiSize/0x1000)) elif PcdInfo[0] == TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_DXE_PAGE_SIZE: ReturnValue, ErrorInfo = PatchBinaryFile (EfiImage, PcdInfo[1], TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_DXE_PAGE_SIZE_DATA_TYPE, str (BtSize/0x1000)) elif PcdInfo[0] == TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_RUNTIME_PAGE_SIZE: ReturnValue, ErrorInfo = PatchBinaryFile (EfiImage, PcdInfo[1], TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_RUNTIME_PAGE_SIZE_DATA_TYPE, str (RtSize/0x1000)) elif PcdInfo[0] == TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_SMM_PAGE_SIZE: ReturnValue, ErrorInfo = PatchBinaryFile (EfiImage, PcdInfo[1], TAB_PCDS_PATCHABLE_LOAD_FIX_ADDRESS_SMM_PAGE_SIZE_DATA_TYPE, str (SmmSize/0x1000)) if ReturnValue != 0: EdkLogger.error("build", PARAMETER_INVALID, "Patch PCD value failed", ExtraData=ErrorInfo) # # Get Top Memory address # TopMemoryAddress = 0 if self.LoadFixAddress == 0xFFFFFFFFFFFFFFFF: TopMemoryAddress = 0 else: TopMemoryAddress = self.LoadFixAddress if TopMemoryAddress < RtSize + BtSize + PeiSize: EdkLogger.error("build", PARAMETER_INVALID, "TopMemoryAddress is too low to load driver") MapBuffer.write('PEI_CODE_PAGE_NUMBER = 0x%x\n' % (PeiSize/0x1000)) MapBuffer.write('BOOT_CODE_PAGE_NUMBER = 0x%x\n' % (BtSize/0x1000)) MapBuffer.write('RUNTIME_CODE_PAGE_NUMBER = 0x%x\n' % (RtSize/0x1000)) MapBuffer.write('SMM_CODE_PAGE_NUMBER = 0x%x\n' % (SmmSize/0x1000)) PeiBaseAddr = TopMemoryAddress - RtSize - BtSize BtBaseAddr = TopMemoryAddress - RtSize RtBaseAddr = TopMemoryAddress
ef3747968bba5f59e31e3a867cfc32eb8a676f78 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/ef3747968bba5f59e31e3a867cfc32eb8a676f78/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, 1435, 12042, 41, 22056, 2040, 682, 273, 5378, 19622, 77, 3120, 682, 225, 273, 2618, 605, 88, 3120, 682, 282, 273, 2618, 534, 88, 3120, 682, 282, 273, 2618, 348, 7020, 3120, 682, 225, 273, 2618, 19622, 77, 1225, 273, 374, 605, 88, 1225, 225, 273, 374, 534, 88, 1225, 225, 273, 374, 468, 20501, 1059, 47, 963, 316, 12014, 54, 2192, 358, 1221, 348, 8206, 1605, 1758, 486, 628, 374, 18, 348, 7020, 1225, 273, 374, 92, 18088, 364, 5924, 316, 5924, 682, 30, 8510, 751, 18, 75, 7798, 812, 273, 2213, 87, 9799, 87, 16, 738, 87, 16, 738, 87, 4279, 738, 261, 3120, 18, 2781, 812, 16, 5924, 18, 12269, 16, 5924, 18, 6364, 3893, 16, 5924, 18, 3116, 2326, 13, 225, 3633, 2040, 812, 273, 875, 364, 3438, 812, 316, 5924, 18, 39, 21319, 2326, 682, 30, 309, 609, 12, 1253, 812, 18, 2326, 2934, 5839, 1918, 2668, 18, 10241, 77, 11, 4672, 468, 468, 1605, 666, 364, 16628, 45, 16, 26634, 41, 16, 534, 25375, 471, 348, 8206, 468, 3633, 2040, 812, 273, 1140, 18, 803, 18, 5701, 12, 3120, 18, 1447, 1621, 16, 5924, 18, 461, 397, 2418, 10241, 77, 6134, 3421, 797, 273, 19622, 2040, 797, 261, 1447, 2040, 812, 13, 309, 486, 3421, 797, 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, 389, 10808, 3120, 863, 1892, 261, 2890, 16, 1635, 1892, 16, 5924, 682, 4672, 2589, 18, 10283, 18, 2626, 7566, 4625, 4444, 5924, 2380, 12139, 5267, 1635, 7923, 2589, 18, 10283, 18, 11330, 1435, 12042, 41, 22056, 2040, 682, 273, 5378, 19622, 77, 3120, 682, 225, 273, 2618, 605, 88, 3120, 682, 282, 273, 2618, 534, 88, 3120, 682, 282, 273, 2618, 348, 7020, 3120, 682, 225, 273, 2618, 19622, 77, 1225, 273, 374, 605, 88, 1225, 225, 273, 374, 534, 88, 1225, 225, 273, 374, 468, 20501, 1059, 47, 963, 316, 12014, 54, 2192, 358, 1221, 348, 8206, 1605, 1758, 486, 628, 374, 18, 348, 7020, 1225, 273, 374, 92, 18088, 364, 5924, 316, 5924, 682, 30, 2 ]
result = util.wait(onData) self.assertEquals(result, WritingProtocol.byte)
return onData.addCallback( lambda result: self.assertEquals(result, WritingProtocol.byte))
def testAllowedAnonymousClientConnection(self): onData = defer.Deferred() self.loopback(sslverify.OpenSSLCertificateOptions(privateKey=self.sKey, certificate=self.sCert, requireCertificate=False), sslverify.OpenSSLCertificateOptions(requireCertificate=False), onData=onData)
6305a011c61d2e3075143d6d1aac62b453e35f67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8962/6305a011c61d2e3075143d6d1aac62b453e35f67/test_sslverify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5042, 18792, 1227, 1952, 12, 2890, 4672, 603, 751, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3678, 6745, 4719, 1320, 12, 1152, 653, 33, 2890, 18, 87, 653, 16, 4944, 33, 2890, 18, 87, 5461, 16, 2583, 4719, 33, 8381, 3631, 5832, 8705, 18, 3678, 6745, 4719, 1320, 12, 6528, 4719, 33, 8381, 3631, 603, 751, 33, 265, 751, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 5042, 18792, 1227, 1952, 12, 2890, 4672, 603, 751, 273, 2220, 18, 16886, 1435, 365, 18, 6498, 823, 12, 8157, 8705, 18, 3678, 6745, 4719, 1320, 12, 1152, 653, 33, 2890, 18, 87, 653, 16, 4944, 33, 2890, 18, 87, 5461, 16, 2583, 4719, 33, 8381, 3631, 5832, 8705, 18, 3678, 6745, 4719, 1320, 12, 6528, 4719, 33, 8381, 3631, 603, 751, 33, 265, 751, 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 ]
this = apply(_quickfix.new_DoNotSend, args)
this = _quickfix.new_DoNotSend(*args)
def __init__(self, *args): this = apply(_quickfix.new_DoNotSend, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3244, 1248, 3826, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 3244, 1248, 3826, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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 ]
self.runcmd_unchecked("rm -f testtmp.o")
self.runcmd_unchecked("rm -f testtmp.o")
def runtest(self): if sys.platform == 'hp-ux10': raise comfychair.NotRunError ('HP-UX bundled C compiler non-ANSI') # We can't run if cc is not installed on the system (maybe only gcc is) error_rc, _, _ = self.runcmd_unchecked("cc -c testtmp.c")
b4f25c92d972e0c7a6f64a4c1e436fc67a6d393b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4521/b4f25c92d972e0c7a6f64a4c1e436fc67a6d393b/testdistcc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 15373, 17, 2616, 2163, 4278, 1002, 532, 74, 93, 343, 1826, 18, 1248, 1997, 668, 7707, 2500, 17, 57, 60, 324, 24467, 385, 5274, 1661, 17, 1258, 2320, 6134, 468, 1660, 848, 1404, 1086, 309, 4946, 353, 486, 5876, 603, 326, 2619, 261, 19133, 1338, 314, 952, 353, 13, 555, 67, 1310, 16, 389, 16, 389, 273, 365, 18, 86, 551, 1264, 67, 5847, 2932, 952, 300, 71, 1842, 5645, 18, 71, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 15373, 17, 2616, 2163, 4278, 1002, 532, 74, 93, 343, 1826, 18, 1248, 1997, 668, 7707, 2500, 17, 57, 60, 324, 24467, 385, 5274, 1661, 17, 1258, 2320, 6134, 468, 1660, 848, 1404, 1086, 309, 4946, 353, 486, 5876, 603, 326, 2619, 261, 19133, 1338, 314, 952, 353, 13, 555, 67, 1310, 16, 389, 16, 389, 273, 365, 18, 86, 551, 1264, 67, 5847, 2932, 952, 300, 71, 1842, 5645, 18, 71, 7923, 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 ]
PlatformFdfs = map(LoadPlatformFdf, XmlList(XmlFpd, XmlTag)) return PlatformFdfs
PlatformFvImages.FvImages = map(LoadPlatformFvImages, XmlList(XmlFpd, XmlTag)) return PlatformFvImages
def LoadPlatformFdfs(XmlFpd): XmlTag = "PlatformSurfaceArea/Flash/FvImages" PlatformFdfs = map(LoadPlatformFdf, XmlList(XmlFpd, XmlTag)) return PlatformFdfs
e3ad7624a34c23e19c67d615b2919203a867bc02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/e3ad7624a34c23e19c67d615b2919203a867bc02/LoadFpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8201, 42, 12381, 12, 4432, 42, 22353, 4672, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 11353, 19, 42, 90, 8946, 6, 11810, 42, 90, 8946, 18, 42, 90, 8946, 273, 852, 12, 2563, 8201, 42, 90, 8946, 16, 5714, 682, 12, 4432, 42, 22353, 16, 5714, 1805, 3719, 225, 327, 11810, 42, 90, 8946, 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, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4444, 8201, 42, 12381, 12, 4432, 42, 22353, 4672, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 11353, 19, 42, 90, 8946, 6, 11810, 42, 90, 8946, 18, 42, 90, 8946, 273, 852, 12, 2563, 8201, 42, 90, 8946, 16, 5714, 682, 12, 4432, 42, 22353, 16, 5714, 1805, 3719, 225, 327, 11810, 42, 90, 8946, 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 ]
def __neq__(self, other): return not self == other
def __ne__(self, other): return not (self == other)
def __neq__(self, other): return not self == other
65b6e2c9888e28c1fdb21da1dff0d9311caa42be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11141/65b6e2c9888e28c1fdb21da1dff0d9311caa42be/mediaobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 85, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 422, 1308, 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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dbh.execute("insert into NSRL_products set Code=%r,Name=%r,Version=%r,OpSystemCode=%r,ApplicationType=%r",(row[0],row[1],row[2],row[3],row[6]))
dbh.mass_insert( Code=row[0], Name=row[1], Version=row[2], OpSystemCode=row[3], ApplicationType=row[6], )
def ProductTable(dirname): fd=csv.reader(file(dirname+"/NSRLProd.txt")) print "Starting to import %s/NSRLProd.txt" % dirname ## Ensure the NSRL tables do not have any indexes - this speeds up insert significantly try: dbh.execute("alter table NSRL_products drop index Code"); except: pass for row in fd: try: dbh.execute("insert into NSRL_products set Code=%r,Name=%r,Version=%r,OpSystemCode=%r,ApplicationType=%r",(row[0],row[1],row[2],row[3],row[6])) except (ValueError,DB.DBError),e: print "SQL Error skipped %s" %e
2b819ebdabf58f59455e86c30491e4f73712f69b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/2b819ebdabf58f59455e86c30491e4f73712f69b/nsrl_load.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8094, 1388, 12, 12287, 4672, 5194, 33, 6715, 18, 10530, 12, 768, 12, 12287, 9078, 19, 3156, 54, 48, 30683, 18, 5830, 6, 3719, 1172, 315, 11715, 358, 1930, 738, 87, 19, 3156, 54, 48, 30683, 18, 5830, 6, 738, 4283, 7541, 7693, 326, 423, 10090, 48, 4606, 741, 486, 1240, 1281, 5596, 300, 333, 8632, 87, 731, 2243, 14177, 715, 225, 775, 30, 1319, 76, 18, 8837, 2932, 22628, 1014, 423, 10090, 48, 67, 18736, 3640, 770, 3356, 8863, 1335, 30, 1342, 225, 364, 1027, 316, 5194, 30, 775, 30, 1319, 76, 18, 10424, 67, 6387, 12, 3356, 33, 492, 63, 20, 6487, 1770, 33, 492, 63, 21, 6487, 4049, 33, 492, 63, 22, 6487, 6066, 3163, 1085, 33, 492, 63, 23, 6487, 4257, 559, 33, 492, 63, 26, 6487, 262, 1335, 261, 23610, 16, 2290, 18, 2290, 668, 3631, 73, 30, 1172, 315, 3997, 1068, 9700, 738, 87, 6, 738, 73, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8094, 1388, 12, 12287, 4672, 5194, 33, 6715, 18, 10530, 12, 768, 12, 12287, 9078, 19, 3156, 54, 48, 30683, 18, 5830, 6, 3719, 1172, 315, 11715, 358, 1930, 738, 87, 19, 3156, 54, 48, 30683, 18, 5830, 6, 738, 4283, 7541, 7693, 326, 423, 10090, 48, 4606, 741, 486, 1240, 1281, 5596, 300, 333, 8632, 87, 731, 2243, 14177, 715, 225, 775, 30, 1319, 76, 18, 8837, 2932, 22628, 1014, 423, 10090, 48, 67, 18736, 3640, 770, 3356, 8863, 1335, 30, 1342, 225, 364, 1027, 316, 5194, 30, 775, 30, 1319, 76, 18, 10424, 67, 6387, 12, 3356, 33, 492, 63, 20, 6487, 1770, 33, 492, 63, 21, 6487, 4049, 33, 492, 63, 22, 6487, 6066, 3163, 2 ]
def hunt(klass, lst, depth, name=method.im_func.func_name, method=method):
def hunt(klass, lst, depth, name = method.im_func.func_name, method = method):
def hunt(klass, lst, depth, name=method.im_func.func_name, method=method): if hasattr(klass, name) and method.im_func is getattr(klass, name).im_func: lst.append((depth, klass)) for base in klass.__bases__: hunt(base, lst, depth+1)
cca576cf8798366875286f6eb559227b1be45d1e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/cca576cf8798366875286f6eb559227b1be45d1e/qt4transition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19101, 12, 22626, 16, 9441, 16, 3598, 16, 508, 273, 707, 18, 381, 67, 644, 18, 644, 67, 529, 16, 707, 273, 707, 4672, 309, 3859, 12, 22626, 16, 508, 13, 471, 707, 18, 381, 67, 644, 353, 3869, 12, 22626, 16, 508, 2934, 381, 67, 644, 30, 9441, 18, 6923, 12443, 5979, 16, 7352, 3719, 364, 1026, 316, 7352, 16186, 18602, 972, 30, 19101, 12, 1969, 16, 9441, 16, 3598, 15, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19101, 12, 22626, 16, 9441, 16, 3598, 16, 508, 273, 707, 18, 381, 67, 644, 18, 644, 67, 529, 16, 707, 273, 707, 4672, 309, 3859, 12, 22626, 16, 508, 13, 471, 707, 18, 381, 67, 644, 353, 3869, 12, 22626, 16, 508, 2934, 381, 67, 644, 30, 9441, 18, 6923, 12443, 5979, 16, 7352, 3719, 364, 1026, 316, 7352, 16186, 18602, 972, 30, 19101, 12, 1969, 16, 9441, 16, 3598, 15, 21, 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 ]
assert self.selenium.get_text( "//table[@class='datatable']/tbody/tr[last()]") ==\ u'user3 Contributor Entire portal Manager Information' def test_revoke_role(self): self.selenium.open("/portal/admin_roles_html?section=users", True) self.selenium.click("css=.datatable>tbody>tr:last-child td input") role_row_text = self.selenium.get_text( "//table[@class='datatable']/tbody/tr[last()]") self.selenium.click("//input[@value='Revoke selected roles']") self.selenium.wait_for_page_to_load("3000") assert self.selenium.get_text( "//table[@class='datatable']/tbody/tr[last()]") != role_row_text
last_row = "//div[@class='datatable']/table/tbody/tr[last()]" assert self.selenium.get_text('%s/td[2]' % last_row) == u'user3' assert self.selenium.get_text("%s/td/div[@class='user-role'][1]" % last_row) == u'Contributor in portal' assert self.selenium.get_text("%s/td/div[@class='user-role'][2]" % last_row) == u'Manager in Information' def test_aaaarevoke_role(self): "Revoke Contributor to user3" self.selenium.open("/portal/admin_local_users_html", True) last_row = "//div[@class='datatable']/table/tbody/tr[last()]" assert self.selenium.get_text('%s/td[2]' % last_row) == u'user3' self.selenium.click( "%s/td/div[@class='user-role']/a[@class='revoke-role']" % last_row) self.selenium.wait_for_page_to_load("3000") assert self.selenium.get_text('%s/td[last()]' % last_row) == u'-'
def test_assign_role(self): "Assign a role" self.selenium.open("/portal/admin_roles_html?section=assign_roles", True) self.selenium.add_selection("names", "label=user3") self.selenium.add_selection("//select[@name='roles']", 'Manager') self.selenium.click("//input[@value='Pick']")
0099cb6ccc4890514212ffb1b0945e946f8909da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/0099cb6ccc4890514212ffb1b0945e946f8909da/test_user_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6145, 67, 4615, 12, 2890, 4672, 315, 4910, 279, 2478, 6, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 35, 3464, 33, 6145, 67, 7774, 3113, 1053, 13, 365, 18, 1786, 17327, 18, 1289, 67, 10705, 2932, 1973, 3113, 315, 1925, 33, 1355, 23, 7923, 365, 18, 1786, 17327, 18, 1289, 67, 10705, 2932, 759, 4025, 14782, 529, 2218, 7774, 3546, 3113, 296, 1318, 6134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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6145, 67, 4615, 12, 2890, 4672, 315, 4910, 279, 2478, 6, 365, 18, 1786, 17327, 18, 3190, 2932, 19, 24386, 19, 3666, 67, 7774, 67, 2620, 35, 3464, 33, 6145, 67, 7774, 3113, 1053, 13, 365, 18, 1786, 17327, 18, 1289, 67, 10705, 2932, 1973, 3113, 315, 1925, 33, 1355, 23, 7923, 365, 18, 1786, 17327, 18, 1289, 67, 10705, 2932, 759, 4025, 14782, 529, 2218, 7774, 3546, 3113, 296, 1318, 6134, 365, 18, 1786, 17327, 18, 7475, 2932, 759, 2630, 14782, 1132, 2218, 17968, 3546, 7923, 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 ]
cfg.setUserValue(name,value+','+MONITORING_DEFAULT)
cfg.setUserValue(name,value+','+MONITORING_DEFAULT)
def postBootstrapHook(): from Ganga.Utility.logging import getLogger logger = getLogger() from Ganga.Utility.Config import getConfig cfg = getConfig('MonitoringServices') MONITORING_DEFAULT = "Ganga.Lib.MonitoringServices.Dashboard.LCGAthenaMS.LCGAthenaMS" for name in cfg.options: value = cfg[name] if 'Athena' in name.split('/') and ('LCG' in name.split('/') or 'CREAM' in name.split('/')): if not MONITORING_DEFAULT in value.split(','): logger.error('''*** Outdated monitoring configuration - check your configuration files ***
94dbaed23a1fb7ad5c24047f4afab951e5277ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/94dbaed23a1fb7ad5c24047f4afab951e5277ee6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 10445, 5394, 13332, 628, 611, 539, 69, 18, 6497, 18, 11167, 1930, 7156, 225, 1194, 273, 7156, 1435, 225, 628, 611, 539, 69, 18, 6497, 18, 809, 1930, 4367, 2776, 273, 4367, 2668, 18410, 5676, 6134, 225, 30215, 30153, 1360, 67, 5280, 273, 315, 43, 539, 69, 18, 5664, 18, 18410, 5676, 18, 14830, 18, 13394, 25043, 15991, 69, 3537, 18, 13394, 25043, 15991, 69, 3537, 6, 225, 364, 508, 316, 2776, 18, 2116, 30, 460, 273, 2776, 63, 529, 65, 309, 296, 37, 15991, 69, 11, 316, 508, 18, 4939, 2668, 2473, 13, 471, 7707, 13394, 43, 11, 316, 508, 18, 4939, 2668, 2473, 13, 578, 296, 5458, 2192, 11, 316, 508, 18, 4939, 2668, 2473, 3719, 30, 309, 486, 30215, 30153, 1360, 67, 5280, 316, 460, 18, 4939, 12, 17023, 4672, 1194, 18, 1636, 2668, 6309, 14465, 2976, 12563, 16309, 1664, 300, 866, 3433, 1664, 1390, 18852, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 10445, 5394, 13332, 628, 611, 539, 69, 18, 6497, 18, 11167, 1930, 7156, 225, 1194, 273, 7156, 1435, 225, 628, 611, 539, 69, 18, 6497, 18, 809, 1930, 4367, 2776, 273, 4367, 2668, 18410, 5676, 6134, 225, 30215, 30153, 1360, 67, 5280, 273, 315, 43, 539, 69, 18, 5664, 18, 18410, 5676, 18, 14830, 18, 13394, 25043, 15991, 69, 3537, 18, 13394, 25043, 15991, 69, 3537, 6, 225, 364, 508, 316, 2776, 18, 2116, 30, 460, 273, 2776, 63, 529, 65, 309, 296, 37, 15991, 69, 11, 316, 508, 18, 4939, 2668, 2473, 13, 471, 7707, 13394, 43, 11, 316, 508, 18, 4939, 2668, 2473, 13, 578, 296, 5458, 2192, 11, 316, 508, 18, 4939, 2668, 2473, 2 ]
obj=info.NVDAObjectAtStart if not obj: log.debugWarning("Invalid NVDAObjectAtStart") return if obj==self.rootNVDAObject: return
def _set_selection(self, info, reason=speech.REASON_CARET): super(VirtualBuffer, self)._set_selection(info) if isScriptWaiting() or not info.isCollapsed: return api.setReviewPosition(info) obj=info.NVDAObjectAtStart if not obj: log.debugWarning("Invalid NVDAObjectAtStart") return if obj==self.rootNVDAObject: return if reason == speech.REASON_FOCUS: focusObj = api.getFocusObject() else: focusObj=info.focusableNVDAObjectAtStart if reason != speech.REASON_FOCUS: if focusObj and not eventHandler.isPendingEvents("gainFocus") and focusObj!=self.rootNVDAObject and focusObj != api.getFocusObject() and self._shouldSetFocusToObj(focusObj): focusObj.setFocus() obj.scrollIntoView() if self.programmaticScrollMayFireEvent: self._lastProgrammaticScrollTime = time.time() self.passThrough=self.shouldPassThrough(focusObj,reason=reason) # Queue the reporting of pass through mode so that it will be spoken after the actual content. queueHandler.queueFunction(queueHandler.eventQueue, reportPassThrough, self)
bde2da675d0b23fd14bfee00b84707081f9e06de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/bde2da675d0b23fd14bfee00b84707081f9e06de/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 10705, 12, 2890, 16, 1123, 16, 3971, 33, 87, 12510, 18, 29416, 1413, 67, 3587, 10238, 4672, 2240, 12, 6466, 1892, 16, 365, 2934, 67, 542, 67, 10705, 12, 1376, 13, 309, 353, 3651, 15946, 1435, 578, 486, 1123, 18, 291, 28084, 30, 327, 1536, 18, 542, 9159, 2555, 12, 1376, 13, 309, 3971, 422, 24556, 18, 29416, 1413, 67, 3313, 39, 3378, 30, 7155, 2675, 273, 1536, 18, 588, 9233, 921, 1435, 469, 30, 7155, 2675, 33, 1376, 18, 13923, 429, 11679, 9793, 921, 861, 1685, 309, 3971, 480, 24556, 18, 29416, 1413, 67, 3313, 39, 3378, 30, 309, 7155, 2675, 471, 486, 30441, 18, 291, 8579, 3783, 2932, 25540, 9233, 7923, 471, 7155, 2675, 5, 33, 2890, 18, 3085, 11679, 9793, 921, 471, 7155, 2675, 480, 1536, 18, 588, 9233, 921, 1435, 471, 365, 6315, 13139, 694, 9233, 774, 2675, 12, 13923, 2675, 4672, 7155, 2675, 18, 542, 9233, 1435, 1081, 18, 12033, 5952, 1767, 1435, 309, 365, 18, 12890, 26500, 6806, 49, 528, 9723, 1133, 30, 365, 6315, 2722, 9459, 26500, 6806, 950, 273, 813, 18, 957, 1435, 365, 18, 5466, 14287, 33, 2890, 18, 13139, 6433, 14287, 12, 13923, 2675, 16, 10579, 33, 10579, 13, 468, 7530, 326, 16096, 434, 1342, 3059, 1965, 1427, 716, 518, 903, 506, 1694, 969, 1839, 326, 3214, 913, 18, 2389, 1503, 18, 4000, 2083, 12, 4000, 1503, 18, 2575, 3183, 16, 2605, 6433, 14287, 16, 365, 13, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 10705, 12, 2890, 16, 1123, 16, 3971, 33, 87, 12510, 18, 29416, 1413, 67, 3587, 10238, 4672, 2240, 12, 6466, 1892, 16, 365, 2934, 67, 542, 67, 10705, 12, 1376, 13, 309, 353, 3651, 15946, 1435, 578, 486, 1123, 18, 291, 28084, 30, 327, 1536, 18, 542, 9159, 2555, 12, 1376, 13, 309, 3971, 422, 24556, 18, 29416, 1413, 67, 3313, 39, 3378, 30, 7155, 2675, 273, 1536, 18, 588, 9233, 921, 1435, 469, 30, 7155, 2675, 33, 1376, 18, 13923, 429, 11679, 9793, 921, 861, 1685, 309, 3971, 480, 24556, 18, 29416, 1413, 67, 3313, 39, 3378, 30, 309, 7155, 2675, 471, 486, 30441, 18, 291, 8579, 3783, 2932, 25540, 9233, 7923, 471, 7155, 2 ]
column.set_sizing(gtk.TREE_VIEW_COLUMN_GROW_ONLY)
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED) column.set_fixed_width(20)
def cell_data_fn(column, cell, model, iter, code, attr = (pango.WEIGHT_NORMAL, pango.WEIGHT_BOLD)): try: song = model[iter][0] cell.set_property('text', util.unexpand( song.comma(column.header_name).decode(code, 'replace'))) except AttributeError: pass
973aeb612d8c5dc6db93f08178c4373ac87c5eeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/973aeb612d8c5dc6db93f08178c4373ac87c5eeb/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2484, 67, 892, 67, 4293, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 981, 16, 1604, 273, 261, 84, 6399, 18, 29988, 67, 15480, 16, 293, 6399, 18, 29988, 67, 38, 11846, 3719, 30, 775, 30, 17180, 273, 938, 63, 2165, 6362, 20, 65, 2484, 18, 542, 67, 4468, 2668, 955, 2187, 1709, 18, 318, 12320, 12, 17180, 18, 25034, 12, 2827, 18, 3374, 67, 529, 2934, 3922, 12, 710, 16, 296, 2079, 11, 20349, 1335, 6394, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2484, 67, 892, 67, 4293, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 981, 16, 1604, 273, 261, 84, 6399, 18, 29988, 67, 15480, 16, 293, 6399, 18, 29988, 67, 38, 11846, 3719, 30, 775, 30, 17180, 273, 938, 63, 2165, 6362, 20, 65, 2484, 18, 542, 67, 4468, 2668, 955, 2187, 1709, 18, 318, 12320, 12, 17180, 18, 25034, 12, 2827, 18, 3374, 67, 529, 2934, 3922, 12, 710, 16, 296, 2079, 11, 20349, 1335, 6394, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lun_link = lun_root_dir + "/" + lun + "/" + lun sourcelink = os.readlink(lun_link) print " \-------> " + lun + " -> " + sourcelink[21:] print " \-------> Write Protect for " + lun + ": " + wp_info
lun_link_dir = lun_root_dir + "/" + lun for lun_link in os.listdir(lun_link_dir): if lun_link == "write_protect": continue sourcelink = os.readlink(lun_link_dir + "/" + lun_link) print " \-------> " + lun + " -> " + sourcelink[21:] print " \-------> Write Protect for " + lun + ": " + wp_info
def lio_target_list_lunacls(option, opt_str, value, parser): iqn = str(value[0]); tpgt = str(value[1]); iqn_root = os.listdir(lio_root) nacl_root_dir = lio_root + "/" + iqn + "/tpgt_" + tpgt + "/acls" nacl_root = os.listdir(nacl_root_dir) for nacl in nacl_root: print "\------> InitiatorName ACL: " + nacl print " Logical Unit ACLs: " lun_root_dir = nacl_root_dir + "/" + nacl lun_root = os.listdir(lun_root_dir) for lun in lun_root: ret = re.search('lun_', lun) if not ret: continue wp_attrib = lun_root_dir + "/" + lun + "/write_protect" wp_file = open(wp_attrib); line = wp_file.readline() wp_bit = line.rstrip() if wp_bit == '1': wp_info = "ENABLED" else: wp_info = "DISABLED" lun_link = lun_root_dir + "/" + lun + "/" + lun sourcelink = os.readlink(lun_link) # Skip over ../../../../../../ in sourcelink" print " \-------> " + lun + " -> " + sourcelink[21:] print " \-------> Write Protect for " + lun + ": " + wp_info return
19ab781728ca76c3ccc03b7ad8c7c413a4a185bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/19ab781728ca76c3ccc03b7ad8c7c413a4a185bd/lio_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 1594, 67, 3299, 67, 1098, 67, 80, 31172, 6429, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 277, 15785, 273, 609, 12, 1132, 63, 20, 19226, 8071, 4521, 273, 609, 12, 1132, 63, 21, 19226, 225, 277, 15785, 67, 3085, 273, 1140, 18, 1098, 1214, 12, 549, 83, 67, 3085, 13, 225, 9583, 830, 67, 3085, 67, 1214, 273, 328, 1594, 67, 3085, 397, 4016, 397, 277, 15785, 397, 2206, 6834, 4521, 9548, 397, 8071, 4521, 397, 2206, 69, 6429, 6, 9583, 830, 67, 3085, 273, 1140, 18, 1098, 1214, 12, 6582, 830, 67, 3085, 67, 1214, 13, 364, 9583, 830, 316, 9583, 830, 67, 3085, 30, 1172, 1548, 13093, 34, 4378, 10620, 461, 10098, 30, 315, 397, 9583, 830, 1172, 315, 540, 17085, 8380, 10098, 87, 30, 315, 26769, 67, 3085, 67, 1214, 273, 9583, 830, 67, 3085, 67, 1214, 397, 4016, 397, 9583, 830, 26769, 67, 3085, 273, 1140, 18, 1098, 1214, 12, 80, 318, 67, 3085, 67, 1214, 13, 364, 26769, 316, 26769, 67, 3085, 30, 325, 273, 283, 18, 3072, 2668, 80, 318, 67, 2187, 26769, 13, 309, 486, 325, 30, 1324, 225, 6357, 67, 14588, 273, 26769, 67, 3085, 67, 1214, 397, 4016, 397, 26769, 397, 2206, 2626, 67, 11815, 386, 6, 6357, 67, 768, 273, 1696, 12, 8612, 67, 14588, 1769, 980, 273, 6357, 67, 768, 18, 896, 1369, 1435, 6357, 67, 3682, 273, 980, 18, 86, 6406, 1435, 309, 6357, 67, 3682, 422, 296, 21, 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, 328, 1594, 67, 3299, 67, 1098, 67, 80, 31172, 6429, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 277, 15785, 273, 609, 12, 1132, 63, 20, 19226, 8071, 4521, 273, 609, 12, 1132, 63, 21, 19226, 225, 277, 15785, 67, 3085, 273, 1140, 18, 1098, 1214, 12, 549, 83, 67, 3085, 13, 225, 9583, 830, 67, 3085, 67, 1214, 273, 328, 1594, 67, 3085, 397, 4016, 397, 277, 15785, 397, 2206, 6834, 4521, 9548, 397, 8071, 4521, 397, 2206, 69, 6429, 6, 9583, 830, 67, 3085, 273, 1140, 18, 1098, 1214, 12, 6582, 830, 67, 3085, 67, 1214, 13, 364, 9583, 830, 316, 9583, 830, 67, 3085, 30, 1172, 1548, 13093, 34, 4378, 10620, 461, 2 ]
base = sys.argv[1]
def main (): from Service import Service, cfgfiles from Layer import Layer base = sys.argv[1] svc = Service.load(*cfgfiles) layer = svc.layers[sys.argv[2]] if len(sys.argv) == 5: seed(svc, base, layer, map(int, sys.argv[3:])) elif len(sys.argv) == 6: seed(svc, base, layer, map(int, sys.argv[3:5]), map(float, sys.argv[5].split(","))) else: for line in sys.stdin.readlines(): lat, lon, delta = map(float, line.split(",")) bbox = (lon - delta, lat - delta, lon + delta, lat + delta) print "===> %s <===" % (bbox,) seed(svc, base, layer, (5, 17), bbox)
7c03b938be9179453d0fd8f6bb9a4360ab61083e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6188/7c03b938be9179453d0fd8f6bb9a4360ab61083e/Client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 1832, 30, 628, 1956, 1930, 1956, 16, 2776, 2354, 628, 12112, 1930, 12112, 7538, 273, 1956, 18, 945, 30857, 7066, 2354, 13, 3018, 273, 7538, 18, 10396, 63, 9499, 18, 19485, 63, 22, 13563, 309, 562, 12, 9499, 18, 19485, 13, 422, 1381, 30, 5009, 12, 30992, 16, 1026, 16, 3018, 16, 852, 12, 474, 16, 2589, 18, 19485, 63, 23, 30, 22643, 1327, 562, 12, 9499, 18, 19485, 13, 422, 1666, 30, 5009, 12, 30992, 16, 1026, 16, 3018, 16, 852, 12, 474, 16, 2589, 18, 19485, 63, 23, 30, 25, 65, 3631, 852, 12, 5659, 16, 2589, 18, 19485, 63, 25, 8009, 4939, 2932, 10837, 20349, 469, 30, 364, 980, 316, 2589, 18, 21772, 18, 896, 3548, 13332, 2516, 16, 4281, 16, 3622, 273, 852, 12, 5659, 16, 980, 18, 4939, 2932, 10837, 3719, 8472, 273, 261, 9379, 300, 3622, 16, 2516, 300, 3622, 16, 4281, 397, 3622, 16, 2516, 397, 3622, 13, 1172, 315, 631, 9207, 738, 87, 411, 631, 1546, 738, 261, 20737, 16, 13, 5009, 12, 30992, 16, 1026, 16, 3018, 16, 261, 25, 16, 8043, 3631, 8472, 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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, 30, 5009, 12, 30992, 16, 1026, 16, 3018, 16, 852, 12, 474, 16, 2589, 18, 19485, 63, 23, 30, 22643, 1327, 562, 12, 9499, 18, 19485, 13, 422, 1666, 30, 5009, 12, 30992, 16, 1026, 16, 3018, 16, 852, 12, 474, 16, 2589, 18, 19485, 63, 23, 30, 25, 65, 3631, 852, 12, 5659, 16, 2589, 18, 19485, 63, 25, 8009, 4939, 2932, 10837, 20349, 469, 30, 364, 980, 316, 2589, 18, 21772, 18, 2 ]
o User will implement IExtensibleUser.
o User will implement IPropertiedUser.
def getPropertiesForUser( user, request=None ):
ffcead7854cd8a23de9967c775bfa58ee8f5f93e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/ffcead7854cd8a23de9967c775bfa58ee8f5f93e/plugins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9392, 19894, 12, 729, 16, 590, 33, 7036, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches)))
prompt('Subject:', rest = ' [PATCH %0*d of %d] ' % (tlen, 0, len(patches))))
def getaddrs(opt, prpt, default = None): addrs = opts[opt] or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
0d6c6befd9553fcc3ddd0704e450b09ebb5f89e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/0d6c6befd9553fcc3ddd0704e450b09ebb5f89e0/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, 16659, 2187, 2153, 13, 578, 6866, 12, 683, 337, 16, 805, 273, 805, 13, 2934, 4939, 12, 2187, 6134, 327, 306, 69, 18, 6406, 1435, 364, 279, 316, 11755, 309, 279, 18, 6406, 1435, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 63, 3838, 65, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, 16659, 2187, 2153, 13, 578, 6866, 12, 683, 337, 16, 805, 273, 805, 13, 2934, 4939, 12, 2187, 6134, 327, 306, 69, 18, 6406, 1435, 364, 279, 316, 11755, 309, 279, 18, 6406, 1435, 65, 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 ]
if key is NULL:
if key is _NULL:
def load_dict(self): d = {} while 1: key = self.load() if key is NULL: break value = self.load() d[key] = value return d
e7f540ac4846b3c60c7f4243f1ad51ff7ea4fd68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/e7f540ac4846b3c60c7f4243f1ad51ff7ea4fd68/_marshal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1576, 12, 2890, 4672, 302, 273, 2618, 1323, 404, 30, 498, 273, 365, 18, 945, 1435, 309, 498, 353, 389, 8560, 30, 898, 460, 273, 365, 18, 945, 1435, 302, 63, 856, 65, 273, 460, 327, 302, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1576, 12, 2890, 4672, 302, 273, 2618, 1323, 404, 30, 498, 273, 365, 18, 945, 1435, 309, 498, 353, 389, 8560, 30, 898, 460, 273, 365, 18, 945, 1435, 302, 63, 856, 65, 273, 460, 327, 302, 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 ]
self.requred = ival_
self.required = ival_
def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ip_address': ip_address_ = '' for text__content_ in child_.childNodes: ip_address_ += text__content_.nodeValue self.ip_address = ip_address_ self.validate_ip_address(self.ip_address) # validate type ip_address elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'ipv6_address': ipv6_address_ = '' for text__content_ in child_.childNodes: ipv6_address_ += text__content_.nodeValue self.ipv6_address = ipv6_address_ self.validate_ipv6_address(self.ipv6_address) # validate type ipv6_address elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'dns_name': dns_name_ = '' for text__content_ in child_.childNodes: dns_name_ += text__content_.nodeValue self.dns_name = dns_name_ self.validate_dns_name(self.dns_name) # validate type dns_name elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'device_name': device_name_ = '' for text__content_ in child_.childNodes: device_name_ += text__content_.nodeValue self.device_name = device_name_ self.validate_device_name(self.device_name) # validate type device_name elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'netmask': netmask_ = '' for text__content_ in child_.childNodes: netmask_ += text__content_.nodeValue self.netmask = netmask_ self.validate_netmask(self.netmask) # validate type netmask elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'port_type': port_type_ = '' for text__content_ in child_.childNodes: port_type_ += text__content_.nodeValue self.port_type = port_type_ self.validate_port_type(self.port_type) # validate type port_type elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'active': if child_.firstChild: sval_ = child_.firstChild.nodeValue if sval_ in ('true', '1'): ival_ = True elif sval_ in ('false', '0'): ival_ = False else: raise ValueError('requires boolean -- %s' % child_.toxml()) self.active = ival_ elif child_.nodeType == Node.ELEMENT_NODE and \ nodeName_ == 'requred': if child_.firstChild: sval_ = child_.firstChild.nodeValue if sval_ in ('true', '1'): ival_ = True elif sval_ in ('false', '0'): ival_ = False else: raise ValueError('requires boolean -- %s' % child_.toxml()) self.requred = ival_
91b7fa5f4789cd99e181dad4d2401509c907da8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/91b7fa5f4789cd99e181dad4d2401509c907da8c/generateds_system_1_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 625, 67, 2867, 4278, 2359, 67, 2867, 67, 273, 875, 364, 977, 972, 1745, 67, 316, 1151, 27799, 3624, 3205, 30, 2359, 67, 2867, 67, 1011, 977, 972, 1745, 27799, 2159, 620, 365, 18, 625, 67, 2867, 273, 2359, 67, 2867, 67, 365, 18, 5662, 67, 625, 67, 2867, 12, 2890, 18, 625, 67, 2867, 13, 565, 468, 1954, 618, 2359, 67, 2867, 1327, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 10834, 26, 67, 2867, 4278, 9205, 26, 67, 2867, 67, 273, 875, 364, 977, 972, 1745, 67, 316, 1151, 27799, 3624, 3205, 30, 9205, 26, 67, 2867, 67, 1011, 977, 972, 1745, 27799, 2159, 620, 365, 18, 10834, 26, 67, 2867, 273, 9205, 26, 67, 2867, 67, 365, 18, 5662, 67, 10834, 26, 67, 2867, 12, 2890, 18, 10834, 26, 67, 2867, 13, 565, 468, 1954, 618, 9205, 26, 67, 2867, 1327, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 14926, 67, 529, 4278, 6605, 67, 529, 67, 273, 875, 364, 977, 972, 1745, 67, 316, 1151, 27799, 3624, 3205, 30, 6605, 67, 529, 67, 1011, 977, 972, 1745, 27799, 2159, 620, 365, 18, 14926, 67, 529, 273, 6605, 67, 529, 67, 365, 18, 5662, 67, 14926, 67, 529, 12, 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, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 4672, 309, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 625, 67, 2867, 4278, 2359, 67, 2867, 67, 273, 875, 364, 977, 972, 1745, 67, 316, 1151, 27799, 3624, 3205, 30, 2359, 67, 2867, 67, 1011, 977, 972, 1745, 27799, 2159, 620, 365, 18, 625, 67, 2867, 273, 2359, 67, 2867, 67, 365, 18, 5662, 67, 625, 67, 2867, 12, 2890, 18, 625, 67, 2867, 13, 565, 468, 1954, 618, 2359, 67, 2867, 1327, 1151, 27799, 2159, 559, 422, 2029, 18, 10976, 67, 8744, 471, 521, 7553, 67, 422, 296, 10834, 26, 67, 2867, 4278, 9205, 26, 67, 2867, 67, 2 ]
sage: Permutation([2,3,4,1]).longest_increasing_subsequence()
sage: Permutation([2,3,1,4]).longest_increasing_subsequence_length() 3 sage: all([i.longest_increasing_subsequence_length() == len(i.robinson_schensted()[0][0]) for i in Permutations(5)]) True """ r=[] for x in self: if max(r+[0]) > x: y = min(filter(lambda z: z > x, r)) r[r.index(y)] = x else: r.append(x) return len(r) def longest_increasing_subsequences(self): r""" Returns the list of the longest increasing subsequences of the permutation p. .. note:: The algorithm is not optimal. EXAMPLES:: sage: Permutation([2,3,4,1]).longest_increasing_subsequences()
def longest_increasing_subsequence(self): r""" Returns a list of the longest increasing subsequences of the permutation p.
bc86ea1f913675376e54e3a47fe8ca154d6b5350 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/bc86ea1f913675376e54e3a47fe8ca154d6b5350/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 267, 1793, 11730, 67, 1717, 6178, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 434, 326, 12163, 21006, 720, 17190, 434, 326, 17440, 293, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 267, 1793, 11730, 67, 1717, 6178, 12, 2890, 4672, 436, 8395, 2860, 279, 666, 434, 326, 12163, 21006, 720, 17190, 434, 326, 17440, 293, 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 ]
self.do_compute(dotgen, *args)
self.do_compute(dotgen, *args, **kwds)
def compute(self, translator, *args): self.translator = translator self.object_by_name = {} self.name_by_object = {} dotgen = DotGen(self.graph_name(*args)) dotgen.emit('mclimit=15.0')
d1cf2c49edc54d7c490c5773ef4a030cab527132 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/d1cf2c49edc54d7c490c5773ef4a030cab527132/graphpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 12, 2890, 16, 8333, 16, 380, 1968, 4672, 365, 18, 17879, 273, 8333, 365, 18, 1612, 67, 1637, 67, 529, 273, 2618, 365, 18, 529, 67, 1637, 67, 1612, 273, 2618, 3928, 4507, 273, 17502, 7642, 12, 2890, 18, 4660, 67, 529, 30857, 1968, 3719, 3928, 4507, 18, 18356, 2668, 81, 830, 1038, 33, 3600, 18, 20, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 1968, 3719, 3928, 4507, 18, 18356, 2668, 81, 830, 1038, 33, 3600, 18, 20, 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 ]
if T is None:
if T is None or T == float("inf"):
def select_by_poll(self, R, W, E, T): d = {} for f in R: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[fd] = select.POLLIN for f in W: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[fd] = (d.get(fd, 0) | select.POLLOUT) for f in E: if type(f) is types.IntType: fd = f else: fd = f.fileno() d[fd] = (d.get(fd, 0) | select.POLLIN | select.POLLOUT) p = select.poll() for fd, mask in d.items(): p.register(fd, mask) if T is None: poll_result = p.poll() else: poll_result = p.poll(T*1000) R0 = [] W0 = [] E0 = [] d = dict(poll_result) for f in R: if type(f) is types.IntType: fd = f else: fd = f.fileno() if (d.get(fd, 0) & (select.POLLIN|select.POLLHUP)) != 0: R0.append(f) for f in W: if type(f) is types.IntType: fd = f else: fd = f.fileno() if (d.get(fd, 0) & (select.POLLOUT)) != 0: W0.append(f) for f in E: if type(f) is types.IntType: fd = f else: fd = f.fileno() if (d.get(fd, 0) & select.POLLERR) != 0: E0.append(f) return R0,W0,E0
112ee2b67ad2dcc046910a8ee540a6c7f13e7284 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/924/112ee2b67ad2dcc046910a8ee540a6c7f13e7284/gxp_js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 1637, 67, 13835, 12, 2890, 16, 534, 16, 678, 16, 512, 16, 399, 4672, 302, 273, 2618, 364, 284, 316, 534, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273, 284, 469, 30, 5194, 273, 284, 18, 7540, 5764, 1435, 302, 63, 8313, 65, 273, 2027, 18, 14232, 20663, 364, 284, 316, 678, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273, 284, 469, 30, 5194, 273, 284, 18, 7540, 5764, 1435, 302, 63, 8313, 65, 273, 261, 72, 18, 588, 12, 8313, 16, 374, 13, 571, 2027, 18, 14232, 1502, 1693, 13, 364, 284, 316, 512, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273, 284, 469, 30, 5194, 273, 284, 18, 7540, 5764, 1435, 302, 63, 8313, 65, 273, 261, 72, 18, 588, 12, 8313, 16, 374, 13, 571, 2027, 18, 14232, 20663, 571, 2027, 18, 14232, 1502, 1693, 13, 293, 273, 2027, 18, 13835, 1435, 364, 5194, 16, 3066, 316, 302, 18, 3319, 13332, 293, 18, 4861, 12, 8313, 16, 3066, 13, 309, 399, 353, 599, 578, 399, 422, 1431, 2932, 10625, 6, 4672, 7672, 67, 2088, 273, 293, 18, 13835, 1435, 469, 30, 7672, 67, 2088, 273, 293, 18, 13835, 12, 56, 14, 18088, 13, 534, 20, 273, 5378, 678, 20, 273, 5378, 512, 20, 273, 5378, 302, 273, 2065, 12, 13835, 67, 2088, 13, 364, 284, 316, 534, 30, 309, 618, 12, 74, 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, 2027, 67, 1637, 67, 13835, 12, 2890, 16, 534, 16, 678, 16, 512, 16, 399, 4672, 302, 273, 2618, 364, 284, 316, 534, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273, 284, 469, 30, 5194, 273, 284, 18, 7540, 5764, 1435, 302, 63, 8313, 65, 273, 2027, 18, 14232, 20663, 364, 284, 316, 678, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 1702, 559, 30, 5194, 273, 284, 469, 30, 5194, 273, 284, 18, 7540, 5764, 1435, 302, 63, 8313, 65, 273, 261, 72, 18, 588, 12, 8313, 16, 374, 13, 571, 2027, 18, 14232, 1502, 1693, 13, 364, 284, 316, 512, 30, 309, 618, 12, 74, 13, 353, 1953, 18, 2 ]
width = self.screen.getmaxyx()[1] - 6 padding = width - len(PROMPTSTR)
def updateCurrentLine(self, s, tab=False, stringCompletion=False):
6812342bb945788db2863f4dad223ca80a6e0e6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11578/6812342bb945788db2863f4dad223ca80a6e0e6d/repl.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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3935, 1670, 12, 2890, 16, 272, 16, 3246, 33, 8381, 16, 533, 11238, 33, 8381, 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 ]
self.wfile.write(favico)
bufsize = 4 * 1024 Processing = True while Processing: data = favicon_fileobj.read(bufsize) if len(data) > 0: self.wfile.write(data) else: Processing = False favicon_fileobj.close()
def inner_run_cgi(self): ''' This is the inner part of the CGI handling ''' rest = self.path
310bcbd03a0bbca37d277d0e3547ff34570eebb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/310bcbd03a0bbca37d277d0e3547ff34570eebb3/roundup_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 2681, 67, 19062, 12, 2890, 4672, 9163, 1220, 353, 326, 3443, 1087, 434, 326, 385, 13797, 5057, 9163, 3127, 273, 365, 18, 803, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 67, 2681, 67, 19062, 12, 2890, 4672, 9163, 1220, 353, 326, 3443, 1087, 434, 326, 385, 13797, 5057, 9163, 3127, 273, 365, 18, 803, 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 ]
for multiField in self.__multiValueFields:
for multiField in self.__multiValueDefFields:
def __initializeDB(self): """ Create the tables """ retVal = self._query( "show tables" ) if not retVal[ 'OK' ]: return retVal
6df3e1dfd550d5095830cb4cb71d2151d3513a5a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/6df3e1dfd550d5095830cb4cb71d2151d3513a5a/TaskQueueDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11160, 2290, 12, 2890, 4672, 3536, 1788, 326, 4606, 3536, 12197, 273, 365, 6315, 2271, 12, 315, 4500, 4606, 6, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11160, 2290, 12, 2890, 4672, 3536, 1788, 326, 4606, 3536, 12197, 273, 365, 6315, 2271, 12, 315, 4500, 4606, 6, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 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 ]
if not re.match("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$", address):
if not re.match("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(\/[0-9]+)?$", address):
def validate_address(self, address):
0e6e4f9829bf9c8f055d7b88d4bed355c7a9e335 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12707/0e6e4f9829bf9c8f055d7b88d4bed355c7a9e335/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 2867, 12, 2890, 16, 1758, 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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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lst.append((mapping[x]['module'], opj(mapping[x]['rootdir'], version, f)))
lst.append(opj(mapping[x], version, f)) lst.sort()
def _get_migration_files(pkg, version, stage): """ return a list of tuple (module, file) """ m = self.migrations[pkg.name] lst = []
38bc19ac9aba788d1dd5341b321c09f35d22a9a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/38bc19ac9aba788d1dd5341b321c09f35d22a9a6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15746, 67, 2354, 12, 10657, 16, 1177, 16, 6009, 4672, 3536, 327, 279, 666, 434, 3193, 261, 2978, 16, 585, 13, 3536, 312, 273, 365, 18, 15642, 63, 10657, 18, 529, 65, 9441, 273, 5378, 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,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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 15746, 67, 2354, 12, 10657, 16, 1177, 16, 6009, 4672, 3536, 327, 279, 666, 434, 3193, 261, 2978, 16, 585, 13, 3536, 312, 273, 365, 18, 15642, 63, 10657, 18, 529, 65, 9441, 273, 5378, 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 ]
console.stdoutln("=" * 80)
console.stdoutln("=" * 80)
def html_tls_chain_optimization(self, chain): """Generates and returns the HTML string report analysis of a single TLS graphed chain. """ ## class HTMLReport() title = "Chain %s TLS Analysis of %s" % (chain.chain_id, self.struct_id) l = [self.html_head(title), self.html_title(title), '<center><a href="index.html">Back to Index</a></center>', '<br/>' ]
80aaf2a14dfcc5b684aad61f8ca72e81b353162c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/80aaf2a14dfcc5b684aad61f8ca72e81b353162c/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 5639, 67, 16689, 1588, 12, 2890, 16, 2687, 4672, 3536, 6653, 471, 1135, 326, 3982, 533, 2605, 6285, 434, 279, 2202, 8098, 2667, 329, 2687, 18, 3536, 7541, 667, 3982, 4820, 1435, 2077, 273, 315, 3893, 738, 87, 8098, 16318, 434, 738, 87, 6, 738, 261, 5639, 18, 5639, 67, 350, 16, 365, 18, 1697, 67, 350, 13, 225, 328, 225, 273, 306, 2890, 18, 2620, 67, 1978, 12, 2649, 3631, 365, 18, 2620, 67, 2649, 12, 2649, 3631, 2368, 5693, 4438, 69, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 17116, 67, 5639, 67, 16689, 1588, 12, 2890, 16, 2687, 4672, 3536, 6653, 471, 1135, 326, 3982, 533, 2605, 6285, 434, 279, 2202, 8098, 2667, 329, 2687, 18, 3536, 7541, 667, 3982, 4820, 1435, 2077, 273, 315, 3893, 738, 87, 8098, 16318, 434, 738, 87, 6, 738, 261, 5639, 18, 5639, 67, 350, 16, 365, 18, 1697, 67, 350, 13, 225, 328, 225, 273, 306, 2890, 18, 2620, 67, 1978, 12, 2649, 3631, 365, 18, 2620, 67, 2649, 12, 2649, 3631, 2368, 5693, 4438, 69, 3897, 1546, 1615, 18, 2620, 6441, 2711, 358, 3340, 1757, 69, 4695, 5693, 1870, 16, 2368, 2848, 18280, 308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
supported = ('html', 'html4css1', 'xhtml')
supported = ('odt', )
def get_level(self): return self.level
90e651e05f9b81a542e006f16d096b9926b75555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8194/90e651e05f9b81a542e006f16d096b9926b75555/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2815, 12, 2890, 4672, 327, 365, 18, 2815, 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 ]
"""
"""
def flps_roundrectangle(p1, p2, p3, p4, p5, p6): """ flps_roundrectangle(p1, p2, p3, p4, p5, p6) """ _flps_roundrectangle(p1, p2, p3, p4, p5, p6)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 4672, 3536, 1183, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 13, 3536, 225, 389, 2242, 1121, 67, 2260, 2607, 4341, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 13, 282, 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 ]
yield 'f', util.pconvert(np), st
yield 'f', np, st
def findfiles(s): work = [s] while work: top = work.pop() names = os.listdir(top) names.sort() # nd is the top of the repository dir tree nd = util.normpath(top[len(self.root) + 1:]) if nd == '.': nd = '' for f in names: np = os.path.join(nd, f) if seen(np): continue p = os.path.join(top, f) # don't trip over symlinks st = os.lstat(p) if stat.S_ISDIR(st.st_mode): ds = os.path.join(nd, f +'/') if statmatch(ds, st): work.append(p) if statmatch(np, st) and np in dc: yield 'm', util.pconvert(np), st elif statmatch(np, st): if self.supported_type(np, st): yield 'f', util.pconvert(np), st elif np in dc: yield 'm', util.pconvert(np), st
3e2626d917ff987b8712bce81b2ed9c2966d1fc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/3e2626d917ff987b8712bce81b2ed9c2966d1fc4/dirstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, 1435, 468, 5346, 353, 326, 1760, 434, 326, 3352, 1577, 2151, 5346, 273, 1709, 18, 7959, 803, 12, 3669, 63, 1897, 12, 2890, 18, 3085, 13, 397, 404, 30, 5717, 309, 5346, 422, 2611, 30, 5346, 273, 875, 364, 284, 316, 1257, 30, 1130, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 13, 309, 5881, 12, 6782, 4672, 1324, 293, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 284, 13, 468, 2727, 1404, 20654, 1879, 23146, 384, 273, 1140, 18, 80, 5642, 12, 84, 13, 309, 610, 18, 55, 67, 5127, 4537, 12, 334, 18, 334, 67, 3188, 4672, 3780, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 397, 11, 2473, 13, 309, 610, 1916, 12, 2377, 16, 384, 4672, 1440, 18, 6923, 12, 84, 13, 309, 610, 1916, 12, 6782, 16, 384, 13, 471, 1130, 316, 6744, 30, 2824, 296, 81, 2187, 1709, 18, 84, 6283, 12, 6782, 3631, 384, 1327, 610, 1916, 12, 6782, 16, 384, 4672, 309, 365, 18, 4127, 67, 723, 12, 6782, 16, 384, 4672, 2824, 296, 74, 2187, 1130, 16, 384, 1327, 1130, 316, 6744,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, 353, 326, 1760, 434, 326, 3352, 1577, 2151, 5346, 273, 1709, 18, 7959, 803, 12, 3669, 63, 1897, 12, 2890, 18, 3085, 13, 397, 404, 30, 5717, 309, 5346, 422, 2611, 30, 5346, 273, 875, 364, 284, 316, 1257, 30, 1130, 273, 1140, 18, 803, 18, 5701, 12, 4880, 16, 284, 13, 309, 5881, 12, 6782, 4672, 1324, 293, 273, 1140, 18, 803, 18, 5701, 12, 3669, 16, 284, 13, 468, 2727, 1404, 20654, 1879, 23146, 384, 273, 1140, 18, 80, 5642, 12, 84, 2 ]
@classmethod def to_distribution(cls, elem):
def distribution(self, elem):
def to_date(cls, elem): return Tree.Date( unit=elem.get('unit'), desc=collapse_wspace(get_child_text(elem, 'desc')), value=get_child_text(elem, 'value', float), minimum=get_child_text(elem, 'minimum', float), maximum=get_child_text(elem, 'maximum', float), )
5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 712, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 1626, 12, 2836, 33, 10037, 18, 588, 2668, 4873, 19899, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 5569, 6134, 3631, 460, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 1132, 2187, 1431, 3631, 5224, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 15903, 2187, 1431, 3631, 4207, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 15724, 2187, 1431, 3631, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 712, 12, 6429, 16, 3659, 4672, 327, 4902, 18, 1626, 12, 2836, 33, 10037, 18, 588, 2668, 4873, 19899, 3044, 33, 21405, 67, 91, 2981, 12, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 5569, 6134, 3631, 460, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 1132, 2187, 1431, 3631, 5224, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 15903, 2187, 1431, 3631, 4207, 33, 588, 67, 3624, 67, 955, 12, 10037, 16, 296, 15724, 2187, 1431, 3631, 262, 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 ]
self.text += nick
self.text += nick.decode('utf-8')
def shell_completion(self, user_list): if " " in self.text: after = " " # don't put the "," if it's not the begining of the sentence else: after = config.get('after_completion', ',')+" " after = config.get('after_completion', ',')+" " (y, x) = self.win.getyx() begin = self.text.split()[-1].encode('utf-8').lower() hit_list = [] # list of matching nicks for user in user_list: if user.nick.lower().startswith(begin): hit_list.append(user.nick) if len(hit_list) == 0: return end = False nick = '' last_key_tab = self.last_key_tab self.last_key_tab = True if len(hit_list) == 1: nick = hit_list[0] + after self.last_key_tab = False elif last_key_tab: for n in hit_list: if begin.lower() == n.lower(): nick = n+after # user DO want this completion (tabbed twice on it) self.last_key_tab = False if nick == '': while not end and len(nick) < len(hit_list[0]): nick = hit_list[0][:len(nick)+1] for hit in hit_list: if not hit.lower().startswith(nick.lower()): end = True break if end: nick = nick[:-1] x -= len(begin) self.win.move(y, x) # remove begin from the line self.win.clrtoeol() self.text = self.text[:-len(begin)] self.text += nick self.pos = len(self.text) self.win.addstr(nick) self.refresh()
68573a6598e61e55c0e3217e095d34b6f87f5932 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/68573a6598e61e55c0e3217e095d34b6f87f5932/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5972, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 309, 315, 315, 316, 365, 18, 955, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, 434, 326, 7515, 469, 30, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 261, 93, 16, 619, 13, 273, 365, 18, 8082, 18, 588, 93, 92, 1435, 2376, 273, 365, 18, 955, 18, 4939, 1435, 18919, 21, 8009, 3015, 2668, 3158, 17, 28, 16063, 8167, 1435, 6800, 67, 1098, 273, 5378, 4202, 468, 666, 434, 3607, 10909, 87, 364, 729, 316, 729, 67, 1098, 30, 309, 729, 18, 17091, 18, 8167, 7675, 17514, 1918, 12, 10086, 4672, 6800, 67, 1098, 18, 6923, 12, 1355, 18, 17091, 13, 309, 562, 12, 15989, 67, 1098, 13, 422, 374, 30, 327, 679, 273, 1083, 10909, 273, 875, 1142, 67, 856, 67, 7032, 273, 365, 18, 2722, 67, 856, 67, 7032, 365, 18, 2722, 67, 856, 67, 7032, 273, 1053, 309, 562, 12, 15989, 67, 1098, 13, 422, 404, 30, 10909, 273, 6800, 67, 1098, 63, 20, 65, 397, 1839, 365, 18, 2722, 67, 856, 67, 7032, 273, 1083, 1327, 1142, 67, 856, 67, 7032, 30, 364, 290, 316, 6800, 67, 1098, 30, 309, 2376, 18, 8167, 1435, 422, 290, 18, 8167, 13332, 10909, 273, 290, 15, 5205, 468, 729, 5467, 2545, 333, 8364, 261, 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, 5972, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 309, 315, 315, 316, 365, 18, 955, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, 434, 326, 7515, 469, 30, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 261, 93, 16, 619, 13, 273, 365, 18, 8082, 18, 588, 93, 92, 1435, 2376, 273, 365, 18, 955, 18, 4939, 1435, 18919, 21, 8009, 3015, 2668, 3158, 17, 28, 16063, 8167, 1435, 6800, 67, 1098, 273, 5378, 4202, 468, 666, 434, 3607, 10909, 87, 364, 729, 316, 729, 67, 2 ]
from wxPython.help import * app = wxPySimpleApp() provider = wxSimpleHelpProvider() wxHelpProvider_Set(provider) base = os.path.split(__file__)[0] config = os.path.abspath(os.path.join(base, 'stc-styles.rc.cfg'))
app = wx.PySimpleApp() provider = wx.SimpleHelpProvider() wx.HelpProvider.Set(provider) home = os.environ.get('HOME') if home: home = os.path.join(home, '.boa-constructor') if not os.path.exists(home): home = '.' else: home = '.' config = os.path.abspath(os.path.join(home, 'stc-styles.rc.cfg'))
def initSTC(stc, config, lang): """ Main module entry point. Initialise a wxSTC from given config file.""" (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo) = initFromConfig(config, lang) setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords)
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 882, 39, 12, 334, 71, 16, 642, 16, 3303, 4672, 3536, 12740, 1605, 1241, 1634, 18, 31739, 279, 7075, 882, 39, 628, 864, 642, 585, 12123, 261, 7066, 16, 2975, 14554, 16, 2154, 548, 1557, 16, 5687, 16, 675, 536, 2885, 1114, 1557, 16, 675, 536, 2885, 3621, 16, 1308, 7275, 2885, 1114, 1557, 16, 1308, 7275, 2885, 3621, 16, 2562, 7740, 16, 8512, 16, 7093, 16, 22500, 966, 13, 273, 1208, 22102, 12, 1425, 16, 3303, 13, 225, 444, 882, 39, 9725, 12, 334, 71, 16, 5687, 16, 2154, 548, 1557, 16, 2975, 14554, 16, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 882, 39, 12, 334, 71, 16, 642, 16, 3303, 4672, 3536, 12740, 1605, 1241, 1634, 18, 31739, 279, 7075, 882, 39, 628, 864, 642, 585, 12123, 261, 7066, 16, 2975, 14554, 16, 2154, 548, 1557, 16, 5687, 16, 675, 536, 2885, 1114, 1557, 16, 675, 536, 2885, 3621, 16, 1308, 7275, 2885, 1114, 1557, 16, 1308, 7275, 2885, 3621, 16, 2562, 7740, 16, 8512, 16, 7093, 16, 22500, 966, 13, 273, 1208, 22102, 12, 1425, 16, 3303, 13, 225, 444, 882, 39, 9725, 12, 334, 71, 16, 5687, 16, 2154, 548, 1557, 16, 2975, 14554, 16, 3303, 16, 8512, 16, 7093, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.xml=lambda prefix:prefix + "<string>%s</string>"%(self['value'].value.encode('utf-8'))
self.xml=lambda prefix:prefix + "<string>%s</string>"%(self['value'].value.replace('&','&amp;').encode('utf-8'))
def createFields(self): yield Enum(Bits(self, "marker_type", 4), {0: "Simple", 1: "Int", 2: "Real", 3: "Date", 4: "Data", 5: "ASCII String", 6: "UTF-16-BE String", 8: "UID", 10: "Array", 13: "Dict",}) markertype = self['marker_type'].value if markertype == 0: # Simple (Null) yield Enum(Bits(self, "value", 4), {0: "Null", 8: "False", 9: "True", 15: "Fill Byte",}) if self['value'].display == "False": self.xml=lambda prefix:prefix + "<false/>" elif self['value'].display == "True": self.xml=lambda prefix:prefix + "<true/>" else: self.xml=lambda prefix:prefix + ""
879aa46a777fb162d538d6b14d159fddff160ba3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9327/879aa46a777fb162d538d6b14d159fddff160ba3/bplist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, 890, 30, 315, 1626, 3113, 1059, 30, 315, 751, 3113, 1381, 30, 315, 13756, 514, 3113, 1666, 30, 315, 5159, 17, 2313, 17, 5948, 514, 3113, 1725, 30, 315, 3060, 3113, 1728, 30, 315, 1076, 3113, 5958, 30, 315, 5014, 3113, 6792, 5373, 723, 273, 365, 3292, 11145, 67, 723, 29489, 1132, 309, 5373, 723, 422, 374, 30, 468, 4477, 261, 2041, 13, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 1132, 3113, 1059, 3631, 288, 20, 30, 315, 2041, 3113, 1725, 30, 315, 8381, 3113, 2468, 30, 315, 5510, 3113, 4711, 30, 315, 8026, 3506, 3113, 6792, 309, 365, 3292, 1132, 29489, 5417, 422, 315, 8381, 6877, 365, 18, 2902, 33, 14661, 1633, 30, 3239, 397, 3532, 5743, 26293, 1327, 365, 3292, 1132, 29489, 5417, 422, 315, 5510, 6877, 365, 18, 2902, 33, 14661, 1633, 30, 3239, 397, 3532, 3767, 26293, 469, 30, 365, 18, 2902, 33, 14661, 1633, 30, 3239, 397, 1408, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2314, 12, 2890, 4672, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 11145, 67, 723, 3113, 1059, 3631, 288, 20, 30, 315, 5784, 3113, 404, 30, 315, 1702, 3113, 576, 30, 315, 6955, 3113, 890, 30, 315, 1626, 3113, 1059, 30, 315, 751, 3113, 1381, 30, 315, 13756, 514, 3113, 1666, 30, 315, 5159, 17, 2313, 17, 5948, 514, 3113, 1725, 30, 315, 3060, 3113, 1728, 30, 315, 1076, 3113, 5958, 30, 315, 5014, 3113, 6792, 5373, 723, 273, 365, 3292, 11145, 67, 723, 29489, 1132, 309, 5373, 723, 422, 374, 30, 468, 4477, 261, 2041, 13, 2824, 6057, 12, 6495, 12, 2890, 16, 315, 1132, 3113, 1059, 3631, 288, 20, 30, 315, 2041, 3113, 1725, 30, 2 ]
return getattr(self,name)(url, realm) def retry_http_basic_auth(self, url, realm, data):
if data is None: return getattr(self,name)(url, realm) else: return getattr(self,name)(url, realm, data) def retry_http_basic_auth(self, url, realm, data=None):
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): if headers.has_key('www-authenticate'): stuff = headers['www-authenticate'] import re match = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"', stuff) if match: scheme, realm = match.groups() if string.lower(scheme) == 'basic': name = 'retry_' + self.type + '_basic_auth' return getattr(self,name)(url, realm)
3c8baedaf8c69bd92f06a7de5f16cde19a9beb55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c8baedaf8c69bd92f06a7de5f16cde19a9beb55/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 5591, 17, 22035, 11, 4672, 10769, 273, 1607, 3292, 5591, 17, 22035, 3546, 1930, 283, 845, 273, 283, 18, 1916, 2668, 63, 521, 88, 5772, 8178, 521, 88, 7941, 63, 521, 88, 3737, 24056, 1546, 8178, 6, 5772, 2225, 2187, 10769, 13, 309, 845, 30, 4355, 16, 11319, 273, 845, 18, 4650, 1435, 309, 533, 18, 8167, 12, 9068, 13, 422, 296, 13240, 4278, 508, 273, 296, 9620, 4623, 397, 365, 18, 723, 397, 2070, 13240, 67, 1944, 11, 327, 3869, 12, 2890, 16, 529, 21433, 718, 16, 11319, 13, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 880, 16, 4253, 16, 393, 710, 16, 17460, 16, 1607, 16, 501, 33, 7036, 4672, 309, 1607, 18, 5332, 67, 856, 2668, 5591, 17, 22035, 11, 4672, 10769, 273, 1607, 3292, 5591, 17, 22035, 3546, 1930, 283, 845, 273, 283, 18, 1916, 2668, 63, 521, 88, 5772, 8178, 521, 88, 7941, 63, 521, 88, 3737, 24056, 1546, 8178, 6, 5772, 2225, 2187, 10769, 13, 309, 845, 30, 4355, 16, 11319, 273, 845, 18, 4650, 1435, 309, 533, 18, 8167, 12, 9068, 13, 422, 296, 13240, 4278, 508, 273, 296, 9620, 4623, 397, 365, 18, 723, 397, 2070, 13240, 67, 1944, 11, 327, 3869, 12, 2890, 16, 529, 21433, 718, 16, 2 ]
w = IECore.Writer.create(croppedImg, outputfile) w.write() w = None r = IECore.Reader.create(outputfile) testImg = r.read() if not resetOrigin: dyw = croppedImg.displayWindow dtw = croppedImg.dataWindow dyw.max -= dyw.min dtw.max -= dyw.min dtw.min -= dyw.min dyw.min = IECore.V2i( 0,0 ) croppedImg.displayWindow = dyw croppedImg.dataWindow = dtw if croppedImg == testImg: continue errors.append( "Crop test case failed:" + str(testCase) + ". Cropped image: " + str(croppedImg.displayWindow) + " " + str(croppedImg.dataWindow) + " Loaded image: " + str(testImg.displayWindow) + " " + str(testImg.dataWindow) )
errors.append( "Crop test case failed:" + str(testCase) + ". Cropped image: " + str(croppedImg.displayWindow) + " " + str(croppedImg.dataWindow) + " Loaded image: " + str(testImg.displayWindow) + " " + str(testImg.dataWindow) )
def __testCrop( self, inputfile, outputfile, tests ): r = IECore.Reader.create(inputfile) img = r.read() self.assertEqual(type(img), IECore.ImagePrimitive)
cdf5cd230deb1ad29125cf70bd9fc056cd8f7800 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/cdf5cd230deb1ad29125cf70bd9fc056cd8f7800/ImageCropOp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231, 5812, 12, 723, 12, 6081, 3631, 10897, 4670, 18, 2040, 9840, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3813, 19729, 12, 365, 16, 810, 768, 16, 876, 768, 16, 7434, 262, 30, 436, 273, 10897, 4670, 18, 2514, 18, 2640, 12, 2630, 768, 13, 3774, 273, 436, 18, 896, 1435, 365, 18, 11231, 5812, 12, 723, 12, 6081, 3631, 10897, 4670, 18, 2040, 9840, 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 ]
original = '\n'.join(original) res['text']=original
res['text']= '\n'.join(original)
def get_reply_defaults(self, cr, uid, fields, context=None): """ This function gets default values for reply mail """ hist_obj = self.pool.get('crm.case.history') res_ids = context and context.get('active_ids', []) or []
c00448168e4375de7ebc0ec1f8f0b588dd1bea58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c00448168e4375de7ebc0ec1f8f0b588dd1bea58/crm_send_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10629, 67, 7606, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 364, 4332, 4791, 3536, 5356, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 3353, 81, 18, 3593, 18, 8189, 6134, 400, 67, 2232, 273, 819, 471, 819, 18, 588, 2668, 3535, 67, 2232, 2187, 5378, 13, 578, 5378, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10629, 67, 7606, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 364, 4332, 4791, 3536, 5356, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 3353, 81, 18, 3593, 18, 8189, 6134, 400, 67, 2232, 273, 819, 471, 819, 18, 588, 2668, 3535, 67, 2232, 2187, 5378, 13, 578, 5378, 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 index < self._initial_form_count:
if index < (is_dojo_1_0 and self._total_form_count or self.total_form_count()):
def add_fields(self, form, index): """Using the dojango form fields instead of the django ones""" if self.can_order: # Only pre-fill the ordering field for initial forms. if index < self._initial_form_count: form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_(u'Order'), initial=index+1, required=False) else: form.fields[ORDERING_FIELD_NAME] = IntegerField(label=_(u'Order'), required=False) if self.can_delete: form.fields[DELETION_FIELD_NAME] = BooleanField(label=_(u'Delete'), required=False)
1b9ab90b428d201977ef9bf43081dbf0b85d7a6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12008/1b9ab90b428d201977ef9bf43081dbf0b85d7a6f/formsets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2821, 12, 2890, 16, 646, 16, 770, 4672, 3536, 7736, 326, 741, 9142, 646, 1466, 3560, 434, 326, 13710, 5945, 8395, 309, 365, 18, 4169, 67, 1019, 30, 468, 5098, 675, 17, 5935, 326, 9543, 652, 364, 2172, 10138, 18, 225, 309, 770, 411, 261, 291, 67, 2896, 30952, 67, 21, 67, 20, 471, 365, 6315, 4963, 67, 687, 67, 1883, 578, 365, 18, 4963, 67, 687, 67, 1883, 1435, 4672, 646, 18, 2821, 63, 7954, 1360, 67, 6776, 67, 1985, 65, 273, 2144, 974, 12, 1925, 33, 67, 12, 89, 11, 2448, 19899, 2172, 33, 1615, 15, 21, 16, 1931, 33, 8381, 13, 469, 30, 646, 18, 2821, 63, 7954, 1360, 67, 6776, 67, 1985, 65, 273, 2144, 974, 12, 1925, 33, 67, 12, 89, 11, 2448, 19899, 1931, 33, 8381, 13, 309, 365, 18, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2821, 12, 2890, 16, 646, 16, 770, 4672, 3536, 7736, 326, 741, 9142, 646, 1466, 3560, 434, 326, 13710, 5945, 8395, 309, 365, 18, 4169, 67, 1019, 30, 468, 5098, 675, 17, 5935, 326, 9543, 652, 364, 2172, 10138, 18, 225, 309, 770, 411, 261, 291, 67, 2896, 30952, 67, 21, 67, 20, 471, 365, 6315, 4963, 67, 687, 67, 1883, 578, 365, 18, 4963, 67, 687, 67, 1883, 1435, 4672, 646, 18, 2821, 63, 7954, 1360, 67, 6776, 67, 1985, 65, 273, 2144, 974, 12, 1925, 33, 67, 12, 89, 11, 2448, 19899, 2172, 33, 1615, 15, 21, 16, 1931, 33, 8381, 13, 469, 30, 646, 18, 2821, 63, 7954, 1360, 67, 6776, 67, 1985, 2 ]
BoolParam(True))
BoolParam(default_warn))
def warning(*msg): _logger.warning('WARNING theano.configdefaults: '+' '.join(msg))
43947ed93f0c38cb412ff0085e1e1de998a69522 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/43947ed93f0c38cb412ff0085e1e1de998a69522/configdefaults.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 30857, 3576, 4672, 389, 4901, 18, 8551, 2668, 9511, 326, 31922, 18, 1425, 7606, 30, 10058, 2418, 5701, 12, 3576, 3719, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3436, 30857, 3576, 4672, 389, 4901, 18, 8551, 2668, 9511, 326, 31922, 18, 1425, 7606, 30, 10058, 2418, 5701, 12, 3576, 3719, 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, -100, -100, -100, -100, -100, -100 ]
yield i, addr
final = '\tjmp' in line yield i, addr, final
def findjumps(self): text = self.disassemble() lines = text.splitlines() for i, line in enumerate(lines): if '\tj' not in line: # poor heuristic to recognize lines that continue # could be jump instructions addrs = list(lineaddresses(line)) if not addrs: continue addr = addrs[-1] yield i, addr if self.fallthrough: yield len(lines), self.addr + len(self.data)
43cb55866d1a9bd69726337a918ff0ee5df828de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/43cb55866d1a9bd69726337a918ff0ee5df828de/viewcode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 78, 23868, 12, 2890, 4672, 977, 273, 365, 18, 2251, 29676, 1435, 2362, 273, 977, 18, 4939, 3548, 1435, 364, 277, 16, 980, 316, 4241, 12, 3548, 4672, 309, 2337, 88, 78, 11, 486, 316, 980, 30, 468, 8275, 280, 25833, 358, 21431, 2362, 716, 1324, 1850, 468, 3377, 506, 11833, 12509, 11755, 273, 666, 12, 1369, 13277, 12, 1369, 3719, 309, 486, 11755, 30, 1324, 3091, 273, 11755, 18919, 21, 65, 727, 273, 2337, 88, 21894, 11, 316, 980, 2824, 277, 16, 3091, 16, 727, 309, 365, 18, 25602, 10064, 30, 2824, 562, 12, 3548, 3631, 365, 18, 4793, 397, 562, 12, 2890, 18, 892, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 78, 23868, 12, 2890, 4672, 977, 273, 365, 18, 2251, 29676, 1435, 2362, 273, 977, 18, 4939, 3548, 1435, 364, 277, 16, 980, 316, 4241, 12, 3548, 4672, 309, 2337, 88, 78, 11, 486, 316, 980, 30, 468, 8275, 280, 25833, 358, 21431, 2362, 716, 1324, 1850, 468, 3377, 506, 11833, 12509, 11755, 273, 666, 12, 1369, 13277, 12, 1369, 3719, 309, 486, 11755, 30, 1324, 3091, 273, 11755, 18919, 21, 65, 727, 273, 2337, 88, 21894, 11, 316, 980, 2824, 277, 16, 3091, 16, 727, 309, 365, 18, 25602, 10064, 30, 2824, 562, 12, 3548, 3631, 365, 18, 4793, 397, 562, 12, 2890, 18, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.DrawRect(self.sel_key, self.grid_color) self.DrawRect(key, self.sel_color, sel_size)
self.DrawRect(self.sel_key, self.GetColor(COLOR_GRID_LINES), sel_size) self.DrawRect(key, self.GetColor(COLOR_HIGHLIGHT_BACKGROUND), sel_size)
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6766, 4245, 12, 2890, 16, 498, 4672, 357, 67, 1467, 273, 404, 468, 2424, 7876, 4421, 365, 18, 6493, 6120, 12, 2890, 18, 1786, 67, 856, 16, 365, 18, 823, 67, 3266, 16, 357, 67, 1467, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6766, 4245, 12, 2890, 16, 498, 4672, 357, 67, 1467, 273, 404, 468, 2424, 7876, 4421, 365, 18, 6493, 6120, 12, 2890, 18, 1786, 67, 856, 16, 365, 18, 823, 67, 3266, 16, 357, 67, 1467, 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 ]
self._writer.end_element('table')
self._writer.end('table')
def _write_test_metadata(self, test): self._start_suite_or_test_metadata(test) if test.timeout.secs < 0: tout = '' else: tout = utils.secs_to_timestr(test.timeout.secs) if test.timeout.message: tout += ' | ' + test.timeout.message self._write_metadata_row('Timeout', tout) self._write_metadata_row('Tags', ', '.join(test.tags)) self._writer.end_element('table')
f33f03560eaa42dec6e8352d9e273211d12d6c41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/f33f03560eaa42dec6e8352d9e273211d12d6c41/testdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 3813, 67, 4165, 12, 2890, 16, 1842, 4672, 365, 6315, 1937, 67, 30676, 67, 280, 67, 3813, 67, 4165, 12, 3813, 13, 309, 1842, 18, 4538, 18, 21317, 411, 374, 30, 358, 322, 273, 875, 469, 30, 358, 322, 273, 2990, 18, 21317, 67, 869, 67, 8293, 313, 12, 3813, 18, 4538, 18, 21317, 13, 309, 1842, 18, 4538, 18, 2150, 30, 358, 322, 1011, 296, 571, 296, 397, 1842, 18, 4538, 18, 2150, 365, 6315, 2626, 67, 4165, 67, 492, 2668, 2694, 2187, 358, 322, 13, 365, 6315, 2626, 67, 4165, 67, 492, 2668, 3453, 2187, 2265, 2418, 5701, 12, 3813, 18, 4156, 3719, 365, 6315, 6299, 18, 409, 67, 2956, 2668, 2121, 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,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538, 18, 21317, 411, 374, 30, 358, 322, 273, 875, 469, 30, 358, 322, 273, 2990, 18, 21317, 67, 869, 67, 8293, 313, 12, 3813, 18, 4538, 18, 21317, 13, 309, 1842, 18, 4538, 18, 2150, 30, 358, 322, 1011, 296, 571, 296, 397, 1842, 18, 4538, 18, 2150, 365, 6315, 2626, 67, 4165, 67, 492, 2668, 2694, 2187, 358, 322, 13, 365, 6315, 2626, 67, 4165, 67, 492, 2668, 3453, 2187, 2265, 2418, 5701, 12, 3813, 18, 4156, 3719, 365, 6315, 6299, 18, 409, 67, 2956, 2668, 2121, 6134, 2 ]
if not default:
if default is None:
def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values
89e7934e7df3be2c7029e87b9faf5c389bb4a5b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/89e7934e7df3be2c7029e87b9faf5c389bb4a5b5/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 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, 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, 981, 30, 1652, 1610, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 5631, 864, 1409, 1807, 501, 598, 777, 2097, 1466, 924, 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._write('%s*failed*\n' % test_dict['name'].ljust(30,'_'))
self._write('%s*FAILED*\n' % test_dict['name'].ljust(30,'_'))
def simpleSummary(self): #write simple summary self._write("\n*********** TEST RESULTS ************\n*************************************\n") for suite_dict in self.suiteList: for test_dict in suite_dict['testlist']: if test_dict['result'] == False: self._write('%s*failed*\n' % test_dict['name'].ljust(30,'_')) else: self._write('%s passed \n' % test_dict['name'].ljust(30,'_')) self._write("*************************************\n")
7132caf66727358a92838fef305974dc3ded0de8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7132caf66727358a92838fef305974dc3ded0de8/TestOutput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 4733, 12, 2890, 4672, 468, 2626, 4143, 4916, 365, 6315, 2626, 31458, 82, 1644, 14465, 22130, 17210, 55, 380, 1644, 636, 12174, 82, 5021, 1007, 12174, 82, 7923, 364, 11371, 67, 1576, 316, 365, 18, 30676, 682, 30, 364, 1842, 67, 1576, 316, 11371, 67, 1576, 3292, 3813, 1098, 3546, 30, 309, 1842, 67, 1576, 3292, 2088, 3546, 422, 1083, 30, 365, 6315, 2626, 29909, 87, 14, 11965, 12174, 82, 11, 738, 1842, 67, 1576, 3292, 529, 29489, 80, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 4733, 12, 2890, 4672, 468, 2626, 4143, 4916, 365, 6315, 2626, 31458, 82, 1644, 14465, 22130, 17210, 55, 380, 1644, 636, 12174, 82, 5021, 1007, 12174, 82, 7923, 364, 11371, 67, 1576, 316, 365, 18, 30676, 682, 30, 364, 1842, 67, 1576, 316, 11371, 67, 1576, 3292, 3813, 1098, 3546, 30, 309, 1842, 67, 1576, 3292, 2088, 3546, 422, 1083, 30, 365, 6315, 2626, 29909, 87, 14, 11965, 12174, 82, 11, 738, 1842, 67, 1576, 3292, 529, 29489, 80, 3732, 12, 5082, 11189, 4623, 3719, 469, 30, 365, 6315, 2626, 29909, 87, 2275, 521, 82, 11, 738, 1842, 67, 1576, 3292, 529, 29489, 80, 3732, 12, 5082, 11189, 4623, 3719, 365, 6315, 2626, 2932, 5021, 1007, 12174, 2 ]
primary = (method != 'GET' and lst.pop(0)) or None
if method not in ['POST', 'GET', 'any']: primary = lst.pop(0) else: primary = None
def requirements_for(meth): """Returns a new dict to be used for all route creation as the route options""" opts = options.copy() if method != 'any': opts['conditions'] = {'method':[meth]} return opts
31b71a664a34f649b1ec2d6a0bdb62b44b668467 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12081/31b71a664a34f649b1ec2d6a0bdb62b44b668467/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8433, 67, 1884, 12, 27305, 4672, 3536, 1356, 279, 394, 2065, 358, 506, 1399, 364, 777, 1946, 6710, 487, 326, 1946, 702, 8395, 1500, 273, 702, 18, 3530, 1435, 309, 707, 480, 296, 2273, 4278, 1500, 3292, 6381, 3546, 273, 13666, 2039, 4278, 63, 27305, 18322, 327, 1500, 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 ]
sampleRate=0
sampleRate=float(0)
def checkOpts(self): #Check for existance of [condor] section files condorOptList=self.iniOpts.options('condor') fileNotFound=False homedirectory=os.path.abspath(str(os.getenv('HOME')))+'/' for entry in condorOptList: optValue=self.iniOpts.get('condor',entry) if optValue.startswith('~/'): newValue=os.path.normpath(optValue.replace('~/',homedirectory)) self.iniOpts.set('condor',entry,newValue) optValue=newValue if str(optValue).__contains__('/'): if not os.path.exists(str(optValue)): self.errList.append('Can not find :'+str(entry)+':'+str(optValue)) fileNotFound=True if fileNotFound: LALpath=os.getenv('PATH') pathsToSearch=[] self.errList.append('Try looking for [condor] program paths in:') for entry in LALpath.split(':'): if (entry.__contains__('lal') and entry.__contains__('bin')): self.errList.append(entry) #Check [tracksearchbase] section lambdaH=0 lambdaL=1 lambdaH=self.iniOpts.get('tracksearchbase','start_threshold') lambdaL=self.iniOpts.get('tracksearchbase','member_threshold') if lambdaL > lambdaH : self.errList.append('Error invalid choice for lambda parameters') self.errList.append('Lh:'+str(lambdaH)+' Ll:'+str(lambdaL)) CL=float(self.iniOpts.get('tracksearchbase','length_threshold')) if CL < 3: self.errList.append('Error invalid choice for curve length threshold') IP=float(self.iniOpts.get('tracksearchbase','power_threshold')) if IP < 0: self.errList.append('Error invalid choice for integrated power threshold') #Check [tracksearchtime] section WS=1 NOFB=0 WS=int(self.iniOpts.get('tracksearchtime','window_size')) if self.iniOpts.has_option('tracksearchtime','number_of_freq_bins'): NOFB=int(self.iniOpts.get('tracksearchtime','number_of_freq_bins')) else: NOFB=0 self.errList.append('It appears that in section tracksearchtime option number_of_freq_bins is missing!') if WS > NOFB: self.errList.append('Error window length inconsistent!') #Read expected job sampling rate if self.iniOpts.has_option('tracksearchtime','sample_rate'): sampleRate=float(self.iniOpts.get('tracksearchtime','sample_rate')) else: self.errList.append('It appears that sample_rate option is missing in ini file!.'); sampleRate=0 #Check for consistent PSD smoothing bin count! if self.iniOpts.has_option('tracksearchtime','whiten_level'): if self.iniOpts.get('tracksearchtime','whiten_level') > 0: if self.iniOpts.has_option('tracksearchtime','smooth_average_spectrum'): SAP=int(self.iniOpts.get('tracksearchtime','smooth_average_spectrum')) else: SAP=0 if self.iniOpts.has_option('layerconfig','layer1TimeScale'): LoTS=float(self.iniOpts.get('layerconfig','layer1TimeScale')) else: LoTS=0 if self.iniOpts.has_option('layerconfig','layer1SetSize'): LOSS=float(self.iniOpts.get('layerconfig','layer1SetSize')) else: LOSS=0 if (((LOSS*LoTS*sampleRate)/2)<SAP): trySAP=int(((LoTS*sampleRate)/2.0)*0.05) self.errList.append('It appears that smooth_average_spectrum option is inconsistent! Try this value '+str(trySAP)+'. One rule of thumb is: ((fs*dT)/2)*0.05') #Check [multichannel] section if present if self.iniOpts.has_section('multichannel'): for channel in self.iniOpts.options('multichannel'): channelEntry=self.iniOpts.get('multichannel',channel).strip() if (channelEntry==''): sys.stdout.write("Found blank channel line for,"+str(channel)) sys.stdout.write("Deleting that key from installation.") self.iniOpts.remove_option('multichannel',channel) #Check [layerconfig] section LTBS=self.iniOpts.get('layerconfig','layerTopBlockSize') layerOpts=self.iniOpts.options('layerconfig') layerOpts.sort() layerTimes=[] layerTimesOrig=[] layerTimesKey=[] layerSetSizeKey=[] topLayerBlock=LTBS for entry in layerOpts: optValue=float(self.iniOpts.get('layerconfig',entry)) if str(entry).lower().__contains__('timescale'): layerTimes.append(optValue) layerTimesOrig.append(optValue) layerTimesKey.append([int(str(entry).lower().strip("layer").strip("timescale")),optValue]) if str(entry).lower().__contains__('setsize'): layerSetSizeKey.append([int(str(entry).lower().strip("layer").strip("setsize")),optValue]) layerTimes.sort() if layerTimesOrig != layerTimes: self.errList.append('Error inconsistent layer time scales!') #Check that the amount of work given is less than equal to available data in segment block # know as the top layer block layerSetSizeKey.sort() layerTimesKey.sort() for index in range(0,layerTimesKey.__len__()): if float(layerSetSizeKey[index][1]) * float(layerTimesKey[index][1]) > topLayerBlock: self.errList.append('Error inconsistent assigned workload for layerSetSize and layerTimeScale options. Level: '+str(index+1)) #Give memory use estimate with warning! floatSize=4 self.memoryUseEstimate=(sampleRate*floatSize*LTBS*9)/(1024*1024) #Check [pylibraryfiles] section condorOptList=self.iniOpts.options('pylibraryfiles') for entry in condorOptList: optValue=self.iniOpts.get('pylibraryfiles',entry) if optValue.startswith('~/'): newValue=os.path.normpath(optValue.replace('~/',homedirectory)) self.iniOpts.set('condor',entry,newValue) optValue=newValue if str(optValue).__contains__('/'): if not os.path.exists(str(optValue)): self.errList.append('Can not find python library file:'+str(entry)+':'+str(optValue))
42746fa8e162b01056daa972aafc5f2435e7cfee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/42746fa8e162b01056daa972aafc5f2435e7cfee/tracksearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5476, 12, 2890, 4672, 468, 1564, 364, 1005, 1359, 434, 306, 10013, 280, 65, 2442, 1390, 6941, 280, 6179, 682, 33, 2890, 18, 8767, 5476, 18, 2116, 2668, 10013, 280, 6134, 585, 2768, 33, 8381, 13995, 329, 1292, 33, 538, 18, 803, 18, 5113, 803, 12, 701, 12, 538, 18, 588, 3074, 2668, 14209, 11, 20349, 6797, 2473, 364, 1241, 316, 6941, 280, 6179, 682, 30, 2153, 620, 33, 2890, 18, 8767, 5476, 18, 588, 2668, 10013, 280, 2187, 4099, 13, 309, 2153, 620, 18, 17514, 1918, 2668, 98, 2473, 4672, 6129, 33, 538, 18, 803, 18, 7959, 803, 12, 3838, 620, 18, 2079, 2668, 98, 19, 2187, 17125, 329, 1292, 3719, 365, 18, 8767, 5476, 18, 542, 2668, 10013, 280, 2187, 4099, 16, 2704, 620, 13, 2153, 620, 33, 2704, 620, 309, 609, 12, 3838, 620, 2934, 972, 12298, 972, 2668, 2473, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 701, 12, 3838, 620, 3719, 30, 365, 18, 370, 682, 18, 6923, 2668, 2568, 486, 1104, 22974, 15, 701, 12, 4099, 13, 6797, 2497, 15, 701, 12, 3838, 620, 3719, 585, 2768, 33, 5510, 309, 585, 2768, 30, 511, 1013, 803, 33, 538, 18, 588, 3074, 2668, 4211, 6134, 2953, 774, 2979, 33, 8526, 365, 18, 370, 682, 18, 6923, 2668, 7833, 7849, 364, 306, 10013, 280, 65, 5402, 2953, 316, 2497, 13, 364, 1241, 316, 511, 1013, 803, 18, 4939, 2668, 2497, 4672, 309, 261, 4099, 16186, 12298, 972, 2668, 80, 287, 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, 866, 5476, 12, 2890, 4672, 468, 1564, 364, 1005, 1359, 434, 306, 10013, 280, 65, 2442, 1390, 6941, 280, 6179, 682, 33, 2890, 18, 8767, 5476, 18, 2116, 2668, 10013, 280, 6134, 585, 2768, 33, 8381, 13995, 329, 1292, 33, 538, 18, 803, 18, 5113, 803, 12, 701, 12, 538, 18, 588, 3074, 2668, 14209, 11, 20349, 6797, 2473, 364, 1241, 316, 6941, 280, 6179, 682, 30, 2153, 620, 33, 2890, 18, 8767, 5476, 18, 588, 2668, 10013, 280, 2187, 4099, 13, 309, 2153, 620, 18, 17514, 1918, 2668, 98, 2473, 4672, 6129, 33, 538, 18, 803, 18, 7959, 803, 12, 3838, 620, 18, 2079, 2668, 98, 19, 2187, 17125, 329, 1292, 3719, 365, 18, 8767, 5476, 18, 2 ]
avg = values[0] return (v, n, avg) def generateVarianceDetailPage(self, pagename, tests, startdate, enddate):
mean = values[0] return (stdDev, count, mean) def generateDetailPage(self, pagename, tests, startdate, enddate):
def variance(self, values): n = len(values) v = 0 avg = 0
529018113dc78215bd476acf6fba265caad9be59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/529018113dc78215bd476acf6fba265caad9be59/perf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12380, 12, 2890, 16, 924, 4672, 290, 282, 273, 562, 12, 2372, 13, 331, 282, 273, 374, 11152, 273, 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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0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12380, 12, 2890, 16, 924, 4672, 290, 282, 273, 562, 12, 2372, 13, 331, 282, 273, 374, 11152, 273, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
vim.current.window.cursor = (lineno, 0)
self.cursor = (lineno, 0)
def goto_line(self, lineno): vim.current.window.cursor = (lineno, 0)
5c72b0eb3d32899f744a2be08ce57312b3a3dd75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8177/5c72b0eb3d32899f744a2be08ce57312b3a3dd75/ropevim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2897, 67, 1369, 12, 2890, 16, 7586, 4672, 18727, 18, 2972, 18, 5668, 18, 9216, 273, 261, 17782, 16, 374, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2897, 67, 1369, 12, 2890, 16, 7586, 4672, 18727, 18, 2972, 18, 5668, 18, 9216, 273, 261, 17782, 16, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.drawGUI() EVT_CLOSE(self, self.done) EVT_BUTTON(self, self.cancelButton.GetId(), self.done) EVT_CHOOSE_FILE(self, self.onChooseFile) EVT_UPDATE_STATUS(self, self.onUpdateStatus) EVT_FINISH_STATUS(self, self.onFinishEvent) EVT_FAIL_STATUS(self, self.onFailEvent) EVT_ERROR_STATUS(self, self.onErrorEvent) def drawGUI(self): panel = wxPanel(self, -1) colSizer = wxBoxSizer(wxVERTICAL) colSizer.Add(wxStaticText(panel, -1, 'Saving:'), 0, wxALIGN_LEFT|wxTOP, 7)
panel = wxPanel(frame, -1) colSizer = wxFlexGridSizer(cols = 1, vgap = 7) colSizer.Add(wxStaticText(panel, -1, 'Saving:'), 0, wxEXPAND)
def __init__(self, flag): wxFrame.__init__(self, None, -1, 'BitTorrent download', size = wxSize(550, 260)) self.flag = flag self.fin = false self.shown = false self.drawGUI()
430aa782d5a96eea7ba9a579f334d6b2c77bbde2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/430aa782d5a96eea7ba9a579f334d6b2c77bbde2/btdownloadgui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2982, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 16, 576, 4848, 3719, 365, 18, 6420, 273, 2982, 365, 18, 926, 273, 629, 365, 18, 674, 995, 273, 629, 365, 18, 9446, 43, 5370, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2982, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 296, 5775, 27266, 547, 4224, 2187, 963, 273, 7075, 1225, 12, 2539, 20, 16, 576, 4848, 3719, 365, 18, 6420, 273, 2982, 365, 18, 926, 273, 629, 365, 18, 674, 995, 273, 629, 365, 18, 9446, 43, 5370, 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 ]
for key in keys: if key not in self.excludes: missing.append(key) return missing
maybe = [] for name in self.badmodules: if name in self.excludes: continue i = name.rfind(".") if i < 0: missing.append(name) continue subname = name[i+1:] pkgname = name[:i] pkg = self.modules.get(pkgname) if pkg is not None: if pkgname in self.badmodules[name]: missing.append(name) elif subname in pkg.globalnames: pass elif pkg.starimports: maybe.append(name) else: missing.append(name) else: missing.append(name) missing.sort() maybe.sort() return missing, maybe
def any_missing(self): keys = self.badmodules.keys() missing = [] for key in keys: if key not in self.excludes: # Missing, and its not supposed to be missing.append(key) return missing
dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dbfb2a7b450d883612d89aa4a2fb95a93f90cf3d/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1281, 67, 7337, 12, 2890, 4672, 1311, 273, 365, 18, 8759, 6400, 18, 2452, 1435, 3315, 273, 5378, 364, 498, 316, 1311, 30, 309, 498, 486, 316, 365, 18, 338, 8993, 30, 468, 10230, 16, 471, 2097, 486, 18405, 358, 506, 3315, 18, 6923, 12, 856, 13, 327, 3315, 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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, 365, 18, 338, 8993, 30, 468, 10230, 16, 471, 2097, 486, 18405, 358, 506, 3315, 18, 6923, 12, 856, 13, 327, 3315, 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 ]
try: f = eval('self.repr_' + typename) except AttributeError:
if hasattr(self, 'repr_' + typename): return getattr(self, 'repr_' + typename)(x, level) else:
def repr1(self, x, level): typename = `type(x)`[7:-2] # "<type '......'>" if ' ' in typename: parts = string.split(typename) typename = string.joinfields(parts, '_') try: f = eval('self.repr_' + typename) except AttributeError: s = `x` if len(s) > self.maxother: i = max(0, (self.maxother-3)/2) j = max(0, self.maxother-3-i) s = s[:i] + '...' + s[len(s)-j:] return s return f(x, level)
e547b6667f5ec42506c0600528e9cba65f43d2e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e547b6667f5ec42506c0600528e9cba65f43d2e2/repr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8480, 21, 12, 2890, 16, 619, 16, 1801, 4672, 26735, 273, 1375, 723, 12, 92, 22025, 63, 27, 30, 17, 22, 65, 468, 3532, 723, 296, 6265, 838, 28533, 309, 296, 296, 316, 26735, 30, 2140, 273, 533, 18, 4939, 12, 12846, 1069, 13, 26735, 273, 533, 18, 5701, 2821, 12, 6019, 16, 4427, 13, 309, 3859, 12, 2890, 16, 296, 12715, 4623, 397, 26735, 4672, 327, 3869, 12, 2890, 16, 296, 12715, 4623, 397, 26735, 21433, 92, 16, 1801, 13, 469, 30, 272, 273, 1375, 92, 68, 309, 562, 12, 87, 13, 405, 365, 18, 1896, 3011, 30, 277, 273, 943, 12, 20, 16, 261, 2890, 18, 1896,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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, 8480, 21, 12, 2890, 16, 619, 16, 1801, 4672, 26735, 273, 1375, 723, 12, 92, 22025, 63, 27, 30, 17, 22, 65, 468, 3532, 723, 296, 6265, 838, 28533, 309, 296, 296, 316, 26735, 30, 2140, 273, 533, 18, 4939, 12, 12846, 1069, 13, 26735, 273, 533, 18, 5701, 2821, 12, 6019, 16, 4427, 13, 309, 3859, 12, 2890, 16, 296, 12715, 4623, 397, 26735, 4672, 327, 3869, 12, 2890, 16, 296, 12715, 4623, 397, 26735, 21433, 92, 16, 1801, 13, 469, 30, 272, 273, 1375, 92, 68, 309, 562, 12, 87, 13, 405, 365, 18, 1896, 3011, 30, 277, 273, 943, 12, 20, 16, 261, 2890, 18, 1896, 3011, 17, 23, 13176, 22, 13, 525, 273, 943, 2 ]
if self.text != '':
if self.text.strip() != '':
def normal_completion(self, user_list): """ Normal completion """ if " " not in self.text.strip() or\ self.last_completion and self.text == self.last_completion+config.get('after_completion', ',')+" ": after = config.get('after_completion', ',')+" " #if " " in self.text.strip() and (not self.last_completion or ' ' in self.last_completion): else: after = " " # don't put the "," if it's not the begining of the sentence (y, x) = self.win.getyx() if not self.last_completion: # begin is the begining of the nick we want to complete if self.text != '': begin = self.text.split()[-1].encode('utf-8').lower() else: begin = '' hit_list = [] # list of matching nicks for user in user_list: if user.lower().startswith(begin): hit_list.append(user) if len(hit_list) == 0: return self.hit_list = hit_list end = len(begin.decode('utf-8')) else: begin = self.text[-len(after)-len(self.last_completion):-len(after)] self.hit_list.append(self.hit_list.pop(0)) # rotate list end = len(begin.decode('utf-8')) + len(after) self.text = self.text[:-end] nick = self.hit_list[0] # take the first hit self.last_completion = nick.decode('utf-8') self.text += nick.decode('utf-8') +after self.key_end(False)
f179cbdd2e76f5b9ddc19ca737199f873a0d5719 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/f179cbdd2e76f5b9ddc19ca737199f873a0d5719/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2212, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 3536, 8769, 8364, 3536, 309, 315, 315, 486, 316, 365, 18, 955, 18, 6406, 1435, 578, 64, 365, 18, 2722, 67, 11469, 471, 365, 18, 955, 422, 365, 18, 2722, 67, 11469, 15, 1425, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 6398, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 468, 430, 315, 315, 316, 365, 18, 955, 18, 6406, 1435, 471, 261, 902, 365, 18, 2722, 67, 11469, 578, 296, 296, 316, 365, 18, 2722, 67, 11469, 4672, 469, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, 434, 326, 7515, 261, 93, 16, 619, 13, 273, 365, 18, 8082, 18, 588, 93, 92, 1435, 309, 486, 365, 18, 2722, 67, 11469, 30, 468, 2376, 353, 326, 2376, 310, 434, 326, 10909, 732, 2545, 358, 3912, 309, 365, 18, 955, 18, 6406, 1435, 480, 875, 30, 2376, 273, 365, 18, 955, 18, 4939, 1435, 18919, 21, 8009, 3015, 2668, 3158, 17, 28, 16063, 8167, 1435, 469, 30, 2376, 273, 875, 6800, 67, 1098, 273, 5378, 4202, 468, 666, 434, 3607, 10909, 87, 364, 729, 316, 729, 67, 1098, 30, 309, 729, 18, 8167, 7675, 17514, 1918, 12, 10086, 4672, 6800, 67, 1098, 18, 6923, 12, 1355, 13, 309, 562, 12, 15989, 67, 1098, 13, 422, 374, 30, 327, 365, 18, 15989, 67, 1098, 273, 6800, 67, 1098, 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, 2212, 67, 11469, 12, 2890, 16, 729, 67, 1098, 4672, 3536, 8769, 8364, 3536, 309, 315, 315, 486, 316, 365, 18, 955, 18, 6406, 1435, 578, 64, 365, 18, 2722, 67, 11469, 471, 365, 18, 955, 422, 365, 18, 2722, 67, 11469, 15, 1425, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 6398, 1839, 273, 642, 18, 588, 2668, 5205, 67, 11469, 2187, 3316, 13, 9078, 315, 468, 430, 315, 315, 316, 365, 18, 955, 18, 6406, 1435, 471, 261, 902, 365, 18, 2722, 67, 11469, 578, 296, 296, 316, 365, 18, 2722, 67, 11469, 4672, 469, 30, 1839, 273, 315, 315, 468, 2727, 1404, 1378, 326, 5753, 309, 518, 1807, 486, 326, 2376, 310, 434, 2 ]
The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples (assuming a UNIX environment):
The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples:
def split_path(self, path): """Splits the given path from the last path separator ('/' or '\\'). The given path is first normalized (e.g. a possible trailing path separator is removed, special directories '..' and '.' removed). The splitted parts are returned as separate components. Examples (assuming a UNIX environment): | ${path1} | ${dir} = | Split Path | abc/def | | ${path2} | ${file} = | Split Path | abc/def/ghi.txt | | ${path3} | ${d2} = | Split Path | abc/../def/ghi/ | => - ${path1} = 'abc' & ${dir} = 'def' - ${path2} = 'abc/def' & ${file} = 'ghi.txt' - ${path3} = 'def' & ${d2} = 'ghi' """ return os.path.split(self.normalize_path(path))
a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 803, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 864, 589, 628, 326, 1142, 589, 4182, 7707, 2473, 578, 5282, 2934, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 18, 279, 3323, 7341, 589, 4182, 353, 3723, 16, 4582, 6402, 13222, 471, 2611, 3723, 2934, 225, 1021, 17687, 2140, 854, 2106, 487, 9004, 4085, 18, 225, 19830, 30, 571, 3531, 803, 21, 97, 571, 3531, 1214, 97, 273, 225, 571, 5385, 2666, 571, 20011, 19, 536, 540, 571, 571, 3531, 803, 22, 97, 571, 3531, 768, 97, 273, 571, 5385, 2666, 571, 20011, 19, 536, 19, 75, 12266, 18, 5830, 571, 571, 3531, 803, 23, 97, 571, 3531, 72, 22, 97, 225, 273, 225, 571, 5385, 2666, 571, 20011, 19, 6216, 536, 19, 75, 12266, 19, 571, 516, 300, 3531, 803, 21, 97, 273, 296, 18947, 11, 473, 3531, 1214, 97, 273, 296, 536, 11, 300, 3531, 803, 22, 97, 273, 296, 18947, 19, 536, 11, 473, 3531, 768, 97, 273, 296, 75, 12266, 18, 5830, 11, 300, 3531, 803, 23, 97, 273, 296, 536, 11, 473, 3531, 72, 22, 97, 273, 296, 75, 12266, 11, 3536, 327, 1140, 18, 803, 18, 4939, 12, 2890, 18, 12237, 67, 803, 12, 803, 3719, 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, 1416, 67, 803, 12, 2890, 16, 589, 4672, 3536, 16582, 326, 864, 589, 628, 326, 1142, 589, 4182, 7707, 2473, 578, 5282, 2934, 225, 1021, 864, 589, 353, 1122, 5640, 261, 73, 18, 75, 18, 279, 3323, 7341, 589, 4182, 353, 3723, 16, 4582, 6402, 13222, 471, 2611, 3723, 2934, 225, 1021, 17687, 2140, 854, 2106, 487, 9004, 4085, 18, 225, 19830, 30, 571, 3531, 803, 21, 97, 571, 3531, 1214, 97, 273, 225, 571, 5385, 2666, 571, 20011, 19, 536, 540, 571, 571, 3531, 803, 22, 97, 571, 3531, 768, 97, 273, 571, 5385, 2666, 571, 20011, 19, 536, 19, 75, 12266, 18, 5830, 571, 571, 3531, 803, 23, 97, 571, 3531, 72, 22, 97, 225, 273, 2 ]
maxWidth = 0 for ctrl in ctrls: maxWidth = max(maxWidth, ctrl.GetBestSize()[0])
maxWidth = max((ctrl.GetBestSize()[0] for ctrl in ctrls))
def EqualizeWidths(ctrls): maxWidth = 0 for ctrl in ctrls: maxWidth = max(maxWidth, ctrl.GetBestSize()[0]) for ctrl in ctrls: ctrl.SetMinSize((maxWidth, -1))
a1ed8db969bafcbcf92b44615c7fc0dfeed0e012 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/a1ed8db969bafcbcf92b44615c7fc0dfeed0e012/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9057, 554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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9057, 554, 22407, 12, 16277, 87, 4672, 17681, 273, 943, 12443, 16277, 18, 967, 14173, 1225, 1435, 63, 20, 65, 364, 6414, 316, 14629, 3251, 3719, 364, 6414, 316, 14629, 3251, 30, 6414, 18, 694, 2930, 1225, 12443, 1896, 2384, 16, 300, 21, 3719, 282, 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 ]
subplot.imshow(self.xy_data_array, cmap=cmap, extent=(x0,x1,y0,y1), interpolation=options['interpolation'])
subplot.imshow(self.xy_data_array, origin='lower', cmap=cmap, extent=(x0,x1,y0,y1), interpolation=options['interpolation'])
def _render_on_subplot(self, subplot): options = self.options() given_cmap = options['cmap'] #cm is the matplotlib color map module from matplotlib import cm from matplotlib.colors import LinearSegmentedColormap as C key_error = False try: cmap = cm.__dict__[given_cmap] except KeyError: key_error = True
da33ae72305fe661893aa9a685a1ea2a7a1f1658 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da33ae72305fe661893aa9a685a1ea2a7a1f1658/density_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 702, 273, 365, 18, 2116, 1435, 864, 67, 22738, 273, 702, 3292, 22738, 3546, 468, 7670, 353, 326, 13892, 2036, 852, 1605, 628, 13892, 1930, 5003, 628, 13892, 18, 9724, 1930, 13921, 4131, 329, 914, 18804, 487, 385, 498, 67, 1636, 273, 1083, 775, 30, 11136, 273, 5003, 16186, 1576, 972, 63, 10822, 67, 22738, 65, 1335, 4999, 30, 498, 67, 1636, 273, 1053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 265, 67, 24523, 12, 2890, 16, 19826, 4672, 702, 273, 365, 18, 2116, 1435, 864, 67, 22738, 273, 702, 3292, 22738, 3546, 468, 7670, 353, 326, 13892, 2036, 852, 1605, 628, 13892, 1930, 5003, 628, 13892, 18, 9724, 1930, 13921, 4131, 329, 914, 18804, 487, 385, 498, 67, 1636, 273, 1083, 775, 30, 11136, 273, 5003, 16186, 1576, 972, 63, 10822, 67, 22738, 65, 1335, 4999, 30, 498, 67, 1636, 273, 1053, 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 ]
for transaction in self.transactions.values(): transaction.delete()
def tearDown(self): self.group.delete() self.user.delete() for transaction in self.transactions.values(): transaction.delete()
cfea0eccfd7db3ad42699b42b7c41cd779f23174 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/cfea0eccfd7db3ad42699b42b7c41cd779f23174/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 1655, 18, 3733, 1435, 365, 18, 1355, 18, 3733, 1435, 364, 2492, 316, 365, 18, 20376, 18, 2372, 13332, 2492, 18, 3733, 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, 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2372, 13332, 2492, 18, 3733, 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 ]
self.assertRaises(ValueError, time.strftime, '', (1900, 0, 1, 0, 0, 0, 0, 1, -1))
self.assertRaises(ValueError, time.strftime, '', (1900, -1, 1, 0, 0, 0, 0, 1, -1))
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple.
edeb1885f91a6433a3787bea947b8430d9b2e390 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/edeb1885f91a6433a3787bea947b8430d9b2e390/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 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 ]
if v[0] == 32:
if v.args[0] == 32:
def send(self, str): """Send `str' to the server.""" if self.sock is None: if self.auto_open: self.connect() else: raise NotConnected()
74efa0a6def44a17e7b2a59c2eb16b3d01c3b9e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/74efa0a6def44a17e7b2a59c2eb16b3d01c3b9e5/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 15031, 353, 599, 30, 309, 365, 18, 6079, 67, 3190, 30, 365, 18, 3612, 1435, 469, 30, 1002, 31541, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 15031, 353, 599, 30, 309, 365, 18, 6079, 67, 3190, 30, 365, 18, 3612, 1435, 469, 30, 1002, 31541, 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 ]
if buildenv['version'] == 'release': _outputLine(buildenv['outputdir']+os.sep+"enduser", compFile1) else: _outputLine(buildenv['outputdir']+os.sep+"developer", compFile1)
def distribute(buildenv): _createVersionFile(buildenv) buildVersionShort = \ hardhatutil.RemovePunctuation(buildenv['buildVersion']) # When the build version string is based on one of our CVS tags # (which usually begin with "CHANDLER_") let's remove the "CHANDLER_" # prefix from the string so it doesn't end up in the generated filenames # (so we can avoid getting a distro file named: # "Chandler_linux_CHANDLER_M1.tar.gz", and instead get: # "Chandler_linux_M1.tar.gz") buildVersionShort = buildVersionShort.replace("CHANDLER_", "") installSourceFile = None installTargetFile = None if buildenv['version'] == 'debug': if buildenv['os'] == 'osx': distName = 'Chandler_osx_debug_' + buildVersionShort # when we make an osx distribution, we actually need to put it # in a subdirectory (which has a .app extension). So we set # 'distdir' temporarily to that .app dir so that handleManifest() # puts things in the right place. Then we set 'distdir' to its # parent so that it gets cleaned up further down. distDirParent = buildenv['root'] + os.sep + distName distDir = distDirParent + os.sep + distName + ".app" buildenv['distdir'] = distDir if os.access(distDirParent, os.F_OK): hardhatlib.rmdir_recursive(distDirParent) os.mkdir(distDirParent) os.mkdir(distDir) manifestFile = "distrib/osx/manifest.debug.osx" hardhatlib.handleManifest(buildenv, manifestFile) makeDiskImage = buildenv['hardhatroot'] + os.sep + \ "makediskimage.sh" os.chdir(buildenv['root']) hardhatlib.executeCommand(buildenv, "HardHat", [makeDiskImage, distName], "Creating disk image from " + distName) compFile1 = distName + ".dmg" # reset 'distdir' up a level so that it gets removed below. buildenv['distdir'] = distDirParent distDir = distDirParent elif buildenv['os'] == 'posix': distName = 'Chandler_linux_debug_' + buildVersionShort distDir = buildenv['root'] + os.sep + distName buildenv['distdir'] = distDir if os.access(distDir, os.F_OK): hardhatlib.rmdir_recursive(distDir) os.mkdir(distDir) manifestFile = "distrib/linux/manifest.debug.linux" hardhatlib.handleManifest(buildenv, manifestFile) os.chdir(buildenv['root']) compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) elif buildenv['os'] == 'win': distName = 'Chandler_win_debug_' + buildVersionShort distDir = buildenv['root'] + os.sep + distName buildenv['distdir'] = distDir if os.access(distDir, os.F_OK): hardhatlib.rmdir_recursive(distDir) os.mkdir(distDir) manifestFile = "distrib" + os.sep + "win" + os.sep + "manifest.debug.win" hardhatlib.handleManifest(buildenv, manifestFile) os.chdir(buildenv['root']) hardhatlib.convertLineEndings(buildenv['distdir']) installSourceFile = hardhatlib.makeInstaller(buildenv, [distName], distName) installSourceFile = os.path.join(installSourceFile, "Setup.exe") installTargetFile = distName compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) if buildenv['version'] == 'release': if buildenv['os'] == 'posix': distName = 'Chandler_linux_' + buildVersionShort distDir = buildenv['root'] + os.sep + distName buildenv['distdir'] = distDir if os.access(distDir, os.F_OK): hardhatlib.rmdir_recursive(distDir) os.mkdir(distDir) manifestFile = "distrib/linux/manifest.linux" hardhatlib.handleManifest(buildenv, manifestFile) os.chdir(buildenv['root']) compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) if buildenv['os'] == 'osx': distName = 'Chandler_osx_' + buildVersionShort # when we make an osx distribution, we actually need to put it # in a subdirectory (which has a .app extension). So we set # 'distdir' temporarily to that .app dir so that handleManifest() # puts things in the right place. Then we set 'distdir' to its # parent so that it gets cleaned up further down. distDirParent = buildenv['root'] + os.sep + distName distDir = distDirParent + os.sep + distName + ".app" buildenv['distdir'] = distDir if os.access(distDirParent, os.F_OK): hardhatlib.rmdir_recursive(distDirParent) os.mkdir(distDirParent) os.mkdir(distDir) manifestFile = "distrib/osx/manifest.osx" hardhatlib.handleManifest(buildenv, manifestFile) makeDiskImage = buildenv['hardhatroot'] + os.sep + \ "makediskimage.sh" os.chdir(buildenv['root']) hardhatlib.executeCommand(buildenv, "HardHat", [makeDiskImage, distName], "Creating disk image from " + distName) compFile1 = distName + ".dmg" # reset 'distdir' up a level so that it gets removed below. buildenv['distdir'] = distDirParent distDir = distDirParent if buildenv['os'] == 'win': distName = 'Chandler_win_' + buildVersionShort distDir = buildenv['root'] + os.sep + distName buildenv['distdir'] = distDir if os.access(distDir, os.F_OK): hardhatlib.rmdir_recursive(distDir) os.mkdir(distDir) manifestFile = "distrib" + os.sep + "win" + os.sep + "manifest.win" hardhatlib.handleManifest(buildenv, manifestFile) os.chdir(buildenv['root']) hardhatlib.convertLineEndings(buildenv['distdir']) installSourceFile = hardhatlib.makeInstaller(buildenv, [distName], distName) installSourceFile = os.path.join(installSourceFile, "Setup.exe") installTargetFile = distName compFile1 = hardhatlib.compressDirectory(buildenv, [distName], distName) # put the compressed files in the right place if specified 'outputdir' if buildenv['outputdir']: if not os.path.exists(buildenv['outputdir']): os.mkdir(buildenv['outputdir']) # The end-user distro if os.path.exists(buildenv['outputdir'] + os.sep + compFile1): os.remove(buildenv['outputdir'] + os.sep + compFile1) os.rename(compFile1, buildenv['outputdir'] + os.sep + compFile1) if buildenv['version'] == 'release': _outputLine(buildenv['outputdir']+os.sep+"enduser", compFile1) else: _outputLine(buildenv['outputdir']+os.sep+"developer", compFile1) # The end-user installer if installSourceFile: installTargetFile = '%s.exe' % installTargetFile installTarget = os.path.join(buildenv['outputdir'], installTargetFile) if os.path.exists(installTarget): os.remove(installTarget) os.rename(installSourceFile, installTarget) # write out the file name so it can be inserted into the various html files built later if buildenv['version'] == 'release': _outputLine(buildenv['outputdir'] + os.sep + "enduser", installTargetFile) else: _outputLine(buildenv['outputdir'] + os.sep + "developer", installTargetFile) else: # we move the install file here so that it doesn't "pollute" the internal/installers/win tree if installSourceFile: installTarget = os.path.join(buildenv['root'], ('%s.exe' % installTargetFile)) if os.path.exists(installTarget): os.remove(installTarget) os.rename(installSourceFile, installTarget) # remove the distribution directory, since we have a tarball/zip if os.access(distDir, os.F_OK): hardhatlib.rmdir_recursive(distDir)
e535f1488d2bb35cc37fef5581a188eab259cf83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e535f1488d2bb35cc37fef5581a188eab259cf83/__hardhat__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 19486, 225, 468, 5203, 326, 1361, 1177, 533, 353, 2511, 603, 1245, 434, 3134, 385, 14640, 2342, 468, 261, 12784, 11234, 2376, 598, 315, 1792, 4307, 14668, 67, 7923, 2231, 1807, 1206, 326, 315, 1792, 4307, 14668, 9548, 468, 1633, 628, 326, 533, 1427, 518, 3302, 1404, 679, 731, 316, 326, 4374, 9066, 468, 261, 2048, 732, 848, 4543, 8742, 279, 27450, 585, 4141, 30, 468, 315, 782, 464, 749, 67, 20132, 67, 1792, 4307, 14668, 67, 49, 21, 18, 11718, 18, 9764, 3113, 471, 3560, 336, 30, 468, 315, 782, 464, 749, 67, 20132, 67, 49, 21, 18, 11718, 18, 9764, 7923, 1361, 1444, 4897, 273, 1361, 1444, 4897, 18, 2079, 2932, 1792, 4307, 14668, 67, 3113, 1408, 13, 225, 3799, 31150, 273, 599, 3799, 2326, 812, 273, 599, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 4148, 4278, 225, 309, 1361, 3074, 3292, 538, 3546, 422, 296, 538, 92, 4278, 225, 2411, 461, 273, 296, 782, 464, 749, 67, 538, 92, 67, 4148, 4623, 397, 1361, 1444, 4897, 468, 1347, 732, 1221, 392, 1140, 92, 7006, 16, 732, 6013, 1608, 358, 1378, 518, 468, 316, 279, 29869, 261, 12784, 711, 279, 263, 2910, 2710, 2934, 225, 6155, 732, 444, 468, 296, 4413, 1214, 11, 18917, 358, 716, 263, 2910, 1577, 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, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 19486, 225, 468, 5203, 326, 1361, 1177, 533, 353, 2511, 603, 1245, 434, 3134, 385, 14640, 2342, 468, 261, 12784, 11234, 2376, 598, 315, 1792, 4307, 14668, 67, 7923, 2231, 1807, 1206, 326, 315, 1792, 4307, 14668, 9548, 468, 1633, 628, 326, 533, 1427, 518, 3302, 1404, 679, 731, 316, 326, 4374, 9066, 468, 261, 2048, 732, 848, 4543, 8742, 279, 27450, 585, 4141, 30, 468, 315, 782, 464, 749, 67, 20132, 67, 1792, 4307, 14668, 67, 49, 21, 18, 11718, 18, 9764, 3113, 471, 2 ]
s.tk.call( s.f.plf._w, 'cmd', 'pllab', xlab, ylab, tlab )
s.cmd( 'pllab', xlab, ylab, tlab )
def pllab( s, xlab, ylab, tlab ):
5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 7411, 12, 272, 16, 619, 7411, 16, 677, 7411, 16, 268, 7411, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 886, 7411, 12, 272, 16, 619, 7411, 16, 677, 7411, 16, 268, 7411, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 resetGameColours(kickers, texture1, texture2):
def resetGameColours(kickers, texture1, texture2):
def resetGameColours(kickers, texture1, texture2): #TODO: make this callable at any point in time to "turn" the table if role == ROLE_SERVER or MY_POSITION == 1: kickers[0].setTexture(texture1) kickers[1].setTexture(texture1) kickers[2].setTexture(texture2) kickers[3].setTexture(texture2) else: kickers[0].setTexture(texture2) kickers[1].setTexture(texture2) kickers[2].setTexture(texture1) kickers[3].setTexture(texture1)
1fe530a103cc582ade1c2f591438d0c992ccdea1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/1fe530a103cc582ade1c2f591438d0c992ccdea1/kickern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12496, 914, 4390, 12, 79, 1200, 414, 16, 11428, 21, 16, 11428, 22, 4672, 468, 6241, 30, 1221, 333, 4140, 622, 1281, 1634, 316, 813, 358, 315, 20922, 6, 326, 1014, 309, 2478, 422, 22005, 67, 4370, 578, 22069, 67, 15258, 422, 404, 30, 23228, 414, 63, 20, 8009, 542, 10967, 12, 955, 594, 21, 13, 23228, 414, 63, 21, 8009, 542, 10967, 12, 955, 594, 21, 13, 23228, 414, 63, 22, 8009, 542, 10967, 12, 955, 594, 22, 13, 23228, 414, 63, 23, 8009, 542, 10967, 12, 955, 594, 22, 13, 469, 30, 23228, 414, 63, 20, 8009, 542, 10967, 12, 955, 594, 22, 13, 23228, 414, 63, 21, 8009, 542, 10967, 12, 955, 594, 22, 13, 23228, 414, 63, 22, 8009, 542, 10967, 12, 955, 594, 21, 13, 23228, 414, 63, 23, 8009, 542, 10967, 12, 955, 594, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12496, 914, 4390, 12, 79, 1200, 414, 16, 11428, 21, 16, 11428, 22, 4672, 468, 6241, 30, 1221, 333, 4140, 622, 1281, 1634, 316, 813, 358, 315, 20922, 6, 326, 1014, 309, 2478, 422, 22005, 67, 4370, 578, 22069, 67, 15258, 422, 404, 30, 23228, 414, 63, 20, 8009, 542, 10967, 12, 955, 594, 21, 13, 23228, 414, 63, 21, 8009, 542, 10967, 12, 955, 594, 21, 13, 23228, 414, 63, 22, 8009, 542, 10967, 12, 955, 594, 22, 13, 23228, 414, 63, 23, 8009, 542, 10967, 12, 955, 594, 22, 13, 469, 30, 23228, 414, 63, 20, 8009, 542, 10967, 12, 955, 594, 22, 13, 23228, 414, 63, 21, 8009, 542, 10967, 12, 955, 594, 22, 2 ]
except error.OpExecError, err:
except errors.OpExecError, err:
def Exec(self, feedback_fn): """Modifies an instance.
1492cca7a27fd8024a1ad58fe38924f2939f85f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/1492cca7a27fd8024a1ad58fe38924f2939f85f8/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 1739, 5032, 392, 791, 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, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 1739, 5032, 392, 791, 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, -100, -100, -100 ]
encoding = server.headers.get('Content-Encoding', '').lower() if encoding in ('gzip', 'x-gzip', 'deflate') and \ (filename is None or not filename.endswith(".gz")): if encoding == 'deflate': server.decoders.append(DeflateStream.DeflateStream()) else: server.decoders.append(GunzipStream.GunzipStream()) to_remove = ['Content-Encoding']
if server.headers.has_key('Content-Encoding'): to_remove.add('Content-Encoding') cencs = server.headers['Content-Encoding'].lower() for cenc in cencs.split(","): cenc = cenc.strip() if ";" in cenc: cenc = cenc.split(";", 1)[0] if not cenc or cenc == 'identity': continue if filename is not None and \ (filename.endswith(".gz") or filename.endswith(".tgz")): continue if cenc in ('gzip', 'x-gzip'): server.decoders.append(GunzipStream.GunzipStream()) elif cenc == 'deflate': server.decoders.append(DeflateStream.DeflateStream()) else: wc.log.warn(wc.LOG_PROXY, "unsupported content encoding in %r", encoding)
def server_set_encoding_headers (server, filename=None): """ Set encoding headers. """ rewrite = server.is_rewrite() bytes_remaining = get_content_length(server.headers) to_remove = sets.Set() # remove content length if rewrite: to_remove.add('Content-Length') # add decoders if server.headers.has_key('Transfer-Encoding'): # chunked encoded tenc = server.headers['Transfer-Encoding'] if tenc != 'chunked': wc.log.warn(wc.LOG_PROXY, "unknown transfer encoding %r, assuming chunked encoding", tenc) server.decoders.append(UnchunkStream.UnchunkStream(server)) server.encoders.append(ChunkStream.ChunkStream(server)) if server.headers.has_key("Content-Length"): wc.log.warn(wc.LOG_PROXY, 'chunked encoding should not have Content-Length') to_remove.add("Content-Length") bytes_remaining = None elif rewrite: # To make pipelining possible, enable chunked encoding. server.headers['Transfer-Encoding'] = "chunked\r" if server.headers.has_key("Content-Length"): to_remove.add("Content-Length") server.encoders.append(ChunkStream.ChunkStream(server)) remove_headers(server.headers, to_remove) # only decompress on rewrite if not rewrite: return bytes_remaining # Compressed content (uncompress only for rewriting modules) encoding = server.headers.get('Content-Encoding', '').lower() # note: do not gunzip .gz files if encoding in ('gzip', 'x-gzip', 'deflate') and \ (filename is None or not filename.endswith(".gz")): if encoding == 'deflate': server.decoders.append(DeflateStream.DeflateStream()) else: server.decoders.append(GunzipStream.GunzipStream()) # remove encoding because we unzip the stream to_remove = ['Content-Encoding'] # remove no-transform cache control if server.headers.get('Cache-Control', '').lower() == 'no-transform': to_remove.append('Cache-Control') remove_headers(server.headers, to_remove) # add warning server.headers['Warning'] = "214 Transformation applied\r" elif encoding and encoding!='identity': wc.log.warn(wc.LOG_PROXY, _("unsupported encoding: %r"), encoding) # do not disable filtering for unknown content-encodings # this could result in a DoS attack (server sending garbage # as content-encoding) if not server.headers.has_key('Content-Length'): server.headers['Connection'] = 'close\r' return bytes_remaining
1d0b4dde3d21f983a9244c939ccb80fd5778999a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/1d0b4dde3d21f983a9244c939ccb80fd5778999a/Headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 542, 67, 5999, 67, 2485, 261, 3567, 16, 1544, 33, 7036, 4672, 3536, 1000, 2688, 1607, 18, 3536, 10738, 273, 1438, 18, 291, 67, 21489, 1435, 1731, 67, 17956, 273, 336, 67, 1745, 67, 2469, 12, 3567, 18, 2485, 13, 358, 67, 4479, 273, 1678, 18, 694, 1435, 468, 1206, 913, 769, 309, 10738, 30, 358, 67, 4479, 18, 1289, 2668, 1350, 17, 1782, 6134, 468, 527, 443, 1559, 414, 309, 1438, 18, 2485, 18, 5332, 67, 856, 2668, 5912, 17, 4705, 11, 4672, 468, 19949, 3749, 268, 1331, 273, 1438, 18, 2485, 3292, 5912, 17, 4705, 3546, 309, 268, 1331, 480, 296, 6551, 329, 4278, 14310, 18, 1330, 18, 8935, 12, 27594, 18, 4842, 67, 16085, 16, 315, 8172, 7412, 2688, 738, 86, 16, 15144, 19949, 2688, 3113, 268, 1331, 13, 1438, 18, 323, 1559, 414, 18, 6923, 12, 984, 6551, 1228, 18, 984, 6551, 1228, 12, 3567, 3719, 1438, 18, 1331, 369, 414, 18, 6923, 12, 5579, 1228, 18, 5579, 1228, 12, 3567, 3719, 309, 1438, 18, 2485, 18, 5332, 67, 856, 2932, 1350, 17, 1782, 6, 4672, 14310, 18, 1330, 18, 8935, 12, 27594, 18, 4842, 67, 16085, 16, 296, 6551, 329, 2688, 1410, 486, 1240, 3697, 17, 1782, 6134, 358, 67, 4479, 18, 1289, 2932, 1350, 17, 1782, 7923, 1731, 67, 17956, 273, 599, 1327, 10738, 30, 468, 2974, 1221, 8341, 292, 10008, 3323, 16, 4237, 19949, 2688, 18, 1438, 18, 2485, 3292, 5912, 17, 4705, 3546, 273, 315, 6551, 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, 1438, 67, 542, 67, 5999, 67, 2485, 261, 3567, 16, 1544, 33, 7036, 4672, 3536, 1000, 2688, 1607, 18, 3536, 10738, 273, 1438, 18, 291, 67, 21489, 1435, 1731, 67, 17956, 273, 336, 67, 1745, 67, 2469, 12, 3567, 18, 2485, 13, 358, 67, 4479, 273, 1678, 18, 694, 1435, 468, 1206, 913, 769, 309, 10738, 30, 358, 67, 4479, 18, 1289, 2668, 1350, 17, 1782, 6134, 468, 527, 443, 1559, 414, 309, 1438, 18, 2485, 18, 5332, 67, 856, 2668, 5912, 17, 4705, 11, 4672, 468, 19949, 3749, 268, 1331, 273, 1438, 18, 2485, 3292, 5912, 17, 4705, 3546, 309, 268, 1331, 480, 296, 6551, 329, 4278, 14310, 18, 1330, 18, 8935, 12, 27594, 18, 4842, 67, 2 ]
return Product((self, other)) def __rmul__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(other, Constant) and other.Value == 1: return self return Product((other, self)) def __div__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(other, Constant) and other.Value == 1: return self
def __mul__(self, other): if not isinstance(other, Expression): other = Constant(other) if isinstance(other, Constant) and other.Value == 1: return self return Product((self, other))
0aea67b6248de24bf5c20988f84fdf8ba68e066d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12571/0aea67b6248de24bf5c20988f84fdf8ba68e066d/primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 5371, 4672, 1308, 273, 10551, 12, 3011, 13, 309, 1549, 12, 3011, 16, 10551, 13, 471, 1308, 18, 620, 422, 404, 30, 327, 365, 327, 8094, 12443, 2890, 16, 1308, 3719,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 309, 486, 1549, 12, 3011, 16, 5371, 4672, 1308, 273, 10551, 12, 3011, 13, 309, 1549, 12, 3011, 16, 10551, 13, 471, 1308, 18, 620, 422, 404, 30, 327, 365, 327, 8094, 12443, 2890, 16, 1308, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'type': Unicode, 'usemap': Unicode, 'valign': Unicode,
'type': String, 'usemap': URI, 'valign': String,
def encode(value): return value
c802a777b027205443eadd7a1022a19096f8674b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/c802a777b027205443eadd7a1022a19096f8674b/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 1132, 4672, 327, 460, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2017, 12, 1132, 4672, 327, 460, 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, -100 ]
silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1
if len(sys.argv) > 1: verbose = (sys.argv[1] == '-v') silent = (sys.argv[1] == '-s') else: verbose = silent = False
def main(): silent = 0 verbose = 0 if sys.argv[1:]: if sys.argv[1] == '-v': verbose = 1 elif sys.argv[1] == '-s': silent = 1 MAGIC = imp.get_magic() if not silent: print('Using MAGIC word', repr(MAGIC)) for dirname in sys.path: try: names = os.listdir(dirname) except os.error: print('Cannot list directory', repr(dirname)) continue if not silent: print('Checking ', repr(dirname), '...') names.sort() for name in names: if name[-3:] == '.py': name = os.path.join(dirname, name) try: st = os.stat(name) except os.error: print('Cannot stat', repr(name)) continue if verbose: print('Check', repr(name), '...') name_c = name + 'c' try: f = open(name_c, 'r') except IOError: print('Cannot open', repr(name_c)) continue magic_str = f.read(4) mtime_str = f.read(4) f.close() if magic_str != MAGIC: print('Bad MAGIC word in ".pyc" file', end=' ') print(repr(name_c)) continue mtime = get_long(mtime_str) if mtime == 0 or mtime == -1: print('Bad ".pyc" file', repr(name_c)) elif mtime != st[ST_MTIME]: print('Out-of-date ".pyc" file', end=' ') print(repr(name_c))
c7eaede21ecb5259f2bd9e160a89b82d19cfb19b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/c7eaede21ecb5259f2bd9e160a89b82d19cfb19b/checkpyc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 3988, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 90, 6134, 10404, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 87, 6134, 469, 30, 3988, 273, 10404, 273, 1083, 490, 22247, 273, 1646, 18, 588, 67, 11179, 1435, 309, 486, 10404, 30, 1172, 2668, 7736, 490, 22247, 2076, 2187, 8480, 12, 49, 22247, 3719, 364, 4283, 316, 2589, 18, 803, 30, 775, 30, 1257, 273, 1140, 18, 1098, 1214, 12, 12287, 13, 1335, 1140, 18, 1636, 30, 1172, 2668, 4515, 666, 1867, 2187, 8480, 12, 12287, 3719, 1324, 309, 486, 10404, 30, 1172, 2668, 14294, 2265, 8480, 12, 12287, 3631, 20243, 13, 1257, 18, 3804, 1435, 364, 508, 316, 1257, 30, 309, 508, 18919, 23, 26894, 422, 2418, 2074, 4278, 508, 273, 1140, 18, 803, 18, 5701, 12, 12287, 16, 508, 13, 775, 30, 384, 273, 1140, 18, 5642, 12, 529, 13, 1335, 1140, 18, 1636, 30, 1172, 2668, 4515, 610, 2187, 8480, 12, 529, 3719, 1324, 309, 3988, 30, 1172, 2668, 1564, 2187, 8480, 12, 529, 3631, 20243, 13, 508, 67, 71, 273, 508, 397, 296, 71, 11, 775, 30, 284, 273, 1696, 12, 529, 67, 71, 16, 296, 86, 6134, 1335, 8340, 30, 1172, 2668, 4515, 1696, 2187, 8480, 12, 529, 67, 71, 3719, 1324, 8146, 67, 701, 273, 284, 18, 896, 12, 24, 13, 13158, 67, 701, 273, 284, 18, 896, 12, 24, 13, 284, 18, 4412, 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, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 3988, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 90, 6134, 10404, 273, 261, 9499, 18, 19485, 63, 21, 65, 422, 2400, 87, 6134, 469, 30, 3988, 273, 10404, 273, 1083, 490, 22247, 273, 1646, 18, 588, 67, 11179, 1435, 309, 486, 10404, 30, 1172, 2668, 7736, 490, 22247, 2076, 2187, 8480, 12, 49, 22247, 3719, 364, 4283, 316, 2589, 18, 803, 30, 775, 30, 1257, 273, 1140, 18, 1098, 1214, 12, 12287, 13, 1335, 1140, 18, 1636, 30, 1172, 2668, 4515, 666, 1867, 2187, 8480, 12, 12287, 3719, 1324, 309, 486, 10404, 30, 1172, 2668, 14294, 2265, 8480, 12, 12287, 3631, 20243, 13, 2 ]
os.setreuid(-1, -1)
def test_setreuid_neg1(self): import subprocess subprocess.check_call([ sys.executable, '-c', 'import os,sys;os.setreuid(-1,-1);sys.exit(0)'])
def test_setreuid(self): if os.getuid() != 0: self.assertRaises(os.error, os.setreuid, 0, 0) self.assertRaises(OverflowError, os.setreuid, 1<<32, 0) self.assertRaises(OverflowError, os.setreuid, 0, 1<<32) os.setreuid(-1, -1) # Does nothing, but it needs to accept -1
e4096e1240ca50c2956bdbe84347441d455d69d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e4096e1240ca50c2956bdbe84347441d455d69d8/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 266, 1911, 12, 2890, 4672, 309, 1140, 18, 588, 1911, 1435, 480, 374, 30, 365, 18, 11231, 12649, 6141, 12, 538, 18, 1636, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 374, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 16, 1140, 18, 542, 266, 1911, 16, 404, 17685, 1578, 16, 374, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 404, 17685, 1578, 13, 225, 1652, 1842, 67, 542, 266, 1911, 67, 14518, 21, 12, 2890, 4672, 282, 1930, 6652, 6652, 18, 1893, 67, 1991, 3816, 2589, 18, 17751, 16, 2400, 71, 2187, 296, 5666, 1140, 16, 9499, 31, 538, 18, 542, 266, 1911, 19236, 21, 16, 17, 21, 1769, 9499, 18, 8593, 12, 20, 2506, 5717, 225, 468, 9637, 5083, 16, 1496, 518, 4260, 358, 2791, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 542, 266, 1911, 12, 2890, 4672, 309, 1140, 18, 588, 1911, 1435, 480, 374, 30, 365, 18, 11231, 12649, 6141, 12, 538, 18, 1636, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 374, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 16, 1140, 18, 542, 266, 1911, 16, 404, 17685, 1578, 16, 374, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 16, 1140, 18, 542, 266, 1911, 16, 374, 16, 404, 17685, 1578, 13, 225, 1652, 1842, 67, 542, 266, 1911, 67, 14518, 21, 12, 2890, 4672, 282, 1930, 6652, 6652, 18, 1893, 67, 1991, 3816, 2589, 18, 17751, 16, 2400, 71, 2187, 296, 5666, 1140, 16, 9499, 31, 538, 18, 542, 266, 2 ]
self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
if dict["arg"]: self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
def h_bibliographystyle (self, dict): """ Called when \\bibliographystyle is found. This registers the module bibtex (if not already done) and calls the method set_style() of the module. """ self.modules.register("bibtex", dict) self.modules["bibtex"].set_style(dict["arg"])
a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/a89c6e69e246c08c08ac0a0d07ecc8fff1d254d1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 67, 70, 495, 549, 8829, 1094, 1362, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 1736, 70, 495, 549, 8829, 1094, 1362, 353, 1392, 18, 1220, 10285, 326, 1605, 25581, 21763, 261, 430, 486, 1818, 2731, 13, 471, 4097, 326, 707, 444, 67, 4060, 1435, 434, 326, 1605, 18, 3536, 365, 18, 6400, 18, 4861, 2932, 70, 495, 21763, 3113, 2065, 13, 365, 18, 6400, 9614, 70, 495, 21763, 6, 8009, 542, 67, 4060, 12, 1576, 9614, 3175, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 366, 67, 70, 495, 549, 8829, 1094, 1362, 261, 2890, 16, 2065, 4672, 3536, 11782, 1347, 1736, 70, 495, 549, 8829, 1094, 1362, 353, 1392, 18, 1220, 10285, 326, 1605, 25581, 21763, 261, 430, 486, 1818, 2731, 13, 471, 4097, 326, 707, 444, 67, 4060, 1435, 434, 326, 1605, 18, 3536, 365, 18, 6400, 18, 4861, 2932, 70, 495, 21763, 3113, 2065, 13, 365, 18, 6400, 9614, 70, 495, 21763, 6, 8009, 542, 67, 4060, 12, 1576, 9614, 3175, 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, -100, -100, -100, -100 ]
cursor_x, cursor_y = terminal.get_cursor_position() cursor_x = cursor_x + allocation.x cursor_y = cursor_y + allocation.y
term_alloc = terminal.allocation cursor_x = term_alloc.x + term_alloc.width / 2 cursor_y = term_alloc.y + term_alloc.height / 2
def navigate_terminal(self, terminal, direction): """Navigate around terminals""" _containers, terminals = util.enumerate_descendants(self) visibles = self.get_visible_terminals() current = terminals.index(terminal) length = len(terminals) next = None
f7bdb519a125a5165b0e660ac17fec8346fb2de6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/f7bdb519a125a5165b0e660ac17fec8346fb2de6/window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 2281, 495, 1040, 273, 365, 18, 588, 67, 8613, 67, 9505, 1031, 1435, 783, 273, 16122, 1031, 18, 1615, 12, 15979, 13, 769, 273, 562, 12, 9505, 1031, 13, 1024, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 28479, 67, 15979, 12, 2890, 16, 8651, 16, 4068, 4672, 3536, 50, 20698, 6740, 16122, 1031, 8395, 389, 20596, 16, 16122, 1031, 273, 1709, 18, 7924, 12600, 67, 26236, 4388, 12, 2890, 13, 2281, 495, 1040, 273, 365, 18, 588, 67, 8613, 67, 9505, 1031, 1435, 783, 273, 16122, 1031, 18, 1615, 12, 15979, 13, 769, 273, 562, 12, 9505, 1031, 13, 1024, 273, 599, 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 ]
successful["%s/%s" % (dirPath,fileName)] = fileDict
fname = '%s/%s' % (dirPath,fileName) fname = fname.replace('//','/') successful[fname] = fileDict
def _findFiles(self,lfns,metadata=['FileID'],connection=False): connection = self._getConnection(connection) """ Find file ID if it exists for the given list of LFNs """ dirDict = self._getFileDirectories(lfns) failed = {} directoryIDs = {} for dirPath in dirDict.keys(): res = self.db.dtree.findDir(dirPath) if (not res['OK']) or (not res['Value']): error = res.get('Message','No such file or directory') for fileName in dirDict[dirPath]: failed['%s/%s' % (dirPath,fileName)] = error else: directoryIDs[dirPath] = res['Value'] successful = {} for dirPath in directoryIDs.keys(): fileNames = dirDict[dirPath] res = self._getDirectoryFiles(directoryIDs[dirPath],fileNames,metadata,connection=connection) if (not res['OK']) or (not res['Value']): error = res.get('Message','No such file or directory') for fileName in fileNames: failed['%s/%s' % (dirPath,fileName)] = error else: for fileName,fileDict in res['Value'].items(): successful["%s/%s" % (dirPath,fileName)] = fileDict return S_OK({"Successful":successful,"Failed":failed})
ab67cc5ab5284fed4da0b8d6db61bae143bc95b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ab67cc5ab5284fed4da0b8d6db61bae143bc95b8/FileManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 2697, 12, 2890, 16, 20850, 2387, 16, 4165, 33, 3292, 812, 734, 17337, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 4163, 585, 1599, 309, 518, 1704, 364, 326, 864, 666, 434, 18803, 10386, 3536, 1577, 5014, 273, 365, 6315, 29925, 13071, 12, 20850, 2387, 13, 2535, 273, 2618, 1867, 5103, 273, 2618, 364, 15891, 316, 1577, 5014, 18, 2452, 13332, 400, 273, 365, 18, 1966, 18, 72, 3413, 18, 4720, 1621, 12, 1214, 743, 13, 309, 261, 902, 400, 3292, 3141, 19486, 578, 261, 902, 400, 3292, 620, 3546, 4672, 555, 273, 400, 18, 588, 2668, 1079, 17023, 2279, 4123, 585, 578, 1867, 6134, 364, 3968, 316, 1577, 5014, 63, 1214, 743, 14542, 2535, 3292, 9, 87, 5258, 87, 11, 738, 261, 1214, 743, 16, 17812, 25887, 273, 555, 469, 30, 1867, 5103, 63, 1214, 743, 65, 273, 400, 3292, 620, 3546, 6873, 273, 2618, 364, 15891, 316, 1867, 5103, 18, 2452, 13332, 27375, 273, 1577, 5014, 63, 1214, 743, 65, 400, 273, 365, 6315, 588, 2853, 2697, 12, 5149, 5103, 63, 1214, 743, 6487, 768, 1557, 16, 4165, 16, 4071, 33, 4071, 13, 309, 261, 902, 400, 3292, 3141, 19486, 578, 261, 902, 400, 3292, 620, 3546, 4672, 555, 273, 400, 18, 588, 2668, 1079, 17023, 2279, 4123, 585, 578, 1867, 6134, 364, 3968, 316, 27375, 30, 2535, 3292, 9, 87, 5258, 87, 11, 738, 261, 1214, 743, 16, 17812, 25887, 273, 555, 469, 30, 364, 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, 4720, 2697, 12, 2890, 16, 20850, 2387, 16, 4165, 33, 3292, 812, 734, 17337, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 3536, 4163, 585, 1599, 309, 518, 1704, 364, 326, 864, 666, 434, 18803, 10386, 3536, 1577, 5014, 273, 365, 6315, 29925, 13071, 12, 20850, 2387, 13, 2535, 273, 2618, 1867, 5103, 273, 2618, 364, 15891, 316, 1577, 5014, 18, 2452, 13332, 400, 273, 365, 18, 1966, 18, 72, 3413, 18, 4720, 1621, 12, 1214, 743, 13, 309, 261, 902, 400, 3292, 3141, 19486, 578, 261, 902, 400, 3292, 620, 3546, 4672, 555, 273, 400, 18, 588, 2668, 1079, 17023, 2279, 4123, 585, 578, 1867, 6134, 364, 3968, 316, 1577, 5014, 2 ]
self.playlist = self.get_playlist() self.lp = len(self.playlist) self.rand_list = range(0,self.lp) random.shuffle(self.rand_list)
def __init__(self, station, channel_id): Thread.__init__(self) self.channel_id = channel_id # self.channel = Shout() #self.station = station self.id = 999999 self.rand_list = [] # Media self.media_dir = station['media']['dir']
9bcb46828bd7ee9c824e79d41893f83e79986a9d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/9bcb46828bd7ee9c824e79d41893f83e79986a9d/d-fuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13282, 16, 1904, 67, 350, 4672, 4884, 16186, 2738, 972, 12, 2890, 13, 365, 18, 4327, 67, 350, 273, 1904, 67, 350, 468, 365, 18, 4327, 273, 2638, 659, 1435, 468, 2890, 18, 17894, 273, 13282, 365, 18, 350, 273, 23841, 29, 365, 18, 7884, 67, 1098, 273, 5378, 225, 468, 6128, 365, 18, 5829, 67, 1214, 273, 13282, 3292, 5829, 21712, 1214, 3546, 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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 273, 13282, 365, 18, 350, 273, 23841, 29, 365, 18, 7884, 67, 1098, 273, 5378, 225, 468, 6128, 365, 18, 5829, 67, 1214, 273, 13282, 3292, 5829, 21712, 1214, 3546, 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 ]