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.__peer = conn.getpeername()
try: self.__peer = conn.getpeername() except socket.error as err: self.close() if err.args[0] != errno.ENOTCONN: raise return
def __init__(self, server, conn, addr): asynchat.async_chat.__init__(self, conn) self.__server = server self.__conn = conn self.__addr = addr self.__line = [] self.__state = self.COMMAND self.__greeting = 0 self.__mailfrom = None self.__rcpttos = [] self.__data = '' self.__fqdn = socket.getfqdn() self.__peer = conn.getpeername() print >> DEBUGSTREAM, 'Peer:', repr(self.__peer) self.push('220 %s %s' % (self.__fqdn, __version__)) self.set_terminator('\r\n')
777508185731fe4411e62659e9fa7ddbc840124c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/777508185731fe4411e62659e9fa7ddbc840124c/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4646, 273, 1487, 365, 16186, 4793, 273, 3091, 365, 16186, 1369, 273, 5378, 365, 16186, 2019, 273, 365, 18, 19104, 365, 16186, 75, 9015, 310, 273, 374, 365, 16186, 4408, 2080, 273, 599, 365, 16186, 1310, 337, 14627, 273, 5378, 365, 16186, 892, 273, 875, 365, 16186, 19206, 5176, 273, 2987, 18, 588, 19206, 5176, 1435, 775, 30, 365, 16186, 12210, 273, 1487, 18, 588, 12210, 529, 1435, 1335, 2987, 18, 1636, 487, 393, 30, 282, 365, 18, 4412, 1435, 309, 393, 18, 1968, 63, 20, 65, 480, 8402, 18, 1157, 1974, 27733, 30, 1002, 327, 1172, 1671, 6369, 13693, 16, 296, 6813, 30, 2187, 8480, 12, 2890, 16186, 12210, 13, 365, 18, 6206, 2668, 27246, 738, 87, 738, 87, 11, 738, 261, 2890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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 1487, 16, 3091, 4672, 487, 2515, 270, 18, 3810, 67, 10880, 16186, 2738, 972, 12, 2890, 16, 1487, 13, 365, 16186, 3567, 273, 1438, 365, 16186, 4646, 273, 1487, 365, 16186, 4793, 273, 3091, 365, 16186, 1369, 273, 5378, 365, 16186, 2019, 273, 365, 18, 19104, 365, 16186, 75, 9015, 310, 273, 374, 365, 16186, 4408, 2080, 273, 599, 365, 16186, 1310, 337, 14627, 273, 5378, 365, 16186, 892, 273, 875, 365, 16186, 19206, 5176, 273, 2987, 18, 588, 19206, 5176, 1435, 775, 30, 365, 16186, 12210, 273, 1487, 18, 588, 12210, 529, 1435, 1335, 2987, 18, 1636, 487, 393, 30, 282, 365, 18, 4412, 1435, 309, 393, 18, 1968, 2 ]
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic print 'Version: 0x%8.8x'%version print 'Entries: %d'%nentry if magic != AS_MAGIC: raise Error, 'Unknown AppleSingle magic number 0x%8.8x'%magic if version != AS_VERSION: raise Error, 'Unknown AppleSingle version number 0x%8.8x'%version if nentry <= 0: raise Error, "AppleSingle file contains no forks" headers = [input.read(AS_ENTRY_LENGTH) for i in range(nentry)] didwork = 0 for hdr in headers:
class AppleSingle(object): datafork = None resourcefork = None def __init__(self, fileobj, verbose=False): header = fileobj.read(AS_HEADER_LENGTH)
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') # Should we also test for FSSpecs or FSRefs? header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic print 'Version: 0x%8.8x'%version print 'Entries: %d'%nentry if magic != AS_MAGIC: raise Error, 'Unknown AppleSingle magic number 0x%8.8x'%magic if version != AS_VERSION: raise Error, 'Unknown AppleSingle version number 0x%8.8x'%version if nentry <= 0: raise Error, "AppleSingle file contains no forks" headers = [input.read(AS_ENTRY_LENGTH) for i in range(nentry)] didwork = 0 for hdr in headers: try: id, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr) except ValueError, arg: raise Error, "Unpack entry error: %s"%arg if verbose: print 'Fork %d, offset %d, length %d'%(id, offset, length) input.seek(offset) if length == 0: data = '' else: data = input.read(length) if len(data) != length: raise Error, 'Short read: expected %d bytes got %d'%(length, len(data)) if id == AS_DATAFORK: if verbose: print ' (data fork)' if not resonly: didwork = 1 fp = open(output, 'wb') fp.write(data) fp.close() elif id == AS_RESOURCEFORK: didwork = 1 if verbose: print ' (resource fork)' if resonly: fp = open(output, 'wb') else: fp = MacOS.openrf(output, 'wb') fp.write(data) fp.close() elif id in AS_IGNORE: if verbose: print ' (ignored)' else: raise Error, 'Unknown fork type %d'%id if not didwork: raise Error, 'No useful forks found'
3e3e4327592f5de90d5f86293c6743ea75f0953d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3e3e4327592f5de90d5f86293c6743ea75f0953d/applesingle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2630, 16, 876, 16, 400, 3700, 33, 20, 4672, 309, 618, 12, 2630, 13, 422, 618, 2668, 11, 4672, 810, 273, 1696, 12, 2630, 16, 296, 6731, 6134, 468, 9363, 732, 2546, 1842, 364, 478, 1260, 705, 87, 578, 9247, 9837, 35, 1446, 273, 810, 18, 896, 12, 3033, 67, 7557, 67, 7096, 13, 775, 30, 8146, 16, 1177, 16, 9609, 16, 290, 4099, 273, 1958, 18, 17309, 12, 3033, 67, 7557, 67, 7254, 16, 1446, 13, 1335, 2068, 16, 1501, 30, 1002, 1068, 16, 315, 23649, 1446, 555, 30, 738, 87, 28385, 3175, 309, 3988, 30, 1172, 296, 19289, 30, 282, 374, 92, 9, 28, 18, 28, 92, 11, 9, 11179, 1172, 296, 1444, 30, 374, 92, 9, 28, 18, 28, 92, 11, 9, 1589, 1172, 296, 5400, 30, 738, 72, 11, 9, 82, 4099, 309, 8146, 480, 5355, 67, 49, 22247, 30, 1002, 1068, 16, 296, 4874, 1716, 1802, 5281, 8146, 1300, 374, 92, 9, 28, 18, 28, 92, 11, 9, 11179, 309, 1177, 480, 5355, 67, 5757, 30, 1002, 1068, 16, 296, 4874, 1716, 1802, 5281, 1177, 1300, 374, 92, 9, 28, 18, 28, 92, 11, 9, 1589, 309, 290, 4099, 1648, 374, 30, 1002, 1068, 16, 315, 1294, 1802, 5281, 585, 1914, 1158, 364, 7904, 6, 1607, 273, 306, 2630, 18, 896, 12, 3033, 67, 19083, 67, 7096, 13, 364, 277, 316, 1048, 12, 82, 4099, 25887, 5061, 1252, 273, 374, 364, 7723, 316, 1607, 30, 775, 30, 612, 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, 2495, 12, 2630, 16, 876, 16, 400, 3700, 33, 20, 4672, 309, 618, 12, 2630, 13, 422, 618, 2668, 11, 4672, 810, 273, 1696, 12, 2630, 16, 296, 6731, 6134, 468, 9363, 732, 2546, 1842, 364, 478, 1260, 705, 87, 578, 9247, 9837, 35, 1446, 273, 810, 18, 896, 12, 3033, 67, 7557, 67, 7096, 13, 775, 30, 8146, 16, 1177, 16, 9609, 16, 290, 4099, 273, 1958, 18, 17309, 12, 3033, 67, 7557, 67, 7254, 16, 1446, 13, 1335, 2068, 16, 1501, 30, 1002, 1068, 16, 315, 23649, 1446, 555, 30, 738, 87, 28385, 3175, 309, 3988, 30, 1172, 296, 19289, 30, 282, 374, 92, 9, 28, 18, 28, 92, 11, 9, 11179, 1172, 296, 1444, 30, 2 ]
print "splitting item amount with buffer balance"
item_amount_over = float("-%s" % (item_amount_over)) print "splitting item amount with buffer balance %s" % item_amount_over
def _update_category_balance(self, item): "Update the category balance from the item amount" if int(item['type']) == 1: table = "ExpenseCategory" elif int(item['type']) == 2: table = "BillCategory" elif int(item['type']) == 3: table = "SavingCategory" category_select = "select * from %s where id = :id;" % (table) category_update = "update %s set balance = :balance where id = :id;" % (table)
3e8994ff93dfc320538510e8ba0ed85f5f4f5adc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/3e8994ff93dfc320538510e8ba0ed85f5f4f5adc/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 4743, 67, 12296, 12, 2890, 16, 761, 4672, 315, 1891, 326, 3150, 11013, 628, 326, 761, 3844, 6, 309, 509, 12, 1726, 3292, 723, 19486, 422, 404, 30, 1014, 273, 315, 424, 1907, 307, 4457, 6, 1327, 509, 12, 1726, 3292, 723, 19486, 422, 576, 30, 1014, 273, 315, 38, 737, 4457, 6, 1327, 509, 12, 1726, 3292, 723, 19486, 422, 890, 30, 1014, 273, 315, 24660, 4457, 6, 3150, 67, 4025, 273, 315, 4025, 380, 628, 738, 87, 1625, 612, 273, 294, 350, 4868, 738, 261, 2121, 13, 3150, 67, 2725, 273, 315, 2725, 738, 87, 444, 11013, 273, 294, 12296, 1625, 612, 273, 294, 350, 4868, 738, 261, 2121, 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, 2725, 67, 4743, 67, 12296, 12, 2890, 16, 761, 4672, 315, 1891, 326, 3150, 11013, 628, 326, 761, 3844, 6, 309, 509, 12, 1726, 3292, 723, 19486, 422, 404, 30, 1014, 273, 315, 424, 1907, 307, 4457, 6, 1327, 509, 12, 1726, 3292, 723, 19486, 422, 576, 30, 1014, 273, 315, 38, 737, 4457, 6, 1327, 509, 12, 1726, 3292, 723, 19486, 422, 890, 30, 1014, 273, 315, 24660, 4457, 6, 3150, 67, 4025, 273, 315, 4025, 380, 628, 738, 87, 1625, 612, 273, 294, 350, 4868, 738, 261, 2121, 13, 3150, 67, 2725, 273, 315, 2725, 738, 87, 444, 11013, 273, 294, 12296, 1625, 612, 273, 294, 350, 4868, 738, 261, 2121, 13, 2, -100, -100, -100 ]
self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent)
if t.isVector: self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent) else: self.printValueOfType(prefix, '%s[%d]'%(name,i), t.elementType, output=output,indent=indent)
def printValueOfType(self, prefix, name, t, output=None, indent=2): if output is None: output = self.output if isinstance(t, BuiltinType): if t.name.endswith('long long'): code = 'lld' elif t.name.endswith('long'): code = 'ld' elif t.name.split(' ')[-1] in ('_Bool','char','short','int'): code = 'd' elif t.name in ('float','double'): code = 'f' elif t.name == 'long double': code = 'Lf' else: code = 'p' print >>output, '%*sprintf("%s: %s = %%%s\\n", %s);'%(indent, '', prefix, name, code, name) elif isinstance(t, RecordType): if not t.fields: print >>output, '%*sprintf("%s: %s (empty)\\n");'%(indent, '', prefix, name) for i,f in enumerate(t.fields): fname = '%s.field%d'%(name,i) self.printValueOfType(prefix, fname, f, output=output, indent=indent) elif isinstance(t, ComplexType): self.printValueOfType(prefix, '(__real %s)'%name, t.elementType, output=output,indent=indent) self.printValueOfType(prefix, '(__imag %s)'%name, t.elementType, output=output,indent=indent) elif isinstance(t, ArrayType): for i in range(t.numElements): # Access in this fashion as a hackish way to portably # access vectors. self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent) else: raise NotImplementedError,'Cannot print value of type: "%s"'%(t,)
2f0b8f841ada4d1bc8d2cee975e5033d020c283c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/2f0b8f841ada4d1bc8d2cee975e5033d020c283c/ABITestGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 620, 18859, 12, 2890, 16, 1633, 16, 508, 16, 268, 16, 876, 33, 7036, 16, 3504, 33, 22, 4672, 309, 876, 353, 599, 30, 876, 273, 365, 18, 2844, 309, 1549, 12, 88, 16, 27376, 267, 559, 4672, 309, 268, 18, 529, 18, 5839, 1918, 2668, 5748, 1525, 11, 4672, 981, 273, 296, 80, 1236, 11, 1327, 268, 18, 529, 18, 5839, 1918, 2668, 5748, 11, 4672, 981, 273, 296, 1236, 11, 1327, 268, 18, 529, 18, 4939, 2668, 8624, 18919, 21, 65, 316, 7707, 67, 7464, 17023, 3001, 17023, 6620, 17023, 474, 11, 4672, 981, 273, 296, 72, 11, 1327, 268, 18, 529, 316, 7707, 5659, 17023, 9056, 11, 4672, 981, 273, 296, 74, 11, 1327, 268, 18, 529, 422, 296, 5748, 1645, 4278, 981, 273, 296, 48, 74, 11, 469, 30, 981, 273, 296, 84, 11, 1172, 1671, 2844, 16, 1995, 14, 87, 1461, 27188, 87, 30, 738, 87, 273, 738, 11438, 87, 1695, 82, 3113, 738, 87, 13869, 17105, 9355, 16, 10226, 1633, 16, 508, 16, 981, 16, 508, 13, 1327, 1549, 12, 88, 16, 5059, 559, 4672, 309, 486, 268, 18, 2821, 30, 1172, 1671, 2844, 16, 1995, 14, 87, 1461, 27188, 87, 30, 738, 87, 261, 5531, 13, 1695, 82, 8863, 11, 17105, 9355, 16, 10226, 1633, 16, 508, 13, 364, 277, 16, 74, 316, 4241, 12, 88, 18, 2821, 4672, 5299, 273, 1995, 87, 18, 1518, 9, 72, 11, 17105, 529, 16, 77, 13, 365, 18, 1188, 620, 18859, 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, 1172, 620, 18859, 12, 2890, 16, 1633, 16, 508, 16, 268, 16, 876, 33, 7036, 16, 3504, 33, 22, 4672, 309, 876, 353, 599, 30, 876, 273, 365, 18, 2844, 309, 1549, 12, 88, 16, 27376, 267, 559, 4672, 309, 268, 18, 529, 18, 5839, 1918, 2668, 5748, 1525, 11, 4672, 981, 273, 296, 80, 1236, 11, 1327, 268, 18, 529, 18, 5839, 1918, 2668, 5748, 11, 4672, 981, 273, 296, 1236, 11, 1327, 268, 18, 529, 18, 4939, 2668, 8624, 18919, 21, 65, 316, 7707, 67, 7464, 17023, 3001, 17023, 6620, 17023, 474, 11, 4672, 981, 273, 296, 72, 11, 1327, 268, 18, 529, 316, 7707, 5659, 17023, 9056, 11, 4672, 981, 273, 296, 74, 11, 1327, 2 ]
pid = ing(file(pidfile).read())
pid = int(file(pidfile).read())
def status (pidfile): if os.path.exists(pidfile): pid = ing(file(pidfile).read()) return i18n._("WebCleaner is running (PID %d)")%pid, 0 else: return i18n._("WebCleaner is not running (no lock file found)"), 3
2ea0d1d113b6cda31008c0e861b40f9bbed20881 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/2ea0d1d113b6cda31008c0e861b40f9bbed20881/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1267, 261, 6610, 768, 4672, 309, 1140, 18, 803, 18, 1808, 12, 6610, 768, 4672, 4231, 273, 509, 12, 768, 12, 6610, 768, 2934, 896, 10756, 327, 277, 2643, 82, 6315, 2932, 4079, 7605, 264, 353, 3549, 261, 16522, 738, 72, 2225, 13, 9, 6610, 16, 374, 469, 30, 327, 277, 2643, 82, 6315, 2932, 4079, 7605, 264, 353, 486, 3549, 261, 2135, 2176, 585, 1392, 2225, 3631, 890, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1267, 261, 6610, 768, 4672, 309, 1140, 18, 803, 18, 1808, 12, 6610, 768, 4672, 4231, 273, 509, 12, 768, 12, 6610, 768, 2934, 896, 10756, 327, 277, 2643, 82, 6315, 2932, 4079, 7605, 264, 353, 3549, 261, 16522, 738, 72, 2225, 13, 9, 6610, 16, 374, 469, 30, 327, 277, 2643, 82, 6315, 2932, 4079, 7605, 264, 353, 486, 3549, 261, 2135, 2176, 585, 1392, 2225, 3631, 890, 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 ]
isoYear, isoWeek, isoDay = date.isocalendar() return'%s_%s%0d' % (parentTableName, year, isoWeek)
weekDay = date.weekday() if weekDay: date = date - dt.timedelta(weekDay) return'%s_%4d%02d%02d' % ((parentTableName,) + date.timetuple()[:3])
def targetTableName (parentTableName, dateAsString): """ Given the name of the master table and a date, determine the name of the partition table that new data should go into.""" year = int(dateAsString[:4]) month = int(dateAsString[5:7]) day = int(dateAsString[8:10]) date = dt.datetime(year, month, day) isoYear, isoWeek, isoDay = date.isocalendar() return'%s_%s%0d' % (parentTableName, year, isoWeek)
1471875fe1f243f243a300dfd6408c3d0440f7d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/1471875fe1f243f243a300dfd6408c3d0440f7d0/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1018, 7147, 261, 2938, 7147, 16, 1509, 8092, 4672, 3536, 16803, 326, 508, 434, 326, 4171, 1014, 471, 279, 1509, 16, 4199, 326, 508, 434, 326, 3590, 1014, 716, 394, 501, 1410, 1960, 1368, 12123, 3286, 273, 509, 12, 712, 8092, 10531, 24, 5717, 3138, 273, 509, 12, 712, 8092, 63, 25, 30, 27, 5717, 2548, 273, 509, 12, 712, 8092, 63, 28, 30, 2163, 5717, 1509, 273, 3681, 18, 6585, 12, 6874, 16, 3138, 16, 2548, 13, 4860, 4245, 273, 1509, 18, 10741, 2881, 1435, 309, 4860, 4245, 30, 1509, 273, 1509, 300, 3681, 18, 31295, 12, 10741, 4245, 13, 327, 11, 9, 87, 10185, 24, 72, 9, 3103, 72, 9, 3103, 72, 11, 738, 225, 14015, 2938, 7147, 16, 13, 397, 1509, 18, 8584, 278, 2268, 1435, 10531, 23, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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261, 2938, 7147, 16, 1509, 8092, 4672, 3536, 16803, 326, 508, 434, 326, 4171, 1014, 471, 279, 1509, 16, 4199, 326, 508, 434, 326, 3590, 1014, 716, 394, 501, 1410, 1960, 1368, 12123, 3286, 273, 509, 12, 712, 8092, 10531, 24, 5717, 3138, 273, 509, 12, 712, 8092, 63, 25, 30, 27, 5717, 2548, 273, 509, 12, 712, 8092, 63, 28, 30, 2163, 5717, 1509, 273, 3681, 18, 6585, 12, 6874, 16, 3138, 16, 2548, 13, 4860, 4245, 273, 1509, 18, 10741, 2881, 1435, 309, 4860, 4245, 30, 1509, 273, 1509, 300, 3681, 18, 31295, 12, 10741, 4245, 13, 327, 11, 9, 87, 10185, 24, 72, 9, 3103, 72, 9, 3103, 72, 11, 738, 225, 14015, 2 ]
PyErr_Format(PyExc_TypeError, "%.400s constructor takes either 0 or " "%d positional argument%s", Py_TYPE(self)->tp_name,
PyErr_Format(PyExc_TypeError, "%.400s constructor takes %s" "%" PY_FORMAT_SIZE_T "d positional argument%s", Py_TYPE(self)->tp_name, numfields == 0 ? "" : "either 0 or ",
def visitModule(self, mod): self.emit("""
1721e757499db93373cba263b0553a64d4c545a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/1721e757499db93373cba263b0553a64d4c545a3/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 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 ]
name = "Upcase word"
name = "Upcase"
def mutate(self, txt): """Change to title case -- first letter capitalized, rest lower case. """ return txt.title()
cf547067d078a173b6c5182ffcf438b67d49f8dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/cf547067d078a173b6c5182ffcf438b67d49f8dc/text_transforms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15887, 12, 2890, 16, 6463, 4672, 3536, 3043, 358, 2077, 648, 1493, 1122, 9471, 12872, 1235, 16, 3127, 2612, 648, 18, 3536, 327, 6463, 18, 2649, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15887, 12, 2890, 16, 6463, 4672, 3536, 3043, 358, 2077, 648, 1493, 1122, 9471, 12872, 1235, 16, 3127, 2612, 648, 18, 3536, 327, 6463, 18, 2649, 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 ]
self.bubbleRect.setText("Cut off height: \n %f" % self.cutOffHeight) self.bubbleRect.setPos(e.scenePos().x(), e.scenePos().y()) self.bubbleRect.show() self.update()
QToolTip.showText(e.screenPos(), "Cut off height: \n %f" % self.cutOffHeight, e.widget(), toolTipRect)
def mouseMoveEvent(self, e):
8831277dc381559aa4de7aa848bba2c91b0d2e4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/8831277dc381559aa4de7aa848bba2c91b0d2e4c/OWHierarchicalClustering.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7607, 1133, 12, 2890, 16, 425, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7607, 1133, 12, 2890, 16, 425, 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 ]
print " <icon>http://www.tvsite.be/gfx/logos/%s.gif</icon>" % self.title
print " <icon>http://www.teveblad.be/gfx/logos/%s.gif</icon>" % self.title
def xml(self,today = strftime("%Y/%m/%d",localtime(time())),tomorrow = strftime("%Y/%m/%d",localtime(time()+86400))):
9392fbfdf763574a03e1401669d97418d30dd72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9392fbfdf763574a03e1401669d97418d30dd72e/xml_tv_be.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2025, 12, 2890, 16, 30064, 273, 10405, 27188, 61, 5258, 81, 5258, 72, 3113, 3729, 957, 12, 957, 10756, 3631, 3599, 15318, 273, 10405, 27188, 61, 5258, 81, 5258, 72, 3113, 3729, 957, 12, 957, 1435, 15, 28, 1105, 713, 3719, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2025, 12, 2890, 16, 30064, 273, 10405, 27188, 61, 5258, 81, 5258, 72, 3113, 3729, 957, 12, 957, 10756, 3631, 3599, 15318, 273, 10405, 27188, 61, 5258, 81, 5258, 72, 3113, 3729, 957, 12, 957, 1435, 15, 28, 1105, 713, 3719, 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 ]
sage.misc.persist.save(help, HELP_CACHE)
sage.misc.persist.save(help, HELP_CACHE)
def __init__(self, stacksize=10000000, # 10MB maxread=100000, script_subdirectory=None, logfile=None, server=None, init_list_length=1024): Expect.__init__(self,
7cab41b96e223cae76a422a76ffbd495dc312360 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7cab41b96e223cae76a422a76ffbd495dc312360/lie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2110, 1467, 33, 21, 17877, 16, 282, 468, 1728, 7969, 943, 896, 33, 21, 11706, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 7036, 16, 1208, 67, 1098, 67, 2469, 33, 2163, 3247, 4672, 15510, 16186, 2738, 972, 12, 2890, 16, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2110, 1467, 33, 21, 17877, 16, 282, 468, 1728, 7969, 943, 896, 33, 21, 11706, 16, 2728, 67, 1717, 5149, 33, 7036, 16, 15204, 33, 7036, 16, 1438, 33, 7036, 16, 1208, 67, 1098, 67, 2469, 33, 2163, 3247, 4672, 15510, 16186, 2738, 972, 12, 2890, 16, 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 ]
weight = lambda x : x if (x is not None and x != {}) else 1
weight = lambda x: x if (x is not None and x != {}) else 1
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 2860, 279, 12163, 589, 434, 12176, 2890, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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860, 279, 12163, 589, 434, 12176, 2890, 68, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise RuntimeError("Can't find xulrunner-xpcom or mozilla-xpcom")
raise RuntimeError("Can't find xulrunner-xpcom, mozilla-xpcom or firefox-xpcom")
def parsePkgConfig(command, components, options_dict = None): """Helper function to parse compiler/linker arguments from pkg-config/mozilla-config and update include_dirs, library_dirs, etc. We return a dict with the following keys, which match up with keyword arguments to the setup function: include_dirs, library_dirs, libraries, extra_compile_args. Command is the command to run (pkg-config, mozilla-config, etc). Components is a string that lists the components to get options for. If options_dict is passed in, we add options to it, instead of starting from scratch. """ if options_dict is None: options_dict = { 'include_dirs' : [], 'library_dirs' : [], 'libraries' : [], 'extra_compile_args' : [] } commandLine = "%s --cflags --libs %s" % (command, components) output = getCommandOutput(commandLine).strip() for comp in output.split(): prefix, rest = comp[:2], comp[2:] if prefix == '-I': options_dict['include_dirs'].append(rest) elif prefix == '-L': options_dict['library_dirs'].append(rest) elif prefix == '-l': options_dict['libraries'].append(rest) else: options_dict['extra_compile_args'].append(comp) return options_dict
06a01ae812b082d2afa4149584a57243cdf95272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/06a01ae812b082d2afa4149584a57243cdf95272/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 11264, 809, 12, 3076, 16, 4085, 16, 702, 67, 1576, 273, 599, 4672, 3536, 2276, 445, 358, 1109, 5274, 19, 1232, 264, 1775, 628, 3475, 17, 1425, 19, 8683, 15990, 17, 1425, 471, 1089, 2341, 67, 8291, 16, 5313, 67, 8291, 16, 5527, 18, 225, 1660, 327, 279, 2065, 598, 326, 3751, 1311, 16, 1492, 845, 731, 598, 4932, 1775, 358, 326, 3875, 445, 30, 2341, 67, 8291, 16, 5313, 67, 8291, 16, 14732, 16, 2870, 67, 11100, 67, 1968, 18, 225, 3498, 353, 326, 1296, 358, 1086, 261, 10657, 17, 1425, 16, 27513, 17, 1425, 16, 5527, 2934, 25286, 353, 279, 533, 716, 6035, 326, 4085, 358, 336, 702, 364, 18, 225, 971, 702, 67, 1576, 353, 2275, 316, 16, 732, 527, 702, 358, 518, 16, 3560, 434, 5023, 628, 15289, 18, 3536, 225, 309, 702, 67, 1576, 353, 599, 30, 702, 67, 1576, 273, 288, 296, 6702, 67, 8291, 11, 294, 5378, 16, 296, 12083, 67, 8291, 11, 294, 5378, 16, 296, 31417, 11, 294, 5378, 16, 296, 7763, 67, 11100, 67, 1968, 11, 294, 5378, 289, 20894, 273, 2213, 87, 1493, 71, 7133, 1493, 21571, 738, 87, 6, 738, 261, 3076, 16, 4085, 13, 876, 273, 12856, 1447, 12, 3076, 1670, 2934, 6406, 1435, 364, 1161, 316, 876, 18, 4939, 13332, 1633, 16, 3127, 273, 1161, 10531, 22, 6487, 1161, 63, 22, 26894, 309, 1633, 422, 2400, 45, 4278, 702, 67, 1576, 3292, 6702, 67, 8291, 29489, 6923, 12, 8792, 13, 1327, 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, 1109, 11264, 809, 12, 3076, 16, 4085, 16, 702, 67, 1576, 273, 599, 4672, 3536, 2276, 445, 358, 1109, 5274, 19, 1232, 264, 1775, 628, 3475, 17, 1425, 19, 8683, 15990, 17, 1425, 471, 1089, 2341, 67, 8291, 16, 5313, 67, 8291, 16, 5527, 18, 225, 1660, 327, 279, 2065, 598, 326, 3751, 1311, 16, 1492, 845, 731, 598, 4932, 1775, 358, 326, 3875, 445, 30, 2341, 67, 8291, 16, 5313, 67, 8291, 16, 14732, 16, 2870, 67, 11100, 67, 1968, 18, 225, 3498, 353, 326, 1296, 358, 1086, 261, 10657, 17, 1425, 16, 27513, 17, 1425, 16, 5527, 2934, 25286, 353, 279, 533, 716, 6035, 326, 4085, 358, 336, 702, 364, 18, 225, 971, 702, 67, 1576, 2 ]
self.indexer.feed(filename, category, title, self.doctrees[filename])
self.indexer.feed(filename, category, title, doctree)
def handle_file(self, filename, context): # only index pages with title and category title = context['title'] if self.indexer is not None and title: category = get_category(filename) if category is not None: self.indexer.feed(filename, category, title, self.doctrees[filename])
7c86f6623279052ea372ff758c5fff2ebb8aac62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/7c86f6623279052ea372ff758c5fff2ebb8aac62/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 768, 12, 2890, 16, 1544, 16, 819, 4672, 468, 1338, 770, 4689, 598, 2077, 471, 3150, 2077, 273, 819, 3292, 2649, 3546, 309, 365, 18, 24541, 353, 486, 599, 471, 2077, 30, 3150, 273, 336, 67, 4743, 12, 3459, 13, 309, 3150, 353, 486, 599, 30, 365, 18, 24541, 18, 7848, 12, 3459, 16, 3150, 16, 2077, 16, 365, 18, 2896, 299, 5312, 63, 3459, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 768, 12, 2890, 16, 1544, 16, 819, 4672, 468, 1338, 770, 4689, 598, 2077, 471, 3150, 2077, 273, 819, 3292, 2649, 3546, 309, 365, 18, 24541, 353, 486, 599, 471, 2077, 30, 3150, 273, 336, 67, 4743, 12, 3459, 13, 309, 3150, 353, 486, 599, 30, 365, 18, 24541, 18, 7848, 12, 3459, 16, 3150, 16, 2077, 16, 365, 18, 2896, 299, 5312, 63, 3459, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Logs given `dictionary's` length and content with given `level`
"""Logs the size and contents of the `dictionary` using given `level`.
def log_dictionary(self, dictionary, level='INFO'): """Logs given `dictionary's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(dictionary) == 0: print 'Dictionary is empty' elif len(dictionary) == 1: print "Dictionary has one item '%s: %s'" % (dictionary.items()[0]) else: print "Dictionary length is '%s'" % (len(dictionary)) for key in self.get_dictionary_keys(dictionary): print '%s: %s' % (key, dictionary[key])
1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 15556, 12, 2890, 16, 3880, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 963, 471, 2939, 434, 326, 1375, 15556, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 12734, 16, 6369, 16, 9286, 261, 1886, 3631, 471, 20440, 18, 225, 657, 648, 1846, 2545, 1338, 613, 326, 769, 16, 999, 4932, 1375, 967, 11311, 68, 628, 27376, 382, 5313, 18, 3536, 1172, 14609, 9, 87, 14, 296, 738, 261, 67, 5662, 67, 1330, 67, 2815, 12, 2815, 13, 3631, 309, 562, 12, 15556, 13, 422, 374, 30, 1172, 296, 10905, 353, 1008, 11, 1327, 562, 12, 15556, 13, 422, 404, 30, 1172, 315, 10905, 711, 1245, 761, 1995, 87, 30, 738, 87, 4970, 738, 261, 15556, 18, 3319, 1435, 63, 20, 5717, 469, 30, 1172, 315, 10905, 769, 353, 1995, 87, 4970, 738, 261, 1897, 12, 15556, 3719, 364, 498, 316, 365, 18, 588, 67, 15556, 67, 2452, 12, 15556, 4672, 1172, 1995, 87, 30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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 67, 15556, 12, 2890, 16, 3880, 16, 1801, 2218, 5923, 11, 4672, 3536, 7777, 326, 963, 471, 2939, 434, 326, 1375, 15556, 68, 1450, 864, 1375, 2815, 8338, 225, 2364, 7575, 854, 12734, 16, 6369, 16, 9286, 261, 1886, 3631, 471, 20440, 18, 225, 657, 648, 1846, 2545, 1338, 613, 326, 769, 16, 999, 4932, 1375, 967, 11311, 68, 628, 27376, 382, 5313, 18, 3536, 1172, 14609, 9, 87, 14, 296, 738, 261, 67, 5662, 67, 1330, 67, 2815, 12, 2815, 13, 3631, 309, 562, 12, 15556, 13, 422, 374, 30, 1172, 296, 10905, 353, 1008, 11, 1327, 562, 12, 15556, 13, 422, 404, 30, 1172, 315, 10905, 711, 1245, 761, 1995, 87, 30, 738, 87, 4970, 2 ]
subprocess.call(['taskkill.exe', '/PID', self._process.pid]) self._retcode = self._process.wait() return self._retcode
subprocess.call(['taskkill.exe', '/PID', str(self._process.pid)]) return self.retcode()
def kill(self): """Kill our running process if needed. Wait for kill to complete.
266cd3d6298af7058ba9162c8c5ab9babb5b23bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/266cd3d6298af7058ba9162c8c5ab9babb5b23bc/coverage_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 3536, 19045, 3134, 3549, 1207, 309, 3577, 18, 225, 5838, 364, 8673, 358, 3912, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 4672, 3536, 19045, 3134, 3549, 1207, 309, 3577, 18, 225, 5838, 364, 8673, 358, 3912, 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 ]
else: client[frame.frameMACAddress]= {serverMac:{"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}}
client[client_address][serverMac] = {"socket":socket, "to_client_buff":[], 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}
def newconn(socket, frame): # INIT SERVER # TODO handle the -1 connbuff size option if frame.frameMesgType == INIT_SERVER: print "Connected to new server: "+frame.frameMACAddress # declare a new buffer to store data from clients to the server buff = [] # setup the main server data structure server[frame.frameMACAddress] = {"socket":socket, "default_server_buff_size":int(frame.frameContent),"to_server_buff":buff} # send a response to the server resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise drop_server(frame.frameMACAddress) print "SocketError occured sending Status_Confirm Response to server: "+frame.frameMACAddress # launch threads to handle this server settimer(0,read_from_server,[frame.frameMACAddress]) settimer(0,write_to_server,[frame.frameMACAddress]) # INIT CLIENT elif frame.frameMesgType == INIT_CLIENT: serverMac = frame.frameContent found_server = (serverMac in server) # is the server available if found_server: this_server = server[serverMac] client_address = frame.frameMACAddress print "Connected Client: "+client_address+" to server: "+serverMac # buffer for messages from server to client buff = [] # is the client already connected if client_address in client: client[client_address][serverMac] = {"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()} # is this an initial connection else: client[frame.frameMACAddress]= {serverMac:{"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}} # send a response resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending Status Confirmed to client: "+client_address drop_client(frame.frameMACAddress,serverMac) print "Dropped Client: "+client_address return # Tell the server it has this client this_server['to_server_buff'].append(frame.toString()) # start threads to read and write from this client socket settimer(0,read_from_client,[client_address,serverMac]) settimer(0,write_to_client,[client_address,serverMac]) # The server is not available else: resp = NATFrame() resp.initAsForwarderResponse(STATUS_NO_SERVER) try: socket.send(resp.toString()) except Exception,e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending STATUS_NO_SERVER to client: "+frame.frameMACAddress drop_client(frame.frameMACAddress,serverMac) print frame.frameMACAddress+" has been dropped"
af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9/forwarder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 4646, 12, 7814, 16, 2623, 4672, 225, 468, 12584, 15061, 468, 2660, 1640, 326, 300, 21, 1487, 20664, 963, 1456, 309, 2623, 18, 3789, 49, 281, 75, 559, 422, 12584, 67, 4370, 30, 225, 1172, 315, 8932, 358, 394, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 14196, 279, 394, 1613, 358, 1707, 501, 628, 7712, 358, 326, 1438, 6139, 273, 225, 5378, 225, 468, 3875, 326, 2774, 1438, 501, 3695, 1438, 63, 3789, 18, 3789, 10875, 1887, 65, 273, 12528, 7814, 6877, 7814, 16, 315, 1886, 67, 3567, 67, 20664, 67, 1467, 6877, 474, 12, 3789, 18, 3789, 1350, 3631, 6, 869, 67, 3567, 67, 20664, 6877, 20664, 97, 225, 468, 1366, 279, 766, 358, 326, 1438, 1718, 273, 31395, 3219, 1435, 1718, 18, 2738, 1463, 30839, 1064, 12, 8608, 67, 2248, 1653, 54, 25773, 13, 775, 30, 2987, 18, 4661, 12, 12243, 18, 10492, 10756, 1335, 1185, 16, 425, 30, 309, 315, 7814, 6, 486, 316, 609, 12, 723, 12, 73, 3719, 471, 315, 4534, 6, 486, 316, 609, 12, 73, 4672, 1002, 3640, 67, 3567, 12, 3789, 18, 3789, 10875, 1887, 13, 1172, 315, 4534, 668, 16206, 5431, 2685, 67, 11269, 2306, 358, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 8037, 7403, 358, 1640, 333, 1438, 444, 12542, 12, 20, 16, 896, 67, 2080, 67, 3567, 16, 63, 3789, 18, 3789, 10875, 1887, 5717, 444, 12542, 12, 20, 16, 2626, 67, 869, 67, 3567, 16, 63, 3789, 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, 394, 4646, 12, 7814, 16, 2623, 4672, 225, 468, 12584, 15061, 468, 2660, 1640, 326, 300, 21, 1487, 20664, 963, 1456, 309, 2623, 18, 3789, 49, 281, 75, 559, 422, 12584, 67, 4370, 30, 225, 1172, 315, 8932, 358, 394, 1438, 30, 13773, 3789, 18, 3789, 10875, 1887, 225, 468, 14196, 279, 394, 1613, 358, 1707, 501, 628, 7712, 358, 326, 1438, 6139, 273, 225, 5378, 225, 468, 3875, 326, 2774, 1438, 501, 3695, 1438, 63, 3789, 18, 3789, 10875, 1887, 65, 273, 12528, 7814, 6877, 7814, 16, 315, 1886, 67, 3567, 67, 20664, 67, 1467, 6877, 474, 12, 3789, 18, 3789, 1350, 3631, 6, 869, 67, 3567, 67, 20664, 6877, 20664, 97, 225, 468, 1366, 279, 766, 2 ]
if len(prefixSpec) == 2 :
if not prefixSpec or not isinstance(prefixSpec, types.ListType): self._console.warn("Missing or incorrect prefix spec, might lead to incorrect resource id's.") elif len(prefixSpec) == 2 :
def extractFromPrefixSpec(prefixSpec): prefix = altprefix = "" if len(prefixSpec) == 2 : # prefixSpec = [ prefix, altprefix ] prefix, altprefix = prefixSpec elif len(prefixSpec) == 1: prefix = prefixSpec[0] altprefix = "" return prefix, altprefix
ac93a98c68c9641558765a1287864adbdd569790 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/ac93a98c68c9641558765a1287864adbdd569790/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 1265, 2244, 1990, 12, 3239, 1990, 4672, 1633, 273, 3770, 3239, 273, 1408, 309, 486, 1633, 1990, 578, 486, 1549, 12, 3239, 1990, 16, 1953, 18, 19366, 4672, 365, 6315, 8698, 18, 8935, 2932, 4841, 578, 11332, 1633, 857, 16, 4825, 5871, 358, 11332, 1058, 612, 1807, 1199, 13, 1327, 562, 12, 3239, 1990, 13, 422, 576, 294, 225, 468, 1633, 1990, 273, 306, 1633, 16, 3770, 3239, 308, 1633, 16, 3770, 3239, 273, 1633, 1990, 1327, 562, 12, 3239, 1990, 13, 422, 404, 30, 1633, 5411, 273, 1633, 1990, 63, 20, 65, 3770, 3239, 540, 273, 1408, 327, 1633, 16, 3770, 3239, 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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0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 1265, 2244, 1990, 12, 3239, 1990, 4672, 1633, 273, 3770, 3239, 273, 1408, 309, 486, 1633, 1990, 578, 486, 1549, 12, 3239, 1990, 16, 1953, 18, 19366, 4672, 365, 6315, 8698, 18, 8935, 2932, 4841, 578, 11332, 1633, 857, 16, 4825, 5871, 358, 11332, 1058, 612, 1807, 1199, 13, 1327, 562, 12, 3239, 1990, 13, 422, 576, 294, 225, 468, 1633, 1990, 273, 306, 1633, 16, 3770, 3239, 308, 1633, 16, 3770, 3239, 273, 1633, 1990, 1327, 562, 12, 3239, 1990, 13, 422, 404, 30, 1633, 5411, 273, 1633, 1990, 63, 20, 65, 3770, 3239, 540, 273, 1408, 327, 1633, 16, 3770, 3239, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'href': dispatch.translate(request, request.path_info, assigned_to=[get_profile(request.user)]) })
'href': dispatch.translate(request, request.path_info, assigned_to=[request.user.username]) })
def get_assigned_strings(request, path_obj, has_strings): if check_permission('translate', request): result = { 'text': _('Translate My Strings') } else: result = { 'text': _('View My Strings') } if has_strings: result.update({ 'href': dispatch.translate(request, request.path_info, assigned_to=[get_profile(request.user)]) }) else: result.update({ 'title': _('No strings assigned to you') }) return result
ca5b4ce1319a0201ba81d989496221a9934e2501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/ca5b4ce1319a0201ba81d989496221a9934e2501/item_dict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15938, 67, 10219, 12, 2293, 16, 589, 67, 2603, 16, 711, 67, 10219, 4672, 309, 866, 67, 9827, 2668, 13929, 2187, 590, 4672, 563, 273, 288, 296, 955, 4278, 389, 2668, 12818, 8005, 8139, 6134, 289, 469, 30, 563, 273, 288, 296, 955, 4278, 389, 2668, 1767, 8005, 8139, 6134, 289, 309, 711, 67, 10219, 30, 563, 18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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15938, 67, 10219, 12, 2293, 16, 589, 67, 2603, 16, 711, 67, 10219, 4672, 309, 866, 67, 9827, 2668, 13929, 2187, 590, 4672, 563, 273, 288, 296, 955, 4278, 389, 2668, 12818, 8005, 8139, 6134, 289, 469, 30, 563, 273, 288, 296, 955, 4278, 389, 2668, 1767, 8005, 8139, 6134, 289, 309, 711, 67, 10219, 30, 563, 18, 2725, 12590, 296, 7547, 4278, 225, 3435, 18, 13929, 12, 2293, 16, 590, 18, 803, 67, 1376, 16, 6958, 67, 869, 22850, 2293, 18, 1355, 18, 5053, 5717, 289, 13, 469, 30, 563, 18, 2725, 12590, 296, 2649, 4278, 389, 2668, 2279, 2064, 6958, 358, 1846, 6134, 289, 13, 327, 563, 225, 2, -100, -100, -100, -100, -100, -100 ]
self.allow_colorizing = 0 self.stop_colorizing = 1
self.allow_colorizing = False self.stop_colorizing = True
def close(self, close_when_done=None): if self.after_id: after_id = self.after_id self.after_id = None if DEBUG: print "cancel scheduled recolorizer" self.after_cancel(after_id) self.allow_colorizing = 0 self.stop_colorizing = 1 if close_when_done: if not self.colorizing: close_when_done.destroy() else: self.close_when_done = close_when_done
252b1b5cce18ce424fd13f1508a3e1d43aace433 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/252b1b5cce18ce424fd13f1508a3e1d43aace433/ColorDelegator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 1746, 67, 13723, 67, 8734, 33, 7036, 4672, 309, 365, 18, 5205, 67, 350, 30, 1839, 67, 350, 273, 365, 18, 5205, 67, 350, 365, 18, 5205, 67, 350, 273, 599, 309, 6369, 30, 1172, 315, 10996, 9755, 283, 3266, 1824, 6, 365, 18, 5205, 67, 10996, 12, 5205, 67, 350, 13, 365, 18, 5965, 67, 3266, 6894, 273, 1083, 365, 18, 5681, 67, 3266, 6894, 273, 1053, 309, 1746, 67, 13723, 67, 8734, 30, 309, 486, 365, 18, 3266, 6894, 30, 1746, 67, 13723, 67, 8734, 18, 11662, 1435, 469, 30, 365, 18, 4412, 67, 13723, 67, 8734, 273, 1746, 67, 13723, 67, 8734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 16, 1746, 67, 13723, 67, 8734, 33, 7036, 4672, 309, 365, 18, 5205, 67, 350, 30, 1839, 67, 350, 273, 365, 18, 5205, 67, 350, 365, 18, 5205, 67, 350, 273, 599, 309, 6369, 30, 1172, 315, 10996, 9755, 283, 3266, 1824, 6, 365, 18, 5205, 67, 10996, 12, 5205, 67, 350, 13, 365, 18, 5965, 67, 3266, 6894, 273, 1083, 365, 18, 5681, 67, 3266, 6894, 273, 1053, 309, 1746, 67, 13723, 67, 8734, 30, 309, 486, 365, 18, 3266, 6894, 30, 1746, 67, 13723, 67, 8734, 18, 11662, 1435, 469, 30, 365, 18, 4412, 67, 13723, 67, 8734, 273, 1746, 67, 13723, 67, 8734, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
You can also use the collection of pre-defined graphs, then create a DiGraph from them. :: sage: g=DiGraph(graphs.PetersenGraph())
You can also use the collection of pre-defined graphs, then create a digraph from them. :: sage: g = DiGraph(graphs.PetersenGraph())
def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. INPUT: - ``weight_function`` - A function that takes an edge and returns a numeric weight. Defaults to assigning each edge a weight of 1. - ``algorithm`` - Three variants of algorithms are implemented: 'Kruskal', 'Prim fringe', and 'Prim edge' (the last two are variants of Prim's algorithm). Defaults to 'Kruskal'. Currently, 'Prim fringe' ignores the labels on the edges. - ``starting_vertex`` - The vertex with which to start Prim's algorithm. OUTPUT: the edges of a minimum spanning tree. EXAMPLES:: sage: g=graphs.CompleteGraph(5) sage: len(g.min_spanning_tree()) 4 sage: weight = lambda e: 1/( (e[0]+1)*(e[1]+1) ) sage: g.min_spanning_tree(weight_function=weight) [(3, 4, None), (2, 4, None), (1, 4, None), (0, 4, None)] sage: g.min_spanning_tree(algorithm='Prim edge', starting_vertex=2, weight_function=weight) [(2, 4, None), (3, 4, None), (1, 3, None), (0, 4, None)] sage: g.min_spanning_tree(algorithm='Prim fringe', starting_vertex=2, weight_function=weight) [(4, 2), (3, 4), (1, 4), (0, 4)] """ if self.is_connected()==False: return False
a1371df28f1a50021d7507de4e96bdcb7caafce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a1371df28f1a50021d7507de4e96bdcb7caafce8/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 18, 225, 12943, 30, 282, 300, 225, 12176, 4865, 67, 915, 10335, 300, 432, 445, 716, 5530, 392, 3591, 471, 1135, 279, 6389, 3119, 18, 14159, 358, 28639, 1517, 3591, 279, 3119, 434, 404, 18, 225, 300, 225, 12176, 12743, 10335, 300, 935, 992, 12935, 434, 20032, 854, 8249, 30, 296, 47, 8010, 79, 287, 2187, 296, 2050, 381, 3812, 30391, 2187, 471, 296, 2050, 381, 3591, 11, 261, 5787, 1142, 2795, 854, 12935, 434, 2301, 381, 1807, 4886, 2934, 14159, 358, 296, 47, 8010, 79, 287, 10332, 15212, 16, 296, 2050, 381, 3812, 30391, 11, 17868, 326, 3249, 603, 326, 5231, 18, 225, 300, 225, 12176, 18526, 67, 15281, 10335, 300, 1021, 5253, 598, 1492, 358, 787, 2301, 381, 1807, 4886, 18, 282, 11550, 30, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 314, 33, 30016, 18, 6322, 4137, 12, 25, 13, 272, 410, 30, 562, 12, 75, 18, 1154, 67, 1752, 10903, 67, 3413, 10756, 1059, 272, 410, 30, 3119, 273, 3195, 425, 30, 404, 19, 12, 261, 73, 63, 20, 3737, 21, 17653, 12, 73, 63, 21, 3737, 21, 13, 262, 272, 410, 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, 67, 1752, 10903, 67, 3413, 12, 2890, 16, 3119, 67, 915, 33, 14661, 425, 30, 404, 16, 4886, 2218, 47, 8010, 79, 287, 2187, 5023, 67, 15281, 33, 7036, 262, 30, 3536, 2860, 326, 5231, 434, 279, 5224, 1694, 10903, 2151, 16, 309, 1245, 1704, 16, 3541, 1135, 1083, 18, 225, 12943, 30, 282, 300, 225, 12176, 4865, 67, 915, 10335, 300, 432, 445, 716, 5530, 392, 3591, 471, 1135, 279, 6389, 3119, 18, 14159, 358, 28639, 1517, 3591, 279, 3119, 434, 404, 18, 225, 300, 225, 12176, 12743, 10335, 300, 935, 992, 12935, 434, 20032, 854, 8249, 30, 296, 47, 8010, 79, 287, 2187, 296, 2050, 381, 3812, 30391, 2187, 471, 296, 2050, 381, 3591, 11, 2 ]
s = [f.read().split(":"), f.read().split(":")]
s = f.readlines()
def load_score(self): try: f = file(os.path.join(os.path.abspath('.'), 'visualmatch.score'), "r") s = [f.read().split(":"), f.read().split(":")] f.close self.vmw.low_score = (int(s[0]), int(s[1])) print "low score is: %d" % (self.vmw.low_score) except: self.vmw.low_score = [-1, -1]
e4a64eca2c257da825c8379d225fa379555ffb85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/e4a64eca2c257da825c8379d225fa379555ffb85/visualmatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6355, 12, 2890, 4672, 775, 30, 284, 273, 585, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 2668, 1093, 3631, 296, 26671, 1916, 18, 6355, 19899, 315, 86, 7923, 272, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 365, 18, 3489, 91, 18, 821, 67, 6355, 273, 261, 474, 12, 87, 63, 20, 65, 3631, 509, 12, 87, 63, 21, 22643, 1172, 315, 821, 4462, 353, 30, 738, 72, 6, 738, 261, 2890, 18, 3489, 91, 18, 821, 67, 6355, 13, 1335, 30, 365, 18, 3489, 91, 18, 821, 67, 6355, 273, 23059, 21, 16, 300, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6355, 12, 2890, 4672, 775, 30, 284, 273, 585, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 2668, 1093, 3631, 296, 26671, 1916, 18, 6355, 19899, 315, 86, 7923, 272, 273, 284, 18, 896, 3548, 1435, 284, 18, 4412, 365, 18, 3489, 91, 18, 821, 67, 6355, 273, 261, 474, 12, 87, 63, 20, 65, 3631, 509, 12, 87, 63, 21, 22643, 1172, 315, 821, 4462, 353, 30, 738, 72, 6, 738, 261, 2890, 18, 3489, 91, 18, 821, 67, 6355, 13, 1335, 30, 365, 18, 3489, 91, 18, 821, 67, 6355, 273, 23059, 21, 16, 300, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.__sections.has_key(section)
return section in self.sections()
def has_section(self, section): """Indicate whether the named section is present in the configuration.
3ef3039d1728bcb72ff9d637d2063d2dc8b75710 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3ef3039d1728bcb72ff9d637d2063d2dc8b75710/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3464, 12, 2890, 16, 2442, 4672, 3536, 3866, 2659, 2856, 326, 4141, 2442, 353, 3430, 316, 326, 1664, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3464, 12, 2890, 16, 2442, 4672, 3536, 3866, 2659, 2856, 326, 4141, 2442, 353, 3430, 316, 326, 1664, 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 ]
if not infoDict[ 'VOMS' ]:
if 'VOMS' not in infoDict or not infoDict[ 'VOMS' ]:
def invalidProxy( msg ): print "[INVALID] %s" % msg sys.exit(1)
39482821ee2a8bbbed416ff21a659cf53b7e8061 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/39482821ee2a8bbbed416ff21a659cf53b7e8061/dirac-proxy-info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2057, 3886, 12, 1234, 262, 30, 1172, 5158, 9347, 65, 738, 87, 6, 738, 1234, 2589, 18, 8593, 12, 21, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2057, 3886, 12, 1234, 262, 30, 1172, 5158, 9347, 65, 738, 87, 6, 738, 1234, 2589, 18, 8593, 12, 21, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 os.name == "nt": ext = ".exe" elif os.name == "mac": ext = ".app" default_path = os.path.join(os.path.dirname(sys.argv[0]), 'blenderplayer'+ext) player_path = StringProperty(name="Player Path", description="The path to the player to use", default=default_path)
default_player_path = os.path.join(blender_bin_dir, 'blenderplayer' + ext) player_path = StringProperty(name="Player Path", description="The path to the player to use", default=default_player_path)
def WriteRuntime(player_path, output_path): # Check the paths if not os.path.isfile(player_path): print("The player could not be found! Runtime not saved.") return # Check if we're bundling a .app if player_path.endswith('.app'): WriteAppleRuntime(player_path, output_path) return # Get the player's binary and the offset for the blend file = open(player_path, 'rb') player_d = file.read() offset = file.tell() file.close() # Create a tmp blend file blend_path = bpy.path.clean_name(output_path) bpy.ops.wm.save_as_mainfile(filepath=blend_path, copy=True) blend_path += '.blend' # Get the blend data file = open(blend_path, 'rb') blend_d = file.read() file.close() # Get rid of the tmp blend, we're done with it os.remove(blend_path) # Create a new file for the bundled runtime output = open(output_path, 'wb') # Write the player and blend data to the new runtime output.write(player_d) output.write(blend_d) # Store the offset (an int is 4 bytes, so we split it up into 4 bytes and save it) output.write(struct.pack('B', (offset>>24)&0xFF)) output.write(struct.pack('B', (offset>>16)&0xFF)) output.write(struct.pack('B', (offset>>8)&0xFF)) output.write(struct.pack('B', (offset>>0)&0xFF)) # Stuff for the runtime output.write("BRUNTIME".encode()) output.close() # Make the runtime executable on Linux if os.name == 'posix': os.chmod(output_path, 0o755)
9b70afa0d4189c04821edadce1fad4edd972f1eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/9b70afa0d4189c04821edadce1fad4edd972f1eb/game_engine_save_as_runtime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 5576, 12, 14872, 67, 803, 16, 876, 67, 803, 4672, 225, 468, 2073, 326, 2953, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 14872, 67, 803, 4672, 1172, 2932, 1986, 7291, 3377, 486, 506, 1392, 5, 2509, 486, 5198, 1199, 13, 327, 225, 468, 2073, 309, 732, 4565, 324, 1074, 2456, 279, 263, 2910, 309, 7291, 67, 803, 18, 5839, 1918, 2668, 18, 2910, 11, 4672, 2598, 1294, 1802, 5576, 12, 14872, 67, 803, 16, 876, 67, 803, 13, 327, 225, 468, 968, 326, 7291, 1807, 3112, 471, 326, 1384, 364, 326, 24052, 585, 273, 1696, 12, 14872, 67, 803, 16, 296, 6731, 6134, 7291, 67, 72, 273, 585, 18, 896, 1435, 1384, 273, 585, 18, 88, 1165, 1435, 585, 18, 4412, 1435, 225, 468, 1788, 279, 1853, 24052, 585, 24052, 67, 803, 273, 324, 2074, 18, 803, 18, 6200, 67, 529, 12, 2844, 67, 803, 13, 324, 2074, 18, 4473, 18, 91, 81, 18, 5688, 67, 345, 67, 5254, 768, 12, 10561, 33, 3083, 409, 67, 803, 16, 1610, 33, 5510, 13, 24052, 67, 803, 1011, 2418, 3083, 409, 11, 282, 468, 968, 326, 24052, 501, 585, 273, 1696, 12, 3083, 409, 67, 803, 16, 296, 6731, 6134, 24052, 67, 72, 273, 585, 18, 896, 1435, 585, 18, 4412, 1435, 225, 468, 968, 10911, 434, 326, 1853, 24052, 16, 732, 4565, 2731, 598, 518, 1140, 18, 4479, 12, 3083, 409, 67, 803, 13, 225, 468, 1788, 279, 394, 585, 364, 326, 324, 24467, 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, 2598, 5576, 12, 14872, 67, 803, 16, 876, 67, 803, 4672, 225, 468, 2073, 326, 2953, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 14872, 67, 803, 4672, 1172, 2932, 1986, 7291, 3377, 486, 506, 1392, 5, 2509, 486, 5198, 1199, 13, 327, 225, 468, 2073, 309, 732, 4565, 324, 1074, 2456, 279, 263, 2910, 309, 7291, 67, 803, 18, 5839, 1918, 2668, 18, 2910, 11, 4672, 2598, 1294, 1802, 5576, 12, 14872, 67, 803, 16, 876, 67, 803, 13, 327, 225, 468, 968, 326, 7291, 1807, 3112, 471, 326, 1384, 364, 326, 24052, 585, 273, 1696, 12, 14872, 67, 803, 16, 296, 6731, 6134, 7291, 67, 72, 273, 585, 18, 896, 1435, 1384, 273, 585, 18, 2 ]
i.sort()
i.sort(key=lambda (x,y): x)
def to_tuple(d): i = d.items() i.sort() return tuple(i)
8ae66dedb4f18bb5fee03321ca44c4596a0493d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/8ae66dedb4f18bb5fee03321ca44c4596a0493d0/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 8052, 12, 72, 4672, 277, 273, 302, 18, 3319, 1435, 277, 18, 3804, 12, 856, 33, 14661, 261, 92, 16, 93, 4672, 619, 13, 327, 3193, 12, 77, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 358, 67, 8052, 12, 72, 4672, 277, 273, 302, 18, 3319, 1435, 277, 18, 3804, 12, 856, 33, 14661, 261, 92, 16, 93, 4672, 619, 13, 327, 3193, 12, 77, 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 ]
self.append_statement = "INSERT INTO %s (%s) VALUES (%s)" % (self.dbtablename, ",".join(self.dbcolumnnames), ",".join("?" * len(self.dbcolumnnames)))
params = { "sqlite3": ",".join("?" * len(self.dbcolumnnames)), "mysql": ",".join(["%s"] * len(self.dbcolumnnames)) }[connection_db_type(self.connection)] self.append_statement = "INSERT INTO %s (%s) VALUES (%s)" % (self.dbtablename, ",".join(self.dbcolumnnames), params)
def _end_of_columns(self): table.Table._end_of_columns(self) # dbcolumnnames and types have the "not loaded" columns # removed if self.loadcolumns is not None: self.dbcolumnnames = [name for name in self.columnnames if name in self.loadcolumns] self.dbcolumntypes = [name for i, name in enumerate(self.columntypes) if self.columnnames[i] in self.loadcolumns] else: self.dbcolumnnames = self.columnnames self.dbcolumntypes = self.columntypes
bba59742cb4d1d950583f58105082465812d2b8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/bba59742cb4d1d950583f58105082465812d2b8c/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 792, 67, 5112, 12, 2890, 4672, 1014, 18, 1388, 6315, 409, 67, 792, 67, 5112, 12, 2890, 13, 468, 1319, 2827, 1973, 471, 1953, 1240, 326, 315, 902, 4203, 6, 2168, 468, 3723, 309, 365, 18, 945, 5112, 353, 486, 599, 30, 365, 18, 1966, 2827, 1973, 273, 306, 529, 364, 508, 316, 365, 18, 2827, 1973, 309, 508, 316, 365, 18, 945, 5112, 65, 365, 18, 1966, 1293, 379, 496, 989, 273, 306, 529, 364, 277, 16, 508, 316, 4241, 12, 2890, 18, 1293, 379, 496, 989, 13, 309, 365, 18, 2827, 1973, 63, 77, 65, 316, 365, 18, 945, 5112, 65, 469, 30, 365, 18, 1966, 2827, 1973, 273, 365, 18, 2827, 1973, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 792, 67, 5112, 12, 2890, 4672, 1014, 18, 1388, 6315, 409, 67, 792, 67, 5112, 12, 2890, 13, 468, 1319, 2827, 1973, 471, 1953, 1240, 326, 315, 902, 4203, 6, 2168, 468, 3723, 309, 365, 18, 945, 5112, 353, 486, 599, 30, 365, 18, 1966, 2827, 1973, 273, 306, 529, 364, 508, 316, 365, 18, 2827, 1973, 309, 508, 316, 365, 18, 945, 5112, 65, 365, 18, 1966, 1293, 379, 496, 989, 273, 306, 529, 364, 277, 16, 508, 316, 4241, 12, 2890, 18, 1293, 379, 496, 989, 13, 309, 365, 18, 2827, 1973, 63, 77, 65, 316, 365, 18, 945, 5112, 65, 469, 30, 365, 18, 1966, 2827, 1973, 273, 365, 18, 2827, 1973, 2 ]
for c in self.cstack: c[(f.f_code.co_filename, f.f_lineno)] = 1
def t(self, f, w, unused): #pragma: no cover if w == 'line': #print "Executing %s @ %d" % (f.f_code.co_filename, f.f_lineno) self.c[(f.f_code.co_filename, f.f_lineno)] = 1 for c in self.cstack: c[(f.f_code.co_filename, f.f_lineno)] = 1 return self.t
6554c74cd9574cf89b8acd0a0333651afacbfa8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/6554c74cd9574cf89b8acd0a0333651afacbfa8e/coverage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 12, 2890, 16, 284, 16, 341, 16, 10197, 4672, 4766, 282, 468, 683, 9454, 30, 1158, 5590, 309, 341, 422, 296, 1369, 4278, 468, 1188, 315, 22134, 738, 87, 632, 738, 72, 6, 738, 261, 74, 18, 74, 67, 710, 18, 2894, 67, 3459, 16, 284, 18, 74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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 12, 2890, 16, 284, 16, 341, 16, 10197, 4672, 4766, 282, 468, 683, 9454, 30, 1158, 5590, 309, 341, 422, 296, 1369, 4278, 468, 1188, 315, 22134, 738, 87, 632, 738, 72, 6, 738, 261, 74, 18, 74, 67, 710, 18, 2894, 67, 3459, 16, 284, 18, 74, 67, 17782, 13, 365, 18, 71, 63, 12, 74, 18, 74, 67, 710, 18, 2894, 67, 3459, 16, 284, 18, 74, 67, 17782, 25887, 273, 404, 282, 327, 365, 18, 88, 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 ]
crc = binascii.crc32("Test the CRC-32 of") crc = binascii.crc32(" this string.", crc)
crc = binascii.crc32(self.type2test("Test the CRC-32 of")) crc = binascii.crc32(self.type2test(" this string."), crc)
def test_crc32(self): crc = binascii.crc32("Test the CRC-32 of") crc = binascii.crc32(" this string.", crc) self.assertEqual(crc, 1571220330)
56917fffc941f205cbeb70b1cd4a3d4666741ebc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/56917fffc941f205cbeb70b1cd4a3d4666741ebc/test_binascii.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 22988, 1578, 12, 2890, 4672, 10619, 273, 28222, 18, 22988, 1578, 12, 2890, 18, 723, 22, 3813, 2932, 4709, 326, 21773, 17, 1578, 434, 6, 3719, 10619, 273, 28222, 18, 22988, 1578, 12, 2890, 18, 723, 22, 3813, 2932, 333, 533, 1199, 3631, 10619, 13, 365, 18, 11231, 5812, 12, 22988, 16, 4711, 27, 2138, 3462, 3707, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22988, 1578, 12, 2890, 4672, 10619, 273, 28222, 18, 22988, 1578, 12, 2890, 18, 723, 22, 3813, 2932, 4709, 326, 21773, 17, 1578, 434, 6, 3719, 10619, 273, 28222, 18, 22988, 1578, 12, 2890, 18, 723, 22, 3813, 2932, 333, 533, 1199, 3631, 10619, 13, 365, 18, 11231, 5812, 12, 22988, 16, 4711, 27, 2138, 3462, 3707, 20, 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 ]
def SetMemberName(id, member_offset, name):
def SetMemberName(sid, member_offset, name):
def SetMemberName(id, member_offset, name): """ Change structure member name @param id: structure type ID @param member_offset: offset of the member @param name: new name of the member @return: != 0 - ok. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.set_member_name(s, member_offset, name)
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 4419, 461, 12, 7453, 16, 3140, 67, 3348, 16, 508, 4672, 3536, 7576, 3695, 3140, 508, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 1384, 434, 326, 3140, 632, 891, 508, 30, 394, 508, 434, 326, 3140, 225, 632, 2463, 30, 480, 374, 300, 1529, 18, 3536, 272, 273, 612, 69, 2425, 18, 588, 67, 701, 5286, 12, 350, 13, 309, 486, 272, 30, 327, 374, 225, 327, 612, 69, 2425, 18, 542, 67, 5990, 67, 529, 12, 87, 16, 3140, 67, 3348, 16, 508, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4419, 461, 12, 7453, 16, 3140, 67, 3348, 16, 508, 4672, 3536, 7576, 3695, 3140, 508, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 1384, 434, 326, 3140, 632, 891, 508, 30, 394, 508, 434, 326, 3140, 225, 632, 2463, 30, 480, 374, 300, 1529, 18, 3536, 272, 273, 612, 69, 2425, 18, 588, 67, 701, 5286, 12, 350, 13, 309, 486, 272, 30, 327, 374, 225, 327, 612, 69, 2425, 18, 542, 67, 5990, 67, 529, 12, 87, 16, 3140, 67, 3348, 16, 508, 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 ]
if(abs(npy.sqrt(atoms.d * atoms.d).sum()) > self.maxstep): atoms.d = atoms.du * self.maxstep atoms.r += atoms.d
if(abs(npy.sqrt(self.d * self.d).sum()) > self.maxstep): self.d = self.du * self.maxstep self.r += self.d atoms.set_positions(self.r)
def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',atoms.r atoms.f = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.f[i-1] = atoms.images[i].get_forces() print >> g,'atoms.f',atoms.f try: atoms.start except:atoms.start=0 if(not atoms.start): atoms.start = 1 atoms.a = npy.zeros(self.memory+1, 'd') self.ptmp = atoms self.maxstep = npy.sqrt(self.maxstep * self.ni) atoms.lbfgsinit = 0 try: atoms.lbfgsinit except:atoms.lbfgsinit=0 if(not atoms.lbfgsinit): atoms.lbfgsinit = 1 atoms.Ho = npy.ones((self.ni, atoms.natoms, self.dim), 'd') if (not self.min=='line'):atoms.Ho = atoms.Ho * self.alpha atoms.ITR = 1 atoms.s = [1.] atoms.y = [1.] atoms.rho = [1.] else: a1 = abs (npy.vdot(atoms.f, atoms.f_old)) a2 = npy.vdot(atoms.f_old, atoms.f_old) print 'a1,a2 created',a1,a2 if(self.min=='line'): if(a1<=0.5* a2 and a2!=0): reset_flag = 0 else: reset_flag = 1 else: reset_flag = 0 if(reset_flag==0): g1 = open('out1','w') g2 = open('out2','w') print >> g1,'atoms.r',atoms.r print >> g2,'atoms.r_old',atoms.r_old ITR = atoms.ITR#correctly generated if(ITR > self.memory): atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) ITR=self.memory atoms.s.append(atoms.r - atoms.r_old)#!!atoms.r is not updating # boundry cond # for i in range(atoms.ni): # if(method=='min'):i=0 # try: # DBC(atoms.s[ITR][i],atoms.p[i].Box) #need to make matrix for box # except: # print "Box not found." # if(method=='min'):break atoms.y.append(-(atoms.f-atoms.f_old)) atoms.rho.append(1/npy.vdot(atoms.y[ITR],atoms.s[ITR])) atoms.ITR += 1 else:
689ed3715e535adf898039f50971002aa6c5a5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/689ed3715e535adf898039f50971002aa6c5a5e9/glbfgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, 20, 468, 309, 12, 902, 365, 18, 15834, 4672, 14937, 18, 381, 651, 33, 21, 314, 273, 1696, 2668, 659, 17023, 91, 6134, 9006, 18, 86, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 86, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 12388, 1435, 1172, 1671, 314, 11189, 14937, 18, 86, 2187, 14937, 18, 86, 9006, 18, 74, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 74, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 1884, 764, 1435, 1172, 1671, 314, 11189, 14937, 18, 74, 2187, 14937, 18, 74, 775, 30, 9006, 18, 1937, 1335, 30, 14937, 18, 1937, 33, 20, 309, 12, 902, 9006, 18, 1937, 4672, 9006, 18, 1937, 273, 404, 9006, 18, 69, 273, 1130, 93, 18, 22008, 12, 2890, 18, 7858, 15, 21, 16, 296, 72, 6134, 365, 18, 337, 1291, 273, 9006, 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, 2235, 12, 2890, 16, 284, 4672, 9006, 273, 365, 18, 14937, 365, 18, 15834, 273, 9006, 18, 82, 7369, 17, 22, 468, 775, 30, 9006, 18, 381, 651, 468, 1335, 30, 9006, 18, 381, 651, 33, 20, 468, 309, 12, 902, 365, 18, 15834, 4672, 14937, 18, 381, 651, 33, 21, 314, 273, 1696, 2668, 659, 17023, 91, 6134, 9006, 18, 86, 273, 1130, 93, 18, 22008, 12443, 2890, 18, 15834, 16, 9006, 18, 82, 14937, 16, 365, 18, 3509, 3631, 296, 72, 6134, 364, 277, 316, 1048, 12, 21, 16, 9006, 18, 82, 7369, 17, 21, 4672, 9006, 18, 86, 63, 77, 17, 21, 65, 273, 9006, 18, 7369, 63, 77, 8009, 588, 67, 12388, 1435, 1172, 2 ]
@register.inclusion_tag("shared_css.html")
@register.inclusion_tag(("shared_css.html", "../shared_css.html"))
def maps_javascript(): return {'App': App}
0f07c344864f199248f8978bf545cf3e0ae21a2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/0f07c344864f199248f8978bf545cf3e0ae21a2a/templatetags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7565, 67, 11242, 13332, 327, 13666, 3371, 4278, 4677, 97, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7565, 67, 11242, 13332, 327, 13666, 3371, 4278, 4677, 97, 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 ]
'virStorageVolGetUUID', 'virStorageVolLookupByUUID',
def enum(type, name, value): if not enums.has_key(type): enums[type] = {} enums[type][name] = value
1b58a90c1a40d555fd82d91e89f8cf0a51042059 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8293/1b58a90c1a40d555fd82d91e89f8cf0a51042059/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 12, 723, 16, 508, 16, 460, 4672, 309, 486, 17922, 18, 5332, 67, 856, 12, 723, 4672, 17922, 63, 723, 65, 273, 2618, 17922, 63, 723, 6362, 529, 65, 273, 460, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 12, 723, 16, 508, 16, 460, 4672, 309, 486, 17922, 18, 5332, 67, 856, 12, 723, 4672, 17922, 63, 723, 65, 273, 2618, 17922, 63, 723, 6362, 529, 65, 273, 460, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except (dns.query.BadResponse, dns.message.TrailingJunk, dns.query.UnexpectedSource) as exc:
except (dns.query.BadResponse, dns.message.TrailingJunk, dns.query.UnexpectedSource), exc:
def TimedRequest(self, type_string, record_string): """Make a DNS request, returning the reply and duration it took.
aa965b257d24fc3ba4bcc906e75097784686aba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/aa965b257d24fc3ba4bcc906e75097784686aba7/nameserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23925, 691, 12, 2890, 16, 618, 67, 1080, 16, 1409, 67, 1080, 4672, 3536, 6464, 279, 8858, 590, 16, 5785, 326, 4332, 471, 3734, 518, 23151, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23925, 691, 12, 2890, 16, 618, 67, 1080, 16, 1409, 67, 1080, 4672, 3536, 6464, 279, 8858, 590, 16, 5785, 326, 4332, 471, 3734, 518, 23151, 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 ]
except ValuError:
except ValueError:
def sort(self, mode=None): """ Returns the string how to sort this item """ if mode == 'date': if self.filename: return u'%s%s' % (os.stat(self.filename).st_ctime, Unicode(self.filename)) if mode == 'advanced': # sort by track number try: return '%0.3i-%s' % (int(self['trackno']), Unicode(self.url)) except ValuError: return '%s-%s' % (Unicode(self['trackno']), Unicode(self.url)) return Unicode(self.url)
35ba99b5ccb8b0647380bde7ac80bbc9161d3b44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/35ba99b5ccb8b0647380bde7ac80bbc9161d3b44/audioitem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 12, 2890, 16, 1965, 33, 7036, 4672, 3536, 2860, 326, 533, 3661, 358, 1524, 333, 761, 3536, 309, 1965, 422, 296, 712, 4278, 309, 365, 18, 3459, 30, 327, 582, 11, 9, 87, 9, 87, 11, 738, 261, 538, 18, 5642, 12, 2890, 18, 3459, 2934, 334, 67, 21261, 16, 9633, 12, 2890, 18, 3459, 3719, 309, 1965, 422, 296, 27080, 4278, 468, 1524, 635, 3298, 1300, 775, 30, 327, 1995, 20, 18, 23, 77, 6456, 87, 11, 738, 261, 474, 12, 2890, 3292, 4101, 2135, 3546, 3631, 9633, 12, 2890, 18, 718, 3719, 1335, 2068, 30, 327, 1995, 87, 6456, 87, 11, 738, 261, 16532, 12, 2890, 3292, 4101, 2135, 3546, 3631, 9633, 12, 2890, 18, 718, 3719, 327, 9633, 12, 2890, 18, 718, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 12, 2890, 16, 1965, 33, 7036, 4672, 3536, 2860, 326, 533, 3661, 358, 1524, 333, 761, 3536, 309, 1965, 422, 296, 712, 4278, 309, 365, 18, 3459, 30, 327, 582, 11, 9, 87, 9, 87, 11, 738, 261, 538, 18, 5642, 12, 2890, 18, 3459, 2934, 334, 67, 21261, 16, 9633, 12, 2890, 18, 3459, 3719, 309, 1965, 422, 296, 27080, 4278, 468, 1524, 635, 3298, 1300, 775, 30, 327, 1995, 20, 18, 23, 77, 6456, 87, 11, 738, 261, 474, 12, 2890, 3292, 4101, 2135, 3546, 3631, 9633, 12, 2890, 18, 718, 3719, 1335, 2068, 30, 327, 1995, 87, 6456, 87, 11, 738, 261, 16532, 12, 2890, 3292, 4101, 2135, 3546, 3631, 9633, 12, 2890, 18, 2 ]
def my_scroller_go_900_900(obj, sc, *args, **kwargs):
def my_scroller_go_900_900(obj, sc):
def my_scroller_go_900_900(obj, sc, *args, **kwargs): sc.region_bring_in(900, 900, 318, 318)
ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 1017, 1539, 67, 3240, 67, 29, 713, 67, 29, 713, 12, 2603, 16, 888, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 29, 713, 16, 2468, 713, 16, 890, 2643, 16, 890, 2643, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3399, 67, 1017, 1539, 67, 3240, 67, 29, 713, 67, 29, 713, 12, 2603, 16, 888, 4672, 888, 18, 6858, 67, 2848, 310, 67, 267, 12, 29, 713, 16, 2468, 713, 16, 890, 2643, 16, 890, 2643, 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 ]
return "%s.%s" % (_strclass(self.__class__), self.__testMethodName)
return "%s.%s" % (_strclass(self.__class__), self._testMethodName)
def id(self): return "%s.%s" % (_strclass(self.__class__), self.__testMethodName)
dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 12, 2890, 4672, 327, 2213, 87, 7866, 87, 6, 738, 261, 67, 701, 1106, 12, 2890, 16186, 1106, 972, 3631, 365, 16186, 3813, 11666, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 612, 12, 2890, 4672, 327, 2213, 87, 7866, 87, 6, 738, 261, 67, 701, 1106, 12, 2890, 16186, 1106, 972, 3631, 365, 16186, 3813, 11666, 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 ]
print bold("[error]: Value must be a valid number")
print bold("> Error: Value must be a valid number")
def e17_bshade(): import pyetun_bshade try: print "> Border Shade Options:" # border shade animate if pyetun_bshade.get_bshade() == "1": print bold_yellow("=> "), print "Border shade animation - ENABLED (1)" elif pyetun_bshade.get_bshade() == "0": print bold_yellow("=> "), print "Border shade animation - DISABLED (0)" #border shade transition print bold_yellow("=> "), print "Shading animation algorithm -", print pyetun_bshade.get_trans_alg() #shading speed (pixels/sec) print bold_yellow("=> "), print "Shading Speed -", print pyetun_bshade.get_shade_speed(), print "pixels/sec" #Options print bold_red("> Options: ") print bold_green("[B]ORDER SHADE ANIMATION <0/1>") print bold_green("[A]NIMATION ALGORITHM <value between 0 and 3>") print bold_green("[S]HADING SPEED <value>") print "> CTRL+C - Main Menu" valu=raw_input("Option: ") while 1: try: t=valu.split(" ") opt=t[0] value=t[1] except: print bold ("> Error: m00, wrong move! Try again..") e17_bshade() if opt=="b": try: value=int(value) if value>=0 and value<=1: pyetun_bshade.set_bshade(value) print bold("Done!") e17_bshade() else: print bold("[error]: Value between 0 and 1") e17_bshade() except ValueError: print bold("[error]: Value between 0 and 1") e17_bshade() elif opt=="a": try: value=int(value) if value>=0 and value<=3: pyetun_bshade.set_trans_alg(value) print bold("Done!") e17_bshade() else: print bold("[error]: Value between 0 and 1") e17_bshade() except ValueError: print bold("[error]: Value between 0 and 1") e17_bshade() elif opt=="s": try: value=float(value) pyetun_bshade.set_shade_speed(value) print bold("Done!") e17_bshade() except ValueError: print bold("[error]: Value must be a valid number") e17_bshade() else: print bold("[error] m000 wrong option!") e17_bshade() except KeyboardInterrupt: print "\nOops! exiting ;)" console()
2dc56bf12f43e29753088b6cfaeea43096646f6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/2dc56bf12f43e29753088b6cfaeea43096646f6a/pyetun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 4033, 67, 70, 674, 2486, 13332, 1930, 2395, 278, 318, 67, 70, 674, 2486, 775, 30, 1172, 14402, 13525, 2638, 2486, 5087, 2773, 225, 468, 5795, 699, 2486, 14671, 309, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 70, 674, 2486, 1435, 422, 315, 21, 6877, 225, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 8107, 699, 2486, 8794, 300, 29848, 261, 21, 2225, 1327, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 70, 674, 2486, 1435, 422, 315, 20, 6877, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 8107, 699, 2486, 8794, 300, 17641, 9530, 261, 20, 2225, 468, 8815, 699, 2486, 6007, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 1555, 14968, 8794, 4886, 300, 3113, 1172, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 2338, 67, 18413, 1435, 468, 674, 14968, 8632, 261, 21084, 19, 3321, 13, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 1555, 14968, 348, 5868, 300, 3113, 1172, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 674, 2486, 67, 13871, 9334, 1172, 315, 21084, 19, 3321, 6, 225, 468, 1320, 1172, 13068, 67, 1118, 2932, 34, 5087, 30, 9369, 1172, 13068, 67, 11571, 2932, 63, 38, 65, 7954, 9777, 1639, 8175, 3445, 2689, 411, 20, 19, 21, 2984, 13, 1172, 13068, 67, 11571, 2932, 63, 37, 65, 50, 3445, 2689, 7981, 22548, 411, 1132, 3086, 374, 471, 890, 2984, 13, 1172, 13068, 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, 425, 4033, 67, 70, 674, 2486, 13332, 1930, 2395, 278, 318, 67, 70, 674, 2486, 775, 30, 1172, 14402, 13525, 2638, 2486, 5087, 2773, 225, 468, 5795, 699, 2486, 14671, 309, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 70, 674, 2486, 1435, 422, 315, 21, 6877, 225, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 8107, 699, 2486, 8794, 300, 29848, 261, 21, 2225, 1327, 2395, 278, 318, 67, 70, 674, 2486, 18, 588, 67, 70, 674, 2486, 1435, 422, 315, 20, 6877, 1172, 13068, 67, 19227, 2932, 9207, 315, 3631, 1172, 315, 8107, 699, 2486, 8794, 300, 17641, 9530, 261, 20, 2225, 468, 8815, 699, 2486, 6007, 1172, 13068, 67, 19227, 2932, 2 ]
idstring = "$Id: notation3.py,v 1.67 2001-04-26 05:13:27 connolly Exp $"
idstring = "$Id: notation3.py,v 1.68 2001-05-08 08:14:51 connolly Exp $"
def startDoc(self):
9d87456fb6b9ea807cc2539ce6094e4f47e95cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/9d87456fb6b9ea807cc2539ce6094e4f47e95cbb/notation3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1759, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
sys.stderr.write('MH error: %\n' % (msg % args))
sys.stderr.write('MH error: %s\n' % (msg % args))
def error(self, msg, *args): sys.stderr.write('MH error: %\n' % (msg % args))
ca4080248ab45f039942df6137766b3f37621321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ca4080248ab45f039942df6137766b3f37621321/mhlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1234, 16, 380, 1968, 4672, 2589, 18, 11241, 18, 2626, 2668, 49, 44, 555, 30, 738, 64, 82, 11, 738, 261, 3576, 738, 833, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 1652, 555, 12, 2890, 16, 1234, 16, 380, 1968, 4672, 2589, 18, 11241, 18, 2626, 2668, 49, 44, 555, 30, 738, 64, 82, 11, 738, 261, 3576, 738, 833, 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, -100, -100, -100, -100, -100, -100, -100 ]
return None
return MISSING_CODE
def parsecodes(codes, len=len, range=range): """ Converts code combinations to either a single code integer or a tuple of integers. meta-codes (in angular brackets, e.g. <LR> and <RL>) are ignored. Empty codes or illegal ones are returned as None. """ if not codes: return None l = codes.split('+') if len(l) == 1: return int(l[0],16) for i in range(len(l)): try: l[i] = int(l[i],16) except ValueError: l[i] = None l = [x for x in l if x is not None] if len(l) == 1: return l[0] else: return tuple(l)
5fad89f5bc38b8ed3e50cc50ee87a5006bd75121 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/5fad89f5bc38b8ed3e50cc50ee87a5006bd75121/gencodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 7000, 12, 7000, 16, 562, 33, 1897, 16, 1048, 33, 3676, 4672, 225, 3536, 20377, 981, 17265, 358, 3344, 279, 2202, 981, 3571, 578, 279, 3193, 434, 12321, 18, 225, 2191, 17, 7000, 261, 267, 11759, 15597, 16, 425, 18, 75, 18, 411, 16018, 34, 471, 411, 54, 48, 23429, 854, 5455, 18, 225, 8953, 6198, 578, 16720, 5945, 854, 2106, 487, 599, 18, 225, 3536, 309, 486, 6198, 30, 327, 28695, 67, 5572, 328, 273, 6198, 18, 4939, 2668, 15, 6134, 309, 562, 12, 80, 13, 422, 404, 30, 327, 509, 12, 80, 63, 20, 6487, 2313, 13, 364, 277, 316, 1048, 12, 1897, 12, 80, 3719, 30, 775, 30, 328, 63, 77, 65, 273, 509, 12, 80, 63, 77, 6487, 2313, 13, 1335, 2068, 30, 328, 63, 77, 65, 273, 599, 328, 273, 306, 92, 364, 619, 316, 328, 309, 619, 353, 486, 599, 65, 309, 562, 12, 80, 13, 422, 404, 30, 327, 328, 63, 20, 65, 469, 30, 327, 3193, 12, 80, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 7000, 12, 7000, 16, 562, 33, 1897, 16, 1048, 33, 3676, 4672, 225, 3536, 20377, 981, 17265, 358, 3344, 279, 2202, 981, 3571, 578, 279, 3193, 434, 12321, 18, 225, 2191, 17, 7000, 261, 267, 11759, 15597, 16, 425, 18, 75, 18, 411, 16018, 34, 471, 411, 54, 48, 23429, 854, 5455, 18, 225, 8953, 6198, 578, 16720, 5945, 854, 2106, 487, 599, 18, 225, 3536, 309, 486, 6198, 30, 327, 28695, 67, 5572, 328, 273, 6198, 18, 4939, 2668, 15, 6134, 309, 562, 12, 80, 13, 422, 404, 30, 327, 509, 12, 80, 63, 20, 6487, 2313, 13, 364, 277, 316, 1048, 12, 1897, 12, 80, 3719, 30, 775, 30, 328, 63, 77, 65, 273, 509, 2 ]
class EditEntries(PloneKSSView):
class EditEntry(PloneKSSView):
def update(self): self.entries = [] for entry in self.task.entries: time = round_time_to_minutes(entry.time) item = dict(date = entry.date.strftime('%d-%m'), text = entry.text, time = time.strftime('%H:%M')) self.entries.append(item)
964eb18633f02a68ce23066a2f76abe46bdb8672 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10445/964eb18633f02a68ce23066a2f76abe46bdb8672/entry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 365, 18, 8219, 273, 5378, 364, 1241, 316, 365, 18, 4146, 18, 8219, 30, 813, 273, 3643, 67, 957, 67, 869, 67, 17916, 12, 4099, 18,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 4672, 365, 18, 8219, 273, 5378, 364, 1241, 316, 365, 18, 4146, 18, 8219, 30, 813, 273, 3643, 67, 957, 67, 869, 67, 17916, 12, 4099, 18, 957, 13, 761, 273, 2065, 12, 712, 273, 1241, 18, 712, 18, 701, 9982, 29909, 72, 6456, 81, 19899, 977, 273, 1241, 18, 955, 16, 813, 273, 813, 18, 701, 9982, 29909, 44, 5319, 49, 26112, 365, 18, 8219, 18, 6923, 12, 1726, 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 ]
this = apply(_quickfix.new_LegPool, args)
this = _quickfix.new_LegPool(*args)
def __init__(self, *args): this = apply(_quickfix.new_LegPool, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 8329, 2864, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logger.Error("Can't update bdev cache for %s, error %s" % (dev_path, str(err)))
logging.exception("Can't update bdev cache for %s", dev_path)
def RemoveCache(cls, dev_path): """Remove data for a dev_path.
18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3581, 1649, 12, 6429, 16, 4461, 67, 803, 4672, 3536, 3288, 501, 364, 279, 4461, 67, 803, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3581, 1649, 12, 6429, 16, 4461, 67, 803, 4672, 3536, 3288, 501, 364, 279, 4461, 67, 803, 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 ]
if self.html[1] == None: self.download_serverhtml() if not self.want_reconnect: file_name_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" return re.search(file_name_pattern, self.html[1]).group(1).split('/')[-1] else: return self.parent.url
if self.html[0] == None: self.download_html() file_name_pattern = r"<p class=\"downloadlink\">.+/(.+)<font" return re.findall(file_name_pattern, self.html[0])[0]
def get_file_name(self): if self.html[1] == None: self.download_serverhtml() if not self.want_reconnect: file_name_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" return re.search(file_name_pattern, self.html[1]).group(1).split('/')[-1] else: return self.parent.url
84704fb71130288ba71ad6c6f74ec31892814eea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/84704fb71130288ba71ad6c6f74ec31892814eea/RapidshareCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 529, 12, 2890, 4672, 309, 365, 18, 2620, 63, 20, 65, 422, 599, 30, 365, 18, 7813, 67, 2620, 1435, 225, 585, 67, 529, 67, 4951, 273, 436, 6, 32, 84, 667, 5189, 7813, 1232, 24735, 15591, 19, 22770, 32, 5776, 6, 327, 283, 18, 4720, 454, 12, 768, 67, 529, 67, 4951, 16, 365, 18, 2620, 63, 20, 5717, 63, 20, 65, 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,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 65, 422, 599, 30, 365, 18, 7813, 67, 2620, 1435, 225, 585, 67, 529, 67, 4951, 273, 436, 6, 32, 84, 667, 5189, 7813, 1232, 24735, 15591, 19, 22770, 32, 5776, 6, 327, 283, 18, 4720, 454, 12, 768, 67, 529, 67, 4951, 16, 365, 18, 2620, 63, 20, 5717, 63, 20, 65, 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 ]
assert(self.debugPrint("useGhostControls()"))
assert self.notify.debugCall(id(self))
def useGhostControls(self): assert(self.debugPrint("useGhostControls()")) if self.currentControls is not self.ghostControls: self.currentControls.disableAvatarControls() self.currentControls.setCollisionsActive(0) self.ghostControls.setCollisionsActive(1) self.currentControls = self.ghostControls if self.isEnabled: self.currentControls.enableAvatarControls()
b89bbac8300857fe485c1c4217180cabb1332c50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b89bbac8300857fe485c1c4217180cabb1332c50/ControlManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 43, 2564, 16795, 12, 2890, 4672, 1815, 365, 18, 12336, 18, 4148, 1477, 12, 350, 12, 2890, 3719, 309, 365, 18, 2972, 16795, 353, 486, 365, 18, 75, 2564, 16795, 30, 365, 18, 2972, 16795, 18, 8394, 23999, 16795, 1435, 365, 18, 2972, 16795, 18, 542, 13535, 12682, 3896, 12, 20, 13, 365, 18, 75, 2564, 16795, 18, 542, 13535, 12682, 3896, 12, 21, 13, 365, 18, 2972, 16795, 273, 365, 18, 75, 2564, 16795, 309, 365, 18, 291, 1526, 30, 365, 18, 2972, 16795, 18, 7589, 23999, 16795, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 43, 2564, 16795, 12, 2890, 4672, 1815, 365, 18, 12336, 18, 4148, 1477, 12, 350, 12, 2890, 3719, 309, 365, 18, 2972, 16795, 353, 486, 365, 18, 75, 2564, 16795, 30, 365, 18, 2972, 16795, 18, 8394, 23999, 16795, 1435, 365, 18, 2972, 16795, 18, 542, 13535, 12682, 3896, 12, 20, 13, 365, 18, 75, 2564, 16795, 18, 542, 13535, 12682, 3896, 12, 21, 13, 365, 18, 2972, 16795, 273, 365, 18, 75, 2564, 16795, 309, 365, 18, 291, 1526, 30, 365, 18, 2972, 16795, 18, 7589, 23999, 16795, 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 ]
'invoice_line': [(6,0,lines)], 'currency_id' : order.pricelist_id.currency_id.id,
'invoice_line': [(6, 0, lines)], 'currency_id': order.pricelist_id.currency_id.id,
def _make_invoice(self, cr, uid, order, lines,context={}): a = order.partner_id.property_account_receivable.id if order.payment_term: pay_term = order.payment_term.id else: pay_term = False for preinv in order.invoice_ids: if preinv.state not in ('cancel',): for preline in preinv.invoice_line: inv_line_id = self.pool.get('account.invoice.line').copy(cr, uid, preline.id, {'invoice_id':False, 'price_unit':-preline.price_unit}) lines.append(inv_line_id) inv = { 'name': order.client_order_ref or order.name, 'origin': order.name, 'type': 'out_invoice', 'reference': "P%dSO%d"%(order.partner_id.id,order.id), 'account_id': a, 'partner_id': order.partner_id.id, 'address_invoice_id': order.partner_invoice_id.id, 'address_contact_id': order.partner_invoice_id.id, 'invoice_line': [(6,0,lines)], 'currency_id' : order.pricelist_id.currency_id.id, 'comment': order.note, 'payment_term': pay_term, 'fiscal_position': order.partner_id.property_account_position.id } inv_obj = self.pool.get('account.invoice') inv.update(self._inv_get(cr, uid, order)) inv_id = inv_obj.create(cr, uid, inv) data = inv_obj.onchange_payment_term_date_invoice(cr, uid, [inv_id], pay_term,time.strftime('%Y-%m-%d')) if data.get('value',False): inv_obj.write(cr, uid, [inv_id], data['value'], context=context) inv_obj.button_compute(cr, uid, [inv_id]) return inv_id
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 1353, 16, 2362, 16, 2472, 12938, 4672, 279, 273, 1353, 18, 31993, 67, 350, 18, 4468, 67, 4631, 67, 8606, 427, 429, 18, 350, 309, 1353, 18, 9261, 67, 6408, 30, 8843, 67, 6408, 273, 1353, 18, 9261, 67, 6408, 18, 350, 469, 30, 8843, 67, 6408, 273, 1083, 364, 675, 5768, 316, 1353, 18, 16119, 67, 2232, 30, 309, 675, 5768, 18, 2019, 486, 316, 7707, 10996, 2187, 4672, 364, 675, 1369, 316, 675, 5768, 18, 16119, 67, 1369, 30, 2198, 67, 1369, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 18, 1369, 16063, 3530, 12, 3353, 16, 4555, 16, 675, 1369, 18, 350, 16, 13666, 16119, 67, 350, 4278, 8381, 16, 296, 8694, 67, 4873, 4278, 17, 1484, 1369, 18, 8694, 67, 4873, 6792, 2362, 18, 6923, 12, 5768, 67, 1369, 67, 350, 13, 2198, 273, 288, 296, 529, 4278, 1353, 18, 2625, 67, 1019, 67, 1734, 578, 1353, 18, 529, 16, 296, 10012, 4278, 1353, 18, 529, 16, 296, 723, 4278, 296, 659, 67, 16119, 2187, 296, 6180, 4278, 315, 52, 9, 72, 3584, 9, 72, 6, 17105, 1019, 18, 31993, 67, 350, 18, 350, 16, 1019, 18, 350, 3631, 296, 4631, 67, 350, 4278, 279, 16, 296, 31993, 67, 350, 4278, 1353, 18, 31993, 67, 350, 18, 350, 16, 296, 2867, 67, 16119, 67, 350, 4278, 1353, 18, 31993, 67, 16119, 67, 350, 18, 350, 16, 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, 389, 6540, 67, 16119, 12, 2890, 16, 4422, 16, 4555, 16, 1353, 16, 2362, 16, 2472, 12938, 4672, 279, 273, 1353, 18, 31993, 67, 350, 18, 4468, 67, 4631, 67, 8606, 427, 429, 18, 350, 309, 1353, 18, 9261, 67, 6408, 30, 8843, 67, 6408, 273, 1353, 18, 9261, 67, 6408, 18, 350, 469, 30, 8843, 67, 6408, 273, 1083, 364, 675, 5768, 316, 1353, 18, 16119, 67, 2232, 30, 309, 675, 5768, 18, 2019, 486, 316, 7707, 10996, 2187, 4672, 364, 675, 1369, 316, 675, 5768, 18, 16119, 67, 1369, 30, 2198, 67, 1369, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, 16119, 18, 1369, 16063, 3530, 12, 3353, 16, 4555, 16, 675, 1369, 2 ]
self.artwork.update_songinfo(self.songinfo)
def single_connect_for_passed_arg(self, type): self.user_connect = True self.settings_load() self.mpd_connect(blocking=True, force=True) if self.conn: self.status = mpdh.status(self.client) self.songinfo = mpdh.currsong(self.client) self.artwork.update_songinfo(self.songinfo) if type == "play": mpdh.call(self.client, 'play') elif type == "pause": mpdh.call(self.client, 'pause', 1) elif type == "stop": mpdh.call(self.client, 'stop') elif type == "next": mpdh.call(self.client, 'next') elif type == "prev": mpdh.call(self.client, 'previous') elif type == "random": if self.status: if self.status['random'] == '0': mpdh.call(self.client, 'random', 1) else: mpdh.call(self.client, 'random', 0) elif type == "repeat": if self.status: if self.status['repeat'] == '0': mpdh.call(self.client, 'repeat', 1) else: mpdh.call(self.client, 'repeat', 0) elif type == "pp": self.status = mpdh.status(self.client) if self.status: if self.status['state'] in ['play']: mpdh.call(self.client, 'pause', 1) elif self.status['state'] in ['pause', 'stop']: mpdh.call(self.client, 'play') elif type == "info": if self.status and self.status['state'] in ['play', 'pause']: mpdh.conout (_("Title") + ": " + mpdh.get(self.songinfo, 'title')) mpdh.conout (_("Artist") + ": " + mpdh.get(self.songinfo, 'artist')) mpdh.conout (_("Album") + ": " + mpdh.get(self.songinfo, 'album')) mpdh.conout (_("Date") + ": " + mpdh.get(self.songinfo, 'date')) mpdh.conout (_("Track") + ": " + mpdh.getnum(self.songinfo, 'track', '0', False, 2)) mpdh.conout (_("Genre") + ": " + mpdh.get(self.songinfo, 'genre')) mpdh.conout (_("File") + ": " + os.path.basename(mpdh.get(self.songinfo, 'file'))) at, length = [int(c) for c in self.status['time'].split(':')] at_time = misc.convert_time(at) try: time = misc.convert_time(int(mpdh.get(self.songinfo, 'time'))) print _("Time") + ": " + at_time + " / " + time except: print _("Time") + ": " + at_time print _("Bitrate") + ": " + self.status.get('bitrate', '') else: print _("MPD stopped") elif type == "status": if self.status: try: if self.status['state'] == 'play': print _("State") + ": " + _("Playing") elif self.status['state'] == 'pause': print _("State") + ": " + _("Paused") elif self.status['state'] == 'stop': print _("State") + ": " + _("Stopped") if self.status['repeat'] == '0': print _("Repeat") + ": " + _("Off") else: print _("Repeat") + ": " + _("On") if self.status['random'] == '0': print _("Random") + ": " + _("Off") else: print _("Random") + ": " + _("On") print _("Volume") + ": " + self.status['volume'] + "/100" print _('Crossfade') + ": " + self.status['xfade'] + ' ' + gettext.ngettext('second', 'seconds', int(self.status['xfade'])) except: pass else: print _("Unable to connect to MPD.\nPlease check your Sonata preferences or MPD_HOST/MPD_PORT environment variables.")
cbb6e91290137da4f75b84c01fb4a7a5c0339df2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/cbb6e91290137da4f75b84c01fb4a7a5c0339df2/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2202, 67, 3612, 67, 1884, 67, 23603, 67, 3175, 12, 2890, 16, 618, 4672, 365, 18, 1355, 67, 3612, 273, 1053, 365, 18, 4272, 67, 945, 1435, 365, 18, 1291, 72, 67, 3612, 12, 18926, 33, 5510, 16, 2944, 33, 5510, 13, 309, 365, 18, 4646, 30, 365, 18, 2327, 273, 6749, 19153, 18, 2327, 12, 2890, 18, 2625, 13, 365, 18, 816, 75, 1376, 273, 6749, 19153, 18, 17016, 816, 75, 12, 2890, 18, 2625, 13, 309, 618, 422, 315, 1601, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 1601, 6134, 1327, 618, 422, 315, 19476, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 19476, 2187, 404, 13, 1327, 618, 422, 315, 5681, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 5681, 6134, 1327, 618, 422, 315, 4285, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 4285, 6134, 1327, 618, 422, 315, 10001, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 11515, 6134, 1327, 618, 422, 315, 9188, 6877, 309, 365, 18, 2327, 30, 309, 365, 18, 2327, 3292, 9188, 3546, 422, 296, 20, 4278, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 9188, 2187, 404, 13, 469, 30, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 9188, 2187, 374, 13, 1327, 618, 422, 315, 9374, 6877, 309, 365, 18, 2327, 30, 309, 365, 18, 2327, 3292, 9374, 3546, 422, 296, 20, 4278, 6749, 19153, 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, 2202, 67, 3612, 67, 1884, 67, 23603, 67, 3175, 12, 2890, 16, 618, 4672, 365, 18, 1355, 67, 3612, 273, 1053, 365, 18, 4272, 67, 945, 1435, 365, 18, 1291, 72, 67, 3612, 12, 18926, 33, 5510, 16, 2944, 33, 5510, 13, 309, 365, 18, 4646, 30, 365, 18, 2327, 273, 6749, 19153, 18, 2327, 12, 2890, 18, 2625, 13, 365, 18, 816, 75, 1376, 273, 6749, 19153, 18, 17016, 816, 75, 12, 2890, 18, 2625, 13, 309, 618, 422, 315, 1601, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 1601, 6134, 1327, 618, 422, 315, 19476, 6877, 6749, 19153, 18, 1991, 12, 2890, 18, 2625, 16, 296, 19476, 2187, 404, 13, 1327, 618, 422, 2 ]
logo = None
def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy()
f16cf978ff88ce3b744db58016d29e38fb92872c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f16cf978ff88ce3b744db58016d29e38fb92872c/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 819, 273, 819, 18, 3530, 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 ]
del test07_EnvRemoveAndRename
del test08_EnvRemoveAndRename
def test07_EnvRemoveAndRename(self): if not self.env: return
46ea74ede0b8d2264d7a6e3eeddf206a32b98522 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/46ea74ede0b8d2264d7a6e3eeddf206a32b98522/test_basics.py
[ 1, 8585, 326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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8642, 67, 3491, 3288, 1876, 16019, 12, 2890, 4672, 309, 486, 365, 18, 3074, 30, 327, 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 ]
"The --force_32bit option is only valid on Mac OS systems.") if (sys.maxint > 2**31-1): raise Sorry( 'The --force_32bit option can only be used with 32-bit Python.\n' ' See also: "man python"') buffers = easy_run.fully_buffered( command="/usr/bin/arch -i386 /bin/ls /") if ( len(buffers.stderr_lines) != 0 or len(buffers.stdout_lines) == 0): raise Sorry( "The --force_32bit option is not valid for this platform.") if ( self.command_line.options.msvs_arch_flag != "None" and os.name != "nt"): raise Sorry( "The --msvs_arch_flag option is not valid for this platform.")
"The --msvs_arch_flag option is not valid for this platform.")
def __init__(self, args, default_repositories=None): self.repository_paths = [] if (len(args) == 0): args = ["--help"] if (default_repositories is None): command_name = "libtbx.configure" self.warm_start = True else: command_name = "libtbx/configure.py" self.warm_start = False parser = option_parser( usage="%s [options] module_name[=redirection_path] ..." % command_name) if (self.warm_start): parser.option(None, "--only", action="store_true", default=False, help="disable previously configured modules") else: parser.option("-r", "--repository", action="callback", type="string", callback=self.option_repository, help="path to source code repository" " (may be specified multiple times;" " paths are searched in the order given)", metavar="DIRECTORY") if (hasattr(os.path, "samefile")): parser.option(None, "--current_working_directory", action="store", type="string", default=None, help="preferred spelling of current working directory" " (to resolve ambiguities due to soft links)", metavar="DIRECTORY") parser.option(None, "--build", choices=build_options.supported_modes, default="release", help="build mode (default: release)", metavar="|".join(build_options.supported_modes)) parser.option(None, "--compiler", action="store", type="string", default="default", help="select non-standard compiler (platform dependent)", metavar="STRING") parser.option(None, "--warning_level", action="store", type="int", default=0, help="manipulate warning options (platform dependent)") parser.option(None, "--static_libraries", action="store_true", default=False, help="build all libraries statically") parser.option(None, "--static_exe", action="store_true", default=False, help="link all executables statically (implies --static_libraries)") parser.option(None, "--scan_boost", action="store_true", default=False, help="enable implicit dependency scan") parser.option(None, "--write_full_flex_fwd_h", action="store_true", default=default_write_full_flex_fwd_h, help="create full flex_fwd.h files to work around platform-specific" " problems (see comments in cctbx.source_generators.flex_fwd_h)") parser.option(None, "--command_version_suffix", action="store", type="string", default=None, help="version suffix for commands in bin directory", metavar="STRING") parser.option(None, "--use_environment_flags", action="store_true", default=False, help="add compiler flags from environment variables: CXXFLAGS, CFLAGS," " CPPFLAGS") parser.option(None, "--force_32bit", action="store_true", default=False, help="Force 32-bit compilation on Mac OS 10.6 (Snow Leopard)\n" "Not compatible with /usr/bin/python: please run configure\n" "with /System/Library/Frameworks/Python.framework/" "Versions/2.x/bin/python") msvs_arch_flag_choices = ("None", "SSE", "SSE2") parser.option(None, "--msvs_arch_flag", choices=msvs_arch_flag_choices, default=default_msvs_arch_flag, help="choose MSVS CPU architecture instruction set" " for optimized builds", metavar="|".join(msvs_arch_flag_choices)) parser.option(None, "--build_boost_python_extensions", action="store", type="bool", default=default_build_boost_python_extensions, help="build Boost.Python extension modules (default: %s)" % bool_literal(default_build_boost_python_extensions), metavar="True|False") parser.option(None, "--enable_boost_threads", action="store_true", default=False, help="enable threads in Boost") parser.option(None, "--enable_openmp_if_possible", action="store", type="bool", default=default_enable_openmp_if_possible, help="use OpenMP if available and known to work (default: %s)" % bool_literal(default_enable_openmp_if_possible), metavar="True|False") if (not self.warm_start): parser.option(None, "--boost_python_no_py_signatures", action="store_true", default=False, help="disable Boost.Python docstring Python signatures") parser.option(None, "--boost_python_bool_int_strict", action="store_false", default=True, help="disable Boost.Python implicit bool<->int conversions") self.command_line = parser.process(args=args) if (len(self.command_line.args) == 0): raise Sorry( "At least one module name is required" " (use --help to obtain more information).") if (not hasattr(os.path, "samefile")): self.command_line.options.current_working_directory = None if (default_repositories is not None): self.repository_paths.extend(default_repositories) if (self.command_line.options.force_32bit): if (sys.platform != "darwin"): raise Sorry( "The --force_32bit option is only valid on Mac OS systems.") if (sys.maxint > 2**31-1): raise Sorry( 'The --force_32bit option can only be used with 32-bit Python.\n' ' See also: "man python"') buffers = easy_run.fully_buffered( command="/usr/bin/arch -i386 /bin/ls /") if ( len(buffers.stderr_lines) != 0 or len(buffers.stdout_lines) == 0): raise Sorry( "The --force_32bit option is not valid for this platform.") if ( self.command_line.options.msvs_arch_flag != "None" and os.name != "nt"): raise Sorry( "The --msvs_arch_flag option is not valid for this platform.")
26945c8ce4ae33f464bef40e91429539198913a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/26945c8ce4ae33f464bef40e91429539198913a2/env_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 833, 16, 805, 67, 26626, 33, 7036, 4672, 365, 18, 9071, 67, 4481, 273, 5378, 309, 261, 1897, 12, 1968, 13, 422, 374, 4672, 833, 273, 8247, 413, 5201, 11929, 309, 261, 1886, 67, 26626, 353, 599, 4672, 1296, 67, 529, 273, 315, 2941, 18587, 92, 18, 14895, 6, 365, 18, 13113, 67, 1937, 273, 1053, 469, 30, 1296, 67, 529, 273, 315, 2941, 18587, 92, 19, 14895, 18, 2074, 6, 365, 18, 13113, 67, 1937, 273, 1083, 2082, 273, 1456, 67, 4288, 12, 4084, 11613, 87, 306, 2116, 65, 1605, 67, 529, 63, 33, 1118, 2769, 67, 803, 65, 18483, 738, 1296, 67, 529, 13, 309, 261, 2890, 18, 13113, 67, 1937, 4672, 2082, 18, 3482, 12, 7036, 16, 5238, 3700, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 16, 2809, 1546, 8394, 7243, 4351, 4381, 7923, 469, 30, 2082, 18, 3482, 2932, 17, 86, 3113, 5238, 9071, 3113, 1301, 1546, 3394, 3113, 618, 1546, 1080, 3113, 1348, 33, 2890, 18, 3482, 67, 9071, 16, 2809, 1546, 803, 358, 1084, 981, 3352, 6, 315, 261, 24877, 506, 1269, 3229, 4124, 4868, 315, 2953, 854, 19242, 316, 326, 1353, 864, 2225, 16, 15050, 1546, 17229, 7923, 309, 261, 5332, 1747, 12, 538, 18, 803, 16, 315, 14307, 768, 6, 3719, 30, 2082, 18, 3482, 12, 7036, 16, 5238, 2972, 67, 20478, 67, 5149, 3113, 1301, 1546, 2233, 3113, 618, 1546, 1080, 3113, 805, 33, 7036, 16, 2809, 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, 1001, 2738, 972, 12, 2890, 16, 833, 16, 805, 67, 26626, 33, 7036, 4672, 365, 18, 9071, 67, 4481, 273, 5378, 309, 261, 1897, 12, 1968, 13, 422, 374, 4672, 833, 273, 8247, 413, 5201, 11929, 309, 261, 1886, 67, 26626, 353, 599, 4672, 1296, 67, 529, 273, 315, 2941, 18587, 92, 18, 14895, 6, 365, 18, 13113, 67, 1937, 273, 1053, 469, 30, 1296, 67, 529, 273, 315, 2941, 18587, 92, 19, 14895, 18, 2074, 6, 365, 18, 13113, 67, 1937, 273, 1083, 2082, 273, 1456, 67, 4288, 12, 4084, 11613, 87, 306, 2116, 65, 1605, 67, 529, 63, 33, 1118, 2769, 67, 803, 65, 18483, 738, 1296, 67, 529, 13, 309, 261, 2890, 18, 13113, 67, 2 ]
if options.local_base:
if not options.download_base:
def RealMain(argv, data=None): logging.basicConfig(format=("%(asctime).19s %(levelname)s %(filename)s:" "%(lineno)s %(message)s ")) os.environ['LC_ALL'] = 'C' options, args = parser.parse_args(argv[1:]) global verbosity verbosity = options.verbose if verbosity >= 3: logging.getLogger().setLevel(logging.DEBUG) elif verbosity >= 2: logging.getLogger().setLevel(logging.INFO) vcs = GuessVCS() if isinstance(vcs, SubversionVCS): # base field is only allowed for Subversion. # Note: Fetching base files may become deprecated in future releases. base = vcs.GuessBase(not options.local_base) else: base = None if not base and not options.local_base: options.local_base = True logging.info("Enabled upload of base file") if not options.assume_yes: vcs.CheckForUnknownFiles() if data is None: data = vcs.GenerateDiff(args) if verbosity >= 1: print "Upload server:", options.server, "(change with -s/--server)" if options.issue: prompt = "Message describing this patch set: " else: prompt = "New issue subject: " message = options.message or raw_input(prompt).strip() if not message: ErrorExit("A non-empty message is required") rpc_server = GetRpcServer(options) form_fields = [("subject", message)] if base: form_fields.append(("base", base)) if options.issue: form_fields.append(("issue", str(options.issue))) if options.email: form_fields.append(("user", options.email)) if options.reviewers: for reviewer in options.reviewers.split(','): if reviewer.count("@") != 1 or "." not in reviewer.split("@")[1]: ErrorExit("Invalid email address: %s" % reviewer) form_fields.append(("reviewers", options.reviewers)) if options.cc: for cc in options.cc.split(','): if cc.count("@") != 1 or "." not in cc.split("@")[1]: ErrorExit("Invalid email address: %s" % cc) form_fields.append(("cc", options.cc)) description = options.description if options.description_file: if options.description: ErrorExit("Can't specify description and description_file") file = open(options.description_file, 'r') description = file.read() file.close() if description: form_fields.append(("description", description)) # If we're uploading base files, don't send the email before the uploads, so # that it contains the file status. if options.send_mail and not options.local_base: form_fields.append(("send_mail", "1")) if options.local_base: form_fields.append(("content_upload", "1")) if len(data) > MAX_UPLOAD_SIZE: print "Patch is large, so uploading file patches separately." files = [] form_fields.append(("separate_patches", "1")) else: files = [("data", "data.diff", data)] ctype, body = EncodeMultipartFormData(form_fields, files) response_body = rpc_server.Send("/upload", body, content_type=ctype) if options.local_base or not files: lines = response_body.splitlines() if len(lines) >= 2: msg = lines[0] patchset = lines[1].strip() patches = [x.split(" ", 1) for x in lines[2:]] else: msg = response_body else: msg = response_body StatusUpdate(msg) if not response_body.startswith("Issue created.") and \ not response_body.startswith("Issue updated."): sys.exit(0) issue = msg[msg.rfind("/")+1:] if not files: result = UploadSeparatePatches(issue, rpc_server, patchset, data, options) if options.local_base: patches = result if options.local_base: vcs.UploadBaseFiles(issue, rpc_server, patches, patchset, options) if options.send_mail: rpc_server.Send("/" + issue + "/mail", payload="") return issue
51830c0e218e798dbe421fbf5161f68626b9b3b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/51830c0e218e798dbe421fbf5161f68626b9b3b5/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15987, 6376, 12, 19485, 16, 501, 33, 7036, 4672, 2907, 18, 13240, 809, 12, 2139, 33, 2932, 17105, 345, 21261, 2934, 3657, 87, 8975, 31994, 13, 87, 8975, 3459, 13, 87, 2773, 22061, 17782, 13, 87, 8975, 2150, 13, 87, 315, 3719, 1140, 18, 28684, 3292, 13394, 67, 4685, 3546, 273, 296, 39, 11, 702, 16, 833, 273, 2082, 18, 2670, 67, 1968, 12, 19485, 63, 21, 30, 5717, 2552, 11561, 11561, 273, 702, 18, 11369, 309, 11561, 1545, 890, 30, 2907, 18, 588, 3328, 7675, 542, 2355, 12, 11167, 18, 9394, 13, 1327, 11561, 1545, 576, 30, 2907, 18, 588, 3328, 7675, 542, 2355, 12, 11167, 18, 5923, 13, 20255, 273, 30282, 58, 4596, 1435, 309, 1549, 12, 18982, 16, 2592, 1589, 58, 4596, 4672, 468, 1026, 652, 353, 1338, 2935, 364, 2592, 1589, 18, 468, 3609, 30, 8065, 310, 1026, 1390, 2026, 12561, 6849, 316, 3563, 14824, 18, 1026, 273, 20255, 18, 15977, 2171, 12, 902, 702, 18, 3729, 67, 1969, 13, 469, 30, 1026, 273, 599, 309, 486, 1026, 471, 486, 702, 18, 3729, 67, 1969, 30, 702, 18, 3729, 67, 1969, 273, 1053, 2907, 18, 1376, 2932, 1526, 3617, 434, 1026, 585, 7923, 309, 486, 702, 18, 428, 2066, 67, 9707, 30, 20255, 18, 1564, 1290, 4874, 2697, 1435, 309, 501, 353, 599, 30, 501, 273, 20255, 18, 4625, 5938, 12, 1968, 13, 309, 11561, 1545, 404, 30, 1172, 315, 4777, 1438, 2773, 16, 702, 18, 3567, 16, 7751, 3427, 598, 300, 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, 15987, 6376, 12, 19485, 16, 501, 33, 7036, 4672, 2907, 18, 13240, 809, 12, 2139, 33, 2932, 17105, 345, 21261, 2934, 3657, 87, 8975, 31994, 13, 87, 8975, 3459, 13, 87, 2773, 22061, 17782, 13, 87, 8975, 2150, 13, 87, 315, 3719, 1140, 18, 28684, 3292, 13394, 67, 4685, 3546, 273, 296, 39, 11, 702, 16, 833, 273, 2082, 18, 2670, 67, 1968, 12, 19485, 63, 21, 30, 5717, 2552, 11561, 11561, 273, 702, 18, 11369, 309, 11561, 1545, 890, 30, 2907, 18, 588, 3328, 7675, 542, 2355, 12, 11167, 18, 9394, 13, 1327, 11561, 1545, 576, 30, 2907, 18, 588, 3328, 7675, 542, 2355, 12, 11167, 18, 5923, 13, 20255, 273, 30282, 58, 4596, 1435, 309, 1549, 2 ]
plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet
plnet = game.state.galaxy[game.quadrant.i][game.quadrant.j].planet
def status(req=0): "Emit status report lines" if not req or req == 1: prstat(_("Stardate"), _("%.1f, Time Left %.2f") \ % (game.state.date, game.state.remtime)) if not req or req == 2: if game.condition != "docked": newcnd() dam = 0 for t in range(NDEVICES): if game.damage[t]>0: dam += 1 prstat(_("Condition"), _("%s, %i DAMAGES") % (game.condition.upper(), dam)) if not req or req == 3: prstat(_("Position"), "%s , %s" % (game.quadrant, game.sector)) if not req or req == 4: if damaged(DLIFSUP): if game.condition == "docked": s = _("DAMAGED, Base provides") else: s = _("DAMAGED, reserves=%4.2f") % game.lsupres else: s = _("ACTIVE") prstat(_("Life Support"), s) if not req or req == 5: prstat(_("Warp Factor"), "%.1f" % game.warpfac) if not req or req == 6: extra = "" if game.icrystl and (game.options & OPTION_SHOWME): extra = _(" (have crystals)") prstat(_("Energy"), "%.2f%s" % (game.energy, extra)) if not req or req == 7: prstat(_("Torpedoes"), "%d" % (game.torps)) if not req or req == 8: if damaged(DSHIELD): s = _("DAMAGED,") elif game.shldup: s = _("UP,") else: s = _("DOWN,") data = _(" %d%% %.1f units") \ % (int((100.0*game.shield)/game.inshld + 0.5), game.shield) prstat(_("Shields"), s+data) if not req or req == 9: prstat(_("Klingons Left"), "%d" \ % (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)) if not req or req == 10: if game.options & OPTION_WORLDS: plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet if plnet and plnet.inhabited: prstat(_("Major system"), plnet.name) else: prout(_("Sector is uninhabited")) elif not req or req == 11: attackreport(not req)
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1267, 12, 3658, 33, 20, 4672, 315, 17982, 1267, 2605, 2362, 6, 309, 486, 1111, 578, 1111, 422, 404, 30, 846, 5642, 24899, 2932, 18379, 712, 6, 3631, 389, 27188, 18, 21, 74, 16, 2647, 13338, 12639, 22, 74, 7923, 521, 738, 261, 13957, 18, 2019, 18, 712, 16, 7920, 18, 2019, 18, 2764, 957, 3719, 309, 486, 1111, 578, 1111, 422, 576, 30, 309, 7920, 18, 4175, 480, 315, 72, 975, 329, 6877, 394, 71, 4880, 1435, 302, 301, 273, 374, 364, 268, 316, 1048, 12, 50, 18953, 55, 4672, 309, 7920, 18, 72, 301, 410, 63, 88, 65, 34, 20, 30, 302, 301, 1011, 404, 846, 5642, 24899, 2932, 3418, 6, 3631, 389, 27188, 87, 16, 738, 77, 463, 2192, 2833, 55, 7923, 738, 261, 13957, 18, 4175, 18, 5797, 9334, 302, 301, 3719, 309, 486, 1111, 578, 1111, 422, 890, 30, 846, 5642, 24899, 2932, 2555, 6, 3631, 2213, 87, 269, 738, 87, 6, 738, 261, 13957, 18, 21733, 6890, 16, 7920, 18, 5709, 280, 3719, 309, 486, 1111, 578, 1111, 422, 1059, 30, 309, 302, 301, 11349, 12, 40, 2053, 4931, 3079, 4672, 309, 7920, 18, 4175, 422, 315, 72, 975, 329, 6877, 272, 273, 389, 2932, 40, 2192, 29693, 16, 3360, 8121, 7923, 469, 30, 272, 273, 389, 2932, 40, 2192, 29693, 16, 400, 264, 3324, 5095, 24, 18, 22, 74, 7923, 738, 7920, 18, 80, 2859, 455, 469, 30, 272, 273, 389, 2932, 13301, 7923, 846, 5642, 24899, 2932, 15315, 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, 1267, 12, 3658, 33, 20, 4672, 315, 17982, 1267, 2605, 2362, 6, 309, 486, 1111, 578, 1111, 422, 404, 30, 846, 5642, 24899, 2932, 18379, 712, 6, 3631, 389, 27188, 18, 21, 74, 16, 2647, 13338, 12639, 22, 74, 7923, 521, 738, 261, 13957, 18, 2019, 18, 712, 16, 7920, 18, 2019, 18, 2764, 957, 3719, 309, 486, 1111, 578, 1111, 422, 576, 30, 309, 7920, 18, 4175, 480, 315, 72, 975, 329, 6877, 394, 71, 4880, 1435, 302, 301, 273, 374, 364, 268, 316, 1048, 12, 50, 18953, 55, 4672, 309, 7920, 18, 72, 301, 410, 63, 88, 65, 34, 20, 30, 302, 301, 1011, 404, 846, 5642, 24899, 2932, 3418, 6, 3631, 389, 27188, 87, 16, 2 ]
@param defval: the default identifier. This value will appear in
@param defval: the default identifier. This value will appear in
def AskIdent(defval, prompt): """ Ask the user to enter an identifier @param defval: the default identifier. This value will appear in the dialog box. @param prompt: the prompt to display in the dialog box @return: the entered identifier or 0. """ return idaapi.askident(defval, prompt)
bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25747, 6106, 12, 536, 1125, 16, 6866, 4672, 3536, 25747, 326, 729, 358, 6103, 392, 2756, 225, 632, 891, 1652, 1125, 30, 326, 805, 2756, 18, 1220, 460, 903, 9788, 316, 326, 6176, 3919, 18, 632, 891, 6866, 30, 326, 6866, 358, 2562, 316, 326, 6176, 3919, 225, 632, 2463, 30, 326, 16219, 2756, 578, 374, 18, 3536, 327, 612, 69, 2425, 18, 835, 6392, 12, 536, 1125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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25747, 6106, 12, 536, 1125, 16, 6866, 4672, 3536, 25747, 326, 729, 358, 6103, 392, 2756, 225, 632, 891, 1652, 1125, 30, 326, 805, 2756, 18, 1220, 460, 903, 9788, 316, 326, 6176, 3919, 18, 632, 891, 6866, 30, 326, 6866, 358, 2562, 316, 326, 6176, 3919, 225, 632, 2463, 30, 326, 16219, 2756, 578, 374, 18, 3536, 327, 612, 69, 2425, 18, 835, 6392, 12, 536, 1125, 16, 6866, 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 ]
i = random.randrange(0, n)
i = random.randrange(n)
def randrange(n): """Return a random shuffle of range(n).""" fn = os.path.join(td, "rr%06d" % n) try: fp = open(fn, "rb") except IOError: result = [] for i in range(n): result.append(random.random()) try: try: fp = open(fn, "wb") marshal.dump(result, fp) fp.close() fp = None finally: if fp: try: os.unlink(fn) except os.error: pass except IOError, msg: print "can't write", fn, ":", msg else: result = marshal.load(fp) fp.close() ##assert len(result) == n # Shuffle it a bit... for i in range(10): i = random.randrange(0, n) temp = result[:i] del result[:i] temp.reverse() result[len(result):] = temp del temp return result
1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5605, 3676, 12, 82, 4672, 3536, 990, 279, 2744, 12552, 434, 1048, 12, 82, 13, 12123, 2295, 273, 1140, 18, 803, 18, 5701, 12, 4465, 16, 315, 523, 9, 7677, 72, 6, 738, 290, 13, 775, 30, 4253, 273, 1696, 12, 4293, 16, 315, 6731, 7923, 1335, 8340, 30, 563, 273, 5378, 364, 277, 316, 1048, 12, 82, 4672, 563, 18, 6923, 12, 9188, 18, 9188, 10756, 775, 30, 775, 30, 4253, 273, 1696, 12, 4293, 16, 315, 9464, 7923, 10893, 18, 8481, 12, 2088, 16, 4253, 13, 4253, 18, 4412, 1435, 4253, 273, 599, 3095, 30, 309, 4253, 30, 775, 30, 1140, 18, 318, 1232, 12, 4293, 13, 1335, 1140, 18, 1636, 30, 1342, 1335, 8340, 16, 1234, 30, 1172, 315, 4169, 1404, 1045, 3113, 2295, 16, 6153, 16, 1234, 469, 30, 563, 273, 10893, 18, 945, 12, 7944, 13, 4253, 18, 4412, 1435, 7541, 11231, 562, 12, 2088, 13, 422, 290, 468, 2638, 10148, 518, 279, 2831, 2777, 364, 277, 316, 1048, 12, 2163, 4672, 277, 273, 2744, 18, 7884, 3676, 12, 82, 13, 1906, 273, 563, 10531, 77, 65, 1464, 563, 10531, 77, 65, 1906, 18, 9845, 1435, 563, 63, 1897, 12, 2088, 4672, 65, 273, 1906, 1464, 1906, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5605, 3676, 12, 82, 4672, 3536, 990, 279, 2744, 12552, 434, 1048, 12, 82, 13, 12123, 2295, 273, 1140, 18, 803, 18, 5701, 12, 4465, 16, 315, 523, 9, 7677, 72, 6, 738, 290, 13, 775, 30, 4253, 273, 1696, 12, 4293, 16, 315, 6731, 7923, 1335, 8340, 30, 563, 273, 5378, 364, 277, 316, 1048, 12, 82, 4672, 563, 18, 6923, 12, 9188, 18, 9188, 10756, 775, 30, 775, 30, 4253, 273, 1696, 12, 4293, 16, 315, 9464, 7923, 10893, 18, 8481, 12, 2088, 16, 4253, 13, 4253, 18, 4412, 1435, 4253, 273, 599, 3095, 30, 309, 4253, 30, 775, 30, 1140, 18, 318, 1232, 12, 4293, 13, 1335, 1140, 18, 1636, 30, 1342, 1335, 8340, 16, 2 ]
assumedEndTime = datetime.datetime.utcnow()-((datetime.datetime.utcnow()-startTime)/2)
assumedEndTime = datetime.datetime.utcnow() - ( ( datetime.datetime.utcnow() - startTime ) / 2 )
def MigratingToMigrated(self,se): """ Obtain the active files from the migration monitoring db and check their status """ # First get the migrating files from the database gLogger.info("[%s] MigratingToMigrated: Attempting to obtain 'Migrating' files." % se) res = self.__getFiles(se,'Migrating') if not res['OK']: gLogger.error("[%s] MigratingToMigrated: Failed to get 'Migrating' files." % se, res['Message']) return res pfnIDs = res['Value']['PFNIDs'] if not pfnIDs: gLogger.info("[%s] MigratingToMigrated: Found no 'Migrating' files." % se) return S_OK() migratingFiles = res['Value']['MigratingFiles'] gLogger.info("[%s] MigratingToMigrated: Found %d 'Migrating' files." % (se, len(pfnIDs))) gMonitor.addMark("MigratingFiles%s" % se,len(pfnIDs)) gLogger.info("[%s] MigratingToMigrated: Obtaining physical file metadata for 'Migrating' files." % se) startTime = datetime.datetime.utcnow() res = self.__getMigratedFiles(se,pfnIDs.keys()) if not res['OK']: gLogger.error("[%s] MigratingToMigrated: Failed to get 'Migrating' file metadata." % se, res['Message']) return res assumedEndTime = datetime.datetime.utcnow()-((datetime.datetime.utcnow()-startTime)/2) # Assumed that the files are found migrated midway through obtaining the metadata previousMonitorTime = self.lastMonitors[se] self.lastMonitors[se] = datetime.datetime.utcnow() terminal = res['Value']['Terminal'] migrated = res['Value']['Migrated']
9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 490, 2757, 1776, 774, 25483, 690, 12, 2890, 16, 307, 4672, 3536, 24850, 326, 2695, 1390, 628, 326, 6333, 16309, 1319, 471, 866, 3675, 1267, 3536, 468, 5783, 336, 326, 4196, 1776, 1390, 628, 326, 2063, 314, 3328, 18, 1376, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 12864, 310, 358, 7161, 296, 25483, 1776, 11, 1390, 1199, 738, 695, 13, 400, 273, 365, 16186, 588, 2697, 12, 307, 11189, 25483, 1776, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 314, 3328, 18, 1636, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 11175, 358, 336, 296, 25483, 1776, 11, 1390, 1199, 738, 695, 16, 400, 3292, 1079, 19486, 327, 400, 293, 4293, 5103, 273, 400, 3292, 620, 21712, 52, 19793, 5103, 3546, 309, 486, 293, 4293, 5103, 30, 314, 3328, 18, 1376, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 10750, 1158, 296, 25483, 1776, 11, 1390, 1199, 738, 695, 13, 327, 348, 67, 3141, 1435, 4196, 1776, 2697, 273, 400, 3292, 620, 21712, 25483, 1776, 2697, 3546, 314, 3328, 18, 1376, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 10750, 738, 72, 296, 25483, 1776, 11, 1390, 1199, 738, 261, 307, 16, 562, 12, 84, 4293, 5103, 20349, 314, 7187, 18, 1289, 3882, 2932, 25483, 1776, 2697, 9, 87, 6, 738, 695, 16, 1897, 12, 84, 4293, 5103, 3719, 314, 3328, 18, 1376, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 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, 490, 2757, 1776, 774, 25483, 690, 12, 2890, 16, 307, 4672, 3536, 24850, 326, 2695, 1390, 628, 326, 6333, 16309, 1319, 471, 866, 3675, 1267, 3536, 468, 5783, 336, 326, 4196, 1776, 1390, 628, 326, 2063, 314, 3328, 18, 1376, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 12864, 310, 358, 7161, 296, 25483, 1776, 11, 1390, 1199, 738, 695, 13, 400, 273, 365, 16186, 588, 2697, 12, 307, 11189, 25483, 1776, 6134, 309, 486, 400, 3292, 3141, 3546, 30, 314, 3328, 18, 1636, 2932, 14451, 87, 65, 490, 2757, 1776, 774, 25483, 690, 30, 11175, 358, 336, 296, 25483, 1776, 11, 1390, 1199, 738, 695, 16, 400, 3292, 1079, 19486, 327, 400, 293, 4293, 2 ]
message := the message, or '' to come back from awayness
message := the message, or '' to come back from awayness
def away(self,message=''): """ change away state
cf5c1b9b6982ffbfcc655062fdf4b5c939fafc3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cf5c1b9b6982ffbfcc655062fdf4b5c939fafc3f/toc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10804, 12, 2890, 16, 2150, 2218, 11, 4672, 3536, 2549, 10804, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10804, 12, 2890, 16, 2150, 2218, 11, 4672, 3536, 2549, 10804, 919, 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 ]
"hooktestpackage.sub.subber": (False, test_co),
"hooktestpackage.sub.subber": (True, test_co),
def find_module(self, fullname, path=None): self.imports.append(fullname) return None
318667d7da006e095462f3bbeb4beaa114200a18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/318667d7da006e095462f3bbeb4beaa114200a18/test_importhooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 2978, 12, 2890, 16, 13321, 16, 589, 33, 7036, 4672, 365, 18, 21350, 18, 6923, 12, 21885, 13, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2978, 12, 2890, 16, 13321, 16, 589, 33, 7036, 4672, 365, 18, 21350, 18, 6923, 12, 21885, 13, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
from django.contrib.auth import authenticate user = authenticate(username=username, password=password) if user is None:
user = ESPUser.objects.get(username__iexact=username) if not user.check_password(password):
def return_(val): """ Return the specified return value in the appropriate format """ if val == True: print "true" sys.exit(0) elif val == False: print "false" sys.exit(1) else: print val sys.exit(255)
6f049ff6022c075b74a5dd4847c06eb99b7a0878 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/6f049ff6022c075b74a5dd4847c06eb99b7a0878/cmdline_auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 67, 12, 1125, 4672, 3536, 2000, 326, 1269, 327, 460, 316, 326, 5505, 740, 3536, 309, 1244, 422, 1053, 30, 1172, 315, 3767, 6, 2589, 18, 8593, 12, 20, 13, 1327, 1244, 422, 1083, 30, 1172, 315, 5743, 6, 2589, 18, 8593, 12, 21, 13, 469, 30, 1172, 1244, 2589, 18, 8593, 12, 10395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30, 1172, 315, 3767, 6, 2589, 18, 8593, 12, 20, 13, 1327, 1244, 422, 1083, 30, 1172, 315, 5743, 6, 2589, 18, 8593, 12, 21, 13, 469, 30, 1172, 1244, 2589, 18, 8593, 12, 10395, 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, -100, -100 ]
if not math.isnan(feat.GetField( 'AREA' )): print feat.GetFieldAsString( 'AREA' )+' returned for AREA instead of '+value
if got_val == got_val: print(feat.GetFieldAsString( 'AREA' )+' returned for AREA instead of '+value)
dst_feat = ogr.Feature( feature_def = gdaltest.pg_lyr.GetLayerDefn() )
543a0c331f58d1331c9e2514039e4acdd2e52390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/543a0c331f58d1331c9e2514039e4acdd2e52390/ogr_pg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3046, 67, 29735, 273, 320, 3197, 18, 4595, 12, 2572, 67, 536, 273, 15551, 2390, 395, 18, 8365, 67, 715, 86, 18, 967, 4576, 3262, 82, 1435, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3046, 67, 29735, 273, 320, 3197, 18, 4595, 12, 2572, 67, 536, 273, 15551, 2390, 395, 18, 8365, 67, 715, 86, 18, 967, 4576, 3262, 82, 1435, 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 ]
effective = (effective / tabwidth + 1) * tabwidth
effective = (int(effective / tabwidth) + 1) * tabwidth
def classifyws(s, tabwidth): raw = effective = 0 for ch in s: if ch == ' ': raw = raw + 1 effective = effective + 1 elif ch == '\t': raw = raw + 1 effective = (effective / tabwidth + 1) * tabwidth else: break return raw, effective
56ad405be8e8cd22c8b59f914257b2c442df3a21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/56ad405be8e8cd22c8b59f914257b2c442df3a21/AutoIndent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19974, 4749, 12, 87, 16, 3246, 2819, 4672, 1831, 273, 11448, 273, 374, 364, 462, 316, 272, 30, 309, 462, 422, 296, 4290, 1831, 273, 1831, 397, 404, 11448, 273, 11448, 397, 404, 1327, 462, 422, 2337, 88, 4278, 1831, 273, 1831, 397, 404, 11448, 273, 261, 474, 12, 28894, 342, 3246, 2819, 13, 397, 404, 13, 380, 3246, 2819, 469, 30, 898, 327, 1831, 16, 11448, 225, 2, 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, 19974, 4749, 12, 87, 16, 3246, 2819, 4672, 1831, 273, 11448, 273, 374, 364, 462, 316, 272, 30, 309, 462, 422, 296, 4290, 1831, 273, 1831, 397, 404, 11448, 273, 11448, 397, 404, 1327, 462, 422, 2337, 88, 4278, 1831, 273, 1831, 397, 404, 11448, 273, 261, 474, 12, 28894, 342, 3246, 2819, 13, 397, 404, 13, 380, 3246, 2819, 469, 30, 898, 327, 1831, 16, 11448, 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 ]
i += 1 sn += 1
def makeSectors(self): # normalize slice data if type(self.data) in (ListType, TupleType) and type(self.data[0]) in (ListType, TupleType): #it's a nested list, more than one sequence normData = [] n = [] for l in self.data: t = self.normalizeData(l) normData.append(t) n.append(len(t)) self._seriesCount = max(n) else: normData = self.normalizeData(self.data) n = len(normData) self._seriesCount = n
8eb5ba4a1afccb43cbef813598e010b3e0d959a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/8eb5ba4a1afccb43cbef813598e010b3e0d959a9/doughnut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 55, 18886, 12, 2890, 4672, 468, 3883, 2788, 501, 309, 618, 12, 2890, 18, 892, 13, 316, 261, 19366, 16, 7257, 559, 13, 471, 618, 12, 2890, 18, 892, 63, 20, 5717, 316, 261, 19366, 16, 7257, 559, 4672, 468, 305, 1807, 279, 4764, 666, 16, 1898, 2353, 1245, 3102, 4651, 751, 273, 5378, 290, 273, 5378, 364, 328, 316, 365, 18, 892, 30, 268, 273, 365, 18, 12237, 751, 12, 80, 13, 4651, 751, 18, 6923, 12, 88, 13, 290, 18, 6923, 12, 1897, 12, 88, 3719, 365, 6315, 10222, 1380, 273, 943, 12, 82, 13, 469, 30, 4651, 751, 273, 365, 18, 12237, 751, 12, 2890, 18, 892, 13, 290, 273, 562, 12, 7959, 751, 13, 365, 6315, 10222, 1380, 273, 290, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 55, 18886, 12, 2890, 4672, 468, 3883, 2788, 501, 309, 618, 12, 2890, 18, 892, 13, 316, 261, 19366, 16, 7257, 559, 13, 471, 618, 12, 2890, 18, 892, 63, 20, 5717, 316, 261, 19366, 16, 7257, 559, 4672, 468, 305, 1807, 279, 4764, 666, 16, 1898, 2353, 1245, 3102, 4651, 751, 273, 5378, 290, 273, 5378, 364, 328, 316, 365, 18, 892, 30, 268, 273, 365, 18, 12237, 751, 12, 80, 13, 4651, 751, 18, 6923, 12, 88, 13, 290, 18, 6923, 12, 1897, 12, 88, 3719, 365, 6315, 10222, 1380, 273, 943, 12, 82, 13, 469, 30, 4651, 751, 273, 365, 18, 12237, 751, 12, 2890, 18, 892, 13, 290, 273, 562, 12, 7959, 751, 2 ]
self.extra_headers.append(Header("SIP-If-Match", self._last_etag))
extra_headers.append(Header("SIP-If-Match", self._last_etag)) extra_headers.extend(self.extra_headers)
def _make_and_send_request(self, body, route_header, timeout, do_publish): notification_center = NotificationCenter() self.extra_headers.append(Header("Event", self.event)) self.extra_headers.append(Header("Expires", str(int(self.duration) if do_publish else 0))) if self._last_etag is not None: self.extra_headers.append(Header("SIP-If-Match", self._last_etag)) content_type = (self.content_type if body is not None else None) request = Request("PUBLISH", self.from_header, ToHeader.new(self.from_header), self.from_header.uri, route_header, credentials=self.credentials, cseq=1, extra_headers=self.extra_headers, content_type=content_type, body=body) notification_center.add_observer(self, sender=request) if self._current_request is not None: # we are trying to send something already, cancel whatever it is self._current_request.end() self._current_request = None try: request.send(timeout=timeout) except: notification_center.remove_observer(self, sender=request) raise self._unpublishing = not do_publish self._current_request = request
54054ceb4db5c460c5e448eee5b3466d1aa0ee29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/54054ceb4db5c460c5e448eee5b3466d1aa0ee29/_primitives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 464, 67, 4661, 67, 2293, 12, 2890, 16, 1417, 16, 1946, 67, 3374, 16, 2021, 16, 741, 67, 6543, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 365, 18, 7763, 67, 2485, 18, 6923, 12, 1864, 2932, 1133, 3113, 365, 18, 2575, 3719, 365, 18, 7763, 67, 2485, 18, 6923, 12, 1864, 2932, 14449, 3113, 225, 609, 12, 474, 12, 2890, 18, 8760, 13, 309, 741, 67, 6543, 469, 374, 20349, 309, 365, 6315, 2722, 67, 20788, 353, 486, 599, 30, 2870, 67, 2485, 18, 6923, 12, 1864, 2932, 17739, 17, 2047, 17, 2060, 3113, 365, 6315, 2722, 67, 20788, 3719, 2870, 67, 2485, 18, 14313, 12, 2890, 18, 7763, 67, 2485, 13, 913, 67, 723, 273, 261, 2890, 18, 1745, 67, 723, 309, 1417, 353, 486, 599, 469, 599, 13, 590, 273, 1567, 2932, 22224, 3113, 365, 18, 2080, 67, 3374, 16, 2974, 1864, 18, 2704, 12, 2890, 18, 2080, 67, 3374, 3631, 365, 18, 2080, 67, 3374, 18, 1650, 16, 1946, 67, 3374, 16, 4448, 33, 2890, 18, 11687, 16, 276, 5436, 33, 21, 16, 2870, 67, 2485, 33, 2890, 18, 7763, 67, 2485, 16, 913, 67, 723, 33, 1745, 67, 723, 16, 1417, 33, 3432, 13, 3851, 67, 5693, 18, 1289, 67, 30971, 12, 2890, 16, 5793, 33, 2293, 13, 309, 365, 6315, 2972, 67, 2293, 353, 486, 599, 30, 468, 732, 854, 8374, 358, 1366, 5943, 1818, 16, 3755, 15098, 518, 353, 365, 6315, 2972, 67, 2293, 18, 409, 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, 6540, 67, 464, 67, 4661, 67, 2293, 12, 2890, 16, 1417, 16, 1946, 67, 3374, 16, 2021, 16, 741, 67, 6543, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 365, 18, 7763, 67, 2485, 18, 6923, 12, 1864, 2932, 1133, 3113, 365, 18, 2575, 3719, 365, 18, 7763, 67, 2485, 18, 6923, 12, 1864, 2932, 14449, 3113, 225, 609, 12, 474, 12, 2890, 18, 8760, 13, 309, 741, 67, 6543, 469, 374, 20349, 309, 365, 6315, 2722, 67, 20788, 353, 486, 599, 30, 2870, 67, 2485, 18, 6923, 12, 1864, 2932, 17739, 17, 2047, 17, 2060, 3113, 365, 6315, 2722, 67, 20788, 3719, 2870, 67, 2485, 18, 14313, 12, 2890, 18, 7763, 67, 2485, 13, 913, 67, 2 ]
return (self._state != self.Open)
return (self._state == self.Open)
def isOpen(self): """Return True if serial connection is open" """ return (self._state != self.Open)
5eed45bbd5254c44a87c429e6fa71ff31f08cd74 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6354/5eed45bbd5254c44a87c429e6fa71ff31f08cd74/TkSerial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16633, 12, 2890, 4672, 3536, 990, 1053, 309, 2734, 1459, 353, 1696, 6, 3536, 327, 261, 2890, 6315, 2019, 422, 365, 18, 3678, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16633, 12, 2890, 4672, 3536, 990, 1053, 309, 2734, 1459, 353, 1696, 6, 3536, 327, 261, 2890, 6315, 2019, 422, 365, 18, 3678, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if func.func_name in self.commands_resuming :
if func.func_name in self.commands_resuming:
return # continue to handle other cmd def in the cmd list
f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053bdc/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 468, 1324, 358, 1640, 1308, 1797, 1652, 316, 326, 1797, 666, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 468, 1324, 358, 1640, 1308, 1797, 1652, 316, 326, 1797, 666, 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 ]
MelString('ICON','iconPath'),
MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'),
def dumpData(self,record,out): if not record.schd_p: MelStruct.dumpData(self,record,out)
99172d4ed4977108c05b04adab7c91f861e1c635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/99172d4ed4977108c05b04adab7c91f861e1c635/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 751, 12, 2890, 16, 3366, 16, 659, 4672, 309, 486, 1409, 18, 28204, 72, 67, 84, 30, 490, 292, 3823, 18, 8481, 751, 12, 2890, 16, 3366, 16, 659, 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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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, 4657, 751, 12, 2890, 16, 3366, 16, 659, 4672, 309, 486, 1409, 18, 28204, 72, 67, 84, 30, 490, 292, 3823, 18, 8481, 751, 12, 2890, 16, 3366, 16, 659, 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 ]
installDir = os.path.join(destdir,libDir.split(os.sep))
installDir = os.path.join(destdir,*libDir.split(os.sep))
def main(command, destdir): # Command-line arguments if command not in ("build","install","clean","uninstall"): raise RuntimeError, "Command '%s' not supported" % command # Extract the Makefile variables print "\nExtracting Makefile variables ...", sys.stdout.flush() makeMacros = processMakefile("Makefile") print "done" # Determine what packages are enabled enabledPackages = [package for package in packages if makeMacros.get("ENABLE_" + package.upper(), "false") == "true"] # Determine the installation information mkdir = makeMacros["mkdir_p"] libDir = makeMacros["libdir"] if destdir: installDir = os.path.join(destdir,libDir.split(os.sep)) else: installDir = libDir ###################################################### # Build/clean/install/uninstall the shared libraries # ###################################################### if SharedUtils.buildSharedLibraries(): # Create the shared library builders builders = [ ] for package in enabledPackages: builders.append(SharedUtils.SharedTrilinosBuilder(package)) # Special cases if makeMacros["ENABLE_THYRA" ] == "true" and \ makeMacros["ENABLE_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("thyraepetra")) if makeMacros["ENABLE_THYRA" ] == "true" and \ makeMacros["ENABLE_EPETRAEXT"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("thyraepetraext")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_AMESOS" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosamesos")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_AZTECOO" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosaztecoo")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_IFPACK" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosifpack")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_ML" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosml")) if makeMacros["ENABLE_NOX_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("noxepetra")) if makeMacros["ENABLE_LOCA" ] == "true" and \ makeMacros["ENABLE_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("locaepetra")) if makeMacros["ENABLE_MOOCHO"] == "true" and \ makeMacros["ENABLE_THYRA" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("moochothyra")) # Add the PyTrilinos shared library builder to the end of the list if makeMacros["ENABLE_PYTRILINOS"] == "true": builders.append(SharedUtils.SharedPyTrilinosBuilder()) # Build command if command == "build": # Convert package libraries to shared for builder in builders: builder.buildShared() # Clean command if command == "clean": # Remove any dynamic libraries for builder in builders: builder.clean() # Install command if command == "install": # Make sure the lib directory exists SharedUtils.runCommand(" ".join([mkdir, installDir])) # Install the shared libraries for builder in builders: builder.install(installDir) # Uninstall command if command == "uninstall": # Uninstall the dynamic libraries for builder in builders: builder.uninstall()
1fde73463515d81a43b34293b141579ba8676802 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/1fde73463515d81a43b34293b141579ba8676802/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 3076, 16, 1570, 1214, 4672, 225, 468, 3498, 17, 1369, 1775, 309, 1296, 486, 316, 7566, 3510, 15937, 5425, 15937, 6200, 15937, 28872, 6, 4672, 1002, 7265, 16, 315, 2189, 1995, 87, 11, 486, 3260, 6, 738, 1296, 225, 468, 8152, 326, 4344, 768, 3152, 1172, 1548, 82, 4976, 310, 4344, 768, 3152, 1372, 3113, 2589, 18, 10283, 18, 11330, 1435, 1221, 9990, 6973, 273, 1207, 6464, 768, 2932, 6464, 768, 7923, 1172, 315, 8734, 6, 225, 468, 10229, 4121, 5907, 854, 3696, 3696, 11425, 273, 306, 5610, 364, 2181, 316, 5907, 309, 1221, 9990, 6973, 18, 588, 2932, 29377, 9548, 397, 2181, 18, 5797, 9334, 315, 5743, 7923, 422, 315, 3767, 11929, 225, 468, 10229, 326, 13193, 1779, 6535, 1377, 273, 1221, 9990, 6973, 9614, 26686, 67, 84, 11929, 2561, 1621, 377, 273, 1221, 9990, 6973, 9614, 2941, 1214, 11929, 309, 1570, 1214, 30, 3799, 1621, 273, 1140, 18, 803, 18, 5701, 12, 10488, 1214, 16, 14, 2941, 1621, 18, 4939, 12, 538, 18, 10814, 3719, 469, 30, 3799, 1621, 273, 2561, 1621, 225, 19709, 5516, 1970, 7, 468, 3998, 19, 6200, 19, 5425, 19, 28872, 326, 5116, 14732, 468, 19709, 5516, 1970, 7, 225, 309, 10314, 1989, 18, 3510, 7887, 31909, 13332, 225, 468, 1788, 326, 5116, 5313, 19916, 19916, 273, 306, 308, 364, 2181, 316, 3696, 11425, 30, 19916, 18, 6923, 12, 7887, 1989, 18, 7887, 1070, 330, 267, 538, 1263, 12, 5610, 3719, 225, 468, 13409, 6088, 309, 1221, 9990, 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, 12, 3076, 16, 1570, 1214, 4672, 225, 468, 3498, 17, 1369, 1775, 309, 1296, 486, 316, 7566, 3510, 15937, 5425, 15937, 6200, 15937, 28872, 6, 4672, 1002, 7265, 16, 315, 2189, 1995, 87, 11, 486, 3260, 6, 738, 1296, 225, 468, 8152, 326, 4344, 768, 3152, 1172, 1548, 82, 4976, 310, 4344, 768, 3152, 1372, 3113, 2589, 18, 10283, 18, 11330, 1435, 1221, 9990, 6973, 273, 1207, 6464, 768, 2932, 6464, 768, 7923, 1172, 315, 8734, 6, 225, 468, 10229, 4121, 5907, 854, 3696, 3696, 11425, 273, 306, 5610, 364, 2181, 316, 5907, 309, 1221, 9990, 6973, 18, 588, 2932, 29377, 9548, 397, 2181, 18, 5797, 9334, 315, 5743, 7923, 422, 315, 3767, 11929, 225, 468, 10229, 2 ]
def onPageChanged(self, event): inspector = self.inspectors[event.GetSelection()] if inspector is not None: self.SetTitle(inspector.name() + ' ' + gettext('Inspector')) if not self._updatingInspectors: self._lastClickedInspectorClass = inspector.__class__
def onSize(self, event): if self._activeInspector is not None: self._activeInspector.window().Layout()
def onPageChanged(self, event): inspector = self.inspectors[event.GetSelection()] if inspector is not None: self.SetTitle(inspector.name() + ' ' + gettext('Inspector')) if not self._updatingInspectors: self._lastClickedInspectorClass = inspector.__class__ self.Layout() self.Fit() # wx.StaticBoxSizers in wx.ToolBooks are flaky with the current wx. Any static boxes in the inspector won't be laid out correctly at this point. # We have to wait until they get realized and rendered once and then layout again. wx.CallAfter(self.relayout)
853364df34a3a5ee0851c87290c96a6e9b16b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/853364df34a3a5ee0851c87290c96a6e9b16b8f5/InspectorFrame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1225, 12, 2890, 16, 871, 4672, 309, 365, 6315, 3535, 19443, 353, 486, 599, 30, 365, 6315, 3535, 19443, 18, 5668, 7675, 3744, 1435, 365, 18, 3744, 1435, 365, 18, 14219, 1435, 225, 468, 7075, 18, 5788, 3514, 55, 8426, 316, 7075, 18, 6364, 9084, 87, 854, 1183, 29643, 598, 326, 783, 7075, 18, 225, 5502, 760, 14356, 316, 326, 22700, 8462, 1404, 506, 7125, 350, 596, 8783, 622,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1225, 12, 2890, 16, 871, 4672, 309, 365, 6315, 3535, 19443, 353, 486, 599, 30, 365, 6315, 3535, 19443, 18, 5668, 7675, 3744, 1435, 365, 18, 3744, 1435, 365, 18, 14219, 1435, 225, 468, 7075, 18, 5788, 3514, 55, 8426, 316, 7075, 18, 6364, 9084, 87, 854, 1183, 29643, 598, 326, 783, 7075, 18, 225, 5502, 760, 14356, 316, 326, 22700, 8462, 1404, 506, 7125, 350, 596, 8783, 622, 333, 1634, 18, 468, 1660, 1240, 358, 2529, 3180, 2898, 336, 2863, 1235, 471, 7935, 3647, 471, 1508, 3511, 3382, 18, 7075, 18, 1477, 4436, 12, 2890, 18, 2878, 2012, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.unlink(TESTFN)
test_support.unlink(TESTFN)
def test_codingspec(self): try: for enc in ALL_CJKENCODINGS: print('# coding:', enc, file=io.open(TESTFN, 'w')) execfile(TESTFN) finally: os.unlink(TESTFN)
7159cac0b83cfedc657b3553c4ea97667edc1fe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7159cac0b83cfedc657b3553c4ea97667edc1fe5/test_multibytecodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1559, 899, 705, 12, 2890, 4672, 775,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1559, 899, 705, 12, 2890, 4672, 775, 30, 364, 2446, 316, 8061, 67, 39, 19474, 14672, 55, 30, 1172, 2668, 7, 14848, 30, 2187, 2446, 16, 585, 33, 1594, 18, 3190, 12, 16961, 19793, 16, 296, 91, 26112, 1196, 768, 12, 16961, 19793, 13, 3095, 30, 1140, 18, 318, 1232, 12, 16961, 19793, 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 ]
setTelephone(self.phone.getText())
setOptions(self.phone.getText(), self.username.getText())
def connect(self): if self.green_function == CONNECT: global gateway gateway = getDefaultGateway() self["state"].setText(_("Dialing:")) system("route del default") system("modprobe ppp_async"); self.stateTimer.start(1000,False) setTelephone(self.phone.getText()) setSecretString(self.username.getText() + ' * ' + self.password.getText()) ret = conn.execute("pppd", "pppd", "-d", "-detach") if ret: print "execute pppd failed!" self.pppdClosed(ret) pppdClosed(ret) self.green_function = NONE self.red_function = ABORT self.updateGui()
d54760e74574f4fdc37b73f9afc8474e744d8543 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d54760e74574f4fdc37b73f9afc8474e744d8543/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 309, 365, 18, 11571, 67, 915, 422, 21593, 30, 2552, 6878, 6878, 273, 4829, 5197, 1435, 365, 9614, 2019, 6, 8009, 542, 1528, 24899, 2932, 11885, 310, 2773, 3719, 2619, 2932, 5547, 1464, 805, 7923, 2619, 2932, 1711, 27230, 8228, 84, 67, 3810, 8863, 365, 18, 2019, 6777, 18, 1937, 12, 18088, 16, 8381, 13, 16526, 12, 2890, 18, 10540, 18, 588, 1528, 9334, 365, 18, 5053, 18, 588, 1528, 10756, 444, 5207, 780, 12, 2890, 18, 5053, 18, 588, 1528, 1435, 397, 296, 380, 296, 397, 365, 18, 3664, 18, 588, 1528, 10756, 325, 273, 1487, 18, 8837, 2932, 11858, 22353, 3113, 315, 11858, 22353, 3113, 3701, 72, 3113, 3701, 8238, 497, 7923, 309, 325, 30, 1172, 315, 8837, 8228, 22353, 2535, 4442, 365, 18, 11858, 22353, 7395, 12, 1349, 13, 8228, 22353, 7395, 12, 1349, 13, 365, 18, 11571, 67, 915, 273, 11829, 365, 18, 1118, 67, 915, 273, 10336, 3871, 365, 18, 2725, 18070, 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,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619, 2932, 1711, 27230, 8228, 84, 67, 3810, 8863, 365, 18, 2019, 6777, 18, 1937, 12, 18088, 16, 8381, 13, 16526, 12, 2890, 18, 10540, 18, 588, 1528, 9334, 365, 18, 5053, 18, 588, 1528, 10756, 444, 5207, 780, 12, 2890, 18, 5053, 18, 588, 1528, 1435, 397, 296, 380, 296, 397, 365, 18, 3664, 18, 588, 1528, 10756, 325, 273, 1487, 18, 8837, 2932, 11858, 22353, 3113, 315, 11858, 22353, 3113, 3701, 72, 3113, 3701, 8238, 497, 7923, 2 ]
YouTubeVideoQuery.__init__(self, feed, text_query=text_query,
YouTubeVideoQuery.__init__(self, feed=feed, text_query=text_query,
def __init__(self, playlist_id, text_query=None, params=None, categories=None): if playlist_id: feed = "http://%s/feeds/playlists/%s" % (YOUTUBE_SERVER, playlist_id) else: feed = "http://%s/feeds/playlists" % (YOUTUBE_SERVER)
9f0ecbaa66b0e2a9b00d6ebc6945a479a8ce44f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/9f0ecbaa66b0e2a9b00d6ebc6945a479a8ce44f5/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16428, 67, 350, 16, 977, 67, 2271, 33, 7036, 16, 859, 33, 7036, 16, 6477, 33, 7036, 4672, 309, 16428, 67, 350, 30, 4746, 273, 315, 2505, 23155, 87, 19, 7848, 87, 19, 1601, 9772, 5258, 87, 6, 738, 261, 61, 5069, 3457, 41, 67, 4370, 16, 16428, 67, 350, 13, 469, 30, 4746, 273, 315, 2505, 23155, 87, 19, 7848, 87, 19, 1601, 9772, 6, 738, 261, 61, 5069, 3457, 41, 67, 4370, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16428, 67, 350, 16, 977, 67, 2271, 33, 7036, 16, 859, 33, 7036, 16, 6477, 33, 7036, 4672, 309, 16428, 67, 350, 30, 4746, 273, 315, 2505, 23155, 87, 19, 7848, 87, 19, 1601, 9772, 5258, 87, 6, 738, 261, 61, 5069, 3457, 41, 67, 4370, 16, 16428, 67, 350, 13, 469, 30, 4746, 273, 315, 2505, 23155, 87, 19, 7848, 87, 19, 1601, 9772, 6, 738, 261, 61, 5069, 3457, 41, 67, 4370, 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 ]
'date_planned': newdate.strftime('%Y-%m-%d'),
'date_planned': newdate.strftime('%Y-%m-%d %H:%M:%S'),
def po_generate(self,cr, uid, ids, *args): plines = self.browse(cr, uid ,ids) if not plines: raise osv.except_osv('Warning', "There's no purchase lines defined for this campaign") for pline in plines: if pline.state != 'done': if not pline.product_id.seller_ids: raise osv.except_osv('Warning', "There's no supplier defined for this product : %s" % (pline.product_id.name,) )
69c8954d987167cad030faf89e21c8ebbb6cb792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/69c8954d987167cad030faf89e21c8ebbb6cb792/campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8275, 67, 7163, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 886, 1465, 273, 365, 18, 25731, 12, 3353, 16, 4555, 269, 2232, 13, 309, 486, 886, 1465, 30, 1002, 225, 1140, 90, 18, 14137, 67, 538, 90, 2668, 6210, 2187, 315, 9828, 1807, 1158, 23701, 2362, 2553, 364, 333, 8965, 7923, 364, 886, 558, 316, 886, 1465, 30, 309, 886, 558, 18, 2019, 480, 296, 8734, 4278, 309, 486, 886, 558, 18, 5896, 67, 350, 18, 1786, 749, 67, 2232, 30, 1002, 225, 1140, 90, 18, 14137, 67, 538, 90, 2668, 6210, 2187, 315, 9828, 1807, 1158, 17402, 2553, 364, 333, 3017, 294, 738, 87, 6, 738, 261, 412, 558, 18, 5896, 67, 350, 18, 529, 16, 13, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8275, 67, 7163, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 886, 1465, 273, 365, 18, 25731, 12, 3353, 16, 4555, 269, 2232, 13, 309, 486, 886, 1465, 30, 1002, 225, 1140, 90, 18, 14137, 67, 538, 90, 2668, 6210, 2187, 315, 9828, 1807, 1158, 23701, 2362, 2553, 364, 333, 8965, 7923, 364, 886, 558, 316, 886, 1465, 30, 309, 886, 558, 18, 2019, 480, 296, 8734, 4278, 309, 486, 886, 558, 18, 5896, 67, 350, 18, 1786, 749, 67, 2232, 30, 1002, 225, 1140, 90, 18, 14137, 67, 538, 90, 2668, 6210, 2187, 315, 9828, 1807, 1158, 17402, 2553, 364, 333, 3017, 294, 738, 87, 6, 738, 261, 412, 558, 18, 5896, 67, 2 ]
r = text.__repr__() if r[0] == '"': r = r[1:-1].replace("'", "\\'") else: r = r[1:-1].replace('"', '\\"') return r
return text.encode("string_escape")
def encode(text): r = text.__repr__() if r[0] == '"': # String surrounded by " returned, need to escape ' r = r[1:-1].replace("'", "\\'") else: # String surrounded by ' returned, need to escape " r = r[1:-1].replace('"', '\\"') return r
9544ed6a77ed6e5482983d4fea911e4c6c8f1d14 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7146/9544ed6a77ed6e5482983d4fea911e4c6c8f1d14/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 955, 4672, 436, 273, 977, 16186, 12715, 972, 1435, 309, 436, 63, 20, 65, 422, 2119, 4278, 468, 514, 5056, 27561, 635, 315, 2106, 16, 1608, 358, 4114, 296, 436, 273, 436, 63, 21, 30, 17, 21, 8009, 2079, 29823, 3113, 1548, 3730, 7923, 469, 30, 468, 514, 5056, 27561, 635, 296, 2106, 16, 1608, 358, 4114, 315, 436, 273, 436, 63, 21, 30, 17, 21, 8009, 2079, 22076, 2187, 3718, 5187, 13, 327, 436, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 955, 4672, 436, 273, 977, 16186, 12715, 972, 1435, 309, 436, 63, 20, 65, 422, 2119, 4278, 468, 514, 5056, 27561, 635, 315, 2106, 16, 1608, 358, 4114, 296, 436, 273, 436, 63, 21, 30, 17, 21, 8009, 2079, 29823, 3113, 1548, 3730, 7923, 469, 30, 468, 514, 5056, 27561, 635, 296, 2106, 16, 1608, 358, 4114, 315, 436, 273, 436, 63, 21, 30, 17, 21, 8009, 2079, 22076, 2187, 3718, 5187, 13, 327, 436, 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 ]
Searches for events in the database and stores a list of resource names. All events with at least one pick set in between start- and
Searches for events in the database and returns a lxml ElementTree object. All events with at least one pick set in between start- and
def updateEventListFromSeishub(self, starttime, endtime): """ Searches for events in the database and stores a list of resource names. All events with at least one pick set in between start- and endtime are returned.
f1b07e9850f312d642204d84482875b77beec5ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/f1b07e9850f312d642204d84482875b77beec5ed/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1133, 682, 1265, 1761, 1468, 373, 12, 2890, 16, 23437, 16, 31361, 4672, 3536, 5167, 281, 364, 2641, 316, 326, 2063, 471, 1135, 279, 328, 2902, 22566, 733, 18, 4826, 2641, 598, 622, 4520, 1245, 6002, 444, 316, 3086, 787, 17, 471, 31361, 854, 2106, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1133, 682, 1265, 1761, 1468, 373, 12, 2890, 16, 23437, 16, 31361, 4672, 3536, 5167, 281, 364, 2641, 316, 326, 2063, 471, 1135, 279, 328, 2902, 22566, 733, 18, 4826, 2641, 598, 622, 4520, 1245, 6002, 444, 316, 3086, 787, 17, 471, 31361, 854, 2106, 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 ]
assert package in packages, "package " + package + " cannot be updated because it does not exist"
if package not in packages: sys.stderr.write ("package " + package + " cannot be updated because it does not exist\n")
def myvercmp (first, second): if first == second: return 0 elif bestVersion((first, second)) == first: return 1 else: return -1
fb06a65eda201f9ceb8dc47bedd30453a10cc740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2508/fb06a65eda201f9ceb8dc47bedd30453a10cc740/new-kde-ebuilds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 502, 9625, 261, 3645, 16, 2205, 4672, 309, 1122, 422, 2205, 30, 327, 374, 1327, 3796, 1444, 12443, 3645, 16, 2205, 3719, 422, 1122, 30, 327, 404, 469, 30, 327, 300, 21, 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, 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 1327, 3796, 1444, 12443, 3645, 16, 2205, 3719, 422, 1122, 30, 327, 404, 469, 30, 327, 300, 21, 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 ]
(uid, gid, pid) = self.GetContext() tsumufs.cacheManager.access(uid, path, os.W_OK)
context = self.GetContext() tsumufs.cacheManager.access(context['uid'], path, os.W_OK)
def rmdir(self, path): ''' Removes a directory from disk.
56cfc668ba28d4093de8b3bf968f1f77cb41dc81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/56cfc668ba28d4093de8b3bf968f1f77cb41dc81/fusethread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21306, 12, 2890, 16, 589, 4672, 9163, 20284, 279, 1867, 628, 4234, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21306, 12, 2890, 16, 589, 4672, 9163, 20284, 279, 1867, 628, 4234, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1
for frame in range(len(cbone)): c = cbone[frame,:] c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1
def load(asf, files): amcs = [] nets = {} for filename in files: print 'loading %s' % filename amcs.append(AMC.from_file(filename)) relationships = {} for rel in asf.hierarchy: parent = rel[0] children = rel[1:] if len(parent): relationships[parent] = children for child in children: if child in amcs[0].bones: nets[child] = {} # this *ought* to match the interval we use in the grap building, but I'm # not sure it really matters interval = 5 print 'building bayes nets' for parent, children in relationships.iteritems(): for child in children: print 'building net for %s' % child if child not in amcs[0].bones: # If the child has no DOF, we don't need to build a net at # all, since we won't be interpolating that bone continue if parent not in amcs[0].bones: # If the parent has no DOF, the bayes net for this # relationship simplifies to a simple histogram of the # bone positions net = nets[child] for amc in amcs: cbone = amc.bones[child] # Chomp to within interval c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1 else: net = nets[child] for amc in amcs: pbone = Numeric.remainder (amc.bones[parent], 360.0) cbone = Numeric.remainder (amc.bones[child], 360.0) for frame in range(len(pbone)): p = pbone[frame,:] c = cbone[frame,:] # Chomp to within interval p = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, p))) c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) p = tuple (map (fix360, p)) c = tuple (map (fix360, c)) if (p, c) in net: net[(p, c)] = net[(p, c)] + 1 else: net[(p, c)] = 1 newnets = {} for bone, net in nets.iteritems(): newnet = {} parents = {} for pose, count in net.iteritems(): ppose = pose[0] cpose = pose[1] if ppose not in parents: parents[ppose] = {} parents[ppose][cpose] = count newnets[bone] = parents del nets nets = {} for bone, parents in newnets.iteritems(): for parent, children in parents.iteritems(): total = 0 for count in children.itervalues(): total += count for child, count in children.iteritems(): nets[(parent, child)] = float(count) / float(total) return nets
ff1f81aafb7e519fd2e34a728f13603d021b1703 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/ff1f81aafb7e519fd2e34a728f13603d021b1703/build_bayes_net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 345, 74, 16, 1390, 4672, 2125, 2143, 273, 5378, 21954, 273, 2618, 225, 364, 1544, 316, 1390, 30, 1172, 296, 15174, 738, 87, 11, 738, 1544, 2125, 2143, 18, 6923, 12, 2192, 39, 18, 2080, 67, 768, 12, 3459, 3719, 225, 11499, 273, 2618, 364, 1279, 316, 487, 74, 18, 17937, 30, 982, 273, 1279, 63, 20, 65, 2325, 273, 1279, 63, 21, 26894, 309, 562, 12, 2938, 4672, 11499, 63, 2938, 65, 273, 2325, 364, 1151, 316, 2325, 30, 309, 1151, 316, 2125, 2143, 63, 20, 8009, 70, 5322, 30, 21954, 63, 3624, 65, 273, 2618, 225, 468, 333, 380, 83, 9540, 14, 358, 845, 326, 3673, 732, 999, 316, 326, 314, 1266, 10504, 16, 1496, 467, 17784, 468, 486, 3071, 518, 8654, 4834, 5432, 3673, 273, 1381, 225, 1172, 296, 3510, 310, 324, 528, 281, 21954, 11, 364, 982, 16, 2325, 316, 11499, 18, 2165, 3319, 13332, 364, 1151, 316, 2325, 30, 1172, 296, 3510, 310, 2901, 364, 738, 87, 11, 738, 1151, 309, 1151, 486, 316, 2125, 2143, 63, 20, 8009, 70, 5322, 30, 468, 971, 326, 1151, 711, 1158, 463, 3932, 16, 732, 2727, 1404, 1608, 358, 1361, 279, 2901, 622, 468, 777, 16, 3241, 732, 8462, 1404, 506, 7326, 1776, 716, 30823, 1324, 309, 982, 486, 316, 2125, 2143, 63, 20, 8009, 70, 5322, 30, 468, 971, 326, 982, 711, 1158, 463, 3932, 16, 326, 324, 528, 281, 2901, 364, 333, 468, 5232, 9330, 5032, 358, 279, 4143, 8892, 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, 1262, 12, 345, 74, 16, 1390, 4672, 2125, 2143, 273, 5378, 21954, 273, 2618, 225, 364, 1544, 316, 1390, 30, 1172, 296, 15174, 738, 87, 11, 738, 1544, 2125, 2143, 18, 6923, 12, 2192, 39, 18, 2080, 67, 768, 12, 3459, 3719, 225, 11499, 273, 2618, 364, 1279, 316, 487, 74, 18, 17937, 30, 982, 273, 1279, 63, 20, 65, 2325, 273, 1279, 63, 21, 26894, 309, 562, 12, 2938, 4672, 11499, 63, 2938, 65, 273, 2325, 364, 1151, 316, 2325, 30, 309, 1151, 316, 2125, 2143, 63, 20, 8009, 70, 5322, 30, 21954, 63, 3624, 65, 273, 2618, 225, 468, 333, 380, 83, 9540, 14, 358, 845, 326, 3673, 732, 999, 316, 326, 314, 1266, 10504, 16, 2 ]
doc = self.doc if doc == None: return None try: doc._ctxt.setContextNode(self) except: doc._ctxt = doc.xpathNewContext() doc._ctxt.setContextNode(self) res = doc._ctxt.xpathEval(expr) return res
return self.xpathEval(expr)
def xpathEval2(self, expr): doc = self.doc if doc == None: return None try: doc._ctxt.setContextNode(self) except: doc._ctxt = doc.xpathNewContext() doc._ctxt.setContextNode(self) res = doc._ctxt.xpathEval(expr) return res
f88d8cf9f1c9538dba187290ad5add003dc22bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/f88d8cf9f1c9538dba187290ad5add003dc22bc7/libxml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6748, 13904, 22, 12, 2890, 16, 3065, 4672, 997, 273, 365, 18, 2434, 309, 997, 422, 599, 30, 327, 599, 775, 30, 997, 6315, 20364, 18, 542, 1042, 907, 12, 2890, 13, 1335, 30, 997, 6315, 20364, 273, 997, 18, 18644, 1908, 1042, 1435, 997, 6315, 20364, 18, 542, 1042, 907, 12, 2890, 13, 400, 273, 997, 6315, 20364, 18, 18644, 13904, 12, 8638, 13, 327, 400, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6748, 13904, 22, 12, 2890, 16, 3065, 4672, 997, 273, 365, 18, 2434, 309, 997, 422, 599, 30, 327, 599, 775, 30, 997, 6315, 20364, 18, 542, 1042, 907, 12, 2890, 13, 1335, 30, 997, 6315, 20364, 273, 997, 18, 18644, 1908, 1042, 1435, 997, 6315, 20364, 18, 542, 1042, 907, 12, 2890, 13, 400, 273, 997, 6315, 20364, 18, 18644, 13904, 12, 8638, 13, 327, 400, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
starting = _MAX_LINES - 4 response[starting:-3] = ['(...%d lines, entire response in ' '%s ...)' % (nlines - (_MAX_LINES - 1), paste_url)]
response[_MAX_LINES:] = ['(...%d lines, entire response in ' '%s ...)' % (nlines, paste_url)]
def infobat_exec(self, target, *text): try: paste_url = yield self._codepad(_EXEC_PRELUDE + ' '.join(text)) page, ign = yield http.get_page(paste_url) except: self.msg(target, 'Error: %r' % sys.exc_info()[1]) raise else: doc = lxml.html.fromstring(page.decode('utf8', 'replace')) response = u''.join(doc.xpath("//a[@name='output']" "/following-sibling::div/table/tr/td[2]/div/pre/text()")) response = [line.rstrip() for line in response.encode('utf-8').splitlines() if line.strip()] nlines = len(response) if nlines > _MAX_LINES: starting = _MAX_LINES - 4 response[starting:-3] = ['(...%d lines, entire response in ' '%s ...)' % (nlines - (_MAX_LINES - 1), paste_url)] for part in response: self.msg(target, part)
cfdcbcc35f8032f08e6ca4663a573b2462f9e51c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6095/cfdcbcc35f8032f08e6ca4663a573b2462f9e51c/irc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 28260, 67, 4177, 12, 2890, 16, 1018, 16, 380, 955, 4672, 775, 30, 19401, 67, 718, 273, 2824, 365, 6315, 710, 6982, 24899, 15271, 67, 3670, 11778, 1639, 397, 296, 2418, 5701, 12, 955, 3719, 1363, 16, 9750, 273, 2824, 1062, 18, 588, 67, 2433, 12, 29795, 67, 718, 13, 1335, 30, 365, 18, 3576, 12, 3299, 16, 296, 668, 30, 738, 86, 11, 738, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 5717, 1002, 469, 30, 997, 273, 328, 2902, 18, 2620, 18, 2080, 1080, 12, 2433, 18, 3922, 2668, 3158, 28, 2187, 296, 2079, 26112, 766, 273, 582, 6309, 18, 5701, 12, 2434, 18, 18644, 2932, 759, 69, 14782, 529, 2218, 2844, 31867, 2206, 14641, 310, 17, 22734, 2866, 2892, 19, 2121, 19, 313, 19, 4465, 63, 22, 18537, 2892, 19, 1484, 19, 955, 10031, 3719, 766, 273, 306, 1369, 18, 86, 6406, 1435, 364, 980, 316, 766, 18, 3015, 2668, 3158, 17, 28, 16063, 4939, 3548, 1435, 309, 980, 18, 6406, 1435, 65, 290, 3548, 273, 562, 12, 2740, 13, 309, 290, 3548, 405, 389, 6694, 67, 5997, 55, 30, 766, 63, 67, 6694, 67, 5997, 55, 26894, 273, 10228, 5825, 9, 72, 2362, 16, 7278, 766, 316, 296, 1995, 87, 1372, 2506, 738, 261, 82, 3548, 16, 19401, 67, 718, 25887, 364, 1087, 316, 766, 30, 365, 18, 3576, 12, 3299, 16, 1087, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1123, 28260, 67, 4177, 12, 2890, 16, 1018, 16, 380, 955, 4672, 775, 30, 19401, 67, 718, 273, 2824, 365, 6315, 710, 6982, 24899, 15271, 67, 3670, 11778, 1639, 397, 296, 2418, 5701, 12, 955, 3719, 1363, 16, 9750, 273, 2824, 1062, 18, 588, 67, 2433, 12, 29795, 67, 718, 13, 1335, 30, 365, 18, 3576, 12, 3299, 16, 296, 668, 30, 738, 86, 11, 738, 2589, 18, 10075, 67, 1376, 1435, 63, 21, 5717, 1002, 469, 30, 997, 273, 328, 2902, 18, 2620, 18, 2080, 1080, 12, 2433, 18, 3922, 2668, 3158, 28, 2187, 296, 2079, 26112, 766, 273, 582, 6309, 18, 5701, 12, 2434, 18, 18644, 2932, 759, 69, 14782, 529, 2218, 2844, 31867, 2206, 14641, 2 ]
os.mkdir(gromacsFullBaseFileName) pidFileName = gromacsFullBaseFileName + os.sep + "pid"
pidFileName = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() print "1 pidFileName=%s" % pidFileName os.mkdir(pidFileName) pidFileName += os.sep + "pid" print "2 pidFileName=%s" % pidFileName
def run_using_old_movie_obj_to_hold_sim_params(self, movie): #bruce 051115 removed unused 'options' arg self._movie = movie # general kluge for old-code compat (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) does not yet know a proper alist (or any alist, I hope) [bruce 050404] self.errcode = self.set_options_errQ( ) # set movie alist, output filenames, sim executable pathname (verify it exists) #obs comment [about the options arg i removed?? or smth else?] # options include everything that affects the run except the set of atoms and the part if self.errcode: # used to be a local var 'r' # bruce 051115 comment: more than one reason this can happen, one is sim executable missing return self.sim_input_file = self.sim_input_filename() # might get name from options or make up a temporary filename if (self.mflag == 1 and self.useGromacs): if (not self.verifyGromacsPlugin()): self.errcode = _FAILURE_ALREADY_DOCUMENTED return self.set_waitcursor(True) progressBar = self.win.statusBar().progressBar
db577c710d68147b29e19e07c975b40966936f56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/db577c710d68147b29e19e07c975b40966936f56/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, 1501, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, 1592, 17, 710, 4796, 261, 80, 6968, 434, 3134, 2590, 4859, 999, 333, 471, 5612, 518, 13, 468, 4721, 16, 333, 21360, 733, 261, 266, 1230, 1410, 506, 279, 3142, 8401, 733, 8535, 1552, 486, 4671, 5055, 279, 5338, 524, 376, 261, 280, 1281, 524, 376, 16, 467, 27370, 13, 306, 2848, 3965, 15331, 3028, 3028, 65, 365, 18, 25093, 273, 365, 18, 542, 67, 2116, 67, 370, 53, 12, 262, 468, 444, 21360, 524, 376, 16, 876, 9066, 16, 3142, 9070, 9806, 261, 8705, 518, 1704, 13, 468, 10992, 2879, 306, 21071, 326, 702, 1501, 277, 3723, 14646, 578, 3029, 451, 469, 35, 65, 468, 702, 2341, 7756, 716, 30058, 326, 1086, 1335, 326, 444, 434, 9006, 471, 326, 1087, 309, 365, 18, 25093, 30, 468, 1399, 358, 506, 279, 1191, 569, 296, 86, 11, 468, 5186, 3965, 15331, 2499, 3600, 2879, 30, 1898, 2353, 1245, 3971, 333, 848, 5865, 16, 1245, 353, 3142, 9070, 3315, 327, 365, 18, 9812, 67, 2630, 67, 768, 273, 365, 18, 9812, 67, 2630, 67, 3459, 1435, 468, 4825, 336, 508, 628, 702, 578, 1221, 731, 279, 6269, 1544, 309, 261, 2890, 18, 81, 6420, 422, 404, 471, 365, 18, 1202, 43, 520, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 468, 2848, 3965, 15331, 2499, 3600, 3723, 10197, 296, 2116, 11, 1501, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, 1592, 17, 710, 4796, 261, 80, 6968, 434, 3134, 2590, 4859, 999, 333, 471, 5612, 518, 13, 468, 4721, 16, 333, 21360, 733, 261, 266, 1230, 1410, 506, 279, 3142, 8401, 733, 8535, 1552, 486, 4671, 5055, 279, 5338, 524, 376, 261, 280, 1281, 524, 376, 16, 467, 27370, 13, 306, 2848, 3965, 15331, 3028, 3028, 65, 365, 18, 25093, 273, 365, 18, 542, 67, 2116, 67, 370, 53, 12, 262, 468, 2 ]
m[i,j] = l[i]
mat[i,j] = l[i]
def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix_morphism class!) Uses naive q-expansion arguments if use_recurrence=False and uses the Kolberg style recurrences if use_recurrence=True.
838a498abee29f10814d0a05c45a15fbb11d024c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/838a498abee29f10814d0a05c45a15fbb11d024c/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, 81, 68, 3726, 316, 326, 10853, 434, 333, 3476, 16, 15282, 358, 392, 1375, 82, 521, 8293, 290, 68, 3148, 18, 735, 24862, 854, 716, 12213, 1328, 603, 326, 2002, 603, 1057, 10046, 261, 2211, 353, 326, 20759, 434, 326, 356, 24862, 434, 326, 272, 410, 18, 6400, 18, 5667, 67, 81, 7657, 6228, 667, 24949, 14854, 28224, 1043, 17, 2749, 12162, 1775, 309, 999, 67, 266, 17131, 33, 8381, 471, 4692, 326, 1475, 355, 31317, 2154, 8112, 12228, 309, 999, 67, 266, 17131, 33, 5510, 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, 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, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, 81, 68, 3726, 316, 326, 10853, 434, 333, 3476, 16, 15282, 358, 392, 1375, 82, 521, 8293, 290, 68, 3148, 18, 735, 24862, 854, 716, 12213, 1328, 603, 326, 2002, 603, 1057, 10046, 261, 2211, 353, 326, 20759, 434, 326, 356, 24862, 434, 326, 272, 410, 18, 6400, 18, 5667, 67, 81, 7657, 6228, 667, 24949, 14854, 28224, 1043, 17, 2749, 12162, 1775, 309, 999, 67, 266, 17131, 33, 8381, 471, 4692, 326, 1475, 355, 31317, 2154, 8112, 12228, 309, 999, 67, 2 ]
"msg" : _('Installing %s for Python (required by UFO)') % (component,),
"msg" : _('Installing %s (required by UFO)') % (component,),
def get_generic_installation_messages(self, component): return { "title" : _("Please wait"), "msg" : _('Installing %s for Python (required by UFO)') % (component,), "success_msg" : _("%s was successfully installed") % (component,), "error_msg" : _("An error occurred while installing %s") % (component,) }
0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e/linuxbackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13540, 67, 5425, 367, 67, 6833, 12, 2890, 16, 1794, 4672, 327, 288, 315, 2649, 6, 294, 389, 2932, 8496, 2529, 6, 3631, 315, 3576, 6, 294, 389, 2668, 6410, 310, 738, 87, 261, 4718, 635, 587, 3313, 2506, 13, 738, 261, 4652, 16, 3631, 315, 4768, 67, 3576, 6, 294, 389, 27188, 87, 1703, 4985, 5876, 7923, 738, 261, 4652, 16, 3631, 315, 1636, 67, 3576, 6, 294, 389, 2932, 979, 555, 7841, 1323, 3799, 310, 738, 87, 7923, 738, 261, 4652, 16, 13, 289,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 13540, 67, 5425, 367, 67, 6833, 12, 2890, 16, 1794, 4672, 327, 288, 315, 2649, 6, 294, 389, 2932, 8496, 2529, 6, 3631, 315, 3576, 6, 294, 389, 2668, 6410, 310, 738, 87, 261, 4718, 635, 587, 3313, 2506, 13, 738, 261, 4652, 16, 3631, 315, 4768, 67, 3576, 6, 294, 389, 27188, 87, 1703, 4985, 5876, 7923, 738, 261, 4652, 16, 3631, 315, 1636, 67, 3576, 6, 294, 389, 2932, 979, 555, 7841, 1323, 3799, 310, 738, 87, 7923, 738, 261, 4652, 16, 13, 289, 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 ]
def __search(self, songs, dummy):
def __search(self, browser, songs, dummy):
def __search(self, songs, dummy): model = self.__view.get_model() model.clear() songs.sort() for song in songs: model.append([song])
9c701556952d3e0476b1cdf1642f5c98851e8063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/9c701556952d3e0476b1cdf1642f5c98851e8063/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3072, 12, 2890, 16, 4748, 16, 272, 7260, 16, 9609, 4672, 938, 273, 365, 16186, 1945, 18, 588, 67, 2284, 1435, 938, 18, 8507, 1435, 272, 7260, 18, 3804, 1435, 364, 17180, 316, 272, 7260, 30, 938, 18, 6923, 3816, 816, 75, 5717, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3072, 12, 2890, 16, 4748, 16, 272, 7260, 16, 9609, 4672, 938, 273, 365, 16186, 1945, 18, 588, 67, 2284, 1435, 938, 18, 8507, 1435, 272, 7260, 18, 3804, 1435, 364, 17180, 316, 272, 7260, 30, 938, 18, 6923, 3816, 816, 75, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def copy(self): return GenericSQLQuery(self.__database__, self.__query_string__, self.__param_tuple__)
def __init__(self, database, query_string, param_tuple=None): """ TEACH PEOPLE ABOUT USING '?' AND TUPLES """
85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2063, 16, 843, 67, 1080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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2063, 16, 843, 67, 1080, 16, 579, 67, 8052, 33, 7036, 4672, 3536, 25156, 18133, 16628, 3665, 900, 10336, 5069, 11836, 1360, 6787, 4116, 399, 3079, 11386, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
no1wkst = firstwkst = self.wdaymask.find(rr._wkst)
no1wkst = firstwkst = self.wdaymask.index(rr._wkst)
def rebuild(self, year, month): rr = self.rrule if year != self.lastyear: self.yearlen = 365+calendar.isleap(year) self.yearordinal = datetime.date(year,1,1).toordinal()
b3c88411265904f5f13de2fe4210eefdaea843f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/b3c88411265904f5f13de2fe4210eefdaea843f5/rrule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 2890, 16, 3286, 16, 3138, 4672, 8354, 273, 365, 18, 523, 725, 309, 3286, 480, 365, 18, 2722, 6874, 30, 365, 18, 6874, 1897, 273, 21382, 15, 11650, 18, 291, 298, 438, 12, 6874, 13, 365, 18, 6874, 517, 1490, 273, 3314, 18, 712, 12, 6874, 16, 21, 16, 21, 2934, 869, 517, 1490, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 2890, 16, 3286, 16, 3138, 4672, 8354, 273, 365, 18, 523, 725, 309, 3286, 480, 365, 18, 2722, 6874, 30, 365, 18, 6874, 1897, 273, 21382, 15, 11650, 18, 291, 298, 438, 12, 6874, 13, 365, 18, 6874, 517, 1490, 273, 3314, 18, 712, 12, 6874, 16, 21, 16, 21, 2934, 869, 517, 1490, 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 ]
def hates_mime_p(x, s=self, v=mm_cfg.DisableMime):
def hates_mime_p(x, s=mlist, v=mm_cfg.DisableMime):
def hates_mime_p(x, s=self, v=mm_cfg.DisableMime): return s.GetUserOption(x, v)
14cf5da2f1f3d7f535be4dbb63df355bcfa31de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/14cf5da2f1f3d7f535be4dbb63df355bcfa31de4/ToDigest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 815, 67, 11757, 67, 84, 12, 92, 16, 272, 33, 781, 376, 16, 331, 33, 7020, 67, 7066, 18, 11879, 13320, 4672, 327, 272, 18, 967, 1299, 1895, 12, 92, 16, 331, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 815, 67, 11757, 67, 84, 12, 92, 16, 272, 33, 781, 376, 16, 331, 33, 7020, 67, 7066, 18, 11879, 13320, 4672, 327, 272, 18, 967, 1299, 1895, 12, 92, 16, 331, 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 ]
super(NoOpPyPayload).__init__()
super(NoOpPyPayload,self).__init__()
def __init__(self, num): self.num = num super(NoOpPyPayload).__init__()
2a40303d92970c8f659e49bd37f9c545b23daba9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10974/2a40303d92970c8f659e49bd37f9c545b23daba9/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 818, 4672, 365, 18, 2107, 273, 818, 2240, 12, 2279, 3817, 9413, 6110, 16, 2890, 2934, 972, 2738, 972, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
__dynamic__ = 1
__dynamic__ = 1
def mysetattr(self, name, value): if name == "spam": raise AttributeError return object.__setattr__(self, name, value)
9479174c90f03a075db9a923423b21776350dabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9479174c90f03a075db9a923423b21776350dabe/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 542, 1747, 12, 2890, 16, 508, 16, 460, 4672, 309, 508, 422, 315, 1752, 301, 6877, 1002, 6394, 327, 733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 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,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733, 16186, 542, 1747, 972, 12, 2890, 16, 508, 16, 460, 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 ]
dtd = xmldtd.load_dtd(self.dtd) app = xmlval.ValidatingApp(dtd, self) app.set_locator(self) self.dom2sax(dom, app) def report_error(self, number, args=None): self.errors = xmlproc.errors.english
def check_dom_against_dtd(self, dom): """ Check DOM again DTD. Doesn't give as nice error messages. (no location info) """ dtd = xmldtd.load_dtd(self.dtd) app = xmlval.ValidatingApp(dtd, self) app.set_locator(self) self.dom2sax(dom, app)
0358e60e5eeb0513fd8b2ff43913f28c50a09327 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/0358e60e5eeb0513fd8b2ff43913f28c50a09327/xenapi_create.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9859, 67, 23095, 334, 67, 31834, 12, 2890, 16, 4092, 4672, 3536, 2073, 4703, 3382, 10696, 40, 18, 9637, 82, 1404, 8492, 487, 13752, 555, 2743, 18, 261, 2135, 2117, 1123, 13, 3536, 3681, 72, 273, 2025, 31834, 18, 945, 67, 31834, 12, 2890, 18, 31834, 13, 595, 273, 2025, 1125, 18, 31496, 3371, 12, 31834, 16, 365, 13, 595, 18, 542, 67, 20048, 12, 2890, 13, 365, 18, 9859, 22, 87, 651, 12, 9859, 16, 595, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9859, 67, 23095, 334, 67, 31834, 12, 2890, 16, 4092, 4672, 3536, 2073, 4703, 3382, 10696, 40, 18, 9637, 82, 1404, 8492, 487, 13752, 555, 2743, 18, 261, 2135, 2117, 1123, 13, 3536, 3681, 72, 273, 2025, 31834, 18, 945, 67, 31834, 12, 2890, 18, 31834, 13, 595, 273, 2025, 1125, 18, 31496, 3371, 12, 31834, 16, 365, 13, 595, 18, 542, 67, 20048, 12, 2890, 13, 365, 18, 9859, 22, 87, 651, 12, 9859, 16, 595, 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 ]
self.error("Size of the pixel in the output differ for X and Y axes.")
def open_input(self): """Initialization of the input raster, reprojection if necessary""" gdal.AllRegister()
c3d8df74eef052268add49773dc5efec101e76b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/c3d8df74eef052268add49773dc5efec101e76b2/gdal2tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2630, 12, 2890, 4672, 3536, 17701, 434, 326, 810, 12553, 16, 283, 19183, 309, 4573, 8395, 225, 15551, 287, 18, 1595, 3996, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2630, 12, 2890, 4672, 3536, 17701, 434, 326, 810, 12553, 16, 283, 19183, 309, 4573, 8395, 225, 15551, 287, 18, 1595, 3996, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
X = type('X',(MultilingualStackedInline,),
X = MultiType('X',(MultilingualStackedInline,),
def multilingual_modeladmin_new(cls, model, admin_site): if isinstance(model.objects, manager.Manager): X = type('X',(MultilingualStackedInline,), {'model':model._meta.translation_model, 'fk_name':'master', 'extra':get_language_count(), 'max_num':get_language_count()}) if cls.inlines: cls.inlines.append(X) else: cls.inlines = [X] return _old_admin_new(cls, model, admin_site)
4785127c97c6fa9fc1b13c1c726e110b5ab1ad22 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12035/4785127c97c6fa9fc1b13c1c726e110b5ab1ad22/translation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1778, 25853, 67, 2284, 3666, 67, 2704, 12, 6429, 16, 938, 16, 3981, 67, 4256, 4672, 309, 1549, 12, 2284, 18, 6911, 16, 3301, 18, 1318, 4672, 1139, 273, 5991, 559, 2668, 60, 2187, 12, 5049, 25853, 2624, 329, 10870, 16, 3631, 13666, 2284, 4278, 2284, 6315, 3901, 18, 10173, 67, 2284, 16, 296, 23120, 67, 529, 11, 2497, 7525, 2187, 296, 7763, 4278, 588, 67, 4923, 67, 1883, 9334, 296, 1896, 67, 2107, 4278, 588, 67, 4923, 67, 1883, 1435, 6792, 309, 2028, 18, 267, 3548, 30, 2028, 18, 267, 3548, 18, 6923, 12, 60, 13, 469, 30, 2028, 18, 267, 3548, 273, 306, 60, 65, 327, 389, 1673, 67, 3666, 67, 2704, 12, 6429, 16, 938, 16, 3981, 67, 4256, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1778, 25853, 67, 2284, 3666, 67, 2704, 12, 6429, 16, 938, 16, 3981, 67, 4256, 4672, 309, 1549, 12, 2284, 18, 6911, 16, 3301, 18, 1318, 4672, 1139, 273, 5991, 559, 2668, 60, 2187, 12, 5049, 25853, 2624, 329, 10870, 16, 3631, 13666, 2284, 4278, 2284, 6315, 3901, 18, 10173, 67, 2284, 16, 296, 23120, 67, 529, 11, 2497, 7525, 2187, 296, 7763, 4278, 588, 67, 4923, 67, 1883, 9334, 296, 1896, 67, 2107, 4278, 588, 67, 4923, 67, 1883, 1435, 6792, 309, 2028, 18, 267, 3548, 30, 2028, 18, 267, 3548, 18, 6923, 12, 60, 13, 469, 30, 2028, 18, 267, 3548, 273, 306, 60, 65, 327, 389, 1673, 67, 3666, 67, 2704, 12, 6429, 16, 938, 2 ]
def __init__(self): JolicloudRestoreUtilityBase.__init__(self)
def update_tasks_list(self, tasks): JolicloudRestoreUtilityBase.update_tasks_list(self, tasks)
def __init__(self): JolicloudRestoreUtilityBase.__init__(self) self.run_next_task()
459dafba24990cc2eff8b6e42515b9a973e44ab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13085/459dafba24990cc2eff8b6e42515b9a973e44ab5/restore_utility.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 9416, 67, 1098, 12, 2890, 16, 4592, 4672, 804, 1415, 2760, 10874, 6497, 2171, 18, 2725, 67, 9416, 67, 1098, 12, 2890, 16, 4592, 13, 365, 18, 2681, 67, 4285, 67, 4146, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 9416, 67, 1098, 12, 2890, 16, 4592, 4672, 804, 1415, 2760, 10874, 6497, 2171, 18, 2725, 67, 9416, 67, 1098, 12, 2890, 16, 4592, 13, 365, 18, 2681, 67, 4285, 67, 4146, 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 ]
def on_drag_motion (self, widget, context, x, y, timestamp):
def on_drag_motion (self, receiver, context, x, y, timestamp):
def on_drag_motion (self, widget, context, x, y, timestamp): if self.dragPos == (x,y): return parsed = self.parsePosition(x,y) if not self.dragPos or self.highLight != parsed: self.dragPos = (x,y) self.highLight = parsed self.queue_draw() self.dragPos = (x,y) if self.highLight == None: if isinstance(widget, gtk.Notebook): widget.set_group_id(GROUP_ID_INACTIVE) else: context.drag_status (gtk.gdk.ACTION_DEFAULT, timestamp) else: if isinstance(widget, gtk.Notebook): widget.set_group_id(GROUP_ID_ACTIVE) else: context.drag_status (gtk.gdk.ACTION_MOVE, timestamp) return True
b74bada3c4a52655d2f0ff893e7a277c37cc7231 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/b74bada3c4a52655d2f0ff893e7a277c37cc7231/pydock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 81, 8240, 261, 2890, 16, 5971, 16, 819, 16, 619, 16, 677, 16, 2858, 4672, 309, 365, 18, 15997, 1616, 422, 261, 92, 16, 93, 4672, 327, 2707, 273, 365, 18, 2670, 2555, 12, 92, 16, 93, 13, 225, 309, 486, 365, 18, 15997, 1616, 578, 365, 18, 8766, 12128, 480, 2707, 30, 365, 18, 15997, 1616, 273, 261, 92, 16, 93, 13, 365, 18, 8766, 12128, 273, 2707, 365, 18, 4000, 67, 9446, 1435, 365, 18, 15997, 1616, 273, 261, 92, 16, 93, 13, 225, 309, 365, 18, 8766, 12128, 422, 599, 30, 309, 1549, 12, 6587, 16, 22718, 18, 19751, 4672, 3604, 18, 542, 67, 1655, 67, 350, 12, 8468, 67, 734, 67, 706, 13301, 13, 469, 30, 819, 18, 15997, 67, 2327, 261, 4521, 79, 18, 75, 2883, 18, 12249, 67, 5280, 16, 2858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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 81, 8240, 261, 2890, 16, 5971, 16, 819, 16, 619, 16, 677, 16, 2858, 4672, 309, 365, 18, 15997, 1616, 422, 261, 92, 16, 93, 4672, 327, 2707, 273, 365, 18, 2670, 2555, 12, 92, 16, 93, 13, 225, 309, 486, 365, 18, 15997, 1616, 578, 365, 18, 8766, 12128, 480, 2707, 30, 365, 18, 15997, 1616, 273, 261, 92, 16, 93, 13, 365, 18, 8766, 12128, 273, 2707, 365, 18, 4000, 67, 9446, 1435, 365, 18, 15997, 1616, 273, 261, 92, 16, 93, 13, 225, 309, 365, 18, 8766, 12128, 422, 599, 30, 309, 1549, 12, 6587, 16, 22718, 18, 19751, 4672, 3604, 18, 542, 67, 1655, 67, 350, 12, 8468, 67, 734, 2 ]
return x
return int(x+0.0001)
def ops(i): x = 0 x += i < i x += i <= i x += i == i x += i != i x += i >= i x += i > i x += x % i x += x ** 0 x += x ** 1 x += x ** 2 x += i + 1 * i // i - 1 return x
7a42ff24dbf6d5e3203664a69ccaca41ef0338a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7a42ff24dbf6d5e3203664a69ccaca41ef0338a8/test_genllvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6727, 12, 77, 4672, 619, 273, 374, 619, 1011, 277, 411, 277, 619, 1011, 277, 1648, 277, 619, 1011, 277, 422, 277, 619, 1011, 277, 480, 277, 619, 1011, 277, 1545, 277, 619, 1011, 277, 405, 277, 619, 1011, 619, 738, 277, 619, 1011, 619, 2826, 374, 619, 1011, 619, 2826, 404, 619, 1011, 619, 2826, 576, 619, 1011, 277, 397, 404, 380, 277, 368, 277, 300, 404, 327, 619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6727, 12, 77, 4672, 619, 273, 374, 619, 1011, 277, 411, 277, 619, 1011, 277, 1648, 277, 619, 1011, 277, 422, 277, 619, 1011, 277, 480, 277, 619, 1011, 277, 1545, 277, 619, 1011, 277, 405, 277, 619, 1011, 619, 738, 277, 619, 1011, 619, 2826, 374, 619, 1011, 619, 2826, 404, 619, 1011, 619, 2826, 576, 619, 1011, 277, 397, 404, 380, 277, 368, 277, 300, 404, 327, 619, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
username = forms.RegexField( username_re, label=_(u'Username')) email_address = forms.CharField(label=_(u'Email address'),
username = forms.RegexField( username_re, label=ugettext_lazy(u'Username')) email_address = forms.CharField(label=ugettext_lazy(u'Email address'),
def register(request, group = None): if request.method == 'POST': form = RegisterEmailAddress(request.POST) if form.is_valid(): regdata = form.cleaned_data email_address = regdata['email_address'] if not group: subject = _(u'Email verification required') else: subject = _(u'Email verification required for site %(site_name)s') % {'site_name': group.get_name()} validationcode = cryptString( settings.SECRET_KEY, email_address ) mail_context = RequestContext(request, { 'email': email_address, 'baseurl': group.baseurl, 'path': sph_reverse( 'sphene.community.views.register_hash', (), { 'emailHash': validationcode, } ), 'validationcode': validationcode, 'group': group, }) text_part = loader.get_template('sphene/community/accounts/account_verification_email.txt') \ .render(mail_context) html_part = loader.get_template('sphene/community/accounts/account_verification_email.html') \ .render(mail_context) msg = EmailMultiAlternatives(subject, text_part, None, [email_address]) msg.attach_alternative(html_part, "text/html") msg.send() return render_to_response( 'sphene/community/register_emailsent.html', { 'email': email_address, }, context_instance = RequestContext(request) ) pass else: form = RegisterEmailAddress() return render_to_response( 'sphene/community/register.html', { 'form': form }, context_instance = RequestContext(request) )
4928be0229899927d1ff0f031f89b71d54fb646c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11563/4928be0229899927d1ff0f031f89b71d54fb646c/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2293, 16, 1041, 273, 599, 4672, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 5433, 23590, 12, 2293, 18, 3798, 13, 309, 646, 18, 291, 67, 877, 13332, 960, 892, 273, 646, 18, 6200, 329, 67, 892, 2699, 67, 2867, 273, 960, 892, 3292, 3652, 67, 2867, 3546, 309, 486, 1041, 30, 3221, 273, 389, 12, 89, 11, 4134, 11805, 1931, 6134, 469, 30, 3221, 273, 389, 12, 89, 11, 4134, 11805, 1931, 364, 2834, 8975, 4256, 67, 529, 13, 87, 6134, 738, 13666, 4256, 67, 529, 4278, 1041, 18, 588, 67, 529, 17767, 3379, 710, 273, 13231, 780, 12, 1947, 18, 20455, 67, 3297, 16, 2699, 67, 2867, 262, 4791, 67, 2472, 273, 20479, 12, 2293, 16, 288, 296, 3652, 4278, 2699, 67, 2867, 16, 296, 1969, 718, 4278, 1041, 18, 1969, 718, 16, 296, 803, 4278, 272, 844, 67, 9845, 12, 296, 87, 844, 4009, 18, 20859, 18, 7061, 18, 4861, 67, 2816, 2187, 1832, 16, 288, 296, 3652, 2310, 4278, 3379, 710, 16, 289, 262, 16, 296, 8685, 710, 4278, 3379, 710, 16, 296, 1655, 4278, 1041, 16, 289, 13, 977, 67, 2680, 273, 4088, 18, 588, 67, 3202, 2668, 87, 844, 4009, 19, 20859, 19, 13739, 19, 4631, 67, 27726, 67, 3652, 18, 5830, 6134, 521, 263, 5902, 12, 4408, 67, 2472, 13, 1729, 67, 2680, 273, 4088, 18, 588, 67, 3202, 2668, 87, 844, 4009, 19, 20859, 19, 13739, 19, 4631, 67, 27726, 67, 3652, 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, 1744, 12, 2293, 16, 1041, 273, 599, 4672, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 646, 273, 5433, 23590, 12, 2293, 18, 3798, 13, 309, 646, 18, 291, 67, 877, 13332, 960, 892, 273, 646, 18, 6200, 329, 67, 892, 2699, 67, 2867, 273, 960, 892, 3292, 3652, 67, 2867, 3546, 309, 486, 1041, 30, 3221, 273, 389, 12, 89, 11, 4134, 11805, 1931, 6134, 469, 30, 3221, 273, 389, 12, 89, 11, 4134, 11805, 1931, 364, 2834, 8975, 4256, 67, 529, 13, 87, 6134, 738, 13666, 4256, 67, 529, 4278, 1041, 18, 588, 67, 529, 17767, 3379, 710, 273, 13231, 780, 12, 1947, 18, 20455, 67, 3297, 16, 2699, 67, 2867, 262, 4791, 67, 2472, 2 ]
A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs.
A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs.
def fclusterdata(X, t, criterion='inconsistent', \ metric='euclidean', depth=2, method='single', R=None): """ ``T = fclusterdata(X, t)`` Clusters the original observations in the ``n`` by ``m`` data matrix ``X`` (``n`` observations in ``m`` dimensions), using the euclidean distance metric to calculate distances between original observations, performs hierarchical clustering using the single linkage algorithm, and forms flat clusters using the inconsistency method with t as the cut-off threshold. A one-dimensional numpy array ``T`` of length ``n`` is returned. ``T[i]`` is the index of the flat cluster to which the original observation ``i`` belongs. :Arguments: - Z : ndarray The hierarchical clustering encoded with the matrix returned by the ``linkage`` function. - t : double The threshold to apply when forming flat clusters. - criterion : string Specifies the criterion for forming flat clusters. Valid values are 'inconsistent', 'distance', or 'maxclust' cluster formation algorithms. See ``fcluster`` for descriptions. - method : string The linkage method to use (single, complete, average, weighted, median centroid, ward). See ``linkage`` for more information. - metric : string The distance metric for calculating pairwise distances. See distance.pdist for descriptions and linkage to verify compatibility with the linkage method. - t : double The cut-off threshold for the cluster function or the maximum number of clusters (criterion='maxclust'). - depth : int The maximum depth for the inconsistency calculation. See ``inconsistent`` for more information. - R : ndarray The inconsistency matrix. It will be computed if necessary if it is not passed. :Returns: - T : ndarray A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs. Notes ----- This function is similar to MATLAB(TM) clusterdata function. """ X = np.asarray(X, order='c', dtype=np.double) if type(X) != np.ndarray or len(X.shape) != 2: raise TypeError('The observation matrix X must be an n by m numpy array.') Y = distance.pdist(X, metric=metric) Z = linkage(Y, method=method) if R is None: R = inconsistent(Z, d=depth) else: R = np.asarray(R, order='c') T = fcluster(Z, criterion=criterion, depth=depth, R=R, t=t) return T
55e7dab95616ab5f72603a0b6ccbbfc630085278 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/55e7dab95616ab5f72603a0b6ccbbfc630085278/hierarchy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 7967, 892, 12, 60, 16, 268, 16, 11498, 2218, 267, 16952, 2187, 521, 3999, 2218, 73, 22392, 2187, 3598, 33, 22, 16, 707, 2218, 7526, 2187, 534, 33, 7036, 4672, 3536, 12176, 56, 273, 284, 7967, 892, 12, 60, 16, 268, 13, 10335, 225, 3905, 6326, 326, 2282, 16477, 316, 326, 12176, 82, 10335, 635, 12176, 81, 10335, 501, 3148, 12176, 60, 10335, 261, 10335, 82, 10335, 16477, 316, 12176, 81, 10335, 5769, 3631, 1450, 326, 425, 22392, 3888, 3999, 358, 4604, 12491, 3086, 2282, 16477, 16, 11199, 26633, 18743, 1450, 326, 2202, 1692, 410, 4886, 16, 471, 10138, 3569, 9566, 1450, 326, 316, 28725, 707, 598, 268, 487, 326, 6391, 17, 3674, 5573, 18, 225, 432, 1245, 17, 31236, 3972, 526, 12176, 56, 10335, 434, 769, 12176, 82, 10335, 353, 2106, 18, 12176, 56, 63, 77, 65, 10335, 353, 326, 770, 434, 326, 3569, 2855, 358, 1492, 326, 2282, 13853, 12176, 77, 10335, 11081, 18, 225, 294, 4628, 30, 225, 300, 2285, 294, 8304, 1021, 26633, 18743, 3749, 598, 326, 3148, 2106, 635, 326, 12176, 1232, 410, 10335, 445, 18, 225, 300, 268, 294, 1645, 1021, 5573, 358, 2230, 1347, 646, 310, 3569, 9566, 18, 282, 300, 11498, 294, 533, 4185, 5032, 326, 11498, 364, 646, 310, 3569, 9566, 18, 225, 2364, 924, 854, 296, 267, 16952, 2187, 296, 8969, 2187, 578, 296, 1896, 830, 641, 11, 2855, 646, 367, 20032, 18, 2164, 12176, 74, 7967, 10335, 364, 15550, 18, 225, 300, 707, 294, 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, 284, 7967, 892, 12, 60, 16, 268, 16, 11498, 2218, 267, 16952, 2187, 521, 3999, 2218, 73, 22392, 2187, 3598, 33, 22, 16, 707, 2218, 7526, 2187, 534, 33, 7036, 4672, 3536, 12176, 56, 273, 284, 7967, 892, 12, 60, 16, 268, 13, 10335, 225, 3905, 6326, 326, 2282, 16477, 316, 326, 12176, 82, 10335, 635, 12176, 81, 10335, 501, 3148, 12176, 60, 10335, 261, 10335, 82, 10335, 16477, 316, 12176, 81, 10335, 5769, 3631, 1450, 326, 425, 22392, 3888, 3999, 358, 4604, 12491, 3086, 2282, 16477, 16, 11199, 26633, 18743, 1450, 326, 2202, 1692, 410, 4886, 16, 471, 10138, 3569, 9566, 1450, 326, 316, 28725, 707, 598, 268, 487, 326, 6391, 17, 3674, 5573, 18, 225, 432, 2 ]
self._position_root_map.get(self.label_position, "DUMMY"),
self._position_root_map.get(arrow_root, "DUMMY"),
def overlay(self, component, gc, view_bounds=None, mode="normal"): """ Draws the tooltip overlaid on another component. Overrides ToolTip. """ if self.clip_to_plot: gc.save_state() c = component gc.clip_to_rect(c.x, c.y, c.width, c.height)
0fdcc8e73bfc83aeb07cb0a2882c8457e4aaddf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/0fdcc8e73bfc83aeb07cb0a2882c8457e4aaddf0/data_label.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9218, 12, 2890, 16, 1794, 16, 8859, 16, 1476, 67, 10576, 33, 7036, 16, 1965, 1546, 6130, 6, 4672, 3536, 10184, 87, 326, 11915, 1879, 11821, 350, 603, 4042, 1794, 18, 225, 531, 9857, 13288, 14189, 18, 3536, 309, 365, 18, 14161, 67, 869, 67, 4032, 30, 8859, 18, 5688, 67, 2019, 1435, 276, 273, 1794, 8859, 18, 14161, 67, 869, 67, 2607, 12, 71, 18, 92, 16, 276, 18, 93, 16, 276, 18, 2819, 16, 276, 18, 4210, 13, 2, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9218, 12, 2890, 16, 1794, 16, 8859, 16, 1476, 67, 10576, 33, 7036, 16, 1965, 1546, 6130, 6, 4672, 3536, 10184, 87, 326, 11915, 1879, 11821, 350, 603, 4042, 1794, 18, 225, 531, 9857, 13288, 14189, 18, 3536, 309, 365, 18, 14161, 67, 869, 67, 4032, 30, 8859, 18, 5688, 67, 2019, 1435, 276, 273, 1794, 8859, 18, 14161, 67, 869, 67, 2607, 12, 71, 18, 92, 16, 276, 18, 93, 16, 276, 18, 2819, 16, 276, 18, 4210, 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 ]
):
):
def SendMailConfig( self, panel, sbjct, From, To, Copy, Txt, Append, toName, text, plugin
b38dc8881c425781e3bd5f610cc554c4d034a6be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/b38dc8881c425781e3bd5f610cc554c4d034a6be/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 6759, 809, 12, 365, 16, 6594, 16, 272, 441, 299, 16, 6338, 16, 2974, 16, 5631, 16, 6424, 88, 16, 6181, 16, 358, 461, 16, 977, 16, 1909, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 6759, 809, 12, 365, 16, 6594, 16, 272, 441, 299, 16, 6338, 16, 2974, 16, 5631, 16, 6424, 88, 16, 6181, 16, 358, 461, 16, 977, 16, 1909, 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 ]
k = find_token(document.body, "<features tabularvalignment=", i) if k == -1:
tabularvalignment = 'c' m = document.body[i+2].find('tabularvalignment="top"') if m > -1: tabularvalignment = 't' m = document.body[i+2].find('tabularvalignment="bottom"') if m > -1: tabularvalignment = 'b' q = document.body[i+2].find("tabularvalignment") if q > -1: document.body[i+2] = document.body[i+2][:q-1] document.body[i+2] = document.body[i+2] + '>' if tabularvalignment == 'c':
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular.") i = j continue # don't set a box for longtables, only delete tabularvalignment p = find_token(document.body, "<features islongtable=", i) if p > -1: q = document.body[p].find("tabularvalignment") if q > -1: document.body[p] = document.body[p][:q-1] document.body[p] = document.body[p] + '>' i = i + 1 # when no longtable if p == -1: k = find_token(document.body, "<features tabularvalignment=", i) if k == -1: i = j continue # which valignment is specified? tabularvalignment_re = re.compile(r'<features tabularvalignment="(top|bottom)">') m = tabularvalignment_re.match(document.body[k]) if not m: i = j continue tabularvalignment = m.group(1) subst = ['\\end_layout', '\\end_inset'] document.body[j+1:j+1] = subst # just inserts those lines subst = ['\\begin_inset Box Frameless', 'position "' + tabularvalignment[0] +'"', 'hor_pos "c"', 'has_inner_box 1', 'inner_pos "c"', 'use_parbox 0', 'width "0col%"', 'special "none"', 'height "1in"', 'height_special "totalheight"', 'status open', '', '\\begin_layout Plain Layout'] document.body[i:i] = subst # this just inserts the array at i i += len(subst) + 2 # adjust i to save a few cycles
3fcd8ee4deb2984592b45b173fe2d362b3768b2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/3fcd8ee4deb2984592b45b173fe2d362b3768b2b/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 8422, 10086, 67, 267, 542, 9483, 2490, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 525, 273, 1104, 67, 409, 67, 792, 67, 267, 542, 12, 5457, 18, 3432, 16, 277, 13, 309, 525, 422, 300, 21, 30, 1668, 18, 8551, 2932, 18695, 511, 93, 60, 1668, 30, 14312, 486, 1104, 679, 434, 28342, 1199, 13, 277, 273, 525, 1324, 468, 2727, 1404, 444, 279, 3919, 364, 1525, 9373, 16, 1338, 1430, 28342, 1125, 3515, 293, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3532, 7139, 353, 5748, 2121, 1546, 16, 277, 13, 309, 293, 405, 300, 21, 30, 1043, 273, 1668, 18, 3432, 63, 84, 8009, 4720, 2932, 7032, 2490, 1125, 3515, 7923, 309, 1043, 405, 300, 21, 30, 1668, 18, 3432, 63, 84, 65, 273, 1668, 18, 3432, 63, 84, 6362, 30, 85, 17, 21, 65, 1668, 18, 3432, 63, 84, 65, 273, 1668, 18, 3432, 63, 84, 65, 397, 7481, 277, 273, 277, 397, 404, 225, 468, 1347, 1158, 1525, 2121, 309, 293, 422, 300, 21, 30, 28342, 1125, 3515, 273, 296, 71, 11, 225, 312, 273, 1668, 18, 3432, 63, 77, 15, 22, 8009, 4720, 2668, 7032, 2490, 1125, 3515, 1546, 3669, 5187, 13, 309, 312, 405, 300, 21, 30, 28342, 1125, 3515, 273, 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, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 8422, 10086, 67, 267, 542, 9483, 2490, 3113, 277, 13, 309, 277, 422, 300, 21, 30, 327, 525, 273, 1104, 67, 409, 67, 792, 67, 267, 542, 12, 5457, 18, 3432, 16, 277, 13, 309, 525, 422, 300, 21, 30, 1668, 18, 8551, 2932, 18695, 511, 93, 60, 1668, 30, 14312, 486, 1104, 679, 434, 28342, 1199, 13, 277, 273, 525, 1324, 468, 2727, 1404, 444, 279, 3919, 364, 1525, 9373, 16, 1338, 1430, 28342, 1125, 3515, 293, 273, 1104, 67, 2316, 12, 5457, 2 ]
obj.name = name obj.value = value
obj.name = obj._old_name = name obj.value = obj._old_value = value
def select(cls, env, db=None): if not db: db = env.get_db_cnx() cursor = db.cursor() cursor.execute("SELECT name,value FROM enum WHERE type=%s " "ORDER BY value", (cls.type,)) for name, value in cursor: obj = cls(env) obj.name = name obj.value = value yield obj
c815765ee307a6af8eb82a2569c1f4ea0859d552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c815765ee307a6af8eb82a2569c1f4ea0859d552/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 6429, 16, 1550, 16, 1319, 33, 7036, 4672, 309, 486, 1319, 30, 1319, 273, 1550, 18, 588, 67, 1966, 67, 10305, 92, 1435, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 4803, 508, 16, 1132, 4571, 2792, 4852, 618, 5095, 87, 315, 315, 7954, 6953, 460, 3113, 261, 6429, 18, 723, 16, 3719, 364, 508, 16, 460, 316, 3347, 30, 1081, 273, 2028, 12, 3074, 13, 1081, 18, 529, 273, 1081, 6315, 1673, 67, 529, 273, 508, 1081, 18, 1132, 273, 1081, 6315, 1673, 67, 1132, 273, 460, 2824, 1081, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 6429, 16, 1550, 16, 1319, 33, 7036, 4672, 309, 486, 1319, 30, 1319, 273, 1550, 18, 588, 67, 1966, 67, 10305, 92, 1435, 3347, 273, 1319, 18, 9216, 1435, 3347, 18, 8837, 2932, 4803, 508, 16, 1132, 4571, 2792, 4852, 618, 5095, 87, 315, 315, 7954, 6953, 460, 3113, 261, 6429, 18, 723, 16, 3719, 364, 508, 16, 460, 316, 3347, 30, 1081, 273, 2028, 12, 3074, 13, 1081, 18, 529, 273, 1081, 6315, 1673, 67, 529, 273, 508, 1081, 18, 1132, 273, 1081, 6315, 1673, 67, 1132, 273, 460, 2824, 1081, 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 ]