rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
pPlayer = getPlayer(self.userid) for weapon in pPlayer.getWeaponList():
pWeapons = spe.getWeaponDict(self.userid) if not pWeapons: return for weapon in pWeapons:
def strip(self, levelStrip=False, exceptions=[]): ''' * Strips/removes all weapons from the player minus the knife and their current levels weapon.
02e919b0ad47effe0963368576895a6db2c8596f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/02e919b0ad47effe0963368576895a6db2c8596f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 12, 2890, 16, 1801, 16632, 33, 8381, 16, 4798, 33, 8526, 4672, 9163, 380, 3978, 7146, 19, 2764, 10829, 777, 732, 438, 7008, 628, 326, 7291, 12647, 326, 15516, 24723, 471, 3675, 783...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 12, 2890, 16, 1801, 16632, 33, 8381, 16, 4798, 33, 8526, 4672, 9163, 380, 3978, 7146, 19, 2764, 10829, 777, 732, 438, 7008, 628, 326, 7291, 12647, 326, 15516, 24723, 471, 3675, 783...
except e:
except Exception, e:
def query(path): if os.path.exists(path): entries = os.path.join(path, ".svn", "entries") if os.path.exists(entries): # old (svn 1.3) XML style format try: tree = ElementTree.parse(entries) for entry in tree.findall("{svn:}entry"): revision = entry.get("revision") url = entry.get("url") if revision != None and url !=...
90e0dd413da8e6795865941f4f28503db0914359 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/90e0dd413da8e6795865941f4f28503db0914359/svninfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 803, 4672, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 3222, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 3552, 31505, 3113, 315, 8219, 7923, 225, 309, 1140, 18, 803, 18, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 843, 12, 803, 4672, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 3222, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 3552, 31505, 3113, 315, 8219, 7923, 225, 309, 1140, 18, 803, 18, 180...
self.vboxlayout7.addLayout(self.hboxlayout7)
self.vboxlayout6.addLayout(self.hboxlayout7)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
date_published = models.IntegerField(blank=True)
date_published = models.CharField(maxlength=250, blank=True)
def quick_search(self, pattern): return super(MediaCollectionManager, self).get_query_set().filter( Q(title__icontains=pattern) | Q(creator__icontains=pattern) )
f681344a89dfd0dfe86e90ff4d7f8588d2af7617 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12043/f681344a89dfd0dfe86e90ff4d7f8588d2af7617/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9549, 67, 3072, 12, 2890, 16, 1936, 4672, 327, 2240, 12, 5419, 2532, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 2238, 12, 2649, 972, 335, 1580, 4167, 33, 4951, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9549, 67, 3072, 12, 2890, 16, 1936, 4672, 327, 2240, 12, 5419, 2532, 1318, 16, 365, 2934, 588, 67, 2271, 67, 542, 7675, 2188, 12, 2238, 12, 2649, 972, 335, 1580, 4167, 33, 4951, 13, ...
"""Lists teachers of this group"""
"""List teachers of this group."""
def teachersList(self): """Lists teachers of this group""" result = [(obj.title, getPath(obj), absoluteURL(self.request, obj)) for obj in getRelatedObjects(self.context, URITeacher)] result.sort() return result
b0db1e1a915235bc35c123b3d07c2c6a1f5bb36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/b0db1e1a915235bc35c123b3d07c2c6a1f5bb36c/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6489, 497, 414, 682, 12, 2890, 4672, 3536, 682, 6489, 497, 414, 434, 333, 1041, 12123, 563, 273, 306, 12, 2603, 18, 2649, 16, 4339, 12, 2603, 3631, 4967, 1785, 12, 2890, 18, 2293, 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, 6489, 497, 414, 682, 12, 2890, 4672, 3536, 682, 6489, 497, 414, 434, 333, 1041, 12123, 563, 273, 306, 12, 2603, 18, 2649, 16, 4339, 12, 2603, 3631, 4967, 1785, 12, 2890, 18, 2293, 16, ...
matrix_string = '%s %d' % (matrix_string, matrix[j])
matrix_string = '%s %f' % (matrix_string, matrix[j])
def convert(self, matrix): self.reset() self.add_command_line('MAT')
4a49dbbb4eac6fb6cf559653e539232e58dba682 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/4a49dbbb4eac6fb6cf559653e539232e58dba682/Mat2symop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 3148, 4672, 365, 18, 6208, 1435, 365, 18, 1289, 67, 3076, 67, 1369, 2668, 24571, 6134, 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, 1765, 12, 2890, 16, 3148, 4672, 365, 18, 6208, 1435, 365, 18, 1289, 67, 3076, 67, 1369, 2668, 24571, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.send(pack("!iiiii", PROT_VERSION, PKT_HELLO, 8, size[0], size[1])) version, = unpack("!i", self.recv(4)) if version > PROT_VERSION: print "Unsupported server version: %d", version sys.exit(-1) hello, len = unpack("!ii", self.recv(8)) if hello != PKT_HELLO or len != 0: print "Unexpected packet received" sys.exit(...
try: self.send(pack("!iiiii", PROT_VERSION, PKT_HELLO, 8, size[0], size[1])) version, = unpack("!i", self.recv(4)) if version > PROT_VERSION: print "Unsupported server version: %d", version sys.exit(-1) hello, len = unpack("!ii", self.recv(8)) if hello != PKT_HELLO or len != 0: print "Unexpected packet received" sys....
def run(self):
571640c83813b5ab1f297405a6ec6fab9e453edc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3598/571640c83813b5ab1f297405a6ec6fab9e453edc/xpressent-remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 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, 1086, 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, -...
self.assertEqual(err[-1], b'OK')
self.assertIn(b'OK', err)
def get_parse_out_err(p): return [b.splitlines() for b in p.communicate()]
f10c400b91e44c5c744f4ddc05d90933cba3a56b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/f10c400b91e44c5c744f4ddc05d90933cba3a56b/test_runner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2670, 67, 659, 67, 370, 12, 84, 4672, 327, 306, 70, 18, 4939, 3548, 1435, 364, 324, 316, 293, 18, 5702, 318, 2659, 1435, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2670, 67, 659, 67, 370, 12, 84, 4672, 327, 306, 70, 18, 4939, 3548, 1435, 364, 324, 316, 293, 18, 5702, 318, 2659, 1435, 65, 2, -100, -100, -100, -100, -100, -100, -100, -10...
result = self.load(prepare)
result = self.load(prepare, ref=False)
def freeWait(self): """downloads html with the important informations """ self.html[1] = self.load(self.pyfile.url) self.no_download = True
c175b751e48f0b533cc11f99aa0c636c70b73bc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/c175b751e48f0b533cc11f99aa0c636c70b73bc8/RapidshareCom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 5480, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 365, 18, 2620, 63, 21, 65, 273, 365, 18, 945, 12, 2890, 18, 2074, 768, 18, 718, 13, 365, 18, 2135, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 5480, 12, 2890, 4672, 3536, 7813, 87, 1729, 598, 326, 10802, 26978, 3536, 365, 18, 2620, 63, 21, 65, 273, 365, 18, 945, 12, 2890, 18, 2074, 768, 18, 718, 13, 365, 18, 2135, 67,...
self.append(self.read(len))
self.append(str(self.read(len), "latin-1"))
def load_short_binstring(self): len = ord(self.read(1)) self.append(self.read(len))
32c5b86893d8cb9f5c422a7a2945f4f24f131503 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/32c5b86893d8cb9f5c422a7a2945f4f24f131503/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6620, 67, 4757, 1080, 12, 2890, 4672, 562, 273, 4642, 12, 2890, 18, 896, 12, 21, 3719, 365, 18, 6923, 12, 2890, 18, 896, 12, 1897, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 6620, 67, 4757, 1080, 12, 2890, 4672, 562, 273, 4642, 12, 2890, 18, 896, 12, 21, 3719, 365, 18, 6923, 12, 2890, 18, 896, 12, 1897, 3719, 2, -100, -100, -100, -100, -100, -1...
df = lambda file, linkrel: self.doFile[0](file, linkrel, d['ext'],
df = lambda file, linkrel: self.doFile[0](file, linkrel, ext,
def generate_html(self, d): n = htmlDefault.copy() n.update(d) d = n if d['ext'] == "None": ext = "" else: ext = d['ext'] try: fp = open(d['template']) templ = microdom.parse(fp) except IOError, e: raise process.NoProcessorError(e.filename+": "+e.strerror) except sux.ParseError, e: raise process.NoProcessorError(str(e)...
5d5a28ac3fa3f3ca37cc0cce9e03b64e59aec95a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5d5a28ac3fa3f3ca37cc0cce9e03b64e59aec95a/default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2620, 12, 2890, 16, 302, 4672, 290, 273, 1729, 1868, 18, 3530, 1435, 290, 18, 2725, 12, 72, 13, 302, 273, 290, 309, 302, 3292, 408, 3546, 422, 315, 7036, 6877, 1110, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2620, 12, 2890, 16, 302, 4672, 290, 273, 1729, 1868, 18, 3530, 1435, 290, 18, 2725, 12, 72, 13, 302, 273, 290, 309, 302, 3292, 408, 3546, 422, 315, 7036, 6877, 1110, 273, 1...
entry.setProp ('name', FieldName)
entry.setProp('name', FieldName)
def makeTab (self, xmlObj, crud): kind_name= xmlObj.prop ('name') KindName= MakeFieldName (kind_name) kind = self.xot.tables[kind_name]
615d4783694081a61062f380e45f479cfeadf918 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2219/615d4783694081a61062f380e45f479cfeadf918/CimarronXMLui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5661, 261, 2890, 16, 2025, 2675, 16, 16031, 4672, 3846, 67, 529, 33, 2025, 2675, 18, 5986, 7707, 529, 6134, 5851, 461, 33, 4344, 7287, 261, 9224, 67, 529, 13, 3846, 273, 365, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 5661, 261, 2890, 16, 2025, 2675, 16, 16031, 4672, 3846, 67, 529, 33, 2025, 2675, 18, 5986, 7707, 529, 6134, 5851, 461, 33, 4344, 7287, 261, 9224, 67, 529, 13, 3846, 273, 365, 18,...
def alias(old,new): template.macros[old] = template.macros.get( new, standard_wikipage.macros[new]) alias("head","head") alias("linkpanel","linkpanel") alias("navpanel","navpanel") alias("quickaccesskeys","accesskeys") alias("quicklinks","wikilinks") alias("displaymodes","displaymodes") alias("editlinks","pagelinks") a...
def alias(old,new): template.macros[old] = template.macros.get( new, standard_wikipage.macros[new])
a1649159b45e464fc2ff70925f37bfcf3e70f495 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/a1649159b45e464fc2ff70925f37bfcf3e70f495/UI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2308, 12, 1673, 16, 2704, 4672, 1542, 18, 5821, 6973, 63, 1673, 65, 273, 1542, 18, 5821, 6973, 18, 588, 12, 394, 16, 4529, 67, 11999, 625, 410, 18, 5821, 6973, 63, 2704, 5717, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 2308, 12, 1673, 16, 2704, 4672, 1542, 18, 5821, 6973, 63, 1673, 65, 273, 1542, 18, 5821, 6973, 18, 588, 12, 394, 16, 4529, 67, 11999, 625, 410, 18, 5821, 6973, 63, 2704, 5717, 2, -10...
start = context.get_form_value('start', type=Integer, default=0)
start = context.get_form_value('batchstart', type=Integer, default=0)
def site_search(self, context): root = context.root
900bac0f78b12961d9ce547c1323046c46bd1b20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/900bac0f78b12961d9ce547c1323046c46bd1b20/website.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2834, 67, 3072, 12, 2890, 16, 819, 4672, 1365, 273, 819, 18, 3085, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2834, 67, 3072, 12, 2890, 16, 819, 4672, 1365, 273, 819, 18, 3085, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def add_unique_to_list(self,username,list):
def store_list(self,list,listname): """Store list in DB""" if len(list)>0: self.insert_user_data(nick="%s (Target)" % self.client_id,data_type=listname,data=",".join(list),sessionid=-99) def add_unique_to_list(self,data,list):
def add_unique_to_list(self,username,list): #Add a unique entry to the list specified try: if (list.index(username)): #Already in the list pass except ValueError: #Don't have this one, so insert it list.append(username) #logging.log(logging.VERBOSE_DEBUG, "Appending to list:%s" % (list))
80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784/MSN.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 1098, 12, 2890, 16, 1098, 16, 1098, 529, 4672, 3536, 2257, 666, 316, 2383, 8395, 309, 562, 12, 1098, 13, 34, 20, 30, 225, 365, 18, 6387, 67, 1355, 67, 892, 12, 17091, 11613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 67, 1098, 12, 2890, 16, 1098, 16, 1098, 529, 4672, 3536, 2257, 666, 316, 2383, 8395, 309, 562, 12, 1098, 13, 34, 20, 30, 225, 365, 18, 6387, 67, 1355, 67, 892, 12, 17091, 11613...
cmpstr1 = cmpstr1[i1:] cmpstr2 = cmpstr2[i2:] cn1 = len( cmpstr1 ) cn2 = len( cmpstr2 )
def __compare_node( self, node1, node2, callback ): """Compare two nodes."""
93b2dc695fe501f9e0252ae41d6dd540e118d8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/93b2dc695fe501f9e0252ae41d6dd540e118d8cd/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 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, 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, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if assume and self._op == operator.eq: return 'equal(%s, %s)'%(l, r)
if assume: if self._op == operator.eq: return 'equal(%s, %s)'%(l, r) elif self._op == operator.ne: return 'notequal(%s, %s)'%(l, r)
def _maxima_init_(self, maxima=maxima, assume=False): """ Return string representation for this symbolic equation in a form suitable for evaluation in Maxima.
1e04537264f2e486d86d5fc67f910cc70a5fd4c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1e04537264f2e486d86d5fc67f910cc70a5fd4c7/equations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1896, 13888, 67, 2738, 67, 12, 2890, 16, 943, 13888, 33, 1896, 13888, 16, 6750, 33, 8381, 4672, 3536, 2000, 533, 4335, 364, 333, 16754, 15778, 316, 279, 646, 10631, 364, 9873, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1896, 13888, 67, 2738, 67, 12, 2890, 16, 943, 13888, 33, 1896, 13888, 16, 6750, 33, 8381, 4672, 3536, 2000, 533, 4335, 364, 333, 16754, 15778, 316, 279, 646, 10631, 364, 9873, 316, ...
cache = self.PhotoSizeCache()
cache = PhotoSizeCache()
def remove_set(self): cache = self.PhotoSizeCache() for photosize in cache.sizes.values(): self.remove_size(photosize, False) try: os.removedirs(self.cache_path()) except: pass
97d8ab46617aec21cd957429b4350e0ccc04fece /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10711/97d8ab46617aec21cd957429b4350e0ccc04fece/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 542, 12, 2890, 4672, 1247, 273, 26867, 1225, 1649, 1435, 364, 18185, 554, 316, 1247, 18, 11914, 18, 2372, 13332, 365, 18, 4479, 67, 1467, 12, 29121, 554, 16, 1083, 13, 775, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 542, 12, 2890, 4672, 1247, 273, 26867, 1225, 1649, 1435, 364, 18185, 554, 316, 1247, 18, 11914, 18, 2372, 13332, 365, 18, 4479, 67, 1467, 12, 29121, 554, 16, 1083, 13, 775, 3...
time_tag_list.append("e"+str(config.end))
if config.bin: head_str = "eb" else: head_str = "e" time_tag_list.append(head_str+str(int(config.end)))
def run(config): """ This method is where the processing is done. @param config: Object containing the driver configuration information. @type config: L{hlr_utils.Configure} """ if config.data is None: raise RuntimeError("Need to pass a data filename to the driver "\ +"script.") so_axis = "time_of_flight" if config....
85aa363ec74082603802f1f344f626920c2bd4e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/85aa363ec74082603802f1f344f626920c2bd4e3/xy_sum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1425, 4672, 3536, 1220, 707, 353, 1625, 326, 4929, 353, 2731, 18, 225, 632, 891, 642, 30, 1033, 4191, 326, 3419, 1664, 1779, 18, 632, 723, 642, 30, 511, 95, 76, 10826, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1425, 4672, 3536, 1220, 707, 353, 1625, 326, 4929, 353, 2731, 18, 225, 632, 891, 642, 30, 1033, 4191, 326, 3419, 1664, 1779, 18, 632, 723, 642, 30, 511, 95, 76, 10826, 67, ...
self.log("found " + unicode(self.html_preprocess_sections) +
self.log("marked " + unicode(self.html_preprocess_sections) +
def chapter_head(self, match): chap = match.group('chap') title = match.group('title') if not title: self.html_preprocess_sections = self.html_preprocess_sections + 1 self.log("found " + unicode(self.html_preprocess_sections) + " chapters. - " + unicode(chap)) return '<h2>'+chap+'</h2>\n' else: self.html_preprocess_sec...
7b35480ce2acf9a947193f504fe26ac78fb8ca94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/7b35480ce2acf9a947193f504fe26ac78fb8ca94/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23580, 67, 1978, 12, 2890, 16, 845, 4672, 462, 438, 273, 845, 18, 1655, 2668, 343, 438, 6134, 2077, 273, 845, 18, 1655, 2668, 2649, 6134, 309, 486, 2077, 30, 365, 18, 2620, 67, 27545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23580, 67, 1978, 12, 2890, 16, 845, 4672, 462, 438, 273, 845, 18, 1655, 2668, 343, 438, 6134, 2077, 273, 845, 18, 1655, 2668, 2649, 6134, 309, 486, 2077, 30, 365, 18, 2620, 67, 27545, ...
"""This function Processes email and create record for given OpenERP model
"""This function Processes email and create record for given OpenERP model
def process_email(self, cr, uid, model, message, attach=True, context=None): """This function Processes email and create record for given OpenERP model @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param model: OpenObject Mo...
ff0e181c263e871d5c1c3ae10c06c6a7a3f7da7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ff0e181c263e871d5c1c3ae10c06c6a7a3f7da7b/mail_gateway.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3652, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 883, 16, 3306, 33, 5510, 16, 819, 33, 7036, 4672, 3536, 2503, 445, 4389, 281, 2699, 471, 752, 1409, 364, 864, 3502, 654, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3652, 12, 2890, 16, 4422, 16, 4555, 16, 938, 16, 883, 16, 3306, 33, 5510, 16, 819, 33, 7036, 4672, 3536, 2503, 445, 4389, 281, 2699, 471, 752, 1409, 364, 864, 3502, 654, 52...
checked=form_get(request, 'case'), id='case'),
checked=form_get(request, 'case', escaped=True), id='case'),
def advanced_ui(macro): """ Returns the code for the advanced search user interface @param macro: current macro instance """ _ = macro._ f = macro.formatter request = macro.request disabledIfMoinSearch = not request.cfg.xapian_search and \ ' disabled="disabled"' or '' search_boxes = ''.join([ f.table_row(1), f.table...
64bbbaa35e708345ab13c5f9e67c9054fad53cc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/64bbbaa35e708345ab13c5f9e67c9054fad53cc7/AdvancedSearch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16111, 67, 4881, 12, 26448, 4672, 3536, 2860, 326, 981, 364, 326, 16111, 1623, 729, 1560, 225, 632, 891, 11522, 30, 783, 11522, 791, 3536, 389, 273, 11522, 6315, 284, 273, 11522, 18, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16111, 67, 4881, 12, 26448, 4672, 3536, 2860, 326, 981, 364, 326, 16111, 1623, 729, 1560, 225, 632, 891, 11522, 30, 783, 11522, 791, 3536, 389, 273, 11522, 6315, 284, 273, 11522, 18, 123...
namedColors[name] = value return namedColors
__namedColors[name] = value return __namedColors
def getAllNamedColors(): #returns a dictionary of all the named ones in the module # uses a singleton for efficiency import colors namedColors = {} for (name, value) in colors.__dict__.items(): if isinstance(value, Color): namedColors[name] = value return namedColors
0b27b1794376ae69f5568d27adffe3d64cca6730 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0b27b1794376ae69f5568d27adffe3d64cca6730/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 7604, 12570, 13332, 468, 6154, 279, 3880, 434, 777, 326, 4141, 5945, 316, 326, 1605, 468, 4692, 279, 6396, 364, 30325, 1930, 5740, 4141, 12570, 273, 2618, 364, 261, 529, 16, 460, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5514, 7604, 12570, 13332, 468, 6154, 279, 3880, 434, 777, 326, 4141, 5945, 316, 326, 1605, 468, 4692, 279, 6396, 364, 30325, 1930, 5740, 4141, 12570, 273, 2618, 364, 261, 529, 16, 460, 1...
def __init__(self, default_setup=True):
def __init__(self, default_setup = True): """ Initializes the Strings enumeration helper class @param default_setup: Set to True to use default setup (C strings, min len 5, ...) """ self.size = 0
def __init__(self, default_setup=True): if default_setup: self.setup() self._si = idaapi.string_info_t() self.size = 0
15a72289f7818b9af9e54703db7915ed66e0e427 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4773/15a72289f7818b9af9e54703db7915ed66e0e427/idautils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 805, 67, 8401, 273, 1053, 4672, 3536, 10188, 3128, 326, 8139, 16836, 4222, 667, 225, 632, 891, 805, 67, 8401, 30, 1000, 358, 1053, 358, 999, 805, 3875, 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, 805, 67, 8401, 273, 1053, 4672, 3536, 10188, 3128, 326, 8139, 16836, 4222, 667, 225, 632, 891, 805, 67, 8401, 30, 1000, 358, 1053, 358, 999, 805, 3875, 2...
ans = ans._fix(context=context)
ans = ans._fix(context)
def __add__(self, other, context=None): """Returns self + other.
dab988dd23e6328dadfe8408cd96abf4b017380d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dab988dd23e6328dadfe8408cd96abf4b017380d/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 972, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 1356, 365, 397, 1308, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
np.long('0x' + 'f'*i_width,16)
long('0x' + 'f'*i_width,16)
def check_intp(self,level=rlevel): """Ticket #99""" i_width = np.int_(0).nbytes*2 - 1 np.long('0x' + 'f'*i_width,16) self.failUnlessRaises(OverflowError,np.intp,'0x' + 'f'*(i_width+1),16) self.failUnlessRaises(ValueError,np.intp,'0x1',32) assert_equal(255,np.long('0xFF',16)) assert_equal(1024,np.long(1024))
4f9812e079bf6331f99b6ba2b18836ad7b707636 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/4f9812e079bf6331f99b6ba2b18836ad7b707636/test_regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 474, 84, 12, 2890, 16, 2815, 33, 86, 2815, 4672, 3536, 13614, 468, 2733, 8395, 277, 67, 2819, 273, 1130, 18, 474, 67, 12, 20, 2934, 82, 3890, 14, 22, 300, 404, 1525, 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, 866, 67, 474, 84, 12, 2890, 16, 2815, 33, 86, 2815, 4672, 3536, 13614, 468, 2733, 8395, 277, 67, 2819, 273, 1130, 18, 474, 67, 12, 20, 2934, 82, 3890, 14, 22, 300, 404, 1525, 2668, ...
state = stylePyStart
if ch in '\r\n': state = STYLE_INTERACTIVE_EOL else: state = stylePyStart
def ColorizeInteractiveCode(self, cdoc, styleStart, stylePyStart): lengthDoc = len(cdoc) if lengthDoc == 0: return state = styleStart chNext = cdoc[0] startSeg = 0 i = 0 lastState=state # debug only while i < lengthDoc: ch = chNext chNext = cdoc[i+1:i+2]
7b02afc37bb0a2adec16623ebe1fda3f571d8c11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/7b02afc37bb0a2adec16623ebe1fda3f571d8c11/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5563, 554, 26442, 1085, 12, 2890, 16, 276, 2434, 16, 2154, 1685, 16, 2154, 9413, 1685, 4672, 769, 1759, 273, 562, 12, 71, 2434, 13, 309, 769, 1759, 422, 374, 30, 327, 919, 273, 2154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5563, 554, 26442, 1085, 12, 2890, 16, 276, 2434, 16, 2154, 1685, 16, 2154, 9413, 1685, 4672, 769, 1759, 273, 562, 12, 71, 2434, 13, 309, 769, 1759, 422, 374, 30, 327, 919, 273, 2154, ...
using Tachyon ray tracer.
using the Tachyon ray tracer.
def tachyon_repr(self, render_params): """ Returns representation of the point suitable for plotting using Tachyon ray tracer.
ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 497, 93, 265, 67, 12715, 12, 2890, 16, 1743, 67, 2010, 4672, 3536, 2860, 4335, 434, 326, 1634, 10631, 364, 20947, 1450, 399, 497, 93, 265, 14961, 13109, 18, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 497, 93, 265, 67, 12715, 12, 2890, 16, 1743, 67, 2010, 4672, 3536, 2860, 4335, 434, 326, 1634, 10631, 364, 20947, 1450, 399, 497, 93, 265, 14961, 13109, 18, 2, -100, -100, -100, -...
WorkflowExists,firstrun=checkWorkflow(workflow)
WorkflowExists,firstrun,queuemode=checkWorkflow(workflow) if str(queuemode).lower() in ("true", "yes"): queuemode = True ms.publish("JobQueue:StartDebug","none") ms.commit() else: queuemode = False
def checkWorkflow(workflow): """ Check if the provided workflow already exists in WorkflowCache area """ WorkflowExists=False workflowBase = os.path.basename(workflow) RequestDir,firstrun = getRequestInjectorConfig() workflowCache="%s/WorkflowCache"%RequestDir if not os.path.exists(workflowCache): msg = "Error: there ...
52a91030b4fac266ed21b14674fd0377d5bef14a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/52a91030b4fac266ed21b14674fd0377d5bef14a/InjectProduction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 8484, 12, 13815, 4672, 3536, 2073, 309, 326, 2112, 6095, 1818, 1704, 316, 11363, 1649, 5091, 3536, 11363, 4002, 33, 8381, 225, 6095, 2171, 273, 1140, 18, 803, 18, 13909, 12, 13815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8484, 12, 13815, 4672, 3536, 2073, 309, 326, 2112, 6095, 1818, 1704, 316, 11363, 1649, 5091, 3536, 11363, 4002, 33, 8381, 225, 6095, 2171, 273, 1140, 18, 803, 18, 13909, 12, 13815, ...
class EnumArgument(Argument):
class EnumBaseArgument(Argument): """Base calss for EnumArgument, IntArgument and BoolArgument""" def __init__(self, name, gl_type, type, gl_error): Argument.__init__(self, name, gl_type) self.local_type = type self.gl_error = gl_error name = type[len(gl_type):] self.enum_info = _ENUM_LISTS[name] def WriteValidation...
def GetImmediateVersion(self): """Gets the immediate version of this argument.""" return self
8a837bb40249dfd9f0a2736abdab4f64592c99db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8a837bb40249dfd9f0a2736abdab4f64592c99db/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 22651, 1444, 12, 2890, 4672, 3536, 3002, 326, 14483, 1177, 434, 333, 1237, 12123, 327, 365, 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...
[ 1, 1, 1, 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, 968, 22651, 1444, 12, 2890, 4672, 3536, 3002, 326, 14483, 1177, 434, 333, 1237, 12123, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
shutil.move(RPM_SPEC, dest_spec)
shutil.copyfile(RPM_SPEC, dest_spec)
def run_rpm(): shutil.rmtree(PACKAGE_NAME) shutil.move(TARBALL, os.path.join(RPMBUILD_HOME, "SOURCES")) dest_spec = os.path.join(RPMBUILD_HOME, "SPECS", RPM_SPEC) shutil.move(RPM_SPEC, dest_spec) cmd = "rpmbuild -ba " + dest_spec safe_exec(cmd)
f92405ae22c50a96730129b94e2496921b919d78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/310/f92405ae22c50a96730129b94e2496921b919d78/make_rpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 86, 7755, 13332, 11060, 18, 86, 17371, 12, 19077, 67, 1985, 13, 11060, 18, 8501, 12, 56, 20926, 4685, 16, 1140, 18, 803, 18, 5701, 12, 54, 12728, 20215, 67, 14209, 16, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 86, 7755, 13332, 11060, 18, 86, 17371, 12, 19077, 67, 1985, 13, 11060, 18, 8501, 12, 56, 20926, 4685, 16, 1140, 18, 803, 18, 5701, 12, 54, 12728, 20215, 67, 14209, 16, 315, ...
The name of a set-up function. This is called before running the
A set-up function. This is called before running the
def DocFileSuite(*paths, **kw): """A unittest suite for one or more doctest files. The path to each doctest file is given as a string; the interpretation of that string depends on the keyword argument "module_relative". A number of options may be provided as keyword arguments: module_relative If "module_relative" is...
edabf355f3608af9354ab9cea364a59185e2fcb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/edabf355f3608af9354ab9cea364a59185e2fcb3/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 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, 3521, 812, 13587, 30857, 4481, 16, 2826, 9987, 4672, 3536, 37, 2836, 3813, 11371, 364, 1245, 578, 1898, 31263, 395, 1390, 18, 225, 1021, 589, 358, 1517, 31263, 395, 585, 353, 864, 487, 2...
if endIndex is not None and spokenIndex==endIndex: keepUpdating=keepReading=False while speech.isPaused:
while speech.isPaused and globalVars.keyCounter==startKeyCount:
def readTextHelper_generator(info,cursor): cursorIndexMap={} startKeyCount=globalVars.keyCounter cursorIndexMap.clear() reader=info.copy() if not reader.isCollapsed: readToLimit=True reader.collapse() else: readToLimit=False keepReading=True keepUpdating=True oldSpokenIndex=None endIndex=None while keepUpdating: if kee...
7982a4510511c7f3430bbdfab904aaf8b2f99dbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/7982a4510511c7f3430bbdfab904aaf8b2f99dbf/sayAllHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1528, 2276, 67, 8812, 12, 1376, 16, 9216, 4672, 3347, 1016, 863, 12938, 24822, 1380, 33, 6347, 5555, 18, 856, 4789, 3347, 1016, 863, 18, 8507, 1435, 2949, 33, 1376, 18, 3530, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1528, 2276, 67, 8812, 12, 1376, 16, 9216, 4672, 3347, 1016, 863, 12938, 24822, 1380, 33, 6347, 5555, 18, 856, 4789, 3347, 1016, 863, 18, 8507, 1435, 2949, 33, 1376, 18, 3530, 1435, ...
message = msg['Subject']
subject = msg['Subject']
def extract(ui, fileobj): '''extract patch from data read from fileobj. patch can be a normal patch or contained in an email message. return tuple (filename, message, user, date, node, p1, p2). Any item in the returned tuple can be None. If filename is None, fileobj did not contain a patch. Caller must unlink filenam...
a4b03186cd1738b0443cf4715ee3dc0a89ba0888 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/a4b03186cd1738b0443cf4715ee3dc0a89ba0888/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 4881, 16, 17041, 4672, 9163, 8004, 4729, 628, 501, 855, 628, 17041, 18, 225, 4729, 848, 506, 279, 2212, 4729, 578, 7542, 316, 392, 2699, 883, 18, 225, 327, 3193, 261, 3459, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2608, 12, 4881, 16, 17041, 4672, 9163, 8004, 4729, 628, 501, 855, 628, 17041, 18, 225, 4729, 848, 506, 279, 2212, 4729, 578, 7542, 316, 392, 2699, 883, 18, 225, 327, 3193, 261, 3459, 1...
text = u''
text, alt_text = u'', u''
def get_text(self, tag, limit=None): css = self.tag_css(tag)[0] if (css.has_key('display') and css['display'].lower() == 'none') or \ (css.has_key('visibility') and css['visibility'].lower() == 'hidden'): return '' text = u'' for c in tag.contents: if limit != None and len(text) > limit: break if isinstance(c, HTMLConv...
ab0c2accef65b9333482c42ad48b19e202c86c19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ab0c2accef65b9333482c42ad48b19e202c86c19/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 955, 12, 2890, 16, 1047, 16, 1800, 33, 7036, 4672, 3747, 273, 365, 18, 2692, 67, 5212, 12, 2692, 25146, 20, 65, 309, 261, 5212, 18, 5332, 67, 856, 2668, 5417, 6134, 471, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 955, 12, 2890, 16, 1047, 16, 1800, 33, 7036, 4672, 3747, 273, 365, 18, 2692, 67, 5212, 12, 2692, 25146, 20, 65, 309, 261, 5212, 18, 5332, 67, 856, 2668, 5417, 6134, 471, 374...
month_name = _localized_name('%B', 12) month_abbr = _localized_name('%b', 12)
month_name = _localized_name('%B', 13) month_abbr = _localized_name('%b', 13)
def __len__(self): return self.len
1b9c177c5de0cf0d2d506748209dc840b0eb48d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1b9c177c5de0cf0d2d506748209dc840b0eb48d9/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 365, 18, 1897, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1897, 972, 12, 2890, 4672, 327, 365, 18, 1897, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._calc()
def _splitRows(self,availHeight): self._calc() h = 0 n = 0 lim = len(self._rowHeights) while n<lim: hn = h + self._rowHeights[n] if hn>availHeight: break h = hn n = n + 1
ae66273e476a2a8551ddca91699826510f3fe486 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/ae66273e476a2a8551ddca91699826510f3fe486/tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 4300, 12, 2890, 16, 842, 671, 2686, 4672, 366, 273, 374, 290, 273, 374, 20167, 273, 562, 12, 2890, 6315, 492, 2686, 87, 13, 1323, 290, 32, 7091, 30, 366, 82, 273, 366, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4939, 4300, 12, 2890, 16, 842, 671, 2686, 4672, 366, 273, 374, 290, 273, 374, 20167, 273, 562, 12, 2890, 6315, 492, 2686, 87, 13, 1323, 290, 32, 7091, 30, 366, 82, 273, 366, 397...
for i, t in enumerate(tokens):
for t in tokens:
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, 268, 316, 2430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 268, 316, 2430...
if obj_id >= 0:
if obj_id >= 0 and obj_id is not False:
def sig_attach(self, widget=None): obj_id = self.id_get() if obj_id >= 0: win = Attachment(self.model, obj_id, self.window) win.run() else: self.message_info(_('No record selected!')) self.update_attachment_count(reload=True) return True
0296c68790d547568a5a487283bd03a4905fd640 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/0296c68790d547568a5a487283bd03a4905fd640/form.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 67, 7331, 12, 2890, 16, 3604, 33, 7036, 4672, 1081, 67, 350, 273, 365, 18, 350, 67, 588, 1435, 309, 1081, 67, 350, 1545, 374, 471, 1081, 67, 350, 353, 486, 1083, 30, 5657, 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, 3553, 67, 7331, 12, 2890, 16, 3604, 33, 7036, 4672, 1081, 67, 350, 273, 365, 18, 350, 67, 588, 1435, 309, 1081, 67, 350, 1545, 374, 471, 1081, 67, 350, 353, 486, 1083, 30, 5657, 273,...
@type iindex: int
@type index: int
def top(self, index=1): """ Get the I{item} at the top of the stack where I{item} is a tuple as (I{type},I{resolved}). @param index: The index (0|1) into the tuple. {0=type, 1=resolved}. @type iindex: int @return: The top I{item}, else None. @rtype: I{type} """ if len(self.stack): return self.stack[-1][index] else: re...
19aaeff9b9f40076ef897cdf18c92067cff89661 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5377/19aaeff9b9f40076ef897cdf18c92067cff89661/resolver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1760, 12, 2890, 16, 770, 33, 21, 4672, 3536, 968, 326, 467, 95, 1726, 97, 622, 326, 1760, 434, 326, 2110, 1625, 467, 95, 1726, 97, 353, 279, 3193, 487, 261, 45, 95, 723, 5779, 45, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1760, 12, 2890, 16, 770, 33, 21, 4672, 3536, 968, 326, 467, 95, 1726, 97, 622, 326, 1760, 434, 326, 2110, 1625, 467, 95, 1726, 97, 353, 279, 3193, 487, 261, 45, 95, 723, 5779, 45, ...
return S_ERROR(res['Value']['Failed'][url]) else: return S_OK(res['Value']['Successful'][url]) except AttributeError,errMessage:
return S_ERROR( res['Value']['Failed'][url] ) else: return S_OK( res['Value']['Successful'][url] ) except AttributeError, errMessage:
def __executeOperation(self,url,method): """ Executes the requested functionality with the supplied url """ execString = "res = self.%s(url)" % method try: exec(execString) if not res['OK']: return S_ERROR(res['Message']) elif not res['Value']['Successful'].has_key(url): if not res['Value']['Failed'].has_key(url): if r...
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8837, 2988, 12, 2890, 16, 718, 16, 2039, 4672, 3536, 3889, 993, 326, 3764, 14176, 598, 326, 4580, 880, 3536, 1196, 780, 273, 315, 455, 273, 365, 7866, 87, 12, 718, 2225, 738, 707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 2988, 12, 2890, 16, 718, 16, 2039, 4672, 3536, 3889, 993, 326, 3764, 14176, 598, 326, 4580, 880, 3536, 1196, 780, 273, 315, 455, 273, 365, 7866, 87, 12, 718, 2225, 738, 707...
return None return ctime
return False return True
def path_valid(self, path, view): """Returns if a path is safe still valid (i.e. deemed collision free)""" if not (path[0] == self.position and path[-1] == self.goal): return None #must go between current position and goal ctime = 0 freeprob = 1.0 a1 = self.angle p1 = self.position
0484f9f3f562dab318bf38b4cbce4815517c3c34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9407/0484f9f3f562dab318bf38b4cbce4815517c3c34/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 589, 67, 877, 12, 2890, 16, 589, 16, 1476, 4672, 3536, 1356, 309, 279, 589, 353, 4183, 4859, 923, 261, 77, 18, 73, 18, 443, 351, 329, 17740, 4843, 15574, 309, 486, 261, 803, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 589, 67, 877, 12, 2890, 16, 589, 16, 1476, 4672, 3536, 1356, 309, 279, 589, 353, 4183, 4859, 923, 261, 77, 18, 73, 18, 443, 351, 329, 17740, 4843, 15574, 309, 486, 261, 803, 63, 20, ...
write_message(" -Insert the format %s in bibfmt : DONE" % format , verbose=2)
write_message(" -Insert the format %s in bibfmt : DONE" % format_name , verbose=2)
def update_bibfmt_format(id_bibrec, marc, format): """Update the format in the table bibfmt""" # We check if the format is already in bibFmt found = find_record_format(id_bibrec, format) if int(found[0]) == 1: # Update the format # get the current time now = convert_datestruct_to_datetext(time.localtime()) # compress...
c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 70, 495, 8666, 67, 2139, 12, 350, 67, 70, 495, 3927, 16, 312, 11828, 16, 740, 4672, 3536, 1891, 326, 740, 316, 326, 1014, 25581, 8666, 8395, 225, 468, 1660, 866, 309, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 67, 70, 495, 8666, 67, 2139, 12, 350, 67, 70, 495, 3927, 16, 312, 11828, 16, 740, 4672, 3536, 1891, 326, 740, 316, 326, 1014, 25581, 8666, 8395, 225, 468, 1660, 866, 309, 326, ...
file.Write(" SetGLError(%s);\n" % self.gl_error)
file.Write(" SetGLError(%s, \"gl%s: %s %s\");\n" % (self.gl_error, func.original_name, self.name, self.gl_error))
def WriteValidationCode(self, file): file.Write(" if (!Validate%s(%s)) {\n" % (self.local_type, self.name)) file.Write(" SetGLError(%s);\n" % self.gl_error) file.Write(" return error::kNoError;\n") file.Write(" }\n")
bda273cb982a1cc60958aa574bc939271a82f552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/bda273cb982a1cc60958aa574bc939271a82f552/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 585, 18, 3067, 2932, 225, 309, 16051, 4270, 9, 87, 9275, 87, 3719, 18890, 82, 6, 738, 261, 2890, 18, 3729, 67, 723, 16, 365, 18, 529, 3719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 585, 18, 3067, 2932, 225, 309, 16051, 4270, 9, 87, 9275, 87, 3719, 18890, 82, 6, 738, 261, 2890, 18, 3729, 67, 723, 16, 365, 18, 529, 3719,...
firstafter = s2.find(marker) + len(marker)
if firstafter < 0: firstafter = len(s2) else: firstafter += len(marker)
def replaceCategoryLinks(oldtext, new, site = None, addOnly = False): """Replace the category links given in the wikitext given in oldtext by the new links given in new. 'new' should be a list of Category objects. If addOnly is True, the old category won't be deleted and the category(s) given will be added (and so th...
bb52a10e52ddc9b144266980d95741281073bbf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/bb52a10e52ddc9b144266980d95741281073bbf6/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 16, 527, 3386, 273, 1083, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 4457, 7100, 12, 1673, 955, 16, 394, 16, 2834, 273, 599, 16, 527, 3386, 273, 1083, 4672, 3536, 5729, 326, 3150, 4716, 864, 316, 326, 341, 1766, 305, 408, 864, 316, 1592, 955, 635,...
lines.append('%s "%s"' % (commandparams_info[name][2], argument[1:-1].replace('"', '\"')))
lines.append('%s "%s"' % (commandparams_info[name][2], argument[1:-1].replace('"', '\\"')))
def convert_commandparams(document): """ Convert \begin_inset LatexCommand \cmdname[opt1][opt2]{arg} \end_inset to \begin_inset LatexCommand cmdname name1 "opt1" name2 "opt2" name3 "arg" \end_inset name1, name2 and name3 can be different for each command.
d56de86b6af0eea59990991b75b6d0e746ee684d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/d56de86b6af0eea59990991b75b6d0e746ee684d/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542,...
draw.line(pointlist, fill='blue', width=2) trim = int(256/2) image = image.crop( tuple( [trim, trim] + map( lambda x: x-trim, image.size) ) )
draw.line(pointlist, fill='black', width=1) if osize*osize < self.tiles['x']['count']*self.tiles['y']['count']: path = [ Tile.getPixelForCoord( self.pointsbounds[0], self.tilesbounds, imagesize), Tile.getPixelForCoord( self.pointsbounds[1], self.tilesbounds, imagesize) ] imagebox = [ [0,0], list(imagesize) ] if ...
def drawTrack(self, filename):
2b0ae4793cca6985c2bb04f17293a2fac4b6ab13 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3985/2b0ae4793cca6985c2bb04f17293a2fac4b6ab13/gpx2png.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 4402, 12, 2890, 16, 1544, 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, ...
[ 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, 3724, 4402, 12, 2890, 16, 1544, 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, -10...
line()
line("map-separator")
def compileNode(node, enableDebug=False): global indent global pretty if node.getChild("commentsBefore", False) != None: line() for comment in node.getChild("commentsBefore").children: # Additional new lines before big comment if comment.get("detail", False) == "multi": line() pretty += comment.get("text") # New ...
9899d5c45563dd4f9057d173402244e0cf855c51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9899d5c45563dd4f9057d173402244e0cf855c51/prettyprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 1458, 17, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4074, 907, 12, 2159, 16, 4237, 2829, 33, 8381, 4672, 225, 2552, 3504, 2552, 7517, 282, 309, 756, 18, 588, 1763, 2932, 9231, 4649, 3113, 1083, 13, 480, 599, 30, 980, 2932, 1458, 17, 112...
type = lines[i][33:-3]
type = re.search(r"listof(\w*)", lines[i]).group(1)[:-1]
def change_listof(lines): i = 0 while 1: i = find_token(lines, "\\begin_inset LatexCommand \\listof", i) if i == -1: break type = lines[i][33:-3] lines[i] = "\\begin_inset FloatList "+type i = i+1
d65166096449b4c58577df0ffda767f72a783e5a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/d65166096449b4c58577df0ffda767f72a783e5a/lyxconvert_218.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 1098, 792, 12, 3548, 4672, 277, 273, 374, 1323, 404, 30, 277, 273, 1104, 67, 2316, 12, 3548, 16, 8422, 10086, 67, 267, 542, 11134, 338, 2189, 1736, 1098, 792, 3113, 277, 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, 2549, 67, 1098, 792, 12, 3548, 4672, 277, 273, 374, 1323, 404, 30, 277, 273, 1104, 67, 2316, 12, 3548, 16, 8422, 10086, 67, 267, 542, 11134, 338, 2189, 1736, 1098, 792, 3113, 277, 13, ...
if ZeroCoincs: parse_coinc(ZeroCoincs,ZeroTable,params)
if PlaygroundZeroCoincs: parse_coinc(PlaygroundZeroCoincs,PlaygroundZeroTable,params) if FullDataZeroCoincs: parse_coinc(FullDataZeroCoincs,FullDataZeroTable,params)
def split_seq(seq,p): newseq = [] n = len(seq) / p # min items per subsequence r = len(seq) % p # remaindered items b,e = 0l,n + min(1,r) # first split for i in range(p): newseq.append(seq[b:e]) r = max(0, r-1) b,e = e,e + n + min(1,r) # min(1,r) is always 1 or 0 return newseq
e2e8f2f958a1548507b14bab781a0ce0ae7f63b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e2e8f2f958a1548507b14bab781a0ce0ae7f63b3/pylal_ihope_to_randomforest_input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 5436, 12, 5436, 16, 84, 4672, 394, 5436, 273, 5378, 290, 273, 562, 12, 5436, 13, 342, 293, 468, 1131, 1516, 1534, 720, 6178, 436, 273, 562, 12, 5436, 13, 738, 293, 468, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5436, 12, 5436, 16, 84, 4672, 394, 5436, 273, 5378, 290, 273, 562, 12, 5436, 13, 342, 293, 468, 1131, 1516, 1534, 720, 6178, 436, 273, 562, 12, 5436, 13, 738, 293, 468, 100...
and query in e.affixes]
and (query in e.affixes or e.type == 'gismu' and e.word[0:4] == query)]
def query(query): query = query.replace('+', ' ') matches = set() entry = db.entries.get(query, None) if entry: matches.add(entry) glosses = [g for g in db.glosses if g.gloss == query or g.gloss == query.capitalize()] matches.update(g.entry for g in glosses) affix = [e for e in db.entries.itervalues() if e not in ma...
278c4d3d11531219cd5d0c0f8827442a8d19e3f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12705/278c4d3d11531219cd5d0c0f8827442a8d19e3f3/vlasisku.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2271, 4672, 843, 273, 843, 18, 2079, 2668, 15, 2187, 296, 8624, 1885, 273, 444, 1435, 225, 1241, 273, 1319, 18, 8219, 18, 588, 12, 2271, 16, 599, 13, 309, 1241, 30, 1885, 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, 843, 12, 2271, 4672, 843, 273, 843, 18, 2079, 2668, 15, 2187, 296, 8624, 1885, 273, 444, 1435, 225, 1241, 273, 1319, 18, 8219, 18, 588, 12, 2271, 16, 599, 13, 309, 1241, 30, 1885, 18...
backupHistory = filter(lambda x: x < entry.changeDates[-1], backupHistory)
backupHistory = filter(lambda x: x <= entry.changeDates[-1], backupHistory)
def getDirRestoreDates(repo, path): backupHistory = [ x.date for x in getBackupHistory(repo) ] if path != "/": (parentPath, dirName) = os.path.split(path) dirListing = getDirEntries(repo, parentPath) entries = filter(lambda x: x.name == dirName, dirListing) if not entries: raise DoesNotExistError entry = entries[0] #...
6ca77978954322ba7a378f32594c0d71f59eaa02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2223/6ca77978954322ba7a378f32594c0d71f59eaa02/librdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26505, 10874, 15578, 12, 7422, 16, 589, 4672, 5114, 5623, 273, 306, 619, 18, 712, 364, 619, 316, 336, 6248, 5623, 12, 7422, 13, 308, 225, 309, 589, 480, 4016, 30, 261, 2938, 743, 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, 26505, 10874, 15578, 12, 7422, 16, 589, 4672, 5114, 5623, 273, 306, 619, 18, 712, 364, 619, 316, 336, 6248, 5623, 12, 7422, 13, 308, 225, 309, 589, 480, 4016, 30, 261, 2938, 743, 16, ...
listform = ListForm()
listform = ListForm(data)
def edit_list(request, group, list=None, is_admin=False, type='new'): """Edit list""" if request.method == 'POST': data = request.POST else: data = None if type == 'new': columnforms = [] listform = ListForm() for i in range(0,5): columnforms.append( ColumnForm(data, prefix='new%s'%i) ) elif type == 'edit': if list ...
ec5aa8a6750ca33f9e8406afd6c8b50ce08e347d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/ec5aa8a6750ca33f9e8406afd6c8b50ce08e347d/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 1098, 12, 2293, 16, 1041, 16, 666, 33, 7036, 16, 353, 67, 3666, 33, 8381, 16, 618, 2218, 2704, 11, 4672, 3536, 4666, 666, 8395, 309, 590, 18, 2039, 422, 296, 3798, 4278, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3874, 67, 1098, 12, 2293, 16, 1041, 16, 666, 33, 7036, 16, 353, 67, 3666, 33, 8381, 16, 618, 2218, 2704, 11, 4672, 3536, 4666, 666, 8395, 309, 590, 18, 2039, 422, 296, 3798, 4278, 50...
def handle_mediakey(self, *mmkeys):
def handle_mediakey(self, application, *mmkeys): if application != 'Miro': return
def handle_mediakey(self, *mmkeys): for key in mmkeys: if key == "Play": app.widgetapp.on_play_clicked() elif key == "Stop": app.widgetapp.on_stop_clicked() elif key == "Next": app.widgetapp.on_forward_clicked() elif key == "Previous": app.widgetapp.on_previous_clicked()
e768982876ae8b823e90d48ac1dbd691d2198c0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/e768982876ae8b823e90d48ac1dbd691d2198c0c/mediakeys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 5660, 581, 402, 12, 2890, 16, 2521, 16, 380, 7020, 2452, 4672, 309, 2521, 480, 296, 49, 11373, 4278, 327, 364, 498, 316, 9740, 2452, 30, 309, 498, 422, 315, 11765, 6877, 595,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5660, 581, 402, 12, 2890, 16, 2521, 16, 380, 7020, 2452, 4672, 309, 2521, 480, 296, 49, 11373, 4278, 327, 364, 498, 316, 9740, 2452, 30, 309, 498, 422, 315, 11765, 6877, 595,...
"""The representation of a single weight EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: a2([1,0,0]) a2(1,0,0)
""" Returns the representation of a single weight. EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: a2([1,0,0]) a2(1,0,0)
def _wt_repr(self, k): """The representation of a single weight EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: a2([1,0,0]) a2(1,0,0) """ hstring = str(k[0]) for i in range(1,self._lattice.n): hstring = hstring+","+str(k[i]) return self._prefix+"("+hstring+")"
585641b32ec9003014ab40e39d632a05e840e883 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/585641b32ec9003014ab40e39d632a05e840e883/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6046, 67, 12715, 12, 2890, 16, 417, 4672, 3536, 2860, 326, 4335, 434, 279, 2202, 3119, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6046, 67, 12715, 12, 2890, 16, 417, 4672, 3536, 2860, 326, 4335, 434, 279, 2202, 3119, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 432, 22, 273, 678, 402, 80, 7069, 10369, 12, ...
andi t3, t3, 2 or reg, reg, t3
andi t4, t3, 2, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_P { rdip t7 mov t1, t1, t0, dataSize=8 ld t1, seg, riprel, disp # Determine if the input was zero, and also move it to a temp reg. and t1, t1, t1, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register mov reg, reg, t0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, ...
3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7385/3e7c07fe3694f0322ad14a3f78d57cc10c7ca6f6/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 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, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 16, ...
url = '<li><a href="/packages/' + str(p.id) + '">' + dep + '</a></li>' urls = urls + url return urls def sources_urlize(self): urls = '' for source in self.sources.split(' '): if re.search('://', source): url = '<li><a href="' + source + '">' + source + '</a></li>' else: url = '<li>' + source + '</li>' urls = urls + u...
urls.append( '<li><a href="/packages/%d">%s</a></li>' % (p.id,dep.depname)) return ''.join(urls)
def depends_urlize(self): urls = '' for dep in self.depends.split(' '): # shave off any version qualifiers nameonly = re.match(r"([a-z0-9-]+)", dep).group(1) try: p = Package.objects.filter(pkgname=nameonly)[0] except IndexError: # couldn't find a package in the DB -- it might be a virtual depend urls = urls + '<li>' +...
4d1977f24e062370efd307cbe51d4cd826828362 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11256/4d1977f24e062370efd307cbe51d4cd826828362/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10935, 67, 718, 554, 12, 2890, 4672, 6903, 273, 875, 364, 5993, 316, 365, 18, 27360, 18, 4939, 2668, 296, 4672, 468, 699, 836, 3397, 1281, 1177, 22848, 508, 3700, 273, 283, 18, 1916, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10935, 67, 718, 554, 12, 2890, 4672, 6903, 273, 875, 364, 5993, 316, 365, 18, 27360, 18, 4939, 2668, 296, 4672, 468, 699, 836, 3397, 1281, 1177, 22848, 508, 3700, 273, 283, 18, 1916, 1...
opt['allowedTypes'] = [types.StringType]
opt['allowedTypes'] = [str]
def addOption(self, pos=-1, **kwargs): ''' Append an entry to the parameter specification list. Dictionary entries should be specified as keyword arguments such as ``name='option'``. More specifically, you can specify parameters ``name`` (required), ``label``, ``default`` (required), ``description``, ``validator``, ``t...
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 221...
self.subentries = {}
self.subentries = {}
def __init__(self,wikilang,term): # wikilang here refers to the language of the Wiktionary self.wikilang=wikilang self.term=term self.subentries = {} # subentries is a dictionary of subentry objects indexed by wikilang self.sortedsubentries = []
76fb65714c4556da8aac1fdd25b68713e590c935 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/76fb65714c4556da8aac1fdd25b68713e590c935/wiktionary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11999, 330, 539, 16, 6408, 4672, 202, 7, 341, 1766, 330, 539, 2674, 21368, 358, 326, 2653, 434, 326, 678, 1766, 24252, 814, 365, 18, 11999, 330, 539, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11999, 330, 539, 16, 6408, 4672, 202, 7, 341, 1766, 330, 539, 2674, 21368, 358, 326, 2653, 434, 326, 678, 1766, 24252, 814, 365, 18, 11999, 330, 539, 33,...
def testUndecodable(self):
def testUnencodable(self):
def testUndecodable(self): filename = support.TESTFN_UNENCODABLE + ".zip" z = ZipFile(filename, "w") zinfo = ZipInfo(TESTMOD + ".py", time.localtime(NOW)) zinfo.compress_type = self.compression z.writestr(zinfo, test_src) z.close() try: zipimport.zipimporter(filename) finally: os.remove(filename)
e9a54f6484de37f43b30e29e9a6b5a505f912e04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/e9a54f6484de37f43b30e29e9a6b5a505f912e04/test_zipimport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 984, 1331, 369, 429, 12, 2890, 4672, 1544, 273, 2865, 18, 16961, 19793, 67, 2124, 1157, 9086, 2782, 397, 3552, 4450, 6, 998, 273, 18364, 12, 3459, 16, 315, 91, 7923, 998, 1376, 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, 1842, 984, 1331, 369, 429, 12, 2890, 4672, 1544, 273, 2865, 18, 16961, 19793, 67, 2124, 1157, 9086, 2782, 397, 3552, 4450, 6, 998, 273, 18364, 12, 3459, 16, 315, 91, 7923, 998, 1376, 2...
n = self._subwidget_name(name) if not n: raise TclError, "Subwidget " + name + " not child of " + self._name n = n[len(self._w)+1:] return self._nametowidget(n)
n = self._subwidget_name(name) if not n: raise TclError, "Subwidget " + name + " not child of " + self._name n = n[len(self._w)+1:] return self._nametowidget(n)
def subwidget(self, name):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 6587, 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, 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, 720, 6587, 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, -100, -100,...
def _write(self, data):
def _write(self, data):
def _write(self, data):
f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 501, 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,...
[ 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, 389, 2626, 12, 2890, 16, 501, 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,...
self.putline('.')
self.putline(b'.')
def post(self, f): """Process a POST command. Arguments: - f: file containing the article Returns: - resp: server response if successful"""
933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 284, 4672, 3536, 2227, 279, 5485, 1296, 18, 225, 13599, 30, 300, 284, 30, 585, 4191, 326, 7559, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, 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, 1603, 12, 2890, 16, 284, 4672, 3536, 2227, 279, 5485, 1296, 18, 225, 13599, 30, 300, 284, 30, 585, 4191, 326, 7559, 2860, 30, 300, 1718, 30, 1438, 766, 309, 6873, 8395, 2, -100, -100, ...
if verbose: print 'unpack string' a, b, c = 'one' if a != 'o' or b != 'n' or c != 'e': raise TestFailed
Unpack string... fun!
def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError
989a9d01aa1cbad29606c3b177b5c247a75fefc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/989a9d01aa1cbad29606c3b177b5c247a75fefc0/test_unpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 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, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif args!=None:
elif len(args) != 0:
def execute(self, query, *args, **kwargs): """ an abstract database query - but more clever
8b8fd292b53259be157dc10740fc8c306cf0e023 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8331/8b8fd292b53259be157dc10740fc8c306cf0e023/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 843, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 392, 8770, 2063, 843, 300, 1496, 1898, 1619, 502, 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, 1836, 12, 2890, 16, 843, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 392, 8770, 2063, 843, 300, 1496, 1898, 1619, 502, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.config.enablessl:
if self.config.enablessl:
def run(self, server_class=ThreadedHTTPServer, handler_class=InventoryServer): server_address = (self.bind, int(self.port)) if self.config.enablessl: self.logger.info("Starting server in ssl mode") server_class = SecureThreadedHTTPServer httpd = server_class(server_address, handler_class, self.config) else: httpd = ser...
24cb2b73438c2235d9fe02a96cac14e3448cf2bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/24cb2b73438c2235d9fe02a96cac14e3448cf2bb/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1438, 67, 1106, 33, 1315, 20528, 3693, 2081, 16, 1838, 67, 1106, 33, 15059, 2081, 4672, 1438, 67, 2867, 273, 261, 2890, 18, 4376, 16, 509, 12, 2890, 18, 655, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1438, 67, 1106, 33, 1315, 20528, 3693, 2081, 16, 1838, 67, 1106, 33, 15059, 2081, 4672, 1438, 67, 2867, 273, 261, 2890, 18, 4376, 16, 509, 12, 2890, 18, 655, 3719, ...
self.tree.openElements[-1].appendChild(element)
if self.tree.headPointer is not None and\ self.parser.phase == self.parser.phases["inHead"]: self.appendToHead(element) else: self.tree.openElements[-1].appendChild(element)
def startTagScript(self, name, attributes): element = self.tree.createElement(name, attributes) element._flags.append("parser-inserted")
68e5292908c342cac5224497fa257ce9542cb3ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/68e5292908c342cac5224497fa257ce9542cb3ba/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 3651, 12, 2890, 16, 508, 16, 1677, 4672, 930, 273, 365, 18, 3413, 18, 2640, 1046, 12, 529, 16, 1677, 13, 930, 6315, 7133, 18, 6923, 2932, 4288, 17, 6387, 329, 7923, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 787, 1805, 3651, 12, 2890, 16, 508, 16, 1677, 4672, 930, 273, 365, 18, 3413, 18, 2640, 1046, 12, 529, 16, 1677, 13, 930, 6315, 7133, 18, 6923, 2932, 4288, 17, 6387, 329, 7923, 2, -10...
cat_namespace = wikipedia.getSite().category_namespace()
cat_namespace = wikipedia.getSite().category_namespaces()[0]
def add_category(sort_by_last_name = False): ''' A robot to mass-add a category to a list of pages. ''' print "This bot has two modes: you can add a category link to all" print "pages mentioned in a List that is now in another wikipedia page" print "or you can add a category link to all pages that link to a" print "spe...
84cc82cdafbaa3688f93585339ea6f61f02749e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/84cc82cdafbaa3688f93585339ea6f61f02749e0/category.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4743, 12, 3804, 67, 1637, 67, 2722, 67, 529, 273, 1083, 4672, 9163, 432, 14386, 358, 8039, 17, 1289, 279, 3150, 358, 279, 666, 434, 4689, 18, 9163, 1172, 315, 2503, 2512, 711,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 4743, 12, 3804, 67, 1637, 67, 2722, 67, 529, 273, 1083, 4672, 9163, 432, 14386, 358, 8039, 17, 1289, 279, 3150, 358, 279, 666, 434, 4689, 18, 9163, 1172, 315, 2503, 2512, 711,...
self.SetToolBitmapSize(wx.Size(25,25))
self._size = 25
def __init__(self, parent): wx.ToolBar.__init__(self, parent, -1, wx.DefaultPosition, wx.DefaultSize, wx.TB_FLAT|wx.TB_NODIVIDER) if sys.platform == 'darwin': self.SetToolBitmapSize(wx.Size(25,25)) else: self.SetToolBitmapSize(wx.Size(16,16)) self.parent = parent self.__init_items() self.__bind_events()
7b2c767a7799f85e09921f72c3bc22f8711533e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/7b2c767a7799f85e09921f72c3bc22f8711533e9/frame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4672, 7075, 18, 6364, 5190, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 7075, 18, 1868, 2555, 16, 7075, 18, 1868, 1225, 16, 7075, 18, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 7075, 18, 6364, 5190, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 7075, 18, 1868, 2555, 16, 7075, 18, 1868, 1225, 16, 7075, 18, 25...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 203) else quickfix.IntField.__init__(self, 203, 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, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 4200, 23, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 4200, 23, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738...
else: self.event = itemOrEvent.itsItem
def __init__(self, bounds, itemOrEvent): """ @param bounds: the bounds of the item as drawn on the canvas. @type bounds: wx.Rect @param item: the item drawn on the canvas in these bounds @type itemOrEvent: C{Item} or C{EventStamp} """ # @@@ scaffolding: resize bounds is the lower 5 pixels self._bounds = bounds if isi...
ec483e015988d9e41c11dfe52832b4738dc73133 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ec483e015988d9e41c11dfe52832b4738dc73133/CollectionCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4972, 16, 761, 1162, 1133, 4672, 3536, 632, 891, 4972, 30, 326, 4972, 434, 326, 761, 487, 19377, 603, 326, 5953, 18, 632, 723, 4972, 30, 7075, 18, 6120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4972, 16, 761, 1162, 1133, 4672, 3536, 632, 891, 4972, 30, 326, 4972, 434, 326, 761, 487, 19377, 603, 326, 5953, 18, 632, 723, 4972, 30, 7075, 18, 6120, ...
The upper hook length of a box (i,j) is defined by
The upper hook length of a box (i,j) in a partition $\kappa$ is defined by
def upper_hook_lengths(self, alpha): r""" Returns the upper hook lengths of the partition. When alpha == 1, these are just the normal hook lengths.
d2bea0c9898d10512ce54569c87e5b09be4cdba6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d2bea0c9898d10512ce54569c87e5b09be4cdba6/partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3854, 67, 4476, 67, 14907, 12, 2890, 16, 4190, 4672, 436, 8395, 2860, 326, 3854, 3953, 10917, 434, 326, 3590, 18, 225, 5203, 4190, 422, 404, 16, 4259, 854, 2537, 326, 2212, 3953, 10917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3854, 67, 4476, 67, 14907, 12, 2890, 16, 4190, 4672, 436, 8395, 2860, 326, 3854, 3953, 10917, 434, 326, 3590, 18, 225, 5203, 4190, 422, 404, 16, 4259, 854, 2537, 326, 2212, 3953, 10917, ...
print subVars("Headings","branch-heading",linenum,enum)
print subVars("Headings","branch-heading")
def handleHeading(linenum,enum): global outline, parents v["%%"] = outline[linenum][0] children = getChildren(linenum) if enum == 1: print subVars("Headings","before-headings",linenum,enum) if children: print subVars("Headings","branch-heading",linenum,enum) parents.append([linenum,enum]) handleObjects(children) paren...
06415efd07e1e7445f08ac0ea608650310478422 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6154/06415efd07e1e7445f08ac0ea608650310478422/otl2tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 21867, 12, 7511, 7924, 16, 7924, 4672, 2552, 16363, 16, 6298, 225, 331, 9614, 11438, 11929, 273, 16363, 63, 7511, 7924, 6362, 20, 65, 2325, 273, 10268, 12, 7511, 7924, 13, 309, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21867, 12, 7511, 7924, 16, 7924, 4672, 2552, 16363, 16, 6298, 225, 331, 9614, 11438, 11929, 273, 16363, 63, 7511, 7924, 6362, 20, 65, 2325, 273, 10268, 12, 7511, 7924, 13, 309, 279...
cygwin_path_fix = checkCygwinPath(srcdir)
windows_style_tex_paths = checkTeXPaths()
def removeTempFiles(): # Final clean-up if not lyx_keep_temps: removeFiles(['chkconfig.sed', 'chkconfig.vars', \ 'wrap_chkconfig.ltx', 'wrap_chkconfig.log', \ 'chklayouts.tex', 'missfont.log', 'chklatex.ltx', 'chklatex.log'])
44a5cfc89ced180ed4411bf0f46d3df3756725e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/44a5cfc89ced180ed4411bf0f46d3df3756725e5/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 7185, 2697, 13332, 468, 16269, 2721, 17, 416, 309, 486, 18519, 92, 67, 10102, 67, 874, 1121, 30, 1206, 2697, 12, 3292, 27038, 1425, 18, 730, 2187, 296, 27038, 1425, 18, 4699, 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, 1206, 7185, 2697, 13332, 468, 16269, 2721, 17, 416, 309, 486, 18519, 92, 67, 10102, 67, 874, 1121, 30, 1206, 2697, 12, 3292, 27038, 1425, 18, 730, 2187, 296, 27038, 1425, 18, 4699, 2187,...
self.report_untrusted = self.configbool("ui", "report_untrusted", True)
self._reportuntrusted = self.configbool("ui", "report_untrusted", True)
def fixconfig(self, root=None): # translate paths relative to root (or home) into absolute paths root = root or os.getcwd() for c in self._tcfg, self._ucfg, self._ocfg: for n, p in c.items('paths'): if p and "://" not in p and not os.path.isabs(p): c.set("paths", n, os.path.normpath(os.path.join(root, p)))
8b81a816b634ba5d27dd34720ad4de810a1d3f93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/8b81a816b634ba5d27dd34720ad4de810a1d3f93/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 1425, 12, 2890, 16, 1365, 33, 7036, 4672, 468, 4204, 2953, 3632, 358, 1365, 261, 280, 6382, 13, 1368, 4967, 2953, 1365, 273, 1365, 578, 1140, 18, 588, 11089, 1435, 364, 276, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2917, 1425, 12, 2890, 16, 1365, 33, 7036, 4672, 468, 4204, 2953, 3632, 358, 1365, 261, 280, 6382, 13, 1368, 4967, 2953, 1365, 273, 1365, 578, 1140, 18, 588, 11089, 1435, 364, 276, 316, ...
local_sdp.media.append(self._init_audio(audio_rtp))
local_sdp.media.append(self._init_audio(audio_rtp)) else: local_sdp.media[audio_sdp_index] = self._init_audio(audio_rtp)
def _add_audio_continue(self, audio_rtp, msrp_chat): self._lock.acquire() try: if self.state != "PROPOSING": return local_sdp = self._make_next_sdp(True, self.on_hold_by_local) audio_sdp_index = self._audio_sdp_index if audio_sdp_index == -1: audio_sdp_index = len(local_sdp.media) local_sdp.media.append(self._init_audi...
9e9618034500c66f3e54f8b7203ca8cdfb292d6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/9e9618034500c66f3e54f8b7203ca8cdfb292d6a/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 11509, 67, 17143, 12, 2890, 16, 7447, 67, 3797, 84, 16, 4086, 13832, 67, 10880, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 2019, 480, 315, 3373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 11509, 67, 17143, 12, 2890, 16, 7447, 67, 3797, 84, 16, 4086, 13832, 67, 10880, 4672, 365, 6315, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 2019, 480, 315, 3373, ...
if value != output:
if value != output or type(value) is not type(output):
def test(method, input, output, *args): if verbose: print '%s.%s%s =? %s... ' % (repr(input), method, args, output), try: f = getattr(input, method) value = apply(f, args) except: value = sys.exc_type exc = sys.exc_info()[:2] else: exc = None if value != output: if verbose: print 'no' print '*',f, `input`, `output`, `v...
997dda61e6820d53c38b8261450be64d051e8259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/997dda61e6820d53c38b8261450be64d051e8259/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2039, 16, 810, 16, 876, 16, 380, 1968, 4672, 309, 3988, 30, 1172, 1995, 87, 7866, 87, 9, 87, 273, 35, 738, 87, 2777, 296, 738, 261, 12715, 12, 2630, 3631, 707, 16, 833, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2039, 16, 810, 16, 876, 16, 380, 1968, 4672, 309, 3988, 30, 1172, 1995, 87, 7866, 87, 9, 87, 273, 35, 738, 87, 2777, 296, 738, 261, 12715, 12, 2630, 3631, 707, 16, 833, 1...
message = translate(_(u'msg_stopped_timer', default=u'Stopped the timer'))
message = _(u'msg_stopped_timer', default=u'Stopped the timer')
def stop_timer(self): tracker = get_tracker(self.context) tracker.starttime = None zope = self.getCommandSet('zope') zope.refreshProvider('#startstop', 'xm.tracker.startstop') message = translate(_(u'msg_stopped_timer', default=u'Stopped the timer')) plone = self.getCommandSet("plone") plone.issuePortalMessage(message)
92bd0351ae7a9b70e3efed0b809beae7df46e6a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10445/92bd0351ae7a9b70e3efed0b809beae7df46e6a2/ksstracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 67, 12542, 12, 2890, 4672, 9745, 273, 336, 67, 16543, 12, 2890, 18, 2472, 13, 9745, 18, 1937, 957, 273, 599, 998, 1306, 273, 365, 18, 588, 2189, 694, 2668, 94, 1306, 6134, 998, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2132, 67, 12542, 12, 2890, 4672, 9745, 273, 336, 67, 16543, 12, 2890, 18, 2472, 13, 9745, 18, 1937, 957, 273, 599, 998, 1306, 273, 365, 18, 588, 2189, 694, 2668, 94, 1306, 6134, 998, ...
def __init__(self,filename,fam):
def __init__(self, filename, fam):
def __init__(self,filename,fam): XMLFileBacked.__init__(self, filename) fam.AddMonitor(filename, self)
663fd7648200f6806c0af46cf879014c1a3e3e9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/663fd7648200f6806c0af46cf879014c1a3e3e9e/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 26688, 4672, 3167, 812, 2711, 329, 16186, 2738, 972, 12, 2890, 16, 1544, 13, 26688, 18, 986, 7187, 12, 3459, 16, 365, 13, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 26688, 4672, 3167, 812, 2711, 329, 16186, 2738, 972, 12, 2890, 16, 1544, 13, 26688, 18, 986, 7187, 12, 3459, 16, 365, 13, 2, -100, -100, -100, ...
if d < l[1]: raise UnderflowError if d > l[2]: raise OverflowError else: if s == "nan": return fpconst.NaN elif s[0:3] in ("inf", "+inf"): return fpconst.PosInf elif s[0:3] == "-inf": return fpconst.NegInf if fpconst.isNaN(d): if s != 'nan': raise ValueError, "invalid %s: %s" % (t[1], s) elif fpconst.isNegInf(d): i...
if fpconst.isNaN(d): if s[0:2] != 'nan': raise ValueError, "invalid %s: %s" % (t[1], s) elif fpconst.isNegInf(d): if s[0:3] != '-inf': raise UnderflowError, "%s too small: %s" % (t[1], s) elif fpconst.isPosInf(d): if s[0:2] != 'inf' and s[0:3] != '+inf': raise OverflowError, "%s too large: %s" % (t[1], s) elif d < 0 an...
def convertToBasicTypes(self, d, t, attrs, config=Config): dnn = d or ''
ec094af15af9be4e1f783c46d8dc80e6d99b321e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14538/ec094af15af9be4e1f783c46d8dc80e6d99b321e/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8137, 8252, 2016, 12, 2890, 16, 302, 16, 268, 16, 3422, 16, 642, 33, 809, 4672, 8800, 82, 273, 302, 578, 875, 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, 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, 8137, 8252, 2016, 12, 2890, 16, 302, 16, 268, 16, 3422, 16, 642, 33, 809, 4672, 8800, 82, 273, 302, 578, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
names = self.tk.split(self.tk.call(self._w, 'pages')) ret = [] for x in names: ret.append(self.subwidget(x)) return ret def raise_page(self, name): self.tk.call(self._w, 'raise', name)
names = self.tk.split(self.tk.call(self._w, 'pages')) ret = [] for x in names: ret.append(self.subwidget(x)) return ret def raise_page(self, name): self.tk.call(self._w, 'raise', name)
def pages(self):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4689, 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, 4689, 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, -...
del self._trackCache[self.trackIDList.pop(0)]
del self._trackCache[self._trackIDList.pop(0)]
def addTrackToCache(self, track): self._logger.debug("Adding track to cache.") if len(self._trackCache) > 10000: del self._trackCache[self.trackIDList.pop(0)] id = track.getID() self._trackCache[id] = track self._trackIDList.append(id)
721c5669b78ca91f164838c617fd718f7b40d748 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/721c5669b78ca91f164838c617fd718f7b40d748/Track.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4402, 774, 1649, 12, 2890, 16, 3298, 4672, 365, 6315, 4901, 18, 4148, 2932, 13962, 3298, 358, 1247, 1199, 13, 309, 562, 12, 2890, 6315, 4101, 1649, 13, 405, 12619, 30, 1464, 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, 527, 4402, 774, 1649, 12, 2890, 16, 3298, 4672, 365, 6315, 4901, 18, 4148, 2932, 13962, 3298, 358, 1247, 1199, 13, 309, 562, 12, 2890, 6315, 4101, 1649, 13, 405, 12619, 30, 1464, 365, ...
'Lattice="10.880000 0.000000 0.000000 0.000000 10.880000 0.000000 0.000000 0.000000 10.880000" Properties=species:S:1:pos:R:3:Z:I:1\n',
'dummy=1.00000000 Lattice="10.880000 0.000000 0.000000 0.000000 10.880000 0.000000 0.000000 0.000000 10.880000" Properties=species:S:1:pos:R:3:Z:I:1\n',
def setUp(self): self.at = supercell(diamond(5.44,14), 2,2,2) self.al = AtomsList([ supercell(diamond(5.44+0.01*x,14),2,2,2) for x in range(5) ])
382127aa2af8791d97535fb72c58c9c17033cb23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/382127aa2af8791d97535fb72c58c9c17033cb23/test_atomslist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 270, 273, 2240, 3855, 12, 3211, 301, 1434, 12, 25, 18, 6334, 16, 3461, 3631, 576, 16, 22, 16, 22, 13, 365, 18, 287, 273, 7149, 21576, 3816, 2240, 3855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 365, 18, 270, 273, 2240, 3855, 12, 3211, 301, 1434, 12, 25, 18, 6334, 16, 3461, 3631, 576, 16, 22, 16, 22, 13, 365, 18, 287, 273, 7149, 21576, 3816, 2240, 3855...
if data["action"] in self.client.NOTIFY_ACTIONS_COMPLETE: self.notification.append( ["", "Revision %s" % data["revision"].number, ""] )
try: if data["action"] in self.client.NOTIFY_ACTIONS_COMPLETE: self.notification.append( ["", "Revision %s" % data["revision"].number, ""] ) except AttributeError, e: pass
def notify(self, data): """ This method is called every time the VCS function wants to tell us something. It passes us a dictionary of useful information. When this method is called, it appends some useful data to the notifcation window. TODO: We need to implement this in a more VCS-agnostic way, since the supplied ...
cd01144e005467e841e568970d0c868243c62d56 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/cd01144e005467e841e568970d0c868243c62d56/action.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 12, 2890, 16, 501, 4672, 3536, 1220, 707, 353, 2566, 3614, 813, 326, 776, 4596, 445, 14805, 358, 9276, 584, 5943, 18, 225, 2597, 11656, 584, 279, 3880, 434, 5301, 1779, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5066, 12, 2890, 16, 501, 4672, 3536, 1220, 707, 353, 2566, 3614, 813, 326, 776, 4596, 445, 14805, 358, 9276, 584, 5943, 18, 225, 2597, 11656, 584, 279, 3880, 434, 5301, 1779, 18, 225, ...
message = self.timeleftstring(self.fractSec(left))
h, m, s = self.fractSec(left) message = self.timeleftstring(h, m, s)
def pnotifier(self): if not self.gettime(self.timefile): return True time = self.gettime(self.timefile) index = int(strftime("%w")) left = self.limits[index] - time if left <= 0: self.notifier('Your time is up') return True message = self.timeleftstring(self.fractSec(left)) self.notifier(message) # if time left is l...
7b21c5d86feaafc6de69a693bebc3660e9dd9c75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/7b21c5d86feaafc6de69a693bebc3660e9dd9c75/timekpr-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 902, 1251, 12, 2890, 4672, 309, 486, 365, 18, 588, 957, 12, 2890, 18, 957, 768, 4672, 327, 1053, 225, 813, 273, 365, 18, 588, 957, 12, 2890, 18, 957, 768, 13, 770, 273, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 902, 1251, 12, 2890, 4672, 309, 486, 365, 18, 588, 957, 12, 2890, 18, 957, 768, 4672, 327, 1053, 225, 813, 273, 365, 18, 588, 957, 12, 2890, 18, 957, 768, 13, 770, 273, 509, 1...
self.__init__(atype=inventory.element, xyz=inventory.xyz, label=inventory.label, occupancy=inventory.occupancy)
atom = self.__class__( atype=inventory.element, xyz=inventory.xyz, label=inventory.label, occupancy=inventory.occupancy) self.__init__(atom) return
def __restoreFromInventory__(self, inventory): self.__init__(atype=inventory.element, xyz=inventory.xyz, label=inventory.label, occupancy=inventory.occupancy)
4809e79914b922bbea5850bbd9771592a055d070 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/578/4809e79914b922bbea5850bbd9771592a055d070/Atom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13991, 1265, 15059, 972, 12, 2890, 16, 13086, 4672, 365, 16186, 2738, 972, 12, 6361, 33, 26024, 18, 2956, 16, 14779, 33, 26024, 18, 17177, 16, 1433, 33, 26024, 18, 1925, 16, 18928,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13991, 1265, 15059, 972, 12, 2890, 16, 13086, 4672, 365, 16186, 2738, 972, 12, 6361, 33, 26024, 18, 2956, 16, 14779, 33, 26024, 18, 17177, 16, 1433, 33, 26024, 18, 1925, 16, 18928,...
sys.exit(True)
sys.exit(0) match_list = []
def main(): parser = OptionParser(usage=u"%prog usage: ttvdb -hdruviomMPFBDS [parameters]\n <series name or 'series and season number' or 'series and season number and episode number'>\n\nFor details on using ttvdb with Mythvideo see the ttvdb wiki page at:\nhttp://www.mythtv.org/wiki/Ttvdb.py") parser.add_option( "-...
5be61520a0a3d60abf11f719e6c9c43d73baab36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/5be61520a0a3d60abf11f719e6c9c43d73baab36/ttvdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 18862, 12, 9167, 33, 89, 28385, 14654, 4084, 30, 3574, 90, 1966, 300, 16587, 89, 522, 362, 4566, 22201, 3948, 306, 3977, 13944, 82, 411, 10222, 508, 578, 296, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2082, 273, 18862, 12, 9167, 33, 89, 28385, 14654, 4084, 30, 3574, 90, 1966, 300, 16587, 89, 522, 362, 4566, 22201, 3948, 306, 3977, 13944, 82, 411, 10222, 508, 578, 296, 102...
s0, t0 - texture coordinates of the centre of the filter
s, t - Texture box over which to filter
def filterEllipticGaussianAF(self, s0, t0, deltaX, deltaY, J, returnWeights=False): ''' Filter a portion of the texture using an elliptical gaussian filter, as described in Heckbert's 1989 thesis, "Fundamentals of Texture Mapping and Image Warping". This kind of filter is also called an EWA filter for "Elliptical Weig...
93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11560/93bfbb8bc2e36b2f1ef7b44d21de3a8bc9fa1395/mipmap_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 4958, 549, 21507, 43, 12086, 6799, 12, 2890, 16, 272, 20, 16, 268, 20, 16, 31329, 16, 29697, 16, 804, 16, 327, 16595, 33, 8381, 4672, 9163, 4008, 279, 14769, 434, 326, 11428, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1034, 4958, 549, 21507, 43, 12086, 6799, 12, 2890, 16, 272, 20, 16, 268, 20, 16, 31329, 16, 29697, 16, 804, 16, 327, 16595, 33, 8381, 4672, 9163, 4008, 279, 14769, 434, 326, 11428, 145...
* any RCS or CVS directories
* any RCS, CVS and .svn directories
def prune_file_list (self): """Prune off branches that might slip into the file list as created by 'read_template()', but really don't belong there: * the build tree (typically "build") * the release tree itself (only an issue if we ran "sdist" previously with --keep-temp, or it aborted) * any RCS or CVS directories ""...
5677e123297d355838d9f56cc45058413e641b27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5677e123297d355838d9f56cc45058413e641b27/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13293, 67, 768, 67, 1098, 261, 2890, 4672, 3536, 28404, 3397, 11483, 716, 4825, 272, 3169, 1368, 326, 585, 666, 487, 2522, 635, 296, 896, 67, 3202, 1435, 2187, 1496, 8654, 2727, 1404, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13293, 67, 768, 67, 1098, 261, 2890, 4672, 3536, 28404, 3397, 11483, 716, 4825, 272, 3169, 1368, 326, 585, 666, 487, 2522, 635, 296, 896, 67, 3202, 1435, 2187, 1496, 8654, 2727, 1404, 10...
@cache.all_if_anonymous()
@cache.response(vary=('user',))
def show_pages_delete(request, page_id): page = Page.objects.get(page_id) if page is None: raise NotFound() csrf_protector = CSRFProtector() if request.method == 'POST': csrf_protector.assert_safe() if request.form.get('cancel'): return redirect(url_for('pages/write_page', page_id=page.page_id)) elif request.form.get...
23bf113b3d6c4a8054212202f08e8de98f689a9f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12815/23bf113b3d6c4a8054212202f08e8de98f689a9f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 7267, 67, 3733, 12, 2293, 16, 1363, 67, 350, 4672, 1363, 273, 3460, 18, 6911, 18, 588, 12, 2433, 67, 350, 13, 309, 1363, 353, 599, 30, 1002, 7054, 1435, 19483, 67, 11815, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 67, 7267, 67, 3733, 12, 2293, 16, 1363, 67, 350, 4672, 1363, 273, 3460, 18, 6911, 18, 588, 12, 2433, 67, 350, 13, 309, 1363, 353, 599, 30, 1002, 7054, 1435, 19483, 67, 11815, 1...
name = os.path.join(os.path.split(sys.argv[0])[0], 'data/test.htm')
name = os.path.join(self.cwd, 'data/test.htm')
def OnShowDefault(self, event): name = os.path.join(os.path.split(sys.argv[0])[0], 'data/test.htm') self.html.LoadPage(name)
ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 5706, 1868, 12, 2890, 16, 871, 4672, 508, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 11089, 16, 296, 892, 19, 3813, 18, 31180, 6134, 365, 18, 2620, 18, 2563, 1964, 12, 529, 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, 0, 0, 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, 2755, 5706, 1868, 12, 2890, 16, 871, 4672, 508, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 11089, 16, 296, 892, 19, 3813, 18, 31180, 6134, 365, 18, 2620, 18, 2563, 1964, 12, 529, 13...
print "Error: replicate failed with exception: ", x
print "Error: replicate failed with exception: ", x
def do_replicate(self,args): """ Replicate a given file to a given SE usage: replicate <LFN> <SE> [<SourceSE>] """ argss = args.split() lfn = argss[0] lfn = self.getPath(path) se = argss[1] if len(args)>2: sourceSE=args[2] if len(args)>3: localCache=args[3] try: dirac = Dirac() result = dirac.replicate(args[0],args[1]...
4bf66b76461b76d4728a7a9097ad90c0477688b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4bf66b76461b76d4728a7a9097ad90c0477688b5/FileCatalogClientCLI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 266, 1780, 340, 12, 2890, 16, 1968, 4672, 3536, 868, 1780, 340, 279, 864, 585, 358, 279, 864, 3174, 225, 4084, 30, 28476, 411, 9105, 50, 34, 411, 1090, 34, 306, 32, 1830, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 1780, 340, 12, 2890, 16, 1968, 4672, 3536, 868, 1780, 340, 279, 864, 585, 358, 279, 864, 3174, 225, 4084, 30, 28476, 411, 9105, 50, 34, 411, 1090, 34, 306, 32, 1830, 10...
class ImageDB(object):
class ImageDB(ZipWikiBase):
def getLicenses(self): if self.licenses is None: # ZIP file of old mwlib version does not contain licenses... try: self.licenses = metabook.get_licenses(self.metabook) except Exception, exc: log.ERROR('Could not fetch licenses: %s' % exc) self.licenses = [] return self.licenses
3eef7b31a38c096d04f05419b663c667358280db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/3eef7b31a38c096d04f05419b663c667358280db/zipwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9014, 16548, 12, 2890, 4672, 309, 365, 18, 80, 16548, 353, 599, 30, 468, 18277, 585, 434, 1592, 14721, 2941, 1177, 1552, 486, 912, 26457, 2777, 775, 30, 365, 18, 80, 16548, 273, 5100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9014, 16548, 12, 2890, 4672, 309, 365, 18, 80, 16548, 353, 599, 30, 468, 18277, 585, 434, 1592, 14721, 2941, 1177, 1552, 486, 912, 26457, 2777, 775, 30, 365, 18, 80, 16548, 273, 5100, ...
supported_dists=('SuSE','debian','redhat','mandrake')):
supported_dists=('SuSE', 'debian', 'fedora', 'redhat', 'mandrake')):
def dist(distname='',version='',id='', supported_dists=('SuSE','debian','redhat','mandrake')): """ Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. Returns a tup...
47ebfd2f70daf5e6bb04ad9a7e6d3059eea9e980 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/47ebfd2f70daf5e6bb04ad9a7e6d3059eea9e980/platform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2411, 12, 4413, 529, 2218, 2187, 1589, 2218, 2187, 350, 2218, 2187, 225, 3260, 67, 30467, 33, 2668, 17072, 1090, 2187, 296, 31888, 2779, 2187, 296, 74, 15534, 2187, 296, 1118, 11304, 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, 2411, 12, 4413, 529, 2218, 2187, 1589, 2218, 2187, 350, 2218, 2187, 225, 3260, 67, 30467, 33, 2668, 17072, 1090, 2187, 296, 31888, 2779, 2187, 296, 74, 15534, 2187, 296, 1118, 11304, 2187,...
fld_distinct= run_sql("SELECT distinct(id_field) FROM collection_field_fieldvalue WHERE type='seo' AND id_collection=%s ORDER by score desc" % colID)
fld_distinct = run_sql("SELECT distinct(id_field) FROM collection_field_fieldvalue WHERE type='seo' AND id_collection=%s ORDER by score desc" % colID)
def perform_showsearchoptions(colID, ln=cdslang, callback='yes', content='', confirm=-1): """show the sort and search options of this collection..""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) fld_type = get_sort_nametypes() subtitle = """<a name="7">...
e02bf14cfa93e6c83692292855ee97a11d40e01d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/e02bf14cfa93e6c83692292855ee97a11d40e01d/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 3072, 2116, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 1524, 471, 1623, 702, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 3072, 2116, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 1524, 471, 1623, 702, 434, ...
for i, b in enumerate(widgets):
i = 0 for b in widgets:
def set_widget_initial_values(self, glade): self.quality_tabs.set_show_tabs(False) if self.get_int("same-folder-as-input"): w = glade.get_widget("same_folder_as_input") else: w = glade.get_widget("into_selected_folder") w.set_active(True) uri = filename_to_uri(self.get_string("selected-folder")) self.target_folder_c...
f17010db54490812e8d8fa5440cc3dcaf50520d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2369/f17010db54490812e8d8fa5440cc3dcaf50520d6/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6587, 67, 6769, 67, 2372, 12, 2890, 16, 5118, 2486, 4672, 225, 365, 18, 16495, 67, 16056, 18, 542, 67, 4500, 67, 16056, 12, 8381, 13, 225, 309, 365, 18, 588, 67, 474, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 6587, 67, 6769, 67, 2372, 12, 2890, 16, 5118, 2486, 4672, 225, 365, 18, 16495, 67, 16056, 18, 542, 67, 4500, 67, 16056, 12, 8381, 13, 225, 309, 365, 18, 588, 67, 474, 2932, ...
return content.replace("\r", "\n")
return content.replace("\r\n", "\n")
def convertDos2Unix(content): return content.replace("\r", "\n")
751867df86cce5d9bd6164cc3f31b1cfb76ef098 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/751867df86cce5d9bd6164cc3f31b1cfb76ef098/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 40, 538, 22, 18729, 12, 1745, 4672, 327, 913, 18, 2079, 31458, 86, 64, 82, 3113, 1548, 82, 7923, 225, 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, 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, 1765, 40, 538, 22, 18729, 12, 1745, 4672, 327, 913, 18, 2079, 31458, 86, 64, 82, 3113, 1548, 82, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
DocServer(address, callback).serve_forever()
DocServer(port, callback).serve_until_quit() except (KeyboardInterrupt, select.error): pass print 'server stopped' def gui(): """Graphical interface (starts web server and pops up a control window).""" class GUI: def __init__(self, window, port=7464): self.window = window self.server = None self.scanner = None impo...
def server_activate(self): self.base.server_activate(self) if self.callback: self.callback()
c59006cf0425a2636c8284ef2601f7f489fad815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c59006cf0425a2636c8284ef2601f7f489fad815/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 10014, 12, 2890, 4672, 365, 18, 1969, 18, 3567, 67, 10014, 12, 2890, 13, 309, 365, 18, 3394, 30, 365, 18, 3394, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 10014, 12, 2890, 4672, 365, 18, 1969, 18, 3567, 67, 10014, 12, 2890, 13, 309, 365, 18, 3394, 30, 365, 18, 3394, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
string.strip(line[5:]) + "\n"
line[5:].strip() + "\n"
def description(self, line): self.data.description = self.data.description + \ string.strip(line[5:]) + "\n"
ade8039411341728bf4bd4dc20b4f5d9433c8f82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/ade8039411341728bf4bd4dc20b4f5d9433c8f82/SProt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2477, 12, 2890, 16, 980, 4672, 365, 18, 892, 18, 3384, 273, 365, 18, 892, 18, 3384, 397, 521, 980, 63, 25, 30, 8009, 6406, 1435, 397, 1548, 82, 6, 225, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2477, 12, 2890, 16, 980, 4672, 365, 18, 892, 18, 3384, 273, 365, 18, 892, 18, 3384, 397, 521, 980, 63, 25, 30, 8009, 6406, 1435, 397, 1548, 82, 6, 225, 2, -100, -100, -100, -100, -...
""" A mutable (unhashable) setlist that inherits from basesetlist. """
""" A mutable (unhashable) setlist that inherits from basesetlist. >>> sl = setlist('abcde') >>> sl[0] = 5 >>> sl setlist((5, 'b', 'c', 'd', 'e')) >>> sl[-1] = 0 >>> sl setlist((5, 'b', 'c', 'd', 0)) >>> sl[1] = 'c' >>> sl setlist((5, 'b', 'c', 'd', 0)) >>> del sl[0] >>> sl setlist(('b', 'c', 'd', 0)) >>> del sl[-1] >...
def index(self, sub, start=0, end=-1): """ This runs in O(len(sub))
0479d0e6e0fff5104b463a62dcd9d0f78ec3e2cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/0479d0e6e0fff5104b463a62dcd9d0f78ec3e2cb/collections_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 29711, 21, 4672, 3536, 1220, 7597, 316, 531, 12, 1897, 12, 1717, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 770, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 29711, 21, 4672, 3536, 1220, 7597, 316, 531, 12, 1897, 12, 1717, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...