rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.url = "xroot://%s@%s:%d//query/%d" % (user, host, port, chunk)
self.url = "" self.setXrd()
def __init__(self, chunk, query, outputFunc, outputArg): threading.Thread.__init__(self) host = "lsst-dev01" port = 1094 user = "qsmaster" self.chunk = chunk self.query = query self.outputFunc = outputFunc self.outputArg = outputArg self.url = "xroot://%s@%s:%d//query/%d" % (user, host, port, chunk) self.successful = None pass
4546b05a5b4418bcd455438e282c1b78e0aeabdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/4546b05a5b4418bcd455438e282c1b78e0aeabdf/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2441, 16, 843, 16, 876, 2622, 16, 876, 4117, 4672, 17254, 18, 3830, 16186, 2738, 972, 12, 2890, 13, 1479, 273, 315, 3251, 334, 17, 5206, 1611, 6, 1756, 273, 1728, 11290, 729, 273, 315, 85, 4808, 2440, 6, 365, 18, 6551, 273, 2441, 365, 18, 2271, 273, 843, 365, 18, 2844, 2622, 273, 876, 2622, 365, 18, 2844, 4117, 273, 876, 4117, 365, 18, 718, 273, 1408, 365, 18, 542, 60, 13623, 1435, 365, 18, 18418, 273, 599, 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,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, 2738, 972, 12, 2890, 13, 1479, 273, 315, 3251, 334, 17, 5206, 1611, 6, 1756, 273, 1728, 11290, 729, 273, 315, 85, 4808, 2440, 6, 365, 18, 6551, 273, 2441, 365, 18, 2271, 273, 843, 365, 18, 2844, 2622, 273, 876, 2622, 365, 18, 2844, 4117, 273, 876, 4117, 365, 18, 718, 273, 1408, 365, 18, 542, 60, 13623, 1435, 365, 18, 18418, 273, 599, 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 ]
value = lfc.lfc_statg(lfn,'',fstat) if value == 0: successful[path] = {} successful[path]['Size'] = fstat.filesize successful[path]['CheckSumType'] = fstat.csumtype successful[path]['CheckSumValue'] = fstat.csumvalue successful[path]['GUID'] = fstat.guid successful[path]['Status'] = fstat.status
value = lfc.lfc_statg(fullLfn,'',fstat) if value == 0: successful[lfn] = {} successful[lfn]['Size'] = fstat.filesize successful[lfn]['CheckSumType'] = fstat.csumtype successful[lfn]['CheckSumValue'] = fstat.csumvalue successful[lfn]['GUID'] = fstat.guid successful[lfn]['Status'] = fstat.status
def getFileMetadata(self, path): """ Returns replicas for an LFN or list of LFNs """ if type(path) == types.StringType: lfns = [path] elif type(path) == types.ListType: lfns = path else: return S_ERROR('LFCClient.getFileMetadata: Must supply a path or list of paths') # If we have less than three lfns to query a session doesn't make sense if len(lfns) > 2: self.__openSession() failed = {} successful = {} for lfn in lfns: fullLfn = '%s%s' % (self.prefix,lfn) fstat = lfc.lfc_filestatg() value = lfc.lfc_statg(lfn,'',fstat) if value == 0: successful[path] = {} successful[path]['Size'] = fstat.filesize successful[path]['CheckSumType'] = fstat.csumtype successful[path]['CheckSumValue'] = fstat.csumvalue successful[path]['GUID'] = fstat.guid successful[path]['Status'] = fstat.status else: errno = lfc.cvar.serrno failed[lfn] = lfc.sstrerror(errno) if self.session: self.__closeSession() resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict)
24878006a97fc6c0a40ff01095f00d930f79b1e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/24878006a97fc6c0a40ff01095f00d930f79b1e6/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 2277, 12, 2890, 16, 589, 4672, 3536, 2860, 21545, 364, 392, 18803, 50, 578, 666, 434, 18803, 10386, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 18594, 2387, 273, 306, 803, 65, 1327, 618, 12, 803, 13, 422, 1953, 18, 19366, 30, 18594, 2387, 273, 589, 469, 30, 327, 348, 67, 3589, 2668, 48, 4488, 1227, 18, 29925, 2277, 30, 6753, 14467, 279, 589, 578, 666, 434, 2953, 6134, 468, 971, 732, 1240, 5242, 2353, 8925, 18594, 2387, 358, 843, 279, 1339, 3302, 1404, 1221, 12764, 309, 562, 12, 20850, 2387, 13, 405, 576, 30, 365, 16186, 3190, 2157, 1435, 2535, 273, 2618, 6873, 273, 2618, 364, 328, 4293, 316, 18594, 2387, 30, 1983, 48, 4293, 273, 1995, 87, 9, 87, 11, 738, 261, 2890, 18, 3239, 16, 80, 4293, 13, 284, 5642, 273, 328, 7142, 18, 80, 7142, 67, 7540, 395, 270, 75, 1435, 460, 273, 328, 7142, 18, 80, 7142, 67, 5642, 75, 12, 2854, 48, 4293, 11189, 2187, 74, 5642, 13, 309, 460, 422, 374, 30, 6873, 63, 80, 4293, 65, 273, 2618, 6873, 63, 80, 4293, 23962, 1225, 3546, 273, 284, 5642, 18, 25511, 6873, 63, 80, 4293, 23962, 1564, 3495, 559, 3546, 273, 284, 5642, 18, 71, 1364, 723, 6873, 63, 80, 4293, 23962, 1564, 3495, 620, 3546, 273, 284, 5642, 18, 71, 1364, 1132, 6873, 63, 80, 4293, 23962, 17525, 3546, 273, 284, 5642, 18, 14066, 6873, 63, 80, 4293, 23962, 1482, 3546, 273, 284, 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, 6034, 2277, 12, 2890, 16, 589, 4672, 3536, 2860, 21545, 364, 392, 18803, 50, 578, 666, 434, 18803, 10386, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 18594, 2387, 273, 306, 803, 65, 1327, 618, 12, 803, 13, 422, 1953, 18, 19366, 30, 18594, 2387, 273, 589, 469, 30, 327, 348, 67, 3589, 2668, 48, 4488, 1227, 18, 29925, 2277, 30, 6753, 14467, 279, 589, 578, 666, 434, 2953, 6134, 468, 971, 732, 1240, 5242, 2353, 8925, 18594, 2387, 358, 843, 279, 1339, 3302, 1404, 1221, 12764, 309, 562, 12, 20850, 2387, 13, 405, 576, 30, 365, 16186, 3190, 2157, 1435, 2535, 273, 2618, 6873, 273, 2618, 364, 328, 4293, 316, 18594, 2387, 30, 2 ]
svg.rect(graph_x+0.5, graph_y+0.5, graph_height, graph_width, 1, hash_color);
svg.rect(graph_x+0.5, graph_y+0.5, graph_height_used, graph_width_used, 1, hash_color);
def Plot(self): """ Calculates and renders the plot """ #cache local variables x = self.x y = self.y x1 = self.x1 y1 = self.y1 xbin = self.xbin ybin = self.ybin xText = self.xText yText = self.yText height = self.height width = self.width bg_color = self.background_color hash_color = self.hash_color text_color = self.text_color
cd61e2ba9c8f4b03199719ac515a5b788657caa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6163/cd61e2ba9c8f4b03199719ac515a5b788657caa1/ConfDistFuncs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15211, 12, 2890, 4672, 3536, 26128, 471, 19567, 326, 3207, 3536, 225, 468, 2493, 1191, 3152, 619, 273, 365, 18, 92, 677, 273, 365, 18, 93, 619, 21, 273, 365, 18, 92, 21, 677, 21, 273, 365, 18, 93, 21, 619, 4757, 273, 365, 18, 92, 4757, 677, 4757, 273, 365, 18, 93, 4757, 619, 1528, 273, 365, 18, 92, 1528, 677, 1528, 273, 365, 18, 93, 1528, 2072, 273, 365, 18, 4210, 1835, 273, 365, 18, 2819, 7611, 67, 3266, 273, 365, 18, 9342, 67, 3266, 1651, 67, 3266, 273, 365, 18, 2816, 67, 3266, 977, 67, 3266, 273, 365, 18, 955, 67, 3266, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15211, 12, 2890, 4672, 3536, 26128, 471, 19567, 326, 3207, 3536, 225, 468, 2493, 1191, 3152, 619, 273, 365, 18, 92, 677, 273, 365, 18, 93, 619, 21, 273, 365, 18, 92, 21, 677, 21, 273, 365, 18, 93, 21, 619, 4757, 273, 365, 18, 92, 4757, 677, 4757, 273, 365, 18, 93, 4757, 619, 1528, 273, 365, 18, 92, 1528, 677, 1528, 273, 365, 18, 93, 1528, 2072, 273, 365, 18, 4210, 1835, 273, 365, 18, 2819, 7611, 67, 3266, 273, 365, 18, 9342, 67, 3266, 1651, 67, 3266, 273, 365, 18, 2816, 67, 3266, 977, 67, 3266, 273, 365, 18, 955, 67, 3266, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
circ = h.c.build_circuit(h.selmgr.select_path()) h.circuits[circ.circ_id] = circ
try: circ = h.c.build_circuit(h.selmgr.select_path()) h.circuits[circ.circ_id] = circ except RestrictionError, e: traceback.print_exc() plog("WARN", "Impossible restrictions: "+str(e))
def circuit_builder(h): # reschedule if some number n circuits outstanding if h.circ_count - h.circ_succeeded - h.circ_failed > max_circuits: from TorCtl.TorUtil import plog plog("DEBUG", "Too many circuits: "+str(h.circ_count-h.circ_succeeded-h.circ_failed)+", delaying build") h.schedule_low_prio(circuit_builder) return circ = h.c.build_circuit(h.selmgr.select_path()) h.circuits[circ.circ_id] = circ
4cadb667d6ef8e755982b66882dfd6a21c5d52bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/4cadb667d6ef8e755982b66882dfd6a21c5d52bc/buildtimes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12937, 67, 9574, 12, 76, 4672, 468, 400, 2847, 309, 2690, 1300, 290, 5886, 30091, 20974, 309, 366, 18, 11614, 71, 67, 1883, 300, 366, 18, 11614, 71, 67, 87, 20983, 300, 366, 18, 11614, 71, 67, 7307, 405, 943, 67, 11614, 30091, 30, 628, 23763, 39, 6172, 18, 27266, 1304, 1930, 293, 1330, 293, 1330, 2932, 9394, 3113, 315, 10703, 4906, 5886, 30091, 30, 13773, 701, 12, 76, 18, 11614, 71, 67, 1883, 17, 76, 18, 11614, 71, 67, 87, 20983, 17, 76, 18, 11614, 71, 67, 7307, 27921, 3113, 4624, 310, 1361, 7923, 366, 18, 10676, 67, 821, 67, 29112, 83, 12, 24987, 67, 9574, 13, 327, 18956, 273, 366, 18, 71, 18, 3510, 67, 24987, 12, 76, 18, 1786, 13552, 18, 4025, 67, 803, 10756, 366, 18, 11614, 30091, 63, 11614, 71, 18, 11614, 71, 67, 350, 65, 273, 18956, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12937, 67, 9574, 12, 76, 4672, 468, 400, 2847, 309, 2690, 1300, 290, 5886, 30091, 20974, 309, 366, 18, 11614, 71, 67, 1883, 300, 366, 18, 11614, 71, 67, 87, 20983, 300, 366, 18, 11614, 71, 67, 7307, 405, 943, 67, 11614, 30091, 30, 628, 23763, 39, 6172, 18, 27266, 1304, 1930, 293, 1330, 293, 1330, 2932, 9394, 3113, 315, 10703, 4906, 5886, 30091, 30, 13773, 701, 12, 76, 18, 11614, 71, 67, 1883, 17, 76, 18, 11614, 71, 67, 87, 20983, 17, 76, 18, 11614, 71, 67, 7307, 27921, 3113, 4624, 310, 1361, 7923, 366, 18, 10676, 67, 821, 67, 29112, 83, 12, 24987, 67, 9574, 13, 327, 18956, 273, 366, 18, 71, 18, 3510, 67, 24987, 2 ]
setattr(self, gtk.Buildable.get_name(obj), obj)
try: obj_name = gtk.Buildable.get_name(obj) except TypeError: pass else: setattr(self, obj_name, obj)
def _load_builder(self): builder = gtk.Builder() if self.builder_path: if not os.path.exists(self.builder_path): raise LookupError(self.__class__, self.builder_path) builder.add_from_file(self.builder_path) elif self.builder_file:
42e9e698e5b433a7b51149a85e2d35788f3c3242 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/42e9e698e5b433a7b51149a85e2d35788f3c3242/delegates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 9574, 12, 2890, 4672, 2089, 273, 22718, 18, 1263, 1435, 309, 365, 18, 9574, 67, 803, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 9574, 67, 803, 4672, 1002, 8834, 668, 12, 2890, 16186, 1106, 972, 16, 365, 18, 9574, 67, 803, 13, 2089, 18, 1289, 67, 2080, 67, 768, 12, 2890, 18, 9574, 67, 803, 13, 1327, 365, 18, 9574, 67, 768, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 9574, 12, 2890, 4672, 2089, 273, 22718, 18, 1263, 1435, 309, 365, 18, 9574, 67, 803, 30, 309, 486, 1140, 18, 803, 18, 1808, 12, 2890, 18, 9574, 67, 803, 4672, 1002, 8834, 668, 12, 2890, 16186, 1106, 972, 16, 365, 18, 9574, 67, 803, 13, 2089, 18, 1289, 67, 2080, 67, 768, 12, 2890, 18, 9574, 67, 803, 13, 1327, 365, 18, 9574, 67, 768, 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 ]
self.stringToBool(unicode(s.value('ConnectionData/InsertTemplateData').toBool())))
self.stringToBool(unicode(s.value('ConnectionData/InsertTemplateData').toString())))
def loadConnectionData(self): s = QSettings() return ConnectionData(unicode(s.value('ConnectionData/Host').toString()), unicode(s.value('ConnectionData/Port').toString()), unicode(s.value('ConnectionData/Database').toString()), unicode(s.value('ConnectionData/Schema').toString()), unicode(s.value('ConnectionData/User').toString()), '', self.stringToBool(unicode(s.value('ConnectionData/DropSchema').toString())), self.stringToBool(unicode(s.value('ConnectionData/CreateSchema').toString())), self.stringToBool(unicode(s.value('ConnectionData/InsertTemplateData').toBool())))
70352fa0cb1e3f270af1adc6b4e98f7161818eb8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2175/70352fa0cb1e3f270af1adc6b4e98f7161818eb8/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1952, 751, 12, 2890, 4672, 272, 273, 2238, 2628, 1435, 327, 4050, 751, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19, 2594, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 2617, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 4254, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 3078, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 1299, 16063, 10492, 1435, 3631, 10226, 365, 18, 1080, 774, 7464, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19, 7544, 3078, 16063, 10492, 10756, 3631, 365, 18, 1080, 774, 7464, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19, 1684, 3078, 16063, 10492, 10756, 3631, 365, 18, 1080, 774, 7464, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 1952, 751, 12, 2890, 4672, 272, 273, 2238, 2628, 1435, 327, 4050, 751, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19, 2594, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 2617, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 4254, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 3078, 16063, 10492, 1435, 3631, 5252, 12, 87, 18, 1132, 2668, 1952, 751, 19, 1299, 16063, 10492, 1435, 3631, 10226, 365, 18, 1080, 774, 7464, 12, 9124, 12, 87, 18, 1132, 2668, 1952, 751, 19, 7544, 3078, 16063, 10492, 10756, 3631, 365, 18, 1080, 774, 7464, 12, 9124, 12, 87, 18, 1132, 2 ]
x/(2*(x^2 - 1)^(1/4)*(x^2 + 1)^(3/4)) - (x*(x^2 + 1)^(1/4)/(2*(x^2 - 1)^(5/4)))
x/(2*(x^2 - 1)^(1/4)*(x^2 + 1)^(3/4)) - x*(x^2 + 1)^(1/4)/(2*(x^2 - 1)^(5/4))
def derivative(self, *args): """ Returns the derivative of itself. If self has exactly one variable, then it differentiates with respect to that variable. If there is more than one variable in the expression, then you must explicitly supply a variable. If you supply a variable $x$ followed by a number $n$, then it will differentiate with respect to $n$ times with respect to $n$.
704a652e2c7e5dbfb231de9aebca508a4fd72309 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/704a652e2c7e5dbfb231de9aebca508a4fd72309/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16417, 12, 2890, 16, 380, 1968, 4672, 3536, 2860, 326, 16417, 434, 6174, 18, 971, 365, 711, 8950, 1245, 2190, 16, 1508, 518, 3775, 16020, 598, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16417, 12, 2890, 16, 380, 1968, 4672, 3536, 2860, 326, 16417, 434, 6174, 18, 971, 365, 711, 8950, 1245, 2190, 16, 1508, 518, 3775, 16020, 598, 8762, 358, 716, 2190, 18, 971, 1915, 353, 1898, 2353, 1245, 2190, 316, 326, 2652, 16, 1508, 1846, 1297, 8122, 14467, 279, 2190, 18, 971, 1846, 14467, 279, 2190, 271, 92, 8, 10860, 635, 279, 1300, 271, 82, 8, 16, 1508, 518, 903, 3775, 3840, 598, 8762, 358, 271, 82, 8, 4124, 598, 8762, 358, 271, 82, 8, 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 ]
g = build_graph (key, data)
g = build_graphs (key, [amc.bones[key] for amc in amcs])
def load (filename): amc = AMC.from_file (filename) bones = {} for (key, data) in amc.bones.iteritems (): print 'building graph for',key g = build_graph (key, data) if g is not None: f = file ('graphs/%s.dot' % key, 'w') DotPrint (g, f) f.close ()
06c5189cceb33db4082ae4d94ff86fe083fc0935 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/06c5189cceb33db4082ae4d94ff86fe083fc0935/build_motion_graphs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 261, 3459, 4672, 2125, 71, 273, 432, 20022, 18, 2080, 67, 768, 261, 3459, 13, 324, 5322, 273, 2618, 364, 261, 856, 16, 501, 13, 316, 2125, 71, 18, 70, 5322, 18, 2165, 3319, 1832, 30, 1172, 296, 3510, 310, 2667, 364, 2187, 856, 314, 273, 1361, 67, 30016, 261, 856, 16, 306, 301, 71, 18, 70, 5322, 63, 856, 65, 364, 2125, 71, 316, 2125, 2143, 5717, 309, 314, 353, 486, 599, 30, 284, 273, 585, 7707, 30016, 5258, 87, 18, 9811, 11, 738, 498, 16, 296, 91, 6134, 17502, 5108, 261, 75, 16, 284, 13, 284, 18, 4412, 1832, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 261, 3459, 4672, 2125, 71, 273, 432, 20022, 18, 2080, 67, 768, 261, 3459, 13, 324, 5322, 273, 2618, 364, 261, 856, 16, 501, 13, 316, 2125, 71, 18, 70, 5322, 18, 2165, 3319, 1832, 30, 1172, 296, 3510, 310, 2667, 364, 2187, 856, 314, 273, 1361, 67, 30016, 261, 856, 16, 306, 301, 71, 18, 70, 5322, 63, 856, 65, 364, 2125, 71, 316, 2125, 2143, 5717, 309, 314, 353, 486, 599, 30, 284, 273, 585, 7707, 30016, 5258, 87, 18, 9811, 11, 738, 498, 16, 296, 91, 6134, 17502, 5108, 261, 75, 16, 284, 13, 284, 18, 4412, 1832, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dict = {}
def readmodule(module, path=[], inpackage=0): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module.''' i = string.rfind(module, '.') if i >= 0: # Dotted module name package = string.strip(module[:i]) submodule = string.strip(module[i+1:]) parent = readmodule(package, path, inpackage) child = readmodule(submodule, parent['__path__'], 1) return child if _modules.has_key(module): # we've seen this module before... return _modules[module] if module in sys.builtin_module_names: # this is a built-in module dict = {} _modules[module] = dict return dict # search the path for the module f = None if inpackage: try: f, file, (suff, mode, type) = \ imp.find_module(module, path) except ImportError: f = None if f is None: fullpath = list(path) + sys.path f, file, (suff, mode, type) = imp.find_module(module, fullpath) if type == imp.PKG_DIRECTORY: dict = {'__path__': [file]} _modules[module] = dict # XXX Should we recursively look for submodules? return dict if type != imp.PY_SOURCE: # not Python source, can't do anything with this module f.close() dict = {} _modules[module] = dict return dict dict = {} _modules[module] = dict imports = [] classstack = [] # stack of (class, indent) pairs src = f.read() f.close() # To avoid having to stop the regexp at each newline, instead # when we need a line number we simply string.count the number of # newlines in the string since the last time we did this; i.e., # lineno = lineno + \ # string.count(src, '\n', last_lineno_pos, here) # last_lineno_pos = here countnl = string.count lineno, last_lineno_pos = 1, 0 i = 0 while 1: m = _getnext(src, i) if not m: break start, i = m.span() if m.start("Method") >= 0: # found a method definition or function thisindent = _indent(m.group("MethodIndent")) # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] if classstack: # and we know the class it belongs to meth_name = m.group("MethodName") lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start cur_class = classstack[-1][0] cur_class._addmethod(meth_name, lineno) elif m.start("String") >= 0: pass elif m.start("Class") >= 0: # we found a class definition thisindent = _indent(m.group("ClassIndent")) # close all classes indented at least as much while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] lineno = lineno + \ countnl(src, '\n', last_lineno_pos, start) last_lineno_pos = start class_name = m.group("ClassName") inherit = m.group("ClassSupers") if inherit: # the class inherits from other classes inherit = string.strip(inherit[1:-1]) names = [] for n in string.splitfields(inherit, ','): n = string.strip(n) if dict.has_key(n): # we know this super class n = dict[n] else: c = string.splitfields(n, '.') if len(c) > 1: # super class # is of the # form module.class: # look in # module for class m = c[-2] c = c[-1] if _modules.has_key(m): d = _modules[m] if d.has_key(c): n = d[c] names.append(n) inherit = names # remember this class cur_class = Class(module, class_name, inherit, file, lineno) dict[class_name] = cur_class classstack.append((cur_class, thisindent)) elif m.start("Import") >= 0: # import module for n in string.split(m.group("ImportList"), ','): n = string.strip(n) try: # recursively read the imported module d = readmodule(n, path, inpackage) except: print 'module', n, 'not found' elif m.start("ImportFrom") >= 0: # from module import stuff mod = m.group("ImportFromPath") names = string.split(m.group("ImportFromList"), ',') try: # recursively read the imported module d = readmodule(mod, path, inpackage) except: print 'module', mod, 'not found' continue # add any classes that were defined in the # imported module to our name space if they # were mentioned in the list for n in names: n = string.strip(n) if d.has_key(n): dict[n] = d[n] elif n == '*': # only add a name if not # already there (to mimic what # Python does internally) # also don't add names that # start with _ for n in d.keys(): if n[0] != '_' and \ not dict.has_key(n): dict[n] = d[n] else: assert 0, "regexp _getnext found something unexpected" return dict
462dfce99b90ce796273c74b0427879994cb346c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/462dfce99b90ce796273c74b0427879994cb346c/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 1093, 6309, 225, 277, 273, 533, 18, 86, 4720, 12, 2978, 16, 2611, 13, 309, 277, 1545, 374, 30, 468, 17502, 2344, 1605, 508, 2181, 273, 533, 18, 6406, 12, 2978, 10531, 77, 5717, 27314, 273, 533, 18, 6406, 12, 2978, 63, 77, 15, 21, 30, 5717, 982, 273, 855, 2978, 12, 5610, 16, 589, 16, 316, 5610, 13, 1151, 273, 855, 2978, 12, 1717, 2978, 16, 982, 3292, 972, 803, 972, 17337, 404, 13, 327, 1151, 225, 309, 389, 6400, 18, 5332, 67, 856, 12, 2978, 4672, 468, 732, 8081, 5881, 333, 1605, 1865, 2777, 327, 389, 6400, 63, 2978, 65, 309, 1605, 316, 2589, 18, 24553, 67, 2978, 67, 1973, 30, 468, 333, 353, 279, 6650, 17, 267, 1605, 389, 6400, 63, 2978, 65, 273, 2065, 327, 2065, 225, 468, 1623, 326, 589, 364, 326, 1605, 284, 273, 599, 309, 316, 5610, 30, 775, 30, 284, 16, 585, 16, 261, 87, 3809, 16, 1965, 16, 618, 13, 273, 521, 1646, 18, 4720, 67, 2978, 12, 2978, 16, 589, 13, 1335, 11308, 30, 284, 273, 599, 309, 284, 353, 599, 30, 15170, 273, 666, 12, 803, 13, 397, 2589, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2978, 12, 2978, 16, 589, 22850, 6487, 316, 5610, 33, 20, 4672, 9163, 1994, 279, 1605, 585, 471, 327, 279, 3880, 434, 3318, 18, 225, 5167, 364, 14057, 316, 7767, 471, 2589, 18, 803, 16, 855, 471, 1109, 326, 1605, 471, 327, 279, 3880, 598, 1245, 1241, 364, 1517, 667, 1392, 316, 326, 1605, 1093, 6309, 225, 277, 273, 533, 18, 86, 4720, 12, 2978, 16, 2611, 13, 309, 277, 1545, 374, 30, 468, 17502, 2344, 1605, 508, 2181, 273, 533, 18, 6406, 12, 2978, 10531, 77, 5717, 27314, 273, 533, 18, 6406, 12, 2978, 63, 77, 15, 21, 30, 5717, 982, 273, 855, 2978, 12, 5610, 16, 589, 16, 316, 5610, 13, 1151, 273, 855, 2978, 2 ]
vs_ide_path = os.path.join(vs_path, rel_path)
vs_ide_path = os.path.join(prog.vs_path, rel_path)
def get_vs_ide_bin(): """Gets a full path to the Visual Studio IDE executable to run.""" # These are identical for VS2003.Net, VS2005 and VS2008 rel_path = 'Common7/IDE' vs_bin = 'devenv.com' vs_ide_path = os.path.join(vs_path, rel_path) vs_cmd_path = os.path.join(vs_ide_path, vs_bin) return vs_cmd_path
7f222394e7f848573cfa1d04c8f7002cca97d45b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5857/7f222394e7f848573cfa1d04c8f7002cca97d45b/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6904, 67, 831, 67, 4757, 13332, 3536, 3002, 279, 1983, 589, 358, 326, 26832, 934, 4484, 1599, 41, 9070, 358, 1086, 12123, 225, 468, 8646, 854, 12529, 364, 776, 55, 6976, 23, 18, 7308, 16, 776, 55, 6976, 25, 471, 776, 55, 6976, 28, 1279, 67, 803, 273, 296, 6517, 27, 19, 10385, 11, 6195, 67, 4757, 273, 296, 5206, 3074, 18, 832, 11, 225, 6195, 67, 831, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 14654, 18, 6904, 67, 803, 16, 1279, 67, 803, 13, 6195, 67, 4172, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 6904, 67, 831, 67, 803, 16, 6195, 67, 4757, 13, 327, 6195, 67, 4172, 67, 803, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6904, 67, 831, 67, 4757, 13332, 3536, 3002, 279, 1983, 589, 358, 326, 26832, 934, 4484, 1599, 41, 9070, 358, 1086, 12123, 225, 468, 8646, 854, 12529, 364, 776, 55, 6976, 23, 18, 7308, 16, 776, 55, 6976, 25, 471, 776, 55, 6976, 28, 1279, 67, 803, 273, 296, 6517, 27, 19, 10385, 11, 6195, 67, 4757, 273, 296, 5206, 3074, 18, 832, 11, 225, 6195, 67, 831, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 14654, 18, 6904, 67, 803, 16, 1279, 67, 803, 13, 6195, 67, 4172, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 6904, 67, 831, 67, 803, 16, 6195, 67, 4757, 13, 327, 6195, 67, 4172, 67, 803, 225, 2 ]
def email_subject(self)
def email_subject(self):
def email_subject(self) return '#%s %s' % (self.ticket_num, self.summary)
4ef360c75cf8b3870753c86a954652c88dabefb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/4ef360c75cf8b3870753c86a954652c88dabefb9/ticket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 7857, 12, 2890, 4672, 327, 2946, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 16282, 67, 2107, 16, 365, 18, 7687, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2699, 67, 7857, 12, 2890, 4672, 327, 2946, 9, 87, 738, 87, 11, 738, 261, 2890, 18, 16282, 67, 2107, 16, 365, 18, 7687, 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 ]
EXAMPLE: A complete graph is overfull if and only if its number of vertices is odd::
EXAMPLES: A complete graph of order `n > 1` is overfull if and only if `n` is odd::
def is_overfull(self): r""" Tests whether the current graph is overfull.
5791fd30862855b99605b2ceeea7482b18fcf20f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/5791fd30862855b99605b2ceeea7482b18fcf20f/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1643, 2854, 12, 2890, 4672, 436, 8395, 7766, 87, 2856, 326, 783, 2667, 353, 1879, 2854, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1643, 2854, 12, 2890, 4672, 436, 8395, 7766, 87, 2856, 326, 783, 2667, 353, 1879, 2854, 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 ]
sage: F(s) = function('F',s) sage: _inverse_laplace_latex_(F(s),s,t)
sage: F = function('F',s) sage: _inverse_laplace_latex_(0,F,s,t)
def _inverse_laplace_latex_(*args): r""" Return LaTeX expression for inverse Laplace transform of a symbolic function. EXAMPLES:: sage: from sage.calculus.calculus import _inverse_laplace_latex_ sage: var('s,t') (s, t) sage: F(s) = function('F',s) sage: _inverse_laplace_latex_(F(s),s,t) '\\mathcal{L}^{-1}\\left(F\\left(s\\right), s, t\\right)' AUTHORS: - Golam Mortuza Hossain (2009-06-22) """ return "\\mathcal{L}^{-1}\\left(%s\\right)"%(', '.join([latex(x) for x in args]))
4d7d88dc0e2e88a2fc4473ccb94bb557e357cf3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/4d7d88dc0e2e88a2fc4473ccb94bb557e357cf3b/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22552, 67, 11821, 964, 67, 26264, 67, 30857, 1968, 4672, 436, 8395, 2000, 21072, 21575, 60, 2652, 364, 8322, 21072, 964, 2510, 434, 279, 16754, 445, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 12780, 407, 18, 12780, 407, 1930, 389, 22552, 67, 11821, 964, 67, 26264, 67, 272, 410, 30, 569, 2668, 87, 16, 88, 6134, 261, 87, 16, 268, 13, 272, 410, 30, 478, 273, 445, 2668, 42, 2187, 87, 13, 272, 410, 30, 389, 22552, 67, 11821, 964, 67, 26264, 67, 12, 20, 16, 42, 16, 87, 16, 88, 13, 3718, 15949, 771, 95, 48, 97, 66, 95, 17, 21, 97, 1695, 4482, 12, 42, 1695, 4482, 12, 87, 1695, 4083, 3631, 272, 16, 268, 1695, 4083, 2506, 225, 12790, 14006, 30, 225, 300, 611, 355, 301, 490, 499, 89, 11939, 670, 8464, 530, 261, 6976, 29, 17, 7677, 17, 3787, 13, 3536, 327, 8422, 15949, 771, 95, 48, 97, 66, 95, 17, 21, 97, 1695, 4482, 9275, 87, 1695, 4083, 2225, 17105, 2187, 2418, 5701, 3816, 26264, 12, 92, 13, 364, 619, 316, 833, 22643, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 22552, 67, 11821, 964, 67, 26264, 67, 30857, 1968, 4672, 436, 8395, 2000, 21072, 21575, 60, 2652, 364, 8322, 21072, 964, 2510, 434, 279, 16754, 445, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 628, 272, 410, 18, 12780, 407, 18, 12780, 407, 1930, 389, 22552, 67, 11821, 964, 67, 26264, 67, 272, 410, 30, 569, 2668, 87, 16, 88, 6134, 261, 87, 16, 268, 13, 272, 410, 30, 478, 273, 445, 2668, 42, 2187, 87, 13, 272, 410, 30, 389, 22552, 67, 11821, 964, 67, 26264, 67, 12, 20, 16, 42, 16, 87, 16, 88, 13, 3718, 15949, 771, 95, 48, 97, 66, 95, 17, 21, 97, 1695, 4482, 12, 42, 1695, 4482, 12, 2 ]
while here.j != id.j:
while here.j != tid.j:
def movetholian(): "Move the Tholian." if not game.tholian or game.justin: return id = coord() if game.tholian.location.i == 0 and game.tholian.location.j == 0: id.i = 0; id.j = QUADSIZE-1 elif game.tholian.location.i == 0 and game.tholian.location.j == QUADSIZE-1: id.i = QUADSIZE-1; id.j = QUADSIZE-1 elif game.tholian.location.i == QUADSIZE-1 and game.tholian.location.j == QUADSIZE-1: id.i = QUADSIZE-1; id.j = 0 elif game.tholian.location.i == QUADSIZE-1 and game.tholian.location.j == 0: id.i = 0; id.j = 0 else: # something is wrong! game.tholian.move(None) prout("***Internal error: Tholian in a bad spot.") return # do nothing if we are blocked if game.quad[id.i][id.j] not in ('.', '#'): return here = copy.copy(game.tholian.location) delta = (id - game.tholian.location).sgn() # move in x axis while here.i != id.i: here.i += delta.i if game.quad[here.i][here.j]=='.': game.tholian.move(here) # move in y axis while here.j != id.j: here.j += delta.j if game.quad[here.i][here.j]=='.': game.tholian.move(here) # check to see if all holes plugged for i in range(QUADSIZE): if game.quad[0][i]!='#' and game.quad[0][i]!='T': return if game.quad[QUADSIZE-1][i]!='#' and game.quad[QUADSIZE-1][i]!='T': return if game.quad[i][0]!='#' and game.quad[i][0]!='T': return if game.quad[i][QUADSIZE-1]!='#' and game.quad[i][QUADSIZE-1]!='T': return # All plugged up -- Tholian splits game.quad[game.tholian.location.i][game.tholian.location.j]='#' dropin(' ') prout(crmena(True, 'T', "sector", game.tholian) + _(" completes web.")) game.tholian.move(None) return
eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5730, 546, 355, 2779, 13332, 315, 7607, 326, 935, 355, 2779, 1199, 309, 486, 7920, 18, 451, 355, 2779, 578, 7920, 18, 3732, 267, 30, 327, 612, 273, 2745, 1435, 309, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 374, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 374, 30, 612, 18, 77, 273, 374, 31, 612, 18, 78, 273, 10110, 1880, 4574, 17, 21, 1327, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 374, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 10110, 1880, 4574, 17, 21, 30, 612, 18, 77, 273, 10110, 1880, 4574, 17, 21, 31, 612, 18, 78, 273, 10110, 1880, 4574, 17, 21, 1327, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 10110, 1880, 4574, 17, 21, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 10110, 1880, 4574, 17, 21, 30, 612, 18, 77, 273, 10110, 1880, 4574, 17, 21, 31, 612, 18, 78, 273, 374, 1327, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 10110, 1880, 4574, 17, 21, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 374, 30, 612, 18, 77, 273, 374, 31, 612, 18, 78, 273, 374, 469, 30, 468, 5943, 353, 7194, 5, 7920, 18, 451, 355, 2779, 18, 8501, 12, 7036, 13, 450, 322, 2932, 14465, 3061, 555, 30, 935, 355, 2779, 316, 279, 5570, 16463, 1199, 13, 327, 468, 741, 5083, 309, 732, 854, 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, 5730, 546, 355, 2779, 13332, 315, 7607, 326, 935, 355, 2779, 1199, 309, 486, 7920, 18, 451, 355, 2779, 578, 7920, 18, 3732, 267, 30, 327, 612, 273, 2745, 1435, 309, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 374, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 374, 30, 612, 18, 77, 273, 374, 31, 612, 18, 78, 273, 10110, 1880, 4574, 17, 21, 1327, 7920, 18, 451, 355, 2779, 18, 3562, 18, 77, 422, 374, 471, 7920, 18, 451, 355, 2779, 18, 3562, 18, 78, 422, 10110, 1880, 4574, 17, 21, 30, 612, 18, 77, 273, 10110, 1880, 4574, 17, 21, 31, 612, 18, 78, 273, 10110, 1880, 4574, 17, 21, 2 ]
""" force a transition -- for debugging ONLY """
""" force a transition -- for debugging ONLY """
def forceTransition(self, aStateName, enterArgList=[], exitArgList=[]): """ force a transition -- for debugging ONLY """ self.request(aStateName, enterArgList, exitArgList, force=1)
32374b1b273c5130841307c0da81e0e6e1ce336c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/32374b1b273c5130841307c0da81e0e6e1ce336c/ClassicFSM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 8850, 12, 2890, 16, 279, 1119, 461, 16, 6103, 4117, 682, 22850, 6487, 2427, 4117, 682, 33, 8526, 4672, 3536, 2944, 279, 6007, 1493, 364, 10450, 20747, 3536, 365, 18, 2293, 12, 69, 1119, 461, 16, 6103, 4117, 682, 16, 2427, 4117, 682, 16, 2944, 33, 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, 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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, 2944, 8850, 12, 2890, 16, 279, 1119, 461, 16, 6103, 4117, 682, 22850, 6487, 2427, 4117, 682, 33, 8526, 4672, 3536, 2944, 279, 6007, 1493, 364, 10450, 20747, 3536, 365, 18, 2293, 12, 69, 1119, 461, 16, 6103, 4117, 682, 16, 2427, 4117, 682, 16, 2944, 33, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
PAGE_SPLIT_RE = re.compile(r"([a-z])([A-Z][a-z])")
PAGE_SPLIT_RE = re.compile(r"([a-z])([A-Z])(?=[a-z])")
def wiki_page_version_deleted(self, page): pass
d7f67e5d66e5327465f1e4809013444703cefc7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/d7f67e5d66e5327465f1e4809013444703cefc7d/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9050, 67, 2433, 67, 1589, 67, 8600, 12, 2890, 16, 1363, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9050, 67, 2433, 67, 1589, 67, 8600, 12, 2890, 16, 1363, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Group([ (1,2,3,4), (1,3)(2,4), (2,4) ])
Group( [ (1,2,3,4), (1,3)(2,4), (2,4) ] )
def normalizer(self,g): """ Returns the normalizer of g in self.
1b05cfeb7f54ab356322070384decddb4c5ea5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1b05cfeb7f54ab356322070384decddb4c5ea5b1/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19839, 12, 2890, 16, 75, 4672, 3536, 2860, 326, 19839, 434, 314, 316, 365, 18, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19839, 12, 2890, 16, 75, 4672, 3536, 2860, 326, 19839, 434, 314, 316, 365, 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 ]
filename = "%s-POWER_%s-%d-%d.xml" % (self.get_ifo(), self.__usertag, int(self.get_start()), int(self.get_end()) - int(self.get_start()))
filename = self.get_output()
def get_output_cache(self): """ Returns a LAL cache of the output file name from the power code. This must be kept synchronized with the name of the output file in power.c. Note in particular the calculation of the "start" and "duration" parts of the name. """ if None in [self.get_start(), self.get_end(), self.get_ifo(), self.__usertag]: raise ValueError, "start time, end time, ifo, or user tag has not been set" seg = segments.segment(LIGOTimeGPS(self.get_start()), LIGOTimeGPS(self.get_end())) filename = "%s-POWER_%s-%d-%d.xml" % (self.get_ifo(), self.__usertag, int(self.get_start()), int(self.get_end()) - int(self.get_start()))
478c43fe1274973f1d399688ea91f7222fde06ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/478c43fe1274973f1d399688ea91f7222fde06ad/power.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 67, 2493, 12, 2890, 4672, 3536, 2860, 279, 511, 1013, 1247, 434, 326, 876, 585, 508, 628, 326, 7212, 981, 18, 1220, 1297, 506, 16555, 3852, 598, 326, 508, 434, 326, 876, 585, 316, 7212, 18, 71, 18, 225, 3609, 316, 6826, 326, 11096, 434, 326, 315, 1937, 6, 471, 315, 8760, 6, 2140, 434, 326, 508, 18, 3536, 309, 599, 316, 306, 2890, 18, 588, 67, 1937, 9334, 365, 18, 588, 67, 409, 9334, 365, 18, 588, 67, 20299, 9334, 365, 16186, 407, 1051, 346, 14542, 1002, 2068, 16, 315, 1937, 813, 16, 679, 813, 16, 21479, 16, 578, 729, 1047, 711, 486, 2118, 444, 6, 2291, 273, 5155, 18, 9273, 12, 2053, 16387, 950, 28983, 12, 2890, 18, 588, 67, 1937, 1435, 3631, 511, 3047, 51, 950, 28983, 12, 2890, 18, 588, 67, 409, 1435, 3719, 1544, 273, 2213, 87, 17, 2419, 18839, 10185, 87, 6456, 72, 6456, 72, 18, 2902, 6, 738, 261, 2890, 18, 588, 67, 20299, 9334, 365, 16186, 407, 1051, 346, 16, 509, 12, 2890, 18, 588, 67, 1937, 1435, 3631, 509, 12, 2890, 18, 588, 67, 409, 10756, 300, 509, 12, 2890, 18, 588, 67, 1937, 1435, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2844, 67, 2493, 12, 2890, 4672, 3536, 2860, 279, 511, 1013, 1247, 434, 326, 876, 585, 508, 628, 326, 7212, 981, 18, 1220, 1297, 506, 16555, 3852, 598, 326, 508, 434, 326, 876, 585, 316, 7212, 18, 71, 18, 225, 3609, 316, 6826, 326, 11096, 434, 326, 315, 1937, 6, 471, 315, 8760, 6, 2140, 434, 326, 508, 18, 3536, 309, 599, 316, 306, 2890, 18, 588, 67, 1937, 9334, 365, 18, 588, 67, 409, 9334, 365, 18, 588, 67, 20299, 9334, 365, 16186, 407, 1051, 346, 14542, 1002, 2068, 16, 315, 1937, 813, 16, 679, 813, 16, 21479, 16, 578, 729, 1047, 711, 486, 2118, 444, 6, 2291, 273, 5155, 18, 9273, 12, 2053, 16387, 2 ]
plist = 'Info.plist' rel = os.path.join(bundleDir, 'release', plist) deb = os.path.join(bundleDir, 'debug', plist)
plist = os.path.join(bundleDir, 'Info.plist')
def updatePLists(self): bundleDir = os.path.join(self.chandlerDir, 'distrib', 'osx', 'bundle') plist = 'Info.plist' rel = os.path.join(bundleDir, 'release', plist) deb = os.path.join(bundleDir, 'debug', plist) searchLong = r'(Milestone|Release) \d\.\d\.\d+ ' searchShort = r'>\d\.\d\.\d+<' if self.release: longVersion = 'Release ' + self.version else: longVersion = 'Milestone ' + self.version shortVersion = '>' + self.version + '<' updateSmallFile(rel, searchLong, longVersion + ' ') updateSmallFile(rel, searchShort, shortVersion) updateSmallFile(deb, searchLong, longVersion + ' ') updateSmallFile(deb, searchShort, shortVersion)
aa43aa25e7d8f8adc6a5942fcaaa2c451d4004fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/aa43aa25e7d8f8adc6a5942fcaaa2c451d4004fb/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 52, 7432, 12, 2890, 4672, 3440, 1621, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 343, 464, 749, 1621, 16, 296, 2251, 665, 2187, 296, 538, 92, 2187, 296, 9991, 6134, 21074, 273, 1140, 18, 803, 18, 5701, 12, 9991, 1621, 16, 296, 966, 18, 17842, 6134, 1623, 3708, 273, 436, 11, 12, 49, 18270, 96, 7391, 13, 521, 72, 19002, 72, 19002, 72, 15, 296, 1623, 4897, 273, 436, 11, 5333, 72, 19002, 72, 19002, 72, 15, 32, 11, 309, 365, 18, 9340, 30, 1525, 1444, 273, 296, 7391, 296, 397, 365, 18, 1589, 469, 30, 1525, 1444, 273, 296, 49, 18270, 296, 397, 365, 18, 1589, 3025, 1444, 273, 7481, 397, 365, 18, 1589, 397, 9138, 1089, 19187, 812, 12, 2878, 16, 1623, 3708, 16, 1525, 1444, 397, 296, 8624, 1089, 19187, 812, 12, 2878, 16, 1623, 4897, 16, 3025, 1444, 13, 1089, 19187, 812, 12, 31888, 16, 1623, 3708, 16, 1525, 1444, 397, 296, 8624, 1089, 19187, 812, 12, 31888, 16, 1623, 4897, 16, 3025, 1444, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 52, 7432, 12, 2890, 4672, 3440, 1621, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 343, 464, 749, 1621, 16, 296, 2251, 665, 2187, 296, 538, 92, 2187, 296, 9991, 6134, 21074, 273, 1140, 18, 803, 18, 5701, 12, 9991, 1621, 16, 296, 966, 18, 17842, 6134, 1623, 3708, 273, 436, 11, 12, 49, 18270, 96, 7391, 13, 521, 72, 19002, 72, 19002, 72, 15, 296, 1623, 4897, 273, 436, 11, 5333, 72, 19002, 72, 19002, 72, 15, 32, 11, 309, 365, 18, 9340, 30, 1525, 1444, 273, 296, 7391, 296, 397, 365, 18, 1589, 469, 30, 1525, 1444, 273, 296, 49, 18270, 296, 397, 365, 18, 1589, 3025, 1444, 273, 7481, 397, 365, 18, 1589, 2 ]
def test_svn(): s,o = exec_command(['svn','status'])
def test_svn(**kws): s,o = exec_command(['svn','status'],**kws)
def test_svn(): s,o = exec_command(['svn','status']) assert s,(s,o)
f061375e2cd34559bb1d08fe7e7d82dc700a1792 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f061375e2cd34559bb1d08fe7e7d82dc700a1792/exec_command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 31505, 12, 636, 79, 4749, 4672, 272, 16, 83, 273, 1196, 67, 3076, 12, 3292, 31505, 17023, 2327, 17337, 636, 79, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 31505, 12, 636, 79, 4749, 4672, 272, 16, 83, 273, 1196, 67, 3076, 12, 3292, 31505, 17023, 2327, 17337, 636, 79, 4749, 13, 1815, 272, 16, 12, 87, 16, 83, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for route in xml_doc.route:
for route in xml_doc.getchildren(): if 'route' not in route.tag: continue
def getRouting(self, network_id, station_id, start_datetime, end_datetime): """ Get responsible host addresses for given network/stations from ArcLink.
c108523b8de7b72ac170be61790ea5d5f579505b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/c108523b8de7b72ac170be61790ea5d5f579505b/client.py
[ 1, 8585, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24740, 310, 12, 2890, 16, 2483, 67, 350, 16, 13282, 67, 350, 16, 787, 67, 6585, 16, 679, 67, 6585, 4672, 3536, 968, 14549, 1479, 6138, 364, 864, 2483, 19, 31478, 628, 24881, 2098, 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 ]
"not exist" % path)
"not exist" % os.path.dirname(path))
def save_screenshot_to(self, path): """Saves a screenshot to the specified file. The directory holding the file must exist or an exception is raised. """ if not os.path.exists(os.path.dirname(path)): raise DataError("Directory '%s' where to save the screenshot does " "not exist" % path) screensize = Toolkit.getDefaultToolkit().getScreenSize() rectangle = Rectangle(0, 0, screensize.width, screensize.height) image = Robot().createScreenCapture(rectangle) ImageIO.write(image, "jpg", File(path)) print "Screenshot saved to '%s'" % path return path
6e39b48af0911b7c5ba059908f31286f63a16235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/6e39b48af0911b7c5ba059908f31286f63a16235/Screenshot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 29435, 67, 869, 12, 2890, 16, 589, 4672, 3536, 13370, 279, 17179, 358, 326, 1269, 585, 18, 225, 1021, 1867, 19918, 326, 585, 1297, 1005, 578, 392, 1520, 353, 11531, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 803, 3719, 30, 1002, 1910, 668, 2932, 2853, 1995, 87, 11, 1625, 358, 1923, 326, 17179, 1552, 315, 315, 902, 1005, 6, 738, 1140, 18, 803, 18, 12287, 12, 803, 3719, 888, 266, 773, 554, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 1435, 11845, 273, 13264, 12, 20, 16, 374, 16, 888, 266, 773, 554, 18, 2819, 16, 888, 266, 773, 554, 18, 4210, 13, 1316, 273, 19686, 352, 7675, 2640, 7956, 12372, 12, 2607, 4341, 13, 3421, 4294, 18, 2626, 12, 2730, 16, 315, 14362, 3113, 1387, 12, 803, 3719, 1172, 315, 29354, 5198, 358, 1995, 87, 4970, 738, 589, 327, 589, 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,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 18, 12287, 12, 803, 3719, 30, 1002, 1910, 668, 2932, 2853, 1995, 87, 11, 1625, 358, 1923, 326, 17179, 1552, 315, 315, 902, 1005, 6, 738, 1140, 18, 803, 18, 12287, 12, 803, 3719, 888, 266, 773, 554, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 1435, 11845, 273, 13264, 12, 20, 16, 374, 16, 888, 266, 773, 554, 18, 2819, 16, 888, 266, 773, 554, 18, 4210, 13, 2 ]
self.redirect(self.action_url(action))
self.redirect(self.action_url(self.action))
def post(self): self.action.put()
26a70ba9cd56633a766b20434726cb5f1db54309 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14392/26a70ba9cd56633a766b20434726cb5f1db54309/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 365, 18, 1128, 18, 458, 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, 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 ]
def handle_close_event(self):
def handle_close(self):
def handle_close_event(self): self.closed = True
cceeaedede586cdaa02f131be8842cc30ba62ba9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/cceeaedede586cdaa02f131be8842cc30ba62ba9/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4412, 12, 2890, 4672, 365, 18, 12204, 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, 0, 0, 0, 0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 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
list = wrap(list, [optional('channel')])
list = wrap(list, ['channel',])
def list(self, irc, msg, args, channel): """[<channel>]
2bb3ba94433f489305cb6759b3cd4666855aff18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12790/2bb3ba94433f489305cb6759b3cd4666855aff18/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1904, 4672, 3536, 63, 32, 4327, 34, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1904, 4672, 3536, 63, 32, 4327, 34, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
underline=0, accelerator='Ctrl-g') menubar.add_cascade(label='Run', menu=gomenu)
underline=0, accelerator='Alt-g') menubar.add_cascade(label='Run', menu=gomenu, underline=0)
def _init_menubar(self): menubar = Menu(self._top, borderwidth=2, background=BG_COLOR, activebackground=BG_COLOR) filemenu = Menu(menubar, tearoff=0) filemenu.add_command(label='Open Project', underline=0, command=self._open, accelerator='Ctrl-o') filemenu.add_command(label='Save Project', underline=0, command=self._save, accelerator='Ctrl-s') filemenu.add_command(label='Save As..', underline=0, command=self._saveas, accelerator='Ctrl-s') filemenu.add_separator() filemenu.add_command(label='Exit', underline=0, command=self.destroy, accelerator='Ctrl-x') menubar.add_cascade(label='File', underline=0, menu=filemenu) gomenu = Menu(menubar, tearoff=0) gomenu.add_command(label='Run Epydoc', command=self._open, underline=0, accelerator='Ctrl-g') menubar.add_cascade(label='Run', menu=gomenu) self._top.config(menu=menubar)
cd9a037e35aa3ac02f05d4d7bc85c2a899e3132b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd9a037e35aa3ac02f05d4d7bc85c2a899e3132b/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 27617, 373, 297, 12, 2890, 4672, 21247, 373, 297, 273, 9809, 12, 2890, 6315, 3669, 16, 5795, 2819, 33, 22, 16, 5412, 33, 30098, 67, 10989, 16, 2695, 9342, 33, 30098, 67, 10989, 13, 585, 5414, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 3678, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 3190, 16, 15153, 7385, 2218, 12418, 17, 83, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 5688, 16, 15153, 7385, 2218, 12418, 17, 87, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 2970, 838, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 5688, 345, 16, 15153, 7385, 2218, 12418, 17, 87, 6134, 585, 5414, 18, 1289, 67, 11287, 1435, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 6767, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 18, 11662, 16, 15153, 7385, 2218, 12418, 17, 92, 6134, 21247, 373, 297, 18, 1289, 67, 22277, 12, 1925, 2218, 812, 2187, 25985, 33, 20, 16, 3824, 33, 768, 5414, 13, 18827, 2104, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 18827, 2104, 18, 1289, 67, 3076, 12, 1925, 2218, 1997, 512, 2074, 2434, 2187, 225, 1296, 33, 2890, 6315, 3190, 16, 25985, 33, 20, 16, 15153, 7385, 2218, 10655, 17, 75, 6134, 21247, 373, 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, 2738, 67, 27617, 373, 297, 12, 2890, 4672, 21247, 373, 297, 273, 9809, 12, 2890, 6315, 3669, 16, 5795, 2819, 33, 22, 16, 5412, 33, 30098, 67, 10989, 16, 2695, 9342, 33, 30098, 67, 10989, 13, 585, 5414, 273, 9809, 12, 27617, 373, 297, 16, 268, 2091, 3674, 33, 20, 13, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 3678, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 3190, 16, 15153, 7385, 2218, 12418, 17, 83, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2218, 4755, 5420, 2187, 25985, 33, 20, 16, 1296, 33, 2890, 6315, 5688, 16, 15153, 7385, 2218, 12418, 17, 87, 6134, 585, 5414, 18, 1289, 67, 3076, 12, 1925, 2 ]
return True
return False
def tool_item_event(self, item, event, tool):
cb06da5636bfb45e863e820d169c8349a05f8c73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/cb06da5636bfb45e863e820d169c8349a05f8c73/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5226, 67, 1726, 67, 2575, 12, 2890, 16, 761, 16, 871, 16, 5226, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 5226, 67, 1726, 67, 2575, 12, 2890, 16, 761, 16, 871, 16, 5226, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.personListCtrl.InsertStringItem(idx, to_locale(item.person_title))
self.personListCtrl.InsertStringItem(idx, to_wx(item.person_title))
def DoSelectGroup(self, event): """Update member and relationship lists for the selected group.
37c07bb93a6574354abfe8f76b9c44829e138f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/37c07bb93a6574354abfe8f76b9c44829e138f97/wxclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 3391, 1114, 12, 2890, 16, 871, 4672, 3536, 1891, 3140, 471, 5232, 6035, 364, 326, 3170, 1041, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 3391, 1114, 12, 2890, 16, 871, 4672, 3536, 1891, 3140, 471, 5232, 6035, 364, 326, 3170, 1041, 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 ]
'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function'
'defaults' is an n-tuple of the default values of the last n arguments. """ if ismethod(func): func = func.im_func if not isfunction(func): raise TypeError('arg is not a Python function')
def getargspec(func): """Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function' args, varargs, varkw = getargs(func.func_code) return args, varargs, varkw, func.func_defaults
22c9da5786df5ad015360983cd01171a0ca1d464 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/22c9da5786df5ad015360983cd01171a0ca1d464/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23172, 12, 644, 4672, 3536, 967, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 16, 3467, 2934, 296, 1968, 11, 353, 279, 666, 434, 326, 1237, 1257, 261, 305, 2026, 912, 4764, 6035, 2934, 296, 1401, 1968, 11, 471, 296, 90, 1313, 91, 11, 854, 326, 1257, 434, 326, 380, 471, 2826, 1775, 578, 599, 18, 296, 7606, 11, 353, 392, 290, 17, 8052, 434, 326, 805, 924, 434, 326, 1142, 290, 1775, 18, 3536, 225, 309, 353, 2039, 12, 644, 4672, 1326, 273, 1326, 18, 381, 67, 644, 309, 486, 353, 915, 12, 644, 4672, 1002, 3580, 2668, 3175, 353, 486, 279, 6600, 445, 6134, 833, 16, 19732, 16, 569, 9987,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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, 336, 23172, 12, 644, 4672, 3536, 967, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 16, 3467, 2934, 296, 1968, 11, 353, 279, 666, 434, 326, 1237, 1257, 261, 305, 2026, 912, 4764, 6035, 2934, 296, 1401, 1968, 11, 471, 296, 90, 1313, 91, 11, 854, 326, 1257, 434, 326, 380, 471, 2826, 1775, 578, 599, 18, 296, 7606, 11, 353, 392, 290, 17, 8052, 434, 326, 805, 924, 434, 326, 1142, 290, 1775, 18, 3536, 225, 309, 353, 2039, 12, 644, 4672, 1326, 273, 1326, 18, 381, 67, 644, 309, 486, 353, 915, 12, 644, 4672, 1002, 3580, 2 ]
return data, trans_data
return data def copy_translations(self, cr, uid, old_id, new_id, context=None): trans_obj = self.pool.get('ir.translation') fields = self.fields_get(cr, uid, context=context) translation_records = [] for field_name, field_def in fields.items(): if field_def['type'] in ('one2one', 'one2many'): target_obj = self.pool.get(field_def['relation']) old_record, new_record = self.read(cr, uid, [old_id, new_id], [field_name], context=context) old_childs = sorted(old_record[field_name]) new_childs = sorted(new_record[field_name]) for (old_child, new_child) in zip(old_childs, new_childs): target_obj.copy_translations(cr, uid, old_child, new_child, context=context) elif field_def.get('translate'): trans_name = '' if field_name in self._columns: trans_name = self._name + "," + field_name elif field_name in self._inherit_fields: trans_name = self._inherit_fields[field_name][0] + "," + field_name if trans_name: trans_ids = trans_obj.search(cr, uid, [ ('name', '=', trans_name), ('res_id','=', old_id) ]) translation_records.extend(trans_obj.read(cr,uid,trans_ids,context=context)) for record in translation_records: del record['id'] record['res_id'] = new_id trans_obj.create(cr, uid, record, context=context)
def copy_data(self, cr, uid, id, default=None, context=None): """ Copy given record's data with all its fields values
39e866ce70121c8138f7be0079ca7f0ceefb0a42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/39e866ce70121c8138f7be0079ca7f0ceefb0a42/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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 ]
def __init__(self, filenames=()):
def __init__(self, filenames=(), strict=True):
def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name)
00f4afff414f17f11401025d4fd9f2f9f25f525b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/00f4afff414f17f11401025d4fd9f2f9f25f525b/mimetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9066, 33, 9334, 5490, 33, 5510, 4672, 309, 486, 1208, 329, 30, 1208, 1435, 365, 18, 1331, 369, 899, 67, 1458, 273, 24118, 67, 1458, 18, 3530, 1435, 365, 18, 8477, 67, 1458, 273, 3758, 67, 1458, 18, 3530, 1435, 365, 18, 2352, 67, 1458, 273, 1953, 67, 1458, 18, 3530, 1435, 365, 18, 6054, 67, 2352, 273, 2975, 67, 2352, 18, 3530, 1435, 364, 508, 316, 9066, 30, 365, 18, 896, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 365, 18, 2352, 67, 1458, 273, 1953, 67, 1458, 18, 3530, 1435, 365, 18, 6054, 67, 2352, 273, 2975, 67, 2352, 18, 3530, 1435, 364, 508, 316, 9066, 30, 365, 18, 896, 12, 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 ]
def stop(self): backend.Backend.stop(self) self.info("Shutting down...")
def is_plaintext(email_message): """Whether a message is plaintext""" return re.match(r"^text/plain", email_message.get_content_type(), re.IGNORECASE)
def stop(self): backend.Backend.stop(self) self.info("Shutting down...")
6d681d82e58d10f0624caf32b7b289b3a27faefa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/6d681d82e58d10f0624caf32b7b289b3a27faefa/email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 4221, 18, 7172, 18, 5681, 12, 2890, 13, 365, 18, 1376, 2932, 1555, 25387, 2588, 7070, 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, 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2132, 12, 2890, 4672, 4221, 18, 7172, 18, 5681, 12, 2890, 13, 365, 18, 1376, 2932, 1555, 25387, 2588, 7070, 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 ]
if self.test_code("", "static int test_array [%d+1-sizeof(%s)];\ntest_array [0] = 0;" % (i,t)):
s = "static int test_array [%d+1-sizeof(%s)*2];\ntest_array [0] = 0;" % (i*2,t) if self.test_code("", s): print s print i
self.defines += ["typedef int boolean"]
05c572c4f4c69f06c70d5c5f391dc303f11e8d7e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5722/05c572c4f4c69f06c70d5c5f391dc303f11e8d7e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 536, 1465, 1011, 8247, 723, 536, 509, 1250, 11929, 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, 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, 365, 18, 536, 1465, 1011, 8247, 723, 536, 509, 1250, 11929, 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 ]
write_message('No plots detected in ' + refno)
write_message('No plots detected in %s' % (refno,))
def process_single(tarball, sdir = CFG_TMPDIR, xtract_text = False, \ upload_plots = False, force = False, squash = "", \ yes_i_know = False, refno_url = "", \ clean = False): """ Processes one tarball end-to-end. @param: tarball (string): the absolute location of the tarball we wish to process @param: sdir (string): where we should put all the intermediate files for the processing. if you're uploading, this directory should be one of the ones specified in CFG_BIBUPLOAD_FFT_ALLOWED_LOCAL_PATHS, else the upload won't work @param: xtract_text (boolean): true iff you want to run pdftotext on the pdf versions of the tarfiles. this programme assumes that the pdfs are named the same as the tarballs but with a .pdf extension. @param: upload_plots (boolean): true iff you want to bibupload the plots extracted by this process @param: force (boolean): force creation of new xml file @param: squash: write MARCXML output into a specified 'squash' file instead of single files. @param: yes_i_know: if True, no user interaction if upload_plots is True @param: refno_url: URL to the invenio-instance to query for refno. @param: clean: if True, everything except the original tarball, plots and context- files will be removed @return: marc_name(string): path to generated marcxml file """ sub_dir, refno = get_defaults(tarball, sdir, refno_url) if not squash: marc_name = os.path.join(sub_dir, refno + '.xml') if (force or not os.path.exists(marc_name)): marc_fd = open(marc_name, 'w') marc_fd.write('<?xml version="1.0" encoding="UTF-8"?>\n<collection>\n') marc_fd.close() else: marc_name = squash if xtract_text: extract_text(tarball) try: extracted_files_list, image_list, tex_files = untar(tarball, sub_dir) except Timeout: write_message('Timeout during tarball extraction on ' + tarball) return if tex_files == [] or tex_files == None: write_message(os.path.split(tarball)[-1] + ' is not a tarball') run_shell_command('rm -r %s', (sub_dir,)) return converted_image_list = convert_images(image_list) write_message('converted %d of %d images found for %s' % (len(converted_image_list), \ len(image_list), \ os.path.basename(tarball))) extracted_image_data = [] for tex_file in tex_files: # Extract images, captions and labels partly_extracted_image_data = extract_captions(tex_file, sub_dir, \ converted_image_list) if partly_extracted_image_data != []: cleaned_image_data = prepare_image_data(partly_extracted_image_data, \ tex_file, converted_image_list) # Using prev. extracted info, get contexts for each image found extracted_image_data.extend((extract_context(tex_file, cleaned_image_data))) if extracted_image_data == []: write_message('No plots detected in ' + refno) else: if refno_url == "": refno = None create_contextfiles(extracted_image_data) marc_xml = create_MARC(extracted_image_data, tarball, refno) if marc_name != None: marc_fd = open(marc_name, 'a') marc_fd.write('%s\n</collection>\n' % (marc_xml,)) marc_fd.close() if not squash: write_message('generated ' + marc_name) if upload_plots: upload_to_site(marc_name, yes_i_know) if clean: clean_up(extracted_files_list, image_list + converted_image_list) write_message('work complete on ' + os.path.split(tarball)[-1]) return marc_name
db29de596d58d21210981cce23fa69ad25ba56a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/db29de596d58d21210981cce23fa69ad25ba56a2/plotextractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 7526, 12, 88, 23846, 16, 272, 1214, 273, 7577, 67, 28259, 4537, 16, 619, 1575, 67, 955, 273, 1083, 16, 521, 3617, 67, 13214, 273, 1083, 16, 2944, 273, 1083, 16, 17715, 961, 273, 23453, 521, 12465, 67, 77, 67, 79, 3338, 273, 1083, 16, 1278, 2135, 67, 718, 273, 23453, 521, 2721, 273, 1083, 4672, 3536, 4389, 281, 1245, 29441, 679, 17, 869, 17, 409, 18, 225, 632, 891, 30, 29441, 261, 1080, 4672, 326, 4967, 2117, 434, 326, 29441, 732, 14302, 358, 1207, 632, 891, 30, 272, 1214, 261, 1080, 4672, 1625, 732, 1410, 1378, 777, 326, 12110, 1390, 364, 326, 4929, 18, 225, 309, 1846, 4565, 25306, 16, 333, 1867, 1410, 506, 1245, 434, 326, 5945, 1269, 316, 7577, 67, 31558, 3000, 52, 7783, 67, 2246, 56, 67, 16852, 67, 14922, 67, 4211, 55, 16, 469, 326, 3617, 8462, 1404, 1440, 632, 891, 30, 619, 1575, 67, 955, 261, 6494, 4672, 638, 21437, 1846, 2545, 358, 1086, 4863, 1222, 352, 408, 603, 326, 8169, 5244, 434, 326, 8232, 2354, 18, 225, 333, 5402, 3501, 13041, 716, 326, 8169, 87, 854, 4141, 326, 1967, 487, 326, 29441, 87, 1496, 598, 279, 263, 7699, 2710, 18, 632, 891, 30, 3617, 67, 13214, 261, 6494, 4672, 638, 21437, 1846, 2545, 358, 25581, 6327, 326, 17931, 9438, 635, 333, 1207, 632, 891, 30, 2944, 261, 6494, 4672, 2944, 6710, 434, 394, 2025, 585, 632, 891, 30, 17715, 961, 30, 1045, 490, 27206, 4201, 876, 1368, 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, 1207, 67, 7526, 12, 88, 23846, 16, 272, 1214, 273, 7577, 67, 28259, 4537, 16, 619, 1575, 67, 955, 273, 1083, 16, 521, 3617, 67, 13214, 273, 1083, 16, 2944, 273, 1083, 16, 17715, 961, 273, 23453, 521, 12465, 67, 77, 67, 79, 3338, 273, 1083, 16, 1278, 2135, 67, 718, 273, 23453, 521, 2721, 273, 1083, 4672, 3536, 4389, 281, 1245, 29441, 679, 17, 869, 17, 409, 18, 225, 632, 891, 30, 29441, 261, 1080, 4672, 326, 4967, 2117, 434, 326, 29441, 732, 14302, 358, 1207, 632, 891, 30, 272, 1214, 261, 1080, 4672, 1625, 732, 1410, 1378, 777, 326, 12110, 1390, 364, 326, 4929, 18, 225, 309, 1846, 4565, 25306, 16, 333, 1867, 1410, 506, 1245, 2 ]
pass
res = {} if "," in credentials: creds, remainder = credentials.split(",", 1) else: creds, remainder = credentials, "" creds = base64.decodestring(creds.strip()) if not creds.startswith('NTLMSSP\x00'): return res, remainder.strip() type = creds[8] if type==1: res['type'] = 1 domain_len = int(creds[16:18]) domain_off = int(creds[20:22]) host_len = int(creds[24:26]) host_off = int(creds[28:30]) res['host'] = creds[host_off:host_off+host_len] res['domain'] = creds[domain_off:domain_off+domain_len] elif type==3: res['type'] = 3 lm_res_len = int(creds[12:14]) else: return res, remainder.strip() return res, remainder.strip()
def parse_ntlm_credentials (credentials): """parse both type1 and type3 credentials""" # XXX pass
9b3b7bd7d9bd500538e8ae441a173f0dcd4087d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9b3b7bd7d9bd500538e8ae441a173f0dcd4087d4/ntlm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 16681, 81, 67, 11687, 261, 11687, 4672, 3536, 2670, 3937, 618, 21, 471, 618, 23, 4448, 8395, 468, 11329, 455, 273, 2618, 309, 5753, 316, 4448, 30, 12534, 16, 10022, 273, 4448, 18, 4939, 2932, 16, 3113, 404, 13, 469, 30, 12534, 16, 10022, 273, 4448, 16, 1408, 12534, 273, 1026, 1105, 18, 4924, 1145, 371, 12, 29260, 18, 6406, 10756, 309, 486, 12534, 18, 17514, 1918, 2668, 1784, 17063, 1260, 52, 64, 92, 713, 11, 4672, 225, 327, 400, 16, 10022, 18, 6406, 1435, 618, 273, 12534, 63, 28, 65, 309, 618, 631, 21, 30, 400, 3292, 723, 3546, 273, 404, 2461, 67, 1897, 273, 509, 12, 29260, 63, 2313, 30, 2643, 5717, 2461, 67, 3674, 273, 509, 12, 29260, 63, 3462, 30, 3787, 5717, 1479, 67, 1897, 273, 509, 12, 29260, 63, 3247, 30, 5558, 5717, 1479, 67, 3674, 273, 509, 12, 29260, 63, 6030, 30, 5082, 5717, 400, 3292, 2564, 3546, 273, 12534, 63, 2564, 67, 3674, 30, 2564, 67, 3674, 15, 2564, 67, 1897, 65, 400, 3292, 4308, 3546, 273, 12534, 63, 4308, 67, 3674, 30, 4308, 67, 3674, 15, 4308, 67, 1897, 65, 1327, 618, 631, 23, 30, 400, 3292, 723, 3546, 273, 890, 14966, 67, 455, 67, 1897, 273, 509, 12, 29260, 63, 2138, 30, 3461, 5717, 225, 469, 30, 225, 327, 400, 16, 10022, 18, 6406, 1435, 327, 400, 16, 10022, 18, 6406, 1435, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 16681, 81, 67, 11687, 261, 11687, 4672, 3536, 2670, 3937, 618, 21, 471, 618, 23, 4448, 8395, 468, 11329, 455, 273, 2618, 309, 5753, 316, 4448, 30, 12534, 16, 10022, 273, 4448, 18, 4939, 2932, 16, 3113, 404, 13, 469, 30, 12534, 16, 10022, 273, 4448, 16, 1408, 12534, 273, 1026, 1105, 18, 4924, 1145, 371, 12, 29260, 18, 6406, 10756, 309, 486, 12534, 18, 17514, 1918, 2668, 1784, 17063, 1260, 52, 64, 92, 713, 11, 4672, 225, 327, 400, 16, 10022, 18, 6406, 1435, 618, 273, 12534, 63, 28, 65, 309, 618, 631, 21, 30, 400, 3292, 723, 3546, 273, 404, 2461, 67, 1897, 273, 509, 12, 29260, 63, 2313, 30, 2643, 5717, 2461, 67, 2 ]
for stripe in stripeset:
for stripe in stripeset:
def flatten(self, stripeset, depth=0, context="show"): """Converts a stripe or stripeset into a string"""
8c93e382b626c0486b37cfec0506f7e5eeed2350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/8c93e382b626c0486b37cfec0506f7e5eeed2350/PyGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 16, 2569, 281, 278, 16, 3598, 33, 20, 16, 819, 1546, 4500, 6, 4672, 3536, 5692, 279, 14268, 578, 2569, 281, 278, 1368, 279, 533, 8395, 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 ]
print >> ssio, self.val_py.strides
print >> ssio, self.val_py.strides,
def str_diagnostic(self): """Return a pretty multiline string representating the cause of the exception""" sio = StringIO() print >> sio, "BadCLinkerOutput" print >> sio, " variable:", self.r print >> sio, " val_py :", self.val_py print >> sio, " val_c :", self.val_c print >> sio, " op :", self.offending_op() try: ssio = StringIO() print >> ssio, " PyValue shape, dtype, strides, min, max:", print >> ssio, self.val_py.shape, print >> ssio, self.val_py.dtype, print >> ssio, self.val_py.strides print >> ssio, self.val_py.min(), print >> ssio, self.val_py.max(), # only if all succeeds to we add anything to sio print >> sio, ssio.getvalue() except: pass try: ssio = StringIO() print >> ssio, " CValue shape, dtype, strides, min, max:", print >> ssio, self.val_c.shape, print >> ssio, self.val_c.dtype, print >> ssio, self.val_c.strides, print >> ssio, self.val_c.min(), print >> ssio, self.val_c.max(), # only if all succeeds to we add anything to sio print >> sio, ssio.getvalue() except: pass try: ov=numpy.asarray(self.val_c) nv=numpy.asarray(self.val_py) ssio = StringIO() print >> ssio, " Max Abs Diff: ", numpy.max(numpy.absolute(nv-ov)) print >> ssio, " Mean Abs Diff: ", numpy.mean(numpy.absolute(nv-ov)) print >> ssio, " Median Abs Diff: ", numpy.median(numpy.absolute(nv-ov)) print >> ssio, " Std Abs Diff: ", numpy.std(numpy.absolute(nv-ov)) reldiff = numpy.absolute(nv-ov) / (numpy.absolute(nv)+numpy.absolute(ov)) print >> ssio, " Max Rel Diff: ", numpy.max(reldiff) print >> ssio, " Mean Rel Diff: ", numpy.mean(reldiff) print >> ssio, " Median Rel Diff: ", numpy.median(reldiff) print >> ssio, " Std Rel Diff: ", numpy.std(reldiff) # only if all succeeds to we add anything to sio print >> sio, ssio.getvalue() except: pass return sio.getvalue()
406674ed9d8b047600bb754f975bde1a5cc7a0ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/406674ed9d8b047600bb754f975bde1a5cc7a0ea/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 12264, 11388, 12, 2890, 4672, 3536, 990, 279, 7517, 19431, 533, 2406, 1776, 326, 4620, 434, 326, 1520, 8395, 272, 1594, 273, 15777, 1435, 1172, 1671, 272, 1594, 16, 315, 6434, 39, 2098, 264, 1447, 6, 1172, 1671, 272, 1594, 16, 315, 225, 2190, 2773, 16, 365, 18, 86, 1172, 1671, 272, 1594, 16, 315, 225, 1244, 67, 2074, 225, 294, 3113, 365, 18, 1125, 67, 2074, 1172, 1671, 272, 1594, 16, 315, 225, 1244, 67, 71, 282, 294, 3113, 365, 18, 1125, 67, 71, 1172, 1671, 272, 1594, 16, 315, 225, 1061, 1377, 294, 3113, 365, 18, 3674, 2846, 67, 556, 1435, 775, 30, 5202, 1594, 273, 15777, 1435, 1172, 1671, 5202, 1594, 16, 315, 225, 4707, 620, 2179, 16, 3182, 16, 21626, 16, 1131, 16, 943, 2773, 16, 1172, 1671, 5202, 1594, 16, 365, 18, 1125, 67, 2074, 18, 4867, 16, 1172, 1671, 5202, 1594, 16, 365, 18, 1125, 67, 2074, 18, 8972, 16, 1172, 1671, 5202, 1594, 16, 365, 18, 1125, 67, 2074, 18, 701, 4369, 16, 1172, 1671, 5202, 1594, 16, 365, 18, 1125, 67, 2074, 18, 1154, 9334, 1172, 1671, 5202, 1594, 16, 365, 18, 1125, 67, 2074, 18, 1896, 9334, 468, 1338, 309, 777, 21933, 358, 732, 527, 6967, 358, 272, 1594, 1172, 1671, 272, 1594, 16, 5202, 1594, 18, 588, 1132, 1435, 1335, 30, 1342, 775, 30, 5202, 1594, 273, 15777, 1435, 1172, 1671, 5202, 1594, 16, 315, 225, 385, 620, 2179, 16, 3182, 16, 21626, 16, 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, 609, 67, 12264, 11388, 12, 2890, 4672, 3536, 990, 279, 7517, 19431, 533, 2406, 1776, 326, 4620, 434, 326, 1520, 8395, 272, 1594, 273, 15777, 1435, 1172, 1671, 272, 1594, 16, 315, 6434, 39, 2098, 264, 1447, 6, 1172, 1671, 272, 1594, 16, 315, 225, 2190, 2773, 16, 365, 18, 86, 1172, 1671, 272, 1594, 16, 315, 225, 1244, 67, 2074, 225, 294, 3113, 365, 18, 1125, 67, 2074, 1172, 1671, 272, 1594, 16, 315, 225, 1244, 67, 71, 282, 294, 3113, 365, 18, 1125, 67, 71, 1172, 1671, 272, 1594, 16, 315, 225, 1061, 1377, 294, 3113, 365, 18, 3674, 2846, 67, 556, 1435, 775, 30, 5202, 1594, 273, 15777, 1435, 1172, 1671, 5202, 1594, 16, 315, 2 ]
('.',['../source/version1/ChangeLog.txt']),
('.',['../source/ChangeLog.txt']),
def listdirFull(thedir): """ This is just os.listdir() but it returns the full path names. """ files = os.listdir(thedir) for loop in range(len(files)): files[loop] = thedir+os.sep+files[loop] return files
2f2e970404e660e7affa1df7788230ec078cbd76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8973/2f2e970404e660e7affa1df7788230ec078cbd76/setup_mac_version1.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13529, 5080, 12, 451, 23210, 4672, 3536, 1220, 353, 2537, 1140, 18, 1098, 1214, 1435, 1496, 518, 1135, 326, 1983, 589, 1257, 18, 3536, 1390, 273, 1140, 18, 1098, 1214, 12, 451, 23210, 13, 364, 2798, 316, 1048, 12, 1897, 12, 2354, 3719, 30, 1390, 63, 6498, 65, 273, 326, 1214, 15, 538, 18, 10814, 15, 2354, 63, 6498, 65, 327, 1390, 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,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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, 13529, 5080, 12, 451, 23210, 4672, 3536, 1220, 353, 2537, 1140, 18, 1098, 1214, 1435, 1496, 518, 1135, 326, 1983, 589, 1257, 18, 3536, 1390, 273, 1140, 18, 1098, 1214, 12, 451, 23210, 13, 364, 2798, 316, 1048, 12, 1897, 12, 2354, 3719, 30, 1390, 63, 6498, 65, 273, 326, 1214, 15, 538, 18, 10814, 15, 2354, 63, 6498, 65, 327, 1390, 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 ]
file_list[x]['relro'], file_list[x]['ssp'], file_list[x]['pie'], file_list[x]['fortify_source'], file_list[x]['nx'])
self.db.sanitize_string(symbol))
def add_flag_records(self, tag_id, record, flags): """ Function to add flag records to the database """ logging.debug('in Binary.add_flag_records(%s, %s, %s)' % (tag_id, record, flags))
db3e09aa0517efc638ded0f40524a2b41dc13d44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11154/db3e09aa0517efc638ded0f40524a2b41dc13d44/binary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 6420, 67, 7094, 12, 2890, 16, 1047, 67, 350, 16, 1409, 16, 2943, 4672, 3536, 4284, 358, 527, 2982, 3853, 358, 326, 2063, 3536, 2907, 18, 4148, 2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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 6420, 67, 7094, 12, 2890, 16, 1047, 67, 350, 16, 1409, 16, 2943, 4672, 3536, 4284, 358, 527, 2982, 3853, 358, 326, 2063, 3536, 2907, 18, 4148, 2668, 267, 7896, 18, 1289, 67, 6420, 67, 7094, 9275, 87, 16, 738, 87, 16, 738, 87, 2506, 738, 261, 2692, 67, 350, 16, 1409, 16, 2943, 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 ]
self.throttle.setIsForward(self.locoForward.isSelected()) self.throttle.setF0(self.locoHeadlight.isSelected()) self.throttle.setF1(self.locoBell.isSelected())
self.currentThrottle.setIsForward(self.locoForward.isSelected()) self.currentThrottle.setF0(self.locoHeadlight.isSelected()) self.currentThrottle.setF1(self.locoBell.isSelected())
def init(self): self.holdMoving = True self.msgText("Getting throttle - ") #add text to scroll field number = int(self.locoAddress.text) dir = self.locoLong.isSelected() self.throttle = self.getThrottle(number, dir) self.currentThrottle = self.throttle if (self.throttle == None) : self.msgText("Couldn't assign throttle! - Run stopped\n") self.doHalt() else : self.msgText("got throttle\n") self.throttle.setIsForward(self.locoForward.isSelected()) self.throttle.setF0(self.locoHeadlight.isSelected()) self.throttle.setF1(self.locoBell.isSelected()) self.holdMoving = False self.didWeMoveCounterCheck(None) return
79d90690794086da3c9fee9c98395e003d9ba5c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2146/79d90690794086da3c9fee9c98395e003d9ba5c7/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 4672, 365, 18, 21056, 49, 13767, 273, 1053, 365, 18, 3576, 1528, 2932, 19213, 18304, 300, 9369, 468, 1289, 977, 358, 5532, 652, 1300, 273, 509, 12, 2890, 18, 1829, 83, 1887, 18, 955, 13, 1577, 273, 365, 18, 1829, 83, 3708, 18, 291, 7416, 1435, 365, 18, 27971, 298, 273, 365, 18, 588, 27636, 12, 2696, 16, 1577, 13, 365, 18, 2972, 27636, 273, 365, 18, 27971, 298, 309, 261, 2890, 18, 27971, 298, 422, 599, 13, 294, 365, 18, 3576, 1528, 2932, 16342, 1404, 2683, 18304, 5, 300, 1939, 9627, 64, 82, 7923, 365, 18, 2896, 27034, 1435, 469, 294, 365, 18, 3576, 1528, 2932, 13212, 18304, 64, 82, 7923, 365, 18, 2972, 27636, 18, 542, 2520, 8514, 12, 2890, 18, 1829, 83, 8514, 18, 291, 7416, 10756, 365, 18, 2972, 27636, 18, 542, 42, 20, 12, 2890, 18, 1829, 83, 1414, 5099, 18, 291, 7416, 10756, 365, 18, 2972, 27636, 18, 542, 42, 21, 12, 2890, 18, 1829, 83, 38, 1165, 18, 291, 7416, 10756, 365, 18, 21056, 49, 13767, 273, 1083, 365, 18, 14044, 3218, 7607, 4789, 1564, 12, 7036, 13, 327, 225, 2, 0, 0, 0, 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19213, 18304, 300, 9369, 468, 1289, 977, 358, 5532, 652, 1300, 273, 509, 12, 2890, 18, 1829, 83, 1887, 18, 955, 13, 1577, 273, 365, 18, 1829, 83, 3708, 18, 291, 7416, 1435, 365, 18, 27971, 298, 273, 365, 18, 588, 27636, 12, 2696, 16, 1577, 13, 365, 18, 2972, 27636, 273, 365, 18, 27971, 298, 309, 261, 2890, 18, 27971, 298, 422, 599, 13, 294, 365, 18, 3576, 1528, 2932, 16342, 1404, 2683, 18304, 5, 300, 1939, 9627, 64, 82, 7923, 365, 18, 2896, 27034, 1435, 469, 294, 365, 18, 3576, 1528, 2932, 13212, 18304, 64, 82, 7923, 365, 18, 2972, 2 ]
repo = RpmRepo(baseurl, excludes, key)
repo = RpmRepo(baseurl, excludes, key, readsrc)
def readRepos(releasever, configfiles, arch, buildroot, readdebug, readsrc, readcompsfile=0): # Read in /etc/yum.conf config files. repos = [] for c in configfiles: print "Reading config file %s." % c conf = YumConf(releasever, arch, BuildArchTranslate(arch), buildroot, c, "") #print conf.vars for key in conf.vars.keys(): if key == "main": #mainconf = conf.vars["main"] #if mainconf.has_key("distroverpkg"): # distroverpkg = [mainconf["distroverpkg"]] continue sec = conf[key] if sec.get("enabled") == "0": continue if not sec.has_key("baseurl"): print "%s:" % key, "No baseurl for this section in conf file." return None baseurl = sec["baseurl"][0] excludes = sec.get("exclude", "") repo = RpmRepo(baseurl, excludes, key) repo.read() if not readdebug: repo.delDebuginfo() if not readsrc: repo.delSrc() if readcompsfile: repo.compsfile = cacheLocal(baseurl + "/repodata/comps.xml", key) repos.append(repo) print "Done reading config file %s." % c return repos
d4a3970fa3f1947aabfdd4eca421bbf58568d6ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d4a3970fa3f1947aabfdd4eca421bbf58568d6ba/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 28453, 12, 9340, 502, 16, 642, 2354, 16, 6637, 16, 1361, 3085, 16, 855, 4148, 16, 855, 4816, 16, 855, 31532, 768, 33, 20, 4672, 468, 2720, 316, 342, 14175, 19, 93, 379, 18, 3923, 642, 1390, 18, 13686, 273, 5378, 364, 276, 316, 642, 2354, 30, 1172, 315, 15714, 642, 585, 738, 87, 1199, 738, 276, 2195, 273, 1624, 379, 3976, 12, 9340, 502, 16, 6637, 16, 3998, 12269, 12818, 12, 991, 3631, 1361, 3085, 16, 276, 16, 1408, 13, 468, 1188, 2195, 18, 4699, 364, 498, 316, 2195, 18, 4699, 18, 2452, 13332, 309, 498, 422, 315, 5254, 6877, 468, 5254, 3923, 273, 2195, 18, 4699, 9614, 5254, 11929, 468, 430, 2774, 3923, 18, 5332, 67, 856, 2932, 4413, 303, 502, 10657, 6, 4672, 468, 565, 27450, 502, 10657, 273, 306, 5254, 3923, 9614, 4413, 303, 502, 10657, 11929, 65, 1324, 1428, 273, 2195, 63, 856, 65, 309, 1428, 18, 588, 2932, 5745, 7923, 422, 315, 20, 6877, 1324, 309, 486, 1428, 18, 5332, 67, 856, 2932, 1969, 718, 6, 4672, 1172, 2213, 87, 2773, 738, 498, 16, 315, 2279, 25427, 364, 333, 2442, 316, 2195, 585, 1199, 327, 599, 25427, 273, 1428, 9614, 1969, 718, 6, 6362, 20, 65, 13644, 273, 1428, 18, 588, 2932, 10157, 3113, 1408, 13, 3538, 273, 534, 7755, 8791, 12, 1969, 718, 16, 13644, 16, 498, 16, 855, 4816, 13, 3538, 18, 896, 1435, 309, 486, 855, 4148, 30, 3538, 18, 3771, 2829, 1376, 1435, 309, 486, 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, 855, 28453, 12, 9340, 502, 16, 642, 2354, 16, 6637, 16, 1361, 3085, 16, 855, 4148, 16, 855, 4816, 16, 855, 31532, 768, 33, 20, 4672, 468, 2720, 316, 342, 14175, 19, 93, 379, 18, 3923, 642, 1390, 18, 13686, 273, 5378, 364, 276, 316, 642, 2354, 30, 1172, 315, 15714, 642, 585, 738, 87, 1199, 738, 276, 2195, 273, 1624, 379, 3976, 12, 9340, 502, 16, 6637, 16, 3998, 12269, 12818, 12, 991, 3631, 1361, 3085, 16, 276, 16, 1408, 13, 468, 1188, 2195, 18, 4699, 364, 498, 316, 2195, 18, 4699, 18, 2452, 13332, 309, 498, 422, 315, 5254, 6877, 468, 5254, 3923, 273, 2195, 18, 4699, 9614, 5254, 11929, 468, 430, 2774, 3923, 18, 5332, 2 ]
By default, the diff control lines (those with *** or ---) are
By default, the diff control lines (those with ---, +++, or @@) are
def unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n'): r""" Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of context. The number of context lines is set by 'n' which defaults to three. By default, the diff control lines (those with *** or ---) are created with a trailing newline. This is helpful so that inputs created from file.readlines() result in diffs that are suitable for file.writelines() since both the inputs and outputs have trailing newlines. For inputs that do not have trailing newlines, set the lineterm argument to "" so that the output will be uniformly newline free. The unidiff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. The modification times are normally expressed in the format returned by time.ctime(). Example: >>> for line in unified_diff('one two three four'.split(), ... 'zero one tree four'.split(), 'Original', 'Current', ... 'Sat Jan 26 23:30:50 1991', 'Fri Jun 06 10:20:52 2003', ... lineterm=''): ... print line --- Original Sat Jan 26 23:30:50 1991 +++ Current Fri Jun 06 10:20:52 2003 @@ -1,4 +1,4 @@ +zero one -two -three +tree four """ started = False for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n): if not started: yield '--- %s %s%s' % (fromfile, fromfiledate, lineterm) yield '+++ %s %s%s' % (tofile, tofiledate, lineterm) started = True i1, i2, j1, j2 = group[0][1], group[-1][2], group[0][3], group[-1][4] yield "@@ -%d,%d +%d,%d @@%s" % (i1+1, i2-i1, j1+1, j2-j1, lineterm) for tag, i1, i2, j1, j2 in group: if tag == 'equal': for line in a[i1:i2]: yield ' ' + line continue if tag == 'replace' or tag == 'delete': for line in a[i1:i2]: yield '-' + line if tag == 'replace' or tag == 'insert': for line in b[j1:j2]: yield '+' + line
0887c732e7d6e162b4b78004af8546b739c77ca7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0887c732e7d6e162b4b78004af8546b739c77ca7/difflib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27136, 67, 5413, 12, 69, 16, 324, 16, 628, 768, 2218, 2187, 358, 768, 2218, 2187, 628, 768, 712, 2218, 2187, 358, 768, 712, 2218, 2187, 290, 33, 23, 16, 4739, 847, 81, 2218, 64, 82, 11, 4672, 436, 8395, 11051, 2795, 8463, 434, 2362, 31, 2103, 326, 3622, 487, 279, 27136, 3122, 18, 225, 1351, 939, 15250, 854, 279, 6739, 4031, 434, 17253, 980, 3478, 471, 279, 11315, 2362, 434, 819, 18, 225, 1021, 1300, 434, 819, 2362, 353, 444, 635, 296, 82, 11, 1492, 3467, 358, 8925, 18, 225, 2525, 805, 16, 326, 3122, 3325, 2362, 261, 451, 2584, 598, 9948, 16, 965, 15, 16, 578, 22175, 13, 854, 2522, 598, 279, 7341, 9472, 18, 225, 1220, 353, 28063, 1427, 716, 4540, 2522, 628, 585, 18, 896, 3548, 1435, 563, 316, 15250, 716, 854, 10631, 364, 585, 18, 5363, 14567, 1435, 3241, 3937, 326, 4540, 471, 6729, 1240, 7341, 19181, 18, 225, 2457, 4540, 716, 741, 486, 1240, 7341, 19181, 16, 444, 326, 4739, 847, 81, 1237, 358, 1408, 1427, 716, 326, 876, 903, 506, 10823, 715, 9472, 4843, 18, 225, 1021, 640, 350, 3048, 740, 15849, 711, 279, 1446, 364, 9066, 471, 11544, 4124, 18, 225, 5502, 578, 777, 434, 4259, 2026, 506, 1269, 1450, 2064, 364, 296, 2080, 768, 2187, 296, 869, 768, 2187, 296, 2080, 768, 712, 2187, 471, 296, 869, 768, 712, 10332, 225, 1021, 11544, 4124, 854, 15849, 26863, 316, 326, 740, 2106, 635, 813, 18, 21261, 7675, 225, 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, 27136, 67, 5413, 12, 69, 16, 324, 16, 628, 768, 2218, 2187, 358, 768, 2218, 2187, 628, 768, 712, 2218, 2187, 358, 768, 712, 2218, 2187, 290, 33, 23, 16, 4739, 847, 81, 2218, 64, 82, 11, 4672, 436, 8395, 11051, 2795, 8463, 434, 2362, 31, 2103, 326, 3622, 487, 279, 27136, 3122, 18, 225, 1351, 939, 15250, 854, 279, 6739, 4031, 434, 17253, 980, 3478, 471, 279, 11315, 2362, 434, 819, 18, 225, 1021, 1300, 434, 819, 2362, 353, 444, 635, 296, 82, 11, 1492, 3467, 358, 8925, 18, 225, 2525, 805, 16, 326, 3122, 3325, 2362, 261, 451, 2584, 598, 9948, 16, 965, 15, 16, 578, 22175, 13, 854, 2522, 598, 279, 7341, 9472, 18, 225, 2 ]
exp.add(sw)
exp.add_widget(sw, False)
def main(klass): w = gtk.Window() vbox = gtk.VBox() sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) sw.set_size_request(400, 400) exp = klass("miao") exp.add(sw) vbox.pack_start(exp, False, False) sw = gtk.ScrolledWindow() sw.add(gtk.TextView()) exp = klass("miao") exp.add(sw) vbox.pack_start(exp) vbox.pack_start(gtk.Label("mias"), False, False) w.add(vbox) w.show_all()
da768c9b8873665bf193190ab828897badf72809 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11468/da768c9b8873665bf193190ab828897badf72809/Expander.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 22626, 4672, 341, 273, 22718, 18, 3829, 1435, 331, 2147, 273, 22718, 18, 58, 3514, 1435, 225, 1352, 273, 22718, 18, 1541, 25054, 3829, 1435, 1352, 18, 1289, 12, 4521, 79, 18, 1528, 1767, 10756, 1352, 18, 542, 67, 1467, 67, 2293, 12, 16010, 16, 7409, 13, 225, 1329, 273, 7352, 2932, 81, 1155, 83, 7923, 1329, 18, 1289, 67, 6587, 12, 5328, 16, 1083, 13, 225, 331, 2147, 18, 2920, 67, 1937, 12, 2749, 16, 1083, 16, 1083, 13, 225, 1352, 273, 22718, 18, 1541, 25054, 3829, 1435, 1352, 18, 1289, 12, 4521, 79, 18, 1528, 1767, 10756, 225, 1329, 273, 7352, 2932, 81, 1155, 83, 7923, 1329, 18, 1289, 67, 6587, 12, 5328, 16, 1083, 13, 331, 2147, 18, 2920, 67, 1937, 12, 2749, 13, 225, 331, 2147, 18, 2920, 67, 1937, 12, 4521, 79, 18, 2224, 2932, 81, 1795, 6, 3631, 1083, 16, 1083, 13, 341, 18, 1289, 12, 90, 2147, 13, 341, 18, 4500, 67, 454, 1435, 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,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1767, 10756, 1352, 18, 542, 67, 1467, 67, 2293, 12, 16010, 16, 7409, 13, 225, 1329, 273, 7352, 2932, 81, 1155, 83, 7923, 1329, 18, 1289, 67, 6587, 12, 5328, 16, 1083, 13, 225, 331, 2147, 18, 2920, 67, 1937, 12, 2749, 16, 1083, 16, 1083, 13, 225, 1352, 273, 22718, 18, 1541, 25054, 3829, 1435, 1352, 18, 1289, 12, 4521, 79, 18, 1528, 1767, 10756, 225, 1329, 273, 7352, 2932, 81, 1155, 83, 7923, 1329, 18, 1289, 67, 6587, 12, 5328, 16, 2 ]
def fl_replace_menu_item(ob, numb, str): """ fl_replace_menu_item(ob, numb, str) """ _fl_replace_menu_item(ob, numb, str)
def fl_replace_menu_item(pObject, numb, item_string): """ fl_replace_menu_item(pObject, numb, item_string) """ _fl_replace_menu_item(pObject, numb, item_string)
def fl_replace_menu_item(ob, numb, str): """ fl_replace_menu_item(ob, numb, str) """ _fl_replace_menu_item(ob, numb, str)
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, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 4672, 3536, 1183, 67, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 13, 3536, 225, 389, 2242, 67, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 13, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 4672, 3536, 1183, 67, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 13, 3536, 225, 389, 2242, 67, 2079, 67, 5414, 67, 1726, 12, 84, 921, 16, 818, 70, 16, 761, 67, 1080, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
command = path_png2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v 1 -f 8 -o '%s'" \ % (totalframes, framespersecond, background, path_mpeg2enc[0], aspectratio, tempvideo)
command = path_jpeg2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v 1 -f 8 -o '%s'" \ % (totalframes, framespersecond, background, path_mpeg2enc[0], aspectratio, tempvideo)
def encodeMenu(background, tempvideo, music, musiclength, tempmovie, xmlfile, finaloutput, aspectratio): if videomode=="pal": framespersecond=frameratePAL else: framespersecond=framerateNTSC totalframes=int(musiclength * framespersecond) command = path_png2yuv[0] + " -n %s -v0 -I p -f %s -j '%s' | %s -b 5000 -a %s -v 1 -f 8 -o '%s'" \ % (totalframes, framespersecond, background, path_mpeg2enc[0], aspectratio, tempvideo) result = runCommand(command) if result<>0: fatalError("Failed while running png2yuv - %s" % command) command = path_mplex[0] + " -f 8 -v 0 -o '%s' '%s' '%s'" % (tempmovie, tempvideo, music) result = runCommand(command) if result<>0: fatalError("Failed while running mplex - %s" % command) if xmlfile != "": command = path_spumux[0] + " -m dvd -s 0 '%s' < '%s' > '%s'" % (xmlfile, tempmovie, finaloutput) result = runCommand(command) if result<>0: fatalError("Failed while running spumux - %s" % command) else: os.rename(tempmovie, finaloutput) if os.path.exists(tempvideo): os.remove(tempvideo) if os.path.exists(tempmovie): os.remove(tempmovie)
b4b3dc0760dd22f26d036660d08e363e0ebf4ef2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/b4b3dc0760dd22f26d036660d08e363e0ebf4ef2/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 4599, 12, 9342, 16, 1906, 9115, 16, 26225, 16, 26225, 2469, 16, 1906, 8683, 13120, 16, 2025, 768, 16, 727, 2844, 16, 9648, 9847, 4672, 309, 331, 831, 362, 390, 31713, 15081, 6877, 7793, 457, 8538, 33, 74, 1940, 12600, 26497, 469, 30, 7793, 457, 8538, 33, 74, 1940, 12600, 1784, 2312, 225, 2078, 10278, 33, 474, 12, 81, 14894, 2469, 380, 7793, 457, 8538, 13, 225, 1296, 273, 589, 67, 14423, 22, 93, 16303, 63, 20, 65, 397, 315, 300, 82, 738, 87, 300, 90, 20, 300, 45, 293, 300, 74, 738, 87, 300, 78, 1995, 87, 11, 571, 738, 87, 300, 70, 20190, 300, 69, 738, 87, 300, 90, 404, 300, 74, 1725, 300, 83, 1995, 87, 4970, 521, 738, 261, 4963, 10278, 16, 7793, 457, 8538, 16, 5412, 16, 589, 67, 19951, 22, 1331, 63, 20, 6487, 9648, 9847, 16, 1906, 9115, 13, 563, 273, 31933, 12, 3076, 13, 309, 563, 29667, 20, 30, 10081, 668, 2932, 2925, 1323, 3549, 14476, 22, 93, 16303, 300, 738, 87, 6, 738, 1296, 13, 225, 1296, 273, 589, 67, 1291, 4149, 63, 20, 65, 397, 315, 300, 74, 1725, 300, 90, 374, 300, 83, 1995, 87, 11, 1995, 87, 11, 1995, 87, 4970, 738, 261, 5814, 8683, 13120, 16, 1906, 9115, 16, 26225, 13, 563, 273, 31933, 12, 3076, 13, 309, 563, 29667, 20, 30, 10081, 668, 2932, 2925, 1323, 3549, 312, 7179, 300, 738, 87, 6, 738, 1296, 13, 225, 309, 2025, 768, 480, 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, 4599, 12, 9342, 16, 1906, 9115, 16, 26225, 16, 26225, 2469, 16, 1906, 8683, 13120, 16, 2025, 768, 16, 727, 2844, 16, 9648, 9847, 4672, 309, 331, 831, 362, 390, 31713, 15081, 6877, 7793, 457, 8538, 33, 74, 1940, 12600, 26497, 469, 30, 7793, 457, 8538, 33, 74, 1940, 12600, 1784, 2312, 225, 2078, 10278, 33, 474, 12, 81, 14894, 2469, 380, 7793, 457, 8538, 13, 225, 1296, 273, 589, 67, 14423, 22, 93, 16303, 63, 20, 65, 397, 315, 300, 82, 738, 87, 300, 90, 20, 300, 45, 293, 300, 74, 738, 87, 300, 78, 1995, 87, 11, 571, 738, 87, 300, 70, 20190, 300, 69, 738, 87, 300, 90, 404, 300, 74, 1725, 300, 83, 2 ]
self.dispatch(t.values[0]) for v in t.values[1:]: self.write(" %s " % self.boolops[t.op.__class__]) self.dispatch(v)
s = " %s " % self.boolops[t.op.__class__] interleave(lambda: self.write(s), self.dispatch, t.values)
def _BoolOp(self, t): self.write("(") self.dispatch(t.values[0]) for v in t.values[1:]: self.write(" %s " % self.boolops[t.op.__class__]) self.dispatch(v) self.write(")")
643abd1e07e9d2d1312ef50fdf241af321625a3e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/643abd1e07e9d2d1312ef50fdf241af321625a3e/unparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7464, 3817, 12, 2890, 16, 268, 4672, 365, 18, 2626, 2932, 2932, 13, 272, 273, 315, 738, 87, 315, 738, 365, 18, 6430, 4473, 63, 88, 18, 556, 16186, 1106, 972, 65, 1554, 19574, 12, 14661, 30, 365, 18, 2626, 12, 87, 3631, 365, 18, 10739, 16, 268, 18, 2372, 13, 365, 18, 2626, 2932, 2225, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7464, 3817, 12, 2890, 16, 268, 4672, 365, 18, 2626, 2932, 2932, 13, 272, 273, 315, 738, 87, 315, 738, 365, 18, 6430, 4473, 63, 88, 18, 556, 16186, 1106, 972, 65, 1554, 19574, 12, 14661, 30, 365, 18, 2626, 12, 87, 3631, 365, 18, 10739, 16, 268, 18, 2372, 13, 365, 18, 2626, 2932, 2225, 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 ]
@type content: L{Object}
@type content: L{Content}
def resume(self, content): """ Appending this content has resumed. @param content: The content for which proccessing has been resumed. @type content: L{Object} """ pass
119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10774, 12, 2890, 16, 913, 4672, 3536, 6181, 310, 333, 913, 711, 24632, 329, 18, 632, 891, 913, 30, 1021, 913, 364, 1492, 450, 850, 310, 711, 2118, 24632, 329, 18, 632, 723, 913, 30, 511, 95, 1350, 97, 3536, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10774, 12, 2890, 16, 913, 4672, 3536, 6181, 310, 333, 913, 711, 24632, 329, 18, 632, 891, 913, 30, 1021, 913, 364, 1492, 450, 850, 310, 711, 2118, 24632, 329, 18, 632, 723, 913, 30, 511, 95, 1350, 97, 3536, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.faultQuadrature = self.inventory.quadrature
self.faultQuadrature = self.inventory.faultQuadrature
def _configure(self): """ Setup members using inventory. """ PetscComponent._configure(self) self.faultQuadrature = self.inventory.quadrature self.upDir = map(float, self.inventory.upDir) self.normalDir = map(float, self.inventory.normalDir) self.matDB = self.inventory.matDB ModuleFault.id(self, self.inventory.matId) ModuleFault.label(self, self.inventory.faultLabel) return
a2e0072f01bd39a351b478ca91d641ce2212b264 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/a2e0072f01bd39a351b478ca91d641ce2212b264/Fault.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 4672, 3536, 10939, 4833, 1450, 13086, 18, 3536, 453, 278, 1017, 1841, 6315, 14895, 12, 2890, 13, 365, 18, 643, 24483, 86, 1231, 273, 365, 18, 26024, 18, 643, 24483, 86, 1231, 365, 18, 416, 1621, 273, 852, 12, 5659, 16, 365, 18, 26024, 18, 416, 1621, 13, 365, 18, 6130, 1621, 273, 852, 12, 5659, 16, 365, 18, 26024, 18, 6130, 1621, 13, 365, 18, 7373, 2290, 273, 365, 18, 26024, 18, 7373, 2290, 5924, 7083, 18, 350, 12, 2890, 16, 365, 18, 26024, 18, 7373, 548, 13, 5924, 7083, 18, 1925, 12, 2890, 16, 365, 18, 26024, 18, 643, 2224, 13, 327, 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, 389, 14895, 12, 2890, 4672, 3536, 10939, 4833, 1450, 13086, 18, 3536, 453, 278, 1017, 1841, 6315, 14895, 12, 2890, 13, 365, 18, 643, 24483, 86, 1231, 273, 365, 18, 26024, 18, 643, 24483, 86, 1231, 365, 18, 416, 1621, 273, 852, 12, 5659, 16, 365, 18, 26024, 18, 416, 1621, 13, 365, 18, 6130, 1621, 273, 852, 12, 5659, 16, 365, 18, 26024, 18, 6130, 1621, 13, 365, 18, 7373, 2290, 273, 365, 18, 26024, 18, 7373, 2290, 5924, 7083, 18, 350, 12, 2890, 16, 365, 18, 26024, 18, 7373, 548, 13, 5924, 7083, 18, 1925, 12, 2890, 16, 365, 18, 26024, 18, 643, 2224, 13, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
max_count=self.options.num_instances, instance_type=instance_type)
max_count=self.options.num_instances, instance_type=instance_type, security_groups=[security_group])
def do_start(self): ami_id = self.sd.get('ami_id') instance_type = self.sd.get('instance_type', 'm1.small') if not ami_id: self.parser.error('ami_id option is required when starting the service') ec2 = boto.connect_ec2() if not self.sd.has_section('Credentials'): self.sd.add_section('Credentials') self.sd.set('Credentials', 'aws_access_key_id', ec2.aws_access_key_id) self.sd.set('Credentials', 'aws_secret_access_key', ec2.aws_secret_access_key) s = StringIO.StringIO() self.sd.write(s) rs = ec2.get_all_images([ami_id]) img = rs[0] r = img.run(user_data=s.getvalue(), key_name=self.options.keypair, max_count=self.options.num_instances, instance_type=instance_type) print 'Starting AMI: %s' % ami_id print 'Reservation %s contains the following instances:' % r.id for i in r.instances: print '\t%s' % i.id
9ffaba57b2ade5b63c6a07e64fb912e907cd60be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/9ffaba57b2ade5b63c6a07e64fb912e907cd60be/bs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1937, 12, 2890, 4672, 2125, 77, 67, 350, 273, 365, 18, 6427, 18, 588, 2668, 26223, 67, 350, 6134, 791, 67, 723, 273, 365, 18, 6427, 18, 588, 2668, 1336, 67, 723, 2187, 296, 81, 21, 18, 12019, 6134, 309, 486, 2125, 77, 67, 350, 30, 365, 18, 4288, 18, 1636, 2668, 26223, 67, 350, 1456, 353, 1931, 1347, 5023, 326, 1156, 6134, 6557, 22, 273, 17228, 18, 3612, 67, 557, 22, 1435, 309, 486, 365, 18, 6427, 18, 5332, 67, 3464, 2668, 6163, 11, 4672, 365, 18, 6427, 18, 1289, 67, 3464, 2668, 6163, 6134, 365, 18, 6427, 18, 542, 2668, 6163, 2187, 296, 6850, 67, 3860, 67, 856, 67, 350, 2187, 6557, 22, 18, 6850, 67, 3860, 67, 856, 67, 350, 13, 365, 18, 6427, 18, 542, 2668, 6163, 2187, 296, 6850, 67, 5875, 67, 3860, 67, 856, 2187, 6557, 22, 18, 6850, 67, 5875, 67, 3860, 67, 856, 13, 272, 273, 15777, 18, 780, 4294, 1435, 365, 18, 6427, 18, 2626, 12, 87, 13, 3597, 273, 6557, 22, 18, 588, 67, 454, 67, 7369, 3816, 26223, 67, 350, 5717, 3774, 273, 3597, 63, 20, 65, 436, 273, 3774, 18, 2681, 12, 1355, 67, 892, 33, 87, 18, 588, 1132, 9334, 498, 67, 529, 33, 2890, 18, 2116, 18, 856, 6017, 16, 943, 67, 1883, 33, 2890, 18, 2116, 18, 2107, 67, 10162, 16, 791, 67, 723, 33, 1336, 67, 723, 16, 4373, 67, 4650, 22850, 7462, 67, 1655, 5717, 1172, 296, 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, 741, 67, 1937, 12, 2890, 4672, 2125, 77, 67, 350, 273, 365, 18, 6427, 18, 588, 2668, 26223, 67, 350, 6134, 791, 67, 723, 273, 365, 18, 6427, 18, 588, 2668, 1336, 67, 723, 2187, 296, 81, 21, 18, 12019, 6134, 309, 486, 2125, 77, 67, 350, 30, 365, 18, 4288, 18, 1636, 2668, 26223, 67, 350, 1456, 353, 1931, 1347, 5023, 326, 1156, 6134, 6557, 22, 273, 17228, 18, 3612, 67, 557, 22, 1435, 309, 486, 365, 18, 6427, 18, 5332, 67, 3464, 2668, 6163, 11, 4672, 365, 18, 6427, 18, 1289, 67, 3464, 2668, 6163, 6134, 365, 18, 6427, 18, 542, 2668, 6163, 2187, 296, 6850, 67, 3860, 67, 856, 67, 350, 2187, 6557, 22, 18, 2 ]
assert i != -1, "Impossible line %d to reflow: %s" % (size, `s`)
assert i != -1, "Impossible line %d to reflow: %r" % (size, s)
def reflow_lines(s, depth): """Reflow the line s indented depth tabs. Return a sequence of lines where no line extends beyond MAX_COL when properly indented. The first line is properly indented based exclusively on depth * TABSIZE. All following lines -- these are the reflowed lines generated by this function -- start at the same column as the first character beyond the opening { in the first line. """ size = MAX_COL - depth * TABSIZE if len(s) < size: return [s] lines = [] cur = s padding = "" while len(cur) > size: i = cur.rfind(' ', 0, size) # XXX this should be fixed for real if i == -1 and 'GeneratorExp' in cur: i = size + 3 assert i != -1, "Impossible line %d to reflow: %s" % (size, `s`) lines.append(padding + cur[:i]) if len(lines) == 1: # find new size based on brace j = cur.find('{', 0, i) if j >= 0: j += 2 # account for the brace and the space after it size -= j padding = " " * j else: j = cur.find('(', 0, i) if j >= 0: j += 1 # account for the paren (no space after it) size -= j padding = " " * j cur = cur[i+1:] else: lines.append(padding + cur) return lines
7b7d1c8282fa2599e2f132c401defde3c9b42e3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/7b7d1c8282fa2599e2f132c401defde3c9b42e3f/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 821, 67, 3548, 12, 87, 16, 3598, 4672, 3536, 1957, 821, 326, 980, 272, 23786, 3598, 10920, 18, 225, 2000, 279, 3102, 434, 2362, 1625, 1158, 980, 3231, 17940, 4552, 67, 4935, 1347, 8214, 23786, 18, 225, 1021, 1122, 980, 353, 8214, 23786, 2511, 4687, 407, 4492, 603, 3598, 380, 26158, 4574, 18, 225, 4826, 3751, 2362, 1493, 4259, 854, 326, 1278, 3788, 2362, 4374, 635, 333, 445, 1493, 787, 622, 326, 1967, 1057, 487, 326, 1122, 3351, 17940, 326, 10890, 288, 316, 326, 1122, 980, 18, 3536, 963, 273, 4552, 67, 4935, 300, 3598, 380, 26158, 4574, 309, 562, 12, 87, 13, 411, 963, 30, 327, 306, 87, 65, 225, 2362, 273, 5378, 662, 273, 272, 4992, 273, 1408, 1323, 562, 12, 1397, 13, 405, 963, 30, 277, 273, 662, 18, 86, 4720, 2668, 2265, 374, 16, 963, 13, 468, 11329, 333, 1410, 506, 5499, 364, 2863, 309, 277, 422, 300, 21, 471, 296, 3908, 2966, 11, 316, 662, 30, 277, 273, 963, 397, 890, 1815, 277, 480, 300, 21, 16, 315, 1170, 12708, 980, 738, 72, 358, 1278, 821, 30, 738, 86, 6, 738, 261, 1467, 16, 272, 13, 2362, 18, 6923, 12, 9598, 397, 662, 10531, 77, 5717, 309, 562, 12, 3548, 13, 422, 404, 30, 468, 1104, 394, 963, 2511, 603, 22500, 525, 273, 662, 18, 4720, 2668, 95, 2187, 374, 16, 277, 13, 309, 525, 1545, 374, 30, 525, 1011, 576, 468, 2236, 364, 326, 22500, 471, 326, 3476, 1839, 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, 1278, 821, 67, 3548, 12, 87, 16, 3598, 4672, 3536, 1957, 821, 326, 980, 272, 23786, 3598, 10920, 18, 225, 2000, 279, 3102, 434, 2362, 1625, 1158, 980, 3231, 17940, 4552, 67, 4935, 1347, 8214, 23786, 18, 225, 1021, 1122, 980, 353, 8214, 23786, 2511, 4687, 407, 4492, 603, 3598, 380, 26158, 4574, 18, 225, 4826, 3751, 2362, 1493, 4259, 854, 326, 1278, 3788, 2362, 4374, 635, 333, 445, 1493, 787, 622, 326, 1967, 1057, 487, 326, 1122, 3351, 17940, 326, 10890, 288, 316, 326, 1122, 980, 18, 3536, 963, 273, 4552, 67, 4935, 300, 3598, 380, 26158, 4574, 309, 562, 12, 87, 13, 411, 963, 30, 327, 306, 87, 65, 225, 2362, 273, 5378, 662, 273, 272, 2 ]
templateWithParamsR = re.compile(r'{{(.*?[^ ])\|([^ ].*?)}}')
templateWithParamsR = re.compile(r'{{(.*?[^ ])\|([^ ].*?)}}', re.DOTALL)
def weblinksIn(text, withoutBracketed = False, onlyBracketed = False): text = wikipedia.removeDisabledParts(text) # MediaWiki parses templates before parsing external links. Thus, there # might be a | or a } directly after a URL which does not belong to # the URL itself. # Blow up templates with spaces to avoid these problems. templateWithParamsR = re.compile(r'{{(.*?[^ ])\|([^ ].*?)}}') while templateWithParamsR.search(text): text = templateWithParamsR.sub(r'{{ \1 | \2 }}', text) # RFC 2396 says that URLs may only contain certain characters. # For this regex we also accept non-allowed characters, so that the bot # will later show these links as broken ('Non-ASCII Characters in URL'). # Note: While allowing parenthesis inside URLs, MediaWiki will regard # right parenthesis at the end of the URL as not part of that URL. # The same applies to dot, comma, colon and some other characters. notAtEnd = '\]\s\)\.:;,<>"' # So characters inside the URL can be anything except whitespace, # closing squared brackets, quotation marks, greater than and less # than, and the last character also can't be parenthesis or another # character disallowed by MediaWiki. notInside = '\]\s<>"' # The first half of this regular expression is required because '' is # not allowed inside links. For example, in this wiki text: # ''Please see http://www.example.org.'' # .'' shouldn't be considered as part of the link. regex = r'(?P<url>http[s]?://[^' + notInside + ']*?[^' + notAtEnd + '](?=[' + notAtEnd+ ']*\'\')|http[s]?://[^' + notInside + ']*[^' + notAtEnd + '])' if withoutBracketed: regex = r'(?<!\[)' + regex elif onlyBracketed: regex = r'\[' + regex linkR = re.compile(regex) # Remove HTML comments in URLs as well as URLs in HTML comments. # Also remove text inside nowiki links text = re.sub('(?s)<nowiki>.*?</nowiki>|<!--.*?-->', '', text) for m in linkR.finditer(text): yield m.group('url')
302e9dffc9e1adf47f6cae2da35df343edac5e75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/302e9dffc9e1adf47f6cae2da35df343edac5e75/weblinkchecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3311, 7135, 382, 12, 955, 16, 2887, 11450, 329, 273, 1083, 16, 1338, 11450, 329, 273, 1083, 4672, 977, 273, 21137, 18, 4479, 8853, 4305, 12, 955, 13, 225, 468, 6128, 25438, 8940, 5539, 1865, 5811, 3903, 4716, 18, 22073, 16, 1915, 468, 4825, 506, 279, 571, 578, 279, 289, 5122, 1839, 279, 1976, 1492, 1552, 486, 10957, 358, 468, 326, 1976, 6174, 18, 468, 605, 821, 731, 5539, 598, 7292, 358, 4543, 4259, 9688, 18, 1542, 19591, 54, 273, 283, 18, 11100, 12, 86, 11, 12187, 7444, 35, 5969, 308, 5153, 96, 8178, 308, 4509, 8535, 13932, 16, 283, 18, 17591, 4685, 13, 1323, 1542, 19591, 54, 18, 3072, 12, 955, 4672, 977, 273, 1542, 19591, 54, 18, 1717, 12, 86, 11, 12187, 521, 21, 571, 521, 22, 289, 24259, 977, 13, 225, 468, 8372, 576, 5520, 26, 20185, 716, 10414, 2026, 1338, 912, 8626, 3949, 18, 468, 2457, 333, 3936, 732, 2546, 2791, 1661, 17, 8151, 3949, 16, 1427, 716, 326, 2512, 468, 903, 5137, 2405, 4259, 4716, 487, 12933, 7707, 3989, 17, 13756, 3703, 9202, 316, 1976, 16063, 468, 3609, 30, 21572, 15632, 22311, 4832, 10414, 16, 6128, 25438, 903, 12283, 468, 2145, 22311, 622, 326, 679, 434, 326, 1976, 487, 486, 1087, 434, 716, 1976, 18, 468, 1021, 1967, 10294, 358, 3928, 16, 8716, 16, 13336, 471, 2690, 1308, 3949, 18, 486, 861, 1638, 273, 2337, 13944, 87, 64, 5153, 29710, 31, 16, 32, 2984, 11, 468, 6155, 3949, 4832, 326, 1976, 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, 3311, 7135, 382, 12, 955, 16, 2887, 11450, 329, 273, 1083, 16, 1338, 11450, 329, 273, 1083, 4672, 977, 273, 21137, 18, 4479, 8853, 4305, 12, 955, 13, 225, 468, 6128, 25438, 8940, 5539, 1865, 5811, 3903, 4716, 18, 22073, 16, 1915, 468, 4825, 506, 279, 571, 578, 279, 289, 5122, 1839, 279, 1976, 1492, 1552, 486, 10957, 358, 468, 326, 1976, 6174, 18, 468, 605, 821, 731, 5539, 598, 7292, 358, 4543, 4259, 9688, 18, 1542, 19591, 54, 273, 283, 18, 11100, 12, 86, 11, 12187, 7444, 35, 5969, 308, 5153, 96, 8178, 308, 4509, 8535, 13932, 16, 283, 18, 17591, 4685, 13, 1323, 1542, 19591, 54, 18, 3072, 12, 955, 4672, 977, 273, 1542, 19591, 54, 2 ]
return self.__finish('Invalid Proxy')
return self.__rescheduleFailedJob( jobID , 'Proxy has no group properties defined')
def execute(self): """The JobAgent execution method. """ jobManager = RPCClient('WorkloadManagement/JobManager') #TODO: Initially adding timeleft utility for information, not yet instrumented # to perform scheduling based on the output. if self.jobCount: #Only call timeLeft utility after a job has been picked up self.log.info('Attempting to check CPU time left for filling mode') if self.fillingMode: result = self.__getCPUTimeLeft() self.log.info('Result from TimeLeft utility:') if not result['OK']: self.log.warn(result['Message']) return self.__finish(result['Message']) timeLeft = result['Value'] self.log.info('%s normalized CPU units remaining in slot' %(timeLeft)) return self.__finish('Filling Mode is Disabled')
e246b1ac753f5835981de1ab24be9c02f2e46b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/e246b1ac753f5835981de1ab24be9c02f2e46b1d/JobAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1986, 3956, 3630, 4588, 707, 18, 3536, 1719, 1318, 225, 273, 8295, 1227, 2668, 2421, 945, 10998, 19, 2278, 1318, 6134, 468, 6241, 30, 4378, 6261, 6534, 1658, 6516, 1222, 12788, 364, 1779, 16, 486, 4671, 10353, 329, 468, 1377, 358, 3073, 21895, 2511, 603, 326, 876, 18, 309, 365, 18, 4688, 1380, 30, 468, 3386, 745, 813, 3910, 12788, 1839, 279, 1719, 711, 2118, 25534, 731, 365, 18, 1330, 18, 1376, 2668, 23089, 358, 866, 12154, 813, 2002, 364, 25740, 1965, 6134, 309, 365, 18, 74, 5789, 2309, 30, 563, 273, 365, 16186, 588, 15222, 950, 3910, 1435, 365, 18, 1330, 18, 1376, 2668, 1253, 628, 2647, 3910, 12788, 2497, 13, 309, 486, 563, 3292, 3141, 3546, 30, 365, 18, 1330, 18, 8935, 12, 2088, 3292, 1079, 19486, 327, 365, 16186, 13749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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1986, 3956, 3630, 4588, 707, 18, 3536, 1719, 1318, 225, 273, 8295, 1227, 2668, 2421, 945, 10998, 19, 2278, 1318, 6134, 468, 6241, 30, 4378, 6261, 6534, 1658, 6516, 1222, 12788, 364, 1779, 16, 486, 4671, 10353, 329, 468, 1377, 358, 3073, 21895, 2511, 603, 326, 876, 18, 309, 365, 18, 4688, 1380, 30, 468, 3386, 745, 813, 3910, 12788, 1839, 279, 1719, 711, 2118, 25534, 731, 365, 18, 1330, 18, 1376, 2668, 23089, 358, 866, 12154, 813, 2002, 364, 25740, 1965, 6134, 309, 365, 18, 74, 5789, 2309, 30, 563, 273, 365, 16186, 588, 15222, 950, 3910, 1435, 365, 18, 1330, 18, 1376, 2668, 1253, 628, 2647, 3910, 12788, 2497, 13, 309, 2 ]
group = pattern.getgroup(name) if group: subpattern.append((MARK, (group-1)*2))
group = state.getgroup(name)
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: subpattern.append((LITERAL, this)) elif this == "[": # character set set = []
815d5b934b8e8c0b7832353593050a6db660f517 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/815d5b934b8e8c0b7832353593050a6db660f517/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, 225, 1323, 404, 30, 225, 309, 609, 12, 3168, 18, 4285, 13, 316, 7566, 96, 3113, 7310, 4672, 898, 468, 679, 434, 720, 4951, 333, 273, 1084, 18, 588, 1435, 309, 333, 353, 599, 30, 898, 468, 679, 434, 1936, 225, 309, 333, 471, 333, 63, 20, 65, 486, 316, 22872, 6365, 67, 21666, 30, 720, 4951, 18, 6923, 12443, 23225, 16, 333, 3719, 225, 1327, 333, 422, 5158, 6877, 468, 3351, 444, 444, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, 225, 1323, 404, 30, 225, 309, 609, 12, 3168, 18, 4285, 13, 316, 7566, 96, 3113, 7310, 4672, 898, 468, 679, 434, 720, 4951, 333, 273, 1084, 18, 588, 1435, 309, 333, 353, 599, 30, 898, 468, 679, 434, 1936, 225, 309, 333, 471, 333, 63, 20, 65, 486, 316, 22872, 6365, 67, 21666, 30, 720, 4951, 18, 6923, 12443, 23225, 16, 333, 3719, 225, 1327, 333, 422, 5158, 6877, 468, 3351, 444, 444, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100 ]
threshs[det]=min_threshold*(horizons[det]/worst_horizon)
threshs[det]=min_threshold*(horizons[det]/worst_horizon)
def detector_thresholds(horizons,min_threshold,max_threshold=7.5): """ Return a set of detector thresholds adjusted for a particular set of inspiral horizon distances (calculated with directional_horizon). The min_threshold specified the minimum threshold which will be set for all detectors less sensitive than the best one. The most sensitive detector will have its threshold adjusted upward to a maximum of max_threshold. """ assert min_threshold < max_threshold threshs={} worst_horizon=min(horizons.values()) best_horizon=max(horizons.values()) # Assuming that lowest threshold is in worst detector, return thresholds for det in horizons.keys(): if horizons[det]<best_horizon: threshs[det]=min_threshold else: threshs[det]=min_threshold*(horizons[det]/worst_horizon) if threshs[det]>max_threshold: threshs[det]=max_threshold return threshs
71005aa7c5c0e51e741c51b585aa70ac798ca4f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/71005aa7c5c0e51e741c51b585aa70ac798ca4f6/grbsummary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13826, 67, 8699, 87, 12, 76, 5331, 7008, 16, 1154, 67, 8699, 16, 1896, 67, 8699, 33, 27, 18, 25, 4672, 3536, 2000, 279, 444, 434, 13826, 19983, 13940, 364, 279, 6826, 444, 434, 316, 1752, 481, 287, 366, 20648, 12491, 261, 22113, 598, 4068, 287, 67, 76, 20648, 2934, 1021, 1131, 67, 8699, 1269, 326, 5224, 5573, 1492, 903, 506, 444, 364, 777, 13826, 87, 5242, 16692, 2353, 326, 3796, 1245, 18, 1021, 4486, 16692, 13826, 903, 1240, 2097, 5573, 13940, 731, 2913, 358, 279, 4207, 434, 943, 67, 8699, 18, 3536, 1815, 1131, 67, 8699, 411, 943, 67, 8699, 22939, 87, 12938, 22952, 67, 76, 20648, 33, 1154, 12, 76, 5331, 7008, 18, 2372, 10756, 3796, 67, 76, 20648, 33, 1896, 12, 76, 5331, 7008, 18, 2372, 10756, 468, 4725, 21249, 716, 11981, 5573, 353, 316, 22952, 13826, 16, 327, 19983, 364, 3023, 316, 366, 5331, 7008, 18, 2452, 13332, 309, 366, 5331, 7008, 63, 8238, 65, 32, 12729, 67, 76, 20648, 30, 22939, 87, 63, 8238, 65, 33, 1154, 67, 8699, 469, 30, 22939, 87, 63, 8238, 65, 33, 1154, 67, 8699, 21556, 76, 5331, 7008, 63, 8238, 18537, 91, 280, 334, 67, 76, 20648, 13, 309, 22939, 87, 63, 8238, 65, 34, 1896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 13826, 19983, 13940, 364, 279, 6826, 444, 434, 316, 1752, 481, 287, 366, 20648, 12491, 261, 22113, 598, 4068, 287, 67, 76, 20648, 2934, 1021, 1131, 67, 8699, 1269, 326, 5224, 5573, 1492, 903, 506, 444, 364, 777, 13826, 87, 5242, 16692, 2353, 326, 3796, 1245, 18, 1021, 4486, 16692, 13826, 903, 1240, 2097, 5573, 13940, 731, 2913, 358, 279, 4207, 434, 943, 67, 8699, 18, 3536, 1815, 1131, 67, 8699, 411, 943, 67, 8699, 22939, 87, 12938, 22952, 67, 76, 20648, 33, 1154, 12, 76, 5331, 7008, 18, 2372, 10756, 3796, 2 ]
ld_args = self.ldflags_shared + lib_opts + \
if debug: ldflags = self.ldflags_shared_debug basename, ext = os.path.splitext (output_filename) output_filename = basename + '_d' + ext else: ldflags = self.ldflags_shared ld_args = ldflags + lib_opts + \
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, extra_preargs=None, extra_postargs=None): """Link a bunch of stuff together to create a shared object file. Much like 'link_shared_lib()', except the output filename is explicitly supplied as 'output_filename'.""" if libraries is None: libraries = [] if library_dirs is None: library_dirs = [] lib_opts = gen_lib_options (self, self.library_dirs + library_dirs, self.libraries + libraries)
c9db91300cada056e565e829810030a89aaff9b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c9db91300cada056e565e829810030a89aaff9b4/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 5116, 733, 585, 18, 225, 490, 2648, 3007, 296, 1232, 67, 11574, 67, 2941, 1435, 2187, 1335, 326, 876, 1544, 353, 8122, 4580, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 4672, 3536, 2098, 279, 25606, 434, 10769, 9475, 358, 752, 279, 5116, 733, 585, 18, 225, 490, 2648, 3007, 296, 1232, 67, 11574, 67, 2941, 1435, 2187, 1335, 326, 876, 1544, 353, 8122, 4580, 487, 296, 2844, 67, 3459, 11, 12123, 309, 14732, 353, 599, 30, 14732, 273, 5378, 309, 5313, 67, 8291, 353, 599, 30, 5313, 67, 8291, 273, 5378, 225, 2561, 67, 4952, 273, 3157, 67, 2941, 67, 2116, 261, 2890, 16, 365, 2 ]
res = {'name': name, 'type': type, 'view_id': view_id, 'domain': domain, 'context': context, 'res_model': res_model, 'src_model': src_model, 'view_type': view_type, 'view_mode': view_mode, 'usage': usage }
limit = rec.hasAttribute('limit') and rec.getAttribute('limit').encode('utf-8') auto_refresh = rec.hasAttribute('auto_refresh') \ and rec.getAttribute('auto_refresh').encode('utf-8') res = { 'name': name, 'type': type, 'view_id': view_id, 'domain': domain, 'context': context, 'res_model': res_model, 'src_model': src_model, 'view_type': view_type, 'view_mode': view_mode, 'usage': usage, 'limit': limit, 'auto_refresh': auto_refresh, }
def _tag_act_window(self, cr, rec, data_node=None): name = rec.hasAttribute('name') and rec.getAttribute('name').encode('utf-8') xml_id = rec.getAttribute('id').encode('utf8') self._test_xml_id(xml_id) type = rec.hasAttribute('type') and rec.getAttribute('type').encode('utf-8') or 'ir.actions.act_window' view_id = False if rec.hasAttribute('view'): view_id = self.id_get(cr, 'ir.actions.act_window', rec.getAttribute('view').encode('utf-8')) domain = rec.hasAttribute('domain') and rec.getAttribute('domain').encode('utf-8') context = rec.hasAttribute('context') and rec.getAttribute('context').encode('utf-8') or '{}' res_model = rec.getAttribute('res_model').encode('utf-8') src_model = rec.hasAttribute('src_model') and rec.getAttribute('src_model').encode('utf-8') view_type = rec.hasAttribute('view_type') and rec.getAttribute('view_type').encode('utf-8') or 'form' view_mode = rec.hasAttribute('view_mode') and rec.getAttribute('view_mode').encode('utf-8') or 'tree,form' usage = rec.hasAttribute('usage') and rec.getAttribute('usage').encode('utf-8')
292f955bc304c8bcabddcc3272a70aa058797e28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/292f955bc304c8bcabddcc3272a70aa058797e28/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2692, 67, 621, 67, 5668, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 508, 273, 1950, 18, 5332, 1499, 2668, 529, 6134, 471, 1950, 18, 588, 1499, 2668, 529, 16063, 3015, 2668, 3158, 17, 28, 6134, 2025, 67, 350, 273, 1950, 18, 588, 1499, 2668, 350, 16063, 3015, 2668, 3158, 28, 6134, 365, 6315, 3813, 67, 2902, 67, 350, 12, 2902, 67, 350, 13, 618, 273, 1950, 18, 5332, 1499, 2668, 723, 6134, 471, 1950, 18, 588, 1499, 2668, 723, 16063, 3015, 2668, 3158, 17, 28, 6134, 578, 296, 481, 18, 4905, 18, 621, 67, 5668, 11, 1476, 67, 350, 273, 1083, 309, 1950, 18, 5332, 1499, 2668, 1945, 11, 4672, 1476, 67, 350, 273, 365, 18, 350, 67, 588, 12, 3353, 16, 296, 481, 18, 4905, 18, 621, 67, 5668, 2187, 1950, 18, 588, 1499, 2668, 1945, 16063, 3015, 2668, 3158, 17, 28, 26112, 2461, 273, 1950, 18, 5332, 1499, 2668, 4308, 6134, 471, 1950, 18, 588, 1499, 2668, 4308, 16063, 3015, 2668, 3158, 17, 28, 6134, 819, 273, 1950, 18, 5332, 1499, 2668, 2472, 6134, 471, 1950, 18, 588, 1499, 2668, 2472, 16063, 3015, 2668, 3158, 17, 28, 6134, 578, 7485, 400, 67, 2284, 273, 1950, 18, 588, 1499, 2668, 455, 67, 2284, 16063, 3015, 2668, 3158, 17, 28, 6134, 1705, 67, 2284, 273, 1950, 18, 5332, 1499, 2668, 4816, 67, 2284, 6134, 471, 1950, 18, 588, 1499, 2668, 4816, 67, 2284, 16063, 3015, 2668, 3158, 17, 28, 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, 2692, 67, 621, 67, 5668, 12, 2890, 16, 4422, 16, 1950, 16, 501, 67, 2159, 33, 7036, 4672, 508, 273, 1950, 18, 5332, 1499, 2668, 529, 6134, 471, 1950, 18, 588, 1499, 2668, 529, 16063, 3015, 2668, 3158, 17, 28, 6134, 2025, 67, 350, 273, 1950, 18, 588, 1499, 2668, 350, 16063, 3015, 2668, 3158, 28, 6134, 365, 6315, 3813, 67, 2902, 67, 350, 12, 2902, 67, 350, 13, 618, 273, 1950, 18, 5332, 1499, 2668, 723, 6134, 471, 1950, 18, 588, 1499, 2668, 723, 16063, 3015, 2668, 3158, 17, 28, 6134, 578, 296, 481, 18, 4905, 18, 621, 67, 5668, 11, 1476, 67, 350, 273, 1083, 309, 1950, 18, 5332, 1499, 2668, 1945, 11, 4672, 1476, 2 ]
self.body.append('''\
request['body'].append('''\
def page_footer(self, form_contents): """Render the page footer""" if not form_contents: form_contents = ''
3613973e0dba8bc750646a30918b4dc7828ea1b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/3613973e0dba8bc750646a30918b4dc7828ea1b1/open_id.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1363, 67, 14723, 12, 2890, 16, 646, 67, 3980, 4672, 3536, 3420, 326, 1363, 9860, 8395, 309, 486, 646, 67, 3980, 30, 646, 67, 3980, 273, 875, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1363, 67, 14723, 12, 2890, 16, 646, 67, 3980, 4672, 3536, 3420, 326, 1363, 9860, 8395, 309, 486, 646, 67, 3980, 30, 646, 67, 3980, 273, 875, 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 ]
<group colspan="4" col="10">
<group colspan="4" col="7">
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): result = super(share_result, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar,submenu) user_obj = self.pool.get('res.users') data_obj = self.pool.get('ir.model.data') existing_user_ids = context.get('existing_user_ids', []) new_user_ids = context.get('new_user_ids', []) _arch_lst = """<form string="Share Users"> <separator colspan="4" string="Step 4: Share User Details"/> """ _fields = result['fields'] send_email_act = data_obj._get_id(cr, uid, 'base', 'share_email_act') send_email_act_id = data_obj.browse(cr, uid, send_email_act, context=context).res_id
8166cedceb0edc65ee8718fcb28479e1c65e4a60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/8166cedceb0edc65ee8718fcb28479e1c65e4a60/wizard_share.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 16, 1717, 5414, 33, 8381, 4672, 563, 273, 2240, 12, 14419, 67, 2088, 16, 365, 2934, 2821, 67, 1945, 67, 588, 12, 3353, 16, 4555, 16, 1476, 67, 350, 16, 1476, 67, 723, 16, 819, 16, 12748, 16, 1717, 5414, 13, 729, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 6134, 501, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 2062, 67, 1355, 67, 2232, 273, 819, 18, 588, 2668, 11711, 67, 1355, 67, 2232, 2187, 5378, 13, 394, 67, 1355, 67, 2232, 273, 819, 18, 588, 2668, 2704, 67, 1355, 67, 2232, 2187, 5378, 13, 389, 991, 67, 16923, 273, 3536, 32, 687, 533, 1546, 9535, 12109, 6441, 411, 11287, 20856, 1546, 24, 6, 533, 1546, 4160, 1059, 30, 25805, 2177, 21897, 6, 21259, 3536, 389, 2821, 273, 563, 3292, 2821, 3546, 282, 1366, 67, 3652, 67, 621, 273, 501, 67, 2603, 6315, 588, 67, 350, 12, 3353, 16, 4555, 16, 296, 1969, 2187, 296, 14419, 67, 3652, 67, 621, 6134, 282, 1366, 67, 3652, 67, 621, 67, 350, 273, 501, 67, 2603, 18, 25731, 12, 3353, 16, 4555, 16, 1366, 67, 3652, 67, 621, 16, 819, 33, 2472, 2934, 455, 67, 350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1466, 67, 1945, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1476, 67, 350, 33, 7036, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 16, 12748, 33, 8381, 16, 1717, 5414, 33, 8381, 4672, 563, 273, 2240, 12, 14419, 67, 2088, 16, 365, 2934, 2821, 67, 1945, 67, 588, 12, 3353, 16, 4555, 16, 1476, 67, 350, 16, 1476, 67, 723, 16, 819, 16, 12748, 16, 1717, 5414, 13, 729, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 6134, 501, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 2062, 67, 1355, 67, 2232, 273, 819, 18, 588, 2668, 11711, 67, 1355, 67, 2232, 2187, 2 ]
statsPHP4,
statsPHP4,
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )]), P ( contents = [ Img( src = '%(ROOT)simages/czechlogo.png', width = 16, height = 10), A( '&#268;esky', href='%(BASE)scs/' )]), P ( contents = [ Img( src = '%(ROOT)simages/germanylogo.png', width = 16, height = 10), A( 'Deutsch', href='%(BASE)sde/' )]), P ( contents = [ Img( src = '%(ROOT)simages/greecelogo.png', width = 16, height = 10), A( '&#917;&#955;&#955;&#951;&#965;&#953;&#954;&#940;', href='%(BASE)sel/' )]), P ( contents = [ Img( src = '%(ROOT)simages/francelogo.png', width = 16, height = 10), A( 'Fran&#231;ais', href='%(BASE)sfr/' )]), P ( contents = [ Img( src = '%(ROOT)simages/italylogo.png', width = 16, height = 10), A( 'Italiano', href='%(BASE)sit/' )]), P ( contents = [ Img( src = '%(ROOT)simages/netherlandslogo.png', width = 16, height = 10), A( 'Nederlands', href='%(BASE)snl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/polandlogo.png', width = 16, height = 10), A( 'Polski', href='%(BASE)spl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/portugallogo.png', width = 16, height = 10), A( 'Portugu&#234;s', href='%(BASE)spt/' )]), P ( contents = [ Img( src = '%(ROOT)simages/russialogo.png', width = 16, height = 10), A( '&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;', href='%(BASE)sru/' )]), P ( contents = [ Img( src = '%(ROOT)simages/spanishlogo.png', width = 16, height = 10), A( 'Espa&#241ol', href='%(BASE)ses/' )]), P ( contents = [ Img( src = '%(ROOT)simages/finlandlogo.png', width = 16, height = 10), A( 'Suomi', href='%(BASE)sfi/' )]), P ( contents = [ Img( src = '%(ROOT)simages/swedenlogo.png', width = 16, height = 10), A( 'Svenska', href='%(BASE)ssv/' )]) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['news'], href=makeURL( 'news/', lang ) )]), Tree ( A( _N['archive'], href=makeURL( 'news/archive/', lang ) ) ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['introduction'], href=makeURL( 'introduction/', lang ) ) ]), Tree \ ( [ A( _N['status'], href=makeURL('introduction/status/everything', lang ) ), A( _N['screenshots'], href=makeURL( 'pictures/screenshots/', lang) ), A( _N['ports'], href=makeURL( 'introduction/ports', lang ) ), A( _N['license'], href='%(BASE)slicense.html' ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['download'], href=makeURL( 'download', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['documentation'] ]), Tree \ ( [ A( _N['users'], href=makeURL( 'documentation/users/', lang ) ), Tree \ ( [ A( _N['installation'], href=makeURL( 'documentation/users/installation', lang ) ), A( _N['using'], href=makeURL( 'documentation/users/using', lang ) ), A( _N['shell'], href=makeURL( 'documentation/users/shell/index', lang ) ), A( _N['applications'], href=makeURL( 'documentation/users/applications/index', lang ) ), A( _N['faq'], href=makeURL( 'documentation/users/faq', lang ) ), #_N['ports'], #A( _N['links'], href=makeURL( 'documentation/users/links', lang ) ) ] ), A( _N['developers'], href=makeURL( 'documentation/developers/index', lang ) ), Tree \ ( [ A( _N['contribute'], href=makeURL( 'documentation/developers/contribute', lang ) ), A( _N['roadmap'], href=makeURL( 'documentation/developers/roadmap', lang ) ), A( _N['bug-tracker'], href='http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse' ), A( _N['working-with-subversion'], href=makeURL( 'documentation/developers/svn', lang ) ), A( _N['compiling'], href=makeURL( 'documentation/developers/compiling', lang ) ), A( _N['application-development-manual'], href=makeURL( 'documentation/developers/app-dev/index', lang ) ), A( _N['zune-application-development-manual'], href=makeURL( 'documentation/developers/zune-dev/index', lang ) ), A( _N['system-development-manual'], href=makeURL( 'documentation/developers/sys-dev/index', lang ) ), A( _N['debugging-manual'], href=makeURL( 'documentation/developers/debugging', lang ) ), A( _N['reference'], href=makeURL( 'documentation/developers/autodocs/index', lang ) ), A( _N['specifications'], href=makeURL( 'documentation/developers/specifications/', lang ) ), A( _N['ui-style-guide'], href=makeURL( 'documentation/developers/ui', lang ) ), A( _N['documenting'], href=makeURL( 'documentation/developers/documenting', lang ) ), A( _N['porting'], href=makeURL( 'documentation/developers/porting', lang ) ), A( _N['translating'], href=makeURL( 'documentation/developers/translating', lang ) ), A( _N['summaries'], href=makeURL( 'documentation/developers/summaries/', lang ) ), A( _N['links'], href=makeURL( 'documentation/developers/links', lang ) ) ] ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['contact'], href=makeURL( 'contact', lang ) )]), Tree \ ( [ A( _N['mailing-lists'], href=makeURL( 'contact', lang, 'mailing-lists' ) ), #A( _N['forums'], href=makeURL( 'contact', lang, 'forums' ) ), A( _N['irc-channels'], href=makeURL( 'contact', lang, 'irc-channels' ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['credits'], href=makeURL( 'credits', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['acknowledgements'], href=makeURL( 'acknowledgements', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['pictures']]), Tree \ ( [ A( _N['developers'], href=makeURL( 'pictures/developers/', lang ) ), A( _N['developers-together'], href=makeURL( 'pictures/developers-together/', lang ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['sponsors'], href=makeURL( 'sponsors', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['linking'], href=makeURL( 'linking', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['links'], href=makeURL( 'links', lang ) )]) ] ) counter = Img( src = 'http://www.hepe.com/cgi-bin/wwwcount.cgi?df=aros.dat&dd=E&ft=0' ) sponsors = Table\ ( cellspacing = 5, cellpadding = 0, contents = [ TR ( TD ( A ( Img( src = '%(ROOT)simages/trustec-small.png', border = 0 ), href = 'http://www.trustsec.de/' ) ) ), TR ( TD ( A ( Img( src = '%(ROOT)simages/genesi-small.gif', border = 0 ), href = 'http://www.pegasosppc.com/' ) ) ), TR ( TD ( A \ ( Img \ ( src = 'http://sflogo.sourceforge.net/sflogo.php?group_id=43586&type=10', width = 88, height = 16, border = 0, alt = 'Get AROS Research Operating System at SourceForge.net. ' 'Fast, secure and Free Open Source software downloads' ), href = 'http://sourceforge.net/projects/aros/' ) ) ) ] ) bar = Table( border = 0, cellpadding = 2, cellspacing = 2, width = 171, valign = 'top', contents = [ TR( valign = 'top', contents = [ TD( rowspan = 8, width=15 ), TD() ] ), TR( valign = 'top', contents = TD( navigation ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = counter ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = sponsors ) ), TR( TD(), height=30 ), TR \ ( valign = 'top', contents = TD \ ( align = 'center', contents = A \ ( Img \ ( src = '%(ROOT)simages/noeupatents-small.png', border = 0 ), href = 'http://stopsoftwarepatents.eu/' ) ) ) ] ) statsPHP = ''' <?php //define("_BBC_PAGE_NAME", "my page title"); define("_BBCLONE_DIR", "%(ROOT)smybbclone/"); define("COUNTER", _BBCLONE_DIR."index.php"); if (file_exists(COUNTER)) include_once(COUNTER); ?> ''' statsPHP2 = ''' <?php echo date("m.d.y"); ?> ''' statsPHP3 = ''' <?php echo "<map name=\\"map\\">"; echo "<area shape=\\"rect\\" coords=\\"25,78,85,95\\" alt=\\"http://www.aros.org\\" href=\\"http://www.aros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"100,78,168,95\\" alt=\\"AROS-Exec\\" href=\\"http://www.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"180,78,240,95\\" alt=\\"AROS-Exec Archives\\" href=\\"http://archives.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"260,78,350,95\\" alt=\\"Power2People\\" href=\\"http://www.power2people.org\\">"; echo "</map>"; ?> ''' statsPHP4 = ''' <?php echo "<table width=\\"100%%\\"><tr><td>"; echo "<div style=\\"text-align: right;\\">"; echo "<font color=\\"#aaaaaa\\">"; ?> ''' statsPHP6 = ''' <?php echo "</font></div>"; echo "</p></tr></td></table>"; ?> ''' statsPHP5= ''' <?php include( '%(ROOT)srsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.gif\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } else { echo \"<img src=\\"/images/kittymascot.png\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.png\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } ?> ''' page = HTML( [ Head( [ Charset( charset ), Title( 'AROS Research Operating System' ), Link( href = '%(ROOT)saros.css', type = 'text/css', rel = 'stylesheet' ), Meta( name = 'keywords', content = 'AROS, OS, operating system, research, open source, portage' ) ] ), Body( style = 'margin: 0px;', bgcolor = '#ffffff', contents = [ statsPHP3, Table( border = 0, cellspacing = 0, cellpadding = 0, width = '100%%', contents = [ TR( [ TD( halign = 'top', width = '100%%', height = 109, background='%(ROOT)simages/backgroundtop.png' ,rowspan = 4, contents = statsPHP5)
5ef18979fda0361031978311951e5818b19dcb92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4747/5ef18979fda0361031978311951e5818b19dcb92/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 10437, 18, 6446, 11, 262, 16, 432, 12, 389, 50, 3292, 8712, 17337, 3897, 33, 6540, 1785, 12, 2611, 16, 3303, 8623, 65, 262, 16, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 275, 13740, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 664, 13740, 2187, 3897, 2218, 17105, 8369, 13, 87, 1093, 262, 65, 3631, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 71, 8489, 343, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 21312, 5558, 28, 31, 281, 18465, 2187, 3897, 2218, 17105, 8369, 13, 1017, 87, 2473, 262, 65, 3631, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 693, 9353, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 758, 22605, 2187, 3897, 2218, 17105, 8369, 13, 87, 323, 2473, 262, 65, 3631, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 11556, 557, 12970, 83, 18, 6446, 2187, 1835, 273, 2872, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 10437, 18, 6446, 11, 262, 16, 432, 12, 389, 50, 3292, 8712, 17337, 3897, 33, 6540, 1785, 12, 2611, 16, 3303, 8623, 65, 262, 16, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, 75, 12, 1705, 273, 21063, 9185, 13, 87, 7369, 19, 275, 13740, 19882, 18, 6446, 2187, 1835, 273, 2872, 16, 2072, 273, 1728, 3631, 432, 12, 296, 664, 13740, 2187, 3897, 2218, 17105, 8369, 13, 87, 1093, 2 ]
'broker_id' : fields.many2one('res.partner', 'Broker', domain=[('category_id','=','Broker')]),
'broker_id' : fields.many2one('res.partner', 'Broker', domain=[('category_id','ilike','Broker')]),
def _check_recursion(self, cr, uid, ids): level = 100 while len(ids): cr.execute('select distinct parent_id from dm_offer_category where id in ('+','.join(map(str,ids))+')') ids = filter(None, map(lambda x:x[0], cr.fetchall())) if not level: return False level -= 1 return True
3405cf0f53f9541761541771721cdc75cde3687c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/3405cf0f53f9541761541771721cdc75cde3687c/offer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 31347, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 1801, 273, 2130, 1323, 562, 12, 2232, 4672, 4422, 18, 8837, 2668, 4025, 10217, 982, 67, 350, 628, 9113, 67, 23322, 67, 4743, 1625, 612, 316, 7707, 15, 2187, 10332, 5701, 12, 1458, 12, 701, 16, 2232, 3719, 6797, 2506, 13, 3258, 273, 1034, 12, 7036, 16, 852, 12, 14661, 619, 30, 92, 63, 20, 6487, 4422, 18, 5754, 454, 1435, 3719, 309, 486, 1801, 30, 327, 1083, 1801, 3947, 404, 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,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, 16, 4555, 16, 3258, 4672, 1801, 273, 2130, 1323, 562, 12, 2232, 4672, 4422, 18, 8837, 2668, 4025, 10217, 982, 67, 350, 628, 9113, 67, 23322, 67, 4743, 1625, 612, 316, 7707, 15, 2187, 10332, 5701, 12, 1458, 12, 701, 16, 2232, 3719, 6797, 2506, 13, 3258, 273, 1034, 12, 7036, 16, 852, 12, 14661, 619, 30, 92, 63, 20, 6487, 4422, 18, 5754, 454, 1435, 3719, 309, 486, 1801, 30, 327, 1083, 1801, 3947, 404, 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, -100, -100, -100, -100, -100 ]
return map( string.upper, tokenlist )
return list(map( string.upper, tokenlist ))
def postParse( self, instring, loc, tokenlist ): return map( string.upper, tokenlist )
c6e5c5fcf7fe09d7390a6d3525397e48c03606ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3693/c6e5c5fcf7fe09d7390a6d3525397e48c03606ea/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 3201, 12, 365, 16, 316, 1080, 16, 1515, 16, 1147, 1098, 262, 30, 327, 852, 12, 533, 18, 5797, 16, 1147, 1098, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 3201, 12, 365, 16, 316, 1080, 16, 1515, 16, 1147, 1098, 262, 30, 327, 852, 12, 533, 18, 5797, 16, 1147, 1098, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
field_value = form[name]
field = form[name]
def assert_formfield(self, form, name, expected_value): try: field_value = form[name] except Exception, inst: msg = "Couldn't read field '%s' from form fields: %s: %s" % ( name, self.get_field_names(form), inst ) raise Exception, msg self.assert_equal(field_value, expected_value)
df6adbaaaf1fc763020f3b13cf72f6c7cd4eb4eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/df6adbaaaf1fc763020f3b13cf72f6c7cd4eb4eb/test_form.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 687, 1518, 12, 2890, 16, 646, 16, 508, 16, 2665, 67, 1132, 4672, 775, 30, 652, 273, 646, 63, 529, 65, 1335, 1185, 16, 1804, 30, 1234, 273, 315, 16342, 1404, 855, 652, 1995, 87, 11, 628, 646, 1466, 30, 738, 87, 30, 738, 87, 6, 738, 261, 508, 16, 365, 18, 588, 67, 1518, 67, 1973, 12, 687, 3631, 1804, 262, 1002, 1185, 16, 1234, 365, 18, 11231, 67, 9729, 12, 1518, 67, 1132, 16, 2665, 67, 1132, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 687, 1518, 12, 2890, 16, 646, 16, 508, 16, 2665, 67, 1132, 4672, 775, 30, 652, 273, 646, 63, 529, 65, 1335, 1185, 16, 1804, 30, 1234, 273, 315, 16342, 1404, 855, 652, 1995, 87, 11, 628, 646, 1466, 30, 738, 87, 30, 738, 87, 6, 738, 261, 508, 16, 365, 18, 588, 67, 1518, 67, 1973, 12, 687, 3631, 1804, 262, 1002, 1185, 16, 1234, 365, 18, 11231, 67, 9729, 12, 1518, 67, 1132, 16, 2665, 67, 1132, 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 ]
use_rev = rev and node.rev
def get_mime_type(content=None): mime_type = node.content_type if not mime_type or mime_type == 'application/octet-stream': mime_type = get_mimetype(node.name, content) or \ mime_type or 'text/plain' return mime_type
2520034890636ae992a119fd22202c074b4735a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2520034890636ae992a119fd22202c074b4735a7/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11757, 67, 723, 12, 1745, 33, 7036, 4672, 4892, 67, 723, 273, 756, 18, 1745, 67, 723, 309, 486, 4892, 67, 723, 578, 4892, 67, 723, 422, 296, 3685, 19, 17909, 17, 3256, 4278, 4892, 67, 723, 273, 336, 67, 22571, 12, 2159, 18, 529, 16, 913, 13, 578, 521, 4892,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11757, 67, 723, 12, 1745, 33, 7036, 4672, 4892, 67, 723, 273, 756, 18, 1745, 67, 723, 309, 486, 4892, 67, 723, 578, 4892, 67, 723, 422, 296, 3685, 19, 17909, 17, 3256, 4278, 4892, 67, 723, 273, 336, 67, 22571, 12, 2159, 18, 529, 16, 913, 13, 578, 521, 4892, 67, 723, 578, 296, 955, 19, 7446, 11, 327, 4892, 67, 723, 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 ]
sect('Rendering','',['OpenGLRenderer','GlShapeFunctor','GlStateFunctor','GlBoundFunctor','GlInteractionGeometryFunctor','GlInteractionPhysicsFunctor'])+
sect('Rendering','',['OpenGLRenderer','GlShapeFunctor','GlStateFunctor','GlBoundFunctor','GlIGeomFunctor','GlIPhysFunctor'])+
def genWrapperRst(): global docClasses docClasses=set() # reset globals wrapper=file('yade.wrapper.rst','w') wrapper.write(""".. _yade.wrapper
55aef7bfadd80e0a0692af7d8ddf8a73edcab10b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2081/55aef7bfadd80e0a0692af7d8ddf8a73edcab10b/yadeSphinx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 3611, 54, 334, 13332, 2552, 997, 4818, 997, 4818, 33, 542, 1435, 468, 2715, 10941, 4053, 33, 768, 2668, 93, 2486, 18, 8376, 18, 16114, 17023, 91, 6134, 4053, 18, 2626, 2932, 3660, 838, 389, 93, 2486, 18, 8376, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 3611, 54, 334, 13332, 2552, 997, 4818, 997, 4818, 33, 542, 1435, 468, 2715, 10941, 4053, 33, 768, 2668, 93, 2486, 18, 8376, 18, 16114, 17023, 91, 6134, 4053, 18, 2626, 2932, 3660, 838, 389, 93, 2486, 18, 8376, 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 ]
Martel.Re("[\w]+"))
Martel.Re(r"[\w\-]+"))
def do_nothing(martel_info): return martel_info
746434d9270f53da6715c2f9125b055ddd6bab19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/746434d9270f53da6715c2f9125b055ddd6bab19/genbank_format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 30874, 12, 81, 485, 292, 67, 1376, 4672, 327, 312, 485, 292, 67, 1376, 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, 741, 67, 30874, 12, 81, 485, 292, 67, 1376, 4672, 327, 312, 485, 292, 67, 1376, 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 ]
return -1 self.handle_data("&") i = self.updatepos(i, i + 1)
break elif (i + 1) < n: self.handle_data("&") i = self.updatepos(i, i + 1) else: break
def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: match = self.interesting.search(rawdata, i) # < or & if match: j = match.start() else: j = n if i < j: self.handle_data(rawdata[i:j]) i = self.updatepos(i, j) if i == n: break if rawdata[i] == '<': if starttagopen.match(rawdata, i): # < + letter k = self.parse_starttag(i) elif endtagopen.match(rawdata, i): # </ k = self.parse_endtag(i) if k >= 0: self.clear_cdata_mode() elif commentopen.match(rawdata, i): # <!-- k = self.parse_comment(i) elif piopen.match(rawdata, i): # <? k = self.parse_pi(i) elif declopen.match(rawdata, i): # <! k = self.parse_declaration(i) else: self.handle_data("<") k = i + 1 if k < 0: if end: raise HTMLParseError("EOF in middle of construct", self.getpos()) break i = self.updatepos(i, k) elif rawdata[i] == '&': match = charref.match(rawdata, i) if match: name = match.group()[2:-1] self.handle_charref(name) k = match.end() if rawdata[k-1] != ';': k = k - 1 i = self.updatepos(i, k) continue match = entityref.match(rawdata, i) if match: name = match.group(1) self.handle_entityref(name) k = match.end() if rawdata[k-1] != ';': k = k - 1 i = self.updatepos(i, k) continue match = incomplete.match(rawdata, i) if match: rest = rawdata[i:] if end and rest != "&" and match.group() == rest: raise HTMLParseError( "EOF in middle of entity or char ref", self.getpos()) return -1 # incomplete self.handle_data("&") i = self.updatepos(i, i + 1) else: assert 0, "interesting.search() lied" # end while if end and i < n: self.handle_data(rawdata[i:n]) i = self.updatepos(i, n) self.rawdata = rawdata[i:]
e68452150850c21f81cfb1f04b4416417aad1df3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e68452150850c21f81cfb1f04b4416417aad1df3/HTMLParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 845, 273, 365, 18, 2761, 10100, 18, 3072, 12, 1899, 892, 16, 277, 13, 468, 411, 578, 473, 309, 845, 30, 525, 273, 845, 18, 1937, 1435, 469, 30, 525, 273, 290, 309, 277, 411, 525, 30, 365, 18, 4110, 67, 892, 12, 1899, 892, 63, 77, 30, 78, 5717, 277, 273, 365, 18, 2725, 917, 12, 77, 16, 525, 13, 309, 277, 422, 290, 30, 898, 309, 1831, 892, 63, 77, 65, 422, 2368, 4278, 309, 787, 2692, 3190, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 411, 397, 9471, 417, 273, 365, 18, 2670, 67, 1937, 2692, 12, 77, 13, 1327, 679, 2692, 3190, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 7765, 417, 273, 365, 18, 2670, 67, 409, 2692, 12, 77, 13, 309, 417, 1545, 374, 30, 365, 18, 8507, 67, 71, 892, 67, 3188, 1435, 1327, 2879, 3190, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 5719, 413, 417, 273, 365, 18, 2670, 67, 3469, 12, 77, 13, 1327, 4790, 3190, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 20958, 417, 273, 365, 18, 2670, 67, 7259, 12, 77, 13, 1327, 2109, 18589, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 5719, 417, 273, 365, 18, 2670, 67, 22448, 12, 77, 13, 469, 30, 365, 18, 4110, 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, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 845, 273, 365, 18, 2761, 10100, 18, 3072, 12, 1899, 892, 16, 277, 13, 468, 411, 578, 473, 309, 845, 30, 525, 273, 845, 18, 1937, 1435, 469, 30, 525, 273, 290, 309, 277, 411, 525, 30, 365, 18, 4110, 67, 892, 12, 1899, 892, 63, 77, 30, 78, 5717, 277, 273, 365, 18, 2725, 917, 12, 77, 16, 525, 13, 309, 277, 422, 290, 30, 898, 309, 1831, 892, 63, 77, 65, 422, 2368, 4278, 309, 787, 2692, 3190, 18, 1916, 12, 1899, 892, 16, 277, 4672, 468, 2 ]
try:
if '__classcall_private__' in cls.__dict__: return cls.__classcall_private__(cls, *args, **options) elif hasattr(cls, "__classcall__"):
... def __init__(self):
083d2581f9172647da2a6e6f7338e869e5aef113 /local1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 4202, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
displayMessage(u"There are no Miro watched video items to add as MythTV Recorded videos.")
displayMessage(u"There are no Miro watched items to add to MythVideo")
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, statistics, requirements_are_met global graphic_suffix, graphic_path_suffix, graphic_name_suffix global mythcommflag_recordings, mythcommflag_videos parser = OptionParser(usage=u"%prog usage: mirobridge -huevstdociVHSCWM [parameters]\n") parser.add_option( "-e", "--examples", action="store_true", default=False, dest="examples", help=u"Display examples for executing the jamu script") parser.add_option( "-v", "--version", action="store_true", default=False, dest="version", help=u"Display version and author information") parser.add_option( "-s", "--simulation", action="store_true", default=False, dest="simulation", help=u"Simulation (dry run), no files are copied, symlinks created or MythTV data bases altered. If option (-n) is NOT specified Miro auto downloads WILL take place. See option (-n) help for details.") parser.add_option( "-t", "--testenv", action="store_true", default=False, dest="testenv", help=u"Test that the local environment can run all mirobridge functionality") parser.add_option( "-n", "--no_autodownload", action="store_true", default=False, dest="no_autodownload", help=u"Do not perform Miro Channel updates, video expiry and auto-downloadings. Default is to perform all perform all Channel maintenance features.") parser.add_option( "-o", "--nosubdirs", action="store_true", default=False, dest="nosubdirs", help=u"Organise MythVideo's Miro directory WITHOUT Miro channel subdirectories. The default is to have Channel subdirectories.") parser.add_option( "-c", "--channel", metavar="CHANNEL_ID:CHANNEL_NUM", default="", dest="channel", help=u'Specifies the channel id that is used for Miros unplayed recordings. Enter as "xxxx:yyy". Default is 9999:999. Be warned that once you change the default channel_id "9999" you must always use this option!') #parser.add_option( "-i", "--import", metavar="CONFIGFILE", default="", dest="import", # help=u'Import Miro exported configuration file and or channel changes.') parser.add_option( "-V", "--verbose", action="store_true", default=False, dest="verbose", help=u"Display verbose messages when processing") parser.add_option( "-H", "--hostname", metavar="HOSTNAME", default="", dest="hostname", help=u"MythTV Backend hostname mirobridge is to up date") parser.add_option( "-S", "--sleeptime", metavar="SLEEP_DELAY_SECONDS", default="", dest="sleeptime", help=u"The amount of seconds to wait for an auto download to start.\nThe default is 60 seconds, but this may need to be adjusted for slower Internet connections.") parser.add_option( "-C", "--addchannel", metavar="ICONFILE_PATH", default="OFF", dest="addchannel", help=u'Add a Miro Channel record to MythTV. This gets rid of the "#9999 #9999" on the Watch Recordings screen and replaces it with the usual\nthe channel number and channel name.\nThe default if not overridden by the (-c) option is channel number 999.\nIf a filename and path is supplied it will be set as the channels icon. Make sure your override channel number is NOT one of your current MythTV channel numbers.\nThis option is typically only used once as there can only be one Miro channel record at a time.') parser.add_option( "-N", "--new_watch_copy", action="store_true", default=False, dest="new_watch_copy", help=u'For ALL Miro Channels: Use the "Watch Recording" screen to watch new Miro downloads then once watched copy the videos, icons, screen shot and metadata to MythVideo. Once coping is complete delete the video from Miro.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-W", "--watch_only", action="store_true", default=False, dest="watch_only", help=u'For ALL Miro Channels: Only use "Watch Recording" never move any Miro videos to MythVideo.\nThis option overrides any "mirobridge.conf" settings.') parser.add_option( "-M", "--mythvideo_only", action="store_true", default=False, dest="mythvideo_only", help=u'For ALL Miro Channel videos: Copy newly downloaded Miro videos to MythVideo and removed from Miro. These Miro videos never appear in the MythTV "Watch Recording" screen.\nThis option overrides any "mirobridge.conf" settings.') opts, args = parser.parse_args() if opts.examples: # Display example information sys.stdout.write(examples_txt+'\n') sys.exit(True) if opts.version: # Display program information sys.stdout.write(u"\nTitle: (%s); Version: description(%s); Author: (%s)\n%s\n" % ( __title__, __version__, __author__, __purpose__ )) sys.exit(True) if opts.testenv: test_environment = True else: test_environment = False # Verify that neither Miro or another instance of Miro Bridge is currently running if isMirobridgeOrMiroRunning(): sys.exit(False) # Verify that only None or one of the mutually exclusive (-W), (-M) and (-N) options is being used x = 0 if opts.new_watch_copy: x+=1 if opts.watch_only: x+=1 if opts.mythvideo_only: x+=1 if x > 1: logger.critical(u"The (-W), (-M) and (-N) options are mutually exclusive, so only one can be specified at a time.") sys.exit(False) # Set option related global variables simulation = opts.simulation verbose = opts.verbose if opts.hostname: # Override localhostname if the user specified an hostname localhostname = opts.hostname # Validate settings # Make sure mirobridge is to update a real MythTV backend if not mythdb.getSetting(u'BackendServerIP', hostname = localhostname): logger.critical(u"The MythTV backend (%s) is not a MythTV backend." % localhostname) if test_environment: requirements_are_met = False else: sys.exit(False) ## Video base directory and current version and revision numbers base_video_dir = config.get(prefs.MOVIES_DIRECTORY) miro_version_rev = u"%s r%s" % (config.get(prefs.APP_VERSION), config.get(prefs.APP_REVISION_NUM)) displayMessage(u"Miro Version (%s)" % (miro_version_rev)) displayMessage(u"Base Miro Video Directory (%s)" % (base_video_dir,)) logger.info(u'') # Verify Miro version sufficent and Video file configuration correct. if not os.path.isdir(base_video_dir): logger.critical(u"The Miro Videos directory (%s) does not exist." % str(base_video_dir)) if test_environment: requirements_are_met = False else: sys.exit(False) if config.get(prefs.APP_VERSION) < u"2.0.3": logger.critical(u"The installed version of Miro (%s) is too old. It must be at least v2.0.3 or higher." % config.get(prefs.APP_VERSION)) if test_environment: requirements_are_met = False else: sys.exit(False) # Get storage groups if getStorageGroups() == False: logger.critical(u"Retrieving storage groups from the MythTV data base failed") if test_environment: requirements_are_met = False else: sys.exit(False) elif not u'default' in storagegroups.keys(): logger.critical(u"There must be a 'Default' storage group") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.channel: channel = opts.channel.split(u':') if len(channel) != 2: logger.critical(u"The Channel (%s) must be in the format xxx:yyy with x an y all numeric." % str(opts.channel)) if test_environment: requirements_are_met = False else: sys.exit(False) elif not _can_int(channel[0]) or not _can_int(channel[1]): logger.critical(u"The Channel_id (%s) and Channel_num (%s) must be numeric." % (channel[0], channel[1])) if test_environment: requirements_are_met = False else: sys.exit(False) else: channel_id = int(channel[0]) channel_num = int(channel[1]) if opts.sleeptime: if not _can_int(opts.sleeptime): logger.critical(u"Auto-dewnload sleep time (%s) must be numeric." % str(opts.sleeptime)) if test_environment: requirements_are_met = False else: sys.exit(False) else: download_sleeptime = float(opts.sleeptime) getMythtvDirectories() # Initialize all the Video and graphics directory dictionary if opts.nosubdirs: # Did the user want a flat MythVideo "Miro" directory structure? flat = True # Get the values in the mirobridge.conf configuration file setUseroptions() if opts.watch_only: # ALL Miro videos will only be viewed in the MythTV "Watch Recordings" screen channel_watch_only = [u'all'] if opts.mythvideo_only: # ALL Miro videos will be copied to MythVideo and removed from Miro channel_mythvideo_only = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Once watched ALL Miro videos will be copied to MythVideo and removed from Miro if opts.new_watch_copy: channel_new_watch_copy = {u'all': vid_graphics_dirs[u'mythvideo']+u'Miro/'} # Verify that "Mythvideo Only" and "New-Watch-Copy" channels do not clash if len(channel_mythvideo_only) and len(channel_new_watch_copy): for key in channel_mythvideo_only.keys(): if key in channel_new_watch_copy.keys(): logger.critical(u'The Miro Channel (%s) cannot be used as both a "Mythvideo Only" and "New-Watch-Copy" channel.' % key) if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that ImageMagick is installed ret = useImageMagick(u"convert -version") if ret < 0 or ret > 1: logger.critical(u"ImageMagick must be installed, graphics cannot be resized or converted to the required graphics format (e.g. jpg and or png)") if test_environment: requirements_are_met = False else: sys.exit(False) # Verify that mythcommflag is installed mythcommflagpath = getlocationMythcommflag() if mythcommflagpath: mythcommflag_recordings = mythcommflag_recordings % mythcommflagpath mythcommflag_videos = mythcommflag_videos % mythcommflagpath else: logger.critical(u"mythcommflag must be installed so that Miro video seek tables can be built.") if test_environment: requirements_are_met = False else: sys.exit(False) if opts.testenv: # All tests passed getVideoDetails(u"") # Test that ffmpeg is available if ffmpeg and requirements_are_met: logger.info(u"The environment test passed !\n\n") sys.exit(True) else: logger.critical(u"The environment test FAILED. See previously displayed error messages!") sys.exit(False) if opts.addchannel != u'OFF': # Add a Miro Channel record - Should only be done once createChannelRecord(opts.addchannel, channel_id, channel_num) logger.info(u"The Miro Channel record has been successfully created !\n\n") sys.exit(True) ########################################### # Mainlogic for all Miro and MythTV bridge ########################################### # # Start the Miro Front and Backend - This allows mirobridge to execute actions on the Miro backend # displayMessage(u"Starting Miro Frontend and Backend") startup.initialize(config.get(prefs.THEME_NAME)) app.cli_events = EventHandler() app.cli_events.connect_to_signals() startup.startup() app.cli_events.startup_event.wait() if app.cli_events.startup_failure: logger.critical(u"Starting Miro Frontend and Backend failed: (%s)" % app.cli_events.startup_failure[0]) print_text(app.cli_events.startup_failure[1]) app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) app.cli_interpreter = MiroInterpreter() if opts.verbose: app.cli_interpreter.verbose = True else: app.cli_interpreter.verbose = False app.cli_interpreter.simulation = opts.simulation app.cli_interpreter.videofiles = [] app.cli_interpreter.downloading = False app.cli_interpreter.icon_cache_dir = config.get(prefs.ICON_CACHE_DIRECTORY) app.cli_interpreter.imagemagick = imagemagick app.cli_interpreter.statistics = statistics if config.get(prefs.APP_VERSION) < u"2.5.0": app.renderer = app.cli_interpreter else: app.movie_data_program_info = app.cli_interpreter.movie_data_program_info # # Optionally Update Miro feeds and # download any "autodownloadable" videos which are pending # if not opts.no_autodownload: if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') before_download = len(app.cli_interpreter.videofiles) if opts.verbose: app.cli_interpreter.verbose = True app.cli_interpreter.do_mythtv_update_autodownload(u'') time.sleep(download_sleeptime) firsttime = True while True: app.cli_interpreter.do_mythtv_check_downloading(u'') if app.cli_interpreter.downloading: time.sleep(30) firsttime = False continue elif firsttime: time.sleep(download_sleeptime) firsttime = False continue else: break if opts.verbose: app.cli_interpreter.verbose = False app.cli_interpreter.do_mythtv_getunwatched(u'') after_download = len(app.cli_interpreter.videofiles) statistics[u'Miros_videos_downloaded'] = after_download - before_download if opts.verbose: app.cli_interpreter.verbose = True # Deal with orphaned oldrecorded records. # These records indicate that the MythTV user deleted the video from the Watched Recordings screen # or from MythVideo # These video items must also be deleted from Miro videostodelete = getOldrecordedOrphans() if len(videostodelete): displayMessage(u"Starting Miro delete of videos deleted in the MythTV Watched Recordings screen.") for video in videostodelete: # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove([video[u'title'], video[u'subtitle']]) # # Collect the set of played Miro video files # app.cli_interpreter.videofiles = getPlayedMiroVideos() # # Updated the played status of items # if app.cli_interpreter.videofiles: displayMessage(u"Starting Miro update of watched MythTV videos") app.cli_interpreter.do_mythtv_updatewatched(u'') # # Get the unwatched videos details from Miro # app.cli_interpreter.do_mythtv_getunwatched(u'') unwatched = app.cli_interpreter.videofiles # # Get the watched videos details from Miro # app.cli_interpreter.do_mythtv_getwatched(u'') watched = app.cli_interpreter.videofiles # # Remove any duplicate Miro videoes from the unwatched or watched list of Miro videos # This means that Miro has duplicates due to a Miro/Channel website issue # These videos should not be added to the MythTV Watch Recordings screen # unwatched_copy = [] for item in unwatched: unwatched_copy.append(item) for item in unwatched_copy: # Check for a duplicate against already watched Miro videos for x in watched: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: try: unwatched.remove(item) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename']) displayMessage(u"Skipped adding a duplicate Miro video to the MythTV Watch Recordings screen (%s - %s) which is already in MythVideo.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (item[u'channelTitle'], item[u'title'])) except ValueError: pass duplicates = [] for item in unwatched_copy: dup_flag = 0 for x in unwatched: # Check for a duplicate against un-watched Miro videos if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: dup_flag+=1 if dup_flag > 1: for x in duplicates: if item[u'channelTitle'] == x[u'channelTitle'] and item[u'title'] == x[u'title']: break else: duplicates.append(item) for duplicate in duplicates: try: unwatched.remove(duplicate) # Completely remove this duplicate video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(duplicate[u'videoFilename']) displayMessage(u"Skipped adding a Miro video to the MythTV Watch Recordings screen (%s - %s) as there are duplicate 'new' video items.\nSometimes a Miro channel has the same video downloaded multiple times.\nThis is a Miro/Channel web site issue and often rectifies itself overtime." % (duplicate[u'channelTitle'], duplicate[u'title'])) except ValueError: pass # # Deal with any Channel videos that are to be copied and removed from Miro # copy_items = [] # Copy unwatched and watched Miro videos (all or only selected Channels) if u'all' in channel_mythvideo_only: for array in [watched, unwatched]: for item in array: copy_items.append(item) elif len(channel_mythvideo_only): for array in [watched, unwatched]: for video in array: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): copy_items.append(video) # Copy ONLY watched Miro videos (all or only selected Channels) if u'all' in channel_new_watch_copy: for video in watched: copy_items.append(video) elif len(channel_new_watch_copy): for video in watched: if filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_new_watch_copy.keys(): copy_items.append(video) channels_to_copy = {} for key in channel_mythvideo_only.keys(): channels_to_copy[key] = channel_mythvideo_only[key] for key in channel_new_watch_copy.keys(): channels_to_copy[key] = channel_new_watch_copy[key] for video in copy_items: dir_key = filter(is_not_punct_char, video[u'channelTitle'].lower()) # Create the subdirectories to copy the video into directory_coverart = False if not os.path.isdir(channels_to_copy[dir_key]): if simulation: logger.info(u"Simulation: Creating the MythVideo directory (%s)." % (channels_to_copy[dir_key])) else: os.makedirs(channels_to_copy[dir_key]) directory_coverart = True # If the directory was just created it needs coverart else: if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if not os.path.isfile(u"%s%s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart elif video[u'item_icon']: ext = getExtention(video[u'item_icon']) if not os.path.isfile(u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'].lower(), video[u'title'].lower(), ext)): directory_coverart = True # If the directory was just created it needs coverart # Copy the Channel icon located in the posters/coverart directory if directory_coverart and video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) tmp_path = channels_to_copy[dir_key][:-1] foldername = tmp_path[tmp_path.rindex(u'/')+1:] dirpath = u"%s%s" % (channels_to_copy[dir_key], u'folder.jpg') dirpath2 = u"%s%s" % (channels_to_copy[dir_key], u'folder.png') if os.path.isfile(dirpath) or os.path.isfile(dirpath2): # See if a folder cover already exists pass else: if simulation: logger.info(u"Simulation: Copy a Channel Icon (%s) for directory (%s)." % (filepath, dirpath)) else: try: # Miro Channel icon copy for the new subdirectory useImageMagick(u'convert "%s" "%s"' % (video[u'channel_icon'], dirpath)) except: logger.critical(u"Copy a Channel Icon (%s) for directory (%s) failed." % (video[u'channel_icon'], dirpath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Miro video file save_video_filename = video[u'videoFilename'] # This filename is needed later for deleting in Miro ext = getExtention(video[u'videoFilename']) if ext.lower() == u'm4v': ext = u'mpg' filepath = u"%s%s - %s.%s" % (channels_to_copy[dir_key], video[u'channelTitle'], video[u'title'], ext) if simulation: logger.info(u"Simulation: Copying the Miro video (%s) to the MythVideo directory (%s)." % (video[u'videoFilename'], filepath)) else: try: # Miro video copied into a MythVideo directory shutil.copy2(video[u'videoFilename'], filepath) statistics[u'Miros_MythVideos_copied']+=1 if u'mythvideo' in storagegroups.keys(): video[u'videoFilename'] = filepath.replace(storagegroups[u'mythvideo'], u'') else: video[u'videoFilename'] = filepath except: logger.critical(u"Copying the Miro video (%s) to the MythVideo directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'videoFilename'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) # Copy the Channel or item's icon if video[u'channel_icon'] and not video[u'channelTitle'].lower() in channel_icon_override: pass else: if video[u'item_icon']: video[u'channel_icon'] = video[u'item_icon'] if video[u'channel_icon']: ext = getExtention(video[u'channel_icon']) if video[u'channelTitle'].lower() in channel_icon_override: filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'posterdir'], ext) else: filepath = u"%s%s%s.%s" % (vid_graphics_dirs[u'posterdir'], video[u'channelTitle'], graphic_suffix[u'posterdir'], ext) # There may already be a Channel icon available or it is a symlink which needs to be replaced if not os.path.isfile(filepath) or os.path.islink(filepath): if simulation: logger.info(u"Simulation: Copying the Channel Icon (%s) to the poster directory (%s)." % (video[u'channel_icon'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'channel_icon'], filepath) if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath except: logger.critical(u"Copying the Channel Icon (%s) to the poster directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'channel_icon'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) else: if u'posterdir' in storagegroups.keys(): video[u'channel_icon'] = filepath.replace(storagegroups[u'posterdir'], u'') else: video[u'channel_icon'] = filepath # There may already be a Screenshot available or it is a symlink which needs to be replaced if video[u'screenshot']: ext = getExtention(video[u'screenshot']) filepath = u"%s%s - %s%s.%s" % (vid_graphics_dirs[u'episodeimagedir'], video[u'channelTitle'], video[u'title'], graphic_suffix[u'episodeimagedir'], ext) else: filepath = u'' if not os.path.isfile(filepath) or os.path.islink(filepath): if video[u'screenshot']: if simulation: logger.info(u"Simulation: Copying the Screenshot (%s) to the Screenshot directory (%s)." % (video[u'screenshot'], filepath)) else: try: # Miro Channel icon copied into a MythVideo directory try: # Remove any old symlink file os.remove(filepath) except OSError: pass shutil.copy2(video[u'screenshot'], filepath) displayMessage(u"Copied Miro screenshot file (%s) to MythVideo (%s)" % (video[u'screenshot'], filepath)) if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath except: logger.critical(u"Copying the Screenshot (%s) to the Screenshot directory (%s).\n This maybe a permissions error (mirobridge.py does not have permission to write to the directory)." % (video[u'screenshot'], filepath)) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete sys.exit(False) elif video[u'screenshot']: if u'episodeimagedir' in storagegroups.keys(): video[u'screenshot'] = filepath.replace(storagegroups[u'episodeimagedir'], u'') else: video[u'screenshot'] = filepath video[u'copied'] = True # Mark this video item as being copied # Completely remove the video and item information from Miro app.cli_interpreter.do_mythtv_item_remove(save_video_filename) # Gracefully close the Miro database and shutdown the Miro Front and Back ends app.controller.shutdown() time.sleep(5) # Let the shutdown processing complete # # Add and delete MythTV (Watch Recordings) Miro recorded records # Add and remove symlinks for Miro video files # # Check if the user does not want any channels Added to the "Watch Recordings" screen if channel_mythvideo_only.has_key(u'all'): for video in unwatched: watched.append(video) unwatched = [] else: if len(channel_mythvideo_only): unwatched_copy = [] for video in unwatched: if not filter(is_not_punct_char, video[u'channelTitle'].lower()) in channel_mythvideo_only.keys(): unwatched_copy.append(video) else: watched.append(video) unwatched = unwatched_copy statistics[u'Total_unwatched'] = len(unwatched) if not len(unwatched): displayMessage(u"There are no Miro unwatched video items to add as MythTV Recorded videos.") if not updateMythRecorded(unwatched): logger.critical(u"Updating MythTV Recording with Miro video files failed." % str(base_video_dir)) sys.exit(False) # # Add and delete MythVideo records for played Miro Videos # Add and delete symbolic links to Miro Videos and subdirectories # Add and delete symbolic links to coverart/Miro icons and Miro screenshots/fanart # if len(channel_watch_only): # If the user does not want any channels moved to MythVideo exit if channel_watch_only[0].lower() == u'all': printStatistics() return True if not len(watched): displayMessage(u"There are no Miro watched video items to add as MythTV Recorded videos.") if not updateMythVideo(watched): logger.critical(u"Updating MythVideo with Miro video files failed.") sys.exit(False) printStatistics() return True
10d932a66066bdc1fdcfb153a5e76ddb0901ebd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/10d932a66066bdc1fdcfb153a5e76ddb0901ebd0/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 538, 225, 2082, 273, 18862, 12, 9167, 33, 89, 28385, 14654, 4084, 30, 312, 11373, 18337, 300, 76, 344, 90, 5084, 1882, 58, 44, 2312, 25173, 306, 3977, 13944, 82, 7923, 225, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 73, 3113, 5238, 16858, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 16858, 3113, 2809, 33, 89, 6, 4236, 10991, 364, 11274, 326, 525, 301, 89, 2728, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 90, 3113, 5238, 1589, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 1570, 1546, 1589, 3113, 2809, 33, 89, 6, 4236, 1177, 471, 2869, 1779, 7923, 2082, 18, 1289, 67, 3482, 12, 225, 3701, 87, 3113, 5238, 9812, 6234, 3113, 1301, 1546, 2233, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 67, 2107, 2552, 3569, 16, 4224, 67, 87, 11182, 10650, 16, 1904, 67, 7585, 67, 3700, 16, 1904, 67, 4811, 451, 9115, 67, 3700, 16, 1904, 67, 2704, 67, 7585, 67, 3530, 2552, 18339, 67, 31586, 67, 8291, 16, 2502, 4650, 16, 8902, 351, 346, 1200, 16, 7691, 16, 8433, 67, 834, 67, 10578, 2552, 19548, 67, 8477, 16, 19548, 67, 803, 67, 8477, 16, 19548, 67, 529, 67, 8477, 2552, 3399, 451, 5702, 6420, 67, 3366, 899, 16, 3399, 451, 5702, 6420, 67, 6768, 2 ]
message = 'JobWrapper failed the initialization phase with exception: \n%s' %(str(x)) gLogger.exception(message)
gLogger.exception('JobWrapper failed the initialization phase')
def execute ( arguments ): global jobReport jobID = arguments['Job']['JobID'] os.environ['JOBID'] = jobID jobID = int(jobID) if arguments.has_key('WorkingDirectory'): wdir = os.path.expandvars(arguments['WorkingDirectory']) if os.path.isdir(wdir): os.chdir(wdir) else: try: os.makedirs(wdir) if os.path.isdir(wdir): os.chdir(wdir) except Exception, x: gLogger.exception('JobWrapperTemplate could not create working directory with exception:\n%s' %(str(x))) rescheduleFailedJob(jobID,'Could Not Create Working Directory') return root = arguments['CE']['Root'] jobReport = JobReport(jobID,'JobWrapper') try: job = JobWrapper( jobID, jobReport ) job.initialize(arguments) except Exception, x: message = 'JobWrapper failed the initialization phase with exception: \n%s' %(str(x)) gLogger.exception(message) rescheduleFailedJob(jobID,'Job Wrapper Initialization') job.sendWMSAccounting('Failed','Job Wrapper Initialization') return if arguments['Job'].has_key('InputSandbox'): try: result = job.transferInputSandbox(arguments['Job']['InputSandbox']) if not result['OK']: gLogger.warn(result['Message']) raise JobWrapperError(result['Message']) except Exception, x: message = 'JobWrapper failed to download input sandbox' gLogger.exception(message) rescheduleFailedJob(jobID,'Input Sandbox Download') job.sendWMSAccounting('Failed','Input Sandbox Download') return else: gLogger.verbose('Job has no InputSandbox requirement') jobReport.sendStoredStatusInfo() jobReport.sendStoredJobParameters() if arguments['Job'].has_key('InputData'): if arguments['Job']['InputData']: try: result = job.resolveInputData(arguments['Job']['InputData']) if not result['OK']: gLogger.warn(result['Message']) raise JobWrapperError(result['Message']) except Exception, x: message = 'JobWrapper failed to resolve input data with exception: \n%s' %(str(x)) gLogger.warn(message) gLogger.exception() rescheduleFailedJob(jobID,'Input Data Resolution') job.sendWMSAccounting('Failed','Input Data Resolution') return else: gLogger.verbose('Job has a null InputData requirement:') gLogger.verbose(arguments) else: gLogger.verbose('Job has no InputData requirement') jobReport.sendStoredStatusInfo() jobReport.sendStoredJobParameters() try: result = job.execute(arguments) if not result['OK']: gLogger.warn(result['Message']) raise JobWrapperError(result['Message']) except Exception, x: if str(x) == '0': gLogger.verbose('JobWrapper exited with status=0 after execution') pass else: message = 'Job failed in execution phase with exception: \n%s' %(str(x)) gLogger.warn(message) gLogger.exception() jobReport.setJobStatus('Failed',str(x),sendFlag=False) jobParam = jobReport.setJobParameter('Error Message',message,sendFlag=False) if not jobParam['OK']: gLogger.warn(jobParam) job.sendFailoverRequest('Failed','Exception During Execution') return if arguments['Job'].has_key('OutputSandbox') or arguments['Job'].has_key('OutputData'): try: result = job.processJobOutputs(arguments) if not result['OK']: gLogger.warn(result['Message']) raise JobWrapperError(result['Message']) except Exception, x: message = 'JobWrapper failed to process output files with exception: \n%s' %(str(x)) gLogger.warn(message) gLogger.exception() jobReport.setJobParameter('Error Message',message,sendFlag=False) jobReport.setJobStatus('Failed','Uploading Job Outputs',sendFlag=False) job.sendFailoverRequest('Failed','Uploading Job Outputs') return else: gLogger.verbose('Job has no OutputData or OutputSandbox requirement') try: job.finalize(arguments) except Exception, x: message = 'JobWrapper failed the finalization phase with exception: \n%s' %(str(x)) gLogger.warn(message) gLogger.exception() return
98469a5fadf61445869859b880cc54412da80ddd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/98469a5fadf61445869859b880cc54412da80ddd/JobWrapperTemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 261, 1775, 262, 30, 225, 2552, 1719, 4820, 225, 28913, 273, 1775, 3292, 2278, 21712, 2278, 734, 3546, 1140, 18, 28684, 3292, 18321, 734, 3546, 273, 28913, 28913, 273, 509, 12, 4688, 734, 13, 225, 309, 1775, 18, 5332, 67, 856, 2668, 14836, 2853, 11, 4672, 341, 1214, 273, 1140, 18, 803, 18, 12320, 4699, 12, 7099, 3292, 14836, 2853, 19486, 309, 1140, 18, 803, 18, 291, 1214, 12, 91, 1214, 4672, 1140, 18, 343, 1214, 12, 91, 1214, 13, 469, 30, 775, 30, 1140, 18, 81, 9477, 10539, 12, 91, 1214, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 91, 1214, 4672, 1140, 18, 343, 1214, 12, 91, 1214, 13, 1335, 1185, 16, 619, 30, 314, 3328, 18, 4064, 2668, 2278, 3611, 2283, 3377, 486, 752, 5960, 1867, 598, 1520, 5581, 82, 9, 87, 11, 8975, 701, 12, 92, 20349, 400, 2847, 2925, 2278, 12, 4688, 734, 11189, 4445, 2288, 1788, 22732, 8930, 6134, 327, 225, 1365, 273, 1775, 3292, 1441, 21712, 2375, 3546, 1719, 4820, 273, 3956, 4820, 12, 4688, 734, 11189, 2278, 3611, 6134, 225, 775, 30, 1719, 273, 3956, 3611, 12, 28913, 16, 1719, 4820, 262, 1719, 18, 11160, 12, 7099, 13, 1335, 1185, 16, 619, 30, 314, 3328, 18, 4064, 2668, 2278, 3611, 2535, 326, 10313, 6855, 6134, 400, 2847, 2925, 2278, 12, 4688, 734, 11189, 2278, 18735, 26586, 6134, 1719, 18, 4661, 59, 3537, 3032, 310, 2668, 2925, 17023, 2278, 18735, 26586, 6134, 327, 225, 309, 1775, 3292, 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, 1836, 261, 1775, 262, 30, 225, 2552, 1719, 4820, 225, 28913, 273, 1775, 3292, 2278, 21712, 2278, 734, 3546, 1140, 18, 28684, 3292, 18321, 734, 3546, 273, 28913, 28913, 273, 509, 12, 4688, 734, 13, 225, 309, 1775, 18, 5332, 67, 856, 2668, 14836, 2853, 11, 4672, 341, 1214, 273, 1140, 18, 803, 18, 12320, 4699, 12, 7099, 3292, 14836, 2853, 19486, 309, 1140, 18, 803, 18, 291, 1214, 12, 91, 1214, 4672, 1140, 18, 343, 1214, 12, 91, 1214, 13, 469, 30, 775, 30, 1140, 18, 81, 9477, 10539, 12, 91, 1214, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 91, 1214, 4672, 1140, 18, 343, 1214, 12, 91, 1214, 13, 1335, 1185, 16, 619, 30, 2 ]
- port: port to connect to (default the standard NNTP port)"""
- port: port to connect to (default the standard NNTP port) - user: username to authenticate with - password: password to use with username - readermode: if true, send 'mode reader' command after connecting. readermode is sometimes necessary if you are connecting to an NNTP server on the local machine and intend to call reader-specific comamnds, such as `group'. If you get unexpected NNTPPermanentErrors, you might need to set readermode. """
def __init__(self, host, port = NNTP_PORT, user=None, password=None): """Initialize an instance. Arguments: - host: hostname to connect to - port: port to connect to (default the standard NNTP port)"""
9dd78729459478023a46401d8f04e2dc3bf974e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9dd78729459478023a46401d8f04e2dc3bf974e5/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 1756, 273, 423, 1784, 52, 67, 6354, 16, 729, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 7520, 392, 791, 18, 225, 13599, 30, 300, 1479, 30, 5199, 358, 3077, 358, 300, 1756, 30, 1756, 358, 3077, 358, 261, 1886, 326, 4529, 423, 1784, 52, 1756, 15574, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 1756, 273, 423, 1784, 52, 67, 6354, 16, 729, 33, 7036, 16, 2201, 33, 7036, 4672, 3536, 7520, 392, 791, 18, 225, 13599, 30, 300, 1479, 30, 5199, 358, 3077, 358, 300, 1756, 30, 1756, 358, 3077, 358, 261, 1886, 326, 4529, 423, 1784, 52, 1756, 15574, 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 ]
def entries():
def entries(**map):
def entries(): parity = 0 for k,n in i: yield self.t("tagentry", parity = parity, tag = k, node = hex(n)) parity = 1 - parity
268bedddddaed84793c541e8d24cbb2a515ccc87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/268bedddddaed84793c541e8d24cbb2a515ccc87/hgweb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3222, 12, 636, 1458, 4672, 19904, 273, 374, 364, 417, 16, 82, 316, 277, 30, 2824, 365, 18, 88, 2932, 2692, 4099, 3113, 19904, 273, 19904, 16, 1047, 273, 417, 16, 756, 273, 3827, 12, 82, 3719, 19904, 273, 404, 300, 19904, 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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, 417, 16, 756, 273, 3827, 12, 82, 3719, 19904, 273, 404, 300, 19904, 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 ]
msg += self.worksheet.fileName.split('/')[-1] or 'untitled' msg += '"?</b><p><small>Otherwise they will get lost.</small>' diag.setInformativeText(msg)
msg += self.worksheet.fileName.split('/')[-1] or 'untitled' + '"?</b><p>' msg += '<font size="-1">Otherwise they will get lost.</font>' diag.setText(msg)
def __savediag(self): diag = QMessageBox(self) msg = '<b>Do you want to save the changes in your worksheet "' msg += self.worksheet.fileName.split('/')[-1] or 'untitled' msg += '"?</b><p><small>Otherwise they will get lost.</small>' diag.setInformativeText(msg) diag.setStandardButtons(QMessageBox.StandardButton.Discard | QMessageBox.StandardButton.Cancel | QMessageBox.StandardButton.Save) diag.setWindowModality(Qt.WindowModal) return diag.exec_()
64c03aad72260c69e1fcd6d14f19abc81a6789a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/403/64c03aad72260c69e1fcd6d14f19abc81a6789a2/qrmainwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14077, 8852, 12, 2890, 4672, 6643, 273, 30728, 12, 2890, 13, 1234, 273, 2368, 70, 34, 3244, 1846, 2545, 358, 1923, 326, 3478, 316, 3433, 13622, 2491, 1234, 1011, 365, 18, 1252, 8118, 18, 17812, 18, 4939, 2668, 2473, 13, 18919, 21, 65, 578, 296, 10032, 305, 1259, 11, 397, 2119, 35, 1757, 70, 4438, 84, 1870, 1234, 1011, 2368, 5776, 963, 1546, 17, 21, 6441, 8290, 2460, 2898, 903, 336, 13557,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14077, 8852, 12, 2890, 4672, 6643, 273, 30728, 12, 2890, 13, 1234, 273, 2368, 70, 34, 3244, 1846, 2545, 358, 1923, 326, 3478, 316, 3433, 13622, 2491, 1234, 1011, 365, 18, 1252, 8118, 18, 17812, 18, 4939, 2668, 2473, 13, 18919, 21, 65, 578, 296, 10032, 305, 1259, 11, 397, 2119, 35, 1757, 70, 4438, 84, 1870, 1234, 1011, 2368, 5776, 963, 1546, 17, 21, 6441, 8290, 2460, 2898, 903, 336, 13557, 17347, 5776, 1870, 6643, 18, 542, 1528, 12, 3576, 13, 6643, 18, 542, 8336, 14388, 12, 53, 27647, 18, 8336, 3616, 18, 14185, 571, 30728, 18, 8336, 3616, 18, 6691, 571, 30728, 18, 8336, 3616, 18, 4755, 13, 6643, 18, 542, 3829, 1739, 7919, 12, 2 ]
pass
pass
def execute(self):
333f48866f614aca5ce38c3f94febbea85ca155d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/333f48866f614aca5ce38c3f94febbea85ca155d/sample.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
DV.conf_file_directory=DamnUnicode(DV.conf_file_location+os.sep)
DV.conf_file_directory=DamnUnicode(DV.conf_file_location+DV.sep)
def DamnUnicode(s): if type(s) is type(u''): return s if type(s) is type(''): return unicode(s,errors='ignore') try: return unicode(s) except: return s
18d91d3a382ccc85706a20ab0defe4fb663ef94f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/18d91d3a382ccc85706a20ab0defe4fb663ef94f/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 463, 301, 82, 16532, 12, 87, 4672, 309, 618, 12, 87, 13, 353, 618, 12, 89, 6309, 4672, 327, 272, 309, 618, 12, 87, 13, 353, 618, 2668, 11, 4672, 327, 5252, 12, 87, 16, 4324, 2218, 6185, 6134, 775, 30, 327, 5252, 12, 87, 13, 1335, 30, 327, 272, 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 ]
if final_ended:
if final_ended and len(lines[i].strip()) != 0:
def read(self, filename = 'mdin'): try: file = open(filename, 'r') except IOError: print >> stderr, 'File (%s) can\'t be opened for reading...' % filename return -1
f9c999d5095b4ecfe3922438c828de517a5f640e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8376/f9c999d5095b4ecfe3922438c828de517a5f640e/mdin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 1544, 273, 296, 1264, 267, 11, 4672, 775, 30, 585, 273, 1696, 12, 3459, 16, 296, 86, 6134, 1335, 8340, 30, 1172, 1671, 4514, 16, 296, 812, 6142, 87, 13, 848, 3730, 88, 506, 10191, 364, 6453, 7821, 738, 1544, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1652, 855, 12, 2890, 16, 1544, 273, 296, 1264, 267, 11, 4672, 775, 30, 585, 273, 1696, 12, 3459, 16, 296, 86, 6134, 1335, 8340, 30, 1172, 1671, 4514, 16, 296, 812, 6142, 87, 13, 848, 3730, 88, 506, 10191, 364, 6453, 7821, 738, 1544, 327, 300, 21, 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 ]
assert not in_text, "unexpected repeated .text start: %d" % n in_text = True elif self.r_sectionstart.match(line): if in_function: yield in_function, functionlines functionlines = [] in_text = False in_function = False elif in_text and self.FunctionGcRootTracker.r_functionstart.match(line): yield in_function, functionlines functionlines = [] in_function = True functionlines.append(line) if functionlines: yield in_function, functionlines def process_function(self, lines, entrypoint, filename): entrypoint = '_' + entrypoint return super(DarwinAssemblerParser, self).process_function( lines, entrypoint, filename) class DarwinAssemblerParser64(DarwinAssemblerParser): format = "darwin64" FunctionGcRootTracker = DarwinFunctionGcRootTracker64 class Mingw32AssemblerParser(DarwinAssemblerParser): format = "mingw32" FunctionGcRootTracker = Mingw32FunctionGcRootTracker def find_functions(self, iterlines): functionlines = [] in_text = False in_function = False for n, line in enumerate(iterlines): if self.r_textstart.match(line):
def find_functions(self, iterlines): functionlines = [] in_text = False in_function = False for n, line in enumerate(iterlines): if self.r_textstart.match(line): assert not in_text, "unexpected repeated .text start: %d" % n in_text = True elif self.r_sectionstart.match(line): if in_function: yield in_function, functionlines functionlines = [] in_text = False in_function = False elif in_text and self.FunctionGcRootTracker.r_functionstart.match(line): yield in_function, functionlines functionlines = [] in_function = True functionlines.append(line)
d953accfc24ec5507016cf995e5ea7c7022c9d91 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d953accfc24ec5507016cf995e5ea7c7022c9d91/trackgcroot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 10722, 12, 2890, 16, 1400, 3548, 4672, 445, 3548, 273, 5378, 316, 67, 955, 273, 1083, 316, 67, 915, 273, 1083, 364, 290, 16, 980, 316, 4241, 12, 2165, 3548, 4672, 309, 365, 18, 86, 67, 955, 1937, 18, 1916, 12, 1369, 4672, 1815, 486, 316, 67, 955, 16, 315, 21248, 12533, 263, 955, 787, 30, 738, 72, 6, 738, 290, 316, 67, 955, 273, 1053, 1327, 365, 18, 86, 67, 3464, 1937, 18, 1916, 12, 1369, 4672, 309, 316, 67, 915, 30, 2824, 316, 67, 915, 16, 445, 3548, 445, 3548, 273, 5378, 316, 67, 955, 273, 1083, 316, 67, 915, 273, 1083, 1327, 316, 67, 955, 471, 365, 18, 2083, 43, 71, 2375, 8135, 18, 86, 67, 915, 1937, 18, 1916, 12, 1369, 4672, 2824, 316, 67, 915, 16, 445, 3548, 445, 3548, 273, 5378, 316, 67, 915, 273, 1053, 445, 3548, 18, 6923, 12, 1369, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1104, 67, 10722, 12, 2890, 16, 1400, 3548, 4672, 445, 3548, 273, 5378, 316, 67, 955, 273, 1083, 316, 67, 915, 273, 1083, 364, 290, 16, 980, 316, 4241, 12, 2165, 3548, 4672, 309, 365, 18, 86, 67, 955, 1937, 18, 1916, 12, 1369, 4672, 1815, 486, 316, 67, 955, 16, 315, 21248, 12533, 263, 955, 787, 30, 738, 72, 6, 738, 290, 316, 67, 955, 273, 1053, 1327, 365, 18, 86, 67, 3464, 1937, 18, 1916, 12, 1369, 4672, 309, 316, 67, 915, 30, 2824, 316, 67, 915, 16, 445, 3548, 445, 3548, 273, 5378, 316, 67, 955, 273, 1083, 316, 67, 915, 273, 1083, 1327, 316, 67, 955, 471, 365, 18, 2083, 43, 71, 2375, 8135, 2 ]
host = [host] try: addr = socket.gethostbyname(host[0]) if addr != host:
rawHost, port = splitport(host) host = [rawHost] try: addr = socket.gethostbyname(rawHost) if addr != rawHost:
def proxy_bypass(host): try: import _winreg import re except ImportError: # Std modules, so should be around - but you never know! return 0 try: internetSettings = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVersion\Internet Settings') proxyEnable = _winreg.QueryValueEx(internetSettings, 'ProxyEnable')[0] proxyOverride = str(_winreg.QueryValueEx(internetSettings, 'ProxyOverride')[0]) # ^^^^ Returned as Unicode but problems if not converted to ASCII except WindowsError: return 0 if not proxyEnable or not proxyOverride: return 0 # try to make a host list from name and IP address. host = [host] try: addr = socket.gethostbyname(host[0]) if addr != host: host.append(addr) except socket.error: pass # make a check value list from the registry entry: replace the # '<local>' string by the localhost entry and the corresponding # canonical entry. proxyOverride = proxyOverride.split(';') i = 0 while i < len(proxyOverride): if proxyOverride[i] == '<local>': proxyOverride[i:i+1] = ['localhost', '127.0.0.1', socket.gethostname(), socket.gethostbyname( socket.gethostname())] i += 1 # print proxyOverride # now check if we match one of the registry values. for test in proxyOverride: test = test.replace(".", r"\.") # mask dots test = test.replace("*", r".*") # change glob sequence test = test.replace("?", r".") # change glob char for val in host: # print "%s <--> %s" %( test, val ) if re.match(test, val, re.I): return 1 return 0
c206a1bbc52dc04f2360bc914df5d74cb48b5037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c206a1bbc52dc04f2360bc914df5d74cb48b5037/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 29604, 12, 2564, 4672, 775, 30, 1930, 389, 8082, 1574, 1930, 283, 1335, 11308, 30, 468, 6276, 4381, 16, 1427, 1410, 506, 6740, 300, 1496, 1846, 5903, 5055, 5, 327, 374, 775, 30, 24264, 2628, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 15487, 67, 4714, 16, 436, 11, 21742, 64, 22350, 64, 10399, 64, 3935, 1444, 64, 26562, 8709, 6134, 2889, 8317, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 267, 14726, 2628, 16, 296, 3886, 8317, 6134, 63, 20, 65, 2889, 6618, 273, 609, 24899, 8082, 1574, 18, 1138, 620, 424, 12, 267, 14726, 2628, 16, 296, 3886, 6618, 6134, 63, 20, 5717, 468, 3602, 12800, 66, 8045, 487, 9633, 1496, 9688, 309, 486, 5970, 358, 11768, 1335, 8202, 668, 30, 327, 374, 309, 486, 2889, 8317, 578, 486, 2889, 6618, 30, 327, 374, 468, 775, 358, 1221, 279, 1479, 666, 628, 508, 471, 2971, 1758, 18, 1831, 2594, 16, 1756, 273, 1416, 655, 12, 2564, 13, 1479, 273, 306, 1899, 2594, 65, 775, 30, 3091, 273, 2987, 18, 75, 546, 669, 1637, 529, 12, 1899, 2594, 13, 309, 3091, 480, 1831, 2594, 30, 1479, 18, 6923, 12, 4793, 13, 1335, 2987, 18, 1636, 30, 1342, 468, 1221, 279, 866, 460, 666, 628, 326, 4023, 1241, 30, 1453, 326, 468, 2368, 3729, 1870, 533, 635, 326, 17365, 1241, 471, 326, 4656, 468, 7378, 1241, 18, 2889, 6618, 273, 2889, 6618, 18, 4939, 2668, 4359, 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, 2889, 67, 29604, 12, 2564, 4672, 775, 30, 1930, 389, 8082, 1574, 1930, 283, 1335, 11308, 30, 468, 6276, 4381, 16, 1427, 1410, 506, 6740, 300, 1496, 1846, 5903, 5055, 5, 327, 374, 775, 30, 24264, 2628, 273, 389, 8082, 1574, 18, 3678, 653, 24899, 8082, 1574, 18, 44, 3297, 67, 15487, 67, 4714, 16, 436, 11, 21742, 64, 22350, 64, 10399, 64, 3935, 1444, 64, 26562, 8709, 6134, 2889, 8317, 273, 389, 8082, 1574, 18, 1138, 620, 424, 12, 267, 14726, 2628, 16, 296, 3886, 8317, 6134, 63, 20, 65, 2889, 6618, 273, 609, 24899, 8082, 1574, 18, 1138, 620, 424, 12, 267, 14726, 2628, 16, 296, 3886, 6618, 6134, 63, 20, 5717, 468, 3602, 12800, 66, 2 ]
('todo.recurrence', '=', todo.recurrence or False),
('recurrence', '=', todo.recurrence or False),
def create(self, cursor, user, values, context=None): todo_obj = self.pool.get('calendar.todo')
38b0b3e7e05645f2050619f993da230a0851f555 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9296/38b0b3e7e05645f2050619f993da230a0851f555/todo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 10621, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 9012, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3347, 16, 729, 16, 924, 16, 819, 33, 7036, 4672, 10621, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 11650, 18, 9012, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import sys, os
import sys
def handle(self, info=None): import sys, os info = info or sys.exc_info() text = 0 print reset()
09029ec15c2b61a0aa506286a6bb485f468ac920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/09029ec15c2b61a0aa506286a6bb485f468ac920/cgitb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1123, 33, 7036, 4672, 1930, 2589, 1123, 273, 1123, 578, 2589, 18, 10075, 67, 1376, 1435, 977, 273, 374, 1172, 2715, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1123, 33, 7036, 4672, 1930, 2589, 1123, 273, 1123, 578, 2589, 18, 10075, 67, 1376, 1435, 977, 273, 374, 1172, 2715, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return task_to_dict(self.req.get_task(tid))
toret = task_to_dict(self.req.get_task(tid)) return toret
def get_task(self, tid): # Retrieve a specific task by ID and return the data return task_to_dict(self.req.get_task(tid))
cebe7c567b291668b1780ee2c9ac070522bf109f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/cebe7c567b291668b1780ee2c9ac070522bf109f/dbuswrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4146, 12, 2890, 16, 11594, 4672, 468, 10708, 279, 2923, 1562, 635, 1599, 471, 327, 326, 501, 327, 1562, 67, 869, 67, 1576, 12, 2890, 18, 3658, 18, 588, 67, 4146, 12, 18081, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4146, 12, 2890, 16, 11594, 4672, 468, 10708, 279, 2923, 1562, 635, 1599, 471, 327, 326, 501, 327, 1562, 67, 869, 67, 1576, 12, 2890, 18, 3658, 18, 588, 67, 4146, 12, 18081, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
(os.path.join(self.vsts_path, 'vsperfcmd.exe')))
(os.path.join(self.tools_path, 'vsperfcmd.exe')))
def SetUp(self, binaries): """Set up the platform specific environment and instrument the binaries for coverage.
344bc5c4002d2db2a1d5a6f60dd29a32e3c0d126 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/344bc5c4002d2db2a1d5a6f60dd29a32e3c0d126/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1211, 12, 2890, 16, 4158, 5646, 4672, 3536, 694, 731, 326, 4072, 2923, 3330, 471, 10353, 326, 4158, 5646, 364, 11196, 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 ]
for line in file.readlines():
for line in file.xreadlines():
def findnames(file, prefix=""): names = {} for line in file.readlines(): if line[0] == '!': continue fields = line.split() name, tag = fields[0], fields[-1] if tag == 'd' and name.endswith('_H'): continue if name.startswith(prefix): names[name] = tag return names
ea4d2c0241f3f32a7ff0fdc0b1b5c8e4bb58e445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ea4d2c0241f3f32a7ff0fdc0b1b5c8e4bb58e445/undoc_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1973, 12, 768, 16, 1633, 1546, 6, 4672, 1257, 273, 2618, 364, 980, 316, 585, 18, 92, 896, 3548, 13332, 309, 980, 63, 20, 65, 422, 11817, 4278, 1324, 1466, 273, 980, 18, 4939, 1435, 508, 16, 1047, 273, 1466, 63, 20, 6487, 1466, 18919, 21, 65, 309, 1047, 422, 296, 72, 11, 471, 508, 18, 5839, 1918, 2668, 67, 44, 11, 4672, 1324, 309, 508, 18, 17514, 1918, 12, 3239, 4672, 1257, 63, 529, 65, 273, 1047, 327, 1257, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1973, 12, 768, 16, 1633, 1546, 6, 4672, 1257, 273, 2618, 364, 980, 316, 585, 18, 92, 896, 3548, 13332, 309, 980, 63, 20, 65, 422, 11817, 4278, 1324, 1466, 273, 980, 18, 4939, 1435, 508, 16, 1047, 273, 1466, 63, 20, 6487, 1466, 18919, 21, 65, 309, 1047, 422, 296, 72, 11, 471, 508, 18, 5839, 1918, 2668, 67, 44, 11, 4672, 1324, 309, 508, 18, 17514, 1918, 12, 3239, 4672, 1257, 63, 529, 65, 273, 1047, 327, 1257, 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 ]
self.hash[key] = value return self.hash[key]
self[key] = value return self[key]
def setdefault(self, key, value=None): """Returns self[key] if it exists, otherwise returns value and sets self[key]=value.""" if not self.hash.has_key(key): self.hash[key] = value return self.hash[key]
6e06f58420fbbb6b8fd5de143e018caac5f6d14a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/6e06f58420fbbb6b8fd5de143e018caac5f6d14a/hashlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8745, 12, 2890, 16, 498, 16, 460, 33, 7036, 4672, 3536, 1356, 365, 63, 856, 65, 309, 518, 1704, 16, 3541, 1135, 460, 471, 1678, 365, 63, 856, 65, 33, 1132, 12123, 309, 486, 365, 18, 2816, 18, 5332, 67, 856, 12, 856, 4672, 365, 18, 2816, 63, 856, 65, 273, 460, 327, 365, 18, 2816, 63, 856, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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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 2816, 63, 856, 65, 273, 460, 327, 365, 18, 2816, 63, 856, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
plaintext_to_latex('%s'%doc.canonical_name))
plaintext_to_latex('%s'%self._base_name(doc)))
def base_tree(self, doc, width=None, linespec=None): if width is None: width = self._find_tree_width(doc)+2 linespec = [] s = ('&'*(width-4)+'\\multicolumn{2}{l}{\\textbf{%s}}\n' % plaintext_to_latex('%s'%doc.canonical_name)) s += '\\end{tabular}\n\n' top = 1 else: s = self._base_tree_line(doc, width, linespec) top = 0 if isinstance(doc, ClassDoc): for i in range(len(doc.bases)-1, -1, -1): base = doc.bases[i] spec = (i > 0) s = self.base_tree(base, width, [spec]+linespec) + s
7eb8d92b220e636a569fb3d61619e60c3de49ede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7eb8d92b220e636a569fb3d61619e60c3de49ede/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1026, 67, 3413, 12, 2890, 16, 997, 16, 1835, 33, 7036, 16, 2362, 705, 33, 7036, 4672, 309, 1835, 353, 599, 30, 1835, 273, 365, 6315, 4720, 67, 3413, 67, 2819, 12, 2434, 27921, 22, 2362, 705, 273, 5378, 272, 273, 7707, 26045, 21556, 2819, 17, 24, 13, 6797, 1695, 5421, 12463, 755, 95, 22, 8637, 80, 8637, 1695, 955, 17156, 95, 9, 87, 97, 6280, 82, 11, 738, 11917, 67, 869, 67, 26264, 29909, 87, 11, 9, 2890, 6315, 1969, 67, 529, 12, 2434, 20349, 272, 1011, 3718, 409, 95, 7032, 2490, 6280, 82, 64, 82, 11, 1760, 273, 404, 469, 30, 272, 273, 365, 6315, 1969, 67, 3413, 67, 1369, 12, 2434, 16, 1835, 16, 2362, 705, 13, 1760, 273, 374, 225, 309, 1549, 12, 2434, 16, 27785, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2434, 18, 18602, 24950, 21, 16, 300, 21, 16, 300, 21, 4672, 1026, 273, 997, 18, 18602, 63, 77, 65, 857, 273, 261, 77, 405, 374, 13, 272, 273, 365, 18, 1969, 67, 3413, 12, 1969, 16, 1835, 16, 306, 2793, 3737, 3548, 705, 13, 397, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1026, 67, 3413, 12, 2890, 16, 997, 16, 1835, 33, 7036, 16, 2362, 705, 33, 7036, 4672, 309, 1835, 353, 599, 30, 1835, 273, 365, 6315, 4720, 67, 3413, 67, 2819, 12, 2434, 27921, 22, 2362, 705, 273, 5378, 272, 273, 7707, 26045, 21556, 2819, 17, 24, 13, 6797, 1695, 5421, 12463, 755, 95, 22, 8637, 80, 8637, 1695, 955, 17156, 95, 9, 87, 97, 6280, 82, 11, 738, 11917, 67, 869, 67, 26264, 29909, 87, 11, 9, 2890, 6315, 1969, 67, 529, 12, 2434, 20349, 272, 1011, 3718, 409, 95, 7032, 2490, 6280, 82, 64, 82, 11, 1760, 273, 404, 469, 30, 272, 273, 365, 6315, 1969, 67, 3413, 67, 1369, 12, 2434, 16, 1835, 16, 2362, 2 ]
keep_these_nodes : sequence
nodes : sequence
def getSubnet(net,nodes): """Get induced subgraph. Parameters ---------- net: pynet.Net, pynet.SymmNet or pynet.SymmFullNet The original network. keep_these_nodes : sequence The nodes that span the induces subgraph. Return ------ subnet : type(net) The induced subgraph that contains only nodes given in `keep_these_nodes` and the edges between those nodes that are present in `net`. Node properties etc are left untouched. """ # Different schemes are required for FullNets and Nets. # For Nets, vertex names are kept. # For FullNets, rows are removed from the matrix so vertex # labels change. This has to be taken into account when # copying node properties from the original to the filtered matrix. if (isinstance(net,pynet.SymmFullNet)): newnet = pynet.SymmFullNet(len(nodes)) # First make a dict such keys=keep_these_nodes, # values=0...keep_these_nodes this dict maps the original row # indices to a smaller number of row indices nodedict={} for i,node in enumerate(nodes): nodedict[node]=i # Then go through the list of edges and build new matrix by # looping through edges and add each for n_i, n_j, w_ij in net.edges: if (n_i in nodes) and (n_j in nodes): newnet[nodedict[n_i]][nodedict[n_j]] = w_ij # ----- handling node properties -------------- if hasattr(net,'nodeProperty'): # First copy the list of properties, if any. for node_property in net.nodeProperty: netext.addNodeProperty(newnet, node_property) # Then copy properties of all nodes in `keep_these_nodes`. for node in nodes: for np in newnet.nodeProperty: newnet.nodeProperty[np][nodedict[node]] = net.nodeProperty[np][node] elif isinstance(net, (pynet.Net, pynet.SymmNet)): # Handle both directed and undirected networks. newnet = type(net)() # Initialize to same type as `net`. degsum=0 for node in nodes: degsum+=net[node].deg() if degsum>=len(nodes)*(len(nodes)-1)/2: othernodes=set(nodes) for node in nodes: if net.isSymmetric(): othernodes.remove(node) for othernode in othernodes: if net[node,othernode]!=0: newnet[node,othernode]=net[node,othernode] else: for node in nodes: for neigh in net[node]: if neigh in nodes: newnet[node,neigh]=net[node,neigh] netext.copyNodeProperties(net, newnet) return newnet
afd1359eb0add8cd17345f35beb894e86d866544 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/afd1359eb0add8cd17345f35beb894e86d866544/transforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7040, 2758, 12, 2758, 16, 4690, 4672, 3536, 967, 1547, 26372, 21469, 18, 225, 7012, 12181, 2901, 30, 293, 878, 278, 18, 7308, 16, 293, 878, 278, 18, 11901, 81, 7308, 578, 293, 878, 278, 18, 11901, 81, 5080, 7308, 1021, 2282, 2483, 18, 2199, 294, 3102, 1021, 2199, 716, 4548, 326, 1547, 89, 764, 21469, 18, 225, 2000, 31913, 8821, 294, 618, 12, 2758, 13, 1021, 1547, 26372, 21469, 716, 1914, 1338, 2199, 864, 316, 1375, 10102, 67, 451, 3392, 67, 4690, 68, 471, 326, 5231, 3086, 5348, 2199, 716, 854, 3430, 316, 1375, 2758, 8338, 2029, 1790, 5527, 854, 2002, 640, 869, 19370, 18, 3536, 225, 468, 21104, 3518, 20436, 854, 1931, 364, 11692, 50, 2413, 471, 423, 2413, 18, 468, 2457, 423, 2413, 16, 5253, 1257, 854, 16555, 18, 468, 2457, 11692, 50, 2413, 16, 2595, 854, 3723, 628, 326, 3148, 1427, 5253, 468, 3249, 2549, 18, 1220, 711, 358, 506, 9830, 1368, 2236, 1347, 468, 8933, 756, 1790, 628, 326, 2282, 358, 326, 5105, 3148, 18, 225, 309, 261, 291, 1336, 12, 2758, 16, 84, 878, 278, 18, 11901, 81, 5080, 7308, 3719, 30, 394, 2758, 273, 293, 878, 278, 18, 11901, 81, 5080, 7308, 12, 1897, 12, 4690, 3719, 225, 468, 5783, 1221, 279, 2065, 4123, 1311, 33, 10102, 67, 451, 3392, 67, 4690, 16, 468, 924, 33, 20, 2777, 10102, 67, 451, 3392, 67, 4690, 333, 2065, 7565, 326, 2282, 1027, 468, 4295, 358, 279, 10648, 1300, 434, 1027, 4295, 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, 7040, 2758, 12, 2758, 16, 4690, 4672, 3536, 967, 1547, 26372, 21469, 18, 225, 7012, 12181, 2901, 30, 293, 878, 278, 18, 7308, 16, 293, 878, 278, 18, 11901, 81, 7308, 578, 293, 878, 278, 18, 11901, 81, 5080, 7308, 1021, 2282, 2483, 18, 2199, 294, 3102, 1021, 2199, 716, 4548, 326, 1547, 89, 764, 21469, 18, 225, 2000, 31913, 8821, 294, 618, 12, 2758, 13, 1021, 1547, 26372, 21469, 716, 1914, 1338, 2199, 864, 316, 1375, 10102, 67, 451, 3392, 67, 4690, 68, 471, 326, 5231, 3086, 5348, 2199, 716, 854, 3430, 316, 1375, 2758, 8338, 2029, 1790, 5527, 854, 2002, 640, 869, 19370, 18, 3536, 225, 468, 21104, 3518, 20436, 854, 1931, 364, 11692, 50, 2413, 2 ]
class Test: """ Test class """ def run( self, local=0, flavour='blastp' ): """ run function test @param local: transfer local variables to global and perform other tasks only when run locally @type local: 1|0 @param flavour: flavour of blast to test, blastp for localBlast OR blastpgp for localPSIBlast (default: blastp) @type flavour: str @return: 1 @rtype: int """
import Biskit.test as BT class TestBase(BT.BiskitTest): """Prepare all Test cases (without providing any itself)""" def prepareOutput(self, ident): """Set up an output folder for a blast run and point self.outfolder and log files to the right location """
def writeClusteredBlastResult( self, allFile, clustFile, selection ): """ Reads the blast.out file and keeps only centers. @param allFile: all blast results @type allFile: file @param clustFile: output file name @type clustFile: str @param selection: write only sequences in list @type selection: list """ f = open( clustFile, 'w' )
ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/ac3cf0bdca86ff1a95d9adc87b65595c562e4d2b/SequenceSearcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3629, 329, 38, 2722, 1253, 12, 365, 16, 777, 812, 16, 927, 641, 812, 16, 4421, 262, 30, 3536, 29185, 326, 19047, 18, 659, 585, 471, 20948, 1338, 17723, 18, 225, 632, 891, 777, 812, 30, 777, 19047, 1686, 632, 723, 225, 777, 812, 30, 585, 632, 891, 927, 641, 812, 30, 876, 585, 508, 632, 723, 225, 927, 641, 812, 30, 609, 632, 891, 4421, 30, 1045, 1338, 8463, 316, 666, 632, 723, 225, 4421, 30, 666, 3536, 284, 273, 1696, 12, 927, 641, 812, 16, 296, 91, 11, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 3629, 329, 38, 2722, 1253, 12, 365, 16, 777, 812, 16, 927, 641, 812, 16, 4421, 262, 30, 3536, 29185, 326, 19047, 18, 659, 585, 471, 20948, 1338, 17723, 18, 225, 632, 891, 777, 812, 30, 777, 19047, 1686, 632, 723, 225, 777, 812, 30, 585, 632, 891, 927, 641, 812, 30, 876, 585, 508, 632, 723, 225, 927, 641, 812, 30, 609, 632, 891, 4421, 30, 1045, 1338, 8463, 316, 666, 632, 723, 225, 4421, 30, 666, 3536, 284, 273, 1696, 12, 927, 641, 812, 16, 296, 91, 11, 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 ]
reactor.callWhenRunning(CoverGetter,"cover.jpg",aws_key,callback=(got_it, ("a", 1), {'test':1}),asin='B000NJLNPO') reactor.callWhenRunning(CoverGetter,"cover.png",aws_key,callback=(got_it, {'test':2}),artist='Beyonce',title="B'Day [Deluxe]") reactor.callWhenRunning(CoverGetter,"cover2.jpg",aws_key,callback=(got_it, {'herby':12}),artist=u'Herbert Grönemeyer',title='12')
aws_key = '1XHSE4FQJ0RK0X3S9WR2' reactor.callWhenRunning(CoverGetter,"cover.jpg",aws_key, callback=(got_it, ("a", 1), {'test':1}),asin='B000NJLNPO') reactor.callWhenRunning(CoverGetter,"cover.png",aws_key, callback=(got_it, {'test':2}),artist='Beyonce',title="B'Day [Deluxe]") reactor.callWhenRunning(CoverGetter,"cover2.jpg",aws_key, callback=(got_it, {'herby':12}),artist=u'Herbert Grönemeyer',title='12')
def got_it2(filename, **kwargs): print "Mylady, it is an image and its name is", filename, args, kwargs
54a4f7f3e20b1ce78e86f8022714fea950bff832 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/54a4f7f3e20b1ce78e86f8022714fea950bff832/covers_by_amazon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 67, 305, 22, 12, 3459, 16, 2826, 4333, 4672, 1172, 315, 12062, 80, 361, 93, 16, 518, 353, 392, 1316, 471, 2097, 508, 353, 3113, 1544, 16, 833, 16, 1205, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 67, 305, 22, 12, 3459, 16, 2826, 4333, 4672, 1172, 315, 12062, 80, 361, 93, 16, 518, 353, 392, 1316, 471, 2097, 508, 353, 3113, 1544, 16, 833, 16, 1205, 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 ]
offsetts += fn1ts-lastts
offsetts += fn1ts-lastts if offset else 0
def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action="store", help="Look for a trim() statement only on lines matching LABEL, interpreted as a regular expression. Default: case insensitive trim", dest="label") p.add_option('--input', '-i', action="store", help='Audio file to be cut', dest="input") p.add_option('--output', '-o', action="store", help='Cut audio from MKVMerge', dest="output") p.add_option('--fps', '-f', action="store", help='Frames per second (for cfr input)', dest="fps") p.add_option('--ofps', action="store", help='Output frames per second', dest="ofps") p.add_option('--timecodes', '-t', action="store", help='Timecodes file from the vfr video (v1 needs tcConv)', dest="timecodes") p.add_option('--chapters', '-c', action="store", help='Chapters file [.%s/.txt]' % "/.".join(exts.keys()), dest="chapters") p.add_option('--qpfile', '-q', action="store", help='QPFile for x264 (frame-accurate only if used with final framecount)', dest="qpfile") p.add_option('--verbose', '-v', action="store_true", help='Verbose', dest="verbose") p.add_option('--merge', '-m', action="store_true", help='Merge cut files', dest="merge") p.add_option('--remove', '-r', action="store_true", help='Remove cut files', dest="remove") p.add_option('--frames', action="store", help='Number of frames for v1 conversion', dest="frames") p.add_option('--test', action="store_true", help="Test mode (do not create new files)", dest="test") (o, a) = p.parse_args() if len(a) < 1: p.error("No avisynth script specified.") elif not o.timecodes and os.path.isfile(a[0] + ".tc.txt"): o.timecodes = a[0] + ".tc.txt" elif o.timecodes and o.fps: p.error("Can't use vfr input AND cfr input") elif o.timecodes and o.ofps: p.error("Can't use ofps with vfr input") elif o.timecodes and os.path.isfile(o.timecodes): o.timecodes = o.timecodes else: o.timecodes = o.fps #Determine chapter type if o.chapters: cExt = re.search("\.(%s)" % "|".join(exts.keys()),o.chapters,re.I) chapType = exts[cExt.group(1).lower()] if cExt else "OGM" else: chapType = '' if not o.output and o.input: o.output = '%s.cut.mka' % re.search("(.*)\.\w*$",o.input).group(1) quiet = '' if o.verbose else '-q' audio = [] Trims = [] with open(a[0], "r") as avsfile: # use only the first non-commented line with trims avs = avsfile.readlines() findTrims = re.compile("(?<!#)[^#]*\s*\.?\s*%s\((\d+)\s*,\s*(\d+)\)%s" % (o.label if o.label else "trim","" if o.label else "(?i)")) trimre = re.compile("(?<!#)trim\((\d+)\s*,\s*(\d+)\)(?i)") for line in avs: if findTrims.match(line): Trims = trimre.findall(line) break if len(Trims) < 1: sys.exit("Error: Avisynth script has no uncommented trims") # Look for AssumeFPS if not o.timecodes: for line in avs: if fpsre.search(line): o.timecodes = '/'.join([i for i in fpsre.search(line).groups()]) if o.verbose: print("\nFound AssumeFPS, setting CFR (%s)" % o.timecodes) break if not o.timecodes: o.timecodes = defaultFps if o.verbose: status = "Avisynth file: %s\n" % a[0] status += "Label: %s\n" % o.label if o.label else "" status += "Audio file: %s\n" % o.input if o.input else "" status += "Cut Audio file: %s\n" % o.output if o.output else "" status += "Timecodes/FPS: %s%s\n" % (o.timecodes," to "+o.ofps if o.ofps else "") if o.ofps != o.timecodes else "" status += "Chapters file: %s%s\n" % o.chapters if o.chapters else "" status += "QP file: %s\n" % o.qpfile if o.qpfile else "" status += "\n" status += "Merge/Rem files: %s/%s\n" % (o.merge,o.remove) if o.merge or o.remove else "" status += "Verbose: %s\n" % o.verbose if o.verbose else "" status += "Test Mode: %s\n" % o.test if o.test else "" print(status) print('In trims: %s' % ', '.join(['(%s,%s)' % (i[0],i[1]) for i in Trims])) # trims' offset calculation Trims2 = [] Trims2ts = [] tcType = determineFormat(o.timecodes) tc = o.timecodes if tcType == 2: nTrims = int(o.frames) if o.frames else int(Trims[-1][1])+2 if os.path.isfile(tc+"v2.txt") == False: tcConv = call('"%s" "%s" "%s" %d' % (tcConv, tc, tc+"v2.txt", nTrims)) if tcConv > 0: sys.exit("Failed to execute tcConv: %d; Please put it in your path" % tcConv) o.timecodes = tc+"v2.txt" for i in range(len(Trims)): fn1 = int(Trims[i][0]) # first frame fn1ts = Ts(fn1,tc,tcType)[0] # first frame timestamp fn2 = int(Trims[i][1]) # last frame fn2ts = Ts(fn2,tc,tcType)[0] # last frame timestamp fn2tsaud = Ts(fn2+1,tc,tcType) # last frame timestamp for audio if i != 0: # if it's not the first trim last = int(Trims[i-1][1])+1 lastts = Ts(last,tc,tcType)[0] offset += fn1-last offsetts += fn1ts-lastts elif fn1 > 0: # if the first trim doesn't start at 0 offset = fn1 offsetts = fn1ts else: offset = 0 offsetts = 0 # apply the offset to the trims fn1 -= offset fn2 -= offset fn1ts -= offsetts fn2ts -= offsetts # convert fps if --ofps if o.ofps and o.timecodes != o.ofps: fn1 = unTs(fn1ts,o.ofps) fn2 = unTs(fn2ts,o.ofps) # add trims and their timestamps to list Trims2.append([fn1,fn2]) Trims2ts.append([fn1ts,fn2ts]) # make list with timecodes to cut audio audio.append(formatTime(fn1ts,tcType)) if len(fn2tsaud) == 1: audio.append(formatTime(fn2tsaud[0],tcType)) if o.verbose: print('Out trims: %s\n' % ', '.join(['(%s,%s)' % (i[0],i[1]) for i in Trims2])) if o.verbose: print('Out timecodes: %s\n' % ', '.join(['(%s,%s)' % (formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType)) for i in range(len(Trims2ts))])) # make qpfile if o.qpfile: if not o.test: with open(o.qpfile, "w") as qpf: for trim in Trims2[1:]: qpf.write('%s K\n' % trim[0]) if o.verbose: print('Writing keyframes to %s\n' % o.qpfile) # make audio cuts if o.input: delayRe = re.search('DELAY ([-]?\d+)',o.input) delay = delayRe.group(1) if delayRe else '0' if audio[0] == "00:00:00.000": includefirst = True audio = audio[1:] else: includefirst = False cuttimes = ','.join(audio) cutCmd = '"%s" -o "%s" --sync 0:%s "%s" --split timecodes:%s %s' % (mkvmerge, o.output + '.split.mka', delay, o.input, cuttimes, quiet) if o.verbose: print('Cutting: %s\n' % cutCmd) if not o.test: cutExec = call(cutCmd) if cutExec == 1: print("Mkvmerge exited with warnings: %d" % cutExec) elif cutExec == 2: sys.exit("Failed to execute mkvmerge: %d" % cutExec) if o.merge: merge = [] for i in range(1,len(audio)+2): if (includefirst == True and i % 2 != 0) or (includefirst == False and i % 2 == 0): merge.append('"%s.split-%03d.mka"' % (o.output, i)) mergeCmd = '"%s" -o "%s" %s %s' % (mkvmerge,o.output, ' +'.join(merge), quiet) if o.verbose: print('\nMerging: %s\n' % ', '.join(merge)) if not o.test: print(mergeCmd) mergeExec = call(mergeCmd) if mergeExec == 1: print("Mkvmerge exited with warnings: %d" % mergeExec) elif mergeExec == 2: sys.exit("Failed to execute mkvmerge: %d" % mergeExec) if o.remove: remove = ['%s.split-%03d.mka' % (o.output, i) for i in range(1,len(audio)+2)] if o.verbose: print('\nDeleting: %s\n' % ', '.join(remove)) if not o.test: [os.unlink(i) if os.path.exists(i) else True for i in remove] # make offseted avs if chapparseExists and len(a) > 1: fNum = [i[0] for i in Trims2] set = {'avs':'"'+a[1]+'"','input':'','resize':''} writeAvisynth(set,fNum) # write chapters if chapType: if chapType == 'MKV': EditionUID = random.randint(100000,1000000) matroskaXmlHeader = '<?xml version="1.0" encoding="UTF-8"?>\n<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->\n<Chapters>' matroskaXmlEditionHeader = """ <EditionEntry> <EditionFlagHidden>{}</EditionFlagHidden> <EditionFlagDefault>{}</EditionFlagDefault> <EditionFlagOrdered>{}</EditionFlagOrdered> <EditionUID>{}</EditionUID>
71f96ef73d9915935425b67dfff621761ff6819f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14863/71f96ef73d9915935425b67dfff621761ff6819f/vfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, 261, 18597, 598, 276, 4840, 471, 331, 4840, 810, 13, 2187, 1177, 2218, 58, 9981, 1680, 2487, 29525, 374, 18, 27, 18, 21, 2187, 4084, 28713, 14654, 306, 2116, 65, 14568, 18, 842, 87, 8978, 18, 2139, 2932, 306, 26050, 18, 842, 87, 4279, 309, 462, 438, 2670, 4002, 469, 1408, 3719, 293, 18, 1289, 67, 3482, 2668, 413, 1925, 2187, 2400, 80, 2187, 1301, 1546, 2233, 3113, 2809, 1546, 9794, 364, 279, 2209, 1435, 3021, 1338, 603, 2362, 3607, 18210, 16, 19898, 487, 279, 6736, 2652, 18, 2989, 30, 648, 17904, 2209, 3113, 1570, 1546, 1925, 7923, 293, 18, 1289, 67, 3482, 2668, 413, 2630, 2187, 2400, 77, 2187, 1301, 1546, 2233, 3113, 2809, 2218, 12719, 585, 358, 506, 6391, 2187, 1570, 1546, 2630, 7923, 293, 18, 1289, 67, 3482, 2668, 413, 2844, 2187, 2400, 83, 2187, 1301, 1546, 2233, 3113, 2809, 2218, 15812, 7447, 628, 490, 16945, 6786, 2187, 1570, 1546, 2844, 7923, 293, 18, 1289, 67, 3482, 2668, 413, 74, 1121, 2187, 2400, 74, 2187, 1301, 1546, 2233, 3113, 2809, 2218, 15162, 1534, 2205, 261, 1884, 276, 4840, 810, 13, 2187, 1570, 1546, 74, 1121, 7923, 293, 18, 1289, 67, 3482, 2668, 413, 792, 1121, 2187, 1301, 1546, 2233, 3113, 2809, 2218, 1447, 7793, 1534, 2205, 2187, 1570, 1546, 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, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, 261, 18597, 598, 276, 4840, 471, 331, 4840, 810, 13, 2187, 1177, 2218, 58, 9981, 1680, 2487, 29525, 374, 18, 27, 18, 21, 2187, 4084, 28713, 14654, 306, 2116, 65, 14568, 18, 842, 87, 8978, 18, 2139, 2932, 306, 26050, 18, 842, 87, 4279, 309, 462, 438, 2670, 4002, 469, 1408, 3719, 293, 18, 1289, 67, 3482, 2668, 413, 1925, 2187, 2400, 80, 2187, 1301, 1546, 2233, 3113, 2809, 1546, 9794, 364, 279, 2209, 1435, 3021, 1338, 603, 2362, 3607, 18210, 16, 19898, 487, 2 ]
class Calendar: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Calendar(self) def roll(*args, **kwargs): val = apply(QuantLibc.Calendar_roll,args, kwargs) if val: val = DatePtr(val) ; val.thisown = 1 return val def advance(*args, **kwargs): val = apply(QuantLibc.Calendar_advance,args, kwargs) if val: val = DatePtr(val) ; val.thisown = 1 return val def __repr__(self): return "<C Calendar instance at %s>" % (self.this,) class CalendarPtr(Calendar): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = Calendar Calendar.isBusinessDay = new.instancemethod(QuantLibc.Calendar_isBusinessDay, None, Calendar) Calendar.isHoliday = new.instancemethod(QuantLibc.Calendar_isHoliday, None, Calendar) Calendar.__str__ = new.instancemethod(QuantLibc.Calendar___str__, None, Calendar) Calendar.__cmp__ = new.instancemethod(QuantLibc.Calendar___cmp__, None, Calendar) Calendar.__nonzero__ = new.instancemethod(QuantLibc.Calendar___nonzero__, None, Calendar) class Currency: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Currency(self) def settlementCalendar(*args, **kwargs): val = apply(QuantLibc.Currency_settlementCalendar,args, kwargs) if val: val = CalendarPtr(val) ; val.thisown = 1 return val def settlementDate(*args, **kwargs): val = apply(QuantLibc.Currency_settlementDate,args, kwargs) if val: val = DatePtr(val) ; val.thisown = 1 return val def __repr__(self): return "<C Currency instance at %s>" % (self.this,) class CurrencyPtr(Currency): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = Currency Currency.settlementDays = new.instancemethod(QuantLibc.Currency_settlementDays, None, Currency) Currency.__str__ = new.instancemethod(QuantLibc.Currency___str__, None, Currency) Currency.__cmp__ = new.instancemethod(QuantLibc.Currency___cmp__, None, Currency) Currency.__nonzero__ = new.instancemethod(QuantLibc.Currency___nonzero__, None, Currency) class DayCounter: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_DayCounter(self) def __repr__(self): return "<C DayCounter instance at %s>" % (self.this,) class DayCounterPtr(DayCounter): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = DayCounter DayCounter.dayCount = new.instancemethod(QuantLibc.DayCounter_dayCount, None, DayCounter) DayCounter.yearFraction = new.instancemethod(QuantLibc.DayCounter_yearFraction, None, DayCounter) DayCounter.__str__ = new.instancemethod(QuantLibc.DayCounter___str__, None, DayCounter) DayCounter.__cmp__ = new.instancemethod(QuantLibc.DayCounter___cmp__, None, DayCounter) DayCounter.__nonzero__ = new.instancemethod(QuantLibc.DayCounter___nonzero__, None, DayCounter) class NormalDistribution: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_NormalDistribution,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_NormalDistribution(self) def __repr__(self): return "<C NormalDistribution instance at %s>" % (self.this,) class NormalDistributionPtr(NormalDistribution): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = NormalDistribution NormalDistribution.derivative = new.instancemethod(QuantLibc.NormalDistribution_derivative, None, NormalDistribution) NormalDistribution.__call__ = new.instancemethod(QuantLibc.NormalDistribution___call__, None, NormalDistribution) class CumulativeNormalDistribution: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_CumulativeNormalDistribution,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_CumulativeNormalDistribution(self) def __repr__(self): return "<C CumulativeNormalDistribution instance at %s>" % (self.this,) class CumulativeNormalDistributionPtr(CumulativeNormalDistribution): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = CumulativeNormalDistribution CumulativeNormalDistribution.derivative = new.instancemethod(QuantLibc.CumulativeNormalDistribution_derivative, None, CumulativeNormalDistribution) CumulativeNormalDistribution.__call__ = new.instancemethod(QuantLibc.CumulativeNormalDistribution___call__, None, CumulativeNormalDistribution) class InvCumulativeNormalDistribution: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_InvCumulativeNormalDistribution,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_InvCumulativeNormalDistribution(self) def __repr__(self): return "<C InvCumulativeNormalDistribution instance at %s>" % (self.this,) class InvCumulativeNormalDistributionPtr(InvCumulativeNormalDistribution): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = InvCumulativeNormalDistribution InvCumulativeNormalDistribution.__call__ = new.instancemethod(QuantLibc.InvCumulativeNormalDistribution___call__, None, InvCumulativeNormalDistribution)
class Array: def __init__(self,*args,**kwargs): self.this = apply(QuantLibc.new_Array,args,kwargs) self.thisown = 1 def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_Array(self) def __getslice__(*args, **kwargs): val = apply(QuantLibc.Array___getslice__,args, kwargs) if val: val = ArrayPtr(val) ; val.thisown = 1 return val def __repr__(self): return "<C Array instance at %s>" % (self.this,) class ArrayPtr(Array): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = Array Array.__len__ = new.instancemethod(QuantLibc.Array___len__, None, Array) Array.__getitem__ = new.instancemethod(QuantLibc.Array___getitem__, None, Array) Array.__setitem__ = new.instancemethod(QuantLibc.Array___setitem__, None, Array) Array.__setslice__ = new.instancemethod(QuantLibc.Array___setslice__, None, Array) Array.__str__ = new.instancemethod(QuantLibc.Array___str__, None, Array) Array.__nonzero__ = new.instancemethod(QuantLibc.Array___nonzero__, None, Array) class ArrayLexicographicalView: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_ArrayLexicographicalView(self) def __getitem__(*args, **kwargs): val = apply(QuantLibc.ArrayLexicographicalView___getitem__,args, kwargs) if val: val = ArrayLexicographicalViewColumnPtr(val) ; val.thisown = 1 return val def __repr__(self): return "<C ArrayLexicographicalView instance at %s>" % (self.this,) class ArrayLexicographicalViewPtr(ArrayLexicographicalView): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = ArrayLexicographicalView ArrayLexicographicalView.xSize = new.instancemethod(QuantLibc.ArrayLexicographicalView_xSize, None, ArrayLexicographicalView) ArrayLexicographicalView.ySize = new.instancemethod(QuantLibc.ArrayLexicographicalView_ySize, None, ArrayLexicographicalView) ArrayLexicographicalView.__str__ = new.instancemethod(QuantLibc.ArrayLexicographicalView___str__, None, ArrayLexicographicalView) class ArrayLexicographicalViewColumn: def __init__(self,this): self.this = this def __del__(self,QuantLibc=QuantLibc): if self.thisown == 1 : QuantLibc.delete_ArrayLexicographicalViewColumn(self) def __repr__(self): return "<C ArrayLexicographicalViewColumn instance at %s>" % (self.this,) class ArrayLexicographicalViewColumnPtr(ArrayLexicographicalViewColumn): def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = ArrayLexicographicalViewColumn ArrayLexicographicalViewColumn.__getitem__ = new.instancemethod(QuantLibc.ArrayLexicographicalViewColumn___getitem__, None, ArrayLexicographicalViewColumn) ArrayLexicographicalViewColumn.__setitem__ = new.instancemethod(QuantLibc.ArrayLexicographicalViewColumn___setitem__, None, ArrayLexicographicalViewColumn)
def __init__(self,this): self.this = this self.thisown = 0 self.__class__ = DateVector
b5e1e82352248dd7285179b081237a1e97c684be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/885/b5e1e82352248dd7285179b081237a1e97c684be/QuantLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2211, 4672, 365, 18, 2211, 273, 333, 365, 18, 2211, 995, 273, 374, 365, 16186, 1106, 972, 273, 2167, 5018, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2211, 4672, 365, 18, 2211, 273, 333, 365, 18, 2211, 995, 273, 374, 365, 16186, 1106, 972, 273, 2167, 5018, 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 ]
'type' : 'document'}) return res
'type' : 'document'}) return res
def create(self, cr, uid, values, *args, **kwargs): res = super(document_file, self).create(cr, uid, values, *args, **kwargs) cr.commit() document = self.browse(cr, uid, res) if document.res_model == 'project.project' and document.res_id: self.pool.get('project.project')._log_event(cr, uid, document.res_id, { 'res_id' : document.id, 'name' : document.name, 'description' : document.description, 'user_id': uid, 'attach' : [(document.datas_fname, document.datas)], 'action' : 'create', 'type' : 'document'}) return res
0944b6859f82afb44e3d9bec8c41e264c9e0a66e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0944b6859f82afb44e3d9bec8c41e264c9e0a66e/project_event.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 924, 16, 380, 1968, 16, 2826, 4333, 4672, 400, 273, 2240, 12, 5457, 67, 768, 16, 365, 2934, 2640, 12, 3353, 16, 4555, 16, 924, 16, 380, 1968, 16, 2826, 4333, 13, 4422, 18, 7371, 1435, 1668, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 400, 13, 309, 1668, 18, 455, 67, 2284, 422, 296, 4406, 18, 4406, 11, 471, 1668, 18, 455, 67, 350, 30, 365, 18, 6011, 18, 588, 2668, 4406, 18, 4406, 16063, 67, 1330, 67, 2575, 12, 3353, 16, 4555, 16, 1668, 18, 455, 67, 350, 16, 288, 296, 455, 67, 350, 11, 294, 1668, 18, 350, 16, 296, 529, 11, 294, 1668, 18, 529, 16, 296, 3384, 11, 294, 1668, 18, 3384, 16, 296, 1355, 67, 350, 4278, 4555, 16, 296, 7331, 11, 294, 306, 12, 5457, 18, 13178, 67, 12749, 16, 1668, 18, 13178, 13, 6487, 296, 1128, 11, 294, 296, 2640, 2187, 296, 723, 11, 294, 296, 5457, 11, 6792, 327, 400, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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380, 1968, 16, 2826, 4333, 4672, 400, 273, 2240, 12, 5457, 67, 768, 16, 365, 2934, 2640, 12, 3353, 16, 4555, 16, 924, 16, 380, 1968, 16, 2826, 4333, 13, 4422, 18, 7371, 1435, 1668, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, 400, 13, 309, 1668, 18, 455, 67, 2284, 422, 296, 4406, 18, 4406, 11, 471, 1668, 18, 455, 67, 350, 30, 365, 18, 6011, 18, 588, 2668, 4406, 18, 4406, 16063, 67, 1330, 67, 2575, 12, 3353, 16, 4555, 16, 1668, 18, 455, 67, 350, 16, 288, 296, 455, 67, 350, 11, 294, 1668, 18, 350, 16, 296, 529, 11, 294, 1668, 18, 529, 2 ]
property = self.property_to_string(prop_name, prop)
property = property_to_string(prop_name, prop)
def test_load(self): """Test loading a simple calendar.""" cal = self.cal1
4284d14984f2a4b3da93b77281110353f761aa67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/4284d14984f2a4b3da93b77281110353f761aa67/test_ical.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 945, 12, 2890, 4672, 3536, 4709, 7153, 279, 4143, 5686, 12123, 1443, 273, 365, 18, 771, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 945, 12, 2890, 4672, 3536, 4709, 7153, 279, 4143, 5686, 12123, 1443, 273, 365, 18, 771, 21, 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 ]
while 1:
while True:
def recolorize_main(self): next = "1.0" while 1: item = self.tag_nextrange("TODO", next) if not item: break head, tail = item self.tag_remove("SYNC", head, tail) item = self.tag_prevrange("SYNC", head) if item: head = item[1] else: head = "1.0"
273f22459c5052879287efc0c1575734822927da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/273f22459c5052879287efc0c1575734822927da/ColorDelegator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 3266, 554, 67, 5254, 12, 2890, 4672, 1024, 273, 315, 21, 18, 20, 6, 1323, 1053, 30, 761, 273, 365, 18, 2692, 67, 82, 14523, 726, 2932, 6241, 3113, 1024, 13, 309, 486, 761, 30, 898, 910, 16, 5798, 273, 761, 365, 18, 2692, 67, 4479, 2932, 25142, 3113, 910, 16, 5798, 13, 761, 273, 365, 18, 2692, 67, 10001, 3676, 2932, 25142, 3113, 910, 13, 309, 761, 30, 910, 273, 761, 63, 21, 65, 469, 30, 910, 273, 315, 21, 18, 20, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 3266, 554, 67, 5254, 12, 2890, 4672, 1024, 273, 315, 21, 18, 20, 6, 1323, 1053, 30, 761, 273, 365, 18, 2692, 67, 82, 14523, 726, 2932, 6241, 3113, 1024, 13, 309, 486, 761, 30, 898, 910, 16, 5798, 273, 761, 365, 18, 2692, 67, 4479, 2932, 25142, 3113, 910, 16, 5798, 13, 761, 273, 365, 18, 2692, 67, 10001, 3676, 2932, 25142, 3113, 910, 13, 309, 761, 30, 910, 273, 761, 63, 21, 65, 469, 30, 910, 273, 315, 21, 18, 20, 6, 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 ]
str += self._navbar('class', uid) str += self._public_private_link(uid)
str += self._navbar(uid, 1)
def _class_to_html(self, uid): """ @return: An HTML page describing the class identified by C{uid}. @rtype: C{string} @param uid: The unique identifier for the class that should be documented. @type uid: L{UID} """ # Get the module's documentation doc = self._docmap[uid] # Write the header & navigation bar. str = self._header(`uid`) str += self._navbar('class', uid) str += self._public_private_link(uid)
dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, 632, 891, 4555, 30, 1021, 3089, 2756, 364, 326, 667, 716, 1410, 506, 23051, 18, 632, 723, 4555, 30, 511, 95, 3060, 97, 3536, 468, 968, 326, 1605, 1807, 7323, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 225, 468, 2598, 326, 1446, 473, 10394, 4653, 18, 609, 273, 365, 6315, 3374, 12, 68, 1911, 24065, 609, 1011, 365, 6315, 11589, 3215, 2668, 1106, 2187, 4555, 13, 609, 1011, 365, 6315, 482, 67, 1152, 67, 1232, 12, 1911, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, 632, 891, 4555, 30, 1021, 3089, 2756, 364, 326, 667, 716, 1410, 506, 23051, 18, 632, 723, 4555, 30, 511, 95, 3060, 97, 3536, 468, 968, 326, 1605, 1807, 7323, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 225, 468, 2598, 326, 1446, 473, 10394, 4653, 18, 609, 273, 365, 6315, 3374, 12, 68, 1911, 24065, 609, 1011, 365, 6315, 11589, 3215, 2668, 1106, 2187, 4555, 13, 609, 1011, 365, 6315, 482, 67, 1152, 67, 1232, 12, 1911, 13, 2, -100, -100, -100 ]
if self.date_lst: self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND l.date IN %s " \ "GROUP BY l.partner_id", (tuple(self.account_ids), tuple(self.date_lst),)) a = self.cr.fetchone()[0] or 0.0 if self.cr.fetchone() != None: result_tmp = result_tmp + (a or 0.0) else: result_tmp = 0.0
self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND " + self.query + " " \ "GROUP BY l.partner_id", (tuple(self.account_ids), )) a = self.cr.fetchone()[0] or 0.0 if self.cr.fetchone() != None: result_tmp = result_tmp + (a or 0.0) else: result_tmp = 0.0
def _sum_scredit(self, data): if not self.ids: return 0.0 result_tmp = 0.0 a = 0.0 if self.date_lst: self.cr.execute( "SELECT CASE WHEN sum(debit) < sum(credit) " \ "THEN sum(credit) - sum(debit) " \ "ELSE 0 " \ "END " \ "FROM account_move_line AS l " \ "WHERE l.account_id IN %s" \ "AND l.date IN %s " \ "GROUP BY l.partner_id", (tuple(self.account_ids), tuple(self.date_lst),)) a = self.cr.fetchone()[0] or 0.0 if self.cr.fetchone() != None: result_tmp = result_tmp + (a or 0.0)
ac1584df430288117e384a231f5a84958ac74009 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ac1584df430288117e384a231f5a84958ac74009/partner_balance.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1364, 67, 1017, 10430, 12, 2890, 16, 501, 4672, 309, 486, 365, 18, 2232, 30, 327, 374, 18, 20, 563, 67, 5645, 273, 374, 18, 20, 279, 273, 374, 18, 20, 309, 365, 18, 712, 67, 16923, 30, 365, 18, 3353, 18, 8837, 12, 315, 4803, 18403, 29707, 2142, 12, 323, 3682, 13, 411, 2142, 12, 20688, 13, 315, 521, 315, 2455, 1157, 2142, 12, 20688, 13, 300, 2142, 12, 323, 3682, 13, 315, 521, 315, 2247, 1090, 374, 315, 521, 315, 4415, 315, 521, 315, 11249, 2236, 67, 8501, 67, 1369, 5355, 328, 315, 521, 315, 12299, 328, 18, 4631, 67, 350, 2120, 738, 87, 6, 521, 315, 4307, 328, 18, 712, 2120, 738, 87, 315, 521, 315, 8468, 6953, 328, 18, 31993, 67, 350, 3113, 261, 8052, 12, 2890, 18, 4631, 67, 2232, 3631, 3193, 12, 2890, 18, 712, 67, 16923, 3631, 3719, 279, 273, 365, 18, 3353, 18, 5754, 476, 1435, 63, 20, 65, 578, 374, 18, 20, 309, 365, 18, 3353, 18, 5754, 476, 1435, 480, 599, 30, 563, 67, 5645, 273, 563, 67, 5645, 397, 261, 69, 578, 374, 18, 20, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1364, 67, 1017, 10430, 12, 2890, 16, 501, 4672, 309, 486, 365, 18, 2232, 30, 327, 374, 18, 20, 563, 67, 5645, 273, 374, 18, 20, 279, 273, 374, 18, 20, 309, 365, 18, 712, 67, 16923, 30, 365, 18, 3353, 18, 8837, 12, 315, 4803, 18403, 29707, 2142, 12, 323, 3682, 13, 411, 2142, 12, 20688, 13, 315, 521, 315, 2455, 1157, 2142, 12, 20688, 13, 300, 2142, 12, 323, 3682, 13, 315, 521, 315, 2247, 1090, 374, 315, 521, 315, 4415, 315, 521, 315, 11249, 2236, 67, 8501, 67, 1369, 5355, 328, 315, 521, 315, 12299, 328, 18, 4631, 67, 350, 2120, 738, 87, 6, 521, 315, 4307, 328, 18, 712, 2120, 738, 87, 315, 2 ]
try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeError): self.theSession.printMessage( "'%s' is SyntaxError or TypeError\n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) num += 1
try: self.xList.append ( self.FullDataList[0][:,0] ) self.yList.append ( eval(yaxis, self.entry)[:,1] ) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) except (SyntaxError,TypeError): self.theSession.printMessage( "'%s' is SyntaxError or TypeError\n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num]) self.yList.append(['None']) num += 1
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)): self.xList.append(self.FullDataList[num][:,0]) self.yList.append(self.FullDataList[num][:,1])
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 24274, 63, 20, 65, 422, 1832, 30, 1342, 469, 30, 365, 18, 2725, 5080, 24274, 1435, 365, 18, 92, 682, 273, 5378, 365, 18, 93, 682, 273, 5378, 309, 365, 18, 92, 4890, 422, 599, 578, 365, 18, 92, 4890, 422, 296, 957, 4278, 309, 365, 18, 93, 4890, 422, 599, 30, 364, 818, 316, 1048, 12, 1897, 12, 2890, 18, 3328, 24274, 3719, 30, 365, 18, 92, 682, 18, 6923, 12, 2890, 18, 5080, 24274, 63, 2107, 6362, 30, 16, 20, 5717, 365, 18, 93, 682, 18, 6923, 12, 2890, 18, 5080, 24274, 63, 2107, 6362, 30, 16, 21, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 24274, 63, 20, 65, 422, 1832, 30, 1342, 469, 30, 365, 18, 2725, 5080, 24274, 1435, 365, 18, 92, 682, 273, 5378, 365, 18, 93, 682, 273, 5378, 309, 365, 18, 92, 4890, 422, 599, 578, 365, 18, 92, 4890, 422, 296, 957, 4278, 309, 365, 18, 93, 4890, 422, 599, 30, 364, 818, 316, 1048, 12, 1897, 12, 2890, 18, 3328, 24274, 3719, 30, 365, 18, 92, 682, 18, 6923, 12, 2890, 18, 5080, 24274, 63, 2107, 6362, 30, 16, 20, 5717, 2 ]
log.debug("Expander: %s" % self.expander)
def __init__(self, path, vcs = None): # Might be None, but that's okay, only subclasses use it self.vcs = vcs rabbitvcs.ui.GladeWidgetWrapper.__init__(self) self.path = path self.get_widget("file_expander_path").set_label(path) # Do a lazy evaluate for this self.file_info = None self.expander = self.get_widget() log.debug("Expander: %s" % self.expander) # There seems to be no easy way to connect to this in glade self.expander.connect("notify::expanded", self.on_expand)
bbd3829204236f9052a90cf180802c8552373b10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/bbd3829204236f9052a90cf180802c8552373b10/property_page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 20255, 273, 599, 4672, 225, 468, 490, 750, 506, 599, 16, 1496, 716, 1807, 21194, 16, 1338, 15320, 999, 518, 365, 18, 18982, 273, 20255, 225, 767, 70, 3682, 18982, 18, 4881, 18, 21308, 2486, 4609, 3611, 16186, 2738, 972, 12, 2890, 13, 365, 18, 803, 273, 589, 365, 18, 588, 67, 6587, 2932, 768, 67, 12320, 264, 67, 803, 20387, 542, 67, 1925, 12, 803, 13, 225, 468, 2256, 279, 7962, 5956, 364, 333, 365, 18, 768, 67, 1376, 273, 599, 225, 365, 18, 12320, 264, 273, 365, 18, 588, 67, 6587, 1435, 225, 468, 6149, 12001, 358, 506, 1158, 12779, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 20255, 273, 599, 4672, 225, 468, 490, 750, 506, 599, 16, 1496, 716, 1807, 21194, 16, 1338, 15320, 999, 518, 365, 18, 18982, 273, 20255, 225, 767, 70, 3682, 18982, 18, 4881, 18, 21308, 2486, 4609, 3611, 16186, 2738, 972, 12, 2890, 13, 365, 18, 803, 273, 589, 365, 18, 588, 67, 6587, 2932, 768, 67, 12320, 264, 67, 803, 20387, 542, 67, 1925, 12, 803, 13, 225, 468, 2256, 279, 7962, 5956, 364, 333, 365, 18, 768, 67, 1376, 273, 599, 225, 365, 18, 12320, 264, 273, 365, 18, 588, 67, 6587, 1435, 225, 468, 6149, 12001, 358, 506, 1158, 12779, 4031, 358, 3077, 358, 333, 316, 5118, 2486, 2 ]
- ``var`` - string (default: 'x') a variable
- ``var`` - string (default: 'x') a variable name
def minpoly(self,var='x'): """ Computes the minimal polynomial. INPUT: - ``var`` - string (default: 'x') a variable OUTPUT: polynomial in var - the minimal polynomial of the endomorphism. EXAMPLES: Compute the minimal polynomial, and check it :: sage: V=GF(7)^3 sage: H=V.Hom(V)([[0,1,2],[-1,0,3],[2,4,1]]) sage: H Free module morphism defined by the matrix [0 1 2] [6 0 3] [2 4 1] Domain: Vector space of dimension 3 over Finite Field of size 7 Codomain: Vector space of dimension 3 over Finite Field of size 7 sage: H.minpoly() x^3 + 6*x^2 + 6*x + 1 sage: H^3+6*H^2+6*H+1 Free module morphism defined by the matrix [0 0 0] [0 0 0] [0 0 0] Domain: Vector space of dimension 3 over Finite Field of size 7 Codomain: Vector space of dimension 3 over Finite Field of size 7
894cddf7d59c87fdda637de94cd68aea251b5e24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/894cddf7d59c87fdda637de94cd68aea251b5e24/free_module_morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 16353, 12, 2890, 16, 1401, 2218, 92, 11, 4672, 3536, 14169, 281, 326, 16745, 16991, 18, 225, 12943, 30, 225, 300, 12176, 1401, 10335, 300, 533, 261, 1886, 30, 296, 92, 6134, 279, 2190, 508, 225, 11550, 30, 225, 16991, 316, 569, 300, 326, 16745, 16991, 434, 326, 679, 362, 7657, 6228, 18, 225, 5675, 8900, 11386, 30, 225, 8155, 326, 16745, 16991, 16, 471, 866, 518, 225, 493, 225, 272, 410, 30, 776, 33, 43, 42, 12, 27, 13, 66, 23, 272, 410, 30, 670, 33, 58, 18, 44, 362, 12, 58, 13, 3816, 63, 20, 16, 21, 16, 22, 6487, 18919, 21, 16, 20, 16, 23, 6487, 63, 22, 16, 24, 16, 21, 65, 5717, 272, 410, 30, 670, 15217, 1605, 14354, 6228, 2553, 635, 326, 3148, 306, 20, 404, 576, 65, 306, 26, 374, 890, 65, 306, 22, 1059, 404, 65, 6648, 30, 5589, 3476, 434, 4968, 890, 1879, 9458, 1137, 2286, 434, 963, 2371, 385, 369, 1530, 30, 5589, 3476, 434, 4968, 890, 1879, 9458, 1137, 2286, 434, 963, 2371, 272, 410, 30, 670, 18, 1154, 16353, 1435, 619, 66, 23, 397, 1666, 14, 92, 66, 22, 397, 1666, 14, 92, 397, 404, 272, 410, 30, 670, 66, 23, 15, 26, 14, 44, 66, 22, 15, 26, 14, 44, 15, 21, 15217, 1605, 14354, 6228, 2553, 635, 326, 3148, 306, 20, 374, 374, 65, 306, 20, 374, 374, 65, 306, 20, 374, 374, 65, 6648, 30, 5589, 3476, 434, 4968, 890, 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, 1131, 16353, 12, 2890, 16, 1401, 2218, 92, 11, 4672, 3536, 14169, 281, 326, 16745, 16991, 18, 225, 12943, 30, 225, 300, 12176, 1401, 10335, 300, 533, 261, 1886, 30, 296, 92, 6134, 279, 2190, 508, 225, 11550, 30, 225, 16991, 316, 569, 300, 326, 16745, 16991, 434, 326, 679, 362, 7657, 6228, 18, 225, 5675, 8900, 11386, 30, 225, 8155, 326, 16745, 16991, 16, 471, 866, 518, 225, 493, 225, 272, 410, 30, 776, 33, 43, 42, 12, 27, 13, 66, 23, 272, 410, 30, 670, 33, 58, 18, 44, 362, 12, 58, 13, 3816, 63, 20, 16, 21, 16, 22, 6487, 18919, 21, 16, 20, 16, 23, 6487, 63, 22, 16, 24, 16, 21, 65, 5717, 2 ]
pass
self.list_counter.pop()
def depart_definition_list(self, node): pass
e20b3a3adf8de70986f2805e2d77e2bc11ff74aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/e20b3a3adf8de70986f2805e2d77e2bc11ff74aa/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 6907, 67, 1098, 12, 2890, 16, 756, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26000, 67, 6907, 67, 1098, 12, 2890, 16, 756, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
x += 1
if x > 99: self.respond("450 Can't STOU other files with brand new name.") self.log("Can't STOU other files with brand new name.") return else: x += 1
def ftp_STOU(self, line): "store a file with a unique name" # note: RFC 959 prohibited STOU parameters, but this prohibition is obsolete. # note2: RFC 959 wants ftpd to respond with code 250 but I've seen a # lot of FTP servers responding with 125 or 150, and this is a better choice, imho, # because STOU works just like STOR.
95e7957fd9509ce008091ab59ee8efe4bedf1f36 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/95e7957fd9509ce008091ab59ee8efe4bedf1f36/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 882, 26556, 12, 2890, 16, 980, 4672, 315, 2233, 279, 585, 598, 279, 3089, 508, 6, 468, 4721, 30, 8372, 2468, 6162, 450, 29993, 2347, 26556, 1472, 16, 1496, 333, 450, 15769, 608, 353, 27191, 18, 468, 4721, 22, 30, 8372, 2468, 6162, 14805, 13487, 72, 358, 6846, 598, 981, 16927, 1496, 467, 8081, 5881, 279, 468, 17417, 434, 19324, 7084, 6846, 310, 598, 30616, 578, 18478, 16, 471, 333, 353, 279, 7844, 6023, 16, 709, 15008, 16, 468, 2724, 2347, 26556, 6330, 2537, 3007, 2347, 916, 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, 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, 1652, 13487, 67, 882, 26556, 12, 2890, 16, 980, 4672, 315, 2233, 279, 585, 598, 279, 3089, 508, 6, 468, 4721, 30, 8372, 2468, 6162, 450, 29993, 2347, 26556, 1472, 16, 1496, 333, 450, 15769, 608, 353, 27191, 18, 468, 4721, 22, 30, 8372, 2468, 6162, 14805, 13487, 72, 358, 6846, 598, 981, 16927, 1496, 467, 8081, 5881, 279, 468, 17417, 434, 19324, 7084, 6846, 310, 598, 30616, 578, 18478, 16, 471, 333, 353, 279, 7844, 6023, 16, 709, 15008, 16, 468, 2724, 2347, 26556, 6330, 2537, 3007, 2347, 916, 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 ]
return self.__checkCatalogForSEFiles(storageFileMetadata,storageElement)
return self.__checkCatalogForSEFiles(storageFileMetadata,storageElement)
def storageDirectoryToCatalog(self,lfnDir,storageElement): """ This obtains the file found on the storage element in the supplied directories and determines whether they exist in the catalog and checks their metadata elements """ gLogger.info("-" * 40) gLogger.info("Performing the SE->LFC check at %s" % storageElement) gLogger.info("-" * 40) if type(lfnDir) in types.StringTypes: lfnDir = [lfnDir] res = self.__getStorageDirectoryContents(lfnDir,storageElement) if not res['OK']: return res storageFileMetadata = res['Value'] if storageFileMetadata: return self.__checkCatalogForSEFiles(storageFileMetadata,storageElement) return S_OK({'CatalogMetadata':{},'StorageMetadata':{}})
3e5db6415a941fbe3c8701e4383818a18d1b8b84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e5db6415a941fbe3c8701e4383818a18d1b8b84/DataIntegrityClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2502, 2853, 774, 9769, 12, 2890, 16, 80, 4293, 1621, 16, 5697, 1046, 4672, 3536, 1220, 3768, 16598, 326, 585, 1392, 603, 326, 2502, 930, 316, 326, 4580, 6402, 471, 12949, 2856, 2898, 1005, 316, 326, 6222, 471, 4271, 3675, 1982, 2186, 3536, 314, 3328, 18, 1376, 2932, 10951, 380, 8063, 13, 314, 3328, 18, 1376, 2932, 4990, 310, 326, 3174, 2122, 48, 4488, 866, 622, 738, 87, 6, 738, 2502, 1046, 13, 314, 3328, 18, 1376, 2932, 10951, 380, 8063, 13, 309, 618, 12, 80, 4293, 1621, 13, 316, 1953, 18, 780, 2016, 30, 328, 4293, 1621, 273, 306, 80, 4293, 1621, 65, 400, 273, 365, 16186, 588, 3245, 2853, 6323, 12, 80, 4293, 1621, 16, 5697, 1046, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 2502, 812, 2277, 273, 400, 3292, 620, 3546, 309, 2502, 812, 2277, 30, 327, 365, 16186, 1893, 9769, 1290, 1090, 2697, 12, 5697, 812, 2277, 16, 5697, 1046, 13, 327, 348, 67, 3141, 12590, 11, 9769, 2277, 4278, 2916, 11189, 3245, 2277, 4278, 2916, 6792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2502, 2853, 774, 9769, 12, 2890, 16, 80, 4293, 1621, 16, 5697, 1046, 4672, 3536, 1220, 3768, 16598, 326, 585, 1392, 603, 326, 2502, 930, 316, 326, 4580, 6402, 471, 12949, 2856, 2898, 1005, 316, 326, 6222, 471, 4271, 3675, 1982, 2186, 3536, 314, 3328, 18, 1376, 2932, 10951, 380, 8063, 13, 314, 3328, 18, 1376, 2932, 4990, 310, 326, 3174, 2122, 48, 4488, 866, 622, 738, 87, 6, 738, 2502, 1046, 13, 314, 3328, 18, 1376, 2932, 10951, 380, 8063, 13, 309, 618, 12, 80, 4293, 1621, 13, 316, 1953, 18, 780, 2016, 30, 328, 4293, 1621, 273, 306, 80, 4293, 1621, 65, 400, 273, 365, 16186, 588, 3245, 2853, 6323, 12, 80, 4293, 1621, 16, 5697, 2 ]