rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
cit[id].remove(recid) dic[id] -= 1
cit[id].remove(recid) dic[id] -= 1
def get_initial_result(dic, cit, ref, recid_list): """initialieze the citation weights of the last updated record with zero for recalculating it later """ for recid in recid_list: dic[recid] = 0 cit[recid] = [] if ref.has_key(recid) and ref[recid]: for id in ref[recid]: if cit.has_key(id) and recid in cit[id]: cit[id]....
385083617dff6625d438f022975529212d88558e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/385083617dff6625d438f022975529212d88558e/bibrank_citation_indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6769, 67, 2088, 12, 15859, 16, 276, 305, 16, 1278, 16, 1950, 350, 67, 1098, 4672, 3536, 6769, 1385, 8489, 326, 21145, 5376, 434, 326, 1142, 3526, 1409, 598, 3634, 364, 283, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6769, 67, 2088, 12, 15859, 16, 276, 305, 16, 1278, 16, 1950, 350, 67, 1098, 4672, 3536, 6769, 1385, 8489, 326, 21145, 5376, 434, 326, 1142, 3526, 1409, 598, 3634, 364, 283, 12...
self.loadBuffer()
def __init__(self,rootNVDAObject,backendLibPath=None,TextInfo=VirtualBufferTextInfo): self.backendLibPath=os.path.abspath(backendLibPath) self.TextInfo=TextInfo self.rootNVDAObject=rootNVDAObject super(VirtualBuffer,self).__init__() self.VBufHandle=None self.passThrough=False self.rootWindowHandle=self.rootNVDAObject.w...
4799dee4e972ba416905fa945b20a58c590be0a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/4799dee4e972ba416905fa945b20a58c590be0a9/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3085, 11679, 9793, 921, 16, 9993, 5664, 743, 33, 7036, 16, 1528, 966, 33, 6466, 1892, 1528, 966, 4672, 365, 18, 9993, 5664, 743, 33, 538, 18, 803, 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, 1001, 2738, 972, 12, 2890, 16, 3085, 11679, 9793, 921, 16, 9993, 5664, 743, 33, 7036, 16, 1528, 966, 33, 6466, 1892, 1528, 966, 4672, 365, 18, 9993, 5664, 743, 33, 538, 18, 803, 18, ...
summary_file.set('1D contigious cl',par_name,'['+str(max_left*par_bin)+','+str(max_right*par_bin)+','+str((max_right-max_left)*par_bin)+']') k=j while k+1<len(confidence_levels) : if confidence_levels[k+1]<max_frac: j+=1 k+=1 j+=1 (injectionconfidence,toppoints,reses)=bayespputils.calculateConfidenceLevels(greedyH...
htmlfile.write('<p>Injection not found in posterior bins in sky location!</p>') htmlfile.write('<h5>2D Marginal PDFs</h5><br>') htmlfile.write('<table border=1><tr>') if skyres is not None: htmlfile.write('<td width=30%><img width=100% src="skymap.png"></td>') else: htmlfile.write('<td width=30%><img width=100% src...
def plotSkyMap(skypos,skyres,sky_injpoint): from pylal import skylocutils from mpl_toolkits.basemap import Basemap skypoints=array(skylocutils.gridsky(float(skyres))) skycarts=map(lambda s: pol2cart(s[1],s[0]),skypoints) skyinjectionconfidence=None shist=bayespputils.skyhist_cart(array(skycarts),skypos) #shist=skyhi...
bd89c1d89c5eaca99ae3cc8af7f44000bd63a2d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/bd89c1d89c5eaca99ae3cc8af7f44000bd63a2d0/cbcBayesSkyRes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 5925, 93, 863, 12, 7771, 879, 538, 16, 22921, 455, 16, 22921, 67, 267, 78, 1153, 4672, 628, 2395, 80, 287, 1930, 15513, 1829, 5471, 628, 18476, 67, 6738, 79, 1282, 18, 1969, 1458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5925, 93, 863, 12, 7771, 879, 538, 16, 22921, 455, 16, 22921, 67, 267, 78, 1153, 4672, 628, 2395, 80, 287, 1930, 15513, 1829, 5471, 628, 18476, 67, 6738, 79, 1282, 18, 1969, 1458...
self.FullDataList.append( array(LoggerData) )
if LoggerData != self.theFirstLog: self.FullDataList.append( array(LoggerData) )
def updateFullDataList( self ): num = 0 FullDataList_prev = self.FullDataList self.FullDataList = [] for LoggerData in self.LoggerDataList: if len(FullDataList_prev) > num : self.FullDataList.append( concatenate( (FullDataList_prev[num], array( LoggerData )))) if num >= len(FullDataList_prev): self.FullDataList.append(...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 5080, 24274, 12, 365, 262, 30, 818, 273, 374, 11692, 24274, 67, 10001, 273, 365, 18, 5080, 24274, 365, 18, 5080, 24274, 273, 5378, 364, 4242, 751, 316, 365, 18, 3328, 24274, 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, 1089, 5080, 24274, 12, 365, 262, 30, 818, 273, 374, 11692, 24274, 67, 10001, 273, 365, 18, 5080, 24274, 365, 18, 5080, 24274, 273, 5378, 364, 4242, 751, 316, 365, 18, 3328, 24274, 30, ...
0 (default): checks whether x is a Baillie-Pomerance-Selfridge-Wagstaff pseudo prime (strong Rabin-Miller pseudo prime for base 2, followed by strong Lucas test for the sequence (P,-1), P smallest positive integer such that $P^2 - 4$ is not a square mod x). > 0: checks whether x is a strong Miller-Rabin pseudo prime fo...
0 (default): checks whether x is a Baillie-Pomerance- Selfridge-Wagstaff pseudo prime (strong Rabin-Miller pseudo prime for base 2, followed by strong Lucas test for the sequence (P,-1), P smallest positive integer such that $P^2 - 4$ is not a square mod x). > 0: checks whether x is a strong Miller-Rabin pseudo prime f...
def is_pseudoprime(n, flag=0): r""" Returns True if $x$ is a pseudo-prime, and False otherwise. The result is \emph{NOT} proven correct -- \emph{this is a pseudo-primality test!}. INPUT: flag -- int 0 (default): checks whether x is a Baillie-Pomerance-Selfridge-Wagstaff pseudo prime (strong Rabin-Miller pseudo prime ...
47d3f11ed406de662a58ec4406fddef08f47dadc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/47d3f11ed406de662a58ec4406fddef08f47dadc/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 84, 23715, 556, 86, 494, 12, 82, 16, 2982, 33, 20, 4672, 436, 8395, 2860, 1053, 309, 271, 92, 8, 353, 279, 12454, 17, 16382, 16, 471, 1083, 3541, 18, 225, 1021, 563, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 84, 23715, 556, 86, 494, 12, 82, 16, 2982, 33, 20, 4672, 436, 8395, 2860, 1053, 309, 271, 92, 8, 353, 279, 12454, 17, 16382, 16, 471, 1083, 3541, 18, 225, 1021, 563, 353, ...
( self.inter_pro_dict[ 'Examples' ] ).append( text )
self.inter_pro_dict[ 'Examples' ].append( text )
def end_li( self ): if( self._state == 'examples' ): text = self._flush_text() ( self.inter_pro_dict[ 'Examples' ] ).append( text )
057a42016586e300ec42f7a5a6468a5d7f6c179c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/057a42016586e300ec42f7a5a6468a5d7f6c179c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 549, 12, 365, 262, 30, 309, 12, 365, 6315, 2019, 422, 296, 16858, 11, 262, 30, 977, 273, 365, 6315, 11330, 67, 955, 1435, 261, 365, 18, 2761, 67, 685, 67, 1576, 63, 296, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 67, 549, 12, 365, 262, 30, 309, 12, 365, 6315, 2019, 422, 296, 16858, 11, 262, 30, 977, 273, 365, 6315, 11330, 67, 955, 1435, 261, 365, 18, 2761, 67, 685, 67, 1576, 63, 296, 2...
Return the (unique) field of all contiued fractions.
Return the (unique) field of all continued fractions.
def ContinuedFractionField(): """ Return the (unique) field of all contiued fractions. EXAMPLES:: sage: ContinuedFractionField() Field of all continued fractions """ return CFF
10c38d8ec18c550787205ebc2be7b4c410554784 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/10c38d8ec18c550787205ebc2be7b4c410554784/contfrac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1816, 267, 5957, 13724, 974, 13332, 3536, 2000, 326, 261, 6270, 13, 652, 434, 777, 17545, 5957, 8330, 87, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1816, 267, 5957, 13724, 974...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1816, 267, 5957, 13724, 974, 13332, 3536, 2000, 326, 261, 6270, 13, 652, 434, 777, 17545, 5957, 8330, 87, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1816, 267, 5957, 13724, 974...
def GetNumInvalidValues(self):
def GetNumInvalidValues(self, func):
def GetNumInvalidValues(self): """overridden from Argument.""" return 1
51330b3a08d845da9815b843e020833e62577828 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/51330b3a08d845da9815b843e020833e62577828/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2578, 1941, 1972, 12, 2890, 16, 1326, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2578, 1941, 1972, 12, 2890, 16, 1326, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not hasattr(self, '_map'): map = asyncore.socket_map else: map = self._map
map = self._map
def close_all(self, map=None, ignore_all=False): """Stop serving; close all existent connections disconnecting clients
dde23a9c1710dd7d1cb6824248947aaded3b9acf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/dde23a9c1710dd7d1cb6824248947aaded3b9acf/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 2890, 16, 852, 33, 7036, 16, 2305, 67, 454, 33, 8381, 4672, 3536, 4947, 20505, 31, 1746, 777, 30364, 5921, 9479, 310, 7712, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 67, 454, 12, 2890, 16, 852, 33, 7036, 16, 2305, 67, 454, 33, 8381, 4672, 3536, 4947, 20505, 31, 1746, 777, 30364, 5921, 9479, 310, 7712, 2, -100, -100, -100, -100, -100, -100, -1...
else: return rconfig_m.groups()
v = rconfig_m.groups() return tuple([x for x in v if ':' not in x])
def get_rconfig(RHOME, about, allow_empty = False): r_exec = os.path.join(RHOME, 'bin', 'R') cmd = '"'+r_exec+'" CMD config '+about rp = os.popen(cmd) rconfig = rp.readline() #Twist if 'R RHOME' spits out a warning if rconfig.startswith("WARNING"): rconfig = rp.readline() rconfig = rconfig.strip() #sanity check of what...
aad3ff4d14babc5c6cb18d40adbb7d1b34109caf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/aad3ff4d14babc5c6cb18d40adbb7d1b34109caf/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 86, 1425, 12, 54, 14209, 16, 2973, 16, 1699, 67, 5531, 273, 1083, 4672, 436, 67, 4177, 273, 1140, 18, 803, 18, 5701, 12, 54, 14209, 16, 296, 4757, 2187, 296, 54, 6134, 1797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 86, 1425, 12, 54, 14209, 16, 2973, 16, 1699, 67, 5531, 273, 1083, 4672, 436, 67, 4177, 273, 1140, 18, 803, 18, 5701, 12, 54, 14209, 16, 296, 4757, 2187, 296, 54, 6134, 1797,...
text = " ".join([ "%05o" % x for x in self.values ])
text = " ".join([ "%05o" % x for x in self.value ])
def __str__(self): text = " ".join([ "%05o" % x for x in self.values ]) return text
8c0199cd6af087035c295005414bbfc22518bb2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/8c0199cd6af087035c295005414bbfc22518bb2f/number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 977, 273, 315, 3552, 5701, 3816, 2213, 6260, 83, 6, 738, 619, 364, 619, 316, 365, 18, 1132, 308, 13, 327, 977, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 701, 972, 12, 2890, 4672, 977, 273, 315, 3552, 5701, 3816, 2213, 6260, 83, 6, 738, 619, 364, 619, 316, 365, 18, 1132, 308, 13, 327, 977, 2, -100, -100, -100, -100, -100, -100, ...
if delta.x == 0 and delta.y == 0:
if delta.i == 0 and delta.j == 0:
def getcourse(isprobe, akey): "Get a course and distance from the user." key = 0 dquad = copy.copy(game.quadrant) navmode = "unspecified" itemp = "curt" dsect = coord() iprompt = False if game.landed and not isprobe: prout(_("Dummy! You can't leave standard orbit until you")) proutn(_("are back aboard the ship.")) scan...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5566, 12, 291, 27230, 16, 279, 856, 4672, 315, 967, 279, 4362, 471, 3888, 628, 326, 729, 1199, 498, 273, 374, 302, 21733, 273, 1610, 18, 3530, 12, 13957, 18, 21733, 6890, 13, 8775...
retVal = bool(self.filter(QTree(**{col_filter: node_id}), user = user))
now = datetime.datetime.now() retVal = bool(self.filter(QTree(**{col_filter: node_id}), user = user, startdate__lte=now, enddate__gte=now))
def user_has_TYPE(self, user, node, node_type='qsc'): """ Returns true if the user has the verb anywhere. False otherwise. """ node_id = getattr(node, 'id', node) col_filter = '%s__above' % node_type cache_key = 'has_%s__%s' % (node_type, node_id)
f7f513f725f56df4278ee3cc63d4c1ca7aaff9cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/f7f513f725f56df4278ee3cc63d4c1ca7aaff9cd/userbits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 5332, 67, 2399, 12, 2890, 16, 729, 16, 756, 16, 756, 67, 723, 2218, 85, 1017, 11, 4672, 3536, 2860, 638, 309, 326, 729, 711, 326, 6405, 25651, 18, 1083, 3541, 18, 3536, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 729, 67, 5332, 67, 2399, 12, 2890, 16, 729, 16, 756, 16, 756, 67, 723, 2218, 85, 1017, 11, 4672, 3536, 2860, 638, 309, 326, 729, 711, 326, 6405, 25651, 18, 1083, 3541, 18, 3536, 756,...
def createDialog( self, parent, id, pos, size, style, name ):
def createDialog( self, parent, id, pos, size, style, *args, **kwargs):
def createDialog( self, parent, id, pos, size, style, name ): """Setup the graphic representation of the dialog""" wx.Panel.__init__ (self, parent, id, pos, size, style, name) self.SetMinSize(size) # play nice with sizers
8e3307e621eeed0253c6e5ea5114c1d9c3b9697d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/8e3307e621eeed0253c6e5ea5114c1d9c3b9697d/userparams.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 365, 16, 982, 16, 612, 16, 949, 16, 963, 16, 2154, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 7365, 326, 19548, 4335, 434, 326, 6176, 8395, 7075, 18, 5537, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 6353, 12, 365, 16, 982, 16, 612, 16, 949, 16, 963, 16, 2154, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 7365, 326, 19548, 4335, 434, 326, 6176, 8395, 7075, 18, 5537, 16186, 2738, ...
assert mode[:1] in ("b", "t")
def popen2(cmd, mode="t", bufsize=-1): assert mode[:1] in ("b", "t") import popen2 stdout, stdin = popen2.popen2(cmd, bufsize) return stdin, stdout
3ad277dd29367b623191313a2d09d87becb23176 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3ad277dd29367b623191313a2d09d87becb23176/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30925, 22, 12, 4172, 16, 1965, 1546, 88, 3113, 1681, 1467, 29711, 21, 4672, 1930, 30925, 22, 3909, 16, 8801, 273, 30925, 22, 18, 84, 3190, 22, 12, 4172, 16, 1681, 1467, 13, 327, 8801, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30925, 22, 12, 4172, 16, 1965, 1546, 88, 3113, 1681, 1467, 29711, 21, 4672, 1930, 30925, 22, 3909, 16, 8801, 273, 30925, 22, 18, 84, 3190, 22, 12, 4172, 16, 1681, 1467, 13, 327, 8801, ...
d_files := $(wildcard $(foreach f,$(all_targets),$(f).d))
d_files := $(wildcard $(foreach f,$(all_deps),$(f).d))
ifdef V quiet=
36a4b6f63e33d876fe2ca2e7fbf326552cb1e727 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/36a4b6f63e33d876fe2ca2e7fbf326552cb1e727/make.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 536, 776, 10902, 33, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 536, 776, 10902, 33, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
_LegalCharsPatt = r"[\w\d!
_LegalCharsPatt = r"[\w\d!
def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append
7437fc6f856bd54cce45880bf43ca993c607371d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7437fc6f856bd54cce45880bf43ca993c607371d/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3633, 780, 12, 2890, 16, 3422, 33, 7036, 4672, 468, 3998, 731, 3134, 563, 468, 563, 273, 5378, 26880, 273, 563, 18, 6923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
f = open(filename, 'w') f.write((filename + '\n').encode("utf-8")) f.close() os.access(filename,os.R_OK) os.remove(filename) os.chdir(oldwd) os.rmdir(dirname)
try: with open(filename, 'w') as f: f.write((filename + '\n').encode("utf-8")) os.access(filename,os.R_OK) os.remove(filename) finally: os.chdir(oldwd) os.rmdir(dirname) class UnicodeNFCFileTests(UnicodeFileTests): normal_form = 'NFC' class UnicodeNFDFileTests(UnicodeFileTests): normal_form = 'NFD' class UnicodeN...
def test_directory(self): dirname = os.path.join(test_support.TESTFN,u'Gr\xfc\xdf-\u66e8\u66e9\u66eb') filename = u'\xdf-\u66e8\u66e9\u66eb' oldwd = os.getcwd() os.mkdir(dirname) os.chdir(dirname) f = open(filename, 'w') f.write((filename + '\n').encode("utf-8")) f.close() os.access(filename,os.R_OK) os.remove(filename...
a0c3b390c3b5f18a2a158476f368fce931fcc2bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/a0c3b390c3b5f18a2a158476f368fce931fcc2bb/test_pep277.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5149, 12, 2890, 4672, 4283, 273, 1140, 18, 803, 18, 5701, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 89, 11, 20799, 64, 30772, 64, 92, 2180, 6943, 89, 6028, 73, 28, 64, 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, 1842, 67, 5149, 12, 2890, 4672, 4283, 273, 1140, 18, 803, 18, 5701, 12, 3813, 67, 13261, 18, 16961, 19793, 16, 89, 11, 20799, 64, 30772, 64, 92, 2180, 6943, 89, 6028, 73, 28, 64, 89,...
def export_uninstallComponent(self,system,component): """ Setup the specified component for running with the runsv daemon """ startupDir = DIRACROOT+'/startup/%s_%s' % (system,component) if os.path.lexists(startupDir): os.unlink(startupDir) runitDir = DIRACROOT+'/runit/%s/%s' % (system,component) if os.path.exists(run...
def export_uninstallComponent( self, system, component ): """ Remove runit directory for the specified component It implies unsetupComponent """ return InstallTools.uninstallComponent( system, component )
def export_uninstallComponent(self,system,component): """ Setup the specified component for running with the runsv daemon """ startupDir = DIRACROOT+'/startup/%s_%s' % (system,component) if os.path.lexists(startupDir): os.unlink(startupDir) runitDir = DIRACROOT+'/runit/%s/%s' % (system,component) if os.path.exists(run...
12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 28872, 1841, 12, 2890, 16, 4299, 16, 4652, 4672, 3536, 10939, 326, 1269, 1794, 364, 3549, 598, 326, 1086, 5751, 8131, 3536, 11850, 1621, 273, 18544, 2226, 9185, 6797, 19, 23939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3359, 67, 28872, 1841, 12, 2890, 16, 4299, 16, 4652, 4672, 3536, 10939, 326, 1269, 1794, 364, 3549, 598, 326, 1086, 5751, 8131, 3536, 11850, 1621, 273, 18544, 2226, 9185, 6797, 19, 23939, ...
ofp = open(ofname, 'w')
ofp = io.open(ofname, 'wb')
def __init__(self, name_finfo_dlen_rlen, ofp): name, finfo, dlen, rlen = name_finfo_dlen_rlen if isinstance(ofp, basestring): ofname = ofp ofp = open(ofname, 'w') if os.name == 'mac': fss = FSSpec(ofname) fss.SetCreatorType('BnHq', 'TEXT') ofp.write('(This file must be converted with BinHex 4.0)\n\n:') hqxer = _Hqxcode...
e29f108864081c5d86202244a1d2e4557c580f20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e29f108864081c5d86202244a1d2e4557c580f20/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 67, 926, 617, 67, 72, 1897, 67, 1321, 275, 16, 434, 84, 4672, 508, 16, 15190, 16, 302, 1897, 16, 436, 1897, 273, 508, 67, 926, 617, 67, 72, 1897...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 67, 926, 617, 67, 72, 1897, 67, 1321, 275, 16, 434, 84, 4672, 508, 16, 15190, 16, 302, 1897, 16, 436, 1897, 273, 508, 67, 926, 617, 67, 72, 1897...
[float(x)*HARTREE_TO_EV for x in energy_lines[0].split()[0:2]]
[float(x)*HARTREE for x in energy_lines[0].split()[0:2]]
def read_geom(): opened = False if type(geom) == type(''): geom = open(geom, 'r') opened = True lines = [] line = geom.readline().strip() # Skip header if present if line.startswith('BEGIN header'): while not line.startswith('END header'): line = geom.readline().strip() geom.readline() # skip blank line else: lines.a...
242a3927928abd16d9aef17611dcb90a4d83bfe9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8914/242a3927928abd16d9aef17611dcb90a4d83bfe9/castep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 10049, 13332, 10191, 273, 1083, 309, 618, 12, 10049, 13, 422, 618, 2668, 11, 4672, 7364, 273, 1696, 12, 10049, 16, 296, 86, 6134, 10191, 273, 1053, 225, 2362, 273, 5378, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 10049, 13332, 10191, 273, 1083, 309, 618, 12, 10049, 13, 422, 618, 2668, 11, 4672, 7364, 273, 1696, 12, 10049, 16, 296, 86, 6134, 10191, 273, 1053, 225, 2362, 273, 5378, 980, ...
% (name, name) return fun.func_code
% (self.name, self.name) return self.fun.func_code
def __getattr__(self, name): if name == "func_code": print >> sys.stderr, "WARNING! disco.%s is "\ "deprecated. Use disco.func.%s instead."\ % (name, name) return fun.func_code raise AttributeException("%s not found" % name)
1127299a7e7ff9e6a5404970553e247eaa977c49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/373/1127299a7e7ff9e6a5404970553e247eaa977c49/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 315, 644, 67, 710, 6877, 1172, 1671, 2589, 18, 11241, 16, 315, 9511, 5, 1015, 2894, 7866, 87, 353, 1548, 315, 14089, 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, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 315, 644, 67, 710, 6877, 1172, 1671, 2589, 18, 11241, 16, 315, 9511, 5, 1015, 2894, 7866, 87, 353, 1548, 315, 14089, 18, ...
def getDuplexLength(conformation, numberOfBases):
def getDuplexLength(conformation, numberOfBases, duplexRise = 0):
def getDuplexLength(conformation, numberOfBases): """ Returns the duplex length (in Angstroms) given the conformation and number of bases. @param conformation: "A-DNA", "B-DNA", or "Z-DNA" @type conformation: str @param numberOfBases: The number of base-pairs in the duplex. @type numberOfBases: int @return: The le...
7aaf7770f7071bd6d25cec03c83e474769c5d57c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/7aaf7770f7071bd6d25cec03c83e474769c5d57c/Dna_Constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 2268, 92, 1782, 12, 591, 1471, 16, 7922, 38, 3304, 16, 302, 2268, 92, 54, 784, 273, 374, 4672, 3536, 2860, 326, 302, 2268, 92, 769, 261, 267, 26956, 334, 520, 87, 13, 864, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 2268, 92, 1782, 12, 591, 1471, 16, 7922, 38, 3304, 16, 302, 2268, 92, 54, 784, 273, 374, 4672, 3536, 2860, 326, 302, 2268, 92, 769, 261, 267, 26956, 334, 520, 87, 13, 864, 326,...
def testNtoH(self): for func in socket.htonl, socket.ntohl: for i in (0, 1, ~0xffff, 2L): self.assertEqual(i, func(func(i))) biglong = 2**32L - 1 swapped = func(biglong) self.assert_(swapped == biglong or swapped == -1) self.assertRaises(OverflowError, func, 2L**34)
def testNtoHL(self): sizes = {socket.htonl: 32, socket.ntohl: 32, socket.htons: 16, socket.ntohs: 16} for func, size in sizes.items(): mask = (1L<<size) - 1 for i in (0, 1, 0xffff, ~0xffff, 2, 0x01234567, 0x76543210): self.assertEqual(i & mask, func(func(i&mask)) & mask) swapped = func(mask) self.assertEqual(swapped...
def testNtoH(self): for func in socket.htonl, socket.ntohl: for i in (0, 1, ~0xffff, 2L): self.assertEqual(i, func(func(i)))
d10ab5b3353181a0809b423d05cd49d12676d943 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d10ab5b3353181a0809b423d05cd49d12676d943/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 50, 869, 44, 12, 2890, 4672, 364, 1326, 316, 2987, 18, 647, 265, 80, 16, 2987, 18, 496, 16699, 80, 30, 364, 277, 316, 261, 20, 16, 404, 16, 4871, 20, 20431, 16, 576, 48, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 50, 869, 44, 12, 2890, 4672, 364, 1326, 316, 2987, 18, 647, 265, 80, 16, 2987, 18, 496, 16699, 80, 30, 364, 277, 316, 261, 20, 16, 404, 16, 4871, 20, 20431, 16, 576, 48, 4672...
upper_char = unichr(0x1ea0) lower_char = unichr(0x1ea1)
upper_char = chr(0x1ea0) lower_char = chr(0x1ea1)
def test_inline_flags(self): # Bug #1700 upper_char = unichr(0x1ea0) # Latin Capital Letter A with Dot Bellow lower_char = unichr(0x1ea1) # Latin Small Letter A with Dot Bellow
2e1d0f00a4899f5371b3c3147951461b4c2ebd52 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/2e1d0f00a4899f5371b3c3147951461b4c2ebd52/test_re.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 10047, 67, 7133, 12, 2890, 4672, 468, 16907, 468, 4033, 713, 3854, 67, 3001, 273, 640, 1354, 86, 12, 20, 92, 21, 24852, 20, 13, 468, 11134, 267, 11200, 7053, 10559, 387, 432,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10047, 67, 7133, 12, 2890, 4672, 468, 16907, 468, 4033, 713, 3854, 67, 3001, 273, 640, 1354, 86, 12, 20, 92, 21, 24852, 20, 13, 468, 11134, 267, 11200, 7053, 10559, 387, 432,...
if text is not None: paragraph.set_text(text)
if isinstance(text_or_element, odf_element): paragraph.append(text_or_element) else: paragraph.set_text(text_or_element)
def odf_create_paragraph(text=None, style=None): """Create a paragraph element of the given style containing the optional given text. Arguments: style -- unicode text -- unicode Return: odf_element """ paragraph = odf_create_element('text:p') if text is not None: paragraph.set_text(text) if style is not None: parag...
8224dd8aa18a9793c4a88690c9f374dcea4e0b42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10612/8224dd8aa18a9793c4a88690c9f374dcea4e0b42/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 2180, 67, 2640, 67, 22445, 12, 955, 33, 7036, 16, 2154, 33, 7036, 4672, 3536, 1684, 279, 10190, 930, 434, 326, 864, 2154, 4191, 326, 3129, 864, 977, 18, 225, 13599, 30, 225, 2154,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 2180, 67, 2640, 67, 22445, 12, 955, 33, 7036, 16, 2154, 33, 7036, 4672, 3536, 1684, 279, 10190, 930, 434, 326, 864, 2154, 4191, 326, 3129, 864, 977, 18, 225, 13599, 30, 225, 2154,...
s = socket(AF_INET,SOCK_STREAM) s.connect(('localhost', 25333)) str = 'c\no123\nmethod1\n2\ntrue\n' + escape_new_line('\"Hello World\nThis is a test.\"\\n') + '\ntrue' + '\ne\n' print(str) s.send(str.encode('utf-8')) s.close() print('done')
gateway = JavaGateway() gateway.getExample(1,2,'hello') gateway.socket.close() print('done')
def escape_new_line(original): temp = original.replace('\\','\\\\') final = temp.replace('\n','\\n') return final
c8b6aecbcfcb45b3162440798ae9eeff94c24255 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14200/c8b6aecbcfcb45b3162440798ae9eeff94c24255/java_channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4114, 67, 2704, 67, 1369, 12, 8830, 4672, 1906, 273, 2282, 18, 2079, 2668, 1695, 17023, 13011, 6134, 727, 273, 1906, 18, 2079, 2668, 64, 82, 17023, 1695, 82, 6134, 327, 727, 225, 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, 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, 4114, 67, 2704, 67, 1369, 12, 8830, 4672, 1906, 273, 2282, 18, 2079, 2668, 1695, 17023, 13011, 6134, 727, 273, 1906, 18, 2079, 2668, 64, 82, 17023, 1695, 82, 6134, 327, 727, 225, 2, -1...
def __browser_cb(self, songs, sort): if self.browser.background:
def __browser_cb(self, browser, songs, sort): if browser.background:
def __browser_cb(self, songs, sort): if self.browser.background: try: bg = config.get("browsers", "background").decode('utf-8') except UnicodeError: bg = "" try: songs = filter(parser.parse(bg).search, songs) except parser.error: pass
9c701556952d3e0476b1cdf1642f5c98851e8063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/9c701556952d3e0476b1cdf1642f5c98851e8063/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11213, 67, 7358, 12, 2890, 16, 4748, 16, 272, 7260, 16, 1524, 4672, 309, 4748, 18, 9342, 30, 775, 30, 7611, 273, 642, 18, 588, 2932, 70, 13221, 3113, 315, 9342, 20387, 3922, 2668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11213, 67, 7358, 12, 2890, 16, 4748, 16, 272, 7260, 16, 1524, 4672, 309, 4748, 18, 9342, 30, 775, 30, 7611, 273, 642, 18, 588, 2932, 70, 13221, 3113, 315, 9342, 20387, 3922, 2668...
return self.parse_line(self.fp.next())
return self.parse_line(self.fp.readline())
def next(self): return self.parse_line(self.fp.next())
87a9bad292f43ce6c6b5de01dd559ee2d543640c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/87a9bad292f43ce6c6b5de01dd559ee2d543640c/compatcsv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 327, 365, 18, 2670, 67, 1369, 12, 2890, 18, 7944, 18, 4285, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 327, 365, 18, 2670, 67, 1369, 12, 2890, 18, 7944, 18, 4285, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return self.__reportErrror('No DIRAC site name found for CE %s' %(ceName),**kwargs)
return self.__reportErrror( 'No DIRAC site name found for CE %s' % ( ceName ), **kwargs )
def setDestinationCE(self,ceName): """ Developer function. Allows to direct a job to a particular Grid CE. """ kwargs = {'ceName':ceName} diracSite = getSiteForCE(ceName) if not diracSite['OK']: return self.__reportError(diracSite['Message'],**kwargs) if not diracSite['Value']: return self.__reportErrror('No DIRAC sit...
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5683, 1441, 12, 2890, 16, 311, 461, 4672, 3536, 14526, 445, 18, 225, 25619, 358, 2657, 279, 1719, 358, 279, 6826, 7145, 29538, 18, 3536, 1205, 273, 13666, 311, 461, 4278, 311, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 5683, 1441, 12, 2890, 16, 311, 461, 4672, 3536, 14526, 445, 18, 225, 25619, 358, 2657, 279, 1719, 358, 279, 6826, 7145, 29538, 18, 3536, 1205, 273, 13666, 311, 461, 4278, 311, 461, ...
decodemenu.JT65.add_radiobutton(label = 'Normal Deep Search',
decodemenu.add_radiobutton(label = 'Normal Deep Search',
def update(): global root_geom,isec0,naz,nel,ndmiles,ndkm,nhotaz,nhotabetter,nopen, \ im,pim,cmap0,isync,isync_save,idsec,first,itol,txsnrdb,tx6alt,\ bm_geom utc=time.gmtime(time.time()+0.1*idsec) isec=utc[5] if isec != isec0: #Do once per second isec0=isec t=time.strftime('%Y %b %d\n%H:%M:%...
f15c753982ab17e3b44954cd158dec3caeb6c649 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2394/f15c753982ab17e3b44954cd158dec3caeb6c649/map65.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 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, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 82, 1561, 16, 3084, 16, 4880, 81, 1449, 16, 82, 2883, 81, 16, 82, 15224, 1561, 16, 82, 15224, 378, 11214, 16, 82, 3190, 16, ...
lock = LockFile.LockFile(LOCKFILE) lock.lock(timeout=30) try: db = _load() while 1: n = random.random() now = time.time() hashfood = str(now) + str(n) + str(content) cookie = sha.new(hashfood).hexdigest() if not db.has_key(cookie): break db[cookie] = content evictions = db.setdefault('evictions', {}) evictions[coo...
lock = LockFile.LockFile(LOCKFILE, withlogging=mm_cfg.PENDINGDB_LOCK_DEBUGGING) retries = mm_cfg.PENDINGDB_LOCK_ATTEMPTS try: while retries: retries -= 1 if not lock.locked(): try: lock.lock(timeout=mm_cfg.PENDINGDB_LOCK_TIMEOUT) except LockFile.TimeOutError: continue db = _load() while 1: n = random.random() no...
def new(*content): """Create a new entry in the pending database, returning cookie for it.""" # It's a programming error if this assertion fails! We do it this way so # the assert test won't fail if the sequence is empty. assert content[:1] in _ALLKEYS # Acquire the pending database lock, letting TimeOutError percolat...
496da7301195b3472cf282c56be0463c46ff842a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/496da7301195b3472cf282c56be0463c46ff842a/Pending.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 30857, 1745, 4672, 3536, 1684, 279, 394, 1241, 316, 326, 4634, 2063, 16, 5785, 3878, 364, 518, 12123, 468, 2597, 1807, 279, 5402, 11987, 555, 309, 333, 11240, 6684, 5, 225, 1660, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 30857, 1745, 4672, 3536, 1684, 279, 394, 1241, 316, 326, 4634, 2063, 16, 5785, 3878, 364, 518, 12123, 468, 2597, 1807, 279, 5402, 11987, 555, 309, 333, 11240, 6684, 5, 225, 1660, 74...
self.speakObject()
super(ExcelGrid,self).event_gainFocus()
def event_gainFocus(self): self.speakObject() self.speakSelection()
129a4ad0b8d2b6d9b6dbb0c0d087064b35ffc565 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/129a4ad0b8d2b6d9b6dbb0c0d087064b35ffc565/excel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 67, 25540, 9233, 12, 2890, 4672, 2240, 12, 7177, 6313, 16, 2890, 2934, 2575, 67, 25540, 9233, 1435, 365, 18, 87, 10244, 6233, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 871, 67, 25540, 9233, 12, 2890, 4672, 2240, 12, 7177, 6313, 16, 2890, 2934, 2575, 67, 25540, 9233, 1435, 365, 18, 87, 10244, 6233, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100...
if g[3] in ['S','X','XX','XXX','XXXX']: i += 1 if g[2]!=oldatom: i = 1 aoname = "%s%s_%d%s" % (g[1],g[2],i,g[3])
aoname = "%s%s_%s" % (g[1].capitalize(),g[2],g[3])
def normalise_aonames(self,listoflines): """Normalise the aonames attribute to agree with the other parsers.
cf56ff91267bc593fd401851bb342d43a84b71c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/cf56ff91267bc593fd401851bb342d43a84b71c2/gamessparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25475, 67, 69, 265, 753, 12, 2890, 16, 1098, 792, 3548, 4672, 3536, 5506, 784, 326, 279, 265, 753, 1566, 358, 1737, 992, 598, 326, 1308, 14212, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 25475, 67, 69, 265, 753, 12, 2890, 16, 1098, 792, 3548, 4672, 3536, 5506, 784, 326, 279, 265, 753, 1566, 358, 1737, 992, 598, 326, 1308, 14212, 18, 2, -100, -100, -100, -100, -100, -10...
context.view = context.resource.get_view(method_name.lower())
view_name = "http_%s" % method_name.lower() context.view = context.resource.get_view(view_name)
def find_view_by_method(server, context): """Associating an uncommon HTTP or WebDAV method to a special view. method "PUT" -> view "put" <instance of BaseView> """ method_name = context.request.method context.view = context.resource.get_view(method_name.lower()) if context.view is None: raise NotImplemented
85ed0043246067c06d58033515bb2369ebebd11a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/85ed0043246067c06d58033515bb2369ebebd11a/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 1945, 67, 1637, 67, 2039, 12, 3567, 16, 819, 4672, 3536, 5125, 1776, 392, 12704, 2586, 2239, 578, 2999, 17735, 707, 358, 279, 4582, 1476, 18, 707, 315, 4762, 6, 317, 1476, 31...
location_id: a zip code (10001); city name, state (weather=woodland,PA); city name, country (weather=london,england);
location_id: a zip code (10001); city name, state (weather=woodland,PA); city name, country (weather=london, england);
def get_weather_from_google(location_id, hl = ''): """ Fetches weather report from Google Parameters location_id: a zip code (10001); city name, state (weather=woodland,PA); city name, country (weather=london,england); latitude/longitude(weather=,,,30670000,104019996) or possibly other. hl: the language parameter (lan...
8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1185/8a36cd3ce67008012cab4acb7a51bbd7cee3b8a5/pywapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1814, 4806, 67, 2080, 67, 9536, 12, 3562, 67, 350, 16, 16043, 273, 875, 4672, 3536, 8065, 281, 21534, 2605, 628, 6124, 225, 7012, 2117, 67, 350, 30, 279, 3144, 981, 261, 6625,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1814, 4806, 67, 2080, 67, 9536, 12, 3562, 67, 350, 16, 16043, 273, 875, 4672, 3536, 8065, 281, 21534, 2605, 628, 6124, 225, 7012, 2117, 67, 350, 30, 279, 3144, 981, 261, 6625,...
print "unknown data action"
print "unknown data action: [", action, "]"
def flashConduit(self,HTMLid="",HTMLticket=""): #First, check to make sure there's a session established if not get_uni() and get_auth(): return "<response>Session error</response>"
89695e2663021b8894b2f00223dee5447867e4b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5854/89695e2663021b8894b2f00223dee5447867e4b1/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9563, 442, 2544, 305, 12, 2890, 16, 4870, 350, 1546, 3113, 4870, 16282, 1546, 6, 4672, 468, 3759, 16, 866, 358, 1221, 3071, 1915, 1807, 279, 1339, 19703, 309, 486, 336, 67, 318, 77, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9563, 442, 2544, 305, 12, 2890, 16, 4870, 350, 1546, 3113, 4870, 16282, 1546, 6, 4672, 468, 3759, 16, 866, 358, 1221, 3071, 1915, 1807, 279, 1339, 19703, 309, 486, 336, 67, 318, 77, 14...
self.assertRaises(ValueError, chr, 1000000)
self.assertRaises(ValueError, chr, sys.maxunicode+1)
def testRaising(self): self.raise_catch(AttributeError, "AttributeError") self.assertRaises(AttributeError, getattr, sys, "undefined_attribute")
5150647fe8f50ff9a40059423719fca3f9467798 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5150647fe8f50ff9a40059423719fca3f9467798/test_exceptions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12649, 13734, 12, 2890, 4672, 365, 18, 11628, 67, 14683, 12, 1499, 668, 16, 315, 1499, 668, 7923, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 3869, 16, 2589, 16, 315, 5978, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12649, 13734, 12, 2890, 4672, 365, 18, 11628, 67, 14683, 12, 1499, 668, 16, 315, 1499, 668, 7923, 365, 18, 11231, 12649, 6141, 12, 1499, 668, 16, 3869, 16, 2589, 16, 315, 5978, 6...
return
if self.fullscreen_mode == True: self.change_cursor(None) dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_QUESTION, gtk.BUTTONS_YES_NO, "You are viewing the last image in the list. Wrap around to the first image?") dialog.set_default_response(gtk.RESPONSE_YES) self.user_prompt_visible = True respo...
def next_img_in_list(self, action): if len(self.image_list) > 1: self.randomlist = [] if self.curr_img_in_list < len(self.image_list) - 1: self.curr_img_in_list += 1 else: if self.listwrap == True: self.curr_img_in_list = 0 else: return if self.fullscreen_mode == False: self.change_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))...
5298dd3c59ec2b58930e739bd9a37bef9637074c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/5298dd3c59ec2b58930e739bd9a37bef9637074c/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 67, 6081, 67, 267, 67, 1098, 12, 2890, 16, 1301, 4672, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 30, 365, 18, 9188, 1098, 273, 5378, 309, 365, 18, 17016, 67, 6081, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1024, 67, 6081, 67, 267, 67, 1098, 12, 2890, 16, 1301, 4672, 309, 562, 12, 2890, 18, 2730, 67, 1098, 13, 405, 404, 30, 365, 18, 9188, 1098, 273, 5378, 309, 365, 18, 17016, 67, 6081, ...
sage: sage.symbolic.units.convert(units.pressure.pascal*units.si_prefixes.kilo, units.pressure.pounds_per_square_inch)*1.0 0.145037737730209*pounds_per_square_inch
sage: sage.symbolic.units.convert(units.pressure.pascal*units.si_prefixes.kilo, units.pressure.pounds_per_square_inch)*1.0 0.145037737730209*pounds_per_square_inch
def convert(expr, target): """ Converts units between expr and target. If target is None then converts to SI base units. INPUT: - `expr` -- the symbolic expression converting from - `target` -- (default None) the symbolic expression converting to OUTPUT: - `symbolic expression` EXAMPLES:: sage: sage.symbolic.uni...
36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 8638, 16, 1018, 4672, 3536, 20377, 4971, 3086, 3065, 471, 1018, 18, 971, 1018, 353, 599, 1508, 7759, 358, 5705, 1026, 4971, 18, 225, 12943, 30, 225, 300, 1375, 8638, 68, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 8638, 16, 1018, 4672, 3536, 20377, 4971, 3086, 3065, 471, 1018, 18, 971, 1018, 353, 599, 1508, 7759, 358, 5705, 1026, 4971, 18, 225, 12943, 30, 225, 300, 1375, 8638, 68, 1493, ...
try: return locale.getpreferredencoding() except AttributeError: return 'cp1252'
if sys.platform.startswith("win"): return "utf8" return locale.getpreferredencoding()
def get_sys_encoding(): try: return locale.getpreferredencoding() except AttributeError: # frozen or so return 'cp1252'
388ee73589f8dee66c563c68312b2933285c19f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8725/388ee73589f8dee66c563c68312b2933285c19f3/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9499, 67, 5999, 13332, 775, 30, 327, 2573, 18, 588, 23616, 5999, 1435, 1335, 6394, 30, 468, 12810, 578, 1427, 327, 296, 4057, 2138, 9401, 11, 225, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9499, 67, 5999, 13332, 775, 30, 327, 2573, 18, 588, 23616, 5999, 1435, 1335, 6394, 30, 468, 12810, 578, 1427, 327, 296, 4057, 2138, 9401, 11, 225, 2, -100, -100, -100, -100, -...
remove_dirs(os.path.join(self.__base_dir, 'refs', 'patches'), self.__name)
os.removedirs(self.__refs_dir)
def delete(self, force = False): """Deletes an stgit series """ if self.is_initialised(): patches = self.get_unapplied() + self.get_applied() if not force and patches: raise StackException, \ 'Cannot delete: the series still contains patches' for p in patches: Patch(p, self.__patch_dir, self.__refs_dir).delete()
737f3549994c21182fe9339910ccdbdb9fcde3c7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/737f3549994c21182fe9339910ccdbdb9fcde3c7/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 2944, 273, 1083, 4672, 3536, 7551, 392, 384, 6845, 4166, 3536, 309, 365, 18, 291, 67, 6769, 5918, 13332, 16482, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 397, 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, 1430, 12, 2890, 16, 2944, 273, 1083, 4672, 3536, 7551, 392, 384, 6845, 4166, 3536, 309, 365, 18, 291, 67, 6769, 5918, 13332, 16482, 273, 365, 18, 588, 67, 318, 438, 3110, 1435, 397, 36...
data.byteswap()
if big_endian: data.byteswap()
def writeframesraw(self, data): self._ensure_header_written(len(data)) nframes = len(data) / (self._sampwidth * self._nchannels) if self._convert: data = self._convert(data) if self._sampwidth > 1: import array data = array.array(_array_fmts[self._sampwidth], data) data.byteswap() data.tofile(self._file) self._datawrit...
f1c2352b36078b78646aa1199708a9210ae855a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f1c2352b36078b78646aa1199708a9210ae855a4/wave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 10278, 1899, 12, 2890, 16, 501, 4672, 365, 6315, 15735, 67, 3374, 67, 9748, 12, 1897, 12, 892, 3719, 290, 10278, 273, 562, 12, 892, 13, 342, 261, 2890, 6315, 87, 931, 2819, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10278, 1899, 12, 2890, 16, 501, 4672, 365, 6315, 15735, 67, 3374, 67, 9748, 12, 1897, 12, 892, 3719, 290, 10278, 273, 562, 12, 892, 13, 342, 261, 2890, 6315, 87, 931, 2819, 380, ...
repo.populate(parser, section, self.conf)
try: repo.populate(parser, section, self.conf) except ValueError, e: msg = _('Repository %r: Error parsing config: %s' % (section,e)) raise Errors.ConfigError, msg
def readRepoConfig(self, parser, section): '''Parse an INI file section for a repository.
e5b628917ef11fb976b461db9ae076f5ac623be3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/e5b628917ef11fb976b461db9ae076f5ac623be3/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 8791, 809, 12, 2890, 16, 2082, 16, 2442, 4672, 9163, 3201, 392, 2120, 45, 585, 2442, 364, 279, 3352, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 8791, 809, 12, 2890, 16, 2082, 16, 2442, 4672, 9163, 3201, 392, 2120, 45, 585, 2442, 364, 279, 3352, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
res_ids = [x[0] for x in target_obj.search([
res_ids = target_obj.search([
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search([ (parent, 'in', ids), (parent, '!=', False), ], order=[]) return ids + _rec_get(ids2, table, parent)
a325aebe77c7ae3ef23124d78ab675c6a0f4b032 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/a325aebe77c7ae3ef23124d78ab675c6a0f4b032/modelsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 3816, 261, 2938, 16, 296, 267, 2187, 3258, 3631, 261, 2938, 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, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 3816, 261, 2938, 16, 296, 267, 2187, 3258, 3631, 261, 2938, 16, 1...
sys.stderr.write( "--- unexpected number of children for %s node:\n" % entry.tagName) sys.stderr.write(entry.toxml() + "\n")
bwrite("--- unexpected number of children for %s node:\n" % entry.tagName) ewrite(entry.toxml() + "\n")
def fixup_refmodindexes_chunk(container): # node is probably a <para>; let's see how often it isn't: if container.tagName != PARA_ELEMENT: sys.stderr.write("--- fixup_refmodindexes_chunk(%s)\n" % container) module_entries = find_all_elements(container, "module") if not module_entries: return index_entries = find_all_el...
2c0293aef2d090f8e00966cfa740a69c2f980b60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c0293aef2d090f8e00966cfa740a69c2f980b60/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 1734, 1711, 11265, 67, 6551, 12, 3782, 4672, 468, 756, 353, 8656, 279, 411, 25072, 34, 31, 2231, 1807, 2621, 3661, 16337, 518, 5177, 1404, 30, 309, 1478, 18, 2692, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 416, 67, 1734, 1711, 11265, 67, 6551, 12, 3782, 4672, 468, 756, 353, 8656, 279, 411, 25072, 34, 31, 2231, 1807, 2621, 3661, 16337, 518, 5177, 1404, 30, 309, 1478, 18, 2692, 461, ...
def QpCR(p, prec = 20, print_mode = None, halt = 40, check=True):
def QpCR(p, prec = twenty, print_mode = None, halt = forty, check=True):
def QpCR(p, prec = 20, print_mode = None, halt = 40, check=True): return Qp(p=p, prec=prec, print_mode=print_mode, halt=halt, check=check, type = 'capped-rel')
6eb314752fa13bea5bd88c6e7a82a4748c3353b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/6eb314752fa13bea5bd88c6e7a82a4748c3353b1/factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2238, 84, 5093, 12, 84, 16, 13382, 273, 2339, 319, 93, 16, 1172, 67, 3188, 273, 599, 16, 18389, 273, 364, 4098, 16, 866, 33, 5510, 4672, 327, 2238, 84, 12, 84, 33, 84, 16, 13382, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2238, 84, 5093, 12, 84, 16, 13382, 273, 2339, 319, 93, 16, 1172, 67, 3188, 273, 599, 16, 18389, 273, 364, 4098, 16, 866, 33, 5510, 4672, 327, 2238, 84, 12, 84, 33, 84, 16, 13382, 3...
return self.tk.call(self._w, 'nearest', y)
return self.tk.call(self._w, 'nearest', y)
def nearest(self, y):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11431, 12, 2890, 16, 677, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11431, 12, 2890, 16, 677, 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, -10...
logger.indent += 2
def remove_entries_from_file(filename, entries, auto_confirm=True): """Remove ``entries`` from text file ``filename``, with confirmation (unless ``auto_confirm`` is True).""" assert os.path.isfile(filename), "Cannot remove entries from nonexistent file %s" % filename logger.notify('Removing entries from %s:' % filename...
73b2f1b85cd24bc0c7353bba09db90059a300fdd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/73b2f1b85cd24bc0c7353bba09db90059a300fdd/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 8219, 67, 2080, 67, 768, 12, 3459, 16, 3222, 16, 3656, 67, 10927, 33, 5510, 4672, 3536, 3288, 12176, 8219, 10335, 628, 977, 585, 12176, 3459, 68, 9191, 598, 14296, 261, 28502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 8219, 67, 2080, 67, 768, 12, 3459, 16, 3222, 16, 3656, 67, 10927, 33, 5510, 4672, 3536, 3288, 12176, 8219, 10335, 628, 977, 585, 12176, 3459, 68, 9191, 598, 14296, 261, 28502, ...
def Draw(self, dc, brushContainer):
def Draw(self, dc, boundingRect, brushContainer):
def Draw(self, dc, brushContainer): item = self._item
40c8f7512b75feb030955e81ea86b74863b4ac0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/40c8f7512b75feb030955e81ea86b74863b4ac0c/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 12, 2890, 16, 6744, 16, 7552, 6120, 16, 5186, 1218, 2170, 4672, 761, 273, 365, 6315, 1726, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 12, 2890, 16, 6744, 16, 7552, 6120, 16, 5186, 1218, 2170, 4672, 761, 273, 365, 6315, 1726, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return 1
return -1
def compareTransactionsByDate(x, y): if x.date > y.date: return 1 elif x.date < y.date: return -1 else: return 0
14419d6f32a89bcdfeb5a0b410410e98eb80bd99 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3133/14419d6f32a89bcdfeb5a0b410410e98eb80bd99/groupHandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 14186, 858, 1626, 12, 92, 16, 677, 4672, 309, 619, 18, 712, 405, 677, 18, 712, 30, 327, 300, 21, 1327, 619, 18, 712, 411, 677, 18, 712, 30, 327, 300, 21, 469, 30, 327, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3400, 14186, 858, 1626, 12, 92, 16, 677, 4672, 309, 619, 18, 712, 405, 677, 18, 712, 30, 327, 300, 21, 1327, 619, 18, 712, 411, 677, 18, 712, 30, 327, 300, 21, 469, 30, 327, 374, ...
facets[fc] = fi self.__facets = facets
local_facets[fc] = fi self.__facets = local_facets
def __updateFacets (self, wxs, body): # We want a map from the union of the facet classes from this # STD and the baseTypeDefinition (if present), to None if the # facet has not been constrained, or a ConstrainingFacet # instance if it is. ConstrainingFacet instances created for # local constraints also need a pointer...
a898384e612aa56c517f5a6a9a709cda64ca2e35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/a898384e612aa56c517f5a6a9a709cda64ca2e35/structures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 6645, 2413, 261, 2890, 16, 7075, 87, 16, 1417, 4672, 468, 1660, 2545, 279, 852, 628, 326, 7812, 434, 326, 11082, 3318, 628, 333, 468, 2347, 40, 471, 326, 23937, 1852, 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, 1001, 2725, 6645, 2413, 261, 2890, 16, 7075, 87, 16, 1417, 4672, 468, 1660, 2545, 279, 852, 628, 326, 7812, 434, 326, 11082, 3318, 628, 333, 468, 2347, 40, 471, 326, 23937, 1852, 261, ...
self.host.execute("qm set %s --ide0 local:%s/disk.qcow2" % (self.kvm_id, self.kvm_id, self.template), task)
self.host.execute("qm set %s --ide0 local:%s/disk.qcow2" % (self.kvm_id, self.kvm_id), task)
def prepare_run(self, task): generic.Device.prepare_run(self, task) self.host.execute("qm create %s" % self.kvm_id, task) self.host.execute("mkdir -p /var/lib/vz/images/%s" % self.kvm_id, task) self.host.execute("cp /var/lib/vz/template/qemu/%s /var/lib/vz/images/%s/disk.qcow2" % (self.template, self.kvm_id), task) sel...
008916d4451b89fbd5f81487589c218f4c90b0ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/008916d4451b89fbd5f81487589c218f4c90b0ed/kvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 67, 2681, 12, 2890, 16, 1562, 4672, 5210, 18, 3654, 18, 9366, 67, 2681, 12, 2890, 16, 1562, 13, 365, 18, 2564, 18, 8837, 2932, 26245, 752, 738, 87, 6, 738, 365, 18, 79, 3489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2681, 12, 2890, 16, 1562, 4672, 5210, 18, 3654, 18, 9366, 67, 2681, 12, 2890, 16, 1562, 13, 365, 18, 2564, 18, 8837, 2932, 26245, 752, 738, 87, 6, 738, 365, 18, 79, 3489, ...
global bot bot = self
def run(self): """Protocol-specific loop""" global bot bot = self # XXX don't remove this.. print 'Prepend any messages you wish to pass to the both with a "$"' print 'bot = %s' % bot shell = IPShellMadcow(callback=self) shell()
4244b5d2870e273acbb944078a0ccf573c1faae2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10942/4244b5d2870e273acbb944078a0ccf573c1faae2/ipython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 5752, 17, 12524, 2798, 8395, 225, 468, 11329, 2727, 1404, 1206, 333, 838, 1172, 296, 24882, 1281, 2743, 1846, 14302, 358, 1342, 358, 326, 3937, 598, 279, 4662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 5752, 17, 12524, 2798, 8395, 225, 468, 11329, 2727, 1404, 1206, 333, 838, 1172, 296, 24882, 1281, 2743, 1846, 14302, 358, 1342, 358, 326, 3937, 598, 279, 4662, ...
lookup = (self,instring,loc,doActions) try: value = ParserElement.exprArgCache[ lookup ] if isinstance(value,ParseException): raise value return value except KeyError: try: ParserElement.exprArgCache[ lookup ] = value = self.expr.parse( instring, loc, doActions ) return value except ParseException, pe: ParserElement.ex...
return self.expr._parse( instring, loc, doActions ) else: raise ParseException("",loc,self.errmsg,self)
def parseImpl( self, instring, loc, doActions=True ): if self.expr is not None: lookup = (self,instring,loc,doActions) try: value = ParserElement.exprArgCache[ lookup ] if isinstance(value,ParseException): raise value return value except KeyError: try: ParserElement.exprArgCache[ lookup ] = value = self.expr.parse( ins...
cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 309, 365, 18, 8638, 353, 486, 599, 30, 3689, 273, 261, 2890, 16, 267, 1080, 16, 1829, 16, 2896, 6100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2828, 12, 365, 16, 316, 1080, 16, 1515, 16, 741, 6100, 33, 5510, 262, 30, 309, 365, 18, 8638, 353, 486, 599, 30, 3689, 273, 261, 2890, 16, 267, 1080, 16, 1829, 16, 2896, 6100, ...
return self.reference.modules()[ self.reference.package_names().index( self.package )
return self.reference.modules()[ self.reference.package_names().index( self.package )
def get_module( self ): """Retrieve our module""" return self.reference.modules()[ self.reference.package_names().index( self.package ) ]
5e441a6d3c8bf4a1d1361e5553c2257c04555ada /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1545/5e441a6d3c8bf4a1d1361e5553c2257c04555ada/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 12, 365, 262, 30, 3536, 5767, 3134, 1605, 8395, 327, 365, 18, 6180, 18, 6400, 1435, 63, 365, 18, 6180, 18, 5610, 67, 1973, 7675, 1615, 12, 365, 18, 5610, 262, 308, 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, 336, 67, 2978, 12, 365, 262, 30, 3536, 5767, 3134, 1605, 8395, 327, 365, 18, 6180, 18, 6400, 1435, 63, 365, 18, 6180, 18, 5610, 67, 1973, 7675, 1615, 12, 365, 18, 5610, 262, 308, 2, ...
self.prelink_hook()
if self.compiler.compiler_type == 'msvc': self.msvc_prelink_hack(sources, ext, extra_args)
def build_extensions (self):
c99d45c8e6af0eee6a4fe351d4786a13ee7f5e03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c99d45c8e6af0eee6a4fe351d4786a13ee7f5e03/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if cardinality == "list": valueString = u", ".join([part.getItemDisplayName() for part in theValue]) else: valueString = unicode(theValue)
if cardinality == "single": if theValue is None: valueString = u"" else: valueString = unicode(theValue) elif cardinality == "list" or cardinality == "set": valueString = _(u", ").join([unicode(part) for part in theValue])
def GetAttributeValue(self, item, attributeName): """ Get the attribute's current value """ try: theValue = getattr(item, attributeName) except AttributeError: valueString = u"" else: if theValue is None: theValue = u"" else: theValue = unicode(theValue) try: cardinality = item.getAttributeAspect (attributeName, "cardi...
82c3942c394e9e18bd17af58344195ec12fe1d4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/82c3942c394e9e18bd17af58344195ec12fe1d4c/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 14942, 12, 2890, 16, 761, 16, 9734, 4672, 3536, 968, 326, 1566, 1807, 783, 460, 3536, 775, 30, 326, 620, 273, 3869, 12, 1726, 16, 9734, 13, 1335, 6394, 30, 24998, 273, 582, 3660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 14942, 12, 2890, 16, 761, 16, 9734, 4672, 3536, 968, 326, 1566, 1807, 783, 460, 3536, 775, 30, 326, 620, 273, 3869, 12, 1726, 16, 9734, 13, 1335, 6394, 30, 24998, 273, 582, 3660, ...
h = httplib.HTTPSConnection(HOST, PORT, timeout=30) self.assertEqual(h.timeout, 30)
if hasattr(httplib, 'HTTPSConnection'): h = httplib.HTTPSConnection(HOST, PORT, timeout=30) self.assertEqual(h.timeout, 30)
def test_attributes(self): # simple test to check it's storing it h = httplib.HTTPSConnection(HOST, PORT, timeout=30) self.assertEqual(h.timeout, 30)
96edb1ce861798b1d5d0dbc50f18504a86a5ac17 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/96edb1ce861798b1d5d0dbc50f18504a86a5ac17/test_httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4350, 12, 2890, 4672, 468, 4143, 1842, 358, 866, 518, 1807, 15729, 518, 366, 273, 15851, 6673, 18, 18657, 1952, 12, 8908, 16, 20987, 16, 2021, 33, 5082, 13, 365, 18, 11231, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4350, 12, 2890, 4672, 468, 4143, 1842, 358, 866, 518, 1807, 15729, 518, 366, 273, 15851, 6673, 18, 18657, 1952, 12, 8908, 16, 20987, 16, 2021, 33, 5082, 13, 365, 18, 11231, 5...
has_children = False
def get_all_selected_packages(self, tree_model, boolean_col = 0,\ name_col = 1): n = len(tree_model) names = [] has_children = False for row in tree_model: for child_row in row.iterchildren(): if child_row[boolean_col]: has_children = True names.append(child_row[name_col]) if not has_children and row[boolean_col]: nam...
6fda9953b581d2e4cdee0641352dd5e59e313735 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/6fda9953b581d2e4cdee0641352dd5e59e313735/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 8109, 67, 10308, 12, 2890, 16, 2151, 67, 2284, 16, 1250, 67, 1293, 273, 374, 17211, 508, 67, 1293, 273, 404, 4672, 290, 273, 562, 12, 3413, 67, 2284, 13, 225, 1257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 454, 67, 8109, 67, 10308, 12, 2890, 16, 2151, 67, 2284, 16, 1250, 67, 1293, 273, 374, 17211, 508, 67, 1293, 273, 404, 4672, 290, 273, 562, 12, 3413, 67, 2284, 13, 225, 1257,...
for myFile in fnmatch.filter(wikiFileFinder.get_analyzeQscan_RDS(),\
for myFile in fnmatch.filter(filesAnalyze,\
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...
481b556f895e5b0b4caf0acaf35400d2993db8e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/481b556f895e5b0b4caf0acaf35400d2993db8e5/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, ...
def removePhysicalReplica(self,storageElementName,lfn):
def removePhysicalReplica( self, storageElementName, lfn ):
def removePhysicalReplica(self,storageElementName,lfn): """ Remove replica from Storage Element.
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 18136, 14222, 12, 365, 16, 2502, 30584, 16, 328, 4293, 262, 30, 3536, 3581, 12335, 628, 5235, 3010, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 18136, 14222, 12, 365, 16, 2502, 30584, 16, 328, 4293, 262, 30, 3536, 3581, 12335, 628, 5235, 3010, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print dst_geom.ExportToWkt()
print(dst_geom.ExportToWkt())
def ogr_factory_4(): src_wkt = 'POINT(2 5 3)' exp_wkt = 'MULTIPOINT(2 5 3)' src_geom = ogr.CreateGeometryFromWkt( src_wkt ) dst_geom = ogr.ForceToMultiPoint( src_geom ) if ogrtest.check_feature_geometry( dst_geom, exp_wkt ): print dst_geom.ExportToWkt() return 'fail' src_wkt = 'GEOMETRYCOLLECTION(POINT(2 5 3),POINT...
1559772190a41c08c88d9e19e0f49b564439b503 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/1559772190a41c08c88d9e19e0f49b564439b503/ogr_factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 6848, 67, 24, 13332, 225, 1705, 67, 91, 8629, 273, 296, 8941, 12, 22, 1381, 890, 2506, 1329, 67, 91, 8629, 273, 296, 26588, 8941, 12, 22, 1381, 890, 2506, 225, 1705, 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, 320, 3197, 67, 6848, 67, 24, 13332, 225, 1705, 67, 91, 8629, 273, 296, 8941, 12, 22, 1381, 890, 2506, 1329, 67, 91, 8629, 273, 296, 26588, 8941, 12, 22, 1381, 890, 2506, 225, 1705, 6...
"""Handle table row end.""" if self.in_table: result = '' result += self.formatter.table_cell(0) + self.formatter.table_row(0) return result else: return self.formatter.text(word)
return word
def _tableZ_repl(self, word): """Handle table row end.""" if self.in_table: result = '' result += self.formatter.table_cell(0) + self.formatter.table_row(0) return result else: return self.formatter.text(word)
8e5afa2fec89b3f85e1e2a6cd4bb9e210c371580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/8e5afa2fec89b3f85e1e2a6cd4bb9e210c371580/wikimarkup_converter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2121, 62, 67, 26745, 12, 2890, 16, 2076, 4672, 3536, 3259, 1014, 1027, 679, 12123, 309, 365, 18, 267, 67, 2121, 30, 563, 273, 875, 563, 1011, 365, 18, 12354, 18, 2121, 67, 3855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2121, 62, 67, 26745, 12, 2890, 16, 2076, 4672, 3536, 3259, 1014, 1027, 679, 12123, 309, 365, 18, 267, 67, 2121, 30, 563, 273, 875, 563, 1011, 365, 18, 12354, 18, 2121, 67, 3855, ...
self.buttonUploadMinusRow.setIcon(QtGui.QIcon(" "))
self.buttonUploadMinusRow.setIcon(QtGui.QIcon(":/images/minus.png"))
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
thing.doc = doc thing.__get__() setattr(cls, parts[0], thing) _config_var_list.append(thing)
if hasattr(root, name): raise AttributeError('This name is already taken', configparam.fullname) configparam.doc = doc configparam.__get__() setattr(root.__class__, sections[0], configparam) _config_var_list.append(configparam)
def AddConfigVar(name, doc, thing, cls=TheanoConfigParser): if cls == TheanoConfigParser: thing.fullname = name if hasattr(TheanoConfigParser, name): raise ValueError('This name is already taken') parts = name.split('.') if len(parts) > 1: # set up a subobject if not hasattr(cls, parts[0]): class SubObj(object): pass s...
e3645fb54ce1e57f37edbe10034f55b82e6f158b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/e3645fb54ce1e57f37edbe10034f55b82e6f158b/configparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 809, 1537, 12, 529, 16, 997, 16, 7757, 16, 2028, 33, 1986, 31922, 809, 2678, 4672, 309, 2028, 422, 1021, 31922, 809, 2678, 30, 7757, 18, 21885, 273, 508, 309, 3859, 12, 1986, 319...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1436, 809, 1537, 12, 529, 16, 997, 16, 7757, 16, 2028, 33, 1986, 31922, 809, 2678, 4672, 309, 2028, 422, 1021, 31922, 809, 2678, 30, 7757, 18, 21885, 273, 508, 309, 3859, 12, 1986, 319...
- Ignored files: files usually ignored by Mercurial because they match a pattern in a ".hgignore" file
def purge(ui, repo, *dirs, **opts): '''removes files not tracked by mercurial Delete files not known to mercurial, this is useful to test local and uncommitted changes in the otherwise clean source tree. This means that purge will delete: - Unknown files: files marked with "?" by "hg status" - Ignored files: files us...
8868ed07427d2f3c069a6d32f0806cf7ec012ab0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/8868ed07427d2f3c069a6d32f0806cf7ec012ab0/purge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 4881, 16, 3538, 16, 380, 8291, 16, 2826, 4952, 4672, 9163, 2764, 10829, 1390, 486, 15200, 635, 4045, 1397, 649, 225, 2504, 1390, 486, 4846, 358, 4045, 1397, 649, 16, 333, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11668, 12, 4881, 16, 3538, 16, 380, 8291, 16, 2826, 4952, 4672, 9163, 2764, 10829, 1390, 486, 15200, 635, 4045, 1397, 649, 225, 2504, 1390, 486, 4846, 358, 4045, 1397, 649, 16, 333, 353,...
bodyStart = """<body style='margin: 0'>
bodyStart = """<body>
def __init__(self, uiPort, bayes): uiArgs = (bayes,) Listener.__init__(self, uiPort, UserInterface, uiArgs)
bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 324, 528, 281, 4672, 5915, 2615, 273, 261, 70, 528, 281, 16, 13, 10652, 16186, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 21369, 16, 5915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 324, 528, 281, 4672, 5915, 2615, 273, 261, 70, 528, 281, 16, 13, 10652, 16186, 2738, 972, 12, 2890, 16, 5915, 2617, 16, 21369, 16, 5915, ...
if self.compressFile:
if prefix == '\037\213':
def getReadFileObj(self, fileRef): """Return file object and set self.compressFile to False/True, fileRef is either file path or file object""" if not hasattr(fileRef, 'read'): fileRef = file(fileRef.encode(sys.getfilesystemencoding()), 'rb') # binary mode req'd for encryption if hasattr(fileRef, 'seek'): fileRef.seek(...
0e127cb5c42aaa98d19a553ccc637efea6e9b803 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3087/0e127cb5c42aaa98d19a553ccc637efea6e9b803/treedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19900, 812, 2675, 12, 2890, 16, 585, 1957, 4672, 3536, 990, 585, 733, 471, 444, 365, 18, 14706, 812, 358, 1083, 19, 5510, 16, 585, 1957, 353, 3344, 585, 589, 578, 585, 733, 8395, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19900, 812, 2675, 12, 2890, 16, 585, 1957, 4672, 3536, 990, 585, 733, 471, 444, 365, 18, 14706, 812, 358, 1083, 19, 5510, 16, 585, 1957, 353, 3344, 585, 589, 578, 585, 733, 8395, 309, ...
self.activity.deck_label = gtk.Label("%d %s" % (DECKSIZE-DEAL, _('cards')))
self.activity.deck_label = gtk.Label("%d %s" % \ (level_decksize[self.activity._play_level], _('cards')))
def __init__(self, activity): gtk.Toolbar.__init__(self) self.activity = activity self.activity.button1 = ToolButton( "new-pattern-game" ) self.activity.button1.set_tooltip(_('New pattern game')) self.activity.button1.props.sensitive = True self.activity.button1.connect('clicked', self.activity._select_game_cb, self.ac...
49ce15ee3778ba09525fb6051c80aa04c6638d9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/49ce15ee3778ba09525fb6051c80aa04c6638d9b/VisualMatchActivity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5728, 4672, 22718, 18, 17907, 16186, 2738, 972, 12, 2890, 13, 365, 18, 9653, 273, 5728, 365, 18, 9653, 18, 5391, 21, 273, 13288, 3616, 12, 315, 2704, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5728, 4672, 22718, 18, 17907, 16186, 2738, 972, 12, 2890, 13, 365, 18, 9653, 273, 5728, 365, 18, 9653, 18, 5391, 21, 273, 13288, 3616, 12, 315, 2704, 17,...
title = _('Repl&yAll'),
title = _(u'Repl&yAll'),
def makeVisibleHourMenuItems(parcel): """ Create the 'Visible Hours' submenu. Should look like: Automatic --------- 5 hours 6 hours
043a08a77771b31713425ec3f48a9c0186570e1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/043a08a77771b31713425ec3f48a9c0186570e1d/menus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 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, 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, 6207, 13433, 4599, 3126, 12, 1065, 2183, 4672, 3536, 1788, 326, 296, 6207, 670, 4390, 11, 27539, 18, 9363, 2324, 3007, 30, 225, 11809, 4941, 300, 788, 1381, 7507, 1666, 7507, 2, -1...
diff_map = self.masked_diff_map.deep_copy().set_selected(
diff_map = masked_diff_map.deep_copy().set_selected(
def as_cif_block(self): from iotbx import cif cif_block = cif.model.block() mask_loop = cif.model.loop(header=( "_smtbx_masks_void_nr", "_smtbx_masks_void_average_x", "_smtbx_masks_void_average_y", "_smtbx_masks_void_average_z", "_smtbx_masks_void_volume", "_smtbx_masks_void_count_electrons", "_smtbx_masks_void_content...
765262f533fe6327ab5ab01c147bf35d7a41d473 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/765262f533fe6327ab5ab01c147bf35d7a41d473/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 67, 30674, 67, 2629, 12, 2890, 4672, 628, 30956, 70, 92, 1930, 276, 430, 276, 430, 67, 2629, 273, 276, 430, 18, 2284, 18, 2629, 1435, 3066, 67, 6498, 273, 276, 430, 18, 2284, 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, 487, 67, 30674, 67, 2629, 12, 2890, 4672, 628, 30956, 70, 92, 1930, 276, 430, 276, 430, 67, 2629, 273, 276, 430, 18, 2284, 18, 2629, 1435, 3066, 67, 6498, 273, 276, 430, 18, 2284, 18...
"ladspa-SweepVFII" : 4, "ladspa-SweepVFI" : 4, "ladspa-PhaserII" : 10, "ladspa-PhaserI" : 10, "ladspa-ChorusII" : 9, "ladspa-ChorusI" : 9, "ladspa-Clip" : 14, "ladspa-CabinetII" : 7, "ladspa-CabinetI" : 7, "ladspa-AmpV" : 7, "ladspa-AmpIV" : 7, "ladspa-AmpIII" : 7, "ladspa-PreampIV" : 7, "ladspa-PreampIII" : 7, "ladspa...
"ladspa-SweepVFII" : Categories.modulators, "ladspa-SweepVFI" : Categories.modulators, "ladspa-PhaserII" : Categories.phasers, "ladspa-PhaserI" : Categories.phasers, "ladspa-ChorusII" : Categories.chorus, "ladspa-ChorusI" : Categories.chorus, "ladspa-Clip" : Categories.amplifiers, "ladspa-CabinetII" : Categories.simula...
def PopulateEncoders(): """ Check if the hardcoded list of encoders is available on the system. """ #HACK: we can't import gst at the top of Globals.py because #if we do, gstreamer will get to the sys.args and print it's own #message instead of ours. This will be fixed once we can use #GOption when we depend on pygobje...
f57d918efa0311f6e78f1f7f1dbb7f129ae98df1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/f57d918efa0311f6e78f1f7f1dbb7f129ae98df1/Globals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22254, 25100, 414, 13332, 3536, 2073, 309, 326, 7877, 24808, 666, 434, 17755, 414, 353, 2319, 603, 326, 2619, 18, 3536, 468, 44, 3649, 30, 732, 848, 1404, 1930, 314, 334, 622, 326, 1760,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22254, 25100, 414, 13332, 3536, 2073, 309, 326, 7877, 24808, 666, 434, 17755, 414, 353, 2319, 603, 326, 2619, 18, 3536, 468, 44, 3649, 30, 732, 848, 1404, 1930, 314, 334, 622, 326, 1760,...
Args: download_folder: Absoulte path to the download folder. redirect_file: For testing. Where to copy new boot desc. """ boot_desc_path = os.path.join(download_folder, 'boot.desc') in_chroot_folder = ReinterpretPathForChroot(download_folder)
self.mox.ReplayAll() self.assertEquals(ctest.GetLatestZipUrl(self.board, self.channel, self.latestbase, self.zipbase), self.image_url) self.mox.VerifyAll()
def ModifyBootDesc(download_folder, redirect_file=None): """Modifies the boot description of a downloaded image to work with path. The default boot.desc from another system is specific to the directory it was created in. This modifies the boot description to be compatiable with the download folder. Args: download_fo...
2cc5cd41556ea2cdcaf9142c96f440206f1f5867 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/2cc5cd41556ea2cdcaf9142c96f440206f1f5867/ctest_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9518, 15817, 4217, 12, 7813, 67, 5609, 16, 3136, 67, 768, 33, 7036, 4672, 3536, 1739, 5032, 326, 4835, 2477, 434, 279, 13549, 1316, 358, 1440, 598, 589, 18, 225, 1021, 805, 4835, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9518, 15817, 4217, 12, 7813, 67, 5609, 16, 3136, 67, 768, 33, 7036, 4672, 3536, 1739, 5032, 326, 4835, 2477, 434, 279, 13549, 1316, 358, 1440, 598, 589, 18, 225, 1021, 805, 4835, 18, 5...
apply(self.tk.call, (self._w, 'insert', index) + self._options(cnf, kw))
apply(self.tk.call, (self._w, 'insert', index) + self._options(cnf, kw))
def insert(self, index, cnf={}, **kw):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 770, 16, 23118, 28793, 2826, 9987, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 770, 16, 23118, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return
def loadLocale(self, localeName=None):
198f8267eba7eb944788cd926a785d90d477d619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12790/198f8267eba7eb944788cd926a785d90d477d619/i18n.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3916, 12, 2890, 16, 2573, 461, 33, 7036, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 3916, 12, 2890, 16, 2573, 461, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.maxiter = kwargs.get( 'maxiter', 2 * self.n )
self.maxiter = kwargs.get('maxiter', 2 * self.n)
def __init__( self, c, **kwargs ):
20199863b46980bde937df567b264cb16ad77560 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13857/20199863b46980bde937df567b264cb16ad77560/projKrylov.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 276, 16, 2826, 4333, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 276, 16, 2826, 4333, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
res = process_liness(self, datas, prefix + [field], current_module, relation_obj._name, newfd, position) (newrow, max2, w2, translate2, data_id2, data_res_id2) = res
res = process_liness(self, datas, prefix + [field], current_module, relation_obj._name, newfd, position) (newrow, max2, w2, translate2, data_id2, data_res_id2) = res
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in...
19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/19c6bf3cbf9c418ef8f4c3664582e8a20fbf6749/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
return self.get_dagname()+'.dagman.out'
return self.dagname+'.dagman.out'
def get_outname(self): """ Returns the outname of this DAG """ return self.get_dagname()+'.dagman.out'
6196656e03be958b606b4120d4998b03a9c7e5df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/6196656e03be958b606b4120d4998b03a9c7e5df/pylal_exttrig_llutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 659, 529, 12, 2890, 4672, 3536, 2860, 326, 596, 529, 434, 333, 463, 1781, 3536, 327, 365, 18, 588, 67, 30204, 529, 1435, 6797, 18, 30204, 4728, 18, 659, 11, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 659, 529, 12, 2890, 4672, 3536, 2860, 326, 596, 529, 434, 333, 463, 1781, 3536, 327, 365, 18, 588, 67, 30204, 529, 1435, 6797, 18, 30204, 4728, 18, 659, 11, 2, -100, -100, -...
pass
if self.type == 'GLsizei' or self.type == 'GLsizeiptr': file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n")
def WriteValidationCode(self, file): """Writes the validation code for an argument.""" pass
f451d00ddca4eb2ccab5024f40dfe34ce5145e95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/f451d00ddca4eb2ccab5024f40dfe34ce5145e95/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 3379, 981, 364, 392, 1237, 12123, 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...
[ 1, 1, 1, 1, 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, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 3536, 8368, 326, 3379, 981, 364, 392, 1237, 12123, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
parent.job().get_pegasus_exec_dir(), dax_basename + '_0') )
parent.job().get_pegasus_exec_dir(), dax_basename + '_0.cache') )
def recurse_pfn_cache(node,caches=[]): for parent in node._CondorDAGNode__parents: if isinstance(parent.job(), CondorDAGManJob): if parent.job().get_dax() is None: pass else: caches = recurse_pfn_cache(parent,caches) dax_name = os.path.basename(parent.job().get_dax()) dax_basename = '.'.join(dax_name.split('.')[0:-1]) ...
ee7a31c1bdf8346ad72ff90d2364489f8b11027f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/ee7a31c1bdf8346ad72ff90d2364489f8b11027f/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11502, 67, 84, 4293, 67, 2493, 12, 2159, 16, 17703, 281, 33, 8526, 4672, 364, 982, 316, 756, 6315, 12441, 280, 40, 1781, 907, 972, 12606, 30, 309, 1549, 12, 2938, 18, 4688, 9334, 735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11502, 67, 84, 4293, 67, 2493, 12, 2159, 16, 17703, 281, 33, 8526, 4672, 364, 982, 316, 756, 6315, 12441, 280, 40, 1781, 907, 972, 12606, 30, 309, 1549, 12, 2938, 18, 4688, 9334, 735, ...
result = self.ReportError(exc_type, exc_value, exc_traceback,
result = self.ReportError(req, exc_type, exc_value, exc_traceback,
def Dispatch(self, _req, htype): """ This is the handler dispatcher. """
2fd05e533c29c84171151f44bd059e946972289a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002/2fd05e533c29c84171151f44bd059e946972289a/apache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11552, 12, 2890, 16, 389, 3658, 16, 366, 723, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 11552, 12, 2890, 16, 389, 3658, 16, 366, 723, 4672, 3536, 1220, 353, 326, 1838, 7393, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
<ePixmap pixmap="skin_default/buttons/yellow.png" position="280,0" size="140,40" alphatest="on" />
def cancel(self): self.close(None)
7ac3daaddd1d808a9238391cd14613931900e4f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/7ac3daaddd1d808a9238391cd14613931900e4f9/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 365, 18, 4412, 12, 7036, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 365, 18, 4412, 12, 7036, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.headerValues[id] = values['default']
setattr(self, id, values['default'])
def _newVolume(self,data,copyFrom=None,rescale=True): """Takes a numpy array and makes a geoprobe volume. This volume can then be written to disk using the write() method."""
b5e8ba3f964ad7acd8862652337cad3272080ae6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10472/b5e8ba3f964ad7acd8862652337cad3272080ae6/volume.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2704, 4545, 12, 2890, 16, 892, 16, 3530, 1265, 33, 7036, 16, 455, 1869, 33, 5510, 4672, 3536, 11524, 279, 3972, 526, 471, 7297, 279, 8244, 556, 303, 2196, 3940, 18, 1220, 3940, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 2704, 4545, 12, 2890, 16, 892, 16, 3530, 1265, 33, 7036, 16, 455, 1869, 33, 5510, 4672, 3536, 11524, 279, 3972, 526, 471, 7297, 279, 8244, 556, 303, 2196, 3940, 18, 1220, 3940, 84...
if module == None: return (None, data)
def _UnpackOneTerm(data): dataLen = len(data) if len(data) == 0: return (None, data) data0 = ord(data[0]) if data0 == MAGIC_SMALL_INTEGER: if dataLen < 2: return (None, data) n = _ReadInt1(data[1]) return (ErlNumber(n), data[2:]) elif data0 == MAGIC_INTEGER: if dataLen < 5: return (None, data) n = _ReadInt4(data[1:5...
cadc8319939cd691f548c4b841a357df13bff542 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/cadc8319939cd691f548c4b841a357df13bff542/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23649, 3335, 4065, 12, 892, 4672, 501, 2891, 273, 562, 12, 892, 13, 225, 309, 562, 12, 892, 13, 422, 374, 30, 327, 261, 7036, 16, 501, 13, 225, 501, 20, 273, 4642, 12, 892, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23649, 3335, 4065, 12, 892, 4672, 501, 2891, 273, 562, 12, 892, 13, 225, 309, 562, 12, 892, 13, 422, 374, 30, 327, 261, 7036, 16, 501, 13, 225, 501, 20, 273, 4642, 12, 892, 63...
def containing_block(code, ix, delimiters=("[{(", "]})")):
def containing_block(code, ix, delimiters=['()','[]','{}'], require_delim=True):
def containing_block(code, ix, delimiters=("[{(", "]})")): """ Returns the smallest range (start,end) such that code[start,end] is delimited by balanced parentheses/brackets/braces. EXAMPLES: sage: from sage.misc.preparser import containing_block sage: s = "factor(next_prime(L[5]+1))" sage: s[22] '+' sage: start, end ...
126ec7ca15b4cb3b2967c6c988087023a08e7698 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/126ec7ca15b4cb3b2967c6c988087023a08e7698/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4191, 67, 2629, 12, 710, 16, 8288, 16, 18374, 33, 3292, 1435, 17023, 8526, 17023, 8978, 6487, 2583, 67, 23822, 33, 5510, 4672, 3536, 2860, 326, 13541, 1048, 261, 1937, 16, 409, 13, 4123,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4191, 67, 2629, 12, 710, 16, 8288, 16, 18374, 33, 3292, 1435, 17023, 8526, 17023, 8978, 6487, 2583, 67, 23822, 33, 5510, 4672, 3536, 2860, 326, 13541, 1048, 261, 1937, 16, 409, 13, 4123,...
except ValueError:
except:
def latest(self, branch='master'): if self._impl is None: return None try: return self.CommitClass.from_repo_object(self._impl.commit(rev=branch), self) except ValueError: return None
302f8daafdcbb540342ff106476eb8bb326da725 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/302f8daafdcbb540342ff106476eb8bb326da725/git_repo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4891, 12, 2890, 16, 3803, 2218, 7525, 11, 4672, 309, 365, 6315, 11299, 353, 599, 30, 327, 599, 775, 30, 327, 365, 18, 5580, 797, 18, 2080, 67, 7422, 67, 1612, 12, 2890, 6315, 11299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4891, 12, 2890, 16, 3803, 2218, 7525, 11, 4672, 309, 365, 6315, 11299, 353, 599, 30, 327, 599, 775, 30, 327, 365, 18, 5580, 797, 18, 2080, 67, 7422, 67, 1612, 12, 2890, 6315, 11299, ...
tmpfilename, file],
tmpfilename, "--nocrashhandler", file],
def profile(dir, file, logger): logger.startTest(file) file = os.path.join(dir, file) (path, ext) = os.path.splitext(file) ext = ext[1:] env = os.environ env['KDE_DEBUG'] = '0' (fileno, tmpfilename) = tempfile.mkstemp() exe = None for f in applications.keys(): if ext in applications[f]: exe = f for p in env['PATH'].spl...
cc07ecf7047b41cdabe3f6f08ae802368502a447 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1674/cc07ecf7047b41cdabe3f6f08ae802368502a447/profileOfficeFileLoading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3042, 12, 1214, 16, 585, 16, 1194, 4672, 1194, 18, 1937, 4709, 12, 768, 13, 585, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 261, 803, 16, 1110, 13, 273, 1140, 18, 803, 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, 3042, 12, 1214, 16, 585, 16, 1194, 4672, 1194, 18, 1937, 4709, 12, 768, 13, 585, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 261, 803, 16, 1110, 13, 273, 1140, 18, 803, 18...
retVal += "%02X %02X %02X %02X " % ( self.Displacement, self.Displacement, self.Displacement, self.Displacement,) size += 4
retVal += longToBytesRepr(self.Displacement,self.Instruction.DisplacementSize) size += self.Instruction.DisplacementSize
def OpText(self): size = 0 retVal = '' retVal += " %08X: " % self.Address for i in self.Instruction.Opcode: retVal += "%02X " % i size += 1 if self.ModRM: retVal += "%02X " % self.ModRM.SaveToByte() size += 1 if self.ModRM.HasSIB(): retVal += "%02X " % self.SIB size += 1 disp = self.ModRM.GetDisplacementSize() if dis...
85296a6615f37a30ef5d21aa543fa48d96df3093 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11637/85296a6615f37a30ef5d21aa543fa48d96df3093/x86inst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6066, 1528, 12, 2890, 4672, 963, 273, 374, 12197, 273, 875, 225, 12197, 1011, 315, 225, 738, 6840, 60, 30, 315, 738, 365, 18, 1887, 364, 277, 316, 365, 18, 11983, 18, 22808, 30, 12197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6066, 1528, 12, 2890, 4672, 963, 273, 374, 12197, 273, 875, 225, 12197, 1011, 315, 225, 738, 6840, 60, 30, 315, 738, 365, 18, 1887, 364, 277, 316, 365, 18, 11983, 18, 22808, 30, 12197,...
val = get_kb_mapping(kb, key=string, default=default) if val is None:
val = get_kbr_values(kb, searchkey=string, searchtype='e') try: return val[0][0] except:
def kb(self, kb, string, default=""): """ Returns the value of the "string" in the knowledge base "kb".
e1c020275743662e5940e3ebc7b64b1383ab27f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2763/e1c020275743662e5940e3ebc7b64b1383ab27f5/bibformat_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9182, 12, 2890, 16, 9182, 16, 533, 16, 805, 1546, 6, 4672, 3536, 2860, 326, 460, 434, 326, 315, 1080, 6, 316, 326, 20272, 1026, 315, 8899, 9654, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 9182, 12, 2890, 16, 9182, 16, 533, 16, 805, 1546, 6, 4672, 3536, 2860, 326, 460, 434, 326, 315, 1080, 6, 316, 326, 20272, 1026, 315, 8899, 9654, 2, -100, -100, -100, -100, -100, -100, ...
try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass
def _from_xdata_ydata(self, xdata, ydata, coerce, options): if coerce: xdata, ydata = self._coerce(xdata, ydata) g = Graphics() g._Graphics__objects.append(GraphicPrimitive_Line(xdata, ydata, options)) try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass return g
62fa6a278646fd5a09f2b2af5cb89657bbef34ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62fa6a278646fd5a09f2b2af5cb89657bbef34ee/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 1...
if field._properties and ((not field.store) or field._fnct_search):
if field._properties and not field.store:
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent)
4a388c5901be624ae5b5268187d75dd3c9fc687d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/4a388c5901be624ae5b5268187d75dd3c9fc687d/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
if len(shadowCounts) >= shadowLength and shadowCounts[i] == 0:
if len(shadowCounts) >= shadowLength \ and shadowCounts[:shadowLength] == [0] * shadowLength:
def shadowChangedUpstreamVersion(self, shadowLength): """ returns True if this revision is a) on a shadow and b) the parent branch's source count is 0, implying that the upstream version # has been changed """ i = shadowLength - 1 shadowCounts = list(self.sourceCount.iterCounts()) if len(shadowCounts) >= shadowLength a...
ce71a268aa1d7dd425c3561d0f8c22fc96022e7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/ce71a268aa1d7dd425c3561d0f8c22fc96022e7f/versions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10510, 5033, 1211, 3256, 1444, 12, 2890, 16, 10510, 1782, 4672, 3536, 1135, 1053, 309, 333, 6350, 353, 279, 13, 603, 279, 10510, 471, 324, 13, 326, 982, 3803, 1807, 1084, 1056, 353, 374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10510, 5033, 1211, 3256, 1444, 12, 2890, 16, 10510, 1782, 4672, 3536, 1135, 1053, 309, 333, 6350, 353, 279, 13, 603, 279, 10510, 471, 324, 13, 326, 982, 3803, 1807, 1084, 1056, 353, 374,...
arrayAbs = makeComp("@mozilla.org/supports-array;1", components.interfaces.nsISupportsArray, True)
arrayAbs = makeComp("@mozilla.org/supports-array;1", components.interfaces.nsISupportsArray, False)
def _makeSupportsArrayFromSecondElement(data): from miro.platform.xulhelper import makeComp, components arrayAbs = makeComp("@mozilla.org/supports-array;1", components.interfaces.nsISupportsArray, True) for datum in data: supportsString = makeComp("@mozilla.org/supports-string;1", components.interfaces.nsISupportsStrin...
5ae97cfc1d8d561f2b574ed9b8ad80e59c29258a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/5ae97cfc1d8d561f2b574ed9b8ad80e59c29258a/UIBackendDelegate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 27878, 1076, 1265, 8211, 1046, 12, 892, 4672, 628, 312, 11373, 18, 9898, 18, 92, 332, 4759, 1930, 1221, 2945, 16, 4085, 526, 9382, 273, 1221, 2945, 2932, 36, 8683, 15990, 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, 6540, 27878, 1076, 1265, 8211, 1046, 12, 892, 4672, 628, 312, 11373, 18, 9898, 18, 92, 332, 4759, 1930, 1221, 2945, 16, 4085, 526, 9382, 273, 1221, 2945, 2932, 36, 8683, 15990, 18, ...
linelen += len(c)
def write(s, output=output, lineEnd='\n'): # RFC 1521 requires that the line ending in a space or tab must have # that trailing character encoded. if s and s[-1:] in ' \t': output.write(s[:-1] + quote(s[-1]) + lineEnd) else: output.write(s + lineEnd)
bd70968a753e7da777a7a567a2b18f09d5cb003d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bd70968a753e7da777a7a567a2b18f09d5cb003d/quopri.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 87, 16, 876, 33, 2844, 16, 980, 1638, 2218, 64, 82, 11, 4672, 468, 8372, 4711, 5340, 4991, 716, 326, 980, 11463, 316, 279, 3476, 578, 3246, 1297, 1240, 468, 716, 7341, 3351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 87, 16, 876, 33, 2844, 16, 980, 1638, 2218, 64, 82, 11, 4672, 468, 8372, 4711, 5340, 4991, 716, 326, 980, 11463, 316, 279, 3476, 578, 3246, 1297, 1240, 468, 716, 7341, 3351, ...
self.assertEqual(str(self.app.A.a), 'I am file a', 'PUT factory should acquire content')
self.assertEqual(str(self.app.A.a), 'I am file a', 'PUT factory not should acquire content')
def testCollector2261(self): from OFS.Folder import manage_addFolder from OFS.DTMLMethod import addDTMLMethod
fb607f60c6ebabc1cbea346f89ba65a6a36456b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9658/fb607f60c6ebabc1cbea346f89ba65a6a36456b2/testPUT_factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7134, 3787, 9498, 12, 2890, 4672, 628, 531, 4931, 18, 3899, 1930, 10680, 67, 1289, 3899, 628, 531, 4931, 18, 40, 2838, 1305, 1930, 527, 40, 2838, 1305, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7134, 3787, 9498, 12, 2890, 4672, 628, 531, 4931, 18, 3899, 1930, 10680, 67, 1289, 3899, 628, 531, 4931, 18, 40, 2838, 1305, 1930, 527, 40, 2838, 1305, 2, -100, -100, -100, -100, ...
_token_rx = re.compile("[a-z0-9][-._a-z0-9]*", re.IGNORECASE)
_token_rx = re.compile("[a-z0-9][-._a-z0-9]*$", re.IGNORECASE)
def isnmtoken(s): return _nmtoken_rx.match(s) is not None
861788e1fb16ae0a8962842904084cfd11d581d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/861788e1fb16ae0a8962842904084cfd11d581d6/esis2sgml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5177, 1010, 969, 12, 87, 4672, 327, 389, 82, 1010, 969, 67, 20122, 18, 1916, 12, 87, 13, 353, 486, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5177, 1010, 969, 12, 87, 4672, 327, 389, 82, 1010, 969, 67, 20122, 18, 1916, 12, 87, 13, 353, 486, 599, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def session(inner, self, service_id, *path, **conf):
def _try_session(inner, self, service_id, *path, **conf):
def session(inner, self, service_id, *path, **conf): matches = list() for jid, service_ids in self.catalogue.items(): if service_id in service_ids: matches.append(jid)
6d8e1b9de867668de5a408e15492230f808c1eaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/6d8e1b9de867668de5a408e15492230f808c1eaf/services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 698, 67, 3184, 12, 7872, 16, 365, 16, 1156, 67, 350, 16, 380, 803, 16, 2826, 3923, 4672, 1885, 273, 666, 1435, 364, 14201, 16, 1156, 67, 2232, 316, 365, 18, 7199, 344, 18, 3319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 698, 67, 3184, 12, 7872, 16, 365, 16, 1156, 67, 350, 16, 380, 803, 16, 2826, 3923, 4672, 1885, 273, 666, 1435, 364, 14201, 16, 1156, 67, 2232, 316, 365, 18, 7199, 344, 18, 3319,...
self.write_status()
def process_response(self, response): """Job response function for the job manager.""" self.log("response from game %s" % response.game_id) self.competition.process_game_result(response) del self.games_in_progress[response.game_id] if not self.stopping_quietly: self.write_status() self.update_display() if self.chatty: ...
352200d98c6f7c9ff7a82829e680f69b5762fcfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/352200d98c6f7c9ff7a82829e680f69b5762fcfd/ringmasters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 766, 4672, 3536, 2278, 766, 445, 364, 326, 1719, 3301, 12123, 365, 18, 1330, 2932, 2740, 628, 7920, 738, 87, 6, 738, 766, 18, 13957, 67, 350, 13, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2740, 12, 2890, 16, 766, 4672, 3536, 2278, 766, 445, 364, 326, 1719, 3301, 12123, 365, 18, 1330, 2932, 2740, 628, 7920, 738, 87, 6, 738, 766, 18, 13957, 67, 350, 13, 365, 1...
if fget[groupby]['type'] in ('date','datetime'):
if d[groupby] and fget[groupby]['type'] in ('date','datetime'):
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): context = context or {} self.pool.get('ir.model.access').check(cr, uid, self._name, 'read', context=context) if not fields: fields = self._columns.keys()
7dc05435ff40cd9d48d66646c63715d2c1283add /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7dc05435ff40cd9d48d66646c63715d2c1283add/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1655, 12, 2890, 16, 4422, 16, 4555, 16, 2461, 16, 1466, 16, 13126, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 819, 33, 7036, 4672, 819, 273, 819, 578, 2618, 365, 18, 6011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1655, 12, 2890, 16, 4422, 16, 4555, 16, 2461, 16, 1466, 16, 13126, 16, 1384, 33, 20, 16, 1800, 33, 7036, 16, 819, 33, 7036, 4672, 819, 273, 819, 578, 2618, 365, 18, 6011, ...