rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if dir: if not os.path.exists(dir): os.mkdir(dir, 0o700) else: print("Cannot determine location of $HOME. Not storing default user") return False
if not os.path.exists(dir): os.mkdir(dir, 0o700)
def _save_user_info(self, username, passwd, dir, file_name): ''' Save username and password in file "dir + file_name" If it's saved properly, return True, or else return False. ''' try: if dir: if not os.path.exists(dir): os.mkdir(dir, 0o700) else: print("Cannot determine location of $HOME. Not storing default user") r...
6000bb171b66735393843be9a3cb2ab34f01c634 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/6000bb171b66735393843be9a3cb2ab34f01c634/bindcmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5688, 67, 1355, 67, 1376, 12, 2890, 16, 2718, 16, 19093, 16, 1577, 16, 585, 67, 529, 4672, 9163, 7074, 2718, 471, 2201, 316, 585, 315, 1214, 397, 585, 67, 529, 6, 971, 518, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5688, 67, 1355, 67, 1376, 12, 2890, 16, 2718, 16, 19093, 16, 1577, 16, 585, 67, 529, 4672, 9163, 7074, 2718, 471, 2201, 316, 585, 315, 1214, 397, 585, 67, 529, 6, 971, 518, 1807...
if _debug: print "\t%s: Called Plane.__init__()" % rendererName
Item.__init__(self) debugMsg("Called Plane.__init__()")
def __init__(self,scene): """ Initialisation of the Plane object """ if _debug: print "\t%s: Called Plane.__init__()" % rendererName
431189e7e535c0ce614e7ffbef2068439f08912a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/431189e7e535c0ce614e7ffbef2068439f08912a/plane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 23694, 4672, 3536, 10188, 10742, 434, 326, 3008, 8806, 733, 3536, 309, 389, 4148, 30, 1172, 1548, 88, 9, 87, 30, 11782, 3008, 8806, 16186, 2738, 972, 10031...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23694, 4672, 3536, 10188, 10742, 434, 326, 3008, 8806, 733, 3536, 309, 389, 4148, 30, 1172, 1548, 88, 9, 87, 30, 11782, 3008, 8806, 16186, 2738, 972, 10031...
content = content.encode('iso-8859-15', 'replace')
content = content.encode('Windows-1252', 'replace')
def post(self, content): if isinstance(content, unicode): content = content.encode('iso-8859-15', 'replace')
c4d8f7de2e451f8490c489c44dbd9103cebc38bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/c4d8f7de2e451f8490c489c44dbd9103cebc38bb/contact_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 12, 2890, 16, 913, 4672, 309, 1549, 12, 1745, 16, 5252, 4672, 913, 273, 913, 18, 3015, 2668, 9699, 17, 17258, 17, 3600, 2187, 296, 2079, 6134, 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, 1603, 12, 2890, 16, 913, 4672, 309, 1549, 12, 1745, 16, 5252, 4672, 913, 273, 913, 18, 3015, 2668, 9699, 17, 17258, 17, 3600, 2187, 296, 2079, 6134, 2, -100, -100, -100, -100, -100, -1...
for group in sorted(available, key=lambda x: x.nameByLang(mylang)):
for group in available:
def returnGroupLists(self, userlist):
6be024406dc4d862c1e43975fa7754f098cc04ff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/6be024406dc4d862c1e43975fa7754f098cc04ff/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 1114, 7432, 12, 2890, 16, 26860, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 327, 1114, 7432, 12, 2890, 16, 26860, 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, -10...
' in ' + input
' in ' + build_file
def ExpandVariables(input, is_late, variables, build_file): # Look for the pattern that gets expanded into variables if not is_late: variable_re = early_variable_re else: variable_re = late_variable_re matches = map(None, variable_re.finditer(input)) output = input if matches != None: # Reverse the list of matches so ...
ac5e1106245db7117ff502314437cd6ee4ffad65 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/ac5e1106245db7117ff502314437cd6ee4ffad65/input.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 6158, 12, 2630, 16, 353, 67, 20293, 16, 3152, 16, 1361, 67, 768, 4672, 468, 10176, 364, 326, 1936, 716, 5571, 8406, 1368, 3152, 309, 486, 353, 67, 20293, 30, 2190, 67, 266, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 6158, 12, 2630, 16, 353, 67, 20293, 16, 3152, 16, 1361, 67, 768, 4672, 468, 10176, 364, 326, 1936, 716, 5571, 8406, 1368, 3152, 309, 486, 353, 67, 20293, 30, 2190, 67, 266, 273,...
if self.has_handler('template.xhtml'):
try:
def get_template(self): if self.has_handler('template.xhtml'): return self.get_handler('template.xhtml') # Default, aruni return self.get_handler('/ui/aruni/template.xhtml')
561b04b86500f7f67e69de0f03a500447abb6080 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/561b04b86500f7f67e69de0f03a500447abb6080/skins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3202, 12, 2890, 4672, 775, 30, 327, 365, 18, 588, 67, 4176, 2668, 3202, 18, 26341, 6134, 468, 2989, 16, 419, 318, 77, 327, 365, 18, 588, 67, 4176, 2668, 19, 4881, 19, 297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3202, 12, 2890, 4672, 775, 30, 327, 365, 18, 588, 67, 4176, 2668, 3202, 18, 26341, 6134, 468, 2989, 16, 419, 318, 77, 327, 365, 18, 588, 67, 4176, 2668, 19, 4881, 19, 297, ...
print "%d %d %d" % (len (data), len (cdata), len (bdata)) EXEDATA = """ eNrtfQt4U9eV7pEl28IIJIJNlMRJlCBaN3JcE5uMiYDK2HJMsI1s2TIkDsbYMrLwK9IRj4akENkT DhvlMU06aW/bSZp2pnMnM5OZ5jY0bYONSQzkwcMp0JJpIO1NZQyEJATMU/df+2z5BalnvszMN/f7 fPi29jl7r7X2WmuvvdbaW0em9P6nJK0kSTqUWEyStknq5ZDGv46iTL31tanSK5PeuW2bpuSd2yp9 TUFLe6BtVaCuxVJf...
print "%d %d" % (len (data), len (bdata)) EXEDATA = """\ TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA4AAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1v ZGUuDQ0KJAAAAAAAAADq0pWMrrP7366z+9+us/vf1a/336+z+98tr/XfrLP731GT/9+ss/vfzKzo 36az+9+us/rf9rP7366z+9+js/vfUZP...
def get_exe_bytes (self): import zlib, base64 return zlib.decompress (base64.decodestring (EXEDATA))
018cbb15c04aa544708430bb5b91aebe3e808923 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/018cbb15c04aa544708430bb5b91aebe3e808923/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 24220, 16, 1026, 1105, 327, 24220, 18, 323, 14706, 261, 1969, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 3719, 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, 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, 14880, 67, 3890, 261, 2890, 4672, 1930, 24220, 16, 1026, 1105, 327, 24220, 18, 323, 14706, 261, 1969, 1105, 18, 4924, 1145, 371, 261, 2294, 2056, 3706, 3719, 2, -100, -100, -100...
def ready(self):
def ready(self, **kwargs):
def ready(self): """Wait till broker is ready to serve clients""" # First make sure the broker is listening by checking the log. if not retry(self.log_ready): raise Exception("Timed out waiting for broker %s" % self.name) # Make a connection, this will wait for extended cluster init to finish. try: self.connect().close...
cf463e5c3dd8f3db8add41684f3b8a733333768c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/cf463e5c3dd8f3db8add41684f3b8a733333768c/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5695, 12, 2890, 16, 2826, 4333, 4672, 3536, 5480, 21364, 8625, 353, 5695, 358, 12175, 7712, 8395, 468, 5783, 1221, 3071, 326, 8625, 353, 13895, 635, 6728, 326, 613, 18, 309, 486, 3300, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5695, 12, 2890, 16, 2826, 4333, 4672, 3536, 5480, 21364, 8625, 353, 5695, 358, 12175, 7712, 8395, 468, 5783, 1221, 3071, 326, 8625, 353, 13895, 635, 6728, 326, 613, 18, 309, 486, 3300, 1...
return Column(self.name, self.type, fk, self.default, key = self.key, primary_key = self.primary_key, nullable=self.nullable, hidden=self.hidden)
return Column(self.name, self.type, fk, self.default, key = self.key, primary_key = self.primary_key, nullable = self.nullable, hidden = self.hidden)
def copy(self): """creates a copy of this Column, unitialized""" if self.foreign_key is None: fk = None else: fk = self.foreign_key.copy() return Column(self.name, self.type, fk, self.default, key = self.key, primary_key = self.primary_key, nullable=self.nullable, hidden=self.hidden)
f70f641dd69e98251089453b8fc5a94799c4a12d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1074/f70f641dd69e98251089453b8fc5a94799c4a12d/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 19787, 279, 1610, 434, 333, 4753, 16, 2836, 649, 1235, 8395, 309, 365, 18, 12774, 67, 856, 353, 599, 30, 10949, 273, 599, 469, 30, 10949, 273, 365, 18, 1277...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 19787, 279, 1610, 434, 333, 4753, 16, 2836, 649, 1235, 8395, 309, 365, 18, 12774, 67, 856, 353, 599, 30, 10949, 273, 599, 469, 30, 10949, 273, 365, 18, 1277...
qname = get_attribute_qname(attr_uri, attr_name)
def get_start_tag(tag_uri, tag_name, attributes): s = '<%s' % get_qname(tag_uri, tag_name) # Output the attributes for attr_uri, attr_name in attributes: value = attributes[(attr_uri, attr_name)] qname = get_attribute_qname(attr_uri, attr_name) datatype = get_datatype_by_uri(attr_uri, attr_name) value = datatype.encode...
47f88652c25e1545e05c48f69656d6228d64b080 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/47f88652c25e1545e05c48f69656d6228d64b080/xml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1937, 67, 2692, 12, 2692, 67, 1650, 16, 1047, 67, 529, 16, 1677, 4672, 272, 273, 2368, 9, 87, 11, 738, 336, 67, 85, 529, 12, 2692, 67, 1650, 16, 1047, 67, 529, 13, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1937, 67, 2692, 12, 2692, 67, 1650, 16, 1047, 67, 529, 16, 1677, 4672, 272, 273, 2368, 9, 87, 11, 738, 336, 67, 85, 529, 12, 2692, 67, 1650, 16, 1047, 67, 529, 13, 468, ...
keyval['Efficieny'] = keyval[keys[0]]/keyval['CPU']
if keyval['CPU_C'] != 0: keyval['Efficieny_C'] = keyval[keys[0]]/keyval['CPU_C'] else: keyval['Efficieny_C'] = keyval[keys[0]]
def postprocess(self): if self.role == 'client': if len(self.stream_list) != len(self.results): raise error.TestError('Mismatched number of results')
6993d7951b92c075ed4b9898f681fed8ed695618 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/6993d7951b92c075ed4b9898f681fed8ed695618/netperf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2567, 12, 2890, 4672, 309, 365, 18, 4615, 422, 296, 2625, 4278, 309, 562, 12, 2890, 18, 3256, 67, 1098, 13, 480, 562, 12, 2890, 18, 4717, 4672, 1002, 555, 18, 4709, 668, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 2567, 12, 2890, 4672, 309, 365, 18, 4615, 422, 296, 2625, 4278, 309, 562, 12, 2890, 18, 3256, 67, 1098, 13, 480, 562, 12, 2890, 18, 4717, 4672, 1002, 555, 18, 4709, 668, 2668, ...
while lst > sch0[0]: try: sch0 = schedule.pop(0) except IndexError: print "Schedule out of commands! Do something! Forget about music!" sys.exit(1) print "Passed threshold", sch0[0], "<", lst, "for region", sch0[1] newsong = True if newsong: for region in songLookup.keys: if sch0[1].find(region) >= 0: print "New song!...
try: while lst > schedule[1][0]: schedule.pop(0) print "Passed threshold", schedule[0][0], "<", lst, \ "for region", schedule[0][1] newsong = True if newsong: for region in songLookup.iterkeys(): if schedule[0][1].find(region) >= 0: print "New song!", schedule[0][1], "matches", region playSong(region) break else: prin...
def playSong(key): client.connect(mpdHost, mpdPort) client.password(mpdPass) songs = songLookup[key] song = songs[random.randint(0, len(songs)-1)] pl = client.playlist() if song['file'] in pl: client.play(pl.index(song['file'])) else: client.add(song['file']) client.play(len(pl)) #length one higher now, with added...
53efdec748405816d41c7667e1b1f87d1c4a08dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2109/53efdec748405816d41c7667e1b1f87d1c4a08dc/singalong.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 55, 932, 12, 856, 4672, 1004, 18, 3612, 12, 1291, 72, 2594, 16, 6749, 72, 2617, 13, 1004, 18, 3664, 12, 1291, 72, 6433, 13, 272, 7260, 273, 17180, 6609, 63, 856, 65, 17180, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 55, 932, 12, 856, 4672, 1004, 18, 3612, 12, 1291, 72, 2594, 16, 6749, 72, 2617, 13, 1004, 18, 3664, 12, 1291, 72, 6433, 13, 272, 7260, 273, 17180, 6609, 63, 856, 65, 17180, 273...
See also ``SearchForest` and ``TransitiveIdealGraded``.
See also :class:`~sage.combinat.backtrack.SearchForest` and :class:`~sage.combinat.backtrack.TransitiveIdealGraded`.
sage: def succ(l):
3b920682c3696da31e45456293d7345f176f2bee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/3b920682c3696da31e45456293d7345f176f2bee/backtrack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 21043, 12, 80, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 1652, 21043, 12, 80, 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, ...
print("\nThis run ({0}) did not reproduce the issue.".format(i))
print("\nThis run (%d) did not reproduce the issue." % (i))
def runTest(i): """Start a subprocess that runs the java reproducer. If it hangs, let the user know and leave the subprocess process running until the user presses a key. If it runs for DURATION_IN_SECONDS seconds without hanging, kill the subprocess and repeat.""" print "\nBeginning run {0} for {1} seconds. Press ENT...
c2c051062c8ec1e0ed56dadadecc6fa7b1244303 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12204/c2c051062c8ec1e0ed56dadadecc6fa7b1244303/testrunner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 77, 4672, 3536, 1685, 279, 6652, 716, 7597, 326, 2252, 283, 11776, 2750, 18, 971, 518, 25733, 87, 16, 2231, 326, 729, 5055, 471, 8851, 326, 6652, 1207, 3549, 3180, 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, 1086, 4709, 12, 77, 4672, 3536, 1685, 279, 6652, 716, 7597, 326, 2252, 283, 11776, 2750, 18, 971, 518, 25733, 87, 16, 2231, 326, 729, 5055, 471, 8851, 326, 6652, 1207, 3549, 3180, 326, ...
LOG('Zope', WARNING, 'user %s is not authorized to access %s' \ % (name, parent.absolute_url()))
def validate(self,request,auth='',roles=None): parent=request['PARENTS'][0] e=request.environ if e.has_key('REMOTE_USER'): name=e['REMOTE_USER'] else: for ob in self.getUsers(): domains=ob.getDomains() if domains: if ob.authenticate('', request): if ob.allowed(parent, roles): ob=ob.__of__(self) return ob nobody=self._n...
b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b524eb8d385b3d37d4c9cdb4f50ab88b14c32c5d/User.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 2293, 16, 1944, 2218, 2187, 7774, 33, 7036, 4672, 982, 33, 2293, 3292, 14943, 55, 3546, 63, 20, 65, 425, 33, 2293, 18, 28684, 309, 425, 18, 5332, 67, 856, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 2293, 16, 1944, 2218, 2187, 7774, 33, 7036, 4672, 982, 33, 2293, 3292, 14943, 55, 3546, 63, 20, 65, 425, 33, 2293, 18, 28684, 309, 425, 18, 5332, 67, 856, 2668, 1...
for outputModule in outputModulesList: for counter in range(len(wfile.outputDatasets())):
for outputModule, numDS in outputModulesList: for counter in range(numDS):
def add(self, workflowFile): """ _add_ Add a dataset to the list of watched datasets. Arguments: workflowFile -- the workflow specification file Return: the datasetId
ad6eafee66846ec4dc537a2bdf25160bba76d107 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/ad6eafee66846ec4dc537a2bdf25160bba76d107/WatchedDatasets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 6095, 812, 4672, 3536, 389, 1289, 67, 225, 1436, 279, 3709, 358, 326, 666, 434, 23135, 11109, 18, 225, 13599, 30, 225, 6095, 812, 1493, 326, 6095, 7490, 585, 225, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 6095, 812, 4672, 3536, 389, 1289, 67, 225, 1436, 279, 3709, 358, 326, 666, 434, 23135, 11109, 18, 225, 13599, 30, 225, 6095, 812, 1493, 326, 6095, 7490, 585, 225, 20...
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PONG for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).') pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PONG: '+sPong)
pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': PONG for '+str(self.IP)+':'+str(self.iPort)+' could not be sent (TypeError).', 2) pManager.manager.DebugStr('cNeighbourOwl '+ __version__ +': Content of PONG: '+sPong, 3)
def Pong(self, sPong): """Pong owl"""
e17fbeafbd8fe4fbd118c6cba7484fbf380f5539 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/e17fbeafbd8fe4fbd118c6cba7484fbf380f5539/cNeighbourOwl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 453, 932, 12, 2890, 16, 272, 52, 932, 4672, 3536, 52, 932, 2523, 80, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 453, 932, 12, 2890, 16, 272, 52, 932, 4672, 3536, 52, 932, 2523, 80, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
states = State.objects.filter(region = user_permission.region_operated) districts = District.objects.filter(state__in = states)
districts = districts | District.objects.filter(district_name = user_permission.district_operated)
def get_user_districts(request): #print request.session.get('username') #print request.session.get('user_id') user_permissions = UserPermission.objects.filter(username = request.session.get('user_id')) districts = District.objects.none() for user_permission in user_permissions: if(user_permission.role=='A'): districts ...
1ec3e0ad591dc79b974325f52365962049c5fafc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/1ec3e0ad591dc79b974325f52365962049c5fafc/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1355, 67, 22602, 87, 12, 2293, 4672, 468, 1188, 590, 18, 3184, 18, 588, 2668, 5053, 6134, 468, 1188, 590, 18, 3184, 18, 588, 2668, 1355, 67, 350, 6134, 729, 67, 9612, 273, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1355, 67, 22602, 87, 12, 2293, 4672, 468, 1188, 590, 18, 3184, 18, 588, 2668, 5053, 6134, 468, 1188, 590, 18, 3184, 18, 588, 2668, 1355, 67, 350, 6134, 729, 67, 9612, 273, 2...
""" I = ([f.homogenize(var) for f in self.gens()]) P = I[0].parent() return P.ideal(I)
sage: I = Ideal([x^2*y + z^3 + y^2*x, x + y^2 + 1]) sage: I.homogenize() Ideal (x^2*y + x*y^2 + z^3, y^2 + x*h + h^2) of Multivariate Polynomial Ring in x, y, z, h over Finite Field of size 2 """ I = [f.homogenize(var) for f in self.gens()] P = max(I, key=lambda x: x.parent().ngens()).parent() return P.ideal([P(f) fo...
def homogenize(self, var='h'): """ Return homogeneous ideal spanned by the homogeneous polynomials generated by homogenizing the generators of this ideal.
467f034f1639566ab640403eb31f1bd27474205d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/467f034f1639566ab640403eb31f1bd27474205d/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13995, 19409, 554, 12, 2890, 16, 569, 2218, 76, 11, 4672, 3536, 2000, 13995, 30075, 1481, 23349, 1694, 10041, 635, 326, 13995, 30075, 1481, 16991, 87, 4374, 635, 13995, 19409, 6894, 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, 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, 13995, 19409, 554, 12, 2890, 16, 569, 2218, 76, 11, 4672, 3536, 2000, 13995, 30075, 1481, 23349, 1694, 10041, 635, 326, 13995, 30075, 1481, 16991, 87, 4374, 635, 13995, 19409, 6894, 326, 1...
result = method(*json_req['params'])
result = method(*req_data['params'])
def jsonaction(self): request_body = self.servlet().request().rawInput().read() req_data = jsonToObj(request_body) req_id = req_data['id'] try: method_name = req_data['method'] if method_name not in self.jsonMethods(): raise HTTPForbidden( "The method %s is not public" % method_name) method = getattr(self.servlet(), me...
e648a9ebbb2bae9112d13986cc7d827062fcb39c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/e648a9ebbb2bae9112d13986cc7d827062fcb39c/jsoncomponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1163, 1128, 12, 2890, 4672, 590, 67, 3432, 273, 365, 18, 23231, 7675, 2293, 7675, 1899, 1210, 7675, 896, 1435, 1111, 67, 892, 273, 1163, 774, 2675, 12, 2293, 67, 3432, 13, 1111, 67, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1163, 1128, 12, 2890, 4672, 590, 67, 3432, 273, 365, 18, 23231, 7675, 2293, 7675, 1899, 1210, 7675, 896, 1435, 1111, 67, 892, 273, 1163, 774, 2675, 12, 2293, 67, 3432, 13, 1111, 67, 35...
if not c.self_closing:
if not c.self_closing:
def to_html(self): s = u'' open_containers = collections.deque() in_p = False for c in self.content: if isinstance(c, basestring): s += c elif c is None: if c.name == 'P': in_p = False p = open_containers.pop() s += p.close_html() else: if c.name == 'P': in_p = True elif c.name == 'CR': s += '<br />' if in_p else '<p>'...
ba816d3efc046d3a5b6ebcb2c44b09903d438cb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ba816d3efc046d3a5b6ebcb2c44b09903d438cb6/objects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 2620, 12, 2890, 4672, 272, 273, 582, 6309, 1696, 67, 20596, 273, 6980, 18, 323, 1857, 1435, 316, 67, 84, 273, 1083, 364, 276, 316, 365, 18, 1745, 30, 309, 1549, 12, 71, 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, 358, 67, 2620, 12, 2890, 4672, 272, 273, 582, 6309, 1696, 67, 20596, 273, 6980, 18, 323, 1857, 1435, 316, 67, 84, 273, 1083, 364, 276, 316, 365, 18, 1745, 30, 309, 1549, 12, 71, 16, ...
os.system('source %s &'%(os.path.abspath(t)))
P = os.path.abspath(t) os.system('chmod +x %s; %s &'%(P, P))
def serve(self, port=8200, open_viewer=False): """ Start a web server for this repository.
817eb9dfac9d67b9932509762116cd6882d05f3c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/817eb9dfac9d67b9932509762116cd6882d05f3c/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 12, 2890, 16, 1756, 33, 28, 6976, 16, 1696, 67, 25256, 33, 8381, 4672, 3536, 3603, 279, 3311, 1438, 364, 333, 3352, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12175, 12, 2890, 16, 1756, 33, 28, 6976, 16, 1696, 67, 25256, 33, 8381, 4672, 3536, 3603, 279, 3311, 1438, 364, 333, 3352, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._alignment.length = line.split()[2]
parts = line.replace(" ","").split("=") assert len(parts)==2, "Unrecognised format length line" self._alignment.length = parts[1]
def length(self, line): self._alignment.length = line.split()[2] self._alignment.length = _safe_int(self._alignment.length)
c419c20c8b2d6e3f9102980f558145631d0652f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/c419c20c8b2d6e3f9102980f558145631d0652f8/NCBIStandalone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 769, 12, 2890, 16, 980, 4672, 225, 2140, 273, 980, 18, 2079, 2932, 3104, 3660, 2934, 4939, 2932, 1546, 13, 1815, 562, 12, 6019, 13, 631, 22, 16, 315, 984, 3927, 4198, 5918, 740, 769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 769, 12, 2890, 16, 980, 4672, 225, 2140, 273, 980, 18, 2079, 2932, 3104, 3660, 2934, 4939, 2932, 1546, 13, 1815, 562, 12, 6019, 13, 631, 22, 16, 315, 984, 3927, 4198, 5918, 740, 769, ...
class _cpu:
class _cpu(object):
def GetInputFileMD5(): """ Return the MD5 hash of the input binary file @return: MD5 string or None on error """ return idc.GetInputMD5()
56a2d59a0c6b1a0a46ece691c68cd5b2556c786c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/56a2d59a0c6b1a0a46ece691c68cd5b2556c786c/idautils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1210, 812, 6188, 25, 13332, 3536, 2000, 326, 10852, 25, 1651, 434, 326, 810, 3112, 585, 225, 632, 2463, 30, 10852, 25, 533, 578, 599, 603, 555, 3536, 327, 612, 71, 18, 967, 1210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1210, 812, 6188, 25, 13332, 3536, 2000, 326, 10852, 25, 1651, 434, 326, 810, 3112, 585, 225, 632, 2463, 30, 10852, 25, 533, 578, 599, 603, 555, 3536, 327, 612, 71, 18, 967, 1210, ...
if not forum.category.has_access(request.user): return HttpResponseForbidden()
def add_post(request, forum_id, topic_id): forum = None topic = None posts = None if forum_id: forum = get_object_or_404(Forum, pk=forum_id) elif topic_id: topic = get_object_or_404(Topic, pk=topic_id) posts = topic.posts.all().select_related() if topic and topic.closed: return HttpResponseRedirect(topic.get_absolute_...
ffc5e1c559f55ff863cc68003ecef76705c20150 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/ffc5e1c559f55ff863cc68003ecef76705c20150/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2767, 12, 2293, 16, 11283, 67, 350, 16, 3958, 67, 350, 4672, 11283, 273, 599, 3958, 273, 599, 10775, 273, 599, 225, 309, 11283, 67, 350, 30, 11283, 273, 336, 67, 1612, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2767, 12, 2293, 16, 11283, 67, 350, 16, 3958, 67, 350, 4672, 11283, 273, 599, 3958, 273, 599, 10775, 273, 599, 225, 309, 11283, 67, 350, 30, 11283, 273, 336, 67, 1612, 67, 2...
Return True if d can be used as a vector for self.
Return ``True`` if ``d`` can be used as a vector for ``self``.
def is_vector(self, d): """ Return True if d can be used as a vector for self. EXAMPLE:: sage: sr = mq.SR() sage: sr SR(1,1,1,4) sage: k = sr.base_ring() sage: A = Matrix(k, 1, 1, [k.gen()]) sage: B = sr.vector(A) sage: sr.is_vector(A) False sage: sr.is_vector(B) True """ return is_Matrix(d) and \ d.nrows() == self.r...
f145241e51a69266a2640a052ee008637b5d9160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f145241e51a69266a2640a052ee008637b5d9160/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7737, 12, 2890, 16, 302, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 72, 10335, 848, 506, 1399, 487, 279, 3806, 364, 12176, 2890, 68, 8338, 225, 5675, 21373, 2866, 225, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7737, 12, 2890, 16, 302, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 72, 10335, 848, 506, 1399, 487, 279, 3806, 364, 12176, 2890, 68, 8338, 225, 5675, 21373, 2866, 225, 27...
rr_name = self.pool.get(rr._table_name).name_get(cr, uid, [rr.id])
rr_name = self.pool.get(rr._table_name).name_get(cr, uid, [rr.id], context=context)
def selection_field(in_field): col_obj = self.pool.get(in_field.keys()[0]) if f[i] in col_obj._columns.keys(): return col_obj._columns[f[i]] elif f[i] in col_obj._inherits.keys(): selection_field(col_obj._inherits) else: return False
41382b99106bb7be58c4133724ea1e6d5936e6d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/41382b99106bb7be58c4133724ea1e6d5936e6d7/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 1518, 12, 267, 67, 1518, 4672, 645, 67, 2603, 273, 365, 18, 6011, 18, 588, 12, 267, 67, 1518, 18, 2452, 1435, 63, 20, 5717, 309, 284, 63, 77, 65, 316, 645, 67, 2603, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 1518, 12, 267, 67, 1518, 4672, 645, 67, 2603, 273, 365, 18, 6011, 18, 588, 12, 267, 67, 1518, 18, 2452, 1435, 63, 20, 5717, 309, 284, 63, 77, 65, 316, 645, 67, 2603, 6315...
self.client.ok_message.append(_('Items edited OK'))
self.client.ok_message.append(self._('Items edited OK'))
def handle(self): """Performs an edit of all of a class' items in one go.
ade743793a8c591cf5f28a2d1c898d9c49ebe4f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/ade743793a8c591cf5f28a2d1c898d9c49ebe4f6/actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 9409, 392, 3874, 434, 777, 434, 279, 667, 11, 1516, 316, 1245, 1960, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 9409, 392, 3874, 434, 777, 434, 279, 667, 11, 1516, 316, 1245, 1960, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
formattedToday = str(today.year) + str(today.month) + str(today.day)
formattedStartDate = str(today.year) + '03' + '07'
def scrapeCourt(courtID, result): if (courtID == 1): """ PDFs are available from the first circuit if you go to their RSS feed. So go to their RSS feed we shall. This is the second version of this court. Good times. """ url = "http://www.ca1.uscourts.gov/opinions/opinionrss.php" ct = Court.objects.get(courtUUID='ca1')...
1cb7f4014a5290c6300b47a862966c4595810970 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/1cb7f4014a5290c6300b47a862966c4595810970/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 358, 3675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 888, 25360, 29328, 88, 12, 71, 477, 88, 734, 16, 563, 4672, 309, 261, 71, 477, 88, 734, 422, 404, 4672, 3536, 12667, 87, 854, 2319, 628, 326, 1122, 12937, 309, 1846, 1960, 358, 3675, ...
case_id = self.create(cr, uid, val) ids.append(case_id)
case_id = self.create(cr, uid, val) ids.append(case_id)
def import_cal(self, cr, uid, data, context={}): file_content = base64.decodestring(data) event_obj = self.pool.get('basic.calendar.event') event_obj.__attribute__.update(self.__attribute__) vals = event_obj.import_ical(cr, uid, file_content) ids = [] for val in vals: is_exists = common.uid2openobjectid(cr, val['id'],...
75258015cae6ae0d493e7eb6204a16eafed73cd9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/75258015cae6ae0d493e7eb6204a16eafed73cd9/crm_meeting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 771, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 12938, 4672, 585, 67, 1745, 273, 1026, 1105, 18, 4924, 1145, 371, 12, 892, 13, 871, 67, 2603, 273, 365, 18, 6011, 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, 1930, 67, 771, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 12938, 4672, 585, 67, 1745, 273, 1026, 1105, 18, 4924, 1145, 371, 12, 892, 13, 871, 67, 2603, 273, 365, 18, 6011, 18, ...
else:
if doc == 'geoserver':
def build(): # fix with pushd(download_path): with pushd(docs_path): for doc in config.options(section): info("Build docs for %s" % doc) app_doc = path(doc) with pushd(app_doc): if doc == 'geoext': sh("sphinx-build -bhtml . html") else: sh("sphinx-build -bhtml source html")
9e70da551d35668cfe2fd1051e7da5e5e2be3221 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/9e70da551d35668cfe2fd1051e7da5e5e2be3221/pavement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 13332, 468, 2917, 598, 1817, 72, 12, 7813, 67, 803, 4672, 598, 1817, 72, 12, 8532, 67, 803, 4672, 364, 997, 316, 642, 18, 2116, 12, 3464, 4672, 1123, 2932, 3116, 3270, 364, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 13332, 468, 2917, 598, 1817, 72, 12, 7813, 67, 803, 4672, 598, 1817, 72, 12, 8532, 67, 803, 4672, 364, 997, 316, 642, 18, 2116, 12, 3464, 4672, 1123, 2932, 3116, 3270, 364, 738, ...
\begin_inset
\begin_inset
def revert_listings_inset(document): r''' Revert listings inset to \lstinline or \begin, \end lstlisting, translate
dec8e81ebdf0e6978560ba351aaedd7878e8a79b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/dec8e81ebdf0e6978560ba351aaedd7878e8a79b/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 1098, 899, 67, 267, 542, 12, 5457, 4672, 436, 26418, 868, 1097, 666, 899, 316, 542, 358, 521, 16923, 10047, 578, 521, 10086, 16, 521, 409, 9441, 21228, 16, 4204, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 1098, 899, 67, 267, 542, 12, 5457, 4672, 436, 26418, 868, 1097, 666, 899, 316, 542, 358, 521, 16923, 10047, 578, 521, 10086, 16, 521, 409, 9441, 21228, 16, 4204, 2, -100, -1...
heappushpop(result, elem)
_heappushpop(result, elem)
def nlargest(n, iterable): """Find the n largest elements in a dataset. Equivalent to: sorted(iterable, reverse=True)[:n] """ it = iter(iterable) result = list(islice(it, n)) if not result: return result heapify(result) _heappushpop = heappushpop for elem in it: heappushpop(result, elem) result.sort(reverse=True) ret...
005691263df8cc222d90402c57ad1b63a53deee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/005691263df8cc222d90402c57ad1b63a53deee9/heapq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7741, 11475, 12, 82, 16, 6087, 4672, 3536, 3125, 326, 290, 12756, 2186, 316, 279, 3709, 18, 225, 31208, 358, 30, 225, 3115, 12, 15364, 16, 4219, 33, 5510, 13, 10531, 82, 65, 3536, 518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7741, 11475, 12, 82, 16, 6087, 4672, 3536, 3125, 326, 290, 12756, 2186, 316, 279, 3709, 18, 225, 31208, 358, 30, 225, 3115, 12, 15364, 16, 4219, 33, 5510, 13, 10531, 82, 65, 3536, 518,...
self.write(cr, uid, ids, {'state':'confirmed'}) i=0 def create_chained_picking(self,cr,uid,moves,context): new_moves=[]
self.write(cr, uid, ids, {'state': 'confirmed'}) i = 0 def create_chained_picking(self, cr, uid, moves, context): new_moves = []
def action_confirm(self, cr, uid, ids, context={}):
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
opts, args = getopt.getopt(sys.argv[1:], 'lfd:')
opts, args = getopt.getopt(sys.argv[1:], 'lfd:x:')
def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:') except getopt.error, msg: print msg print "usage: compileall [-l] [-f] [-d destdir] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-to-date" print "-d destdir: pu...
59776b466a8795b66b9c91444afb05cff217b099 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/59776b466a8795b66b9c91444afb05cff217b099/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 30, 92, 2497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 3651, 2774, 5402, 12123, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 80, 8313, 30, 92, 2497, ...
ppcOnly = False elif platform.processor() == "powerpc": print "Building a PPC-only binary" ppcOnly = True
preferPPC = False
def addDataFiles(dataFiles, fromDir, toSubDir=None, inclHiddenDirs=False): """Find data files and format data for the data_files argument of setup. In/Out: - dataFiles: a list to which is appended zero or more of these elements: [subDir, list of paths to resource files] Inputs: - fromDir: path to root directory of ex...
8ca36d123e004717e35e40dcd11394fcbb58f096 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6236/8ca36d123e004717e35e40dcd11394fcbb58f096/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21958, 2697, 12, 892, 2697, 16, 628, 1621, 16, 358, 1676, 1621, 33, 7036, 16, 2823, 9345, 9872, 33, 8381, 4672, 3536, 3125, 501, 1390, 471, 740, 501, 364, 326, 501, 67, 2354, 1237, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21958, 2697, 12, 892, 2697, 16, 628, 1621, 16, 358, 1676, 1621, 33, 7036, 16, 2823, 9345, 9872, 33, 8381, 4672, 3536, 3125, 501, 1390, 471, 740, 501, 364, 326, 501, 67, 2354, 1237, 434...
print 'find_bzr', path
def find_bzr(path=None): """ Return bzr root directory path, or None. """ if not path: path = os.getcwd() if not os.path.exists(path): return None while path: print 'find_bzr', path if os.path.exists(os.path.join(path, '.bzr')) or \ os.path.exists(os.path.join(path, '.bzrignore')): return os.path.abspath(path) else: pt...
7df0fcf451721354710b28f5d16d4a7153c0c6da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/7df0fcf451721354710b28f5d16d4a7153c0c6da/repo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 25292, 86, 12, 803, 33, 7036, 4672, 3536, 2000, 24788, 86, 1365, 1867, 589, 16, 578, 599, 18, 3536, 309, 486, 589, 30, 589, 273, 1140, 18, 588, 11089, 1435, 309, 486, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25292, 86, 12, 803, 33, 7036, 4672, 3536, 2000, 24788, 86, 1365, 1867, 589, 16, 578, 599, 18, 3536, 309, 486, 589, 30, 589, 273, 1140, 18, 588, 11089, 1435, 309, 486, 1140, ...
element_class = Set_generic
def _element_constructor_(self, x): """ TESTS:: sage: S3 = Subsets(3); S3([1,2]) {1, 2} sage: S3([0,1,2]) Traceback (most recent call last): ... ValueError: [0, 1, 2] not in Subsets of {1, 2, 3} """ return Set(x) element_class = Set_object_enumerated
def unrank(self, r): """ Returns the subset of s that has rank k. EXAMPLES:: sage: Subsets(3).unrank(0) {} sage: Subsets([2,4,5]).unrank(1) {2} sage: s = Subsets([2,4,5]) """
dc716b96cd454a10479e28fc7daa50f2ef780219 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/dc716b96cd454a10479e28fc7daa50f2ef780219/subset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 11500, 12, 2890, 16, 436, 4672, 3536, 2860, 326, 7931, 434, 272, 716, 711, 6171, 417, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 2592, 4424, 12, 23, 2934, 318, 11500, 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, 640, 11500, 12, 2890, 16, 436, 4672, 3536, 2860, 326, 7931, 434, 272, 716, 711, 6171, 417, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 2592, 4424, 12, 23, 2934, 318, 11500, 12...
def iter_packages(self, packages, selected, hint=False):
def iter_packages(self, packages, selected, hint=False, nuninst=None):
def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one
ab0576817151497fdda52a6927ea2e47cb997bd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/ab0576817151497fdda52a6927ea2e47cb997bd6/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 16, 290, 318, 8591, 33, 7036, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 3170, 16, 7380, 33, 8381, 16, 290, 318, 8591, 33, 7036, 4672, 3536, 2360, 603, 326, 666, 434, 4209, 471, 2230, 2182, 1245, 17, 1637, 17, 476, ...
curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef
if curObjRef is None: startRefWorkingList = workingListSelector.next() while True: yield None try: curObjRef = startRefWorkingList.refGen.next() break except StopIteration: if len(startRefWorkingList.source) == 0: break for flywheel in makeFlywheelGen( startRefWorkingList.source.values(), countFunc=lambda x: sel...
def run(self): try: while True: # yield up here instead of at the end, since we skip back to the # top of the while loop from various points yield None #import pdb;pdb.set_trace() curObj = None if self._curObjRef is None: self._curObjRef = self._baseObjRef try: for result in self._curObjRef.getContainer(): yield None c...
d9560fa19bec29d4ea08e0b58cd1b7384659f9ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/d9560fa19bec29d4ea08e0b58cd1b7384659f9ff/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 1323, 1053, 30, 468, 2824, 731, 2674, 3560, 434, 622, 326, 679, 16, 3241, 732, 2488, 1473, 358, 326, 468, 1760, 434, 326, 1323, 2798, 628, 11191, 3143, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 1323, 1053, 30, 468, 2824, 731, 2674, 3560, 434, 622, 326, 679, 16, 3241, 732, 2488, 1473, 358, 326, 468, 1760, 434, 326, 1323, 2798, 628, 11191, 3143, 2...
print "Group order now ",n1*n2,"=",n1,"*",n2
print "Subgroup order now ",n1*n2,"=",n1,"*",n2
def abelian_group(self, debug=False): r""" Returns the abelian group structure of the group of points on this elliptic curve.
7e0308bfa96d392f0529a28f30a5ec4774dcfbb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7e0308bfa96d392f0529a28f30a5ec4774dcfbb8/ell_finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1223, 292, 2779, 67, 1655, 12, 2890, 16, 1198, 33, 8381, 4672, 436, 8395, 2860, 326, 1223, 292, 2779, 1041, 3695, 434, 326, 1041, 434, 3143, 603, 333, 415, 549, 21507, 8882, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1223, 292, 2779, 67, 1655, 12, 2890, 16, 1198, 33, 8381, 4672, 436, 8395, 2860, 326, 1223, 292, 2779, 1041, 3695, 434, 326, 1041, 434, 3143, 603, 333, 415, 549, 21507, 8882, 18, 2, -10...
if xsource.find('Recommended').text == 'true':
if xsource.find('Recommended').text in ['True', 'true']:
def source_from_xml(xsource): ret = dict([('rawurl', False), ('url', False)]) for key, tag in [('groups', 'Group'), ('components', 'Component'), ('arches', 'Arch'), ('blacklist', 'Blacklist')]: ret[key] = [item.text for item in xsource.findall(tag)] # version and component need to both contain data for sources to work ...
c688c4592be717cb28dabd13d6441c4c7c5bca06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/c688c4592be717cb28dabd13d6441c4c7c5bca06/Packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 67, 2080, 67, 2902, 12, 92, 3168, 4672, 325, 273, 2065, 3816, 2668, 1899, 718, 2187, 1083, 3631, 7707, 718, 2187, 1083, 13, 5717, 364, 498, 16, 1047, 316, 306, 2668, 4650, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1084, 67, 2080, 67, 2902, 12, 92, 3168, 4672, 325, 273, 2065, 3816, 2668, 1899, 718, 2187, 1083, 3631, 7707, 718, 2187, 1083, 13, 5717, 364, 498, 16, 1047, 316, 306, 2668, 4650, 2187, ...
paragraph_element = content_context.get_element_list('//text:p')
paragraph_element = content_context.get_element_list('//text:p[1]')
def setUp(self): container = get_odf_container('samples/example.odt') self.container = container content_context = odf_context('content', container) self.content_context = content_context # TODO make "//text:p[0]" pass paragraph_element = content_context.get_element_list('//text:p') self.paragraph_element = paragraph_e...
c9486ff7a8d654b48e9af6077ea60fa81b536bfe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/c9486ff7a8d654b48e9af6077ea60fa81b536bfe/test_context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 1478, 273, 336, 67, 369, 74, 67, 3782, 2668, 7319, 19, 8236, 18, 369, 88, 6134, 365, 18, 3782, 273, 1478, 913, 67, 2472, 273, 320, 2180, 67, 2472, 2668, 1745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 1478, 273, 336, 67, 369, 74, 67, 3782, 2668, 7319, 19, 8236, 18, 369, 88, 6134, 365, 18, 3782, 273, 1478, 913, 67, 2472, 273, 320, 2180, 67, 2472, 2668, 1745, ...
a(formatstring((header for k in months), colwidth, c).rstrip())
headers = (header for k in months) a(formatstring(headers, colwidth, c).rstrip())
def formatyear(self, theyear, w=2, l=1, c=6, m=3): """ Returns a year's calendar as a multi-line string. """ w = max(2, w) l = max(1, l) c = max(2, c) colwidth = (w + 1) * 7 - 1 v = [] a = v.append a(repr(theyear).center(colwidth*m+c*(m-1)).rstrip()) a('\n'*l) header = self.formatweekheader(w) for (i, row) in enumerate...
243815ee949d8494ecadb24f0872307909b05fc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/243815ee949d8494ecadb24f0872307909b05fc8/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 6874, 12, 2890, 16, 2898, 2091, 16, 341, 33, 22, 16, 328, 33, 21, 16, 276, 33, 26, 16, 312, 33, 23, 4672, 3536, 2860, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 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, 740, 6874, 12, 2890, 16, 2898, 2091, 16, 341, 33, 22, 16, 328, 33, 21, 16, 276, 33, 26, 16, 312, 33, 23, 4672, 3536, 2860, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 18,...
for i in l + [n[1]]:
for i in l: self.ui.debug("narrowing %d:%d %s\n" % (f, len(l), short(i)))
def getchangegroup(self, remote): m = self.changelog.nodemap search = [] fetch = [] seen = {} seenbranch = {}
3832fb88ce2f811c47b456520408be17f4aae77b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/3832fb88ce2f811c47b456520408be17f4aae77b/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3427, 1655, 12, 2890, 16, 2632, 4672, 312, 273, 365, 18, 24083, 12970, 18, 2159, 1458, 1623, 273, 5378, 2158, 273, 5378, 5881, 273, 2618, 5881, 7500, 273, 2618, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3427, 1655, 12, 2890, 16, 2632, 4672, 312, 273, 365, 18, 24083, 12970, 18, 2159, 1458, 1623, 273, 5378, 2158, 273, 5378, 5881, 273, 2618, 5881, 7500, 273, 2618, 2, -100, -100, -100,...
if verify: flag = gas.solve(crval) else: flag = gas.solve()
xy = afwImage.PointD(1,1) rd = afwImage.PointD(334.2762566, -17.2097954) self.checkMatch(rd, xy)
def solveOrVerify(self, starlist, crval, crpix, plateScale=0, verify=False): """Test the solve() function Input: starlist List of objects as returned by loadXYFromFile crval lsst.afw.image.PointD ra/dec of a known position on the image crpix lsst.afw.image.PointD xy of a known position on the image pla...
4f02d21d4da7291cf5f3245909c3dc640b3fce4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6522/4f02d21d4da7291cf5f3245909c3dc640b3fce4d/GlobalAstrometrySolution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 1162, 8097, 12, 2890, 16, 10443, 1098, 16, 4422, 1125, 16, 4422, 14861, 16, 225, 21972, 5587, 33, 20, 16, 3929, 33, 8381, 4672, 3536, 4709, 326, 12439, 1435, 445, 225, 2741, 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, 12439, 1162, 8097, 12, 2890, 16, 10443, 1098, 16, 4422, 1125, 16, 4422, 14861, 16, 225, 21972, 5587, 33, 20, 16, 3929, 33, 8381, 4672, 3536, 4709, 326, 12439, 1435, 445, 225, 2741, 30, ...
def killed(self):
def killed(self):
def killed(self): #bruce 041029; totally revised by bruce 050702 """ (Public method) Report whether an atom has been killed. """ # Note: some "friend code" inlines this method for speed # (and omits the debug code). To find it, search for _Atom__killed # (the mangled version of __killed). [bruce 071018 comment] if debu...
ed409134e77b5e0b4516d0060e8f298611249859 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ed409134e77b5e0b4516d0060e8f298611249859/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24859, 12, 2890, 4672, 468, 2848, 3965, 16486, 2163, 5540, 31, 9997, 1230, 283, 26779, 635, 5186, 3965, 374, 3361, 27, 3103, 3536, 261, 4782, 707, 13, 8706, 2856, 392, 3179, 711, 2118, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24859, 12, 2890, 4672, 468, 2848, 3965, 16486, 2163, 5540, 31, 9997, 1230, 283, 26779, 635, 5186, 3965, 374, 3361, 27, 3103, 3536, 261, 4782, 707, 13, 8706, 2856, 392, 3179, 711, 2118, 2...
if (updater_stat == "T" or updater_stat == "X" or updater_stat == "T"):
if (updater_stat == "T" or updater_stat == "X" or updater_stat == "Z"):
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientE...
1492264581c4f4eef2330103bb89d205a710a2ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/1492264581c4f4eef2330103bb89d205a710a2ed/testprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
lon, lat = float(site.lon), float(site.lat)
try: lon, lat = float(site.lon), float(site.lat) except TypeError: raise GeocodeError
def __init__(self, data=None, site=None, *args, **kwargs): lon, lat = float(site.lon), float(site.lat) super(OrderSettingsForm, self).__init__(data, *args, **kwargs) self.fields['delivery_area'].widget = EditableMap(options={ 'geometry': 'polygon', 'isCollection': True, 'layers': ['google.streets'], 'default_lat': lat,...
d5f358dec9268b887716daf4572652e4007f5baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/d5f358dec9268b887716daf4572652e4007f5baf/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 33, 7036, 16, 2834, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 4281, 16, 2516, 273, 1431, 12, 4256, 18, 9379, 3631, 1431, 12, 4256, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 33, 7036, 16, 2834, 33, 7036, 16, 380, 1968, 16, 2826, 4333, 4672, 775, 30, 4281, 16, 2516, 273, 1431, 12, 4256, 18, 9379, 3631, 1431, 12, 4256, 1...
self.rules[path]['event_producer_thread'].stop()
o = self.rules.pop(path) o['event_producer_thread'].stop()
def remove_rule(self, path): if path in self.rules: self.rules[path]['event_producer_thread'].stop()
19f48676341f4f13ee6fd272f4be1c3471a41d87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14346/19f48676341f4f13ee6fd272f4be1c3471a41d87/PollingWatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 5345, 12, 2890, 16, 589, 4672, 309, 589, 316, 365, 18, 7482, 30, 365, 18, 7482, 63, 803, 23962, 2575, 67, 11776, 2750, 67, 5930, 29489, 5681, 1435, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 5345, 12, 2890, 16, 589, 4672, 309, 589, 316, 365, 18, 7482, 30, 365, 18, 7482, 63, 803, 23962, 2575, 67, 11776, 2750, 67, 5930, 29489, 5681, 1435, 2, -100, -100, -100, -100,...
matt[n].specular_hardness=materials[idx_mat][3][4]
if raise_small_hardness and (materials[idx_mat][3][4]<default_hardeness): matt[n].specular_hardness=default_hardeness else: matt[n].specular_hardness=materials[idx_mat][3][4]
def create_materials(groups,materials,textures,orbiterpath): #counting material/texture combinations print("Creating materials") matpairset=set() matpair=[] # [(mat,tex),[mgroups...]] Unique mat+tex and corresponding groups for n in range(len(groups)): l=(groups[n][1],groups[n][2]) #print(l) if l not in matpa...
86e35fd95f0c62cd139674c6ebaa7ac78d3174ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10993/86e35fd95f0c62cd139674c6ebaa7ac78d3174ba/io_import_msh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 20542, 87, 12, 4650, 16, 20542, 87, 16, 955, 1823, 16, 16640, 2165, 803, 4672, 468, 1883, 310, 9390, 19, 955, 594, 17265, 1172, 2932, 11092, 31824, 7923, 4834, 6017, 542, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 20542, 87, 12, 4650, 16, 20542, 87, 16, 955, 1823, 16, 16640, 2165, 803, 4672, 468, 1883, 310, 9390, 19, 955, 594, 17265, 1172, 2932, 11092, 31824, 7923, 4834, 6017, 542, 33, ...
alphabet = _consensus_alphabet([rec.seq.alphabet for rec in sequences \
alphabet = _consensus_alphabet([rec.seq.alphabet \ for rec in sequences \
def to_alignment(sequences, alphabet=None, strict=True): """Returns a multiple sequence alignment (OBSOLETE). - sequences -An iterator that returns SeqRecord objects, or simply a list of SeqRecord objects. All the record sequences must be the same length. - alphabet - Optional alphabet. Stongly recommended. - strict...
a2855b4f95e94e4ef816422674d48a89ec6bbe18 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/a2855b4f95e94e4ef816422674d48a89ec6bbe18/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 14409, 12, 17190, 16, 10877, 33, 7036, 16, 5490, 33, 5510, 4672, 3536, 1356, 279, 3229, 3102, 8710, 261, 5704, 3584, 4311, 2934, 225, 300, 8463, 300, 979, 2775, 716, 1135, 14367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 14409, 12, 17190, 16, 10877, 33, 7036, 16, 5490, 33, 5510, 4672, 3536, 1356, 279, 3229, 3102, 8710, 261, 5704, 3584, 4311, 2934, 225, 300, 8463, 300, 979, 2775, 716, 1135, 14367...
self.dbh.execute("update msn_users set session_id=%r where session_id=-1",m.session_id)
try: self.dbh.execute("update msn_users set session_id=%r where session_id=-1",m.session_id) except Exception: pass self.dbh.execute("delete from msn_users where session_id=-1")
def process_stream(self, stream, factories): ports = dissect.fix_ports("MSN") if stream.src_port in ports or stream.dest_port in ports: #Keep track of the streams we have combined so we don't process reverse again #self.processed is a ring buffer so it doesn't get too big if not self.processed.has_key(stream.con_id): ...
cf7fac3ff0c735f3f514d4f41c9e494e2787883c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/cf7fac3ff0c735f3f514d4f41c9e494e2787883c/MSN.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 3256, 12, 2890, 16, 1407, 16, 17456, 4672, 9048, 273, 1015, 5709, 18, 904, 67, 4363, 2932, 3537, 50, 7923, 225, 309, 1407, 18, 4816, 67, 655, 316, 9048, 578, 1407, 18, 10488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3256, 12, 2890, 16, 1407, 16, 17456, 4672, 9048, 273, 1015, 5709, 18, 904, 67, 4363, 2932, 3537, 50, 7923, 225, 309, 1407, 18, 4816, 67, 655, 316, 9048, 578, 1407, 18, 10488,...
include "meta.rnc"
def buildSchemaDrivers(): schemaDir = os.path.join(buildRoot, "syntax", "relaxng") legacyRnc = os.path.join(os.path.join(buildRoot, "validator", "schema", "legacy", "legacy.rnc")) buildSchemaDriverHtmlCore(schemaDir) buildSchemaDriverHtml5(schemaDir) buildSchemaDriverHtml5Aria(schemaDir) buildSchemaDriverHtml5AriaRdfa(...
79071eb95d29311580797e9db095992d6fc2d2ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13711/79071eb95d29311580797e9db095992d6fc2d2ee/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 3078, 26310, 13332, 1963, 1621, 273, 1140, 18, 803, 18, 5701, 12, 3510, 2375, 16, 315, 14308, 3113, 315, 2878, 651, 3368, 7923, 8866, 54, 14202, 273, 1140, 18, 803, 18, 5701, 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, 1361, 3078, 26310, 13332, 1963, 1621, 273, 1140, 18, 803, 18, 5701, 12, 3510, 2375, 16, 315, 14308, 3113, 315, 2878, 651, 3368, 7923, 8866, 54, 14202, 273, 1140, 18, 803, 18, 5701, 12, ...
design_size = m.group (1) prefixes = [("cmtt", "Computer Modern Typewriter Text"), ("cmvtt", "Computer Modern Variable Width Typewriter Text"), ("cmss", "Computer Modern Sans Serif"), ("cm", "Computer Modern")]
design_size = string.atoi (m.group (1)) fontinfo['DesignSize'] = design_size prefixes = [("cmtt", "CMTypewriter"), ("cmvtt", "CMVariableWidthTypewriter"), ("cmss", "CMSans"), ("cm", "CM")]
def cm_guess_font_info (filename): """this function fills in sensible values for fontinfo.
dfdd47ac4957b0e437c434b79c7589ca35658d7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/dfdd47ac4957b0e437c434b79c7589ca35658d7b/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5003, 67, 20885, 67, 5776, 67, 1376, 261, 3459, 4672, 3536, 2211, 445, 21652, 316, 15390, 1523, 924, 364, 3512, 1376, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5003, 67, 20885, 67, 5776, 67, 1376, 261, 3459, 4672, 3536, 2211, 445, 21652, 316, 15390, 1523, 924, 364, 3512, 1376, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
<dt>Enable for:</dt> <dd>To make the rank method visible in the search interface for a collection, choose the wanted collection and press the "Enable" button.</dd> <dt>Disable for:</dt> <dd>To hide the rank method from the search interface for a collection, choose the wanted collection and press the "Disable" button.</...
<dt>The rank method is currently enabled for these collections:</dt>
def perform_modifycollection(rnkID='', ln=cdslang, func='', colID='', confirm=0): """Modify which collections the rank method is visible to""" output = "" subtitle = "" if rnkID: rnkNAME = get_current_name(rnkID, ln, get_rnk_nametypes()[0][0], "rnkMETHOD")[0][1] if func in ["0", 0] and confirm in ["1", 1]: finresult...
a6a2a3f836d914026219bf3610ec841b23ae03ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a6a2a3f836d914026219bf3610ec841b23ae03ce/bibrankadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 5548, 12, 27639, 79, 734, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 1326, 2218, 2187, 645, 734, 2218, 2187, 6932, 33, 20, 4672, 3536, 11047, 1492, 6980, 326, 6171, 707,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 5548, 12, 27639, 79, 734, 2218, 2187, 7211, 33, 4315, 2069, 539, 16, 1326, 2218, 2187, 645, 734, 2218, 2187, 6932, 33, 20, 4672, 3536, 11047, 1492, 6980, 326, 6171, 707,...
for f,r in self.replace_paths:
for f, r in self.replace_paths:
def replace_paths_in_code(self, co): new_filename = original_filename = os.path.normpath(co.co_filename) for f,r in self.replace_paths: if original_filename.startswith(f): new_filename = r+original_filename[len(f):] break
e29310a2b3e50958b00c0e92b142992599cf7ef1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e29310a2b3e50958b00c0e92b142992599cf7ef1/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 4481, 67, 267, 67, 710, 12, 2890, 16, 1825, 4672, 394, 67, 3459, 273, 2282, 67, 3459, 273, 1140, 18, 803, 18, 7959, 803, 12, 2894, 18, 2894, 67, 3459, 13, 364, 284, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1453, 67, 4481, 67, 267, 67, 710, 12, 2890, 16, 1825, 4672, 394, 67, 3459, 273, 2282, 67, 3459, 273, 1140, 18, 803, 18, 7959, 803, 12, 2894, 18, 2894, 67, 3459, 13, 364, 284, 16, 4...
frameCustom.pack(side=LEFT,padx=5,pady=10,expand=TRUE,fill=BOTH) frameTheme.pack(side=LEFT,padx=5,pady=10,fill=Y)
frameCustom.pack(side=LEFT,padx=5,pady=5,expand=TRUE,fill=BOTH) frameTheme.pack(side=LEFT,padx=5,pady=5,fill=Y)
def CreatePageHighlight(self): self.builtinTheme=StringVar(self) self.customTheme=StringVar(self) self.fgHilite=BooleanVar(self) self.colour=StringVar(self) self.fontName=StringVar(self) self.themeIsBuiltin=BooleanVar(self) self.highlightTarget=StringVar(self) ##widget creation #body frame frame=self.tabPages.pages['Hi...
cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb3fac2e967e9ef77ede3f9945cfed8702f7e0a5/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 16205, 12, 2890, 4672, 365, 18, 24553, 8335, 33, 780, 1537, 12, 2890, 13, 365, 18, 3662, 8335, 33, 780, 1537, 12, 2890, 13, 365, 18, 2137, 44, 330, 1137, 33, 5507, 1537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 16205, 12, 2890, 4672, 365, 18, 24553, 8335, 33, 780, 1537, 12, 2890, 13, 365, 18, 3662, 8335, 33, 780, 1537, 12, 2890, 13, 365, 18, 2137, 44, 330, 1137, 33, 5507, 1537, ...
self._completeDelayedCallback = FrameDelayedCallback(
self._completeDelayedCallback = FrameDelayedCall(
def sendEvent(): messenger.send(self.getAllInterestsCompleteEvent()) for callback in self._allInterestsCompleteCallbacks: callback() self._allInterestsCompleteCallbacks = []
0ad3bac423d39b998827d489a97d947c4e85743a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0ad3bac423d39b998827d489a97d947c4e85743a/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1133, 13332, 31086, 18, 4661, 12, 2890, 18, 588, 1595, 2465, 25563, 6322, 1133, 10756, 364, 1348, 316, 365, 6315, 454, 2465, 25563, 6322, 10617, 30, 1348, 1435, 365, 6315, 454, 2465,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 1133, 13332, 31086, 18, 4661, 12, 2890, 18, 588, 1595, 2465, 25563, 6322, 1133, 10756, 364, 1348, 316, 365, 6315, 454, 2465, 25563, 6322, 10617, 30, 1348, 1435, 365, 6315, 454, 2465,...
BonjourFile(file, 'resolution').close()
BonjourFile(file, 'resolution').close()
def _resolve_cb(self, file, flags, interface_index, error_code, fullname, host_target, port, txtrecord): notification_center = NotificationCenter() settings = SIPSimpleSettings() if error_code == bonjour.kDNSServiceErr_NoError: txt = bonjour.TXTRecord.parse(txtrecord) contact = txt['contact'].strip('<>') if 'contact' i...
e155e163c29dab32cacafb785a44e3adb5d577b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/e155e163c29dab32cacafb785a44e3adb5d577b4/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 13321, 16, 1479, 67, 3299, 16, 1756, 16, 6463, 3366, 4672, 3851, 67, 5693, 273, 8050, 844...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10828, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 13321, 16, 1479, 67, 3299, 16, 1756, 16, 6463, 3366, 4672, 3851, 67, 5693, 273, 8050, 844...
self.assertEquals(map(lambda x:x.text, fragList), [u'Hello ',u'\xc2\xa9',u' copyright'])
self.assertEquals(map(lambda x:x.text, fragList), [u'Hello ',u'\xa9',u' copyright'])
def testEntityUnicode(self): "Numeric entities should be unescaped by parser" txt = u"Hello &#169; copyright" fragList = ParaParser().parse(txt, self.style)[1] self.assertEquals(map(lambda x:x.text, fragList), [u'Hello ',u'\xc2\xa9',u' copyright'])
55d7869f3b6dcd4bb6bef80704fcd9716369ea6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/55d7869f3b6dcd4bb6bef80704fcd9716369ea6b/test_platypus_paraparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1943, 16532, 12, 2890, 4672, 315, 9902, 5140, 1410, 506, 27869, 635, 2082, 6, 6463, 273, 582, 6, 18601, 6523, 26035, 31, 22245, 6, 10111, 682, 273, 2280, 69, 2678, 7675, 2670, 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, 1842, 1943, 16532, 12, 2890, 4672, 315, 9902, 5140, 1410, 506, 27869, 635, 2082, 6, 6463, 273, 582, 6, 18601, 6523, 26035, 31, 22245, 6, 10111, 682, 273, 2280, 69, 2678, 7675, 2670, 12, ...
browsed_words = browse_in_bibxxx(p, f, rg) while not browsed_words:
browsed_phrases = get_nearest_terms_in_bibxxx(p, f, rg, 1) while not browsed_phrases:
def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=...
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21670, 67, 4951, 12, 3658, 16, 645, 3251, 16, 293, 16, 284, 16, 14524, 4672, 3536, 27304, 3344, 324, 15700, 16983, 31413, 578, 4511, 5596, 16, 471, 2562, 518, 12123, 7541, 741, 732, 1623...
t = self.font_switcher.fontifyText(xmlescape(''.join(txt).strip()).encode('utf-8'))
t = self.font_switcher.fontifyText(xmlescape(''.join(txt).strip())).encode('utf-8')
def writeLink(self,obj): """ Link nodes are intra wiki links """
5b13d94f47a43c6f34f2d8bd5ccb703e70557fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/5b13d94f47a43c6f34f2d8bd5ccb703e70557fd2/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2098, 12, 2890, 16, 2603, 4672, 3536, 4048, 2199, 854, 316, 2033, 9050, 4716, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 2098, 12, 2890, 16, 2603, 4672, 3536, 4048, 2199, 854, 316, 2033, 9050, 4716, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if s3path == self._prefix:
if s3path == "/" or s3path == self._prefix:
def isdir(self,path): """Check whether a path exists and is a directory.""" s3path = self._s3path(path) + self._separator # Root is always a directory if s3path == self._prefix: return True # Use a list request so that we return true if there are any files # in that directory. This avoids requiring a special file for ...
a97fab46dd4f11ad2fd10368707968cd764a18d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5579/a97fab46dd4f11ad2fd10368707968cd764a18d9/s3fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9783, 12, 2890, 16, 803, 4672, 3536, 1564, 2856, 279, 589, 1704, 471, 353, 279, 1867, 12123, 272, 23, 803, 273, 365, 6315, 87, 23, 803, 12, 803, 13, 397, 365, 6315, 11287, 468, 7450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9783, 12, 2890, 16, 803, 4672, 3536, 1564, 2856, 279, 589, 1704, 471, 353, 279, 1867, 12123, 272, 23, 803, 273, 365, 6315, 87, 23, 803, 12, 803, 13, 397, 365, 6315, 11287, 468, 7450, ...
key = string.upper(key) self.data[key] = item
self.data[key.upper()] = item
def __setitem__(self, key, item): putenv(key, item) key = string.upper(key) self.data[key] = item
1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e3c380cd4e6e569be13bdaa54da1f9acbd3c0d0/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 761, 4672, 1378, 3074, 12, 856, 16, 761, 13, 498, 273, 533, 18, 5797, 12, 856, 13, 365, 18, 892, 63, 856, 65, 273, 761, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 761, 4672, 1378, 3074, 12, 856, 16, 761, 13, 498, 273, 533, 18, 5797, 12, 856, 13, 365, 18, 892, 63, 856, 65, 273, 761, 2, -100, -100, ...
debug('cleaning up worker %d' % w.pid)
debug('cleaning up worker %s' % w.pid)
def _terminate_pool(cls, taskqueue, inqueue, outqueue, pool, worker_handler, task_handler, result_handler, cache): # this is guaranteed to only be called once debug('finalizing pool')
89db55254387b4cae708c5477e87a6a3b76344aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/89db55254387b4cae708c5477e87a6a3b76344aa/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30017, 67, 6011, 12, 6429, 16, 1562, 4000, 16, 316, 4000, 16, 596, 4000, 16, 2845, 16, 4322, 67, 4176, 16, 1562, 67, 4176, 16, 563, 67, 4176, 16, 1247, 4672, 468, 333, 353, 1540...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 30017, 67, 6011, 12, 6429, 16, 1562, 4000, 16, 316, 4000, 16, 596, 4000, 16, 2845, 16, 4322, 67, 4176, 16, 1562, 67, 4176, 16, 563, 67, 4176, 16, 1247, 4672, 468, 333, 353, 1540...
ttf = _py_getFont(ttfn) t1f = _py_getFont(t1fn)
ttf = getFont(ttfn) t1f = getFont(t1fn)
def test_instanceStringWidth(self): from reportlab.pdfbase.pdfmetrics import registerFont, _py_getFont from reportlab.pdfbase.ttfonts import TTFont ttfn = 'Luxi-Serif' t1fn = 'Times-Roman' registerFont(TTFont(ttfn, "luxiserif.ttf")) ttf = _py_getFont(ttfn) t1f = _py_getFont(t1fn) testCp1252 = 'copyright %s trademark %s...
12e8e9cc55671e5cc6f4a8cba83406f53d6c3513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/12e8e9cc55671e5cc6f4a8cba83406f53d6c3513/test_rl_accel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1336, 780, 2384, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 1744, 5711, 16, 389, 2074, 67, 588, 5711, 628, 2605, 7411, 18, 7699, 1969, 18, 748, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1336, 780, 2384, 12, 2890, 4672, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 1744, 5711, 16, 389, 2074, 67, 588, 5711, 628, 2605, 7411, 18, 7699, 1969, 18, 748, 22...
noshell = 0
noshell = 0
def main(self, argv, noshell): cmd = None edit = 0 debug = 0 startup = 0 try: opts, args = getopt.getopt(argv, "c:deist:") except getopt.error, msg: sys.stderr.write("Error: %s\n" % str(msg)) sys.stderr.write(usage_msg) sys.exit(2) for o, a in opts: noshell = 0 if o == '-c': cmd = a if o == '-d': debug = 1 if o == '-...
e1ea5a6a5cba72909c5bd271708c70ad1391d343 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e1ea5a6a5cba72909c5bd271708c70ad1391d343/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 16, 5261, 16, 290, 17636, 1165, 4672, 1797, 273, 599, 3874, 273, 374, 1198, 273, 374, 11850, 273, 374, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 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, 2774, 12, 2890, 16, 5261, 16, 290, 17636, 1165, 4672, 1797, 273, 599, 3874, 273, 374, 1198, 273, 374, 11850, 273, 374, 225, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, ...
if len(geometries) > 0:
if len(geometries) > 1:
def __call__(self, f): xyz_reader = XYZReader(f) molecule = xyz_reader.get_first_molecule()
f5e1005bc70646586504f98cb0f3c655ceed081b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11052/f5e1005bc70646586504f98cb0f3c655ceed081b/xyz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 284, 4672, 14779, 67, 10530, 273, 30742, 2514, 12, 74, 13, 13661, 273, 14779, 67, 10530, 18, 588, 67, 3645, 67, 81, 10545, 1435, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 284, 4672, 14779, 67, 10530, 273, 30742, 2514, 12, 74, 13, 13661, 273, 14779, 67, 10530, 18, 588, 67, 3645, 67, 81, 10545, 1435, 2, -100, -100, -100, -10...
if subDirsRemoved and filesRemoved:
if subDirsRemoved and allFilesRemoved:
def __removeDir(self,directory): """ Black magic to recursively remove the directory and sub dirs. Repeatedly calls itself to delete recursively. """ filesRemoved = 0 sizeRemoved = 0 res = self.listDirectory(directory) if not res['OK']: return S_ERROR("Failed to list directory") if not res['Value']['Successful'].has_ke...
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4479, 1621, 12, 2890, 16, 5149, 4672, 3536, 22467, 8146, 358, 8536, 1206, 326, 1867, 471, 720, 7717, 18, 868, 9061, 715, 4097, 6174, 358, 1430, 8536, 18, 3536, 1390, 10026, 273, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4479, 1621, 12, 2890, 16, 5149, 4672, 3536, 22467, 8146, 358, 8536, 1206, 326, 1867, 471, 720, 7717, 18, 868, 9061, 715, 4097, 6174, 358, 1430, 8536, 18, 3536, 1390, 10026, 273, 37...
for i, row in enumerate(self.model):
rows = self.get_all_file_rows() for i, row in enumerate(rows):
def get_next_bean_by_UUID(self, repeat_all=False): UUID = self.active_UUID for i, row in enumerate(self.model): if row[self.is_file[0]] and row[self.UUID[0]] == UUID: if i + 1 < len(self.model): next_row = self.model[i + 1] if next_row[self.is_file[0]]: return self.get_bean_from_row(next_row) if repeat_all: for row in...
a9e8da818dbcefbfc3c0172d631c37b3e9ee048a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/a9e8da818dbcefbfc3c0172d631c37b3e9ee048a/common_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 67, 14496, 67, 1637, 67, 5562, 12, 2890, 16, 7666, 67, 454, 33, 8381, 4672, 5866, 273, 365, 18, 3535, 67, 5562, 225, 2595, 273, 365, 18, 588, 67, 454, 67, 768, 67, 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, 336, 67, 4285, 67, 14496, 67, 1637, 67, 5562, 12, 2890, 16, 7666, 67, 454, 33, 8381, 4672, 5866, 273, 365, 18, 3535, 67, 5562, 225, 2595, 273, 365, 18, 588, 67, 454, 67, 768, 67, 3...
action = True featured = wikipedia.translate(mysite, featured_articles) ref = wikipedia.Page(wikipedia.getSite(), featured) gen = pagegenerators.ReferringPageGenerator(ref) generator = pagegenerators.NamespaceFilterPageGenerator(gen, [0]) for page in generator: workon(page)
featured = True
def workon(page): try: text = page.get() except wikipedia.IsRedirectPage: return wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) links = page.linkedPages() wikipedia.getall(mysite,links) for page2 in links: try: target = page2.getRedirectTarget() except (wikipedia.Error,wikipedia.SectionE...
89a93e7c410791c4b730c6fda9f2d91608b2c69d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/89a93e7c410791c4b730c6fda9f2d91608b2c69d/fixing_redirects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 265, 12, 2433, 4672, 775, 30, 977, 273, 1363, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 327, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 265, 12, 2433, 4672, 775, 30, 977, 273, 1363, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 327, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, ...
return Hammie(storage.open_storage((filename, mode), useDB)
return Hammie(storage.open_storage((filename, mode), useDB))
def open(filename, useDB=True, mode='r'): """Open a file, returning a Hammie instance. If usedb is False, open as a pickle instead of a DBDict. mode is used as the flag to open DBDict objects. 'c' for read-write (create if needed), 'r' for read-only, 'w' for read-write. """ return Hammie(storage.open_storage((filen...
b1bba2e09369c91c9ae0bfe08540efc9c68536be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/b1bba2e09369c91c9ae0bfe08540efc9c68536be/hammie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 3459, 16, 999, 2290, 33, 5510, 16, 1965, 2218, 86, 11, 4672, 3536, 3678, 279, 585, 16, 5785, 279, 670, 301, 81, 1385, 791, 18, 225, 971, 1399, 70, 353, 1083, 16, 1696, 487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 3459, 16, 999, 2290, 33, 5510, 16, 1965, 2218, 86, 11, 4672, 3536, 3678, 279, 585, 16, 5785, 279, 670, 301, 81, 1385, 791, 18, 225, 971, 1399, 70, 353, 1083, 16, 1696, 487,...
def update_idx(): exe.add((cfg.bin.git, 'update-index', '--refresh'))
def update_idx(): exe.add((cfg.bin.git, 'update-index', '--refresh'), block=True)
def update_idx(): exe.add((cfg.bin.git, 'update-index', '--refresh'))
1eb490ecf022d10b9baff3f98342b64ecf7ff733 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11594/1eb490ecf022d10b9baff3f98342b64ecf7ff733/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3465, 13332, 15073, 18, 1289, 12443, 7066, 18, 4757, 18, 6845, 16, 296, 2725, 17, 1615, 2187, 3534, 9144, 19899, 1203, 33, 5510, 13, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3465, 13332, 15073, 18, 1289, 12443, 7066, 18, 4757, 18, 6845, 16, 296, 2725, 17, 1615, 2187, 3534, 9144, 19899, 1203, 33, 5510, 13, 282, 2, -100, -100, -100, -100, -100, -100,...
for domain in domains:
for domain in self._domains[level]:
def _log(self, level, newline, raw, format, *args): # log level higher than logging level? if level > self._level: return
3d7d63966162f8881fad278dc8cc728a7e5a1f77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/3d7d63966162f8881fad278dc8cc728a7e5a1f77/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 12, 2890, 16, 1801, 16, 9472, 16, 1831, 16, 740, 16, 380, 1968, 4672, 468, 613, 1801, 10478, 2353, 2907, 1801, 35, 309, 1801, 405, 365, 6315, 2815, 30, 327, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 12, 2890, 16, 1801, 16, 9472, 16, 1831, 16, 740, 16, 380, 1968, 4672, 468, 613, 1801, 10478, 2353, 2907, 1801, 35, 309, 1801, 405, 365, 6315, 2815, 30, 327, 2, -100, -100, ...
assert u"%(x)s, %()s" % {'x':u"abc", u''.encode('utf-8'):"def"} == u'abc, def'
try: value = u"%(x)s, %()s" % {'x':u"abc", u''.encode('utf-8'):"def"} except KeyError: print '*** formatting failed for "%s"' % "u'abc, def'" else: assert value == u'abc, def'
test('capwords', u'abc\t def \nghi', u'Abc Def Ghi')
6b096315daae01cf10bf6b6f3074de1bb0c20fec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6b096315daae01cf10bf6b6f3074de1bb0c20fec/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1842, 2668, 5909, 3753, 2187, 582, 11, 18947, 64, 88, 282, 1652, 225, 521, 3368, 12266, 2187, 582, 11, 5895, 71, 10922, 611, 12266, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 1842, 2668, 5909, 3753, 2187, 582, 11, 18947, 64, 88, 282, 1652, 225, 521, 3368, 12266, 2187, 582, 11, 5895, 71, 10922, 611, 12266, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if(self.target_name.count("kunit") == 1): assert self.scale_factor == 1
if(self.target_name.count("kunit") == 1 or self.target_name.count("ask") == 1): assert self.scale_factor != 0.0
def target_functor_w(self, selection = None): if(selection is None): f_obs = self.f_obs_w weights = self.weights_w abcd = self.abcd_w else: assert selection.size() == self.f_obs_w.data().size() f_obs = self.f_obs_w.select(selection) if(self.weights_w is not None): weights = self.weights_w.select(selection) else: ...
082c0769ffd6e9832016293c38a1c2d981e8374a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/082c0769ffd6e9832016293c38a1c2d981e8374a/target_functors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1018, 67, 74, 6931, 280, 67, 91, 12, 2890, 16, 4421, 273, 599, 4672, 309, 12, 10705, 353, 599, 4672, 284, 67, 10992, 282, 273, 365, 18, 74, 67, 10992, 67, 91, 5376, 273, 365, 18, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1018, 67, 74, 6931, 280, 67, 91, 12, 2890, 16, 4421, 273, 599, 4672, 309, 12, 10705, 353, 599, 4672, 284, 67, 10992, 282, 273, 365, 18, 74, 67, 10992, 67, 91, 5376, 273, 365, 18, 9...
opts, args = getopt.getopt(sys.argv[1:], "-p:-h", ["port", "host"])
opts, args = getopt.getopt(sys.argv[1:], '-p:-h', ['port', 'host'])
def opts(): try: opts, args = getopt.getopt(sys.argv[1:], "-p:-h", ["port", "host"]) except getopt.GetoptError, err: print str(err) sys.exit() global host global port host = "localhost" port = 1984 for o, a in opts: if o == "-p": port = int(a) if o == "-h": host = a
2c08272f70137ab264e2522f23535b6805965cfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13081/2c08272f70137ab264e2522f23535b6805965cfd/BaseX.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1500, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 2400, 84, 30, 17, 76, 2187, 10228, 655, 2187, 296, 2564, 19486, 1335, 336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1500, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 2400, 84, 30, 17, 76, 2187, 10228, 655, 2187, 296, 2564, 19486, 1335, 336, ...
if day > self.dayOfWeek: daysToWait = (day - self.dayOfWeek) - 1 self.rolloverAt = self.rolloverAt + (daysToWait * (60 * 60 * 24)) if day < self.dayOfWeek: daysToWait = (6 - self.dayOfWeek) + day
if day != self.dayOfWeek: if day < self.dayOfWeek: daysToWait = self.dayOfWeek - day - 1 else: daysToWait = 6 - day + self.dayOfWeek
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None): BaseRotatingHandler.__init__(self, filename, 'a', encoding) self.when = string.upper(when) self.backupCount = backupCount # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Also set the filen...
5d512fa2e42642e6e4e143967a5d72b71cdec5e4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/5d512fa2e42642e6e4e143967a5d72b71cdec5e4/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 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, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 4672, 3360, 8570, 1776, 1503, 16186, 2738, 972, 12, 2890, 16, ...
[NOTE: this test currently FAILS due to trac \ essentially correct though. Should be revisited when that bug is resolved.]
def padic_sigma(self, p, N=20, E2=None, check=False, check_hypotheses=True): r""" Computes the p-adic sigma function with respect to the standard invariant differential $dx/(2y + a_1 x + a_3)$, as defined by Mazur and Tate, as a power series in the usual uniformiser $t$ at the origin.
e901b45b607d92ed1b9df94a3e96aead8ff614d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e901b45b607d92ed1b9df94a3e96aead8ff614d6/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 13201, 12, 2890, 16, 293, 16, 423, 33, 3462, 16, 512, 22, 33, 7036, 16, 866, 33, 8381, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 13201, 12, 2890, 16, 293, 16, 423, 33, 3462, 16, 512, 22, 33, 7036, 16, 866, 33, 8381, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, ...
return self.execute('xls2csv -d UTF-8 -q 0 "%s" 2> nul:' % tmp_name)
html = self.execute('xlhtml "%s"' % tmp_name) return html2text(html, ignore_tags=('img',), indent_width=4, page_width=80)
def xls_convert(self, doc): """Convert Excel document to raw text""" tmp_name = self.saveFile(doc) if sys.platform == 'win32': return self.execute('xls2csv -d UTF-8 -q 0 "%s" 2> nul:' % tmp_name) else: return self.execute('xls2csv -d UTF-8 -q 0 "%s" 2> /dev/null' % tmp_name)
48abb591653ffe58326fac6e17b9dcd2287ff3bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/48abb591653ffe58326fac6e17b9dcd2287ff3bc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 3251, 67, 6283, 12, 2890, 16, 997, 4672, 3536, 2723, 17674, 1668, 358, 1831, 977, 8395, 1853, 67, 529, 273, 365, 18, 5688, 812, 12, 2434, 13, 309, 2589, 18, 9898, 422, 296, 8082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 3251, 67, 6283, 12, 2890, 16, 997, 4672, 3536, 2723, 17674, 1668, 358, 1831, 977, 8395, 1853, 67, 529, 273, 365, 18, 5688, 812, 12, 2434, 13, 309, 2589, 18, 9898, 422, 296, 8082, ...
skip_chars = decoded_chars - len(self._decoded_text)
skip_chars = self._decoded_text_offset
def tell(self): if not self._seekable: raise IOError("underlying stream is not seekable") if not self._telling: raise IOError("telling position disabled by next() call") self.flush() position = self.buffer.tell() decoder = self._decoder if decoder is None or self._snapshot is None: if self._decoded_text: # This should ...
dbe28e573e5c1227777db9dd630fac7732b81374 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dbe28e573e5c1227777db9dd630fac7732b81374/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, ...
parser.parse("wu-blastp.out")
parser.parse(outf)
def main(): from xml.sax import saxutils parser = blastp.make_parser(debug_level = 0) parser.setContentHandler(saxutils.XMLGenerator()) parser.parse("wu-blastp.out") #parser.parse("wu-sh_blastp.out")
0c2f7f68124acbc5695851db91d462c21e90eef1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/0c2f7f68124acbc5695851db91d462c21e90eef1/wublast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 628, 2025, 18, 87, 651, 1930, 20319, 5471, 2082, 273, 19047, 84, 18, 6540, 67, 4288, 12, 4148, 67, 2815, 273, 374, 13, 2082, 18, 542, 1350, 1503, 12, 87, 651, 5471, 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, 2774, 13332, 628, 2025, 18, 87, 651, 1930, 20319, 5471, 2082, 273, 19047, 84, 18, 6540, 67, 4288, 12, 4148, 67, 2815, 273, 374, 13, 2082, 18, 542, 1350, 1503, 12, 87, 651, 5471, 18, ...
return filter(None, map(lambda n, e=self.entries: e.get(n), names))
return map(lambda n, e=self.entries: e[_my_normcase(n)], names)
def _glob1(self, pattern, ondisk=True, source=False, strings=False): """ Globs for and returns a list of entry names matching a single pattern in this directory.
2958b4895e2270f8e56503dbda89ab0dced75be0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/2958b4895e2270f8e56503dbda89ab0dced75be0/FS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10581, 21, 12, 2890, 16, 1936, 16, 603, 10863, 33, 5510, 16, 1084, 33, 8381, 16, 2064, 33, 8381, 4672, 3536, 18901, 87, 364, 471, 1135, 279, 666, 434, 1241, 1257, 3607, 279, 2202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10581, 21, 12, 2890, 16, 1936, 16, 603, 10863, 33, 5510, 16, 1084, 33, 8381, 16, 2064, 33, 8381, 4672, 3536, 18901, 87, 364, 471, 1135, 279, 666, 434, 1241, 1257, 3607, 279, 2202,...
info, " /' < ", __tmpfilename,
info, " /' < ", __tmpfilename,
def addinfoToEachRaw(targetfile="",info=""): """ add info to each raw. """ __funcname="addinfoToEachRaw" __errmsg="Error"+" in "+__funcname if (targetfile is ""): print __errmsg, "Enough numbers of arguments are not given." sys.exit() if os.path.isfile(targetfile) is False: print __errmsg, targetfile, "does not exit!!"...
a6565b4090de43bfb103a990979db74b9b2cddb1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/a6565b4090de43bfb103a990979db74b9b2cddb1/combiner_v2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1376, 774, 3442, 4809, 12, 3299, 768, 1546, 3113, 1376, 1546, 6, 4672, 3536, 527, 1123, 358, 1517, 1831, 18, 3536, 1001, 644, 529, 1546, 1289, 1376, 774, 3442, 4809, 6, 1001, 24409,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 1376, 774, 3442, 4809, 12, 3299, 768, 1546, 3113, 1376, 1546, 6, 4672, 3536, 527, 1123, 358, 1517, 1831, 18, 3536, 1001, 644, 529, 1546, 1289, 1376, 774, 3442, 4809, 6, 1001, 24409,...
g2list = [gen for gen in self.generators if gen.HandlesEntry(entry, metadata)]
g2list = [gen for gen in self.generators if gen.HandlesEntry(entry, metadata)]
def Bind(self, entry, metadata): '''Bind an entry using the appropriate generator''' if 'altsrc' in entry.attrib: oldname = entry.get('name') entry.set('name', entry.get('altsrc')) entry.set('realname', oldname) del entry.attrib['altsrc'] try: ret = self.Bind(entry, metadata) entry.set('name', oldname) del entry.attrib...
4d1544016635254d1c51ec77e3e26699d64b1d26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/4d1544016635254d1c51ec77e3e26699d64b1d26/Core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6936, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 3357, 392, 1241, 1450, 326, 5505, 4456, 26418, 309, 296, 2390, 4816, 11, 316, 1241, 18, 14588, 30, 1592, 529, 273, 1241, 18, 588, 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, 6936, 12, 2890, 16, 1241, 16, 1982, 4672, 9163, 3357, 392, 1241, 1450, 326, 5505, 4456, 26418, 309, 296, 2390, 4816, 11, 316, 1241, 18, 14588, 30, 1592, 529, 273, 1241, 18, 588, 2668, ...
print 'm=',m
def getentry(self, which): self._check() if which == 'in': cmd = IN_ENTRY_SENSE elif which == 'out': cmd = OUT_ENTRY_SENSE self.replycmd(cmd) h = self._getnumber(2) print 'h=',h m = self._getnumber(2) print 'm=',m s = self._getnumber(2) print 's=',s f = self._getnumber(2) print 'f=',f return (h, m, s, f)
0b424aeee61cf467f726567c4a8deb7458742940 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0b424aeee61cf467f726567c4a8deb7458742940/VCR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4099, 12, 2890, 16, 1492, 4672, 365, 6315, 1893, 1435, 309, 1492, 422, 296, 267, 4278, 1797, 273, 2120, 67, 19083, 67, 1090, 50, 1090, 1327, 1492, 422, 296, 659, 4278, 1797, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4099, 12, 2890, 16, 1492, 4672, 365, 6315, 1893, 1435, 309, 1492, 422, 296, 267, 4278, 1797, 273, 2120, 67, 19083, 67, 1090, 50, 1090, 1327, 1492, 422, 296, 659, 4278, 1797, 273, ...
if type(self.L[0]) in [list, tuple]: return type(self.L[0][index]) else: return type(self.L[0])
return self.__types[index]
def on_get_column_type(self, index): if type(self.L[0]) in [list, tuple]: return type(self.L[0][index]) else: return type(self.L[0])
cf5341a61a2498b093430a22411daa9f62f4e076 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8273/cf5341a61a2498b093430a22411daa9f62f4e076/pythonlistmodel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 588, 67, 2827, 67, 723, 12, 2890, 16, 770, 4672, 309, 618, 12, 2890, 18, 48, 63, 20, 5717, 316, 306, 1098, 16, 3193, 14542, 327, 618, 12, 2890, 18, 48, 63, 20, 6362, 1615,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 67, 588, 67, 2827, 67, 723, 12, 2890, 16, 770, 4672, 309, 618, 12, 2890, 18, 48, 63, 20, 5717, 316, 306, 1098, 16, 3193, 14542, 327, 618, 12, 2890, 18, 48, 63, 20, 6362, 1615,...
class TestRq(NumpyTestCase):
class TestRQ(NumpyTestCase):
def check_random_complex(self): n = 20 for k in range(2): a = random([n,n])+1j*random([n,n]) q,r = qr(a) assert_array_almost_equal(dot(conj(transpose(q)),q),identity(n)) assert_array_almost_equal(dot(q,r),a)
ed190d870bbfc8f800477027b23dcafc112a646e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/ed190d870bbfc8f800477027b23dcafc112a646e/test_decomp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9188, 67, 14259, 12, 2890, 4672, 290, 273, 4200, 364, 417, 316, 1048, 12, 22, 4672, 279, 273, 2744, 3816, 82, 16, 82, 5717, 15, 21, 78, 14, 9188, 3816, 82, 16, 82, 5717, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9188, 67, 14259, 12, 2890, 4672, 290, 273, 4200, 364, 417, 316, 1048, 12, 22, 4672, 279, 273, 2744, 3816, 82, 16, 82, 5717, 15, 21, 78, 14, 9188, 3816, 82, 16, 82, 5717, 1...
print " * Generating includer..." sourceOutput = settingsStr srcEol = "";
if options.sourceTemplateInputFile: options.sourceTemplateInputFile = os.path.normpath(options.sourceTemplateInputFile) if options.sourceTemplateOutputFile: options.sourceTemplateOutputFile = os.path.normpath(options.sourceTemplateOutputFile) print " * Generating script block..." sourceLineFeed = "";
def execute(fileDb, moduleDb, options, pkgid="", names=[]): additionalOutput = [] ###################################################################### # SORT OF INCLUDE LIST ###################################################################### print print " SORT OF INCLUDE LIST:" print "-----------------------...
c747d776efd38fcc589afb4462ed3b74c1fc7c1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/c747d776efd38fcc589afb4462ed3b74c1fc7c1b/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 768, 4331, 16, 1605, 4331, 16, 702, 16, 3475, 350, 1546, 3113, 1257, 33, 8526, 4672, 225, 3312, 1447, 273, 5378, 282, 28256, 1970, 7, 468, 225, 11530, 15932, 28062, 15130, 2825...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 768, 4331, 16, 1605, 4331, 16, 702, 16, 3475, 350, 1546, 3113, 1257, 33, 8526, 4672, 225, 3312, 1447, 273, 5378, 282, 28256, 1970, 7, 468, 225, 11530, 15932, 28062, 15130, 2825...
Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 4 of J0(125)
Simple abelian subvariety 125a(1,125) of dimension 2 of J0(125), Simple abelian subvariety 125b(1,125) of dimension 2 of J0(125), Simple abelian subvariety 125c(1,125) of dimension 4 of J0(125)
def __getslice__(self, i, j): """ The slice i:j of decompositions of self. EXAMPLES: sage: J = J0(125); J.decomposition() [ Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 2 of J0(125), Abelian variety factor of dimension 4 of J0(125) ] sage: J[:2] [ Abelian variety factor of dime...
f30f87afcce1c095974cd5259aa7272b60928586 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f30f87afcce1c095974cd5259aa7272b60928586/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 6665, 972, 12, 2890, 16, 277, 16, 525, 4672, 3536, 1021, 2788, 277, 30, 78, 434, 9862, 12388, 434, 365, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 804, 273, 804, 20, 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, 1001, 588, 6665, 972, 12, 2890, 16, 277, 16, 525, 4672, 3536, 1021, 2788, 277, 30, 78, 434, 9862, 12388, 434, 365, 18, 225, 5675, 8900, 11386, 30, 272, 410, 30, 804, 273, 804, 20, 12...
recs.append(106, self.timestamp)
recs.append((106, self.timestamp))
def update(self, mi): recs = [] try: from calibre.ebooks.conversion.config import load_defaults prefs = load_defaults('mobi_output') pas = prefs.get('prefer_author_sort', False) except: pas = False if mi.author_sort and pas: authors = mi.author_sort recs.append((100, authors.encode(self.codec, 'replace'))) elif mi.auth...
ffb1d3d770bd1f7764e724a7da0caa39a75038fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/ffb1d3d770bd1f7764e724a7da0caa39a75038fb/mobi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 12837, 4672, 27255, 273, 5378, 775, 30, 628, 26139, 266, 18, 73, 12567, 18, 20990, 18, 1425, 1930, 1262, 67, 7606, 15503, 273, 1262, 67, 7606, 2668, 81, 30875, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 12837, 4672, 27255, 273, 5378, 775, 30, 628, 26139, 266, 18, 73, 12567, 18, 20990, 18, 1425, 1930, 1262, 67, 7606, 15503, 273, 1262, 67, 7606, 2668, 81, 30875, 67, ...
tableName = self.__getTableName( "bucket", typeName )
tableName = _getTableName( "bucket", typeName )
def __updateBucket( self, typeName, startTime, bucketLength, keyValues, bucketValues, proportion, connObj = False ): """ Update a bucket when coming from the raw insert """ tableName = self.__getTableName( "bucket", typeName ) cmd = "UPDATE `%s` SET " % tableName sqlValList = [] for pos in range( len( self.dbCatalog[ t...
5644734dd5f9b2176cf1b7afc4f6ab55941c88f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5644734dd5f9b2176cf1b7afc4f6ab55941c88f0/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2725, 4103, 12, 365, 16, 8173, 16, 8657, 16, 2783, 1782, 16, 498, 1972, 16, 2783, 1972, 16, 23279, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 2315, 279, 2783, 1347, 19283, 628, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4103, 12, 365, 16, 8173, 16, 8657, 16, 2783, 1782, 16, 498, 1972, 16, 2783, 1972, 16, 23279, 16, 1487, 2675, 273, 1083, 262, 30, 3536, 2315, 279, 2783, 1347, 19283, 628, 32...
sage: P1xP1 = ToricVariety(fan) sage: P1xP1.inject_coefficients() The last command does nothing, since ``P1xP1`` is defined over `\QQ`. Let's construct a toric variety over a more complicated field::
def inject_coefficients(self, scope=None, verbose=True): r""" Inject generators of the base field of ``self`` into ``scope``.
bf8155d5074543bbf066ffe38ee5541218f84088 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/bf8155d5074543bbf066ffe38ee5541218f84088/toric_variety.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4590, 67, 8075, 12344, 12, 2890, 16, 2146, 33, 7036, 16, 3988, 33, 5510, 4672, 436, 8395, 20085, 13327, 434, 326, 1026, 652, 434, 12176, 2890, 10335, 1368, 12176, 4887, 68, 8338, 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, 4590, 67, 8075, 12344, 12, 2890, 16, 2146, 33, 7036, 16, 3988, 33, 5510, 4672, 436, 8395, 20085, 13327, 434, 326, 1026, 652, 434, 12176, 2890, 10335, 1368, 12176, 4887, 68, 8338, 2, -100...
self.pmonitors[i].start(int(duration / self.rate) + 1)
self.pmonitors[k].start(int(duration / self.rate) + 1)
def start(self, duration=None): for i in range(len(self.cbs)): self.pmonitors[i] = PeriodicMonitor(self.cbs[i], self.rate)
8c860a65b7d3d0c4154b79977b181d0ece64761d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/8c860a65b7d3d0c4154b79977b181d0ece64761d/perception_monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 3734, 33, 7036, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 71, 2038, 3719, 30, 365, 18, 84, 2586, 13704, 63, 77, 65, 273, 12698, 335, 7187, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 3734, 33, 7036, 4672, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 71, 2038, 3719, 30, 365, 18, 84, 2586, 13704, 63, 77, 65, 273, 12698, 335, 7187, 12, 2890, 18, ...
-1.0
0.5 + 0.866025403784*I
def _complex_double_(self, field): """ EXAMPLES: sage: CDF((-1)^(1/3)) 0.5 + 0.866025403784*I
91ce32de726922bd909433810b61f39b42ddf8c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/91ce32de726922bd909433810b61f39b42ddf8c5/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14259, 67, 9056, 67, 12, 2890, 16, 652, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 31971, 12443, 17, 21, 13, 29020, 21, 19, 23, 3719, 374, 18, 25, 397, 374, 18, 5292, 4848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 14259, 67, 9056, 67, 12, 2890, 16, 652, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 31971, 12443, 17, 21, 13, 29020, 21, 19, 23, 3719, 374, 18, 25, 397, 374, 18, 5292, 4848...
(text, create_nearest_terms_box(req.args, pi, fi)), "")
(text, create_nearest_terms_box(req.args, pi, fi, ti)))
def search_pattern(req, p=None, f=None, colls=[], m=None, hit_hints=0): """Searches for pattern 'p' and field 'f' and returns dict of recIDs HitLists per each collection in 'colls'. - Optionally, the function accepts the match type argument 'm'. If it is set (e.g. from advanced search interface), then it performs this ...
535ed6a8d836745c0ddd7f1016fbe145d7c7bebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/535ed6a8d836745c0ddd7f1016fbe145d7c7bebd/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 22850, 6487, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471...
cr, uid, ids, context=context)
cr, uid, ids, context=context)
def unlink(self, cr, uid, ids, context=None): for move in self.browse(cr, uid, ids, context=context): if move.state != 'draft': raise osv.except_osv(_('UserError'), _('You can only delete draft moves.')) return super(stock_move, self).unlink( cr, uid, ids, context=context)
18be8e52469417aa8e0ec02e033c0942d0ad805f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/18be8e52469417aa8e0ec02e033c0942d0ad805f/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 3635, 18, 2019, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 3635, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 3635, 18, 2019, 480...
psout = ps.stdout.read() psout.strip()
psout = ps.communicate()[0]
def main(): # Initialize the update url to just be the ip address of this machine. ip = getmyip() updateurl = 'http://' + ip + ':12345/' if len(sys.argv) == 1: sys.argv.append(updateurl) else: sys.argv[1] = updateurl # Create a temp directory to serve the updates from that we can # automatically clean up when we are ...
1da3ab38f9ef6428f3669f460f649f1680e24e21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/1da3ab38f9ef6428f3669f460f649f1680e24e21/test_updater_local.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9190, 326, 1089, 880, 358, 2537, 506, 326, 2359, 1758, 434, 333, 5228, 18, 2359, 273, 336, 4811, 625, 1435, 1089, 718, 273, 296, 2505, 8931, 397, 2359, 397, 4290, 2138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 9190, 326, 1089, 880, 358, 2537, 506, 326, 2359, 1758, 434, 333, 5228, 18, 2359, 273, 336, 4811, 625, 1435, 1089, 718, 273, 296, 2505, 8931, 397, 2359, 397, 4290, 2138,...
elif self.input_dir and os.path.isfile(self.input_dir):
""" if self.input_dir and os.path.isfile(self.input_dir):
def run(self): """ 2008-04-25 return None if QC_method_id==0 2008-04-20 for plone to call it just to get row_id2NA_mismatch_rate """ #database connection and etc db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.user, password=self.passwd, hostname=self.hostname, database=self.dbname) db.setup() ...
e8a8bb38f1f872fe801dbb73dd4dc7dbd34bb539 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/e8a8bb38f1f872fe801dbb73dd4dc7dbd34bb539/QC_250k.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 4044, 28, 17, 3028, 17, 2947, 327, 599, 309, 2238, 39, 67, 2039, 67, 350, 631, 20, 4044, 28, 17, 3028, 17, 3462, 364, 886, 476, 358, 745, 518, 2537, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4044, 28, 17, 3028, 17, 2947, 327, 599, 309, 2238, 39, 67, 2039, 67, 350, 631, 20, 4044, 28, 17, 3028, 17, 3462, 364, 886, 476, 358, 745, 518, 2537, 358, ...