rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
groups.append(row['name'])
groups.append(row['name'] or '')
def get_groups(self, by='component'): cursor = self.db.cursor () groups = [] if by in ['status', 'resolution', 'severity', 'priority']: cursor.execute("SELECT name FROM enum WHERE type = %s " "AND name != '' ORDER BY value", by) elif by in ['component', 'milestone', 'version']: cursor.execute("SELECT name FROM %s " "WH...
04ff6f64443c20c95c14a3cedff6abd6933863f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/04ff6f64443c20c95c14a3cedff6abd6933863f3/Milestone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4650, 12, 2890, 16, 635, 2218, 4652, 11, 4672, 3347, 273, 365, 18, 1966, 18, 9216, 1832, 3252, 273, 5378, 309, 635, 316, 10228, 2327, 2187, 296, 19182, 2187, 296, 27341, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4650, 12, 2890, 16, 635, 2218, 4652, 11, 4672, 3347, 273, 365, 18, 1966, 18, 9216, 1832, 3252, 273, 5378, 309, 635, 316, 10228, 2327, 2187, 296, 19182, 2187, 296, 27341, 2187, ...
self.currentToken[-1][1] += data
self.currentToken.attributes[-1][1] += data
def beforeAttributeValueState(self): data = consumeChar() if data in spaceCharacters: pass elif data == u"\"": self.changeState("attributeValueDoubleQuoted") elif data == u"&": self.changeState("attributeValueUnQuoted") self.characterQueue.append(data); elif data == u"'": self.changeState("attributeValueSingleQuoted") ...
1d2858234d026c30deb6847d834929a98cf1313b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/1d2858234d026c30deb6847d834929a98cf1313b/tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1865, 14942, 1119, 12, 2890, 4672, 501, 273, 7865, 2156, 1435, 309, 501, 316, 3476, 11600, 30, 1342, 1327, 501, 422, 582, 6, 2412, 6877, 365, 18, 3427, 1119, 2932, 4589, 620, 5265, 15919...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1865, 14942, 1119, 12, 2890, 4672, 501, 273, 7865, 2156, 1435, 309, 501, 316, 3476, 11600, 30, 1342, 1327, 501, 422, 582, 6, 2412, 6877, 365, 18, 3427, 1119, 2932, 4589, 620, 5265, 15919...
newname = obj_pool.get('ir.sequence').get(cr, uid,type_rec.sequence_id.code)
def _create_legalization(self, cr, uid, data, context): obj_pool = pooler.get_pool(cr.dbname) obj_certi = obj_pool.get('cci_missions.certificate') data_certi = obj_certi.browse(cr, uid, data['ids']) list_leglization = [] leg_create = 0 leg_reject = 0 leg_rej_reason = "" type_id = data['form']['leg_type_id'] type_rec = ...
471367738d3ca51b517f54eef4a9c538e5b7f031 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/471367738d3ca51b517f54eef4a9c538e5b7f031/create_legalization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 2013, 1588, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 1081, 67, 6011, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 1081, 67, 7593, 77, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 2013, 1588, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 1081, 67, 6011, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 1081, 67, 7593, 77, 273, ...
print "Done"
def split_by_department(members): s = dict() for d in AFDELINGEN.keys(): tmp = dict() for id in members.keys(): pc = parse_postcode(members[id][POSTCODE]) for r in AFDELINGEN[d]: if (pc >= r[0]) and (pc <= r[1]): tmp[id] = members[id] if tmp: s[d] = tmp return s
1a1947d98b1412ba04ce5fdc4ae2ba2f8aa5bec5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6177/1a1947d98b1412ba04ce5fdc4ae2ba2f8aa5bec5/ledenlijst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 1637, 67, 323, 15750, 12, 7640, 4672, 272, 273, 2065, 1435, 364, 302, 316, 10888, 24733, 1360, 1157, 18, 2452, 13332, 1853, 273, 2065, 1435, 364, 612, 316, 4833, 18, 2452, 1333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1416, 67, 1637, 67, 323, 15750, 12, 7640, 4672, 272, 273, 2065, 1435, 364, 302, 316, 10888, 24733, 1360, 1157, 18, 2452, 13332, 1853, 273, 2065, 1435, 364, 612, 316, 4833, 18, 2452, 1333...
>>> U = np.empty((m, min(m, n)), a.dtype)
>>> U = np.empty((min(m, n), m), a.dtype)
def svd_device(a, a_dtype, a_shape, full_matrices=1, compute_uv=1): """ Singular Value Decomposition. Factorizes the matrix `a` into two unitary matrices, ``U`` and ``Vh``, and a 1-dimensional array of singular values, ``s`` (real, non-negative), such that ``a == U S Vh``, where ``S`` is the diagonal matrix ``np.diag(...
7fc4e451024ef5d36885b07be6a15417c4ae54c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14753/7fc4e451024ef5d36885b07be6a15417c4ae54c3/cula.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25656, 67, 5964, 12, 69, 16, 279, 67, 8972, 16, 279, 67, 4867, 16, 1983, 67, 7373, 12660, 33, 21, 16, 3671, 67, 16303, 33, 21, 4672, 3536, 348, 17830, 1445, 26824, 3276, 18, 225, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25656, 67, 5964, 12, 69, 16, 279, 67, 8972, 16, 279, 67, 4867, 16, 1983, 67, 7373, 12660, 33, 21, 16, 3671, 67, 16303, 33, 21, 4672, 3536, 348, 17830, 1445, 26824, 3276, 18, 225, 264...
def __init__(self, metadatahandler, overlay_bridge, session, prio):
def __init__(self, remoteTorrentHandler, metadatahandler, overlay_bridge, session, prio): self.remoteTorrentHandler = remoteTorrentHandler
def __init__(self, metadatahandler, overlay_bridge, session, prio): self.metadatahandler = metadatahandler self.overlay_bridge = overlay_bridge self.session = session self.prio = prio self.queue = Queue.Queue() self.sources = {} self.doRequest()
a564efa1f208960ea76909f5ea4be6c6d2be7ed8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/a564efa1f208960ea76909f5ea4be6c6d2be7ed8/RemoteTorrentHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2632, 27266, 547, 1503, 16, 1982, 4176, 16, 9218, 67, 18337, 16, 1339, 16, 14705, 83, 4672, 365, 18, 7222, 27266, 547, 1503, 273, 2632, 27266, 547, 1503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2632, 27266, 547, 1503, 16, 1982, 4176, 16, 9218, 67, 18337, 16, 1339, 16, 14705, 83, 4672, 365, 18, 7222, 27266, 547, 1503, 273, 2632, 27266, 547, 1503, ...
self.__temp_dir = "."
def __init__( self ):
03d768509b4c7e580bf8896746b9db8672aa7762 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/03d768509b4c7e580bf8896746b9db8672aa7762/eolfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
errStr = "ReplicationScheduler.execute: Failed to determine replication tree." gLogger.error(errStr,res['Message']) oRequest.setSubRequestFileAttributeValue(ind,'transfer',lfn,'Status','Failed') break
gLogger.error("ReplicationScheduler.execute: Failed to determine replication tree.",res['Message']) continue
def execute(self): """ The main agent execution method """
c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c1f8eb1d2bbc7cd4df2a54c42faff5c04a709853/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def precompile_hook (self): pass def prelink_hook (self):
def msvc_prelink_hack (self, sources, ext, extra_args):
def find_swig (self): """Return the name of the SWIG executable. On Unix, this is just "swig" -- it should be in the PATH. Tries a bit harder on Windows. """
1a5dae80130b8295865f2c9455b28a72efc63ac3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a5dae80130b8295865f2c9455b28a72efc63ac3/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 5328, 360, 261, 2890, 4672, 3536, 990, 326, 508, 434, 326, 16392, 3047, 9070, 18, 225, 2755, 9480, 16, 333, 353, 2537, 315, 5328, 360, 6, 1493, 518, 1410, 506, 316, 326, 7767...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 5328, 360, 261, 2890, 4672, 3536, 990, 326, 508, 434, 326, 16392, 3047, 9070, 18, 225, 2755, 9480, 16, 333, 353, 2537, 315, 5328, 360, 6, 1493, 518, 1410, 506, 316, 326, 7767...
return self.seconds * 1000000000L + self.nanoseconds
return self.__seconds * 1000000000L + self.__nanoseconds
def ns(self): """ Convert a LIGOTimeGPS to a count of nanoseconds as a long.
d76a8cdc25081f007a8ffbb0773fb7fe77a2a127 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/d76a8cdc25081f007a8ffbb0773fb7fe77a2a127/lal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3153, 12, 2890, 4672, 3536, 4037, 279, 511, 3047, 51, 950, 28983, 358, 279, 1056, 434, 6468, 23272, 487, 279, 1525, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3153, 12, 2890, 4672, 3536, 4037, 279, 511, 3047, 51, 950, 28983, 358, 279, 1056, 434, 6468, 23272, 487, 279, 1525, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
strict_host_check, private_key))
strict_host_check, private_key, quiet=quiet))
def BuildCmd(self, hostname, user, command, batch=True, ask_key=False, tty=False, use_cluster_key=True, strict_host_check=True, private_key=None): """Build an ssh command to execute a command on a remote node.
2892a4c95c388b0bbe0d1816396b8a5f218d8464 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/2892a4c95c388b0bbe0d1816396b8a5f218d8464/ssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 5931, 12, 2890, 16, 5199, 16, 729, 16, 1296, 16, 2581, 33, 5510, 16, 6827, 67, 856, 33, 8381, 16, 21520, 33, 8381, 16, 999, 67, 7967, 67, 856, 33, 5510, 16, 5490, 67, 2564, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 5931, 12, 2890, 16, 5199, 16, 729, 16, 1296, 16, 2581, 33, 5510, 16, 6827, 67, 856, 33, 8381, 16, 21520, 33, 8381, 16, 999, 67, 7967, 67, 856, 33, 5510, 16, 5490, 67, 2564, 6...
""" Return the unit with the given name. EXAMPLES:: sage: units.area Collection area of units: acre are barn hectare rood section square_chain square_meter township sage: units.area.barn barn Units are cached:: sage: units.area.acre is units.area.acre True """ if self.__units.has_key(name): return self.__units[nam...
""" Return the unit with the given name. EXAMPLES:: sage: units.area Collection area of units: acre are barn hectare rood section square_chain square_meter township sage: units.area.barn barn Units are cached:: sage: units.area.acre is units.area.acre True """ if self.__units.has_key(name): return self.__units[nam...
def __getattr__(self, name):
d9145e61c2e167a847618a21778e0e532a04af5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d9145e61c2e167a847618a21778e0e532a04af5d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 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, ...
return str(int(elts[0]) * 3600 + float(elts[1]))
return str(int(elts[0]) * 60 + float(elts[1]))
def to_seconds(time_string): elts = time_string.split(':') if len(elts) == 1: return time_string return str(int(elts[0]) * 3600 + float(elts[1]))
01a53930335e09f0df4becd8b68ad4f92dbb2644 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/01a53930335e09f0df4becd8b68ad4f92dbb2644/kernbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 7572, 12, 957, 67, 1080, 4672, 415, 3428, 273, 813, 67, 1080, 18, 4939, 2668, 2497, 13, 309, 562, 12, 292, 3428, 13, 422, 404, 30, 327, 813, 67, 1080, 327, 609, 12, 474, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 7572, 12, 957, 67, 1080, 4672, 415, 3428, 273, 813, 67, 1080, 18, 4939, 2668, 2497, 13, 309, 562, 12, 292, 3428, 13, 422, 404, 30, 327, 813, 67, 1080, 327, 609, 12, 474, 1...
boxSender = self
def __init__(self, boxReceiver=None, locator=None): # For backwards compatibility. When AMP did not separate parsing logic # (L{BinaryBoxProtocol}), request-response logic (L{BoxDispatcher}) and # command routing (L{CommandLocator}), it did not have a constructor. # Now it does, so old subclasses might have defined th...
2db63d5366d2b845c7e65dd811c64491751f027f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12595/2db63d5366d2b845c7e65dd811c64491751f027f/amp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3919, 12952, 33, 7036, 16, 8871, 33, 7036, 4672, 468, 2457, 12727, 8926, 18, 225, 5203, 432, 4566, 5061, 486, 9004, 5811, 4058, 468, 261, 48, 95, 5905, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3919, 12952, 33, 7036, 16, 8871, 33, 7036, 4672, 468, 2457, 12727, 8926, 18, 225, 5203, 432, 4566, 5061, 486, 9004, 5811, 4058, 468, 261, 48, 95, 5905, 3...
print '@'*8, token, stack
def balance(html, limit_words=None, ellipsis=' ...'): word_count = 0 tokens = tag_re.split(html) out = [] stack = [] for token in tokens: print '@'*8, token, stack if not token.startswith('<'): if limit_words and word_count > limit_words: break words = token.split() word_count += len(words) if limit_words and word_coun...
b1648ed2fb31b85138acfbb39c1853a435229ad6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10695/b1648ed2fb31b85138acfbb39c1853a435229ad6/normalize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11013, 12, 2620, 16, 1800, 67, 3753, 33, 7036, 16, 28992, 2218, 25956, 4672, 2076, 67, 1883, 273, 374, 2430, 273, 1047, 67, 266, 18, 4939, 12, 2620, 13, 596, 273, 5378, 2110, 273, 5378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11013, 12, 2620, 16, 1800, 67, 3753, 33, 7036, 16, 28992, 2218, 25956, 4672, 2076, 67, 1883, 273, 374, 2430, 273, 1047, 67, 266, 18, 4939, 12, 2620, 13, 596, 273, 5378, 2110, 273, 5378...
def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None):
def try_protocol_combo(server_protocol, client_protocol, expect_success, certsreqs=None):
def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None):
cb62a4cb12d8f0f9904d111d93c76ea857434a52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/cb62a4cb12d8f0f9904d111d93c76ea857434a52/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 5752, 16156, 261, 3567, 67, 8373, 16, 1004, 67, 8373, 16, 2665, 774, 2421, 16, 13870, 25782, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 5752, 16156, 261, 3567, 67, 8373, 16, 1004, 67, 8373, 16, 2665, 774, 2421, 16, 13870, 25782, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def action_cancel(self,cr,uid,ids,conect=None):
def action_cancel(self, cr, uid, ids, context=None):
def action_cancel(self,cr,uid,ids,conect=None): return { 'view_type': 'form', "view_mode": 'form', 'res_model': 'ir.actions.configuration.wizard', 'type': 'ir.actions.act_window', 'target':'new', }
7f170d648ce806a9582087e82434ea26e4f2d585 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/7f170d648ce806a9582087e82434ea26e4f2d585/crm_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1301, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 327, 288, 296, 1945, 67, 723, 4278, 296, 687, 2187, 315, 1945, 67, 3188, 6877, 296, 687, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 1652, 1301, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 327, 288, 296, 1945, 67, 723, 4278, 296, 687, 2187, 315, 1945, 67, 3188, 6877, 296, 687, 2187, ...
pass
self.clean()
def tearDown(self): # self.clean() pass
5a243185d07d5f0787854a2209c790556bacf714 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/5a243185d07d5f0787854a2209c790556bacf714/test_api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 468, 365, 18, 6200, 1435, 2890, 18, 6200, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 468, 365, 18, 6200, 1435, 2890, 18, 6200, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
host = hosts.create_host(hostname, user, port,
host = hosts.create_host(hostname, user=user, port=port,
def reboot(machine): hostname, user, passwd, port = parse_machine(machine, ssh_user, ssh_port, ssh_pass) host = hosts.create_host(hostname, user, port, initialize=False, password=passwd) host.reboot()
d53df032188aa484d2b6a3dbce1b79577e00c3b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/d53df032188aa484d2b6a3dbce1b79577e00c3b5/server_job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22852, 12, 9149, 4672, 5199, 16, 729, 16, 19093, 16, 1756, 273, 1109, 67, 9149, 12, 9149, 16, 7056, 67, 1355, 16, 7056, 67, 655, 16, 7056, 67, 5466, 13, 225, 1479, 273, 7206, 18, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22852, 12, 9149, 4672, 5199, 16, 729, 16, 19093, 16, 1756, 273, 1109, 67, 9149, 12, 9149, 16, 7056, 67, 1355, 16, 7056, 67, 655, 16, 7056, 67, 5466, 13, 225, 1479, 273, 7206, 18, 264...
Return a new Weierstrass model of self under the standard transformation `(u,r,s,,t)`
Return a new Weierstrass model of self under the standard transformation `(u,r,s,t)`
def change_weierstrass_model(self, *urst): r""" Return a new Weierstrass model of self under the standard transformation `(u,r,s,,t)`
60581bf6d640bfa4b7f71a19999bd0feb09d2c88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/60581bf6d640bfa4b7f71a19999bd0feb09d2c88/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 1814, 20778, 313, 428, 67, 2284, 12, 2890, 16, 380, 18593, 4672, 436, 8395, 2000, 279, 394, 1660, 20778, 313, 428, 938, 434, 365, 3613, 326, 4529, 8620, 1375, 12, 89, 16, 86,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 1814, 20778, 313, 428, 67, 2284, 12, 2890, 16, 380, 18593, 4672, 436, 8395, 2000, 279, 394, 1660, 20778, 313, 428, 938, 434, 365, 3613, 326, 4529, 8620, 1375, 12, 89, 16, 86,...
this field. This is always a polynomial in the variable "x".
this field. By default, this is a polynomial in the variable "x".
def pari_polynomial(self): """ PARI polynomial corresponding to polynomial that defines this field. This is always a polynomial in the variable "x".
bf41e06add27789237d0cb0311bc55b4c09fbea4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bf41e06add27789237d0cb0311bc55b4c09fbea4/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 779, 77, 67, 3915, 13602, 12, 2890, 4672, 3536, 3939, 45, 16991, 4656, 358, 16991, 716, 11164, 333, 652, 18, 282, 1220, 353, 3712, 279, 16991, 316, 326, 2190, 315, 92, 9654, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 779, 77, 67, 3915, 13602, 12, 2890, 4672, 3536, 3939, 45, 16991, 4656, 358, 16991, 716, 11164, 333, 652, 18, 282, 1220, 353, 3712, 279, 16991, 316, 326, 2190, 315, 92, 9654, 2, -100, -...
common.message(_('You must select a record to use the relation !'))
common.message(_('You must select a record to use the relation!'), self._window)
def click_and_relate(self, action): data = {} context = {} act = action.copy() obj_id = self._view.modelfield.get(self._view.model) if not obj_id: common.message(_('You must select a record to use the relation !')) return False screen = Screen(self.attrs['relation'], self._window) screen.load([obj_id]) act['domain'] = ...
79cdbbd000e109358678aacc9eaf1844e693b67c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/79cdbbd000e109358678aacc9eaf1844e693b67c/many2one.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4682, 67, 464, 67, 2878, 340, 12, 2890, 16, 1301, 4672, 501, 273, 2618, 819, 273, 2618, 1328, 273, 1301, 18, 3530, 1435, 1081, 67, 350, 273, 365, 6315, 1945, 18, 2284, 1518, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4682, 67, 464, 67, 2878, 340, 12, 2890, 16, 1301, 4672, 501, 273, 2618, 819, 273, 2618, 1328, 273, 1301, 18, 3530, 1435, 1081, 67, 350, 273, 365, 6315, 1945, 18, 2284, 1518, 18, 588, ...
'diff failed',
'scons and installer installations differ',
def confirm(question): print question if raw_input() != 'y': sys.exit(2)
55a113cf5107f964a8ac8c0ebfb11518a0d3f572 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7064/55a113cf5107f964a8ac8c0ebfb11518a0d3f572/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 4173, 4672, 1172, 5073, 309, 1831, 67, 2630, 1435, 480, 296, 93, 4278, 2589, 18, 8593, 12, 22, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 4173, 4672, 1172, 5073, 309, 1831, 67, 2630, 1435, 480, 296, 93, 4278, 2589, 18, 8593, 12, 22, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
rawsource = unescape( string[match.start():matchend+endmatch.end()], 1)
rawsource = unescape(string[matchstart:textend], 1)
def interpreted_or_phrase_ref(self, match, lineno): pattern = self.patterns.interpreted_or_phrase_ref string = match.string matchstart = match.start('backquote') matchend = match.end('backquote') rolestart = match.start('role') role = match.group('role') position = '' if role: role = role[1:-1] position = 'prefix' elif...
018a79821ccb1056404d43dbe32e444d1a0e03c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/018a79821ccb1056404d43dbe32e444d1a0e03c1/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19898, 67, 280, 67, 9429, 67, 1734, 12, 2890, 16, 845, 16, 7586, 4672, 1936, 273, 365, 18, 13317, 18, 24713, 329, 67, 280, 67, 9429, 67, 1734, 533, 273, 845, 18, 1080, 845, 1937, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19898, 67, 280, 67, 9429, 67, 1734, 12, 2890, 16, 845, 16, 7586, 4672, 1936, 273, 365, 18, 13317, 18, 24713, 329, 67, 280, 67, 9429, 67, 1734, 533, 273, 845, 18, 1080, 845, 1937, 273...
sigaction (SIGPIPE, &sa, NULL)
sigaction(SIGPIPE, &sa, NULL)
#ifdef WINDOWS
592872e308788b926d7358eb0ec411e83ee451d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/592872e308788b926d7358eb0ec411e83ee451d0/net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 24482, 22973, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 430, 536, 24482, 22973, 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, ...
'_ctypes/cfield.c', '_ctypes/malloc_closure.c']
'_ctypes/cfield.c']
def detect_ctypes(self, inc_dirs, lib_dirs): self.use_system_libffi = False include_dirs = [] extra_compile_args = [] extra_link_args = [] sources = ['_ctypes/_ctypes.c', '_ctypes/callbacks.c', '_ctypes/callproc.c', '_ctypes/stgdict.c', '_ctypes/cfield.c', '_ctypes/malloc_closure.c'] depends = ['_ctypes/ctypes.h']
864cc6703a7c4399295b3601f49e0065639443bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/864cc6703a7c4399295b3601f49e0065639443bf/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 299, 989, 12, 2890, 16, 7290, 67, 8291, 16, 2561, 67, 8291, 4672, 365, 18, 1202, 67, 4299, 67, 2941, 1403, 77, 273, 1083, 2341, 67, 8291, 273, 5378, 2870, 67, 11100, 67, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 299, 989, 12, 2890, 16, 7290, 67, 8291, 16, 2561, 67, 8291, 4672, 365, 18, 1202, 67, 4299, 67, 2941, 1403, 77, 273, 1083, 2341, 67, 8291, 273, 5378, 2870, 67, 11100, 67, 19...
dockSelf.bottomPanel.setPreferredSize(Dimension(dimWidth, dimHeight))
dockSelf.bottomPanel.setPreferredSize(Dimension(900, 280))
def __init__(dockSelf): GraphModifier.self = dockSelf GraphModifier.tempColor = None # dummy variable dockSelf.currentColor = red # get only the node names nodes = [] for i in nodeIndex: nodes.append(i[0]) # get only the edge names edges = [] for i in edgeIndex: edges.append(i[0]) dockSelf.objects = general + nodes ...
49b4c7bc20e8d1e1c5f3ea641b38294c9add393a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2706/49b4c7bc20e8d1e1c5f3ea641b38294c9add393a/graphModifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 72, 975, 10084, 4672, 5601, 9829, 18, 2890, 273, 5822, 10084, 5601, 9829, 18, 5814, 2957, 273, 599, 468, 9609, 2190, 5822, 10084, 18, 2972, 2957, 273, 1755, 225, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 72, 975, 10084, 4672, 5601, 9829, 18, 2890, 273, 5822, 10084, 5601, 9829, 18, 5814, 2957, 273, 599, 468, 9609, 2190, 5822, 10084, 18, 2972, 2957, 273, 1755, 225, 468...
offset += 1
def parseDoubleQuotedString(): global s, slen, offset #print "parse dqs:", offset start = offset while True: offset += 1 if offset >= slen: break if s[offset] == "\\": s.pop(offset) slen -= 1 offset += 1 elif s[offset] == '"': offset += 1 break return s[start+1:offset-1].tostring()
b53c338b34f74636d6b1209dffbbd319cd8d1570 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/b53c338b34f74636d6b1209dffbbd319cd8d1570/compactjson.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20575, 15919, 780, 13332, 2552, 272, 16, 272, 1897, 16, 1384, 468, 1188, 315, 2670, 302, 12926, 2773, 16, 1384, 787, 273, 1384, 1323, 1053, 30, 309, 1384, 1545, 272, 1897, 30, 898, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20575, 15919, 780, 13332, 2552, 272, 16, 272, 1897, 16, 1384, 468, 1188, 315, 2670, 302, 12926, 2773, 16, 1384, 787, 273, 1384, 1323, 1053, 30, 309, 1384, 1545, 272, 1897, 30, 898, 309, ...
(xml_fd, xml) = tempfile.mkstemp('.xml') (svg_fd, svg) = tempfile.mkstemp('.svg') (pdf_fd, pdf) = tempfile.mkstemp('.pdf')
(xml_fd, xml) = tempfile.mkstemp('.xml') (svg_fd, svg) = tempfile.mkstemp('.svg') (pdf_fd, pdf) = tempfile.mkstemp('.pdf')
def pdf(self): import os, tempfile
ff36d31a2a014c3bd68fff8ac2fb7c01edd04a01 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/ff36d31a2a014c3bd68fff8ac2fb7c01edd04a01/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8169, 12, 2890, 4672, 1930, 1140, 16, 13275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8169, 12, 2890, 4672, 1930, 1140, 16, 13275, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.wantAvatarPhysicsIndicator: onScreenDebug.add("velocity", velocity.pPrintValues())
if __debug__: if self.wantAvatarPhysicsIndicator: onScreenDebug.add("velocity", velocity.pPrintValues())
def setPriorParentVector(self): assert(self.debugPrint("doDeltaPos()")) print "self.__oldDt", self.__oldDt, "self.__oldPosDelta", self.__oldPosDelta onScreenDebug.add("__oldDt", "% 10.4f"%self.__oldDt) onScreenDebug.add("self.__oldPosDelta", self.__oldPosDelta.pPrintValues()) velocity = self.__oldPosDelta*(1/self.__o...
4d92e63fdd59070a3d2b21f20eb98c01489610bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4d92e63fdd59070a3d2b21f20eb98c01489610bc/PhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17004, 2432, 3054, 5018, 12, 2890, 4672, 1815, 12, 2890, 18, 4148, 5108, 2932, 2896, 9242, 1616, 10031, 3719, 225, 1172, 315, 2890, 16186, 1673, 19739, 3113, 365, 16186, 1673, 19739, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17004, 2432, 3054, 5018, 12, 2890, 4672, 1815, 12, 2890, 18, 4148, 5108, 2932, 2896, 9242, 1616, 10031, 3719, 225, 1172, 315, 2890, 16186, 1673, 19739, 3113, 365, 16186, 1673, 19739, 16, 3...
def __init__(self): self.log(2,"info",_("XiboLogScreen logger started")) def log(self, level, category, message): print "LOG: " + str(level) + " " + category + " " + message
def __init__(self,level): if level == "" or int(level) < 0: level=0 self.level = int(level) self.log(2,"info",_("XiboLogScreen logger started at level ") + str(level)) def log(self, severity, category, message): if self.level >= severity: print "LOG: " + str(severity) + " " + category + " " + message
def __init__(self): self.log(2,"info",_("XiboLogScreen logger started"))
4998fc1141ff2de15b1dbc951b8f8ecd2a37434a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/4998fc1141ff2de15b1dbc951b8f8ecd2a37434a/XiboClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 1330, 12, 22, 10837, 1376, 3113, 67, 2932, 60, 495, 83, 1343, 7956, 1194, 5746, 6, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 4672, 365, 18, 1330, 12, 22, 10837, 1376, 3113, 67, 2932, 60, 495, 83, 1343, 7956, 1194, 5746, 6, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -10...
if not o.core_port: terminateProcess(gui.p.pid)
terminateProcess(gui.p.pid)
def main(cfg_file=cfg_file): parser = OptionParser() parser.add_option('-t', '--test', default='test', help='the test directory (default %default)') o, args = parser.parse_args() test_options = readTestOptions(o.test) old_dir = getcwd() chdir(join(getcwd(), dirname(argv[0]), dirname(cfg_file))) cfg_file = join(getcwd...
cbe9d679393f87353f3ce9074aade598a013355b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8560/cbe9d679393f87353f3ce9074aade598a013355b/black_box.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 7066, 67, 768, 33, 7066, 67, 768, 4672, 225, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 88, 2187, 3534, 3813, 2187, 805, 2218, 3813, 2187, 2809, 2218, 5787, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7066, 67, 768, 33, 7066, 67, 768, 4672, 225, 2082, 273, 18862, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 88, 2187, 3534, 3813, 2187, 805, 2218, 3813, 2187, 2809, 2218, 5787, ...
nodes = [ name ]
nodes = [ self.name ]
def __init__(self, parent, name, description, value): self.parent = parent self.name = name self.description = description self.value = value self.options = [ ] nodes = [ name ] while parent: nodes.insert(0, parent.name) parent = parent.parent self.path = ".".join(nodes)
cd1da66868e748e65faa498ebd346bf8a3a2b7a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11628/cd1da66868e748e65faa498ebd346bf8a3a2b7a7/prelude.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 2477, 16, 460, 4672, 365, 18, 2938, 273, 982, 365, 18, 529, 273, 508, 365, 18, 3384, 273, 2477, 365, 18, 1132, 273, 460, 365, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 508, 16, 2477, 16, 460, 4672, 365, 18, 2938, 273, 982, 365, 18, 529, 273, 508, 365, 18, 3384, 273, 2477, 365, 18, 1132, 273, 460, 365, 18, 2...
(("iframe", "noembed", "noframes", "noscript"), self.startTagCdata),
("iframe", self.startTagIFrame), (("noembed", "noframes", "noscript"), self.startTagCdata),
def __init__(self, parser, tree): Phase.__init__(self, parser, tree)
60e94ec2778f0402e02ba1984821ce17fb6e904a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/60e94ec2778f0402e02ba1984821ce17fb6e904a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
module_ids = module.search([('name', '=', name)])
module_ids = module.search([ ('name', '=', name), ('state', '!=', 'installed'), ]) if not module_ids: return
def install_module(name): module = RPCProxy('ir.module.module') module_ids = module.search([('name', '=', name)]) module.button_install(module_ids, CONTEXT) SOCK.send(('wizard', 'create', DB_NAME, USER, SESSION, 'ir.module.module.install_upgrade')) wiz_id = SOCK.receive() SOCK.send(('wizard', 'execute', DB_NAME, USER...
4a1e3286854253559aea5f6f6c3a5f1c015e9df1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/4a1e3286854253559aea5f6f6c3a5f1c015e9df1/test_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 2978, 12, 529, 4672, 1605, 273, 8295, 3886, 2668, 481, 18, 2978, 18, 2978, 6134, 1605, 67, 2232, 273, 1605, 18, 3072, 3816, 7707, 529, 2187, 15196, 2187, 508, 3631, 7707, 2019,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3799, 67, 2978, 12, 529, 4672, 1605, 273, 8295, 3886, 2668, 481, 18, 2978, 18, 2978, 6134, 1605, 67, 2232, 273, 1605, 18, 3072, 3816, 7707, 529, 2187, 15196, 2187, 508, 3631, 7707, 2019,...
def get_file_url(self): """ returns the absolute downloadable filepath """ self.user = re.search(r"/user/(.+)", self.parent.url).group(1) max_videos = "" if self.config['max_videos']: max_videos = "?max-results=" + self.config['max_videos'] url = "http://gdata.youtube.com/feeds/api/users/" + self.user + "/uploads" + ma...
def get_file_url(self): """ returns the absolute downloadable filepath """ self.user = re.search(r"/user/(.+)", self.parent.url).group(1) max_videos = "" if self.config['max_videos']: max_videos = "?max-results=" + self.config['max_videos'] url = "http://gdata.youtube.com/feeds/api/users/" + self.user + "/uploads" + ma...
10e72bdba4f856e5cccd3feaafa910948e1411b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/10e72bdba4f856e5cccd3feaafa910948e1411b3/YoutubeChannel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 718, 12, 2890, 4672, 3536, 1135, 326, 4967, 4224, 429, 3608, 3536, 365, 18, 1355, 273, 283, 18, 3072, 12, 86, 6, 19, 1355, 19, 21133, 2225, 16, 365, 18, 2938, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 768, 67, 718, 12, 2890, 4672, 3536, 1135, 326, 4967, 4224, 429, 3608, 3536, 365, 18, 1355, 273, 283, 18, 3072, 12, 86, 6, 19, 1355, 19, 21133, 2225, 16, 365, 18, 2938, 18, ...
user_pass = base64.encodestring(unquote(user_pass)).strip() req.add_header('Proxy-Authorization', 'Basic '+user_pass)
if ':' in user_pass: user, password = user_pass.split(':', 1) user_pass = base64.encodestring('%s:%s' % (unquote(user), unquote(password))) req.add_header('Proxy-Authorization', 'Basic ' + user_pass)
def proxy_open(self, req, proxy, type): orig_type = req.get_type() type, r_type = splittype(proxy) host, XXX = splithost(r_type) if '@' in host: user_pass, host = host.split('@', 1) user_pass = base64.encodestring(unquote(user_pass)).strip() req.add_header('Proxy-Authorization', 'Basic '+user_pass) host = unquote(host)...
a35a9a201facf233fb674c7e30d23c3715d77642 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a35a9a201facf233fb674c7e30d23c3715d77642/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 3190, 12, 2890, 16, 1111, 16, 2889, 16, 618, 4672, 1647, 67, 723, 273, 1111, 18, 588, 67, 723, 1435, 618, 16, 436, 67, 723, 273, 1416, 723, 12, 5656, 13, 1479, 16, 11329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 3190, 12, 2890, 16, 1111, 16, 2889, 16, 618, 4672, 1647, 67, 723, 273, 1111, 18, 588, 67, 723, 1435, 618, 16, 436, 67, 723, 273, 1416, 723, 12, 5656, 13, 1479, 16, 11329, ...
self.o.assy.addmol(numol) bond_at_singlets(hs,sing)
bond_at_singlets(hs,sing) self.o.assy.addmol(numol) return numol, "copy of %r" % m.name
def pasteBond(self, sing): m = self.pastable if len(m.singlets)==0: return if len(m.singlets)>1 and not m.hotspot: return numol = self.pastable.copy(None) # bruce 041116 added by (implicitly, by default) cauterize = 1 # to mol.copy(); change this to cauterize = 0 here if unwanted, # and for other uses of mol.copy in th...
a462aeabdb9106b7e540945131bccb10c32631a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a462aeabdb9106b7e540945131bccb10c32631a5/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 9807, 12, 2890, 16, 4864, 4672, 312, 273, 365, 18, 84, 689, 429, 309, 562, 12, 81, 18, 2470, 17307, 13, 631, 20, 30, 327, 309, 562, 12, 81, 18, 2470, 17307, 13, 34, 21, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19401, 9807, 12, 2890, 16, 4864, 4672, 312, 273, 365, 18, 84, 689, 429, 309, 562, 12, 81, 18, 2470, 17307, 13, 631, 20, 30, 327, 309, 562, 12, 81, 18, 2470, 17307, 13, 34, 21, 471,...
'''dldir [PATH] ... display or change download directory'''
'''dldir [PATH] ... display or change download directory'''
def do_dldir(self,arg): '''dldir [PATH] ... display or change download directory''' if arg == '': print self.options.dldir return arg = expand_path(arg) # resolve environment variables and '~'s if not os_path_exists(arg): #we could also check for write access if you want print >> stderr, 'Error: wrong argument; must be...
dd84159756778af9a20710245188c70555fadd0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11589/dd84159756778af9a20710245188c70555fadd0e/arte+7.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5761, 1214, 12, 2890, 16, 3175, 4672, 9163, 5761, 1214, 306, 4211, 65, 1372, 2562, 578, 2549, 4224, 1867, 26418, 309, 1501, 422, 875, 30, 1172, 365, 18, 2116, 18, 5761, 1214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5761, 1214, 12, 2890, 16, 3175, 4672, 9163, 5761, 1214, 306, 4211, 65, 1372, 2562, 578, 2549, 4224, 1867, 26418, 309, 1501, 422, 875, 30, 1172, 365, 18, 2116, 18, 5761, 1214, ...
EXAMPLES:
EXAMPLES::
def victor_miller_basis(k, prec=10, cusp_only=False, var='q'): r""" Compute and return the Victor-Miller basis for modular forms of weight k and level 1 to precision $O(q^prec)$. if \code{cusp\_only} is True, return only a basis for the cuspidal subspace. INPUT: k -- an integer prec -- (default: 10) a positive intege...
ce1ded778fda31fd58c301fea166e25be2477096 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ce1ded778fda31fd58c301fea166e25be2477096/vm_basis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28873, 280, 67, 81, 24462, 67, 23774, 12, 79, 16, 13382, 33, 2163, 16, 27964, 84, 67, 3700, 33, 8381, 16, 569, 2218, 85, 11, 4672, 436, 8395, 8155, 471, 327, 326, 776, 933, 280, 17, ...
f = open(wikipedia.datafilepath(appdir, 'exclusion_list.dump', 'w'))
f = open(wikipedia.datafilepath(appdir, 'exclusion_list.dump'), 'w')
def exclusion_list_dump(): f = open(wikipedia.datafilepath(appdir, 'exclusion_list.dump', 'w')) f.write('\n'.join(excl_list)) f.close() print "Exclusion list dump saved."
df982418feb2fee96037cb0fe13fcf2215c639bd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/df982418feb2fee96037cb0fe13fcf2215c639bd/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 67, 8481, 13332, 284, 273, 1696, 12, 11999, 13744, 18, 892, 10561, 12, 2910, 1214, 16, 296, 338, 15335, 67, 1098, 18, 8481, 19899, 296, 91, 6134, 284, 18, 2626, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 67, 8481, 13332, 284, 273, 1696, 12, 11999, 13744, 18, 892, 10561, 12, 2910, 1214, 16, 296, 338, 15335, 67, 1098, 18, 8481, 19899, 296, 91, 6134, 284, 18, 2626, 2668, ...
if depth < 0: depth = 0
if depth > maxDepth: maxDepth = depth if debug: print depth, maxDepth
def findDepth(self, insts): depth = 0 maxDepth = 0 for i in insts: opname = i[0] delta = self.effect.get(opname, 0) if delta > 1: depth = depth + delta elif delta < 0: if depth > maxDepth: maxDepth = depth depth = depth + delta else: if depth > maxDepth: maxDepth = depth # now check patterns for pat, pat_delta in self....
7b358a65a3617245e4258bd0917666b170879137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b358a65a3617245e4258bd0917666b170879137/pyassem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 6148, 12, 2890, 16, 1804, 87, 4672, 3598, 273, 374, 22074, 273, 374, 364, 277, 316, 1804, 87, 30, 30273, 273, 277, 63, 20, 65, 3622, 273, 365, 18, 13867, 18, 588, 12, 556, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 6148, 12, 2890, 16, 1804, 87, 4672, 3598, 273, 374, 22074, 273, 374, 364, 277, 316, 1804, 87, 30, 30273, 273, 277, 63, 20, 65, 3622, 273, 365, 18, 13867, 18, 588, 12, 556, 529,...
if page.title() == page.titleWithoutNamespace(): pagemove = (u'%s%s%s' % (self.pagestart, page.title(), self.pageend)) else: ask2 = wikipedia.input(u'Do you want to remove the namespace prefix "%s:"? [(Y)es, (N)o]'% page.site().namespace(page.namespace()))
pagemove = (u'%s%s%s' % (self.pagestart, pagetitle, self.pageend)) if namesp: ask2 = wikipedia.input(u'Do you want to remove the namespace prefix "%s:"? [(Y)es, (N)o]'% namesp)
def treat(self,page): pagetitle = page.title() wikipedia.output(u'\n>>>> %s <<<<' % pagetitle) if self.prefix: pagetitle = page.titleWithoutNamespace() pagemove = (u'%s%s' % (self.prefix, pagetitle)) if self.always == False: ask2 = wikipedia.input(u'Change the page title to "%s"? [(Y)es, (N)o, (Q)uit]' % pagemove) if a...
bd3514937b98bef29f1bfde1f2a14a9940dcaf84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/bd3514937b98bef29f1bfde1f2a14a9940dcaf84/movepages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 2890, 16, 2433, 4672, 4262, 278, 1280, 273, 1363, 18, 2649, 1435, 21137, 18, 2844, 12, 89, 8314, 82, 9778, 9778, 738, 87, 14360, 32, 11, 738, 4262, 278, 1280, 13, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 2890, 16, 2433, 4672, 4262, 278, 1280, 273, 1363, 18, 2649, 1435, 21137, 18, 2844, 12, 89, 8314, 82, 9778, 9778, 738, 87, 14360, 32, 11, 738, 4262, 278, 1280, 13, 309, 365, ...
sys.stdout.write(data)
self.fd.write(data) self.flush()
def write(self, data, level): sys.stdout.write(data)
3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 16, 1801, 4672, 2589, 18, 10283, 18, 2626, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 501, 16, 1801, 4672, 2589, 18, 10283, 18, 2626, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def register(self, func, state = initialState, nextState = None, isIterable = 0, onFinish = None, onFailure = None, stopValue = None): ''' This allows the registration of callback functions which are applied whenever an appropriate event of a given state is encountered. Each callback item, run, start, and finish can e...
def addStage(self, callable, onFinish = None, isIterable = None, isDynamic = None, stopValue = None, onFailure = None): ''' This appends an additional stage to the singly-linked list, starting with stageHead. ''' stage = FlowStage(callable, onFinish, isIterable, isDynamic, stopValue, onFailure) link = FlowStageLink(sta...
def register(self, func, state = initialState, nextState = None, isIterable = 0, onFinish = None, onFailure = None, stopValue = None): ''' This allows the registration of callback functions which are applied whenever an appropriate event of a given state is encountered. Each callback item, run, start, and finish can e...
4cf3103eb894bde67fe5e1250725e8ef11de7f5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4cf3103eb894bde67fe5e1250725e8ef11de7f5a/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12, 2890, 16, 1326, 16, 919, 273, 2172, 1119, 16, 25509, 273, 599, 16, 353, 13668, 273, 374, 16, 603, 11641, 273, 599, 16, 27748, 273, 599, 16, 2132, 620, 273, 599, 4672, 9163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 16, 1326, 16, 919, 273, 2172, 1119, 16, 25509, 273, 599, 16, 353, 13668, 273, 374, 16, 603, 11641, 273, 599, 16, 27748, 273, 599, 16, 2132, 620, 273, 599, 4672, 9163, ...
version = '0.3',
version = '0.4',
def copy_transformed_tree(self, install_specs, dst_root=None, src_root=None, substitutions={}): """ Copy parts of a source tree to a destination tree with a different tree structure and/or names.
8373ed289960d38e2084f22c195cd2aa48ab695e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1166/8373ed289960d38e2084f22c195cd2aa48ab695e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6547, 329, 67, 3413, 12, 2890, 16, 3799, 67, 15115, 16, 3046, 67, 3085, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 16, 23368, 12938, 4672, 3536, 5631, 2140, 434, 279, 1084, 2151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 6547, 329, 67, 3413, 12, 2890, 16, 3799, 67, 15115, 16, 3046, 67, 3085, 33, 7036, 16, 1705, 67, 3085, 33, 7036, 16, 23368, 12938, 4672, 3536, 5631, 2140, 434, 279, 1084, 2151...
context.currentRecord.code = [ pa + 030000 ]
context.currentRecord.code = [ channel + 030000 ]
def parse_DNPTR(self, context, operands): pa = None expr = Expression(context, operands) if expr.complete: channel = expr.value if context.memmap.isChannel(channel): context.currentRecord.code = [ pa + 030000 ] context.currentRecord.complete = True else: context.error("operand must be a channel number")
bb0c9481857559544ff51b048aec8112dfafa7d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/bb0c9481857559544ff51b048aec8112dfafa7d9/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8609, 1856, 54, 12, 2890, 16, 819, 16, 14883, 4672, 6790, 273, 599, 3065, 273, 5371, 12, 2472, 16, 14883, 13, 309, 3065, 18, 6226, 30, 1904, 273, 3065, 18, 1132, 309, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8609, 1856, 54, 12, 2890, 16, 819, 16, 14883, 4672, 6790, 273, 599, 3065, 273, 5371, 12, 2472, 16, 14883, 13, 309, 3065, 18, 6226, 30, 1904, 273, 3065, 18, 1132, 309, 819, ...
if p.usesShmem():
if p.decl.type.isToplevel():
def makeHandlerMethod(name, switch, hasReply, dispatches=0): params = [ Decl(Type('Message', const=1, ref=1), msgvar.name) ] if hasReply: params.append(Decl(Type('Message', ref=1, ptr=1), replyvar.name)) method = MethodDefn(MethodDecl(name, virtual=True, params=params, ret=_Result.Type())) if dispatches: routevar = Ex...
0aa0991994d9640e22a59798324bc37b7a1d4a9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/0aa0991994d9640e22a59798324bc37b7a1d4a9c/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1503, 1305, 12, 529, 16, 1620, 16, 711, 7817, 16, 3435, 281, 33, 20, 4672, 859, 273, 306, 16110, 12, 559, 2668, 1079, 2187, 1866, 33, 21, 16, 1278, 33, 21, 3631, 1234, 1401, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1503, 1305, 12, 529, 16, 1620, 16, 711, 7817, 16, 3435, 281, 33, 20, 4672, 859, 273, 306, 16110, 12, 559, 2668, 1079, 2187, 1866, 33, 21, 16, 1278, 33, 21, 3631, 1234, 1401, 18...
if stock.name in self.subpools:
if isinstance(stock, StockPool):
def unregister(self, stock): dir, branch = self._parse_stock(stock) stock_name = basename(dir) if branch: stock_name += "#" + branch matches = [ stock for stock in self.stocks.values() if stock.link == dir and (not branch or stock.branch == branch) ] if not matches: raise Error("no matches for unregister")
6d8e479ce6858e29690ba17f229cbe7addab6e2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5275/6d8e479ce6858e29690ba17f229cbe7addab6e2f/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10232, 12, 2890, 16, 12480, 4672, 1577, 16, 3803, 273, 365, 6315, 2670, 67, 15381, 12, 15381, 13, 12480, 67, 529, 273, 4882, 12, 1214, 13, 309, 3803, 30, 12480, 67, 529, 1011, 13092, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10232, 12, 2890, 16, 12480, 4672, 1577, 16, 3803, 273, 365, 6315, 2670, 67, 15381, 12, 15381, 13, 12480, 67, 529, 273, 4882, 12, 1214, 13, 309, 3803, 30, 12480, 67, 529, 1011, 13092, 3...
if 'Analysis against batch' in key:
if 'Analysis against Batch' in key:
def analyse(self):
82c831407f7342907fe991f75ab507ec669c96c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/82c831407f7342907fe991f75ab507ec669c96c7/CCP4IntraRadiationDamageDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ICAL.uid, ICAL.summary, ICAL.description,
ICAL.uid, ICAL.summary, ICAL.description,
def exportEvent(self, sts, event): w = self._w
04829bd0c6467d1a5ceb640d5981b3facc7553d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/04829bd0c6467d1a5ceb640d5981b3facc7553d5/toIcal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 1133, 12, 2890, 16, 27099, 16, 871, 4672, 341, 273, 365, 6315, 91, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 1133, 12, 2890, 16, 27099, 16, 871, 4672, 341, 273, 365, 6315, 91, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if ordinal is None: msg = self.reporter.error( ('Enumerated list start value invalid at line %s: ' '"%s" (sequence %r)' % (self.state_machine.abs_line_number(), text, sequence))) self.parent += msg indented, line_offset, blank_finish = \ self.state_machine.get_known_indented(match.end()) bq = self.block_quote(indented,...
if not self.is_enumerated_list_item(ordinal, sequence, format): raise statemachine.TransitionCorrection('text')
def enumerator(self, match, context, next_state): """Enumerated List Item""" format, sequence, text, ordinal = self.parse_enumerator(match) if ordinal is None: msg = self.reporter.error( ('Enumerated list start value invalid at line %s: ' '"%s" (sequence %r)' % (self.state_machine.abs_line_number(), text, sequence))) s...
67604a1c88bd372a821eedfd740b5ecf5dcf9e21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/67604a1c88bd372a821eedfd740b5ecf5dcf9e21/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24679, 12, 2890, 16, 845, 16, 819, 16, 1024, 67, 2019, 4672, 3536, 3572, 19007, 987, 4342, 8395, 740, 16, 3102, 16, 977, 16, 12675, 273, 365, 18, 2670, 67, 7924, 7385, 12, 1916, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24679, 12, 2890, 16, 845, 16, 819, 16, 1024, 67, 2019, 4672, 3536, 3572, 19007, 987, 4342, 8395, 740, 16, 3102, 16, 977, 16, 12675, 273, 365, 18, 2670, 67, 7924, 7385, 12, 1916, 13, ...
reslist=filter( lambda x: x[0] and (not x[1]), searchres )
reslist=filter( lambda x: not x[1], searchres )
def select_words( self, tabkeys, onechar=False ): ''' Get phrases from database by tab_key objects ( which should be equal or less than the max key length) This method is called in table.py by passing UserInput held data Return result[:] ''' # firstly, we make sure the len we used is equal or less than the max key leng...
5788a2abe5571ead36cef99b87853ffbb90f9652 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/544/5788a2abe5571ead36cef99b87853ffbb90f9652/tabsqlitedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3753, 12, 365, 16, 3246, 2452, 16, 1245, 3001, 33, 8381, 262, 30, 9163, 968, 31413, 628, 2063, 635, 3246, 67, 856, 2184, 261, 1492, 1410, 506, 3959, 578, 5242, 2353, 326, 943...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3753, 12, 365, 16, 3246, 2452, 16, 1245, 3001, 33, 8381, 262, 30, 9163, 968, 31413, 628, 2063, 635, 3246, 67, 856, 2184, 261, 1492, 1410, 506, 3959, 578, 5242, 2353, 326, 943...
try: address.index(u'<') except ValueError:
index = address.rfind(u'<') if index == -1:
def getEmailAddress(cls, view, nameOrAddressString, fullName=u'', create=True): """ Factory Method -------------- When creating a new EmailAddress, we check for an existing item first. We do look them up in the repository to prevent duplicates, but there's nothing to keep bad ones from accumulating, although repository...
4226215c87ccbcd1fc1ec354332468d0928d69ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9228/4226215c87ccbcd1fc1ec354332468d0928d69ee/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17297, 1887, 12, 6429, 16, 1476, 16, 26840, 1887, 780, 16, 12424, 33, 89, 11, 2187, 752, 33, 5510, 4672, 3536, 7822, 2985, 300, 16982, 5203, 4979, 279, 394, 8166, 1887, 16, 732, 866, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17297, 1887, 12, 6429, 16, 1476, 16, 26840, 1887, 780, 16, 12424, 33, 89, 11, 2187, 752, 33, 5510, 4672, 3536, 7822, 2985, 300, 16982, 5203, 4979, 279, 394, 8166, 1887, 16, 732, 866, 3...
self.board_size = size
self.board_size = new_size
def handle_loadsgf(self, args): try: pathname = args[0] except IndexError: gtp.report_bad_arguments() if len(args) > 1: move_number = gtp.interpret_int(args[1]) else: move_number = 10000 try: f = open(pathname) s = f.read() f.close() except EnvironmentError: raise gtp.GtpError("cannot load file") try: sgf = sgf_reader....
67c2bb273f4be10ba7991b1ca6fc770aac2509d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6121/67c2bb273f4be10ba7991b1ca6fc770aac2509d5/gtp_boards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 945, 1055, 74, 12, 2890, 16, 833, 4672, 775, 30, 9806, 273, 833, 63, 20, 65, 1335, 10195, 30, 314, 6834, 18, 6006, 67, 8759, 67, 7099, 1435, 309, 562, 12, 1968, 13, 405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 945, 1055, 74, 12, 2890, 16, 833, 4672, 775, 30, 9806, 273, 833, 63, 20, 65, 1335, 10195, 30, 314, 6834, 18, 6006, 67, 8759, 67, 7099, 1435, 309, 562, 12, 1968, 13, 405, ...
opcodes = diff2._get_opcodes(['A'], ['A', 'B', ''],
opcodes = Diff._get_opcodes(['A'], ['A', 'B', ''],
def test_insert_blank_line(self): opcodes = diff2._get_opcodes(['A', 'B'], ['A', 'B', ''], ignore_blank_lines=0) self.assertEqual(('equal', 0, 2, 0, 2), opcodes.next()) self.assertEqual(('insert', 2, 2, 2, 3), opcodes.next())
f0e6a3afeb9f648f246fa50a5aac86386a0128b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f0e6a3afeb9f648f246fa50a5aac86386a0128b9/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6387, 67, 12111, 67, 1369, 12, 2890, 4672, 1061, 7000, 273, 3122, 22, 6315, 588, 67, 556, 7000, 12, 3292, 37, 2187, 296, 38, 17337, 10228, 37, 2187, 296, 38, 2187, 875, 6487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6387, 67, 12111, 67, 1369, 12, 2890, 4672, 1061, 7000, 273, 3122, 22, 6315, 588, 67, 556, 7000, 12, 3292, 37, 2187, 296, 38, 17337, 10228, 37, 2187, 296, 38, 2187, 875, 6487,...
assert package.license.title == u'GNU General Public License version 3.0 (GPLv3)'
assert package.license.title == u'OSI Approved::GNU General Public License version 3.0 (GPLv3)', package.license.title
def test_create_package(self): package = model.Package.by_name(self.name) assert package.name == self.name assert package.notes == self.notes assert package.license.id == u'gpl-3.0' assert package.license.title == u'GNU General Public License version 3.0 (GPLv3)' # Check unregistered license_id causes license to be 'No...
2734b17f5bd2e98abb4c394d57658215acd6e37d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/2734b17f5bd2e98abb4c394d57658215acd6e37d/test_package.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5610, 12, 2890, 4672, 2181, 273, 938, 18, 2261, 18, 1637, 67, 529, 12, 2890, 18, 529, 13, 1815, 2181, 18, 529, 422, 365, 18, 529, 1815, 2181, 18, 12903, 422, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5610, 12, 2890, 4672, 2181, 273, 938, 18, 2261, 18, 1637, 67, 529, 12, 2890, 18, 529, 13, 1815, 2181, 18, 529, 422, 365, 18, 529, 1815, 2181, 18, 12903, 422, 365,...
assert not f.has_focus()
assert not f.is_padded()
def exercise_flex_constructors(): f = flex.double() assert f.size() == 0 assert f.capacity() == 0 assert f.accessor().nd() == 1 assert tuple(f.accessor().origin()) == (0,) assert tuple(f.accessor().all()) == (0,) assert tuple(f.accessor().last()) == (0,) assert tuple(f.accessor().last(1)) == (0,) assert tuple(f.accesso...
bbf8bb0a447c23a4aef85ae21b929ee322041ec6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/bbf8bb0a447c23a4aef85ae21b929ee322041ec6/tst_flex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 27592, 67, 10062, 1383, 13332, 284, 273, 16600, 18, 9056, 1435, 1815, 284, 18, 1467, 1435, 422, 374, 1815, 284, 18, 16017, 1435, 422, 374, 1815, 284, 18, 3860, 280, 7675, 4880...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24165, 67, 27592, 67, 10062, 1383, 13332, 284, 273, 16600, 18, 9056, 1435, 1815, 284, 18, 1467, 1435, 422, 374, 1815, 284, 18, 16017, 1435, 422, 374, 1815, 284, 18, 3860, 280, 7675, 4880...
def setaccely(self, speed): '''set the goal speed''' self.accely = speed def setaccelx(self, angvel): '''set the goal angular velocity''' self.accelx = angvel
def setaccelx(self, accelx): '''set the goal x accelleration''' self.accelx = accelx def setaccely(self, accely): '''set the goal y accelleration''' self.accely = accely
def setaccely(self, speed): '''set the goal speed''' self.accely = speed
a88763d0651e3694631bd311df26113d428bb8b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/a88763d0651e3694631bd311df26113d428bb8b7/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8981, 2357, 12, 2890, 16, 8632, 4672, 9163, 542, 326, 17683, 8632, 26418, 365, 18, 8981, 2357, 273, 8632, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8981, 2357, 12, 2890, 16, 8632, 4672, 9163, 542, 326, 17683, 8632, 26418, 365, 18, 8981, 2357, 273, 8632, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
imm = imm2bin(imm, 11)
if imm < 0: imm = 2**12 - 2 + imm imm = int2bin(imm, 11) else: imm = int2bin(imm, 11)
def parse_jump(instruc = "", word_buf = ""): if instruc == "" or word_buf == "": print "ERROR: someone accidentally the code in parse_jump" return "-1" instruc = sanitize(instruc) ins = instruc[0] regS = instruc[1] if ins == "jsr": word_buf += "1" imm = hexorint(imm) if imm > 2**10 or imm < -(2**10) + 1: print "ERRO...
3544f255124af0db34ea242b135b6b6390308500 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4891/3544f255124af0db34ea242b135b6b6390308500/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 24574, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 24574, 12, 267, 701, 5286, 273, 23453, 2076, 67, 4385, 273, 1408, 4672, 309, 16170, 5286, 422, 1408, 578, 2076, 67, 4385, 422, 1408, 30, 1172, 315, 3589, 30, 18626, 25961, 1230...
"t3.newvalue,t1.author"
" t3.newvalue,t1.author,t.summary"
def get_timeline_events(self, req, start, stop, filters): if 'ticket' in filters: absurls = req.args.get('format') == 'rss' # Kludge sql = []
002831a283f63c0dbdcd402238fe51d0497fc231 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/002831a283f63c0dbdcd402238fe51d0497fc231/Ticket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26237, 67, 5989, 12, 2890, 16, 1111, 16, 787, 16, 2132, 16, 3415, 4672, 309, 296, 16282, 11, 316, 3415, 30, 2417, 10518, 273, 1111, 18, 1968, 18, 588, 2668, 2139, 6134, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26237, 67, 5989, 12, 2890, 16, 1111, 16, 787, 16, 2132, 16, 3415, 4672, 309, 296, 16282, 11, 316, 3415, 30, 2417, 10518, 273, 1111, 18, 1968, 18, 588, 2668, 2139, 6134, 422, ...
import database, time
import time
def handler(self, **args): """Return information about a factoid to the person requesting it""" import database, time from irclib import Event
e1e6b64160001d2d23ad7d039dc8a4073fa7d332 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/e1e6b64160001d2d23ad7d039dc8a4073fa7d332/factoids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 3536, 990, 1779, 2973, 279, 5410, 839, 358, 326, 6175, 18709, 518, 8395, 1930, 813, 628, 9482, 830, 495, 1930, 2587, 2, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1838, 12, 2890, 16, 2826, 1968, 4672, 3536, 990, 1779, 2973, 279, 5410, 839, 358, 326, 6175, 18709, 518, 8395, 1930, 813, 628, 9482, 830, 495, 1930, 2587, 2, -100, -100, -100, -100, -100...
self.mode.editwin.setFlag(self.flag) self.mode.editwin.moveSelected(multiplier)
self.mode.setFlag(self.flag) self.mode.moveSelected(multiplier)
def action(self, index=-1, multiplier=1): if self.flag: self.mode.editwin.setFlag(self.flag) self.mode.editwin.moveSelected(multiplier)
5cfb102115321ea923828cfe2331e4b8f8a43e20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5cfb102115321ea923828cfe2331e4b8f8a43e20/dired.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 309, 365, 18, 6420, 30, 365, 18, 3188, 18, 4619, 8082, 18, 542, 4678, 12, 2890, 18, 6420, 13, 365, 18, 3188, 18, 4619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 309, 365, 18, 6420, 30, 365, 18, 3188, 18, 4619, 8082, 18, 542, 4678, 12, 2890, 18, 6420, 13, 365, 18, 3188, 18, 4619, ...
self.foundTitleTag= False
self.inTitleTag= False self.foundTitle= False
def __init__ (self, deferred): HTMLParser.__init__ (self) self.foundTitleTag= False self.deferred= deferred self.title= u''
7c75257e75d4263cbfee9c20448d9532e16b54d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5759/7c75257e75d4263cbfee9c20448d9532e16b54d6/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7045, 4672, 3982, 2678, 16186, 2738, 972, 261, 2890, 13, 365, 18, 267, 4247, 1805, 33, 1083, 365, 18, 7015, 4247, 33, 1083, 365, 18, 26622, 33, 7045, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 7045, 4672, 3982, 2678, 16186, 2738, 972, 261, 2890, 13, 365, 18, 267, 4247, 1805, 33, 1083, 365, 18, 7015, 4247, 33, 1083, 365, 18, 26622, 33, 7045, 36...
output.write("Content-Type: text/plain\n\n" + \ "There is something wrong with your setup.\n" + \ "Check your config files and verify that your " + \
output.write("Content-Type: text/plain\n\n" + "There is something wrong with your setup.\n" + "Check your config files and verify that your " +
def blosxom_handler(request): """ This is the default blosxom handler. It calls the renderer callback to get a renderer. If there is no renderer, it uses the blosxom renderer. It calls the pathinfo callback to process the path_info http variable. It calls the filelist callback to build a list of entries to display....
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 383, 30319, 362, 67, 4176, 12, 2293, 4672, 3536, 1220, 353, 326, 805, 324, 383, 30319, 362, 1838, 18, 225, 2597, 4097, 326, 5690, 1348, 358, 336, 279, 5690, 18, 225, 971, 1915, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 383, 30319, 362, 67, 4176, 12, 2293, 4672, 3536, 1220, 353, 326, 805, 324, 383, 30319, 362, 1838, 18, 225, 2597, 4097, 326, 5690, 1348, 358, 336, 279, 5690, 18, 225, 971, 1915, 35...
return roles + set(x[0] for x in cu)
roles.update(x[0] for x in cu) return roles
def getAuthorizedRoles(self, cu, user, password, allowAnonymous = True, remoteIp = None): """ Given a user and password, return the list of roles that are authorized via these credentials """
1ea6928135e026fdc7a7db75883b1dd4d2132077 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/1ea6928135e026fdc7a7db75883b1dd4d2132077/netauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15341, 6898, 12, 2890, 16, 15985, 16, 729, 16, 2201, 16, 1699, 18792, 273, 1053, 16, 2632, 5273, 273, 599, 4672, 3536, 16803, 279, 729, 471, 2201, 16, 327, 326, 666, 434, 4900, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15341, 6898, 12, 2890, 16, 15985, 16, 729, 16, 2201, 16, 1699, 18792, 273, 1053, 16, 2632, 5273, 273, 599, 4672, 3536, 16803, 279, 729, 471, 2201, 16, 327, 326, 666, 434, 4900, 71...
if not args: args = '--block=4096 --block=8192 --threads=10 --size=1024 --numruns=2' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): utils.system('./tiobench.pl --dir %s %s' %(dir, args)) if profilers.present(): profilers.start(self) utils.system('./tiobench.pl --dir %s %s' %(dir, ...
utils.system('./tiobench.pl --dir %s %s' %(self.dir, self.args))
def execute(self, dir = None, iterations=1, args = None): if not dir: dir = self.tmpdir os.chdir(self.srcdir) if not args: args = '--block=4096 --block=8192 --threads=10 --size=1024 --numruns=2' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): utils.system('./tiobench.pl --dir %s %s' ...
7c562a2d336bbd79105649c39c0d5a12cd90a33c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/7c562a2d336bbd79105649c39c0d5a12cd90a33c/tiobench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1577, 273, 599, 16, 11316, 33, 21, 16, 833, 273, 599, 4672, 309, 486, 1577, 30, 1577, 273, 365, 18, 5645, 1214, 1140, 18, 343, 1214, 12, 2890, 18, 4816, 1214, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 1577, 273, 599, 16, 11316, 33, 21, 16, 833, 273, 599, 4672, 309, 486, 1577, 30, 1577, 273, 365, 18, 5645, 1214, 1140, 18, 343, 1214, 12, 2890, 18, 4816, 1214, 13,...
self.stdout = None
self.stdout = []
def __init__(self): self.stdout = None self._buf = None
0b51b745c8040c36bb45a85570254bf78ece4547 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11821/0b51b745c8040c36bb45a85570254bf78ece4547/capture.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 10283, 273, 5378, 365, 6315, 4385, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 10283, 273, 5378, 365, 6315, 4385, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else
else:
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 950) else quickfix.CharField.__init__(self, 950, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 2468, 3361, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 2468, 3361, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 27...
tmp = ['0' if s[(4 * x)] == 0 else '1' for x in range((len(s) / 4))] n[row + orow][ocol:ocol + 128] = tmp row += 1
tmp = [1 if s[(x*4)]==s[(x*4)+1]==s[(x*4)+2]==s[(x*4)+3] else 0 for x in range(int(len(s)/4))] n[row+orow][ocol:ocol+128] = tmp row+=1
def post(self): delList = [] key = self.request.params.get('k', None) now = time.time() seed = self.request.params.get('seed', int(now / 15)) tile = Tile.get(db.Key.from_path('Tiles', key)) if tile: #if it does exist, turn it into a binary 256x256 matrix n = [] row = 0 for s in png.Reader(bytes=tile.band).asRGBA()[2]: ...
d8c9f1983df3f32f242b3e5ecc7fa8cf679c37ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14219/d8c9f1983df3f32f242b3e5ecc7fa8cf679c37ba/cron.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 1464, 682, 273, 5378, 498, 273, 365, 18, 2293, 18, 2010, 18, 588, 2668, 79, 2187, 599, 13, 2037, 273, 813, 18, 957, 1435, 5009, 273, 365, 18, 2293, 18, 2010, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 4672, 1464, 682, 273, 5378, 498, 273, 365, 18, 2293, 18, 2010, 18, 588, 2668, 79, 2187, 599, 13, 2037, 273, 813, 18, 957, 1435, 5009, 273, 365, 18, 2293, 18, 2010, 18...
"paint" : lambda row: paint_host_count(0, row["hostgroup_num_hosts_down"])
"paint" : lambda row: paint_host_count(1, row["hostgroup_num_hosts_down"])
def paint_host_list(row): h = "<div class=objectlist>" for host, state, checked in row["hostgroup_members_with_state"]: link = "view.py?view_name=host&site=%s&host=%s" % ( htmllib.urlencode(row["site"]), htmllib.urlencode(host)) if checked: css = "hstate%d" % state else: css = "hstatep" h += "<div class=\"%s\"><a href=...
9e5e756cd2b5a841e8d5fa876ef07a7938d19825 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/9e5e756cd2b5a841e8d5fa876ef07a7938d19825/painters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 67, 2564, 67, 1098, 12, 492, 4672, 366, 273, 3532, 2892, 667, 33, 1612, 1098, 2984, 364, 1479, 16, 919, 16, 5950, 316, 1027, 9614, 2564, 1655, 67, 7640, 67, 1918, 67, 2019, 1192...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 67, 2564, 67, 1098, 12, 492, 4672, 366, 273, 3532, 2892, 667, 33, 1612, 1098, 2984, 364, 1479, 16, 919, 16, 5950, 316, 1027, 9614, 2564, 1655, 67, 7640, 67, 1918, 67, 2019, 1192...
print """TEST-UNEXPECTED-FAIL | %s | test failed, see following log:
print """TEST-UNEXPECTED-FAIL | %s | test failed (with xpcshell return code: %d), see following log:
def processLeakLog(leakLogFile): """Process the leak log.""" # For the time being, don't warn (nor "info") if the log file is not there. (Bug 469523) if not os.path.exists(leakLogFile): return
3c0f04e10219745ce240c4395b0536f30d3efc6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/3c0f04e10219745ce240c4395b0536f30d3efc6b/runxpcshelltests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1682, 581, 1343, 12, 298, 581, 19103, 4672, 3536, 2227, 326, 20891, 613, 12123, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1682, 581, 1343, 12, 298, 581, 19103, 4672, 3536, 2227, 326, 20891, 613, 12123, 468, 2457, 326, 813, 3832, 16, 2727, 1404, 1894, 261, 29561, 315, 1376, 7923, 309, 326, 613, 585, 35...
print 'if param[ 70 ] & 4 == 4:' if param['70'] & 8 == 8: f13 = 1.0 / 3.0; f23 = 2.0 / 3.0 path = CreatePath() pts = map(lambda x, y: self.trafo(x, y), param['10'],param['20']) curve = path.AppendBezier straight = path.AppendLine
def spline(self): param={ '70': 0, # Spline flag '71': 0, # Degree of the spline curve '72': 0, # Number of knots '73': 0, # Number of control points '74': 0, # Number of fit points '40': [], # Knot value '10': [], # Control points X '20': [], # Control points Y #'30': [], # Control points Z } param.update(self.general...
02df12c26818fd938357920396a246a253220885 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3123/02df12c26818fd938357920396a246a253220885/dxfloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22826, 12, 2890, 4672, 579, 5899, 202, 11, 7301, 4278, 374, 16, 468, 11484, 558, 2982, 296, 11212, 4278, 374, 16, 468, 463, 1332, 992, 434, 326, 22826, 8882, 296, 9060, 4278, 374, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22826, 12, 2890, 4672, 579, 5899, 202, 11, 7301, 4278, 374, 16, 468, 11484, 558, 2982, 296, 11212, 4278, 374, 16, 468, 463, 1332, 992, 434, 326, 22826, 8882, 296, 9060, 4278, 374, 16, ...
cost, joint_histogram = optimize_function(imdata['parms'], optfunc_args)
cost, joint_histogram = optimize_function(P, optfunc_args)
def check_alignment(image1, image2, imdata, method='ncc', lite=0, smhist=0, alpha=0.0, beta=0.0, gamma=0.0, Tx=0, Ty=0, Tz=0, ret_histo=0): # # to test the cost function and view the joint histogram # for 2 images. used for debug # imdata['parms'][0] = alpha imdata['parms'][1] = beta imdata['parms'][2] = gamma imdata[...
a0a06507bdbd3322039b726463a7cc1c63e59774 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/a0a06507bdbd3322039b726463a7cc1c63e59774/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 14409, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 707, 2218, 82, 952, 2187, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 4190, 33, 20, 18, 20, 16, 6796, 33, 20, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 14409, 12, 2730, 21, 16, 1316, 22, 16, 709, 892, 16, 707, 2218, 82, 952, 2187, 328, 1137, 33, 20, 16, 3029, 11488, 33, 20, 16, 4190, 33, 20, 18, 20, 16, 6796, 33, 20, 18...
.. rubric:: Common Usage:
Most of the time, ``__repr__`` methods are only called during user interaction, and therefore need not be fast; and indeed there are objects ``x`` in Sage such ``x.__repr__()`` is time consuming.
... def __repr__(self):
e006c91b9bfa527b35027c367d07937f23205a37 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/e006c91b9bfa527b35027c367d07937f23205a37/lazy_format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 565, 1652, 1001, 12715, 972, 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...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 565, 1652, 1001, 12715, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
"""
"""
def flimage_close(pImage): """ flimage_close(pImage) -> num. """ retval = _flimage_close(pImage) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 4412, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 4412, 12, 84, 2040, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 4412, 12, 84, 2040, 13, 327, 5221, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 4412, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 4412, 12, 84, 2040, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 2730, 67, 4412, 12, 84, 2040, 13, 327, 5221, 28...
StoreDsc(options.outfile, Platform)
StoreDsc(outputFile, Platform)
def Main(): global options global args global workspace options,args = myOptionParser() workspace = "" if (options.workspace == None): print "ERROR: E0000: WORKSPACE not defined.\n Please set the WORKSPACE environment variable to the location of the EDK II install directory." sys.exit(1) else: workspace = options.wo...
7ce4f2b81097f570f96651d4c4aaf63b4dfc011e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/7ce4f2b81097f570f96651d4c4aaf63b4dfc011e/fpd2dsc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12740, 13332, 2552, 702, 2552, 833, 2552, 6003, 702, 16, 1968, 273, 3399, 1895, 2678, 1435, 225, 6003, 273, 1408, 225, 309, 261, 2116, 18, 14915, 422, 599, 4672, 1172, 315, 3589, 30, 512...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12740, 13332, 2552, 702, 2552, 833, 2552, 6003, 702, 16, 1968, 273, 3399, 1895, 2678, 1435, 225, 6003, 273, 1408, 225, 309, 261, 2116, 18, 14915, 422, 599, 4672, 1172, 315, 3589, 30, 512...
@test_support.cpython_only
@support.cpython_only
def test_range_optimization(self): x = range(1) self.assertEqual(type(reversed(x)), type(iter(x)))
aab38cec3a0b88dcb48d4b9b67941e39a0eeb83f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/aab38cec3a0b88dcb48d4b9b67941e39a0eeb83f/test_enumerate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3676, 67, 16689, 1588, 12, 2890, 4672, 619, 273, 1048, 12, 21, 13, 365, 18, 11231, 5812, 12, 723, 12, 266, 7548, 12, 92, 13, 3631, 618, 12, 2165, 12, 92, 20349, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3676, 67, 16689, 1588, 12, 2890, 4672, 619, 273, 1048, 12, 21, 13, 365, 18, 11231, 5812, 12, 723, 12, 266, 7548, 12, 92, 13, 3631, 618, 12, 2165, 12, 92, 20349, 2, -100, ...
global thread if thread: thread.cancel() time.sleep(0.03) thread.join() thread = None
global thread if thread: thread.cancel() time.sleep(0.03) thread.join() thread = None
def onUnload(): global thread if thread: thread.cancel() time.sleep(0.03) thread.join() thread = None
771d37015bf8a6525e056f8e5ccaeb55f7cfd741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/771d37015bf8a6525e056f8e5ccaeb55f7cfd741/spawns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 984, 945, 13332, 2552, 2650, 309, 2650, 30, 2650, 18, 10996, 1435, 813, 18, 19607, 12, 20, 18, 4630, 13, 2650, 18, 5701, 1435, 2650, 273, 599, 225, 2, 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, 0, 0, 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, 984, 945, 13332, 2552, 2650, 309, 2650, 30, 2650, 18, 10996, 1435, 813, 18, 19607, 12, 20, 18, 4630, 13, 2650, 18, 5701, 1435, 2650, 273, 599, 225, 2, -100, -100, -100, -100, -100...
client = self.clients.getByCID(cid) if not client: return None self.verbose('OnAction: %s: %s' % (client.name, actiontype) )
return None self.verbose('OnAction: %s: %s %s' % (client.name, actiontype, data) )
def OnAction(self, cid, actiontype, data, match=None): #Need example client = self.clients.getByCID(cid) if not client: self.debug('No client found') #self.OnClientuserinfo(action, data, match) client = self.clients.getByCID(cid) if not client: return None self.verbose('OnAction: %s: %s' % (client.name, actiontype) ) r...
582bbd5d3a9bd40a10418ac4e629a9aea28fa159 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/582bbd5d3a9bd40a10418ac4e629a9aea28fa159/iourt41.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1803, 12, 2890, 16, 7504, 16, 1301, 723, 16, 501, 16, 845, 33, 7036, 4672, 468, 14112, 3454, 1004, 273, 365, 18, 16931, 18, 588, 858, 25992, 12, 13478, 13, 309, 486, 1004, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 1803, 12, 2890, 16, 7504, 16, 1301, 723, 16, 501, 16, 845, 33, 7036, 4672, 468, 14112, 3454, 1004, 273, 365, 18, 16931, 18, 588, 858, 25992, 12, 13478, 13, 309, 486, 1004, 30, ...
s.append('<%s%s%s>' % (self.name, attributeString, close))
s.append('<%s%s%s>' % (encodedName, attributeString, close))
def decode(self, prettyPrint=False, indentLevel=0, eventualEncoding=DEFAULT_OUTPUT_ENCODING): """Returns a string or Unicode representation of this tag and its contents. To get Unicode, pass None for encoding."""
7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 30410, 33, 8381, 16, 3504, 2355, 33, 20, 16, 871, 1462, 4705, 33, 5280, 67, 15527, 67, 14672, 4672, 3536, 1356, 279, 533, 578, 9633, 4335, 434, 333, 1047, 471, 2097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 30410, 33, 8381, 16, 3504, 2355, 33, 20, 16, 871, 1462, 4705, 33, 5280, 67, 15527, 67, 14672, 4672, 3536, 1356, 279, 533, 578, 9633, 4335, 434, 333, 1047, 471, 2097...
if not os.path.isdir(path):
if not os.path.isdir(path):
def createMiroChannelSubdirectory(item): '''Create the Miro Channel subdirectory in MythVideo abort if the subdirectory cannot be made ''' global localhostname, vid_graphics_dirs, storagegroups, channel_id, flat, simulation, verbose miro = u'Miro' path = u"%s%s/%s" % (vid_graphics_dirs[u'mythvideo'], miro, item[u'chan...
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 2909, 1676, 5149, 12, 1726, 4672, 9163, 1684, 326, 490, 11373, 5307, 29869, 316, 8005, 451, 10083, 6263, 309, 326, 29869, 2780, 506, 7165, 9163, 2552, 1191, 10358, 16, 1833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 49, 11373, 2909, 1676, 5149, 12, 1726, 4672, 9163, 1684, 326, 490, 11373, 5307, 29869, 316, 8005, 451, 10083, 6263, 309, 326, 29869, 2780, 506, 7165, 9163, 2552, 1191, 10358, 16, 1833...
self.gridLayout.addWidget(self.lineEdit_magNorth, 1, 1, 1, 1)
self.verticalLayout_12.addWidget(self.lineEdit_magNorth)
def setupUi(self, ui): ui.setObjectName("ui") ui.resize(625, 637) self.verticalLayout_12 = QtGui.QVBoxLayout(ui) self.verticalLayout_12.setObjectName("verticalLayout_12") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtGui.QHBoxLayout() se...
2503e9f807f1add21e1e4ab81249139c1d70195c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8312/2503e9f807f1add21e1e4ab81249139c1d70195c/Ui_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5915, 4672, 5915, 18, 542, 16707, 2932, 4881, 7923, 5915, 18, 15169, 12, 26, 2947, 16, 1666, 6418, 13, 365, 18, 17824, 3744, 67, 2138, 273, 23425, 18, 53, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 5915, 4672, 5915, 18, 542, 16707, 2932, 4881, 7923, 5915, 18, 15169, 12, 26, 2947, 16, 1666, 6418, 13, 365, 18, 17824, 3744, 67, 2138, 273, 23425, 18, 53, 58...
prec = tokens[i-1] if t.line > prec.line and prec.typ == Token.punct \ and prec.string == ')':
if t.line > t.prec.line and t.prec.typ == Token.punct \ and t.prec.string == ')':
def check_singlular_opening_braces(tokens, lines, warnings): "Check for inappropriate { on a separate line" for i, t in enumerate(tokens): if t.bracelevel == 0 or t.typ != Token.punct or t.string != '{': continue prec = tokens[i-1] if t.line > prec.line and prec.typ == Token.punct \ and prec.string == ')': w = 'Opening...
6ef4f8f80b65ddd3424b5c94f1c8a2c566383415 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6176/6ef4f8f80b65ddd3424b5c94f1c8a2c566383415/check-coding-style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2470, 80, 2490, 67, 3190, 310, 67, 15397, 764, 12, 7860, 16, 2362, 16, 5599, 4672, 315, 1564, 364, 316, 438, 5986, 566, 340, 288, 603, 279, 9004, 980, 6, 364, 277, 16, 268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2470, 80, 2490, 67, 3190, 310, 67, 15397, 764, 12, 7860, 16, 2362, 16, 5599, 4672, 315, 1564, 364, 316, 438, 5986, 566, 340, 288, 603, 279, 9004, 980, 6, 364, 277, 16, 268, ...
"can't pickle %s objects" % `t.__name__`
"can't pickle %s object: %s" % (`t.__name__`, `object`)
def save(self, object, pers_save = 0): memo = self.memo
08a92cb56874537b88a224e9fcd6a3d89a5a703b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/08a92cb56874537b88a224e9fcd6a3d89a5a703b/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if self.groupdict.has_key(name): raise error, "can only use each group name once"
ogid = self.groupdict.get(name, None) if ogid is not None: raise error, ("redefinition of group name %s as group %d; " + "was group %d") % (`name`, gid, ogid)
def opengroup(self, name=None): gid = self.groups self.groups = gid + 1 if name: if self.groupdict.has_key(name): raise error, "can only use each group name once" self.groupdict[name] = gid self.open.append(gid) return gid
7533587d4363d0841232f58d61adc15fa32b4825 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7533587d4363d0841232f58d61adc15fa32b4825/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1655, 12, 2890, 16, 508, 33, 7036, 4672, 11399, 273, 365, 18, 4650, 365, 18, 4650, 273, 11399, 397, 404, 309, 508, 30, 320, 15780, 273, 365, 18, 1655, 1576, 18, 588, 12, 529, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1655, 12, 2890, 16, 508, 33, 7036, 4672, 11399, 273, 365, 18, 4650, 365, 18, 4650, 273, 11399, 397, 404, 309, 508, 30, 320, 15780, 273, 365, 18, 1655, 1576, 18, 588, 12, 529, 1...
if r1 == c1: r1=r0 d0,d1=min(r1,c0),max(r1,c0)
if r1 == c1: r1 = r0 d0,d1 = min(r1,c0),max(r1,c0)
def _merge(self,c0,c1): '''Merge region c0 & c1''' self.W[self.W==c1]=c0 self.neighbours[c0].remove(c1) self.neighbours[c1].remove(c0) self.neighbours[c0].update(self.neighbours[c1]) del self.neighbours[c1] for v in self.neighbours.values(): if c1 in v: v.remove(c1) v.add(c0) b=self.border_id[min(c0,c1),max(c0,c1)] del...
2b38e0c5d09a366f325eb6e3e42c1a13520a2298 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12199/2b38e0c5d09a366f325eb6e3e42c1a13520a2298/roysam.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2702, 12, 2890, 16, 71, 20, 16, 71, 21, 4672, 9163, 6786, 3020, 276, 20, 473, 276, 21, 26418, 365, 18, 59, 63, 2890, 18, 59, 631, 71, 21, 65, 33, 71, 20, 365, 18, 11166, 439...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2702, 12, 2890, 16, 71, 20, 16, 71, 21, 4672, 9163, 6786, 3020, 276, 20, 473, 276, 21, 26418, 365, 18, 59, 63, 2890, 18, 59, 631, 71, 21, 65, 33, 71, 20, 365, 18, 11166, 439...
return if event.eventtype() == 'mode': if len(event.arguments()) < 2: self.error(2, debug_str, debug=True) self.error(1, '2 arguments are needed for a '+event.eventtype()+' event', debug=True) return if event.arguments()[1] != self.nickname or not 'o' in event.arguments()[0]: self.error(1, 'ignoring IRC mode "'+even...
def _irc_event_handler(self, connection, event): """[Internal] Manage IRC events""" # Answer ping if event.eventtype() == 'ping': connection.pong(connection.get_server_name()) return # Events we always want to ignore if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse...
7af2a8a810665cc96ac01e14451dec4dfa2e27ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/7af2a8a810665cc96ac01e14451dec4dfa2e27ba/bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 481, 71, 67, 2575, 67, 4176, 12, 2890, 16, 1459, 16, 871, 4672, 3536, 63, 3061, 65, 24247, 467, 11529, 2641, 8395, 225, 468, 21019, 10087, 309, 871, 18, 2575, 723, 1435, 422, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 481, 71, 67, 2575, 67, 4176, 12, 2890, 16, 1459, 16, 871, 4672, 3536, 63, 3061, 65, 24247, 467, 11529, 2641, 8395, 225, 468, 21019, 10087, 309, 871, 18, 2575, 723, 1435, 422, 296,...
re_grp = re.compile(r'&&|<<|>>|->|::|\.\*|->\*|\|\|')
re_grp = re.compile(r'&&|<<|>>|->|::|\.\*|->\*|\|\||\+\+|--|\*\*+|\.\.\.')
def tokenize(lines): "`Parse' a C file returning a sequence of Tokens" re_com = re.compile(r'/\*.*?\*/|//.*') re_mac = re.compile(r'#.*') re_str = re.compile(r'"([^\\"]+|\\"|\\[^"])*"') re_chr = re.compile(r'\'(?:.|\\.|\\[0-7]{3}|\\x[0-9a-f]{2})\'') re_id = re.compile(r'\b[A-Za-z_]\w*\b') # this eats some integers too ...
9b67737d3ecfce51d6a8231cbcb581d5a83a17d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/9b67737d3ecfce51d6a8231cbcb581d5a83a17d8/check-coding-style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 3548, 4672, 11972, 3201, 11, 279, 385, 585, 5785, 279, 3102, 434, 13899, 6, 283, 67, 832, 273, 283, 18, 11100, 12, 86, 11, 24441, 14, 4509, 10936, 5549, 96, 759, 25664, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13672, 12, 3548, 4672, 11972, 3201, 11, 279, 385, 585, 5785, 279, 3102, 434, 13899, 6, 283, 67, 832, 273, 283, 18, 11100, 12, 86, 11, 24441, 14, 4509, 10936, 5549, 96, 759, 25664, 13, ...
return True
def on_button_press(self, widget, event): from gui.editors import (EditPerson, EditEvent, EditFamily, EditSource, EditPlace, EditRepository, EditNote, EditMedia) # Here we intercept mouse clicks on selected items so that we can # drag multiple items without the click selecting only one target = self.get_path_at_pos(int...
79ac3267e2982e4846e501b6981904955d86acb7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/79ac3267e2982e4846e501b6981904955d86acb7/ClipboardGramplet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 628, 13238, 18, 4619, 1383, 1930, 261, 4666, 8346, 16, 15328, 1133, 16, 15328, 9203, 16, 15328, 1830, 16, 15328, 6029, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 628, 13238, 18, 4619, 1383, 1930, 261, 4666, 8346, 16, 15328, 1133, 16, 15328, 9203, 16, 15328, 1830, 16, 15328, 6029, 16, 1...
def __init__(self, keyword, default=None):
"""Read-only parameter for display only.""" def __init__(self, keyword, default=None, help=''):
def __init__(self, keyword, default=None): self.keyword = keyword self.category = None if default is not None: self.default = default
1f6160b06a4444687324525ba5d4c2d9892fbf5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/1f6160b06a4444687324525ba5d4c2d9892fbf5c/userparams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3536, 1994, 17, 3700, 1569, 364, 2562, 1338, 12123, 1652, 1001, 2738, 972, 12, 2890, 16, 4932, 16, 805, 33, 7036, 16, 2809, 2218, 11, 4672, 365, 18, 11041, 273, 4932, 365, 18, 4743, 273, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3536, 1994, 17, 3700, 1569, 364, 2562, 1338, 12123, 1652, 1001, 2738, 972, 12, 2890, 16, 4932, 16, 805, 33, 7036, 16, 2809, 2218, 11, 4672, 365, 18, 11041, 273, 4932, 365, 18, 4743, 273, 599...
'../scons-out/docs/obj/documentation/html/jsdocs')
'../scons-out/docs/obj/documentation/reference/jsdocs')
def main(): """Builds the O3D API docs and externs and the o3djs docs.""" global _java_exe _java_exe = sys.argv[1] js_list_filename = MakePath('../samples/o3djs/js_list.scons') idl_list_filename = MakePath('../plugin/idl_list.scons') js_list_basepath = os.path.dirname(js_list_filename) idl_list_basepath = os.path.dirn...
9d9f2f5d1a2c2c49b0ce17b27baaf2eca3663f36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/9d9f2f5d1a2c2c49b0ce17b27baaf2eca3663f36/build_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 7746, 326, 531, 23, 40, 1491, 3270, 471, 18885, 87, 471, 326, 320, 23, 72, 2924, 3270, 12123, 2552, 389, 6290, 67, 14880, 389, 6290, 67, 14880, 273, 2589, 18, 19485, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 7746, 326, 531, 23, 40, 1491, 3270, 471, 18885, 87, 471, 326, 320, 23, 72, 2924, 3270, 12123, 2552, 389, 6290, 67, 14880, 389, 6290, 67, 14880, 273, 2589, 18, 19485, ...
defs.update(user_defs)
self.defs.update(user_defs)
def __init__(self, main_section, filename, sane_config = 1, user_defs = {}): """Initialize Config and read from file.
08f012b3699e316af1a769f52a988c02039bdc35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14597/08f012b3699e316af1a769f52a988c02039bdc35/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2774, 67, 3464, 16, 1544, 16, 30426, 67, 1425, 273, 404, 16, 729, 67, 12537, 273, 2618, 4672, 3536, 7520, 1903, 471, 855, 628, 585, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2774, 67, 3464, 16, 1544, 16, 30426, 67, 1425, 273, 404, 16, 729, 67, 12537, 273, 2618, 4672, 3536, 7520, 1903, 471, 855, 628, 585, 18, 2, -100, -100, ...
if self._Sources == None:
if self.Sources == None:
def _GetHeaderInfo(self): RecordList = self._Table.Query(MODEL_META_DATA_HEADER, Arch=self._Arch, Platform=self._Platform) for Record in RecordList: Name = Record[0] if Name in self: self[Name] = Record[1] elif Name == 'EFI_SPECIFICATION_VERSION': if self._Specification == None: self._Specification = sdict() self._Spec...
68a18e88ea19a2ac7e66563510a6ddd120753056 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/68a18e88ea19a2ac7e66563510a6ddd120753056/WorkspaceDatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 1864, 966, 12, 2890, 4672, 5059, 682, 273, 365, 6315, 1388, 18, 1138, 12, 17391, 67, 19294, 67, 4883, 67, 7557, 16, 16959, 33, 2890, 6315, 12269, 16, 11810, 33, 2890, 6315, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 1864, 966, 12, 2890, 4672, 5059, 682, 273, 365, 6315, 1388, 18, 1138, 12, 17391, 67, 19294, 67, 4883, 67, 7557, 16, 16959, 33, 2890, 6315, 12269, 16, 11810, 33, 2890, 6315, 8...
bdb_vnum2 = cfunc('tcbdbvnum2', libtc, int, ('bdb', c_void_p, 1), ('kstr', c_char_p, 1))
bdb_vnum2 = cfunc_fast('tcbdbvnum2', libtc, int, ('bdb', c_void_p, 1), ('kstr', c_char_p, 1))
def __del__(self): if self and libtc: libtc.tcmapdel(self)
7118e16f0063ec4401b854e79c82ea20c50ca6c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4926/7118e16f0063ec4401b854e79c82ea20c50ca6c0/tc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 309, 365, 471, 2561, 5111, 30, 2561, 5111, 18, 5111, 1458, 3771, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def save_auth_tokens(token_dict, user):
def save_auth_tokens(token_dict, user=None):
def save_auth_tokens(token_dict, user): """Associates the tokens with the current user and writes to the datastore. If there us no current user, the tokens are not written and this function returns None. Returns: The key of the datastore entity containing the user's tokens, or None if there was no current user. """ i...
1d6d51f049357b5a4078588c354206cf2106748b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/1d6d51f049357b5a4078588c354206cf2106748b/appengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1944, 67, 7860, 12, 2316, 67, 1576, 16, 729, 33, 7036, 4672, 3536, 28469, 326, 2430, 598, 326, 783, 729, 471, 7262, 358, 326, 9290, 18, 225, 971, 1915, 584, 1158, 783, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 67, 1944, 67, 7860, 12, 2316, 67, 1576, 16, 729, 33, 7036, 4672, 3536, 28469, 326, 2430, 598, 326, 783, 729, 471, 7262, 358, 326, 9290, 18, 225, 971, 1915, 584, 1158, 783, 729, ...
body = pm.Body(1e100, 1e100)
body = pm.Body(pm.inf, pm.inf)
def main(): pygame.init() screen = pygame.display.set_mode((600, 600)) clock = pygame.time.Clock() running = True ### Physics stuff pm.init_pymunk() space = pm.Space() space.gravity = Vec2d(0.0, -900.0) #space.resize_static_hash() #space.resize_active_hash() ## Balls balls = [] ### Mouse mouse_body = pm.Body(1e100...
d2174a58a1ddbeb2d82870eb3f74d9a31d341174 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8535/d2174a58a1ddbeb2d82870eb3f74d9a31d341174/demo_balls_and_lines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 2395, 13957, 18, 2738, 1435, 5518, 273, 2395, 13957, 18, 5417, 18, 542, 67, 3188, 12443, 28133, 16, 14707, 3719, 7268, 273, 2395, 13957, 18, 957, 18, 14027, 1435, 3549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 2395, 13957, 18, 2738, 1435, 5518, 273, 2395, 13957, 18, 5417, 18, 542, 67, 3188, 12443, 28133, 16, 14707, 3719, 7268, 273, 2395, 13957, 18, 957, 18, 14027, 1435, 3549, ...
self._validate(self.inventory)
self._validateParameters(self.inventory)
def _configure(self): """ Set members based on inventory. """ SpatialDB._configure(self) self._validate(self.inventory) self.gravityDir = self.inventory.gravityDir self.acceleration = self.inventory.acceleration return
e563405812ca5f8e6ed4510d26a73a2913860f32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8643/e563405812ca5f8e6ed4510d26a73a2913860f32/GravityField.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 4672, 3536, 1000, 4833, 2511, 603, 13086, 18, 3536, 21874, 2290, 6315, 14895, 12, 2890, 13, 365, 6315, 5662, 2402, 12, 2890, 18, 26024, 13, 365, 18, 2752, 16438, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14895, 12, 2890, 4672, 3536, 1000, 4833, 2511, 603, 13086, 18, 3536, 21874, 2290, 6315, 14895, 12, 2890, 13, 365, 6315, 5662, 2402, 12, 2890, 18, 26024, 13, 365, 18, 2752, 16438, 16...
if k != 'ToD' and k != 'driver':
logging.debug("key = %s" % k) if k != 'ToD' and k != 'driver' and k != 'passengers':
def to_dict(self): res = {} for k in Ride._properties: ## special case ToD if k != 'ToD' and k != 'driver': res[k] = getattr(self,k) #eval('self.'+k) res['ToD'] = str(self.ToD) res['driver'] = self.driver.email() return res
57db3a24142204b68607377d1ef151cec83a015d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9768/57db3a24142204b68607377d1ef151cec83a015d/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 1576, 12, 2890, 4672, 400, 273, 2618, 364, 417, 316, 534, 831, 6315, 4738, 30, 282, 7541, 4582, 648, 2974, 40, 2907, 18, 4148, 2932, 856, 273, 738, 87, 6, 738, 417, 13, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 358, 67, 1576, 12, 2890, 4672, 400, 273, 2618, 364, 417, 316, 534, 831, 6315, 4738, 30, 282, 7541, 4582, 648, 2974, 40, 2907, 18, 4148, 2932, 856, 273, 738, 87, 6, 738, 417, 13, 309,...
Note ----
Notes -----
def amin(a, axis=None, out=None): """ Return the minimum along an axis. Parameters ---------- a : array_like Input data. axis : int, optional Axis along which to operate. By default a flattened input is used. out : ndarray, optional Alternative output array in which to place the result. Must be of the same shape and...
b51762ef676ac8b0c2d6e0a4d75da988572c2383 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/b51762ef676ac8b0c2d6e0a4d75da988572c2383/fromnumeric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 279, 1154, 12, 69, 16, 2654, 33, 7036, 16, 596, 33, 7036, 4672, 3536, 2000, 326, 5224, 7563, 392, 2654, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 2741, 501, 18, 2654, 294, 509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 279, 1154, 12, 69, 16, 2654, 33, 7036, 16, 596, 33, 7036, 4672, 3536, 2000, 326, 5224, 7563, 392, 2654, 18, 225, 7012, 12181, 279, 294, 526, 67, 5625, 2741, 501, 18, 2654, 294, 509, ...