rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
v1, v2 = ed.verts v1 = me.verts[v1].co.copy() v2 = me.verts[v2].co.copy()
v1, v2 = ed.vertices v1 = me.vertices[v1].co.copy() v2 = me.vertices[v2].co.copy()
def calc_callback(self, context): # polling if context.mode != "EDIT_MESH": return # get screen information mid_x = context.region.width/2.0 mid_y = context.region.height/2.0 width = context.region.width height = context.region.height # get matrices view_mat = context.space_data.region_3d.perspective_matrix ob_mat = ...
aa427a2112b4de889547ea097a849d1b1bb0e3f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/aa427a2112b4de889547ea097a849d1b1bb0e3f1/space_view3d_index_visualiser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 3394, 12, 2890, 16, 819, 4672, 468, 13708, 309, 819, 18, 3188, 480, 315, 10776, 67, 958, 2664, 6877, 327, 225, 468, 336, 5518, 1779, 7501, 67, 92, 273, 819, 18, 6858, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 3394, 12, 2890, 16, 819, 4672, 468, 13708, 309, 819, 18, 3188, 480, 315, 10776, 67, 958, 2664, 6877, 327, 225, 468, 336, 5518, 1779, 7501, 67, 92, 273, 819, 18, 6858, 18, 2...
security.declarePublic("hasI18NContent") def hasI18NContent(self): """return true it the schema contains at least one I18N field""" return self.Schema().hasI18NContent()
security.declarePrivate( '_datify' ) def _datify( self, attrib ): """FIXME: overriden from DublinCore to deal with blank value...""" if attrib == 'None' or not attrib: attrib = None elif not isinstance( attrib, DateTime ): attrib = DateTime( attrib ) return attrib security.declarePublic( 'Date' ) def Date( self ): """...
def Schemata(self): from Products.Archetypes.Schema import getSchemata return getSchemata(self)
9bc695fd402c715ffe8882821fdf6d56301d76ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/9bc695fd402c715ffe8882821fdf6d56301d76ae/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 1036, 396, 12, 2890, 4672, 628, 8094, 87, 18, 12269, 15180, 18, 3078, 1930, 1322, 1036, 396, 327, 1322, 1036, 396, 12, 2890, 13, 2, 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, 348, 1036, 396, 12, 2890, 4672, 628, 8094, 87, 18, 12269, 15180, 18, 3078, 1930, 1322, 1036, 396, 327, 1322, 1036, 396, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
version=__version__) parser.set_defaults(file=DEF_FILENAME) parser.add_option('-f', '--file', action='store', dest='file', help='Use FILE as phone book') parser.add_option('--help-commands', action='store_true', dest='commands', help='Print information about available commands')
version=__version__, option_class=CommandOption, conflict_handler='resolve') desc = _('Commands to modify the phone book and to search or print ' 'entries. Only one of these options may be specified. ' 'Commands, which accept indices, recognize range ' 'specifications like 4-6.') group = parser.add_option_group(_('Com...
def _parse_args(self): """Parses command line arguments""" parser = OptionParser(usage=self.usage, description=self.description, version=__version__) parser.set_defaults(file=DEF_FILENAME) parser.add_option('-f', '--file', action='store', dest='file', help='Use FILE as phone book') parser.add_option('--help-commands', ...
500a390f053c916fbb5e449916c39bcc41901f78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/500a390f053c916fbb5e449916c39bcc41901f78/tel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1968, 12, 2890, 4672, 3536, 6656, 1296, 980, 1775, 8395, 2082, 273, 18862, 12, 9167, 33, 2890, 18, 9167, 16, 2477, 33, 2890, 18, 3384, 16, 1177, 33, 972, 1589, 972, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 1968, 12, 2890, 4672, 3536, 6656, 1296, 980, 1775, 8395, 2082, 273, 18862, 12, 9167, 33, 2890, 18, 9167, 16, 2477, 33, 2890, 18, 3384, 16, 1177, 33, 972, 1589, 972, 16, ...
print node
def visit_reference(self, node): print node if 'refuri' in node: refuri = node['refuri'] if not re.match('^([a-z]+://|/)', refuri): # it's relative link # find file in vim like rule # - search relative to the directory of the current file # - search in the git root directory ctx = self.settings.ctx obj = self.settings....
f50846e62bb92f492aa152c04a0d75521f718eb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13899/f50846e62bb92f492aa152c04a0d75521f718eb6/docutilsext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 6180, 12, 2890, 16, 756, 4672, 309, 296, 1734, 1650, 11, 316, 756, 30, 1278, 1650, 273, 756, 3292, 1734, 1650, 3546, 309, 486, 283, 18, 1916, 2668, 66, 3816, 69, 17, 94, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 6180, 12, 2890, 16, 756, 4672, 309, 296, 1734, 1650, 11, 316, 756, 30, 1278, 1650, 273, 756, 3292, 1734, 1650, 3546, 309, 486, 283, 18, 1916, 2668, 66, 3816, 69, 17, 94, 37...
dim = 2*self.genus()
prec = K.precision_cap() g = self.genus() dim = 2*g
def coleman_integrals_on_basis(self, P, Q, algorithm=None): """
aeeebfda8d78e5e3ab59577b4a6c5022a19143dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/aeeebfda8d78e5e3ab59577b4a6c5022a19143dd/hyperelliptic_padic_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 790, 4728, 67, 27423, 1031, 67, 265, 67, 23774, 12, 2890, 16, 453, 16, 2238, 16, 4886, 33, 7036, 4672, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 790, 4728, 67, 27423, 1031, 67, 265, 67, 23774, 12, 2890, 16, 453, 16, 2238, 16, 4886, 33, 7036, 4672, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
centry.update((time.time() + 15*3600, u.id))
centry.update((time.time() + 15*3600, usr.id))
def _generate_auth_token(self): token = random_string(32, 'abcdefghijklmnopqrstuvwxyz0123456789') centry = caching.CacheEntry(self.request, 'xmlrpc-session', token, scope='farm', use_pickle=True) centry.update((time.time() + 15*3600, u.id)) return token
477a3d6f40a54e801c98a0f0d3444db9a61b4c35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/477a3d6f40a54e801c98a0f0d3444db9a61b4c35/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1944, 67, 2316, 12, 2890, 4672, 1147, 273, 2744, 67, 1080, 12, 1578, 16, 296, 28953, 17680, 8302, 16391, 13607, 556, 85, 16114, 30900, 17177, 26684, 6134, 276, 4099, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 1944, 67, 2316, 12, 2890, 4672, 1147, 273, 2744, 67, 1080, 12, 1578, 16, 296, 28953, 17680, 8302, 16391, 13607, 556, 85, 16114, 30900, 17177, 26684, 6134, 276, 4099, 273, ...
def __init__(self, parent_db, proxied_playlist=None, title="New Playlist", smart=False, pos=-1):
def __init__(self, parent_db, title="New Playlist", smart=False, pos=-1, proxied_playlist=None):
def __init__(self, parent_db, proxied_playlist=None, title="New Playlist", smart=False, pos=-1): self._db = parent_db if proxied_playlist: self._pl = proxied_playlist else: if smart: smart = 1 else: smart = 0 self._pl = gpod.itdb_playlist_new(title, smart) gpod.itdb_playlist_add(self._db._itdb, self._pl, pos)
126c6d88c01e55d502f2ee92066a16ff5a35efad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12459/126c6d88c01e55d502f2ee92066a16ff5a35efad/ipod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 67, 1966, 16, 2077, 1546, 1908, 19592, 1098, 3113, 13706, 33, 8381, 16, 949, 29711, 21, 16, 21875, 67, 1601, 1098, 33, 7036, 4672, 365, 6315, 1966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1966, 16, 2077, 1546, 1908, 19592, 1098, 3113, 13706, 33, 8381, 16, 949, 29711, 21, 16, 21875, 67, 1601, 1098, 33, 7036, 4672, 365, 6315, 1966, ...
@rtype: L{dt.time}
@rtype: B{datetime}.I{time}
def __parse(self, s): """ Parse the string date. Patterns: - HH:MI:SS - HH:MI:SS(z|Z) - HH:MI:SS.ms - HH:MI:SS.ms(z|Z) - HH:MI:SS(+|-)06:00 - HH:MI:SS.ms(+|-)06:00 @param s: A time string. @type s: str @return: A time object. @rtype: L{dt.time} """ try: offset = None part = Timezone.split(s) hour, minute, second = part...
2c183c1fe6ea8a0555981864020fd64c76d70a80 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/2c183c1fe6ea8a0555981864020fd64c76d70a80/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 12, 2890, 16, 272, 4672, 3536, 2884, 326, 533, 1509, 18, 6830, 87, 30, 300, 20842, 30, 7492, 30, 1260, 300, 20842, 30, 7492, 30, 1260, 12, 94, 96, 62, 13, 300, 20842, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 12, 2890, 16, 272, 4672, 3536, 2884, 326, 533, 1509, 18, 6830, 87, 30, 300, 20842, 30, 7492, 30, 1260, 300, 20842, 30, 7492, 30, 1260, 12, 94, 96, 62, 13, 300, 20842, 30,...
if (win != None):
if (win != None and win != ""):
def __get_window_manager(self):
d85b0509cd23f4c02339e8d13400849fb976be0e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5768/d85b0509cd23f4c02339e8d13400849fb976be0e/GlassWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 5668, 67, 4181, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 5668, 67, 4181, 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, ...
return r._fix(context=context)
return r._fix(context)
def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(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, 10022, 67, 27862, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 2663, 25407, 11431, 358, 374, 17, 225, 2417, 12, 2764, 25407, 17, 27862, 13, 1648, 1308, 19, 22, 3536, 1308, 273, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10022, 67, 27862, 12, 2890, 16, 1308, 16, 819, 33, 7036, 4672, 3536, 2663, 25407, 11431, 358, 374, 17, 225, 2417, 12, 2764, 25407, 17, 27862, 13, 1648, 1308, 19, 22, 3536, 1308, 273, 3...
def readinto(self, b: bytes) -> int: """readinto(b: bytes) -> int. Read up to len(b) bytes into b.
def readinto(self, b: bytearray) -> int: """readinto(b: bytearray) -> int. Read up to len(b) bytes into b.
def readinto(self, b: bytes) -> int: """readinto(b: bytes) -> int. Read up to len(b) bytes into b.
f8cc9907ddcd7e41c19de52777fffa9f490d3a6b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/f8cc9907ddcd7e41c19de52777fffa9f490d3a6b/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 18591, 12, 2890, 16, 324, 30, 1731, 13, 317, 509, 30, 3536, 896, 18591, 12, 70, 30, 1731, 13, 317, 509, 18, 225, 2720, 731, 358, 562, 12, 70, 13, 1731, 1368, 324, 18, 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, 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, 855, 18591, 12, 2890, 16, 324, 30, 1731, 13, 317, 509, 30, 3536, 896, 18591, 12, 70, 30, 1731, 13, 317, 509, 18, 225, 2720, 731, 358, 562, 12, 70, 13, 1731, 1368, 324, 18, 2, -100,...
Pk = mu**k * exp(-mu) / arr(special.gamma(k+1)) return Pk
Pk = k*log(mu)-special.gammaln(k+1) - mu return exp(Pk)
def _pmf(self, k, mu): Pk = mu**k * exp(-mu) / arr(special.gamma(k+1)) return Pk
85d80ea629ce911f4461c01412686e9d330724db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/85d80ea629ce911f4461c01412686e9d330724db/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7755, 74, 12, 2890, 16, 417, 16, 4129, 4672, 453, 79, 273, 4129, 636, 79, 380, 1329, 19236, 13297, 13, 342, 2454, 12, 9371, 18, 20589, 12, 79, 15, 21, 3719, 327, 453, 79, 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, 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, 389, 7755, 74, 12, 2890, 16, 417, 16, 4129, 4672, 453, 79, 273, 4129, 636, 79, 380, 1329, 19236, 13297, 13, 342, 2454, 12, 9371, 18, 20589, 12, 79, 15, 21, 3719, 327, 453, 79, 2, -...
self.tablenavigation.setModel( self.navproxymodel ) self.updateModels()
self.tablenavigation.setModel( self.navproxymodel ) self.tabledetails.setModel(self.accountsProxyModel) self.tabledetails.setColumnHidden(IDCUENTA,True)
def on_actionCancel_activated( self ): """ Aca se cancela la edicion del documento """ self.editmodel = None self.tablenavigation.setModel( self.navproxymodel ) self.updateModels() self.conceptowidget.setCurrentIndex(0) self.retencionwidget.setCurrentIndex(0) self.beneficiariowidget.setCurrentIndex(0) self.cuentawidge...
874b6d5efd407a40438246e28019332bf2770ea1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11009/874b6d5efd407a40438246e28019332bf2770ea1/cheques.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1128, 6691, 67, 18836, 12, 365, 262, 30, 3536, 432, 5353, 695, 3755, 69, 7125, 1675, 335, 285, 1464, 1668, 83, 3536, 365, 18, 4619, 2284, 273, 599, 365, 18, 7032, 1897, 6417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1128, 6691, 67, 18836, 12, 365, 262, 30, 3536, 432, 5353, 695, 3755, 69, 7125, 1675, 335, 285, 1464, 1668, 83, 3536, 365, 18, 4619, 2284, 273, 599, 365, 18, 7032, 1897, 6417, ...
def app_sign(self,a):
def app_sign(self, a):
def app_sign(self,a): if a > 0: return 1 elif a < 0: return -1 else: return 0
9b5ed7f538bd37c8c8d8c2d9bb9ae3fbb0c08863 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9b5ed7f538bd37c8c8d8c2d9bb9ae3fbb0c08863/builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 67, 2977, 12, 2890, 16, 279, 4672, 309, 279, 405, 374, 30, 327, 404, 1327, 279, 411, 374, 30, 327, 300, 21, 469, 30, 327, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 595, 67, 2977, 12, 2890, 16, 279, 4672, 309, 279, 405, 374, 30, 327, 404, 1327, 279, 411, 374, 30, 327, 300, 21, 469, 30, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
request = re.search('<a href="/profile.php\?.+refid=.+">(.+)<div><form action=', line)
request = re.search('<a href="/.+.php\?.+refid=.+">(.+)</a></b><br /><table><tr><td colspan="2">', line)
def get_requests(self): requests = [] connection = web_proxy.urllib2.urlopen("http://m.facebook.com/reqs.php") messages = connection.read().split("<hr />") for line in messages: #search friend requests request = re.search('<a href="/profile.php\?.+refid=.+">(.+)<div><form action=', line) #PLEASE CHECK if request <> Non...
5ba693353a1b162320cd2de05245652bee3fc929 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/5ba693353a1b162320cd2de05245652bee3fc929/watch_sn_facebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11420, 12, 2890, 4672, 3285, 273, 5378, 1459, 273, 3311, 67, 5656, 18, 718, 2941, 22, 18, 295, 18589, 2932, 2505, 2207, 81, 18, 23130, 18, 832, 19, 25782, 18, 2684, 7923, 2743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11420, 12, 2890, 4672, 3285, 273, 5378, 1459, 273, 3311, 67, 5656, 18, 718, 2941, 22, 18, 295, 18589, 2932, 2505, 2207, 81, 18, 23130, 18, 832, 19, 25782, 18, 2684, 7923, 2743...
return n
return n
def chromatic_number(G): r""" Returns the minimal number of colors needed to color the vertices of the graph `G`. EXAMPLES:: sage: from sage.graphs.graph_coloring import chromatic_number sage: G = Graph({0:[1,2,3],1:[2]}) sage: chromatic_number(G) 3 sage: G = graphs.PetersenGraph() sage: G.chromatic_number() 3 """ ...
a468d77074137cba0ddfb241121c56cde855518e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a468d77074137cba0ddfb241121c56cde855518e/graph_coloring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8123, 2126, 67, 2696, 12, 43, 4672, 436, 8395, 2860, 326, 16745, 1300, 434, 5740, 3577, 358, 2036, 326, 6928, 434, 326, 2667, 1375, 43, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8123, 2126, 67, 2696, 12, 43, 4672, 436, 8395, 2860, 326, 16745, 1300, 434, 5740, 3577, 358, 2036, 326, 6928, 434, 326, 2667, 1375, 43, 8338, 225, 5675, 8900, 11386, 2866, 225, 272, 410,...
else: element.attrib[utils.fullname(element.nsmap[element.prefix], utils.localname(name))] = ""
else: element.attrib[utils.fullname(element.nsmap[element.prefix], utils.localname(name))] = ""
def convert_css_selectors(rules, prefix='//'): """Convert css rules to xpath rules element tree in place """ #XXX: There is a :root pseudo-class - http://www.w3.org/TR/css3-selectors/#root-pseudo # We may wish to add support to lxml.cssselect for it some day. for element in rules.xpath("//@*[namespace-uri()='%s']/.." %...
7989bc41cf2692efbe8118d18c3b7bfc6a04b503 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12188/7989bc41cf2692efbe8118d18c3b7bfc6a04b503/cssrules.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 5212, 67, 29829, 12, 7482, 16, 1633, 2218, 759, 11, 4672, 3536, 2723, 3747, 2931, 358, 6748, 2931, 930, 2151, 316, 3166, 3536, 468, 15639, 30, 6149, 353, 279, 294, 3085, 12454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5212, 67, 29829, 12, 7482, 16, 1633, 2218, 759, 11, 4672, 3536, 2723, 3747, 2931, 358, 6748, 2931, 930, 2151, 316, 3166, 3536, 468, 15639, 30, 6149, 353, 279, 294, 3085, 12454,...
def stopSimulation( self, obj ) :
def stopSimulation( self, obj=None ) :
def stopSimulation( self, obj ) :
addb904a55036e7f8202bd5f773d8c610fb9fd3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/addb904a55036e7f8202bd5f773d8c610fb9fd3a/MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 18419, 12, 365, 16, 1081, 262, 294, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 18419, 12, 365, 16, 1081, 262, 294, 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,...
pkgs_to_install = self.get_all_selected_packages(self.liststore)
pkgs_to_install = self.get_all_selected_packages(self.liststore, 1, 0)
def on_install_from_repo_button_clicked(self, button): # TODO: WARNING: To test this I have to use 'testing' repo :| repo_choice_dialog = self.all_widgets.get_widget('repo_choice_dialog') self.current_dialog = repo_choice_dialog repo_choice_combobox = self.all_widgets.get_widget('repo_choice_combobox')
93ddfe641716f80e47632e1f7b4fbc47032072bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/93ddfe641716f80e47632e1f7b4fbc47032072bf/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5425, 67, 2080, 67, 7422, 67, 5391, 67, 7475, 329, 12, 2890, 16, 3568, 4672, 468, 2660, 30, 9744, 30, 2974, 1842, 333, 467, 1240, 358, 999, 296, 3813, 310, 11, 3538, 294, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5425, 67, 2080, 67, 7422, 67, 5391, 67, 7475, 329, 12, 2890, 16, 3568, 4672, 468, 2660, 30, 9744, 30, 2974, 1842, 333, 467, 1240, 358, 999, 296, 3813, 310, 11, 3538, 294, 96...
""" face._interior_points = Sequence([], int, check=False) face._boundary_points = Sequence(face.points()[:face.nvertices()], int,
Vertices don't have boundary:: sage: f = c.faces(dim=0)[0] sage: c._face_split_points(f) sage: len(f._interior_points) 1 sage: len(f._boundary_points) 0 """ if face.npoints() == 1: face._interior_points = face.points() face._boundary_points = Sequence([], int, check=False) else: face._interior_points = Sequence([], i...
def _face_split_points(self, face): r""" Compute and cache boundary and interior lattice points of ``face``.
5848cb1a998515f42731a1fd24de9abb29cf1a25 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/5848cb1a998515f42731a1fd24de9abb29cf1a25/lattice_polytope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 865, 67, 4939, 67, 4139, 12, 2890, 16, 7945, 4672, 436, 8395, 8155, 471, 1247, 7679, 471, 26230, 16690, 3143, 434, 12176, 865, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 865, 67, 4939, 67, 4139, 12, 2890, 16, 7945, 4672, 436, 8395, 8155, 471, 1247, 7679, 471, 26230, 16690, 3143, 434, 12176, 865, 68, 8338, 2, -100, -100, -100, -100, -100, -100, -100,...
return False
return (False, always)
def add_text(page = None, addText = None, summary = None, regexSkip = None, regexSkipUrl = None, always = False, up = False, putText = True, oldTextGiven = None): if not addText: raise NoEnoughData('You have to specify what text you want to add!') if not summary: summary = wikipedia.setAction(wikipedia.translate(wikipe...
2dc5b5885dbfd71db74a77dff20c5056f8caf092 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2dc5b5885dbfd71db74a77dff20c5056f8caf092/add_text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 955, 12, 2433, 273, 599, 16, 25796, 273, 599, 16, 4916, 273, 599, 16, 3936, 6368, 273, 599, 16, 3936, 6368, 1489, 273, 599, 16, 3712, 273, 1083, 16, 731, 273, 1083, 16, 1378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 955, 12, 2433, 273, 599, 16, 25796, 273, 599, 16, 4916, 273, 599, 16, 3936, 6368, 273, 599, 16, 3936, 6368, 1489, 273, 599, 16, 3712, 273, 1083, 16, 731, 273, 1083, 16, 1378...
self.width = 0.8
self.width = 1
def __init__(self): PlotInfo.__init__(self, "clustered bar") self.bars = [] self.spacing = 0 self.width = 0.8
91c2d9e2159ffc75324e8a7945e28e85fad3fb3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11685/91c2d9e2159ffc75324e8a7945e28e85fad3fb3c/ClusteredBars.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 15211, 966, 16186, 2738, 972, 12, 2890, 16, 315, 7967, 329, 4653, 7923, 225, 365, 18, 13518, 273, 5378, 365, 18, 14080, 273, 374, 365, 18, 2819, 273, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 4672, 15211, 966, 16186, 2738, 972, 12, 2890, 16, 315, 7967, 329, 4653, 7923, 225, 365, 18, 13518, 273, 5378, 365, 18, 14080, 273, 374, 365, 18, 2819, 273, 4...
return self.__class__.__name__
return self._title or self.__class__.__name__
def title__get(self): return self.__class__.__name__
37975e42f84da61e8fe6824018b720b30d72dabd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/37975e42f84da61e8fe6824018b720b30d72dabd/servlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2077, 972, 588, 12, 2890, 4672, 327, 365, 16186, 1106, 972, 16186, 529, 972, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2077, 972, 588, 12, 2890, 4672, 327, 365, 16186, 1106, 972, 16186, 529, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
node = self.__mt.get_exit_node()
node = "$"+self.__mt.get_exit_node().idhex
def stream_status_event(self, event): if event.status == 'REMAP': octets = map(lambda x: int2bin(x).zfill(8), event.target_host.split('.')) ipbin = ''.join(octets) for network in ipv4_nonpublic: if ipbin[:len(network)] == network: handler = DataHandler() node = self.__mt.get_exit_node() plog("ERROR", "DNS Rebeind failu...
3c16e9e9660748c78ec7f90da99826c6d623b775 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3762/3c16e9e9660748c78ec7f90da99826c6d623b775/soat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1407, 67, 2327, 67, 2575, 12, 2890, 16, 871, 4672, 309, 871, 18, 2327, 422, 296, 862, 8352, 4278, 25497, 273, 852, 12, 14661, 619, 30, 509, 22, 4757, 12, 92, 2934, 94, 5935, 12, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1407, 67, 2327, 67, 2575, 12, 2890, 16, 871, 4672, 309, 871, 18, 2327, 422, 296, 862, 8352, 4278, 25497, 273, 852, 12, 14661, 619, 30, 509, 22, 4757, 12, 92, 2934, 94, 5935, 12, 28, ...
if isinstance(module, basestring):
if isinstance(module, str):
def __init__(self, module='__main__', defaultTest=None, argv=None, testRunner=TextTestRunner, testLoader=defaultTestLoader): if isinstance(module, basestring): self.module = __import__(module) for part in module.split('.')[1:]: self.module = getattr(self.module, part) else: self.module = module if argv is None: argv = ...
b96719f8561d2501efabc23559c2231ee762672a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/b96719f8561d2501efabc23559c2231ee762672a/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1605, 2218, 972, 5254, 972, 2187, 805, 4709, 33, 7036, 16, 5261, 33, 7036, 16, 1842, 9709, 33, 1528, 4709, 9709, 16, 1842, 2886, 33, 1886, 4709, 2886, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1605, 2218, 972, 5254, 972, 2187, 805, 4709, 33, 7036, 16, 5261, 33, 7036, 16, 1842, 9709, 33, 1528, 4709, 9709, 16, 1842, 2886, 33, 1886, 4709, 2886, 46...
if item in list.__getitem__(self, index-1): return list.__getitem__(self, index-1)
if item in self.list[index-1]: return self.list[index-1]
def __getitem__(self, item): if self.__len__() == 0: raise KeyError index = self.bisect(self, item) if index == 0: raise KeyError if item in list.__getitem__(self, index-1): return list.__getitem__(self, index-1) raise KeyError
ceb5841528feafa5a760412ecaeedf36fbba1e7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/ceb5841528feafa5a760412ecaeedf36fbba1e7b/mirrorlist_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 761, 4672, 309, 365, 16186, 1897, 972, 1435, 422, 374, 30, 1002, 4999, 770, 273, 365, 18, 70, 291, 386, 12, 2890, 16, 761, 13, 309, 770, 422, 374, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 761, 4672, 309, 365, 16186, 1897, 972, 1435, 422, 374, 30, 1002, 4999, 770, 273, 365, 18, 70, 291, 386, 12, 2890, 16, 761, 13, 309, 770, 422, 374, 30,...
"SizeChange":"Size change (in %)",
"SizeChange":"Max. size change (in %)",
def __init__(self): """ Initialization """ lib.ProcessingFilter.ProcessingFilter.__init__(self, (1, 1)) self.objects = [] self.readObjects = [] self.polydata = None self.objPolydata = [] self.timeStamps = [] self.imageCache = {} self.spacing = (1.0, 1.0, 1.0) self.voxelSize = (1.0, 1.0, 1.0) self.modified = 1 self.desc...
b23cf9117065fb863e61cb5faab5ad9ae47fcd09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2877/b23cf9117065fb863e61cb5faab5ad9ae47fcd09/TestData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 26586, 3536, 2561, 18, 7798, 1586, 18, 7798, 1586, 16186, 2738, 972, 12, 2890, 16, 261, 21, 16, 404, 3719, 365, 18, 6911, 273, 5378, 365, 18, 896...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 3536, 26586, 3536, 2561, 18, 7798, 1586, 18, 7798, 1586, 16186, 2738, 972, 12, 2890, 16, 261, 21, 16, 404, 3719, 365, 18, 6911, 273, 5378, 365, 18, 896...
if os.path.exists(path): paths_to_remove.add(path) elif os.path.exists(path + '.py'): paths_to_remove.add(path + '.py') if os.path.exists(path + '.pyc'): paths_to_remove.add(path + '.pyc')
paths_to_remove.add(path) paths_to_remove.add(path + '.py') paths_to_remove.add(path + '.pyc')
def uninstall(self, auto_confirm=False): """ Uninstall the distribution currently satisfying this requirement.
148ff3a8ed30471165d01398e701fae7a951917e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/148ff3a8ed30471165d01398e701fae7a951917e/req.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 3536, 1351, 5425, 326, 7006, 4551, 9281, 14946, 333, 12405, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 3536, 1351, 5425, 326, 7006, 4551, 9281, 14946, 333, 12405, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else: print lstrip(linein)
else: print rstrip(lstrip(linein)),
def processLine(linein): global level, formatMode, slides, hideComments, inBodyText lineLevel = getLineLevel(linein) if ((hideComments == 0) or (lineLevel != (find(linein,"[")+1))): if (formatMode == "simple"): print "<H" + str(lineLevel) + ">" + lstrip(linein) + "</H" + str(lineLevel) + ">" else: if (lineLevel > level...
5d9b0fe6e9c819a5a11c56a209bf18b3e56827fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/5d9b0fe6e9c819a5a11c56a209bf18b3e56827fe/otl2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 980, 2355, 273, 9851, 2355, 12, 1369, 267, 13, 309, 14015, 11248, 9051, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1670, 12, 1369, 267, 4672, 2552, 1801, 16, 740, 2309, 16, 30119, 16, 6853, 9051, 16, 316, 2250, 1528, 980, 2355, 273, 9851, 2355, 12, 1369, 267, 13, 309, 14015, 11248, 9051, 422, ...
for x in obj: wobj.append(PREFIX+"/tmp/" + x[:-4] + ".o")
for x in obj: wobj.append(PREFIX + "/tmp/" + x[:-4] + ".o")
def CompileLIB(lib=0, obj=[], opts=[]): if (lib==0): sys.exit("syntax error in CompileLIB directive") if (COMPILER=="MSVC7"): wlib = PREFIX+"/lib/" + lib wobj = xpaths(PREFIX+"/tmp/",obj,"") ALLTARGETS.append(wlib) if (older(wlib, wobj)): cmd = 'lib.exe /nologo /OUT:"' + wlib + '"' if (OPTIMIZE==4): cmd = cmd + " /LTC...
c85190276cd6a9b01b212e9fdd00c907bf653374 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c85190276cd6a9b01b212e9fdd00c907bf653374/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 14484, 12, 2941, 33, 20, 16, 1081, 22850, 6487, 1500, 33, 8526, 4672, 309, 261, 2941, 631, 20, 4672, 2589, 18, 8593, 2932, 14308, 555, 316, 16143, 14484, 8655, 7923, 225, 309, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16143, 14484, 12, 2941, 33, 20, 16, 1081, 22850, 6487, 1500, 33, 8526, 4672, 309, 261, 2941, 631, 20, 4672, 2589, 18, 8593, 2932, 14308, 555, 316, 16143, 14484, 8655, 7923, 225, 309, 261...
def __init__(self, fromFiles, toFile, mode = -1, use=None, component=None): _PutFiles.__init__(self, fromFiles, toFile, mode, use, component)
def __init__(self, fromFiles, toFile, **keywords): _PutFiles.__init__(self, fromFiles, toFile, **keywords)
def __init__(self, fromFiles, toFile, mode = -1, use=None, component=None):
fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/fe27d4ad6ae0ded6abdad24608dcfc91c29d3e4d/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 628, 2697, 16, 24381, 16, 1965, 273, 300, 21, 16, 999, 33, 7036, 16, 1794, 33, 7036, 4672, 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, 1001, 2738, 972, 12, 2890, 16, 628, 2697, 16, 24381, 16, 1965, 273, 300, 21, 16, 999, 33, 7036, 16, 1794, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.session.exchange_declare(exchange="test_different_declared_type_exchange", type="direct") try: self.session.exchange_declare(exchange="test_different_declared_type_exchange", type="topic")
self.exchange_declare(exchange="test_different_declared_type_exchange", type="direct") try: session = self.conn.session("alternate", 2) session.exchange_declare(exchange="test_different_declared_type_exchange", type="topic")
def testDifferentDeclaredType(self): self.session.exchange_declare(exchange="test_different_declared_type_exchange", type="direct") try: self.session.exchange_declare(exchange="test_different_declared_type_exchange", type="topic") self.fail("Expected 530 for redeclaration of exchange with different type.") except Close...
74701253cb10e3ca35e613669e068da23ae2bc7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/197/74701253cb10e3ca35e613669e068da23ae2bc7b/exchange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26270, 18888, 559, 12, 2890, 4672, 365, 18, 16641, 67, 29554, 12, 16641, 1546, 3813, 67, 30738, 67, 16571, 67, 723, 67, 16641, 3113, 618, 1546, 7205, 7923, 775, 30, 1339, 273, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26270, 18888, 559, 12, 2890, 4672, 365, 18, 16641, 67, 29554, 12, 16641, 1546, 3813, 67, 30738, 67, 16571, 67, 723, 67, 16641, 3113, 618, 1546, 7205, 7923, 775, 30, 1339, 273, 365,...
self.text.append("\n")
self.text.append(self.new_line)
def process_preformatted_item(self, node): if node.hasAttribute("class"): class_ = node.getAttribute("class") else: class_ = None if class_ == "comment": # we currently use this for stuff like ## or #acl for i in node.childNodes: if i.nodeType == Node.TEXT_NODE: self.text.append(i.data) #print "'%s'" % i.data elif i.lo...
4b03df1cf340caeb2a0e882fb5c853890be75c31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/4b03df1cf340caeb2a0e882fb5c853890be75c31/text_html_text_x_moin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1484, 14897, 67, 1726, 12, 2890, 16, 756, 4672, 309, 756, 18, 5332, 1499, 2932, 1106, 6, 4672, 667, 67, 273, 756, 18, 588, 1499, 2932, 1106, 7923, 469, 30, 667, 67, 273, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1484, 14897, 67, 1726, 12, 2890, 16, 756, 4672, 309, 756, 18, 5332, 1499, 2932, 1106, 6, 4672, 667, 67, 273, 756, 18, 588, 1499, 2932, 1106, 7923, 469, 30, 667, 67, 273, 59...
setattr(self.obj, self._p, roles)
setattr(obj, self._p, roles)
def setRoles(self, roles):
ea8fc9410ad41b64bbd798b242a91f8dd7471d56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/ea8fc9410ad41b64bbd798b242a91f8dd7471d56/Permission.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 6898, 12, 2890, 16, 4900, 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, 444, 6898, 12, 2890, 16, 4900, 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...
dialog = eg.MessageDialog(parent, message, caption, style|wx.STAY_ON_TOP)
if parent is None: style |= wx.STAY_ON_TOP dialog = eg.MessageDialog(parent, message, caption, style)
def MessageBox(message, caption=eg.APP_NAME, style=wx.OK, parent=None): dialog = eg.MessageDialog(parent, message, caption, style|wx.STAY_ON_TOP) result = dialog.ShowModal() dialog.Destroy() return result
59d7601ff70f5c8f69e6dc31d4aae60c63d7019f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/59d7601ff70f5c8f69e6dc31d4aae60c63d7019f/Core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2350, 3514, 12, 2150, 16, 11006, 33, 1332, 18, 7215, 67, 1985, 16, 2154, 33, 27226, 18, 3141, 16, 982, 33, 7036, 4672, 309, 982, 353, 599, 30, 2154, 5626, 7075, 18, 882, 5255, 67, 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, 2350, 3514, 12, 2150, 16, 11006, 33, 1332, 18, 7215, 67, 1985, 16, 2154, 33, 27226, 18, 3141, 16, 982, 33, 7036, 4672, 309, 982, 353, 599, 30, 2154, 5626, 7075, 18, 882, 5255, 67, 67...
outputs = self.mpd.outputs() print 'i got %d output(s)' % len(outputs) for output in outputs: print "here's an output" print " id:", output.outputid print " name:", output.outputname print " enabled:", ('no', 'yes')[int(output.outputenabled)]
def initializeConnection(self): self.mpd.getStatus() dprint(self.mpd.last_status) outputs = self.mpd.outputs()
5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9/mpd_major_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 1952, 12, 2890, 4672, 365, 18, 1291, 72, 18, 588, 1482, 1435, 302, 1188, 12, 2890, 18, 1291, 72, 18, 2722, 67, 2327, 13, 225, 6729, 273, 365, 18, 1291, 72, 18, 12295, 1435, 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, 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, 4046, 1952, 12, 2890, 4672, 365, 18, 1291, 72, 18, 588, 1482, 1435, 302, 1188, 12, 2890, 18, 1291, 72, 18, 2722, 67, 2327, 13, 225, 6729, 273, 365, 18, 1291, 72, 18, 12295, 1435, 2, ...
for cs in ('us-ascii', 'utf-8'):
try: s.decode('us-ascii') except UnicodeDecodeError:
def mimetextpatch(s, subtype='plain', display=False): '''If patch in utf-8 transfer-encode it.''' if not display: for cs in ('us-ascii', 'utf-8'): try: s.decode(cs) return email.MIMEText.MIMEText(s, subtype, cs) except UnicodeDecodeError: pass return email.MIMEText.MIMEText(s, subtype)
4dbef50cb4e28551226615a337e607e080a11924 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/4dbef50cb4e28551226615a337e607e080a11924/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 27830, 2272, 12, 87, 16, 12308, 2218, 7446, 2187, 2562, 33, 8381, 4672, 9163, 2047, 4729, 316, 7718, 17, 28, 7412, 17, 3015, 518, 1093, 6309, 309, 486, 2562, 30, 775, 30, 272, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20369, 27830, 2272, 12, 87, 16, 12308, 2218, 7446, 2187, 2562, 33, 8381, 4672, 9163, 2047, 4729, 316, 7718, 17, 28, 7412, 17, 3015, 518, 1093, 6309, 309, 486, 2562, 30, 775, 30, 272, 1...
if zip_bool:
if zip_bool: ziplock.acquire() try: compress_the_file(zip_type_file, sFile, sSourceDir) os.remove(sFile) finally: ziplock.release() elif exit_status == True: if zip_bool: ziplock.acquire() try:
def run(request, response, func=download_from_web): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running once an item is None.''' name = currentThread().getName() while 1: item = request.get() if item is None: break (sUrl, sF...
9c27bc1a32b99b38cf401a7be5d2fe4720312e76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12499/9c27bc1a32b99b38cf401a7be5d2fe4720312e76/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 7813, 67, 2080, 67, 4875, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 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, 1086, 12, 2293, 16, 766, 16, 1326, 33, 7813, 67, 2080, 67, 4875, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
and socket.gethostbyname(host) in (localhost(), thishost()):
and socket.gethostbyname(host) in (localhost(), thishost()):
def open_local_file(self, url): """Use local file.""" import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: urlfile = file if file[:1] == '/': urlfile = 'file://'...
8506909c44a6b0645a42b6f6848e0010d5beb032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8506909c44a6b0645a42b6f6848e0010d5beb032/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 3536, 3727, 1191, 585, 12123, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 3536, 3727, 1191, 585, 12123, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718...
xlen=ord(self.fileobj.read(1)) xlen=xlen+256*ord(self.fileobj.read(1))
xlen = ord(self.fileobj.read(1)) xlen = xlen + 256*ord(self.fileobj.read(1))
def _read_gzip_header(self): magic = self.fileobj.read(2) if magic != '\037\213': raise IOError, 'Not a gzipped file' method = ord( self.fileobj.read(1) ) if method != 8: raise IOError, 'Unknown compression method' flag = ord( self.fileobj.read(1) ) # modtime = self.fileobj.read(4) # extraflag = self.fileobj.read(1) # ...
a3b1b80f70341d58a3a53680b6a6c31c37f5ce92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a3b1b80f70341d58a3a53680b6a6c31c37f5ce92/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 17380, 67, 3374, 12, 2890, 4672, 8146, 273, 365, 18, 768, 2603, 18, 896, 12, 22, 13, 309, 8146, 480, 2337, 4630, 27, 64, 22, 3437, 4278, 1002, 8340, 16, 296, 1248, 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, 389, 896, 67, 17380, 67, 3374, 12, 2890, 4672, 8146, 273, 365, 18, 768, 2603, 18, 896, 12, 22, 13, 309, 8146, 480, 2337, 4630, 27, 64, 22, 3437, 4278, 1002, 8340, 16, 296, 1248, 279,...
hpane.add1(sidebar)
hbox.pack_start(sidebar)
def __init__(self, handle): """Set up the Pippy activity.""" super(PippyActivity, self).__init__(handle) self._logger = logging.getLogger('pippy-activity')
c0e1917cf0d4900abd5013a385d6af6f05895e07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7610/c0e1917cf0d4900abd5013a385d6af6f05895e07/pippy_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 3536, 694, 731, 326, 29305, 2074, 5728, 12123, 2240, 12, 24925, 2074, 6193, 16, 365, 2934, 972, 2738, 972, 12, 4110, 13, 365, 6315, 4901, 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, 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, 1640, 4672, 3536, 694, 731, 326, 29305, 2074, 5728, 12123, 2240, 12, 24925, 2074, 6193, 16, 365, 2934, 972, 2738, 972, 12, 4110, 13, 365, 6315, 4901, 273, ...
cmds.append('USE="'+self.settings["HOSTUSE"]+'"')
cmds.append('USE="'+string.join(self.settings["HOSTUSE"])+'"')
def chroot_setup(self): cmd("cp /etc/resolv.conf "+self.settings["chroot_path"]+"/etc","Could not copy resolv.conf into place.") myconf=open(self.settings["chroot_path"]+"/etc/make.conf","r") mylines=myconf.readlines() myconf.close() pos = 0 while pos < len(mylines): if mylines[pos][:16]=="# catalyst start": while (pos...
486345ee49bf0d12ab64903aa75f1387fae53b87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/486345ee49bf0d12ab64903aa75f1387fae53b87/targets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 462, 3085, 67, 8401, 12, 2890, 4672, 1797, 2932, 4057, 342, 14175, 19, 7818, 90, 18, 3923, 13773, 2890, 18, 4272, 9614, 343, 3085, 67, 803, 6, 3737, 6, 19, 14175, 15937, 4445, 486, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 462, 3085, 67, 8401, 12, 2890, 4672, 1797, 2932, 4057, 342, 14175, 19, 7818, 90, 18, 3923, 13773, 2890, 18, 4272, 9614, 343, 3085, 67, 803, 6, 3737, 6, 19, 14175, 15937, 4445, 486, 161...
v=v.make_mi(args,kwargs) if isinstance(v,Method):
mods.append((k, v)) elif isinstance(v,Method):
def make_mi(self, *args, **kwargs): meth=[]#we put the method after the member to be sure of the ordering. for k,v in self.local_attr.iteritems(): if isinstance(v,Module): v=v.make_mi(args,kwargs) if isinstance(v,Method): meth.append((k,v)) else: v = self.__wrapper__(v) try: self[k] = v except: if isinstance(v, Compone...
aeffaed7f6637ab17b761f4a684704cd859c4b2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/aeffaed7f6637ab17b761f4a684704cd859c4b2e/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 9197, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 7917, 33, 8526, 7, 1814, 1378, 326, 707, 1839, 326, 3140, 358, 506, 3071, 434, 326, 9543, 18, 364, 417, 16, 90, 316, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 9197, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 7917, 33, 8526, 7, 1814, 1378, 326, 707, 1839, 326, 3140, 358, 506, 3071, 434, 326, 9543, 18, 364, 417, 16, 90, 316, 36...
line1 = axvline(x=percentiles[0], ymin=0, ymax=max(histoList), color='g', label='50th percentile', linewidth=2, linestyle='--') line2 = axvline(x=percentiles[1], ymin=0, ymax=max(histoList), color='m', label='95th percentile', linewidth=2, linestyle='--') line3 = axvline(x=percentiles[2], ymin=0, ymax=max(histoList), c...
line1 = pylab.axvline(x=percentiles[0], ymin=0, ymax=max(histoList), color='g', label='50th percentile', linewidth=2, linestyle='--') line2 = pylab.axvline(x=percentiles[1], ymin=0, ymax=max(histoList), color='m', label='95th percentile', linewidth=2, linestyle='--') line3 = pylab.axvline(x=percentiles[2], ymin=0, ymax...
def plotHistogram(chan,opts,distribution,histoList,binList,figNumber,percentiles=None,candidate=None,candidateRank=None): parameter = distribution.split('-')[0] step = binList[1] - binList[0] counter = sum(histoList) xlimInf = min(binList) if candidate and not parameter == 'dt': xlimSup = max(max(binList),candidate ...
fd13c4566cb6da062a6e5ba73e68bd260af90c85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/fd13c4566cb6da062a6e5ba73e68bd260af90c85/analyseQscan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12874, 12, 7472, 16, 4952, 16, 16279, 16, 11488, 83, 682, 16, 4757, 682, 16, 470, 1854, 16, 8849, 1449, 33, 7036, 16, 19188, 33, 7036, 16, 19188, 12925, 33, 7036, 4672, 225, 1569...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3207, 12874, 12, 7472, 16, 4952, 16, 16279, 16, 11488, 83, 682, 16, 4757, 682, 16, 470, 1854, 16, 8849, 1449, 33, 7036, 16, 19188, 33, 7036, 16, 19188, 12925, 33, 7036, 4672, 225, 1569...
for reg in self.ignore: found = reg.search(entry) if found: ignore = True continue
if self.ignore: for reg in self.ignore: found = reg.search(entry) if found: ignore = True continue
def getLogentryList(self, logEntries): logentryList = [] for entry in logEntries: ignore = False for reg in self.ignore: found = reg.search(entry) if found: ignore = True continue if ignore: continue if 'level-' in entry or "testResult" in entry: entryDict = { "level" : "info", "message" : entry } if "level-error" in ...
c669adde24710f434b837da02218493181885817 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/c669adde24710f434b837da02218493181885817/simulationLogParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9189, 4099, 682, 12, 2890, 16, 613, 5400, 4672, 613, 4099, 682, 273, 5378, 364, 1241, 316, 613, 5400, 30, 2305, 273, 1083, 309, 365, 18, 6185, 30, 364, 960, 316, 365, 18, 6185, 30, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9189, 4099, 682, 12, 2890, 16, 613, 5400, 4672, 613, 4099, 682, 273, 5378, 364, 1241, 316, 613, 5400, 30, 2305, 273, 1083, 309, 365, 18, 6185, 30, 364, 960, 316, 365, 18, 6185, 30, 1...
self.bounds.height - 1),
self.bounds.height - 1),
def Draw(self, dc): # @@@ Scaffolding dc.SetBrush(wx.Brush(wx.Color(180, 192, 121))) dc.DrawRoundedRectangle((1, 1), (self.bounds.width - 1, self.bounds.height - 1), radius=10) dc.SetTextForeground(wx.BLACK) dc.SetFont(wx.SWISS_FONT) time = self.item.startTime dc.DrawText(time.Format('%I:%M %p'), (10, 0)) dc.DrawText(s...
e3020fd766701978ddfa6b92ed9db8fc1b488f21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3020fd766701978ddfa6b92ed9db8fc1b488f21/CalendarBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 12, 2890, 16, 6744, 4672, 468, 22175, 36, 2850, 14847, 310, 6744, 18, 694, 19114, 1218, 12, 27226, 18, 19114, 1218, 12, 27226, 18, 2957, 12, 18278, 16, 20217, 16, 2593, 21, 20349,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10184, 12, 2890, 16, 6744, 4672, 468, 22175, 36, 2850, 14847, 310, 6744, 18, 694, 19114, 1218, 12, 27226, 18, 19114, 1218, 12, 27226, 18, 2957, 12, 18278, 16, 20217, 16, 2593, 21, 20349,...
if pps_check[0]: LCG.updateGangaJobStatus(job,info['status']) job.backend.exitcode = 0 else: job.updateStatus("failed") if pps_check[1] != 0: job.backend.reason = 'non-zero app. exit code: %s' % pps_check[1] job.backend.exitcode = pps_check[1]
if job.status == 'submitted': job.updateStatus('running') downloader = get_lcg_output_downloader() downloader.addTask(grids[mt], job, False) else: LCG.updateGangaJobStatus(job,info['status'])
def updateMonitoringInformation(jobs): '''Monitoring loop for normal jobs''' jobdict = dict([ [job.backend.id,job] for job in jobs if job.backend.id ])
3019ec399bbd17c5689a3ba2e36a8b30bce34c95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/3019ec399bbd17c5689a3ba2e36a8b30bce34c95/LCG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 18410, 5369, 12, 10088, 4672, 9163, 18410, 2798, 364, 2212, 6550, 26418, 225, 1719, 1576, 282, 273, 2065, 3816, 306, 4688, 18, 9993, 18, 350, 16, 4688, 65, 364, 1719, 316, 6550, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 18410, 5369, 12, 10088, 4672, 9163, 18410, 2798, 364, 2212, 6550, 26418, 225, 1719, 1576, 282, 273, 2065, 3816, 306, 4688, 18, 9993, 18, 350, 16, 4688, 65, 364, 1719, 316, 6550, 30...
return "success"
return "success"
def Do(hardhatScript, mode, workingDir, outputDir, cvsVintage, buildVersion, log): testDir = os.path.join(workingDir, "chandler") os.chdir(testDir) if mode == "debug": dashT = '-dvt' else: dashT = '-vrt' try: # test print "Testing " + mode log.write("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n") ...
40ee44aed727ce75253439a389ee757bc1186ddd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/40ee44aed727ce75253439a389ee757bc1186ddd/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 276, 6904, 58, 474, 410, 16, 1361, 1444, 16, 613, 4672, 225, 1842, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2256, 12, 20379, 11304, 3651, 16, 1965, 16, 5960, 1621, 16, 21412, 16, 276, 6904, 58, 474, 410, 16, 1361, 1444, 16, 613, 4672, 225, 1842, 1621, 273, 1140, 18, 803, 18, 5701, 12, 20478,...
Manufacturer=u"Martin v. L\xf6wis")
Manufacturer=u"Python Software Foundation")
def build_database(): """Generate an empty database, with just the schema and the Summary information stream.""" if snapshot: uc = upgrade_code_snapshot else: uc = upgrade_code # schema represents the installer 2.0 database schema. # sequence is the set of standard sequences # (ui/execute, admin/advt/install) db = msil...
b94ecdc0ece7a1efccd28452c2c5e9f6b92558fe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/b94ecdc0ece7a1efccd28452c2c5e9f6b92558fe/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 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, 1361, 67, 6231, 13332, 3536, 4625, 392, 1008, 2063, 16, 598, 2537, 326, 1963, 471, 326, 17967, 1779, 1407, 12123, 309, 4439, 30, 6232, 273, 8400, 67, 710, 67, 11171, 469, 30, 6232, 273, ...
cty.c_int, [cty.POINTER(FL_OBJECT)],
cty.c_int, [cty.POINTER(FL_OBJECT)],
def fl_get_formbrowser_xoffset(ob): """ fl_get_formbrowser_xoffset(ob) -> num. """ retval = _fl_get_formbrowser_xoffset(ob) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 687, 11213, 67, 92, 3348, 12, 947, 4672, 3536, 1183, 67, 588, 67, 687, 11213, 67, 92, 3348, 12, 947, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 687, 11213, 67, 92, 3348, 12, 947, 4672, 3536, 1183, 67, 588, 67, 687, 11213, 67, 92, 3348, 12, 947, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588, ...
all_roles = run_sql("""SELECT id, name, description FROM accROLE ORDER BY id """)
all_roles = acca.acc_getAllRoles()
def perform_deleteuserrole(req, id_role='0', id_user='0', reverse=0, confirm=0): """delete connection between role and user. id_role - id of role to disconnect id_user - id of user to disconnect. """ if not is_adminuser(req): return mustloginpage(req) title = 'Delete user from role' email_user = acca.acc_getUserEma...
911068548336831a628cc7a6d8a3e449446b6170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1931/911068548336831a628cc7a6d8a3e449446b6170/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 3733, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 612, 67, 1355, 2218, 20, 2187, 4219, 33, 20, 16, 6932, 33, 20, 4672, 3536, 3733, 1459, 3086, 2478, 471, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 3733, 1355, 4615, 12, 3658, 16, 612, 67, 4615, 2218, 20, 2187, 612, 67, 1355, 2218, 20, 2187, 4219, 33, 20, 16, 6932, 33, 20, 4672, 3536, 3733, 1459, 3086, 2478, 471, 729, ...
print 'encontre costo inicccc'
def procesar_producto(self, cr, uid, ids, prod_id, Dict, loc_ids, inter_loc_ids, prod_loc_ids, pending=False): ''' Concepto de prueba de Humberto Arocha para procesamiento recursivo de de stock card line ''' rpp_obj = self.pool.get('report.profit.picking') sc_line_obj = self.pool.get('stock.card.line') product = Dict[p...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 450, 764, 297, 67, 5896, 83, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10791, 67, 350, 16, 9696, 16, 1515, 67, 2232, 16, 1554, 67, 1829, 67, 2232, 16, 10791, 67, 1829, 67, 2232, ...
username=None, password=None):
username=None, password=None, no_auth_cache='false'):
def checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None): """Perform a checkout from a Subversion repository. :param ctxt: the build context :type ctxt: `Context` :param url: the URL of the repository :param path: the path inside the repository :param...
fcc056d2901e1ad7877afe0e01b69fe3f169371d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4547/fcc056d2901e1ad7877afe0e01b69fe3f169371d/svntools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13926, 12, 20364, 16, 880, 16, 589, 33, 7036, 16, 6350, 33, 7036, 16, 1577, 67, 2218, 1093, 16, 3988, 2218, 5743, 2187, 5116, 67, 803, 33, 7036, 16, 2718, 33, 7036, 16, 2201, 33, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13926, 12, 20364, 16, 880, 16, 589, 33, 7036, 16, 6350, 33, 7036, 16, 1577, 67, 2218, 1093, 16, 3988, 2218, 5743, 2187, 5116, 67, 803, 33, 7036, 16, 2718, 33, 7036, 16, 2201, 33, 703...
if self.app_ns.summary.contents.getFirstSelectedItem().displayName != 'Verisign/RSA Secure Server CA': self.logger.endAction(False, "RSA certificate not first selected certificate in summary list")
if self.app_ns.summary.contents.getFirstSelectedItem().displayName != 'Go Daddy Class 2 CA': self.logger.endAction(False, "Go Daddy certificate not first selected certificate in summary list")
def exactlyOneSidebarCollectionNamed(name): """ Look for a sidebar collection with name, otherwise return False """ self.logger.startAction("Checking that we have exactly one collection named %s" % name) entries = [] sidebarWidget = self.app_ns.sidebar.widget for i in range(sidebarWidget.GetNumberRows()): collection = ...
6fba9f040fa867d61dbce4dc3386c856a54a7be9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/6fba9f040fa867d61dbce4dc3386c856a54a7be9/TestCertstoreView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8950, 3335, 8895, 3215, 2532, 7604, 12, 529, 4672, 3536, 10176, 364, 279, 23364, 1849, 598, 508, 16, 3541, 327, 1083, 3536, 365, 18, 4901, 18, 1937, 1803, 2932, 14294, 716, 732, 1240, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8950, 3335, 8895, 3215, 2532, 7604, 12, 529, 4672, 3536, 10176, 364, 279, 23364, 1849, 598, 508, 16, 3541, 327, 1083, 3536, 365, 18, 4901, 18, 1937, 1803, 2932, 14294, 716, 732, 1240, 89...
zValueFiles=fnmatch.filter(wikiFileFinder.get_RDS_R_L1(),\ "*/%s_RDS_*/%s/*summary.txt"%(sngl.ifo,sngl.time))
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
fb84ac33aba836b8fcb61075cfaec34ced2846c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/fb84ac33aba836b8fcb61075cfaec34ced2846c0/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
sp.set('style', sp.get('style', '')+'page-break-before:avoid;page-break-after:avoid')
if not self.splitting_on_page_breaks: sp.set('style', sp.get('style', '')+'page-break-before:avoid;page-break-after:avoid')
def fix_split_point(sp): sp.set('style', sp.get('style', '')+'page-break-before:avoid;page-break-after:avoid')
4405063cd8c4009a520c2216fd619255395b42d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/4405063cd8c4009a520c2216fd619255395b42d2/split.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 67, 4939, 67, 1153, 12, 1752, 4672, 309, 486, 365, 18, 4939, 1787, 67, 265, 67, 2433, 67, 29292, 30, 1694, 18, 542, 2668, 4060, 2187, 1694, 18, 588, 2668, 4060, 2187, 28707, 6797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 4939, 67, 1153, 12, 1752, 4672, 309, 486, 365, 18, 4939, 1787, 67, 265, 67, 2433, 67, 29292, 30, 1694, 18, 542, 2668, 4060, 2187, 1694, 18, 588, 2668, 4060, 2187, 28707, 6797...
if True: record0.write(pack('>I', 0xffffffff)) record0.write(pack('>I', 0xffffffff)) record0.write(pack('>I', 0xffffffff)) record0.write(pack('>I', 1)) else:
if FCIS_FLIS :
def _generate_record0(self): metadata = self._oeb.metadata exth = self._build_exth() last_content_record = len(self._records) - 1 if INDEXING and self._indexable: self._generate_end_records() record0 = StringIO() # The PalmDOC Header record0.write(pack('>HHIHHHH', self._compression, 0, self._text_length, self._text_nre...
17003b9d32c40e4f9708fc57425e196de0b035e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/17003b9d32c40e4f9708fc57425e196de0b035e6/writer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 3366, 20, 12, 2890, 4672, 1982, 273, 365, 6315, 15548, 70, 18, 4165, 1110, 76, 273, 365, 6315, 3510, 67, 408, 76, 1435, 1142, 67, 1745, 67, 3366, 273, 562, 12, 2890, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7163, 67, 3366, 20, 12, 2890, 4672, 1982, 273, 365, 6315, 15548, 70, 18, 4165, 1110, 76, 273, 365, 6315, 3510, 67, 408, 76, 1435, 1142, 67, 1745, 67, 3366, 273, 562, 12, 2890, 6...
if(self.getsockname()[1] == 0):
try: if(self.getsockname()[1] == 0): self.bind(('', port)) except:
def __init__(self, port=0, sock=None): Socket.__init__(self, socket.AF_INET, socket.SOCK_DGRAM, sock) if(self.getsockname()[1] == 0): self.bind(('', port)) self.settimeout(0)
ada376dfd4f0e63beb8d9b124939d1d3288db810 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2157/ada376dfd4f0e63beb8d9b124939d1d3288db810/Network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 33, 20, 16, 7313, 33, 7036, 4672, 8758, 16186, 2738, 972, 12, 2890, 16, 2987, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1756, 33, 20, 16, 7313, 33, 7036, 4672, 8758, 16186, 2738, 972, 12, 2890, 16, 2987, 18, 6799, 67, 18819, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 16, 7...
trigger_ebizzy (stress, duration, background)
trigger_ebizzy (stress, duration, background, pinned)
def trigger_workld(workload, stress, duration, background): ''' Triggers workload passed as argument. Number of threads triggered is based on stress value. ''' try: if workload == "ebizzy": trigger_ebizzy (stress, duration, background) if workload == "kernbench": trigger_kernbench (stress, background) except Exception,...
7e317cf245129f7953ff7f037d0049e18fc16e09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/7e317cf245129f7953ff7f037d0049e18fc16e09/sched_mc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3080, 67, 1252, 1236, 12, 1252, 945, 16, 384, 663, 16, 3734, 16, 5412, 4672, 9163, 840, 8060, 1440, 945, 2275, 487, 1237, 18, 3588, 434, 7403, 10861, 353, 2511, 603, 384, 663, 460, 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, 3080, 67, 1252, 1236, 12, 1252, 945, 16, 384, 663, 16, 3734, 16, 5412, 4672, 9163, 840, 8060, 1440, 945, 2275, 487, 1237, 18, 3588, 434, 7403, 10861, 353, 2511, 603, 384, 663, 460, 18,...
if not dmtoken: error = dm.DeviceManagementResponse.DEVICE_MANAGEMENT_TOKEN_INVALID elif not self._server.LookupDevice(dmtoken): error = dm.DeviceManagementResponse.DEVICE_NOT_FOUND else: return (dmtoken, None)
if not dmtoken: error = dm.DeviceManagementResponse.DEVICE_MANAGEMENT_TOKEN_INVALID elif not self._server.LookupDevice(dmtoken): error = dm.DeviceManagementResponse.DEVICE_NOT_FOUND else: return (dmtoken, None)
def CheckToken(self): """Helper for checking whether the client supplied a valid DM token.
737c439fbd7975807f67bb10c4fdb33a62892156 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/737c439fbd7975807f67bb10c4fdb33a62892156/device_management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 1345, 12, 2890, 4672, 3536, 2276, 364, 6728, 2856, 326, 1004, 4580, 279, 923, 30072, 1147, 18, 2, 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, 2073, 1345, 12, 2890, 4672, 3536, 2276, 364, 6728, 2856, 326, 1004, 4580, 279, 923, 30072, 1147, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for data in details: item_to_modify.add_detail(data)
if not alreadyInCart: for data in details: item_to_modify.add_detail(data)
def add_item(self, chosen_item, number_added, details={}): needs_add = False try: item_to_modify = self.cartitem_set.filter(product__id = chosen_item.id)[0] # Custom Products will not be added, they will each get their own line item #TODO: More sophisticated checks to make sure the options really are different if 'Cu...
e357f1f84ba3a61f9672bfe1766092774cdf8882 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/e357f1f84ba3a61f9672bfe1766092774cdf8882/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1726, 12, 2890, 16, 10447, 67, 1726, 16, 1300, 67, 9665, 16, 3189, 12938, 4672, 4260, 67, 1289, 273, 1083, 225, 775, 30, 761, 67, 869, 67, 17042, 273, 225, 365, 18, 11848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1726, 12, 2890, 16, 10447, 67, 1726, 16, 1300, 67, 9665, 16, 3189, 12938, 4672, 4260, 67, 1289, 273, 1083, 225, 775, 30, 761, 67, 869, 67, 17042, 273, 225, 365, 18, 11848, 1...
if type(alias) in StringTypes:
if isinstance(alias, basestring):
def _resolve_alias(self, alias): if type(alias) in StringTypes: try: return self.aliases[alias] except KeyError: pass raise ValueError
02a3ef9147675cde8422ffbe96a90d929365bddb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/02a3ef9147675cde8422ffbe96a90d929365bddb/connectioncache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 4930, 12, 2890, 16, 2308, 4672, 309, 1549, 12, 4930, 16, 10699, 4672, 775, 30, 327, 365, 18, 13831, 63, 4930, 65, 1335, 4999, 30, 1342, 1002, 2068, 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, 389, 10828, 67, 4930, 12, 2890, 16, 2308, 4672, 309, 1549, 12, 4930, 16, 10699, 4672, 775, 30, 327, 365, 18, 13831, 63, 4930, 65, 1335, 4999, 30, 1342, 1002, 2068, 2, -100, -100, -100,...
os.environ["HGRCPATH"] = ""
def run_one(test): '''tristate output: None -> skipped True -> passed False -> failed''' vlog("# Test", test) if not verbose: sys.stdout.write('.') sys.stdout.flush() err = os.path.join(TESTDIR, test+".err") ref = os.path.join(TESTDIR, test+".out") if os.path.exists(err): os.remove(err) # Remove any previous o...
4a625cb435a0e709e38f5fc97973a000add0101c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/4a625cb435a0e709e38f5fc97973a000add0101c/run-tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 476, 12, 3813, 4672, 9163, 313, 376, 340, 876, 30, 599, 317, 9700, 1053, 317, 2275, 1083, 317, 2535, 26418, 225, 331, 1330, 2932, 7, 7766, 3113, 1842, 13, 309, 486, 3988, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 476, 12, 3813, 4672, 9163, 313, 376, 340, 876, 30, 599, 317, 9700, 1053, 317, 2275, 1083, 317, 2535, 26418, 225, 331, 1330, 2932, 7, 7766, 3113, 1842, 13, 309, 486, 3988, 30,...
self.__commands = sum([self.completions(chr(97+n)) for n in range(26)], [])
self.__commands = sum([self.completions(chr(97+n), verbose=verbose) for n in range(26)], [])
def _commands(self): """ Return list of all commands defined in Maxima. """ try: return self.__commands except AttributeError: self.__commands = sum([self.completions(chr(97+n)) for n in range(26)], []) return self.__commands
27b52778f34947a11ed11c466f5d54d57304fd47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/27b52778f34947a11ed11c466f5d54d57304fd47/maxima.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7847, 12, 2890, 4672, 3536, 2000, 666, 434, 777, 4364, 2553, 316, 4238, 13888, 18, 3536, 775, 30, 327, 365, 16186, 7847, 1335, 6394, 30, 365, 16186, 7847, 273, 2142, 3816, 2890, 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, 389, 7847, 12, 2890, 4672, 3536, 2000, 666, 434, 777, 4364, 2553, 316, 4238, 13888, 18, 3536, 775, 30, 327, 365, 16186, 7847, 1335, 6394, 30, 365, 16186, 7847, 273, 2142, 3816, 2890, 18,...
return False
return True
def registerWritten(self, length): """Called by protocol to tell us more bytes were written.""" # Check if there are bytes available to write if self.writeAvailable > 0: self.writeAvailable -= length return True return False
58eccda74a195382b889cef4bef5351d7ade115f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/665/58eccda74a195382b889cef4bef5351d7ade115f/policies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12643, 12, 2890, 16, 769, 4672, 3536, 8185, 635, 1771, 358, 9276, 584, 1898, 1731, 4591, 5941, 12123, 468, 2073, 309, 1915, 854, 1731, 2319, 358, 1045, 309, 365, 18, 2626, 5268, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 12643, 12, 2890, 16, 769, 4672, 3536, 8185, 635, 1771, 358, 9276, 584, 1898, 1731, 4591, 5941, 12123, 468, 2073, 309, 1915, 854, 1731, 2319, 358, 1045, 309, 365, 18, 2626, 5268, 40...
for path, headers in walk_mail(mailbox, num): parts.append((headers, self._fetch(mailbox, num, path)))
for path, headers in collected: parts.append((headers, self.fetcher(uid, path)))
def fetch_content(inner, self, mailbox, filter): yield inner.thread(mailbox.noop)
03f9267fe39b8fc29637e9fabadc16ea290e1fb0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/03f9267fe39b8fc29637e9fabadc16ea290e1fb0/imapbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 1745, 12, 7872, 16, 365, 16, 14187, 16, 1034, 4672, 2824, 3443, 18, 5930, 12, 4408, 2147, 18, 2135, 556, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2158, 67, 1745, 12, 7872, 16, 365, 16, 14187, 16, 1034, 4672, 2824, 3443, 18, 5930, 12, 4408, 2147, 18, 2135, 556, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
assert self.clipboard_contents != None
if self.clipboard_contents is None: return
def do_paste(self, clipboard, selection_data, data): assert self.clipboard_contents != None self.begin_user_action() it = self.get_iter_at_mark(self.get_insert()) insert_buffer_contents(self, it, self.clipboard_contents) self.end_user_action()
a76fa87dad428418c50910edb1869f39eced18bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/a76fa87dad428418c50910edb1869f39eced18bf/richtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 29795, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 501, 4672, 309, 365, 18, 14161, 3752, 67, 3980, 353, 599, 30, 225, 327, 225, 365, 18, 10086, 67, 1355, 67, 1128, 1435, 518...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29795, 12, 2890, 16, 20304, 16, 4421, 67, 892, 16, 501, 4672, 309, 365, 18, 14161, 3752, 67, 3980, 353, 599, 30, 225, 327, 225, 365, 18, 10086, 67, 1355, 67, 1128, 1435, 518...
def make_local_SDPSession(self, inv, full_local_path, acceptor): local_ip = acceptor.getHost().host
def make_local_SDPSession(self, inv, full_local_path): local_ip = self.acceptor.getHost().host
def make_local_SDPSession(self, inv, full_local_path, acceptor): local_ip = acceptor.getHost().host return SDPSession(local_ip, connection=SDPConnection(local_ip), media=[self.make_local_SDPMedia(full_local_path)])
86486162e8822068c3835c02e4ea7cd8afd6a0ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3449/86486162e8822068c3835c02e4ea7cd8afd6a0ba/chatroom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3729, 67, 55, 8640, 2157, 12, 2890, 16, 2198, 16, 1983, 67, 3729, 67, 803, 4672, 1191, 67, 625, 273, 365, 18, 1077, 6757, 18, 588, 2594, 7675, 2564, 327, 348, 8640, 2157, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3729, 67, 55, 8640, 2157, 12, 2890, 16, 2198, 16, 1983, 67, 3729, 67, 803, 4672, 1191, 67, 625, 273, 365, 18, 1077, 6757, 18, 588, 2594, 7675, 2564, 327, 348, 8640, 2157, 1...
T.tryRemove( outfolder, tree=1 ) return 1 def expected_result( self ): """ Precalculated result to check for consistent performance. @return: 1 @rtype: int """ return 1
f_cleaned = glob.glob(self.outfolder+ '/templates/nr_cleaned/*pdb') self.assert_( len(f_cleaned) > 0 )
def run( self, local=0 ): """ run function test @param local: transfer local variables to global and perform other tasks only when run locally @type local: 1|0 @return: 1 @rtype: int """ import tempfile import shutil from Biskit.LogFile import LogFile
3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9/TemplateCleaner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 16, 1191, 33, 20, 262, 30, 3536, 1086, 445, 1842, 225, 632, 891, 1191, 30, 7412, 1191, 3152, 358, 2552, 471, 3073, 1308, 4592, 1338, 1347, 1086, 13760, 632, 723, 225, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 16, 1191, 33, 20, 262, 30, 3536, 1086, 445, 1842, 225, 632, 891, 1191, 30, 7412, 1191, 3152, 358, 2552, 471, 3073, 1308, 4592, 1338, 1347, 1086, 13760, 632, 723, 225, 11...
ip = randint(0, 0xffffffff) netmask = (0xffffffff << randint(2, 31)) & 0xffffffff network = ip & netmask broadcast = ((ip & netmask) | ~netmask) & 0xffffffff gateway = randint(network + 1, broadcast - 1) dns1 = randint(0, 0xffffffff) bwlimit = randint(500000, 10000000) for method in 'static', 'dhcp': optional = {'bwli...
def random_nodenetwork(method, type): nodenetwork_fields = { 'method': method, 'type': type, 'bwlimit': randint(500000, 10000000), } if method != 'dhcp': ip = randint(0, 0xffffffff) netmask = (0xffffffff << randint(2, 31)) & 0xffffffff network = ip & netmask broadcast = ((ip & netmask) | ~netmask) & 0xffffffff gateway...
def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a ...
f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 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, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 16...
to_locale(absence.person_title))
to_wx(absence.person_title))
def DoRefresh(self, event=None, data=None): """Refresh the absence list.""" self.absence_list.DeleteAllItems() self.absence_data = [] self.comment_list.DeleteAllItems() self.comment_data = [] if data is not None: self.absence_data = data else: try: self.absence_data = self.client.getAbsences(self.path) except SchoolToo...
37c07bb93a6574354abfe8f76b9c44829e138f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/37c07bb93a6574354abfe8f76b9c44829e138f97/wxclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2256, 8323, 12, 2890, 16, 871, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 8323, 326, 2417, 802, 666, 12123, 365, 18, 5113, 802, 67, 1098, 18, 2613, 1595, 3126, 1435, 365, 18, 5113, 802, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2256, 8323, 12, 2890, 16, 871, 33, 7036, 16, 501, 33, 7036, 4672, 3536, 8323, 326, 2417, 802, 666, 12123, 365, 18, 5113, 802, 67, 1098, 18, 2613, 1595, 3126, 1435, 365, 18, 5113, 802, ...
sumDict[state] += resultDict[site][ce][state]
sumDict[state] += resultDict[site][ce][state]
def getPilotSummaryWeb(self,selectDict,sortList,startItem,maxItems): """ Get summary of the pilot jobs status by CE/site in a standard structure """
4281b6ebd17e9e6456de007d4a03f9fe1ab6a236 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/4281b6ebd17e9e6456de007d4a03f9fe1ab6a236/PilotAgentsDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 22797, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 3804, 682, 16, 1937, 1180, 16, 1896, 3126, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 6550, 1267, 635, 29538, 19, 4256, 316, 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, 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, 1689, 22797, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 3804, 682, 16, 1937, 1180, 16, 1896, 3126, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 6550, 1267, 635, 29538, 19, 4256, 316, 279,...
req.cleanup_data = "test ok" req.server.register_cleanup(req, cleanup, req)
req.server.register_cleanup(req, server_cleanup, "test ok")
def srv_register_cleanup(req): req.cleanup_data = "test ok" req.server.register_cleanup(req, cleanup, req) req.write("registered server cleanup that will write to log") return apache.OK
68f6ed4ff7b198e29cf3bc3ddb717fb1bfca8931 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/68f6ed4ff7b198e29cf3bc3ddb717fb1bfca8931/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7302, 67, 4861, 67, 16732, 12, 3658, 4672, 225, 1111, 18, 3567, 18, 4861, 67, 16732, 12, 3658, 16, 1438, 67, 16732, 16, 315, 3813, 1529, 7923, 1111, 18, 2626, 2932, 14327, 1438, 6686, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7302, 67, 4861, 67, 16732, 12, 3658, 4672, 225, 1111, 18, 3567, 18, 4861, 67, 16732, 12, 3658, 16, 1438, 67, 16732, 16, 315, 3813, 1529, 7923, 1111, 18, 2626, 2932, 14327, 1438, 6686, ...
'template': re.compile(r'(?s)^{{.*?}}'),
'template': re.compile(r'(?s){{.*?}}'),
def replaceExcept(text, old, new, exceptions, caseInsensitive = False, allowoverlap = False, marker = ''): """ Replaces old by new in text, skipping occurences of old e.g. within nowiki tags or HTML comments. If caseInsensitive is true, then use case insensitivity in the regex matching. If allowoverlap is true, overlap...
2813ec74d9716791a7fe15485fccd162738ba1c6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/2813ec74d9716791a7fe15485fccd162738ba1c6/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 30212, 12, 955, 16, 1592, 16, 394, 16, 4798, 16, 648, 21931, 273, 1083, 16, 1699, 17946, 273, 1083, 16, 5373, 273, 875, 4672, 3536, 868, 11350, 1592, 635, 394, 316, 977, 16, 1419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30212, 12, 955, 16, 1592, 16, 394, 16, 4798, 16, 648, 21931, 273, 1083, 16, 1699, 17946, 273, 1083, 16, 5373, 273, 875, 4672, 3536, 868, 11350, 1592, 635, 394, 316, 977, 16, 1419...
compoptsnum, execoptsnum))
' '.join(globalExecopts), execopts)) if len(compoptslist) > 1: sys.stdout.write(' (%s%s)'% (' '.join(globalCompopts),compopts)) sys.stdout.write(' (%d-%d)]\n'%(compoptsnum, execoptsnum))
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
104424f171f0895d16c59291ac9da05a2dd76db5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/104424f171f0895d16c59291ac9da05a2dd76db5/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
self._current_context[uri] = prefix
self._current_context[uri] = prefix or ''
def startPrefixMapping(self, prefix, uri): self._ns_contexts.append(self._current_context.copy()) self._current_context[uri] = prefix
500fca110f005eb10fd581019263b28b27fed1ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/500fca110f005eb10fd581019263b28b27fed1ca/pulldom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 2244, 3233, 12, 2890, 16, 1633, 16, 2003, 4672, 365, 6315, 2387, 67, 18332, 18, 6923, 12, 2890, 6315, 2972, 67, 2472, 18, 3530, 10756, 365, 6315, 2972, 67, 2472, 63, 1650, 65, 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, 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, 2244, 3233, 12, 2890, 16, 1633, 16, 2003, 4672, 365, 6315, 2387, 67, 18332, 18, 6923, 12, 2890, 6315, 2972, 67, 2472, 18, 3530, 10756, 365, 6315, 2972, 67, 2472, 63, 1650, 65, 273...
def normaliseURLs(self, url): url = url.encode('utf-8') source = re.search(r"(.*?title=)", url).groups()[0] title = re.search(r".*title=(.*)", url).groups()[0] return "%s%s%s" % (source, title[:1].upper(), title[1:])
def idFromURL(self, url): if not url: return '' url = self.normaliseURLs(url) m = md5(url) return m.hexdigest()
f279a319369b546bddd25250c071f074fc1de09e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/f279a319369b546bddd25250c071f074fc1de09e/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 1265, 1785, 12, 2890, 16, 880, 4672, 309, 486, 880, 30, 327, 875, 880, 273, 365, 18, 6130, 784, 15749, 12, 718, 13, 312, 273, 3481, 25, 12, 718, 13, 327, 312, 18, 7118, 10171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 612, 1265, 1785, 12, 2890, 16, 880, 4672, 309, 486, 880, 30, 327, 875, 880, 273, 365, 18, 6130, 784, 15749, 12, 718, 13, 312, 273, 3481, 25, 12, 718, 13, 327, 312, 18, 7118, 10171, ...
print "@@parse error:", token.type, token.attr
print "@@parse error at line", token.lineno, ":", token.type, token.attr
def error(self, token): print "@@parse error:", token.type, token.attr raise SystemExit
6a4cd2823315ce8d48ee55dea643d6be99c90321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/6a4cd2823315ce8d48ee55dea643d6be99c90321/n3spark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1147, 4672, 1172, 8787, 36, 2670, 555, 622, 980, 3113, 1147, 18, 17782, 16, 6153, 16, 1147, 18, 723, 16, 1147, 18, 1747, 1002, 25454, 225, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 555, 12, 2890, 16, 1147, 4672, 1172, 8787, 36, 2670, 555, 622, 980, 3113, 1147, 18, 17782, 16, 6153, 16, 1147, 18, 723, 16, 1147, 18, 1747, 1002, 25454, 225, 2, -100, -100, -100, -100,...
remove_paths.add(path)
paths_to_remove.add(path)
def uninstall(self, auto_confirm=False): assert self.check_if_exists(), "Cannot uninstall requirement %s, not installed" % (self.name,) dist = self.satisfied_by remove_paths = set() remove_from_easy_install_pth = set() easy_install_pth = os.path.join(lib_py, os.path.join('site-packages', 'easy-install.pth'))
83f9d9c18b33d7eaefd25541ebfcc8eb4c825233 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/83f9d9c18b33d7eaefd25541ebfcc8eb4c825233/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
data = open("data/bdev-both.txt").read()
data = self._get_contents("data/bdev-both.txt")
def testParserBoth(self): """Test drbdsetup show parser for disk and network""" data = open("data/bdev-both.txt").read() result = bdev.DRBD8._GetDevInfo(data) self.failUnless(self._has_disk(result, "/dev/xenvg/test.data", "/dev/xenvg/test.meta"), "Wrong local disk info") self.failUnless(self._has_net(result, ("192.168....
6634816b0954389cd54e1010f2eef1db0401ee40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/6634816b0954389cd54e1010f2eef1db0401ee40/ganeti.bdev_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2678, 20240, 12, 2890, 4672, 3536, 4709, 5081, 16410, 8401, 2405, 2082, 364, 4234, 471, 2483, 8395, 501, 273, 365, 6315, 588, 67, 3980, 2932, 892, 19, 70, 5206, 17, 18237, 18, 5830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2678, 20240, 12, 2890, 4672, 3536, 4709, 5081, 16410, 8401, 2405, 2082, 364, 4234, 471, 2483, 8395, 501, 273, 365, 6315, 588, 67, 3980, 2932, 892, 19, 70, 5206, 17, 18237, 18, 5830...
elseCode, hasBlock = block_unwrap(elsePart)
elseCode = compress(elsePart)
def __if(node): result = "if(%s)" % compress(node.condition) # Micro optimization: Omit block curly braces when it only contains one child thenPart, hasBlock = block_unwrap(node.thenPart) result += thenPart elsePart = getattr(node, "elsePart", None) if elsePart: # if-blocks without braces require a semicolon here if ...
aa08ce4c8b8d7e115947659d1485252ed4883126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/aa08ce4c8b8d7e115947659d1485252ed4883126/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 430, 12, 2159, 4672, 563, 273, 315, 430, 9275, 87, 2225, 738, 8099, 12, 2159, 18, 4175, 13, 225, 468, 18284, 14850, 30, 531, 1938, 1203, 29270, 26852, 1347, 518, 1338, 1914, 1245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 430, 12, 2159, 4672, 563, 273, 315, 430, 9275, 87, 2225, 738, 8099, 12, 2159, 18, 4175, 13, 225, 468, 18284, 14850, 30, 531, 1938, 1203, 29270, 26852, 1347, 518, 1338, 1914, 1245, ...
" reload(sys.modules[__name__])",
" imp.load_dynamic(__name__,__file__)",
"def __bootstrap__():",
5a50fc1e142970cb668b48058fdcd88690991cae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/5a50fc1e142970cb668b48058fdcd88690991cae/bdist_egg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 315, 536, 1001, 12722, 972, 1435, 2773, 16, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 315, 536, 1001, 12722, 972, 1435, 2773, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
f = open(path, 'w')
f = self.open(path, 'w')
def checkversion(self): path = os.path.join(self.location, 'version') try: f = open(path) version = f.read() f.close() if version != suds.__version__: raise Exception() except: self.clear() f = open(path, 'w') f.write(suds.__version__) f.close()
c7e847fa2d1d3b1622d7d1fee7a9eecb8ab37ae0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5377/c7e847fa2d1d3b1622d7d1fee7a9eecb8ab37ae0/cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1589, 12, 2890, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3562, 16, 296, 1589, 6134, 775, 30, 225, 284, 273, 1696, 12, 803, 13, 1177, 273, 284, 18, 896, 1435, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1589, 12, 2890, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3562, 16, 296, 1589, 6134, 775, 30, 225, 284, 273, 1696, 12, 803, 13, 1177, 273, 284, 18, 896, 1435, 284, ...
pipe = "queue ! audioconvert ! level name=eventlevel interval=%d !" +\
pipe = "queue ! audioconvert ! level name=recordlevel interval=%d !" +\
def __RecordingPadAddedCb(self, elem, pad, recInstruments, bin): """ Handles new pad creation on the GStreamer channel split element when recording multiple streams at once. This method will be called when the new pad is ready to be connected to the encoder. Parameters: elem -- the GStreamer channel split element. pad...
44301c74eddfe174a2a6e83638207a00f8560100 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10033/44301c74eddfe174a2a6e83638207a00f8560100/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 21037, 14878, 8602, 15237, 12, 2890, 16, 3659, 16, 4627, 16, 1950, 19228, 87, 16, 4158, 4672, 3536, 27020, 394, 4627, 6710, 603, 326, 611, 1228, 264, 1904, 1416, 930, 1347, 14949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21037, 14878, 8602, 15237, 12, 2890, 16, 3659, 16, 4627, 16, 1950, 19228, 87, 16, 4158, 4672, 3536, 27020, 394, 4627, 6710, 603, 326, 611, 1228, 264, 1904, 1416, 930, 1347, 14949, ...
else: template_name = success_template_name
template_name = success_template_name
def unfollow(request, to_user_id, template_name='relationships/relationship_delete_confirm.html', success_template_name='relationships/relationship_delete_success.html', mimetype='text/html'): """ Allows a user to stop following another user. Templates: ``relationships/relationship_delete_confirm.html`` and ``relation...
24068c98deeb5437ddc267accc7519be064fadda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11830/24068c98deeb5437ddc267accc7519be064fadda/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 14641, 12, 2293, 16, 358, 67, 1355, 67, 350, 16, 1542, 67, 529, 2218, 21632, 19, 12873, 67, 3733, 67, 10927, 18, 2620, 2187, 2216, 67, 3202, 67, 529, 2218, 21632, 19, 12873, 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, 640, 14641, 12, 2293, 16, 358, 67, 1355, 67, 350, 16, 1542, 67, 529, 2218, 21632, 19, 12873, 67, 3733, 67, 10927, 18, 2620, 2187, 2216, 67, 3202, 67, 529, 2218, 21632, 19, 12873, 67, ...
label = copy.copy(label)
label, olabel = label.__class__(),label label.__dict__.clear() label.__dict__.update(olabel.__dict__)
def makeTickLabels(self): g = Group() if not self.visibleLabels: return g
d656496aec26d64dbdb1be12e7a02b59a0ff55a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/d656496aec26d64dbdb1be12e7a02b59a0ff55a1/axes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6264, 5888, 12, 2890, 4672, 314, 273, 3756, 1435, 309, 486, 365, 18, 8613, 5888, 30, 327, 314, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6264, 5888, 12, 2890, 4672, 314, 273, 3756, 1435, 309, 486, 365, 18, 8613, 5888, 30, 327, 314, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not self.ladder or self.ladder.error or not self.ladder.valid:
if not self._ladder_is_fully_ok():
def write_bonds_compactly_for_these_atoms(self, mapping): #bruce 080328 """ [overrides superclass method] """ if not mapping.write_bonds_compactly: return {} if not self.ladder or self.ladder.error or not self.ladder.valid: # self.idealized_strand_direction might differ from actual # bond directions, so we can't abbrev...
230785113dfd0f3de5981bd06452396cac53c18c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/230785113dfd0f3de5981bd06452396cac53c18c/DnaLadderRailChunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 70, 4096, 67, 21038, 715, 67, 1884, 67, 451, 3392, 67, 14937, 12, 2890, 16, 2874, 4672, 468, 2848, 3965, 374, 3672, 1578, 28, 3536, 306, 19775, 12098, 707, 65, 3536, 309, 486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 67, 70, 4096, 67, 21038, 715, 67, 1884, 67, 451, 3392, 67, 14937, 12, 2890, 16, 2874, 4672, 468, 2848, 3965, 374, 3672, 1578, 28, 3536, 306, 19775, 12098, 707, 65, 3536, 309, 486...
uname = os.path.join(dir, "sysinfo/uname_-a")
self.grope_status() def get_machine(self):
def __init__(self, dir, type): self.dir = dir self.type = type self.control = os.path.join(dir, "control") self.status = os.path.join(dir, "status") self.variables = {} self.tests = [] self.kernel = None
ab8b3b26a6821f58a8f7861813ebee07b16dd7cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/ab8b3b26a6821f58a8f7861813ebee07b16dd7cb/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1577, 16, 618, 4672, 365, 18, 1214, 273, 1577, 365, 18, 723, 273, 618, 365, 18, 7098, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 7098, 7923, 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, 1001, 2738, 972, 12, 2890, 16, 1577, 16, 618, 4672, 365, 18, 1214, 273, 1577, 365, 18, 723, 273, 618, 365, 18, 7098, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 315, 7098, 7923, 365,...
self.net_cat = urwid.Text(net_cat_t)
self.net_cat = urwid.Text(net_cat_t)
def __init__(self,body,pos,ui,dbus=None): global daemon, wireless, wired
4fa245b79a41a22da17ae3febbf053c5dd751a5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/4fa245b79a41a22da17ae3febbf053c5dd751a5f/prefs_curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3432, 16, 917, 16, 4881, 16, 1966, 407, 33, 7036, 4672, 2552, 8131, 16, 6636, 2656, 16, 341, 2921, 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, 1001, 2738, 972, 12, 2890, 16, 3432, 16, 917, 16, 4881, 16, 1966, 407, 33, 7036, 4672, 2552, 8131, 16, 6636, 2656, 16, 341, 2921, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if field_name == 'resolution' or field_name == 'bug_status':
if field_name == "resolution" or field_name == "bug_status":
def convert(_db, _host, _user, _password, _env, _force): activityFields = FieldTranslator() # account for older versions of bugzilla if BZ_VERSION == '2.11': print 'Using Buzvilla v%s schema.' % BZ_VERSION activityFields['removed'] = 'oldvalue' activityFields['added'] = 'newvalue' # init Bugzilla environment print "B...
63f7bce156a2ed5a10227f95c07a9ae105efaf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/63f7bce156a2ed5a10227f95c07a9ae105efaf62/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24899, 1966, 16, 389, 2564, 16, 389, 1355, 16, 389, 3664, 16, 389, 3074, 16, 389, 5734, 4672, 5728, 2314, 273, 2286, 12233, 1435, 225, 468, 2236, 364, 12156, 5244, 434, 7934, 15990...
return [(coldef.groupdict()["name"].lower(), coldef.groupdict()["type"]) for coldef in re.finditer(_sql_coldef_pattern, coldefs)]
return [(coldef.groupdict()["name"].lower(), coldef.groupdict()["type"]) for coldef in re.finditer(_sql_coldef_pattern, coldefs) if coldef.groupdict()["name"] not in ("PRIMARY", "UNIQUE", "CHECK")]
return [(coldef.groupdict()["name"].lower(), coldef.groupdict()["type"]) for coldef in re.finditer(_sql_coldef_pattern, coldefs)]
15e75a594d19df1c85ee3f7aac14312baeb8f068 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/15e75a594d19df1c85ee3f7aac14312baeb8f068/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 306, 12, 1293, 536, 18, 1655, 1576, 1435, 9614, 529, 6, 8009, 8167, 9334, 645, 536, 18, 1655, 1576, 1435, 9614, 723, 6, 5717, 364, 645, 536, 316, 283, 18, 4720, 2165, 24899, 4669, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 327, 306, 12, 1293, 536, 18, 1655, 1576, 1435, 9614, 529, 6, 8009, 8167, 9334, 645, 536, 18, 1655, 1576, 1435, 9614, 723, 6, 5717, 364, 645, 536, 316, 283, 18, 4720, 2165, 24899, 4669, 67, ...
import _curses _curses.setupterm() assert _curses.tparm(_curses.tigetstr('cup'), 5, 3) == '\033[6;4H'
import _minimal_curses _minimal_curses.setupterm() assert _minimal_curses.tparm(_minimal_curses.tigetstr('cup'), 5, 3) == '\033[6;4H'
def test_tparm(self): source = py.code.Source(""" import _curses _curses.setupterm() assert _curses.tparm(_curses.tigetstr('cup'), 5, 3) == '\033[6;4H' print 'ok!' """) f = udir.join("test_tparm.py") f.write(source) child = self.spawn(['--withmod-_curses', str(f)]) child.expect('ok!')
c95324df53e2debbd866baecc3e8fd82bf3e3691 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/c95324df53e2debbd866baecc3e8fd82bf3e3691/test_curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 88, 1065, 81, 12, 2890, 4672, 1084, 273, 2395, 18, 710, 18, 1830, 2932, 3660, 1930, 389, 1154, 2840, 67, 1397, 2420, 389, 1154, 2840, 67, 1397, 2420, 18, 542, 3648, 1035, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 88, 1065, 81, 12, 2890, 4672, 1084, 273, 2395, 18, 710, 18, 1830, 2932, 3660, 1930, 389, 1154, 2840, 67, 1397, 2420, 389, 1154, 2840, 67, 1397, 2420, 18, 542, 3648, 1035, 143...
[eventlistener:memmon]
[eventlistener:%(name)s]
def update(self): """Updater""" pass
7b88d809c072b680bc2ce89ba86cacd839ea1acf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10956/7b88d809c072b680bc2ce89ba86cacd839ea1acf/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 15305, 8395, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 15305, 8395, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
icursor = icursor-1
def __normalize(self, event=None): ew = event.widget contents = ew.get() icursor = ew.index(INSERT) if contents == '': contents = '0' # figure out what the contents value is in the current base try: if self.__hexp.get(): v = string.atoi(contents, 16) else: v = string.atoi(contents) except ValueError: v = None # if valu...
52cfe3d819f175a5430da27cb3c70134fcdbb778 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52cfe3d819f175a5430da27cb3c70134fcdbb778/TypeinViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12237, 12, 2890, 16, 871, 33, 7036, 4672, 22722, 273, 871, 18, 6587, 2939, 273, 22722, 18, 588, 1435, 277, 9216, 273, 22722, 18, 1615, 12, 11356, 13, 309, 2939, 422, 875, 30, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12237, 12, 2890, 16, 871, 33, 7036, 4672, 22722, 273, 871, 18, 6587, 2939, 273, 22722, 18, 588, 1435, 277, 9216, 273, 22722, 18, 1615, 12, 11356, 13, 309, 2939, 422, 875, 30, 293...
return 1
o_ambient = other return cmp(self.ambient_group(),o_ambient)
def __cmp__(self, other): r""" Compare ``self`` and ``other``. If ``self`` and ``other`` are in a common ambient group, then self = other precisely if ``self`` is contained in ``other``. EXAMPLES:: sage: G = CyclicPermutationGroup(4) sage: gens = G.gens() sage: H = DihedralGroup(4) sage: PermutationGroup_subgroup(H,l...
7f9093a1beb84a46fbc8d26ae85187329cd42822 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7f9093a1beb84a46fbc8d26ae85187329cd42822/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 12176, 2890, 10335, 471, 12176, 3011, 68, 8338, 971, 12176, 2890, 10335, 471, 12176, 3011, 10335, 854, 316, 279, 2975, 13232, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 1308, 4672, 436, 8395, 11051, 12176, 2890, 10335, 471, 12176, 3011, 68, 8338, 971, 12176, 2890, 10335, 471, 12176, 3011, 10335, 854, 316, 279, 2975, 13232, 1...
list_avail_ids = self.pool.get('hr.analytic.timesheet').search(cr, uid, [])
list_avail_ids = timesheet_obj.search(cr, uid, [], context=context)
def write(self, cr, uid, ids, vals, context=None): vals_line = {}
c983859b9d5002f8242dfe4d759712ba51d466a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c983859b9d5002f8242dfe4d759712ba51d466a7/project_timesheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 5773, 67, 1369, 273, 2618, 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, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 5773, 67, 1369, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
info.append('version: %s' % self.escape(version))
info.append('version %s' % self.escape(version))
def docmodule(self, object): """Produce HTML documentation for a module object.""" name = object.__name__ result = '' head = '<br><big><big><strong>&nbsp;%s</strong></big></big>' % name try: file = inspect.getsourcefile(object) filelink = '<a href="file:%s">%s</a>' % (file, file) except TypeError: filelink = '(built-in...
edd563cadd8c07dfbfb2885b8f75b7a93718b9a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/edd563cadd8c07dfbfb2885b8f75b7a93718b9a0/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 563, 273, 875, 910, 273, 2368, 2848, 4438, 14002, 4438, 14002, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 563, 273, 875, 910, 273, 2368, 2848, 4438, 14002, 4438, 14002, 44...
include_dirs=include_dirs, library_dirs=library_dirs, libraries = libraries,
def finalize_options(self): build_ext.finalize_options(self) self.include_dirs.append(self.numpy_include_dir) if self.get_compiler() == 'msvc': return True try: self.gdaldir = self.get_gdal_config('prefix') self.library_dirs.append(os.path.join(self.gdaldir,'lib')) self.include_dirs.append(os.path.join(self.gdaldir,'...
22124f78ead800a7c8ccb19c9d4b01102c7ce575 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/22124f78ead800a7c8ccb19c9d4b01102c7ce575/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 1361, 67, 408, 18, 30343, 67, 2116, 12, 2890, 13, 225, 365, 18, 6702, 67, 8291, 18, 6923, 12, 2890, 18, 15974, 67, 6702, 67, 1214, 13, 225, 309, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 1361, 67, 408, 18, 30343, 67, 2116, 12, 2890, 13, 225, 365, 18, 6702, 67, 8291, 18, 6923, 12, 2890, 18, 15974, 67, 6702, 67, 1214, 13, 225, 309, 365,...
self.statement=Redland.librdf_new_statement_from_nodes(__world__.world, s, p, o)
self.statement=Redland.librdf_new_statement_from_nodes(_world.world, s, p, o)
def __init__(self, **args): """Create an RDF Statement (constructor).""" if __debug__: print "Creating RDF.statement object args",args self.statement=None self.free_me=1
9d200f22543978d0df7fbde12b64052f94f16755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/9d200f22543978d0df7fbde12b64052f94f16755/RDF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 3536, 1684, 392, 13539, 8056, 261, 12316, 13, 12123, 309, 1001, 4148, 972, 30, 1172, 315, 11092, 13539, 18, 11516, 733, 833, 3113, 1968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 16, 2826, 1968, 4672, 3536, 1684, 392, 13539, 8056, 261, 12316, 13, 12123, 309, 1001, 4148, 972, 30, 1172, 315, 11092, 13539, 18, 11516, 733, 833, 3113, 1968, ...
title = title[dot + 2:]
title = title[dcolon + 2:]
def process_link(self, env, refnode, has_explicit_title, title, target): refnode['cpp:parent'] = env.temp_data.get('cpp:parent') if not has_explicit_title: target = target.lstrip('~') # only has a meaning for the title # if the first character is a tilde, don't display the module/class # parts of the contents if title[...
d8fe499dc1a383ca37dbc5eb342e493c20226daa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/d8fe499dc1a383ca37dbc5eb342e493c20226daa/cpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 1232, 12, 2890, 16, 1550, 16, 1278, 2159, 16, 711, 67, 16511, 67, 2649, 16, 2077, 16, 1018, 4672, 1278, 2159, 3292, 4057, 84, 30, 2938, 3546, 273, 1550, 18, 5814, 67, 892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1232, 12, 2890, 16, 1550, 16, 1278, 2159, 16, 711, 67, 16511, 67, 2649, 16, 2077, 16, 1018, 4672, 1278, 2159, 3292, 4057, 84, 30, 2938, 3546, 273, 1550, 18, 5814, 67, 892, ...