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
shlink_flags += [ '-Wl,-Bsymbolic', '-Wl,-soname=${TARGET}' ]
shlink_flags += [ '-Wl,-Bsymbolic', '-Wl,-soname=${LIBPREFIX}%s%s' % ( libname, shlib_suffix) ]
def VersionedSharedLibrary(self, libname, libversion, lib_objs=[]): platform = self.subst('$PLATFORM') shlib_pre_action = None shlib_suffix = self.subst('$SHLIBSUFFIX') shlib_post_action = None shlink_flags = SCons.Util.CLVar(self.subst('$SHLINKFLAGS'))
d6b31b00b5cf936bb1be769c0df5d6e35aafc44e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5569/d6b31b00b5cf936bb1be769c0df5d6e35aafc44e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18607, 7887, 9313, 12, 2890, 16, 2561, 529, 16, 2561, 1589, 16, 2561, 67, 18093, 33, 8526, 4672, 4072, 273, 365, 18, 1717, 334, 2668, 8, 6253, 789, 4983, 6134, 699, 2941, 67, 1484, 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, 18607, 7887, 9313, 12, 2890, 16, 2561, 529, 16, 2561, 1589, 16, 2561, 67, 18093, 33, 8526, 4672, 4072, 273, 365, 18, 1717, 334, 2668, 8, 6253, 789, 4983, 6134, 699, 2941, 67, 1484, 67,...
depthVector * cos(theta_ribbon_2)
depthVector * cos(theta_ribbon_2)
def drawDnaRibbons(endCenter1, endCenter2, basesPerTurn, duplexRise, glpaneScale, lineOfSightVector, displayStyle, ribbon1_start_point = None, ribbon2_start_point = None, peakDeviationFromCenter = 9.5, ribbonThickness = 2.0, ribbon1Color = None, ribbon2Color = None, stepColor = None): """ Draw DNA ribbons where each st...
aba9c26d293a0fb5e28d6ce2f271a860d26c5f65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/aba9c26d293a0fb5e28d6ce2f271a860d26c5f65/drawDnaRibbons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 40, 6582, 54, 495, 70, 7008, 12, 409, 8449, 21, 16, 679, 8449, 22, 16, 8337, 2173, 15858, 16, 302, 2268, 92, 54, 784, 16, 5118, 29009, 5587, 16, 980, 951, 55, 750, 5018, 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, 3724, 40, 6582, 54, 495, 70, 7008, 12, 409, 8449, 21, 16, 679, 8449, 22, 16, 8337, 2173, 15858, 16, 302, 2268, 92, 54, 784, 16, 5118, 29009, 5587, 16, 980, 951, 55, 750, 5018, 16, ...
client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Depth': '1' })
client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Content-Type':'text/xml', 'Depth': '1' })
def test_timerangequery_one_in_honolulu(): body = open(FILES_DIR+'reports/timerangequery/oneInHonolulu.xml').read() client._request('REPORT', '%s/%s' % (PRINCIPAL_DAV_PATH, TIMEZONE_CALENDAR), body=body, headers={ 'Depth': '1' }) assert client.response.status == 207 positive = ['BEGIN:VCALENDAR', 'CALSCALE:GREGORIAN',...
0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9939/0eb233b34e19f3cc4572957bdd4dfc9d1e2048e1/test_reports_with_float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12542, 726, 2271, 67, 476, 67, 267, 67, 76, 265, 355, 18160, 13332, 1417, 273, 1696, 12, 12669, 67, 4537, 6797, 20195, 19, 12542, 726, 2271, 19, 476, 382, 44, 265, 355, 18160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12542, 726, 2271, 67, 476, 67, 267, 67, 76, 265, 355, 18160, 13332, 1417, 273, 1696, 12, 12669, 67, 4537, 6797, 20195, 19, 12542, 726, 2271, 19, 476, 382, 44, 265, 355, 18160...
test_support.run_unittest(UnicodeTestCase)
test_support.run_unittest(UnicodeTestCase, UnicodeFormatTestCase)
def test_main(): test_support.run_unittest(UnicodeTestCase)
8be4262b8370277826a69fd9eaacd5b6c57d00e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6753/8be4262b8370277826a69fd9eaacd5b6c57d00e4/test_unicode_jy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 16532, 4709, 2449, 16, 9633, 1630, 4709, 2449, 13, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 16532, 4709, 2449, 16, 9633, 1630, 4709, 2449, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dummy = wxPanel(m_NavigNotebook, wxID_HTML_INDEXPAGE)
panel = wxPanel(m_NavigNotebook, wxID_HTML_INDEXPAGE)
def __init__(self, parent, id, title, style = wxHF_DEFAULT_STYLE): wxFrame.__init__(self,parent,-4, title, style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
e8a0e62c076da03b00d6de86211d9c1f32733a01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2448/e8a0e62c076da03b00d6de86211d9c1f32733a01/wxApp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 2154, 273, 7075, 44, 42, 67, 5280, 67, 15066, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 17, 24, 16, 2077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 16, 2077, 16, 2154, 273, 7075, 44, 42, 67, 5280, 67, 15066, 4672, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 17, 24, 16, 2077,...
request_uri.path = uri.Path('/%s' % diff_path)
if request_uri.path.endswith_slash: request_uri.path = uri.Path('/%s/' % diff_path) else: request_uri.path = uri.Path('/%s' % diff_path)
def __init__(self, request): self.request = request self.response = Response()
7852ef9529d3bc75eb67b2278302738a8b30159c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/7852ef9529d3bc75eb67b2278302738a8b30159c/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 4672, 365, 18, 2293, 273, 590, 365, 18, 2740, 273, 2306, 1435, 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, 1001, 2738, 972, 12, 2890, 16, 590, 4672, 365, 18, 2293, 273, 590, 365, 18, 2740, 273, 2306, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print '%s%s %.4f secs' % (task, '.'*(35-len(task)), time),
print '%s%s %6.2f secs' % (task, '.'*(35-len(task)), time),
def print_times(self): times = [(e-s,t) for (t,s,e) in self._times] times.sort() total = sum([time for (time, task) in times]) for (time, task) in times: task = task[:31] print '%s%s %.4f secs' % (task, '.'*(35-len(task)), time), print '|'+'=' * min(30,int(50*time/total))
c0aafe2a557778dc005757711d589d7564d970ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/c0aafe2a557778dc005757711d589d7564d970ac/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 8293, 12, 2890, 4672, 4124, 273, 306, 12, 73, 17, 87, 16, 88, 13, 364, 261, 88, 16, 87, 16, 73, 13, 316, 365, 6315, 8293, 65, 4124, 18, 3804, 1435, 2078, 273, 2142, 3816,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 8293, 12, 2890, 4672, 4124, 273, 306, 12, 73, 17, 87, 16, 88, 13, 364, 261, 88, 16, 87, 16, 73, 13, 316, 365, 6315, 8293, 65, 4124, 18, 3804, 1435, 2078, 273, 2142, 3816,...
self.EntryIncompleteDir.set_text(str(self.config["transfers"]["incomplete-dir"])) self.EntryDownloadsDBase.set_text(str(self.config["transfers"]["downloads"]))
if "incomplete-dir" in self.config["transfers"]: self.EntryIncompleteDir.set_text(str(self.config["transfers"]["incomplete-dir"])) if "downloads" in self.config["transfers"]: self.EntryDownloadsDBase.set_text(str(self.config["transfers"]["downloads"]))
def populate_dialogs(self): self.parents= {} # Server if self.config == {}: self.ClearSettings() return #try: if 1: self.MuseekSettingsSensitive(True) self.app.Muscan.GetConfig() self.CONFIG_PATH = self.app.Muscan.configfile config = self.config self.EntryServerHost.set_text(self.config["server"]["host"]) self.ServerP...
7f91669dcaa7418f5173782a4b701923fb8a2034 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8737/7f91669dcaa7418f5173782a4b701923fb8a2034/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 25909, 14072, 12, 2890, 4672, 365, 18, 12606, 33, 2618, 468, 3224, 309, 365, 18, 1425, 422, 16648, 365, 18, 9094, 2628, 1435, 327, 468, 698, 30, 309, 404, 30, 365, 18, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 25909, 14072, 12, 2890, 4672, 365, 18, 12606, 33, 2618, 468, 3224, 309, 365, 18, 1425, 422, 16648, 365, 18, 9094, 2628, 1435, 327, 468, 698, 30, 309, 404, 30, 365, 18, 49, ...
self.refresh_screen()
def urwid_run(self): self.refresh_screen() width, height = self.ui.get_cols_rows()
cf0b1fe13eba43ab7567307bb554e1832896a5aa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/cf0b1fe13eba43ab7567307bb554e1832896a5aa/Hexeditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8896, 30902, 67, 2681, 12, 2890, 4672, 1835, 16, 2072, 273, 365, 18, 4881, 18, 588, 67, 6842, 67, 3870, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8896, 30902, 67, 2681, 12, 2890, 4672, 1835, 16, 2072, 273, 365, 18, 4881, 18, 588, 67, 6842, 67, 3870, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
verification = (len(self.hashes) > 0) if verification: xml.startElement("verification") for hash in self.hashes: hash.save(xml) xml.endElement("verification") if verification: xml.startElement("resources")
if len(self.hashes) > 0: xml.startElement("verification") for hash in self.hashes: hash.save(xml) xml.endElement("verification") xml.startElement("resources")
def save(self, xml): xml.startElement("file", {"name": self.name}) xml.addElement("identity", self.identity) xml.addElement("version", self.version) xml.addElement("description", self.description) if self.size > 0: xml.addElement("size", str(self.size)) verification = (len(self.hashes) > 0) if verification: xml.startEl...
e46373964b9979809149b76004bf6023d17d7b81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6425/e46373964b9979809149b76004bf6023d17d7b81/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 2025, 4672, 2025, 18, 1937, 1046, 2932, 768, 3113, 12528, 529, 6877, 365, 18, 529, 6792, 2025, 18, 1289, 1046, 2932, 10781, 3113, 365, 18, 10781, 13, 2025, 18, 1289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 2025, 4672, 2025, 18, 1937, 1046, 2932, 768, 3113, 12528, 529, 6877, 365, 18, 529, 6792, 2025, 18, 1289, 1046, 2932, 10781, 3113, 365, 18, 10781, 13, 2025, 18, 1289, ...
raise DateTimeParseError, \ 'The datetime string did not match the pattern.'
raise DateTimeParseError( 'The datetime string did not match the pattern.')
def parse(self, text, pattern=None, asObject=True): "See zope.i18n.interfaces.IFormat" # Make or get binary form of datetime pattern if pattern is not None: bin_pattern = parseDateTimePattern(pattern) else: bin_pattern = self._bin_pattern # Generate the correct regular expression to parse the date and parse. regex = ''...
7f69ef20009b3694e863107957633808fdcf1509 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9827/7f69ef20009b3694e863107957633808fdcf1509/format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 1936, 33, 7036, 16, 31310, 33, 5510, 4672, 315, 9704, 998, 1306, 18, 77, 2643, 82, 18, 15898, 18, 45, 1630, 6, 468, 4344, 578, 336, 3112, 646, 434, 3314,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 977, 16, 1936, 33, 7036, 16, 31310, 33, 5510, 4672, 315, 9704, 998, 1306, 18, 77, 2643, 82, 18, 15898, 18, 45, 1630, 6, 468, 4344, 578, 336, 3112, 646, 434, 3314,...
self.xyz_ref = ['64\n', 'dummy_real=1.00000000 dummy_int=2 dummy_int_a="1 2 3" dummy_real_a="1.00000000 2.00000000 3.00000000" dummy_int_a2="1 4 7 2 5 8 3 6 9" dummy_real_a2="1.00000000 4.00000000 7.00000000 2.00000000 ...
self.xyz_ref = ['64\n', 'dummy_real=1.00000000 dummy_int=2 dummy_int_a="1 2 3" dummy_real_a="1.00000000 2.00000000 3.00000000" dummy_int_a2="1 4 7 2 5 8 3 6 9" dummy_real_a2="1.00000000 4.00000000 7.00000000 2.00000000 ...
def setUp(self): self.at = supercell(diamond(5.44,14), 2,2,2) self.at.params['dummy_real'] = 1.0 self.at.params['dummy_int'] = 2 self.at.params['dummy_int_a'] = [1,2,3] self.at.params['dummy_real_a'] = [1.0,2.0,3.0] self.at.params['dummy_int_a2'] = farray([1,2,3,4,5,6,7,8,9]).reshape(3,3) self.at.params['dummy_real_a2'...
12d39b730bc17b31ce3967086afc2e726584e2e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/12d39b730bc17b31ce3967086afc2e726584e2e8/test_xyz_netcdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 270, 273, 2240, 3855, 12, 3211, 301, 1434, 12, 25, 18, 6334, 16, 3461, 3631, 576, 16, 22, 16, 22, 13, 365, 18, 270, 18, 2010, 3292, 21050, 67, 7688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 270, 273, 2240, 3855, 12, 3211, 301, 1434, 12, 25, 18, 6334, 16, 3461, 3631, 576, 16, 22, 16, 22, 13, 365, 18, 270, 18, 2010, 3292, 21050, 67, 7688, ...
dataS = dataS.replace(r'\\', '\\')
dataS = dataS.replace('\\\\\\', '\\').replace(r'\\', '\\')
def writeI18NFiles(self, globalCodes, script):
2dc0d0a0bd9316845c8a7e2a92f8fe4a7f7bed5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/2dc0d0a0bd9316845c8a7e2a92f8fe4a7f7bed5f/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 45, 2643, 50, 2697, 12, 2890, 16, 2552, 6295, 16, 2728, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 45, 2643, 50, 2697, 12, 2890, 16, 2552, 6295, 16, 2728, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
gLogger.error("Failed to verify Castor dump",res['Message'])
gLogger.error( "Failed to verify Castor dump", res['Message'] )
def execute(self): """ The SENamespaceCatalogCheck execution method. """ self.enableFlag = self.am_getOption('EnableFlag','True') if not self.enableFlag == 'True': self.log.info('SENamespaceCatalogCheck is disabled by configuration option %s/EnableFlag' %(self.section)) return S_OK('Disabled via CS flag')
ee83668b2f6e1bbb37e504fcdd26bdf3e730b233 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ee83668b2f6e1bbb37e504fcdd26bdf3e730b233/SENamespaceCatalogCheckAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 348, 1157, 753, 909, 9769, 1564, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 348, 1157, 753, 909, 9769, 1564, 4588, 707, 18, 3536, 365, 18, 7589, 4678, 273, 365, 18, 301, 67, 588, 1895, 2668, 8317, 4678, 17023, 5510, 6134, 309, ...
data = convert_data(op.db_data)
data = convert_data(op.db_data, op.db_parentObjType, op.db_parentObjId)
def translateVistrail(_vistrail): vistrail = DBVistrail() for _action in _vistrail.db_actions.itervalues(): ops = [] for op in _action.db_operations: if op.vtType == 'add': data = convert_data(op.db_data) ops.append(DBAdd(id=op.db_id, what=op.db_what, objectId=op.db_objectId, parentObjId=op.db_parentObjId, parentObjTy...
e9a459aaaed9515e022f9df75afd05a395629769 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/e9a459aaaed9515e022f9df75afd05a395629769/v0_6_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 3282, 15565, 24899, 90, 3337, 671, 4672, 2281, 15565, 273, 2383, 3282, 15565, 1435, 225, 364, 389, 1128, 316, 389, 90, 3337, 671, 18, 1966, 67, 4905, 18, 2165, 2372, 13332, 6727, 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, 4204, 3282, 15565, 24899, 90, 3337, 671, 4672, 2281, 15565, 273, 2383, 3282, 15565, 1435, 225, 364, 389, 1128, 316, 389, 90, 3337, 671, 18, 1966, 67, 4905, 18, 2165, 2372, 13332, 6727, 2...
print 'ratecv' state = (-8000, ((256, 512),)) if audioop.ratecv(data[0], 1, 1, 8000, 16000, state) != \ ('\001\000\000\001\001\002', state): return 0
print 'ratecv' state = None d1, state = audioop.ratecv(data[0], 1, 1, 8000, 16000, state) d2, state = audioop.ratecv(data[0], 1, 1, 8000, 16000, state) if d1 + d2 != '\000\000\001\001\002\001\000\000\001\001\002': return 0
def testratecv(data): if verbose: print 'ratecv' state = (-8000, ((256, 512),)) if audioop.ratecv(data[0], 1, 1, 8000, 16000, state) != \ ('\001\000\000\001\001\002', state): return 0 return 1
05ba2ab720dff2a2966a481329a4f90bea5eea85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05ba2ab720dff2a2966a481329a4f90bea5eea85/test_audioop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 281, 313, 340, 19774, 12, 892, 4672, 309, 3988, 30, 1172, 296, 5141, 19774, 11, 919, 273, 599, 302, 21, 16, 919, 273, 7447, 556, 18, 5141, 19774, 12, 892, 63, 20, 6487, 404, 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, 268, 281, 313, 340, 19774, 12, 892, 4672, 309, 3988, 30, 1172, 296, 5141, 19774, 11, 919, 273, 599, 302, 21, 16, 919, 273, 7447, 556, 18, 5141, 19774, 12, 892, 63, 20, 6487, 404, 16,...
if (self.indptr[-1] > len(self.colind)):
if (nnz > nzmax):
def _check(self): M,N = self.shape if (rank(self.data) != 1) or (rank(self.colind) != 1) or \ (rank(self.indptr) != 1): raise ValueError, "Data, colind, and indptr arrays "\ "should be rank 1." if (len(self.data) != len(self.colind)): raise ValueError, "Data and row list should have same length" if (len(self.indptr) !=...
1b70bf704019519bf06c10fab13fe3a67941a824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/1b70bf704019519bf06c10fab13fe3a67941a824/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2890, 4672, 490, 16, 50, 273, 365, 18, 4867, 309, 261, 11500, 12, 2890, 18, 892, 13, 480, 404, 13, 578, 261, 11500, 12, 2890, 18, 1293, 728, 13, 480, 404, 13, 578, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2890, 4672, 490, 16, 50, 273, 365, 18, 4867, 309, 261, 11500, 12, 2890, 18, 892, 13, 480, 404, 13, 578, 261, 11500, 12, 2890, 18, 1293, 728, 13, 480, 404, 13, 578, 5...
return sum([plot(p[1], p[0][0], p[0][1], **kwds ) for p in self.list()])
return sum([plot(p[1], p[0][0], p[0][1], *args, **kwds ) for p in self.list()])
def plot(self, **kwds): """ Returns the plot of self.
b2b9e236634e2e1b24d64a66e6db1be39fb800e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b2b9e236634e2e1b24d64a66e6db1be39fb800e1/piecewise.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 2826, 25577, 4672, 3536, 2860, 326, 3207, 434, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 2890, 16, 2826, 25577, 4672, 3536, 2860, 326, 3207, 434, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
command = [ "sudo", "mod", "user", "--quiet", "--no-colors", "--login", login, '--apply-skel', skel ]
command = [ "sudo", "mod", "user", "--quiet", "--no-colors", "--login", login, '--apply-skel', apply_skel ]
def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x...
b1c965e2c6d0e0f8c814177d2f5c4d4dc29a16c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b1c965e2c6d0e0f8c814177d2f5c4d4dc29a16c2/users.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 7771, 10558, 12, 29112, 67, 1655, 16, 4343, 67, 1098, 4672, 9163, 2660, 30, 358, 506, 5970, 358, 328, 335, 14245, 938, 309, 14705, 67, 1655, 422, 1664, 18, 81, 1557, 3292, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 7771, 10558, 12, 29112, 67, 1655, 16, 4343, 67, 1098, 4672, 9163, 2660, 30, 358, 506, 5970, 358, 328, 335, 14245, 938, 309, 14705, 67, 1655, 422, 1664, 18, 81, 1557, 3292, 86...
from alert_engine import send_email
from alert_engine import send_email, forge_email out = forge_email(from_addr, to_addr, subject, out)
def notify_admin_of_new_comment(comID): """ Sends an email to the admin with details regarding comment with ID = comID """ comment = query_get_comment(comID) if len(comment) > 0: (comID2, id_bibrec, id_user, body, date_creation, star_score, nb_votes_yes, nb_votes_total, title, nb_abuse_reports) = comment else: return u...
c585ed47e974a954b2565ac88b44c256a54ba2f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c585ed47e974a954b2565ac88b44c256a54ba2f0/webcomment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 67, 3666, 67, 792, 67, 2704, 67, 3469, 12, 832, 734, 4672, 3536, 2479, 87, 392, 2699, 358, 326, 3981, 598, 3189, 29012, 2879, 598, 1599, 273, 532, 734, 3536, 2879, 273, 843, 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, 5066, 67, 3666, 67, 792, 67, 2704, 67, 3469, 12, 832, 734, 4672, 3536, 2479, 87, 392, 2699, 358, 326, 3981, 598, 3189, 29012, 2879, 598, 1599, 273, 532, 734, 3536, 2879, 273, 843, 67, ...
dialog.version_page.project().loadSourceTree()
dialog.version_page.project.loadSourceTree()
def changeBertosVersion(self):
c52326c3ff542f02e9c739a952f24077e8b4687f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9114/c52326c3ff542f02e9c739a952f24077e8b4687f/BEditingDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 38, 1051, 538, 1444, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 38, 1051, 538, 1444, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if isinstance(namespace, dict):
elif isinstance(namespace, dict):
def lookup(namespace, name): """ Looks for a variable in a namespace (an instance, a mapping, etc..) """ if hasattr(namespace, 'stl_lookup'): return namespace.stl_lookup(name) if isinstance(namespace, dict): if name in namespace: return namespace[name] try: value = getattr(namespace, name) except AttributeError: # XX...
85f505c667c2c2761bcc78771fb39315b22fa673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/85f505c667c2c2761bcc78771fb39315b22fa673/STL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 4937, 16, 508, 4672, 3536, 10176, 87, 364, 279, 2190, 316, 279, 1981, 261, 304, 791, 16, 279, 2874, 16, 5527, 838, 13, 3536, 309, 3859, 12, 4937, 16, 296, 334, 80, 67, 8664...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 4937, 16, 508, 4672, 3536, 10176, 87, 364, 279, 2190, 316, 279, 1981, 261, 304, 791, 16, 279, 2874, 16, 5527, 838, 13, 3536, 309, 3859, 12, 4937, 16, 296, 334, 80, 67, 8664...
elif request.form['do'][0] == 'unzip':
elif do == 'unzip':
def execute(pagename, request): """ Main dispatcher for the 'AttachFile' action. """ _ = request.getText msg = None if action_name in request.cfg.actions_excluded: msg = _('File attachments are not allowed in this wiki!') elif 'do' not in request.form: upload_form(pagename, request) elif request.form['do'][0] == 'save...
0b374a0e7f09a6bc8083ad52cb15f4654fa1108a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/0b374a0e7f09a6bc8083ad52cb15f4654fa1108a/AttachFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 9095, 1069, 16, 590, 4672, 3536, 12740, 7393, 364, 326, 296, 4761, 812, 11, 1301, 18, 3536, 389, 273, 590, 18, 588, 1528, 225, 1234, 273, 599, 309, 1301, 67, 529, 316, 590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9095, 1069, 16, 590, 4672, 3536, 12740, 7393, 364, 326, 296, 4761, 812, 11, 1301, 18, 3536, 389, 273, 590, 18, 588, 1528, 225, 1234, 273, 599, 309, 1301, 67, 529, 316, 590, ...
print dir(suiteobj._tests)
def run(): ''' Start a console version of this application. ''' global OUTDIR, CMD, TIMEOUT # Command line parser options. parser = optparse.OptionParser() parser.add_option("--level", "-l", dest="level", help="Set the level to test up to (default: 3)") parser.add_option("--command", "-c", dest="command", help="Command...
4f8cbfc9dbc5a4be0ec667d656112b8ea1193810 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6425/4f8cbfc9dbc5a4be0ec667d656112b8ea1193810/tester.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 9163, 3603, 279, 2983, 1177, 434, 333, 2521, 18, 9163, 2552, 8210, 4537, 16, 18052, 16, 24374, 468, 3498, 980, 2082, 702, 18, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 9163, 3603, 279, 2983, 1177, 434, 333, 2521, 18, 9163, 2552, 8210, 4537, 16, 18052, 16, 24374, 468, 3498, 980, 2082, 702, 18, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 20...
def motor_text(self,panel,attr): return pvText(panel, size=(100,-1), style=wx.ALIGN_RIGHT|wx.CENTER, as_string=True, pv=self.motor.get_pv(attr))
def motor_text(self,panel,attr): return pvText(panel, size=(100,-1), style=wx.ALIGN_RIGHT|wx.CENTER, as_string=True, pv=self.motor.get_pv(attr))
afe0af9ce20213d58b33e8c4b281e7f67e47c2f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12945/afe0af9ce20213d58b33e8c4b281e7f67e47c2f0/pv_multiple_callbacks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23573, 67, 955, 12, 2890, 16, 13916, 16, 1747, 4672, 327, 9770, 1528, 12, 13916, 16, 225, 963, 28657, 6625, 16, 17, 21, 3631, 2154, 33, 27226, 18, 26439, 67, 11847, 96, 27226, 18, 1983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23573, 67, 955, 12, 2890, 16, 13916, 16, 1747, 4672, 327, 9770, 1528, 12, 13916, 16, 225, 963, 28657, 6625, 16, 17, 21, 3631, 2154, 33, 27226, 18, 26439, 67, 11847, 96, 27226, 18, 1983...
if title: plt.title(title,fontsize=16)
def plot(subplot, data, title='', *args, **kwargs): mgr = plt.get_current_fig_manager() a,b = 0.75, 1.0 chessboard = np.array(([a,b]*16 + [b,a]*16)*16) chessboard.shape = 32,32 if isinstance(data, Group): group = data.base data = data[data.keys[0]] else: group = data data = data plt.imshow(chessboard, cmap=plt.cm.gray...
e02ec6ba73972ecb234700295bf10aa4a5906799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12213/e02ec6ba73972ecb234700295bf10aa4a5906799/display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 24523, 16, 501, 16, 2077, 2218, 2187, 380, 1968, 16, 2826, 4333, 4672, 13333, 273, 5451, 18, 588, 67, 2972, 67, 470, 67, 4181, 1435, 279, 16, 70, 273, 374, 18, 5877, 16, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 24523, 16, 501, 16, 2077, 2218, 2187, 380, 1968, 16, 2826, 4333, 4672, 13333, 273, 5451, 18, 588, 67, 2972, 67, 470, 67, 4181, 1435, 279, 16, 70, 273, 374, 18, 5877, 16, 40...
elif rd.find("Brcm7401 V0.0") != 0:
elif rd.find("Brcm7401 V0.0") != -1:
def __init__(self): self.device = "unknown" try: file = open("/proc/stb/info/model", "r") self.device = file.readline().strip() file.close() except: print "----------------" print "you should upgrade to new drivers for the hardware detection to work properly" print "----------------" print "fallback to detect hardware ...
d61aab3dbb4a66e74d008eab24c5be5d5b937adc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/d61aab3dbb4a66e74d008eab24c5be5d5b937adc/HardwareInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5964, 273, 315, 8172, 6, 775, 30, 585, 273, 1696, 2932, 19, 9381, 19, 334, 70, 19, 1376, 19, 2284, 3113, 315, 86, 7923, 365, 18, 5964, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5964, 273, 315, 8172, 6, 775, 30, 585, 273, 1696, 2932, 19, 9381, 19, 334, 70, 19, 1376, 19, 2284, 3113, 315, 86, 7923, 365, 18, 5964, 273, ...
sage: E=EllipticCurve('14a1')
sage: E = EllipticCurve('14a1')
def has_bad_reduction(self): r""" Return True if there is bad reduction.
d268d826e9ff15e8e9c26c0ba3dd27591f648207 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d268d826e9ff15e8e9c26c0ba3dd27591f648207/ell_local_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 8759, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 5570, 20176, 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, 711, 67, 8759, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 5570, 20176, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
l.error("Unexpected exception in GoalRecord.record:\n" "%s" % traceback.format_exc)
l.exception("Unexpected exception in GoalRecord.record")
def record(cls, goal_name, experiment_user): try: return cls._record(goal_name, experiment_user) except GoalType.DoesNotExist: if settings.DEBUG: raise l.warning("Can't find the GoalType named %s" % goal_name) except Exception, e: l.error("Unexpected exception in GoalRecord.record:\n" "%s" % traceback.format_exc)
a4abc5c3ab2bce477fe2a191bfefa08b542e09b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8053/a4abc5c3ab2bce477fe2a191bfefa08b542e09b3/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 6429, 16, 17683, 67, 529, 16, 8724, 67, 1355, 4672, 775, 30, 327, 2028, 6315, 3366, 12, 27354, 67, 529, 16, 8724, 67, 1355, 13, 1335, 4220, 287, 559, 18, 15264, 30, 309, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 6429, 16, 17683, 67, 529, 16, 8724, 67, 1355, 4672, 775, 30, 327, 2028, 6315, 3366, 12, 27354, 67, 529, 16, 8724, 67, 1355, 13, 1335, 4220, 287, 559, 18, 15264, 30, 309, 19...
avg = s/(len(values)*1.0) return avg
values.sort() median = values[len(values)/2] return median
def average(values): """ Return the average of the values, but ignore 0s as they signify a non-value. Also, None is returned if the average would be 0, because None is a special value that is ignored by PyChart. """ if len(values) == 0: avg = None else: values = [x for x in values if x != 0] # Skip 0s s = sum(values) i...
8f8ba5e85d8671111b2fabc32d3e1b81cceec335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8f8ba5e85d8671111b2fabc32d3e1b81cceec335/perf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8164, 12, 2372, 4672, 3536, 2000, 326, 8164, 434, 326, 924, 16, 1496, 2305, 374, 87, 487, 2898, 1573, 1164, 279, 1661, 17, 1132, 18, 8080, 16, 599, 353, 2106, 309, 326, 8164, 4102, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8164, 12, 2372, 4672, 3536, 2000, 326, 8164, 434, 326, 924, 16, 1496, 2305, 374, 87, 487, 2898, 1573, 1164, 279, 1661, 17, 1132, 18, 8080, 16, 599, 353, 2106, 309, 326, 8164, 4102, 506...
'presubmit_canned_checks', 'random', 're', 'subprocess', 'sys',
'presubmit_canned_checks', 'random', 're', 'subprocess', 'sys', 'time',
def testMembersChanged(self): self.mox.ReplayAll() members = [ 'AffectedFile', 'Change', 'DoPresubmitChecks', 'GitChange', 'GitAffectedFile', 'InputApi', 'ListRelevantPresubmitFiles', 'Main', 'NotImplementedException', 'OutputApi', 'ParseFiles', 'PresubmitExecuter', 'ScanSubDirs', 'SvnAffectedFile', 'SvnChange', 'cPick...
9629431a73e6e466ffc453ce998e917f81624639 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/9629431a73e6e466ffc453ce998e917f81624639/presubmit_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6918, 5033, 12, 2890, 4672, 365, 18, 81, 2409, 18, 26481, 1595, 1435, 4833, 273, 306, 296, 23775, 812, 2187, 296, 3043, 2187, 296, 3244, 12236, 373, 1938, 4081, 2187, 296, 11540, 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, 1842, 6918, 5033, 12, 2890, 4672, 365, 18, 81, 2409, 18, 26481, 1595, 1435, 4833, 273, 306, 296, 23775, 812, 2187, 296, 3043, 2187, 296, 3244, 12236, 373, 1938, 4081, 2187, 296, 11540, 3...
def __init__(self,redland_model,resource,node): self.model=redland_model
def __init__(self,resource,node):
def __init__(self,redland_model,resource,node): self.model=redland_model self.name=resource.split('#')[1] self.resource=resource if (type(node)==RDF.Node): self.rdf_node=node elif (type(node)==Node): self.xml_node=node
9a7d3b3df24875c370cf286441782c1a3ea3653a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2488/9a7d3b3df24875c370cf286441782c1a3ea3653a/OWL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3146, 16, 2159, 4672, 365, 18, 529, 33, 3146, 18, 4939, 2668, 7, 6134, 63, 21, 65, 365, 18, 3146, 33, 3146, 309, 261, 723, 12, 2159, 13, 631, 30137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3146, 16, 2159, 4672, 365, 18, 529, 33, 3146, 18, 4939, 2668, 7, 6134, 63, 21, 65, 365, 18, 3146, 33, 3146, 309, 261, 723, 12, 2159, 13, 631, 30137, ...
kaa.signals["shutdown"].connect(lambda file: os.unlink(file), address)
kaa.signals["shutdown"].connect_weak(self.close)
def __init__(self, address): if type(address) in types.StringTypes: if address.find('/') == -1: # create socket in kaa temp dir address = '%s/%s' % (kaa.TEMP, address) if os.path.exists(address): # maybe a server is already running at this address, test it try: s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.c...
035911b84b46edf55b26fb5895c40100500b8ba5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/035911b84b46edf55b26fb5895c40100500b8ba5/ipc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1758, 4672, 309, 618, 12, 2867, 13, 316, 1953, 18, 780, 2016, 30, 309, 1758, 18, 4720, 2668, 2473, 13, 422, 300, 21, 30, 468, 752, 2987, 316, 417, 7598...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1758, 4672, 309, 618, 12, 2867, 13, 316, 1953, 18, 780, 2016, 30, 309, 1758, 18, 4720, 2668, 2473, 13, 422, 300, 21, 30, 468, 752, 2987, 316, 417, 7598...
dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR ,message_format = message ,buttons=gtk.BUTTONS_OK) dlg.run() dlg.destroy()
dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR ,message_format = message ,buttons=gtk.BUTTONS_OK) dlg.run() dlg.destroy()
def show_error_message(message): dlg = gtk.MessageDialog(type=gtk.MESSAGE_ERROR ,message_format = message ,buttons=gtk.BUTTONS_OK) dlg.run() dlg.destroy()
b386066350541b957c454fe7975d4ad8f9f06847 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2324/b386066350541b957c454fe7975d4ad8f9f06847/hocr-gtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1636, 67, 2150, 12, 2150, 4672, 25840, 273, 22718, 18, 1079, 6353, 12, 723, 33, 4521, 79, 18, 8723, 67, 3589, 269, 2150, 67, 2139, 273, 883, 269, 16016, 33, 4521, 79, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1636, 67, 2150, 12, 2150, 4672, 25840, 273, 22718, 18, 1079, 6353, 12, 723, 33, 4521, 79, 18, 8723, 67, 3589, 269, 2150, 67, 2139, 273, 883, 269, 16016, 33, 4521, 79, 18, 2...
srv = Server(s1)
srv = Server(s1, debug)
def _start_child(): # Create socket pair to communicate (s0, s1) = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM, 0) # Spawn a child that will run in a loop pid = os.fork() if pid: s1.close() return (s0, pid) try: s0.close() srv = Server(s1) #unshare.unshare(unshare.CLONE_NEWNET) except BaseException, e: s = "S...
7f75ea328e940ebcae216cfd19befed9d50c6ece /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8495/7f75ea328e940ebcae216cfd19befed9d50c6ece/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 3624, 13332, 468, 1788, 2987, 3082, 358, 15541, 261, 87, 20, 16, 272, 21, 13, 273, 2987, 18, 7814, 6017, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 3624, 13332, 468, 1788, 2987, 3082, 358, 15541, 261, 87, 20, 16, 272, 21, 13, 273, 2987, 18, 7814, 6017, 12, 7814, 18, 6799, 67, 10377, 60, 16, 2987, 18, 3584, 3507, 6...
SAGE_SERVER = os.environ['SAGE_SERVER'] + '/hg/'
SAGE_SERVER = os.environ['SAGE_SERVER'].strip('/') + '/hg'
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository).
fcd5409a962becc2431bf6bcb0d42183ea8f5ad4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/fcd5409a962becc2431bf6bcb0d42183ea8f5ad4/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
"""line-block: * whitespace (including linebreaks) is significant * inline markup is supported. * serif typeface """ self.body.append('\n{\\raggedright{}') self.literal_whitespace += 1
if isinstance(node.parent, nodes.line_block): self.body.append('\\item[]\n' '\\begin{DUlineblock}{\\DUlineblockindent}\n') else: self.body.append('\n\\begin{DUlineblock}{0em}\n')
def visit_line_block(self, node): """line-block: * whitespace (including linebreaks) is significant * inline markup is supported. * serif typeface """ self.body.append('\n{\\raggedright{}') self.literal_whitespace += 1
dd0771cf885ff09f6722b0a4a2e7678eb07e67de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/dd0771cf885ff09f6722b0a4a2e7678eb07e67de/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1369, 67, 2629, 12, 2890, 16, 756, 4672, 3536, 1369, 17, 2629, 30, 380, 7983, 261, 31348, 980, 29292, 13, 353, 14177, 380, 6370, 9813, 353, 3260, 18, 380, 703, 430, 618, 865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 1369, 67, 2629, 12, 2890, 16, 756, 4672, 3536, 1369, 17, 2629, 30, 380, 7983, 261, 31348, 980, 29292, 13, 353, 14177, 380, 6370, 9813, 353, 3260, 18, 380, 703, 430, 618, 865,...
from itools.xapian import Catalog
def search(self, catalog): from itools.xapian import Catalog
9a13354a6fbc796e1b117174cfda18b4c9ddb6e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/9a13354a6fbc796e1b117174cfda18b4c9ddb6e1/queries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 6222, 4672, 628, 518, 8192, 18, 92, 2425, 304, 1930, 14953, 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, 1623, 12, 2890, 16, 6222, 4672, 628, 518, 8192, 18, 92, 2425, 304, 1930, 14953, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for edge in bridges:
for i, edge in enumerate(bridges):
def removeEdges(map, edgeLabels): result = 0 bridges = [] for edgeLabel in edgeLabels: edge = map.edge(edgeLabel) if edge.isBridge(): bridges.append(edge) elif map.mergeFaces(edge.dart()): result += 1 while bridges: for edge in bridges: dart = edge.dart() if dart.endNode().degree() == 1: dart.nextAlpha() break if dar...
6ebd230ed9ab7da864a27f038a6cedfe41009506 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/6ebd230ed9ab7da864a27f038a6cedfe41009506/maputils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 10697, 12, 1458, 16, 3591, 5888, 4672, 563, 273, 374, 225, 324, 1691, 2852, 273, 5378, 364, 3591, 2224, 316, 3591, 5888, 30, 3591, 273, 852, 18, 7126, 12, 7126, 2224, 13, 309, 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, 1206, 10697, 12, 1458, 16, 3591, 5888, 4672, 563, 273, 374, 225, 324, 1691, 2852, 273, 5378, 364, 3591, 2224, 316, 3591, 5888, 30, 3591, 273, 852, 18, 7126, 12, 7126, 2224, 13, 309, 35...
font-family: monospace;
font-family: courier, monospace; font-size:12pt;
def edit_window(self, worksheet): """ Return a window for editing worksheet.
b16cc453e51066a4fc3ea3e19899f2836e1e4270 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b16cc453e51066a4fc3ea3e19899f2836e1e4270/notebook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 5668, 12, 2890, 16, 13622, 4672, 3536, 2000, 279, 2742, 364, 15755, 13622, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3874, 67, 5668, 12, 2890, 16, 13622, 4672, 3536, 2000, 279, 2742, 364, 15755, 13622, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.camNode.setCullCenter(NodePath())
for cam in base.camList: cam.node().setCullCenter(NodePath())
def oobeCull(self): """ While in OOBE mode (see above), cull the viewing frustum as if it were still attached to our original camera. This allows us to visualize the effectiveness of our bounding volumes. """ # First, make sure OOBE mode is enabled. try: if not self.oobeMode: self.oobe() except: self.oobe()
22e6577ad1f199ef24520604d54593ba8d1257c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/22e6577ad1f199ef24520604d54593ba8d1257c4/ShowBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 947, 73, 39, 420, 12, 2890, 4672, 3536, 21572, 316, 531, 5704, 41, 1965, 261, 5946, 5721, 3631, 276, 420, 326, 1476, 310, 3812, 31801, 487, 309, 518, 4591, 4859, 7495, 358, 3134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 947, 73, 39, 420, 12, 2890, 4672, 3536, 21572, 316, 531, 5704, 41, 1965, 261, 5946, 5721, 3631, 276, 420, 326, 1476, 310, 3812, 31801, 487, 309, 518, 4591, 4859, 7495, 358, 3134, ...
def testBasic(self):
def testBasic1(self):
def testBasic(self): # connects smtp = smtplib.SMTP("localhost", 9091) smtp.sock.close()
c216b484c34a826e47aa0b25a453091ad1cc1e3b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/c216b484c34a826e47aa0b25a453091ad1cc1e3b/test_smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8252, 21, 12, 2890, 4672, 468, 23441, 17660, 273, 272, 1010, 6673, 18, 55, 14636, 2932, 13014, 3113, 2468, 5908, 21, 13, 17660, 18, 15031, 18, 4412, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8252, 21, 12, 2890, 4672, 468, 23441, 17660, 273, 272, 1010, 6673, 18, 55, 14636, 2932, 13014, 3113, 2468, 5908, 21, 13, 17660, 18, 15031, 18, 4412, 1435, 2, -100, -100, -100, -100...
HTMLStyledTextCtrlMix.OnUpdateUI(self, event)
if Preferences.braceHighLight: HTMLStyledTextCtrlMix.OnUpdateUI(self, event) class CPPSourceView(EditorStyledTextCtrl, CPPStyledTextCtrlMix): viewName = 'Source' def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_CPPSOURCEVIEW, model, (('Refresh', self.OnRefresh, '-', keyDefs['Refresh...
def OnUpdateUI(self, event): # don't update if not fully initialised if hasattr(self, 'pageIdx'): self.updateViewState() HTMLStyledTextCtrlMix.OnUpdateUI(self, event)
dd83c007fc98ddd8b0f73a6108e8573f495cb886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd83c007fc98ddd8b0f73a6108e8573f495cb886/PySourceView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 5370, 12, 2890, 16, 871, 4672, 468, 2727, 1404, 1089, 309, 486, 7418, 30372, 309, 3859, 12, 2890, 16, 296, 2433, 4223, 11, 4672, 365, 18, 2725, 1767, 1119, 1435, 3982, 24273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 1891, 5370, 12, 2890, 16, 871, 4672, 468, 2727, 1404, 1089, 309, 486, 7418, 30372, 309, 3859, 12, 2890, 16, 296, 2433, 4223, 11, 4672, 365, 18, 2725, 1767, 1119, 1435, 3982, 24273,...
def initialize(self, obj, input_size = None, target_size = None, **init):
def _instance_initialize(self, obj, input_size = None, target_size = None, **init):
def initialize(self, obj, input_size = None, target_size = None, **init): # obj is an "instance" of this module holding values for each member and # functions for each method super(RegressionLayer, self).initialize(obj, **init) # here we call the superclass's initialize method, which takes all the name: value # pairs i...
3679d8e672ed82205d9c736012026700e3d8b81d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/3679d8e672ed82205d9c736012026700e3d8b81d/test_wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1336, 67, 11160, 12, 2890, 16, 1081, 16, 810, 67, 1467, 273, 599, 16, 1018, 67, 1467, 273, 599, 16, 2826, 2738, 4672, 468, 1081, 353, 392, 315, 1336, 6, 434, 333, 1605, 19918, 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, 389, 1336, 67, 11160, 12, 2890, 16, 1081, 16, 810, 67, 1467, 273, 599, 16, 1018, 67, 1467, 273, 599, 16, 2826, 2738, 4672, 468, 1081, 353, 392, 315, 1336, 6, 434, 333, 1605, 19918, 9...
taxep = self.pool.get('res.partner').browse(cr, uid, partner_id).property_account_tax
taxep = None if partner_id: taxep = self.pool.get('res.partner').browse(cr, uid, partner_id).property_account_tax
def product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True): if partner_id: lang=self.pool.get('res.partner').read(cr, uid, [partner_id])[0]['lang'] context = {'lang':lang} if not product: return {'value': {'price_unit': 0...
aaf4312a7b389e9424ea73e9650f4d9d6393dfa0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/aaf4312a7b389e9424ea73e9650f4d9d6393dfa0/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 846, 335, 5449, 16, 3017, 16, 26667, 33, 20, 16, 582, 362, 33, 8381, 16, 26667, 67, 89, 538, 33, 20, 16, 582, ...
g = Graphics()
g = Graphics(xmin=min(xdata), xmax=max(xdata), ymin=min(ydata), ymax=max(ydata))
def _from_xdata_ydata(self, xdata, ydata, coerce, options): if coerce: xdata, ydata = self._coerce(xdata, ydata) g = Graphics() g._Graphics__objects.append(GraphicPrimitive_Point(xdata, ydata, options)) try: g._extend_axes(min(xdata), max(xdata), min(ydata), max(ydata)) except ValueError: pass return g
6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 92, 892, 67, 93, 892, 12, 2890, 16, 25363, 16, 29175, 16, 12270, 16, 702, 4672, 309, 12270, 30, 25363, 16, 29175, 273, 365, 6315, 2894, 2765, 12, 92, 892, 16, 29175, 1...
print "clip 1 offset : %s" %end_line.get_offset()
def copy(self,start,stop,bullet=None): #Now, we take care of the normal, cross application clipboard text = start.get_text(stop) if text and bullet: #we replace the arrow by the original "-" newtext = text.replace(bullet, "-") self.description = newtext elif text: self.description = text end_line = start.copy() #we ta...
4a376b220f599dbe3f9d24b4ac59cc48af54694e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/4a376b220f599dbe3f9d24b4ac59cc48af54694e/clipboard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 1937, 16, 5681, 16, 70, 19994, 33, 7036, 4672, 468, 8674, 16, 732, 4862, 7671, 434, 326, 2212, 16, 6828, 2521, 20304, 977, 273, 787, 18, 588, 67, 955, 12, 5681, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 1937, 16, 5681, 16, 70, 19994, 33, 7036, 4672, 468, 8674, 16, 732, 4862, 7671, 434, 326, 2212, 16, 6828, 2521, 20304, 977, 273, 787, 18, 588, 67, 955, 12, 5681, 1...
return cmp((f[0].degree(),f[1]), (g[0].degree(),g[1]))
return cmp((f[0].degree(),f[1],f[0]), (g[0].degree(),g[1],g[0]))
def _cmp(f,g): try: #return cmp(f[0].degree()*f[1], g[0].degree()*g[1]) return cmp((f[0].degree(),f[1]), (g[0].degree(),g[1])) except (AttributeError, NotImplementedError): return cmp(f[0], g[0])
8629607c06e01dbd977bf83a645679f98470253d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8629607c06e01dbd977bf83a645679f98470253d/factorization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9625, 12, 74, 16, 75, 4672, 775, 30, 468, 2463, 9411, 12, 74, 63, 20, 8009, 21361, 1435, 14, 74, 63, 21, 6487, 314, 63, 20, 8009, 21361, 1435, 14, 75, 63, 21, 5717, 2463, 9411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 12, 74, 16, 75, 4672, 775, 30, 468, 2463, 9411, 12, 74, 63, 20, 8009, 21361, 1435, 14, 74, 63, 21, 6487, 314, 63, 20, 8009, 21361, 1435, 14, 75, 63, 21, 5717, 2463, 9411...
for set1 in self.sets + []:
for set1 in self.sets + [[]]:
def test_marshalling(self): """intbitset - marshalling""" for set1 in self.sets + []: self.assertEqual(intbitset(set1), intbitset().fastload((intbitset(set1).fastdump()))) for set1 in self.sets + []: self.assertEqual(intbitset(set1, trailing_bits=True), intbitset().fastload(intbitset(set1, trailing_bits=True).fastdump(...
d4a1d7e3f52dbeaebf8d74a7a99b4870caa65e1a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/d4a1d7e3f52dbeaebf8d74a7a99b4870caa65e1a/intbitset_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12201, 310, 12, 2890, 4672, 3536, 474, 3682, 542, 300, 1833, 310, 8395, 364, 444, 21, 316, 365, 18, 4424, 397, 306, 8526, 14542, 365, 18, 11231, 5812, 12, 474, 3682, 542, 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, 67, 12201, 310, 12, 2890, 4672, 3536, 474, 3682, 542, 300, 1833, 310, 8395, 364, 444, 21, 316, 365, 18, 4424, 397, 306, 8526, 14542, 365, 18, 11231, 5812, 12, 474, 3682, 542, 12,...
and the isomorphism is then checked over that field
and the isomorphism is then checked over that field.
def is_isomorphic(self, other, field=None): """ Returns whether or not self is isomorphic to other, i.e. they define the same curve over the same basering.
b731b462902660c0112a8494ebc6f58ef36102b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b731b462902660c0112a8494ebc6f58ef36102b5/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 291, 362, 18435, 12, 2890, 16, 1308, 16, 652, 33, 7036, 4672, 3536, 2860, 2856, 578, 486, 365, 353, 353, 362, 18435, 358, 1308, 16, 277, 18, 73, 18, 2898, 4426, 326, 1967, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 291, 362, 18435, 12, 2890, 16, 1308, 16, 652, 33, 7036, 4672, 3536, 2860, 2856, 578, 486, 365, 353, 353, 362, 18435, 358, 1308, 16, 277, 18, 73, 18, 2898, 4426, 326, 1967, 8...
""" used to reply to a file transfer invitation. @param iCookie: the invitation cookie of the initial invitation @param accept: whether or not you accept this transfer, 1 = yes, 0 = no, default = 1. @return: A Deferred, the callback for which will be fired when the user responds with the transfer information. The cal...
""" used to reply to a file transfer invitation. @param iCookie: the invitation cookie of the initial invitation @param accept: whether or not you accept this transfer, 1 = yes, 0 = no, default = 1. @return: A Deferred, the callback for which will be fired when the user responds with the transfer information. The cal...
def fileInvitationReply(self, iCookie, accept=1): """ used to reply to a file transfer invitation.
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 19896, 7817, 12, 2890, 16, 277, 6151, 16, 2791, 33, 21, 4672, 3536, 1399, 358, 4332, 358, 279, 585, 7412, 26441, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 19896, 7817, 12, 2890, 16, 277, 6151, 16, 2791, 33, 21, 4672, 3536, 1399, 358, 4332, 358, 279, 585, 7412, 26441, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if isinstance(code, str):
if isinstance(code, basestring):
def label(code): if isinstance(code, str): return ('~', 0, code) # built-in functions ('~' sorts at the end) else: return (code.co_filename, code.co_firstlineno, code.co_name)
1c5a98a360093a99136f2a87251aa7c53b87170b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/1c5a98a360093a99136f2a87251aa7c53b87170b/cProfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1433, 12, 710, 4672, 309, 1549, 12, 710, 16, 10699, 4672, 327, 7707, 98, 2187, 374, 16, 981, 13, 565, 468, 6650, 17, 267, 4186, 7707, 20206, 18524, 622, 326, 679, 13, 469, 30, 327, 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, 1433, 12, 710, 4672, 309, 1549, 12, 710, 16, 10699, 4672, 327, 7707, 98, 2187, 374, 16, 981, 13, 565, 468, 6650, 17, 267, 4186, 7707, 20206, 18524, 622, 326, 679, 13, 469, 30, 327, 2...
except: raise ValueError, "Argument base_ring (= %s) is not compatible " + \ "with the base ring (= %s)." % (base_ring, self.base_ring())
except TypeError: raise ValueError, "Argument base_ring (= %s) is not compatible "%base_ring + \ "with the base ring (= %s)."%self.base_ring()
def span_of_basis(self, basis, base_ring=None, check=True, already_echelonized=False): r""" Return the free R-module with the given basis, where R is the base ring of self or user specified base_ring.
e486bb9013bae5a0f10562921c7ce3e5fa30872c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e486bb9013bae5a0f10562921c7ce3e5fa30872c/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 67, 792, 67, 23774, 12, 2890, 16, 10853, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 436, 8395, 2000, 326, 4843, 534, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4548, 67, 792, 67, 23774, 12, 2890, 16, 10853, 16, 1026, 67, 8022, 33, 7036, 16, 866, 33, 5510, 16, 1818, 67, 8987, 292, 265, 1235, 33, 8381, 4672, 436, 8395, 2000, 326, 4843, 534, 1...
return urllib.parsequote(component[:31], safe='')
return urllib.parse.quote(component[:31], safe='')
def _pncomp2url(component): # We want to quote slashes return urllib.parsequote(component[:31], safe='')
18005a569d4b246fab9ea6036df791ea7dbb7e7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/18005a569d4b246fab9ea6036df791ea7dbb7e7c/macurl2path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7449, 2919, 22, 718, 12, 4652, 4672, 468, 1660, 2545, 358, 3862, 19034, 327, 11527, 18, 2670, 18, 6889, 12, 4652, 10531, 6938, 6487, 4183, 2218, 6134, 225, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7449, 2919, 22, 718, 12, 4652, 4672, 468, 1660, 2545, 358, 3862, 19034, 327, 11527, 18, 2670, 18, 6889, 12, 4652, 10531, 6938, 6487, 4183, 2218, 6134, 225, 2, -100, -100, -100, -100...
self.toolbar.set_property('visible', self.toolbar_show)
def __init__(self):
d58c579809d9403dea67a165875ccd600372f4f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d58c579809d9403dea67a165875ccd600372f4f3/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
raise RuntimeError, "Data paths, starting ids and ending ids need "\ +"to have the same length."
raise RuntimeError("Data paths, starting ids and ending ids need "\ +"to have the same length.")
def filter_pixels(obj, paths, start_ids, end_ids, **kwargs): """ This function filters a set of pixels based on starting and ending IDs for each data path. Parameters: ---------- -> obj is a SOM that needs to be filtered -> paths is a list of tuples containing the NeXus data paths and signals -> start_ids is a list of...
29a15f400db9ebd08a8a99ae7637655a9392d7b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/29a15f400db9ebd08a8a99ae7637655a9392d7b2/hlr_filter_pixels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 21084, 12, 2603, 16, 2953, 16, 787, 67, 2232, 16, 679, 67, 2232, 16, 2826, 4333, 4672, 3536, 1220, 445, 3415, 279, 444, 434, 8948, 2511, 603, 5023, 471, 11463, 7115, 364, 151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 67, 21084, 12, 2603, 16, 2953, 16, 787, 67, 2232, 16, 679, 67, 2232, 16, 2826, 4333, 4672, 3536, 1220, 445, 3415, 279, 444, 434, 8948, 2511, 603, 5023, 471, 11463, 7115, 364, 151...
long_description="Includes access to much of the Win32 API, the " "ability to create and use COM objects, and the " "Pythonwin environment",
long_description="Includes access to much of the Win32 API, the\n" "ability to create and use COM objects, and the\n" "Pythonwin environment.",
def convert_optional_data_files(files): ret = [] for file in files: try: temp = convert_data_files([file]) except RuntimeError, details: if not str(details).startswith("No file"): raise log.info('NOTE: Optional file %s not found - skipping' % file) else: ret.append(temp[0]) return ret
5043c7fea2116f72c979ee38d3c918033572ccc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/5043c7fea2116f72c979ee38d3c918033572ccc6/setup_win32all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 10444, 67, 892, 67, 2354, 12, 2354, 4672, 325, 273, 5378, 364, 585, 316, 1390, 30, 775, 30, 1906, 273, 1765, 67, 892, 67, 2354, 3816, 768, 5717, 1335, 7265, 16, 3189, 30, 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, 1765, 67, 10444, 67, 892, 67, 2354, 12, 2354, 4672, 325, 273, 5378, 364, 585, 316, 1390, 30, 775, 30, 1906, 273, 1765, 67, 892, 67, 2354, 3816, 768, 5717, 1335, 7265, 16, 3189, 30, 3...
if __name__=="__main__":
if __name__ == "__main__":
def div_ncerr(left, right, **kwargs): """ This function divides two objects (SOM, SO or tuple[val,val_err2]) and returns the result of the division in an SOM. The function does not handle the case of tuple/tuple. Parameters: ---------- -> left Object on the left of the division sign -> right Object on the right of th...
8b5bb0bc0b961242500a156041e567f572942fc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8b5bb0bc0b961242500a156041e567f572942fc3/hlr_div_ncerr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3739, 67, 14202, 370, 12, 4482, 16, 2145, 16, 2826, 4333, 4672, 3536, 1220, 445, 3739, 4369, 2795, 2184, 261, 55, 1872, 16, 7460, 578, 3193, 63, 1125, 16, 1125, 67, 370, 22, 5717, 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, 3739, 67, 14202, 370, 12, 4482, 16, 2145, 16, 2826, 4333, 4672, 3536, 1220, 445, 3739, 4369, 2795, 2184, 261, 55, 1872, 16, 7460, 578, 3193, 63, 1125, 16, 1125, 67, 370, 22, 5717, 471,...
self.flush() self.stream.close() StreamHandler.close(self)
if self.stream: self.flush() self.stream.close() StreamHandler.close(self) self.stream = None
def close(self): """ Closes the stream. """ self.flush() self.stream.close() StreamHandler.close(self)
d00f51d3eb4b2b1e24f85499b017bd1975f762fb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/d00f51d3eb4b2b1e24f85499b017bd1975f762fb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 22442, 2420, 326, 1407, 18, 3536, 365, 18, 11330, 1435, 365, 18, 3256, 18, 4412, 1435, 25262, 18, 4412, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 22442, 2420, 326, 1407, 18, 3536, 365, 18, 11330, 1435, 365, 18, 3256, 18, 4412, 1435, 25262, 18, 4412, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, ...
dZNqAVhfXr/7//9dW8NVi+yD7BCLRRRTVleLQBaLPXg0iUX4M/a79u7+d0PAOXUIdQfHRQgBDFZo gFYRY9/+9lZWUwUM/9eD+P8p/A+FiG182s23P/gDdRshGP91EOgV/wD2bffmcagPhApB67EfUHQJ UJn9sW176y9cGBjxUwxqAv9VGIW12bLxwC5nEGbW8GTsdSUuwmhUMOlTt/ue7wH0OwdZDvwkdAoT vb37yAONRfBQ3GaLSAoDQAxRYdj70Ht0Sn38GQNQ4XVvpqQ7+HUJC4idhy+U7psOVmoEVhCghIs9 iN/X4CKQhg9o...
dZNqAVhfXu/u/v9dW8NVi+yD7AxTVleLPXguM/a7OsA5dQjt7d39dQfHRQgBDFZogE0RVlZTBfsz 9v8M/9eD+P+JRfwPhYhkfPgDdRshb67dfCD/dRDoHv8AaJ8PhAO2Z992QeuxH1B0CVCQ6y9cIC3b H9sY6lMMagL/VSDowC7GXlibZxBmdSUuu/luDU9oVCfpUwHkOwePfLvvWQ7sJHQKEwONRfT3Wdhu bnUcAhg6dH38Et5Mw7ADQKQ0FHUJ3TfD6wuIlncOVmoEVhCgwUVoMBCIdIl2rW2+rw9hOII86yal K9u2NdsCUyqc...
def get_exe_bytes (self): import base64 return base64.decodestring(EXEDATA)
5302a0a57a9c42b0de4dfd5ad2ac5bc56180c9a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5302a0a57a9c42b0de4dfd5ad2ac5bc56180c9a1/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 1026, 1105, 327, 1026, 1105, 18, 4924, 1145, 371, 12, 2294, 2056, 3706, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14880, 67, 3890, 261, 2890, 4672, 1930, 1026, 1105, 327, 1026, 1105, 18, 4924, 1145, 371, 12, 2294, 2056, 3706, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'test_singlebond_stretch_H_H', 'test_singlebond_stretch_H2Al_SiH3', 'test_singlebond_stretch_H3Si_SiH3', 'test_singlebond_stretch_Cl_AlH2', 'test_singlebond_stretch_F_SiH3', 'test_reordering_jigs_or_chunks_03_thermo_anchor_reordering', 'test_temperature_tests_001_two_methanes_9A_apart_vdw_5', 'test_singlebond_stretch_F...
def lastLineOfReadings(f): lines = readlines(f) n = None for i in range(len(lines)): if lines[i].startswith("# Done:"): n = i - 1 break if n == None: return None return map(string.atof, lines[n].split())
0b789e7ec79dfae45d6cb15c2976c03b0322f72f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0b789e7ec79dfae45d6cb15c2976c03b0322f72f/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31661, 951, 1994, 899, 12, 74, 4672, 2362, 273, 17546, 12, 74, 13, 290, 273, 599, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 309, 2362, 63, 77, 8009, 17514, 1918, 2932, 7, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31661, 951, 1994, 899, 12, 74, 4672, 2362, 273, 17546, 12, 74, 13, 290, 273, 599, 364, 277, 316, 1048, 12, 1897, 12, 3548, 3719, 30, 309, 2362, 63, 77, 8009, 17514, 1918, 2932, 7, 86...
repos = self.env.get_repository() try: chgset = repos.get_changeset(rev)
cursor = formatter.db.cursor() cursor.execute('SELECT message FROM revision WHERE rev=%s', (rev,)) row = cursor.fetchone() if row:
def _format_changeset_link(self, formatter, ns, chgset, label, fullmatch=None): intertrac = formatter.shorthand_intertrac_helper(ns, chgset, label, fullmatch) if intertrac: return intertrac sep = chgset.find('/') if sep > 0: rev, path = chgset[:sep], chgset[sep:] else: rev, path = chgset, None repos = self.env.get_repo...
05e084146e4d0c9d798f18fda3828b1cd5f332da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/05e084146e4d0c9d798f18fda3828b1cd5f332da/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 6329, 278, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 462, 75, 542, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 6329, 278, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 462, 75, 542, 16, 1433, 16, 1983, 1916, 33, 7036, 4672, 1554, 313, 1077, 273, 4453, 18, 674, 15830, 67, 2761, 31...
<form> form that has a focused object """ retval = _fl_get_focus_object(form)
<pForm> form that has a focused object """ retval = _fl_get_focus_object(pForm)
def fl_get_focus_object(form): """ fl_get_focus_object(form) -> object reference Obtains the object that has the focus on a form <form> form that has a focused object """ retval = _fl_get_focus_object(form) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 13923, 67, 1612, 12, 687, 4672, 3536, 1183, 67, 588, 67, 13923, 67, 1612, 12, 687, 13, 317, 733, 2114, 19659, 16598, 326, 733, 716, 711, 326, 7155, 603, 279, 646, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 13923, 67, 1612, 12, 687, 4672, 3536, 1183, 67, 588, 67, 13923, 67, 1612, 12, 687, 13, 317, 733, 2114, 19659, 16598, 326, 733, 716, 711, 326, 7155, 603, 279, 646, ...
def getPriorityWeights(self, pkgs): set = {} lower = None for pkg in pkgs: priority = self.getPriority(pkg) if lower is None or priority < lower: lower = priority set[pkg] = priority for pkg in set: set[pkg] = -(set[pkg] - lower)*10 return set
def getPriority(self, pkg): priority = self._priorities.get(pkg) if priority is None: self._priorities[pkg] = priority = pkg.getPriority() return priority
2ea21c157577a37e2ff2b7a187ee3525f5d9ba89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/2ea21c157577a37e2ff2b7a187ee3525f5d9ba89/transaction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25332, 12, 2890, 16, 3475, 4672, 4394, 273, 365, 6315, 17927, 1961, 18, 588, 12, 10657, 13, 309, 4394, 353, 599, 30, 365, 6315, 17927, 1961, 63, 10657, 65, 273, 4394, 273, 3475, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25332, 12, 2890, 16, 3475, 4672, 4394, 273, 365, 6315, 17927, 1961, 18, 588, 12, 10657, 13, 309, 4394, 353, 599, 30, 365, 6315, 17927, 1961, 63, 10657, 65, 273, 4394, 273, 3475, 18, 58...
self.set_size_request (250, 100)
self.set_size_request (320, 170)
def __init__ (self): gtk.Window.__init__ (self)
41b89758ec2d2f58d1efbd5eafaac429d9f77f4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2406/41b89758ec2d2f58d1efbd5eafaac429d9f77f4e/lang.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 22718, 18, 3829, 16186, 2738, 972, 261, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 22718, 18, 3829, 16186, 2738, 972, 261, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self._item.setDirty(dirty, name, self, True)
item.setDirty(dirty, name, self, True) item._fireChanges('remove', name)
def _removeRef(self, name, other):
4856b392f8545919cc4e366eadb2c498a6524750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/4856b392f8545919cc4e366eadb2c498a6524750/Values.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 1957, 12, 2890, 16, 508, 16, 1308, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 1957, 12, 2890, 16, 508, 16, 1308, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
the computed saturation bound being too high, then True indicates that the subgroup is saturated at `\emph{all}`
the computed saturation bound being too high, then ``True`` indicates that the subgroup is saturated at *all*
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
inline = isinstance(node.parent, nodes.TextElement)
is_inline = self.is_inline(node)
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) # alignment defaults: if not 'align' in attrs: # Set default align of image i...
2d750f5affec884a0b0d072da3ce5f196f8ffc3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/2d750f5affec884a0b0d072da3ce5f196f8ffc3d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
self.shape = scale_rotate_poly(poly, 1, item.rot)
self.shape = list(scale_rotate_poly(poly, 1, item.rot))
def __init__(self, item): self.color = item.color self.center = self.pos = item.pos.asList() self.size = tuple(x*2 for x in item.size.asList()) self.radius = math.sqrt((self.size[0]/2)**2 + (self.size[1]/2)**2) poly = tuple(convertBoxtoPoly(item.pos,self.size)) self.rect = (item.pos[0]-self.size[0]/2, item.pos[1]-self....
829ef4073836bdda59b8887ebe8133cadb6c07aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/829ef4073836bdda59b8887ebe8133cadb6c07aa/game.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 761, 4672, 365, 18, 3266, 273, 761, 18, 3266, 365, 18, 5693, 273, 365, 18, 917, 273, 761, 18, 917, 18, 345, 682, 1435, 365, 18, 1467, 273, 3193, 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, 2738, 972, 12, 2890, 16, 761, 4672, 365, 18, 3266, 273, 761, 18, 3266, 365, 18, 5693, 273, 365, 18, 917, 273, 761, 18, 917, 18, 345, 682, 1435, 365, 18, 1467, 273, 3193, 12, ...
if (origsuffix==".dll" and "NOVERSION" not in OPTS and not sys.platform.startswith("win") and not RTDIST):
if (origsuffix==".dll" and "MODULE" not in OPTS and not sys.platform.startswith("win") and not RTDIST):
ProgressOutput(progress, "Building package from pdef file", infile)
1bc05813c7712887598e02fbbf180a5fbc26199f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/1bc05813c7712887598e02fbbf180a5fbc26199f/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 10980, 1447, 12, 8298, 16, 315, 16713, 2181, 628, 293, 536, 585, 3113, 14568, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 10980, 1447, 12, 8298, 16, 315, 16713, 2181, 628, 293, 536, 585, 3113, 14568, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
navlabel.set_markup("<b>_('Navigation')</b>")
navlabel.set_markup('<b>' + _('Navigation') + '</b>')
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs:
d92ca7acc3759af0a364169a3c92fca3d6461efe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/d92ca7acc3759af0a364169a3c92fca3d6461efe/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 1...
"""returns power management settings
""" Returns the power management settings
def getPowermanagement(self): """returns power management settings
05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/05b40a3d0b9e46299ea3a7ddfd32be4a1e2ba258/iwlibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 543, 1035, 5637, 12, 2890, 4672, 3536, 6154, 7212, 11803, 1947, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1689, 543, 1035, 5637, 12, 2890, 4672, 3536, 6154, 7212, 11803, 1947, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _init_coll_menu_help_Items(self, parent):
def _init_menu_help(self, parent):
def _init_coll_menu_file_Items(self, parent): # generated method, don't edit
bec16c877ba7f9067fe383ae35d9db0509ed2c7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5000/bec16c877ba7f9067fe383ae35d9db0509ed2c7f/ui_frm_main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 12910, 67, 5414, 67, 768, 67, 3126, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 12910, 67, 5414, 67, 768, 67, 3126, 12, 2890, 16, 982, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
t[0] = createList( 'stmts', t)
t[0] = createListleft( t )
def p_stmts(t): ''' stmts : stmts stmt | stmt ''' t[0] = createList( 'stmts', t)
1a8e540808c326b13fcc3d7ecf1906c80d3bce53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1a8e540808c326b13fcc3d7ecf1906c80d3bce53/emparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 25659, 12, 88, 4672, 9163, 15452, 294, 15452, 3480, 571, 3480, 9163, 268, 63, 20, 65, 273, 752, 682, 4482, 12, 268, 262, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 25659, 12, 88, 4672, 9163, 15452, 294, 15452, 3480, 571, 3480, 9163, 268, 63, 20, 65, 273, 752, 682, 4482, 12, 268, 262, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100...
self.phase = self.phases[newModes[nodeName]]
new_phase = self.phases[newModes[nodeName]]
def resetInsertionMode(self): # The name of this method is mostly historical. (It's also used in the # specification.) last = False newModes = { "select":"inSelect", "td":"inCell", "th":"inCell", "tr":"inRow", "tbody":"inTableBody", "thead":"inTableBody", "tfoot":"inTableBody", "caption":"inCaption", "colgroup":"inColu...
42f8f37b07c006f9ff5c7cbb9dd4df915b61012c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/42f8f37b07c006f9ff5c7cbb9dd4df915b61012c/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 29739, 2309, 12, 2890, 4672, 468, 1021, 508, 434, 333, 707, 353, 23958, 23922, 18, 261, 7193, 1807, 2546, 1399, 316, 326, 468, 7490, 12998, 1142, 273, 1083, 394, 18868, 273, 288, 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, 2715, 29739, 2309, 12, 2890, 4672, 468, 1021, 508, 434, 333, 707, 353, 23958, 23922, 18, 261, 7193, 1807, 2546, 1399, 316, 326, 468, 7490, 12998, 1142, 273, 1083, 394, 18868, 273, 288, 3...
os.lchown(dst, stats[ST_UID], stats[ST_GID])
chown(dst, stats[ST_UID], stats[ST_GID])
def link(self, link): stats = os.lstat(link) old = re.sub(self.src, self.old, link) dst = re.sub(self.src, self.dst, link) ostats = os.lstat(old) if stats[ST_INO] != ostats[ST_INO]: lnk = os.readlink(link) if self.verbose: print "ln -s <%s> <%s>" % (lnk, dst) if not self.dryrun: # Copy link to destination. os.symlink(l...
49fd5edac5f277d9462e3515d4fbc728abe96be9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6391/49fd5edac5f277d9462e3515d4fbc728abe96be9/timecopy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 12, 2890, 16, 1692, 4672, 3177, 273, 1140, 18, 80, 5642, 12, 1232, 13, 1592, 273, 283, 18, 1717, 12, 2890, 18, 4816, 16, 365, 18, 1673, 16, 1692, 13, 3046, 273, 283, 18, 1717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 12, 2890, 16, 1692, 4672, 3177, 273, 1140, 18, 80, 5642, 12, 1232, 13, 1592, 273, 283, 18, 1717, 12, 2890, 18, 4816, 16, 365, 18, 1673, 16, 1692, 13, 3046, 273, 283, 18, 1717, ...
os.rename(testdir, os.path.abspath("_trial_temp_old%s" % random.randint(0, 99999999)))
print "caught OSError [Errno %s]: %s: could not remove path %s" % (e.errno,e.strerror,e.filename) try: os.rename(testdir, os.path.abspath("_trial_temp_old%s" % random.randint(0, 99999999))) except OSError, e: print "caught OSError [Errno %s]: %s: could not rename path %s" % (e.errno,e.strerror,e.filename) raise
def _setUpTestdir(): testdir = os.path.abspath("_trial_temp") if os.path.exists(testdir): try: shutil.rmtree(testdir) except OSError, e: # XXX Left-over debug print? This is a pretty-dodgy exception handler, # overall. Also, this block is also incorrectly indented. os.rename(testdir, os.path.abspath("_trial_temp_old%...
e8e767faaa9f5204601fef8cd9ff537e00fc9052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e8e767faaa9f5204601fef8cd9ff537e00fc9052/trial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 1211, 4709, 1214, 13332, 1842, 1214, 273, 1140, 18, 803, 18, 5113, 803, 2932, 67, 17493, 67, 5814, 7923, 309, 1140, 18, 803, 18, 1808, 12, 3813, 1214, 4672, 775, 30, 11060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 1211, 4709, 1214, 13332, 1842, 1214, 273, 1140, 18, 803, 18, 5113, 803, 2932, 67, 17493, 67, 5814, 7923, 309, 1140, 18, 803, 18, 1808, 12, 3813, 1214, 4672, 775, 30, 11060, 1...
if self.caption: self.caption_label = text.Label(self.caption,
if self.cfg['caption']: self.caption_label = text.Label(self.cfg['caption'],
def on_enter(self, vw, vh): super(VideoPage, self).on_enter(vw, vh)
7cf7cf2b3418c6af648abaf6db0e4e17965d2407 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/541/7cf7cf2b3418c6af648abaf6db0e4e17965d2407/video.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2328, 12, 2890, 16, 331, 91, 16, 331, 76, 4672, 2240, 12, 10083, 1964, 16, 365, 2934, 265, 67, 2328, 12, 90, 91, 16, 331, 76, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2328, 12, 2890, 16, 331, 91, 16, 331, 76, 4672, 2240, 12, 10083, 1964, 16, 365, 2934, 265, 67, 2328, 12, 90, 91, 16, 331, 76, 13, 2, -100, -100, -100, -100, -100, -100, -1...
vs_cmd = os.path.join(vs_path, vs_bin)
vs_cmd = get_vs_ide_bin()
def build_libraries(): """Builds library targets: expat, scew and pcre.""" vs_cmd = os.path.join(vs_path, vs_bin) cur_path = os.getcwd() print 'Build expat library...' solution_path = os.path.join(cur_path, 'Externals/expat/lib/expat.vcproj') #print sol_path call([vs_cmd, solution_path, '/rebuild', 'Release'], shell=...
cdee0ac14bd2d32ce31a5c65fa41810c50f83d75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5857/cdee0ac14bd2d32ce31a5c65fa41810c50f83d75/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 31417, 13332, 3536, 7746, 5313, 5774, 30, 1329, 270, 16, 272, 311, 91, 471, 293, 1793, 12123, 225, 6195, 67, 4172, 273, 336, 67, 6904, 67, 831, 67, 4757, 1435, 662, 67, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 31417, 13332, 3536, 7746, 5313, 5774, 30, 1329, 270, 16, 272, 311, 91, 471, 293, 1793, 12123, 225, 6195, 67, 4172, 273, 336, 67, 6904, 67, 831, 67, 4757, 1435, 662, 67, 803, ...
amount_unit = product.price_get(pricetype, context)[product.id]
amount_unit = product.price_get('standard_price', context)[product.id]
def do_partial(self, cr, uid, ids, partial_datas, context=None): """ Makes partial picking and moves done. @param partial_datas : Dictionary containing details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom @return: Dictionary of values """ if context is ...
9f6c10ca2a1258aae7d418c26f5083177e38b1a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f6c10ca2a1258aae7d418c26f5083177e38b1a6/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 33, 7036, 4672, 3536, 490, 3223, 4702, 6002, 310, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 33, 7036, 4672, 3536, 490, 3223, 4702, 6002, 310, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178,...
for se in randomize(ses):
for se in randomize( ses ):
def _getSEProximity(self,ses): siteName = DIRAC.siteName() localSEs = getSEsForSite(siteName)['Value'] countrySEs = [] countryCode = siteName.split('.')[-1] res = getSEsForCountry(countryCode) if res['OK']: countrySEs = res['Value'] sortedSEs = [] for se in randomize(ses): if se in localSEs: sortedSEs.append(se) for se...
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1090, 16155, 30786, 12, 2890, 16, 2420, 4672, 27712, 273, 18544, 2226, 18, 4256, 461, 1435, 1191, 1090, 87, 273, 336, 1090, 28388, 4956, 12, 4256, 461, 13, 3292, 620, 3546, 525...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 1090, 16155, 30786, 12, 2890, 16, 2420, 4672, 27712, 273, 18544, 2226, 18, 4256, 461, 1435, 1191, 1090, 87, 273, 336, 1090, 28388, 4956, 12, 4256, 461, 13, 3292, 620, 3546, 525...
self._tofill = []
def fill(self, flag): """ Call fill(1) before drawing the shape you want to fill, and fill(0) when done.
940f668a51bf98e56ee02b2398c53324deae8c87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/940f668a51bf98e56ee02b2398c53324deae8c87/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 2982, 4672, 3536, 3049, 3636, 12, 21, 13, 1865, 16327, 326, 2179, 1846, 2545, 358, 3636, 16, 471, 3636, 12, 20, 13, 1347, 2731, 18, 2, -100, -100, -100, -100, -100,...
fill_color_rgba = self.colors[i] | self.color_stroke,
fill_color_rgba = self.colors[i] | C_STROKE,
def draw_colors(self):
afe6d4cfa4a483507d506d63168d467aba7acf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/afe6d4cfa4a483507d506d63168d467aba7acf11/redraw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 9724, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 9724, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
updated_env_inputs = [env_i for i, env_i in zip(inputs, env.inputs) if getattr(i, 'update', False)] for i in xrange(len(env.outputs)):
updated_env_inputs = [env_i for ii, env_i in zip(inputs, env.inputs) if getattr(ii, 'update', False)] for out_i in xrange(len(env.outputs)):
def __init__(self, inputs, outputs, optimizer, mode, accept_inplace = False, function_builder = Function): """ :type inputs: a list of SymbolicInput instances
673ee5f8d4bf0e167bd3e802f04d13c31237a690 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/673ee5f8d4bf0e167bd3e802f04d13c31237a690/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4540, 16, 6729, 16, 13066, 16, 1965, 16, 2791, 67, 267, 964, 273, 1083, 16, 445, 67, 9574, 273, 4284, 4672, 3536, 294, 723, 4540, 30, 279, 666, 434, 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, 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, 4540, 16, 6729, 16, 13066, 16, 1965, 16, 2791, 67, 267, 964, 273, 1083, 16, 445, 67, 9574, 273, 4284, 4672, 3536, 294, 723, 4540, 30, 279, 666, 434, 16...
def enableNotificationsForObservable(self, observable, notification=None):
def enableNotificationsForObservable(self, observable, notification=None, observer=None):
def enableNotificationsForObservable(self, observable, notification=None): """ Enable notifications posted to all objects observing **notification** in **observable**.
7024add259b126100769d24adb10a2a3994b9d0d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8851/7024add259b126100769d24adb10a2a3994b9d0d/notifications.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4237, 14111, 1290, 15279, 12, 2890, 16, 13875, 16, 3851, 33, 7036, 16, 9655, 33, 7036, 4672, 3536, 9677, 9208, 23082, 358, 777, 2184, 8681, 310, 2826, 9927, 636, 316, 2826, 12199, 16845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4237, 14111, 1290, 15279, 12, 2890, 16, 13875, 16, 3851, 33, 7036, 16, 9655, 33, 7036, 4672, 3536, 9677, 9208, 23082, 358, 777, 2184, 8681, 310, 2826, 9927, 636, 316, 2826, 12199, 16845, ...
val = ''; AP = 'ABCDEFGHIJKLMNOP'
val = b''; AP = b'ABCDEFGHIJKLMNOP'
def Int2AP(num): """Convert integer to A-P string representation.""" val = ''; AP = 'ABCDEFGHIJKLMNOP' num = int(abs(num)) while num: num, mod = divmod(num, 16) val = AP[mod] + val return val
fb5faf02853f5f56fe96f00e8020a6fabe8ac390 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/fb5faf02853f5f56fe96f00e8020a6fabe8ac390/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3094, 22, 2203, 12, 2107, 4672, 225, 3536, 2723, 3571, 358, 432, 17, 52, 533, 4335, 12123, 225, 1244, 273, 324, 6309, 31, 14410, 273, 324, 11, 26904, 12904, 16715, 45, 19474, 17063, 3417...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3094, 22, 2203, 12, 2107, 4672, 225, 3536, 2723, 3571, 358, 432, 17, 52, 533, 4335, 12123, 225, 1244, 273, 324, 6309, 31, 14410, 273, 324, 11, 26904, 12904, 16715, 45, 19474, 17063, 3417...
ConditionSatisfied = NotFlag and (not ConditionSatisfied) or ConditionSatisfied BranchDetermined = ConditionSatisfied and True or False
if NotFlag: ConditionSatisfied = not ConditionSatisfied BranchDetermined = ConditionSatisfied
def PreprocessConditionalStatement(self): # IfList is a stack of if branches with elements of list [Pos, CondSatisfied, BranchDetermined] IfList = [] while self.__GetNextToken(): if self.__Token == 'DEFINE': DefineLine = self.CurrentLineNumber - 1 DefineOffset = self.CurrentOffsetWithinLine - len('DEFINE') if not self....
f85fa578443c7006294e5ca768df9fd867e59d6e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/f85fa578443c7006294e5ca768df9fd867e59d6e/FdfParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2962, 2567, 14132, 3406, 12, 2890, 4672, 468, 971, 682, 353, 279, 2110, 434, 309, 11483, 598, 2186, 434, 666, 306, 1616, 16, 735, 72, 15163, 21501, 16, 15449, 9139, 329, 65, 971, 682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2962, 2567, 14132, 3406, 12, 2890, 4672, 468, 971, 682, 353, 279, 2110, 434, 309, 11483, 598, 2186, 434, 666, 306, 1616, 16, 735, 72, 15163, 21501, 16, 15449, 9139, 329, 65, 971, 682, ...
if coerce:
if kwds.has_key('coerce') and kwds['coerce']:
def ideal(self, *gens, **kwds): if len(gens) == 1 and isinstance(gens[0], (list, tuple)): gens = gens[0] from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular if not isinstance(self.__R,MPolynomialRing_libsingular) and not self.__R._has_singular: # pass through MPolynomialRing_gener...
5e2948952d1d0a00c532cc92f6065cfa7ae89b93 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5e2948952d1d0a00c532cc92f6065cfa7ae89b93/quotient_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 16, 2826, 25577, 4672, 309, 562, 12, 23730, 13, 422, 404, 471, 1549, 12, 23730, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 314, 773, 273, 314, 773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 16, 2826, 25577, 4672, 309, 562, 12, 23730, 13, 422, 404, 471, 1549, 12, 23730, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 314, 773, 273, 314, 773, ...
self.highlight_line(target, lineno)
self.highlight_line(target, lineno, clear_highlighting = False)
def highlight_changes(self, current_step, previous_step): '''Inserts the globals and locals into their respective Text boxes, highlighting any differences between the previous contents and the current one.''' for target in ('globals', 'locals'): if target in current_step: self.clear(target) globals=current_step[target...
e54efb1724e4ea1f43009783bb0726df33343ebf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5103/e54efb1724e4ea1f43009783bb0726df33343ebf/TraceDisplayWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 67, 6329, 12, 2890, 16, 783, 67, 4119, 16, 2416, 67, 4119, 4672, 9163, 14214, 326, 10941, 471, 8985, 1368, 3675, 17613, 3867, 14356, 16, 8839, 310, 1281, 16440, 3086, 326, 2416, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8839, 67, 6329, 12, 2890, 16, 783, 67, 4119, 16, 2416, 67, 4119, 4672, 9163, 14214, 326, 10941, 471, 8985, 1368, 3675, 17613, 3867, 14356, 16, 8839, 310, 1281, 16440, 3086, 326, 2416, 29...
def utf_16_ex_decode( data,errors='strict',byteorder=0,final = 0):
def utf_16_ex_decode( data, errors='strict', byteorder=0, final=0):
def utf_16_ex_decode( data,errors='strict',byteorder=0,final = 0): """None """ if byteorder == 0: bm = 'native' elif byteorder == -1: bm = 'little' else: bm = 'big' consumed = len(data) if final: consumed = 0 res,consumed,byteorder = PyUnicode_DecodeUTF16Stateful(data,len(data),errors,bm,consumed) res = ''.join(res) re...
16ed2024742360e02d96bf99f8cb5ce4527577cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/16ed2024742360e02d96bf99f8cb5ce4527577cd/app_codecs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7718, 67, 2313, 67, 338, 67, 3922, 12, 501, 16, 1334, 2218, 13948, 2187, 1160, 1019, 33, 20, 16, 727, 33, 20, 4672, 3536, 7036, 3536, 309, 1160, 1019, 422, 374, 30, 18829, 273, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7718, 67, 2313, 67, 338, 67, 3922, 12, 501, 16, 1334, 2218, 13948, 2187, 1160, 1019, 33, 20, 16, 727, 33, 20, 4672, 3536, 7036, 3536, 309, 1160, 1019, 422, 374, 30, 18829, 273, 296, ...
'multiple selection': field2lines,
def convert_unicode(self,v): return field2utext.convert_unicode(v).split('\n')
36a4864bf4dc3e627735ccc6c8297f772ac57e2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/36a4864bf4dc3e627735ccc6c8297f772ac57e2d/Converters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 9124, 12, 2890, 16, 90, 4672, 327, 652, 22, 322, 408, 18, 6283, 67, 9124, 12, 90, 2934, 4939, 2668, 64, 82, 6134, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 9124, 12, 2890, 16, 90, 4672, 327, 652, 22, 322, 408, 18, 6283, 67, 9124, 12, 90, 2934, 4939, 2668, 64, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
PyKaraokeApp = wx.PySimpleApp() Mgr = PyKaraokeManager() if Mgr.gui: PyKaraokeApp.Bind(wx.EVT_IDLE, Mgr.handleIdle) while True: PyKaraokeApp.MainLoop()
MyApp = PyKaraokeApp(False) while True: MyApp.MainLoop()
def main(): PyKaraokeApp = wx.PySimpleApp() Mgr = PyKaraokeManager() if Mgr.gui: PyKaraokeApp.Bind(wx.EVT_IDLE, Mgr.handleIdle) # Normally, MainLoop() should only be called once; it will # return when it receives WM_QUIT. However, since pygame # posts WM_QUIT when the user closes the pygame window, we # need to keep...
4bdff07b608a315427d88307a32fb90337a800e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12653/4bdff07b608a315427d88307a32fb90337a800e1/pykaraoke.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 4707, 47, 297, 69, 3056, 3371, 273, 7075, 18, 9413, 5784, 3371, 1435, 490, 3197, 273, 4707, 47, 297, 69, 3056, 1318, 1435, 225, 309, 490, 3197, 18, 20292, 30, 4707, 47, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4707, 47, 297, 69, 3056, 3371, 273, 7075, 18, 9413, 5784, 3371, 1435, 490, 3197, 273, 4707, 47, 297, 69, 3056, 1318, 1435, 225, 309, 490, 3197, 18, 20292, 30, 4707, 47, 29...
DebugPrint(4, "DEBUG: call readCertinfo: OK")
DebugPrint(4, "DEBUG: call readCertInfo: OK")
def verifyFromCertInfo(xmlDoc, userIdentityNode, namespace, prefix): " Use localJobID and probeName to find cert info file and insert info into XML record" # Collect data needed by certinfo reader DebugPrint(4, "DEBUG: Get JobIdentity") JobIdentityNode = GetNode(xmlDoc.getElementsByTagNameNS(namespace, 'JobIdentity'))...
619000acdc07cf8ab2fdbf264676c5523649f262 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/619000acdc07cf8ab2fdbf264676c5523649f262/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 1265, 5461, 966, 12, 2902, 1759, 16, 729, 4334, 907, 16, 1981, 16, 1633, 4672, 315, 2672, 1191, 2278, 734, 471, 10695, 461, 358, 1104, 3320, 1123, 585, 471, 2243, 1123, 1368, 3167,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 1265, 5461, 966, 12, 2902, 1759, 16, 729, 4334, 907, 16, 1981, 16, 1633, 4672, 315, 2672, 1191, 2278, 734, 471, 10695, 461, 358, 1104, 3320, 1123, 585, 471, 2243, 1123, 1368, 3167,...
def output(self, attrs=None, header="Set-Cookie:", sep="\n"):
def output(self, attrs=None, header="Set-Cookie:", sep="\015\012"):
def output(self, attrs=None, header="Set-Cookie:", sep="\n"): """Return a string suitable for HTTP.""" result = [] items = self.items() items.sort() for K,V in items: result.append( V.output(attrs, header) ) return sep.join(result)
a5884e244756452a6c5bd600142d210ac0099052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a5884e244756452a6c5bd600142d210ac0099052/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 12, 2890, 16, 3422, 33, 7036, 16, 1446, 1546, 694, 17, 6151, 2773, 16, 5478, 1546, 64, 1611, 25, 64, 1611, 22, 6, 4672, 3536, 990, 279, 533, 10631, 364, 2239, 12123, 563, 273, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 12, 2890, 16, 3422, 33, 7036, 16, 1446, 1546, 694, 17, 6151, 2773, 16, 5478, 1546, 64, 1611, 25, 64, 1611, 22, 6, 4672, 3536, 990, 279, 533, 10631, 364, 2239, 12123, 563, 273, 5...
sys.stdout.write(data)
sys.stdout.write(data.decode('ascii'))
def listener(self): """Helper for mt_interact() -- this executes in the other thread.""" while 1: try: data = self.read_eager() except EOFError: print('*** Connection closed by remote host ***') return if data: sys.stdout.write(data) else: sys.stdout.flush()
3650b8ddf54d44c66f13b43f92f02826db866d21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/3650b8ddf54d44c66f13b43f92f02826db866d21/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 12, 2890, 4672, 3536, 2276, 364, 5874, 67, 2761, 621, 1435, 1493, 333, 11997, 316, 326, 1308, 2650, 12123, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 896, 67, 73, 6817, 1435, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 12, 2890, 4672, 3536, 2276, 364, 5874, 67, 2761, 621, 1435, 1493, 333, 11997, 316, 326, 1308, 2650, 12123, 1323, 404, 30, 775, 30, 501, 273, 365, 18, 896, 67, 73, 6817, 1435, 133...
client = dynamic_reconfigure.client.Client('tilt_hokuyo_node') old_config = client.get_configuration(2.0) new_config = {'skip': 0, 'intensity': 0, 'min_ang': -1.57, 'max_ang': 1.57, 'calibrate_time': 1, 'cluster': 1, 'time_offset': 0.0} rospy.loginfo('Setting laser to the navigation configuration: %s' % new_config) cli...
client = dynamic_reconfigure.client.Client('tilt_hokuyo_node') global old_config old_config = client.get_configuration(2.0) new_config = {'skip': 0, 'intensity': 0, 'min_ang': -1.57, 'max_ang': 1.57, 'calibrate_time': 1, 'cluster': 1, 'time_offset': 0.0} rospy.loginfo('Setting laser to the navigation configuration: %s'...
def configure_laser(): #TODO: remove hack to get things working in gazebo try: rospy.wait_for_service('tilt_hokuyo_node/set_parameters', 1.0) except rospy.exceptions.ROSException, e: return #end TODO client = dynamic_reconfigure.client.Client('tilt_hokuyo_node') old_config = client.get_configuration(2.0) new_config = ...
122c6f7455ce682a4e43ae2b05805de7bdb5d781 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9426/122c6f7455ce682a4e43ae2b05805de7bdb5d781/pr2_move_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 9521, 264, 13332, 468, 6241, 30, 1206, 11769, 358, 336, 9198, 5960, 316, 314, 1561, 73, 1075, 775, 30, 721, 30884, 18, 7048, 67, 1884, 67, 3278, 2668, 29419, 67, 76, 601, 983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 9521, 264, 13332, 468, 6241, 30, 1206, 11769, 358, 336, 9198, 5960, 316, 314, 1561, 73, 1075, 775, 30, 721, 30884, 18, 7048, 67, 1884, 67, 3278, 2668, 29419, 67, 76, 601, 983...
self.statemachine.node += self.unindentwarning()
self.statemachine.node += self.unindent_warning('Definition list')
def indent(self, match, context, nextstate): """Definition list item.""" definitionlist = nodes.definition_list() definitionlistitem, blankfinish = self.definition_list_item(context) definitionlist += definitionlistitem self.statemachine.node += definitionlist offset = self.statemachine.lineoffset + 1 # next line new...
ce0c24195139efc8334ce9dec2c49af5e21c1202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ce0c24195139efc8334ce9dec2c49af5e21c1202/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3504, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 1852, 666, 761, 12123, 2379, 1098, 273, 2199, 18, 6907, 67, 1098, 1435, 2379, 1098, 1726, 16, 7052, 13749, 273, 365, 18, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3504, 12, 2890, 16, 845, 16, 819, 16, 1024, 2019, 4672, 3536, 1852, 666, 761, 12123, 2379, 1098, 273, 2199, 18, 6907, 67, 1098, 1435, 2379, 1098, 1726, 16, 7052, 13749, 273, 365, 18, 6...
return ' '.join(['%s = %s' %
return ' AND '.join(['%s = %s' %
def _SO_columnClause(self, soClass, kw): return ' '.join(['%s = %s' % (soClass._SO_columnDict[key].dbName, self.sqlrepr(value)) for key, value in kw.items()])
6fd335f1c9f7c1b140e5117ae6babb201b81ef68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/6fd335f1c9f7c1b140e5117ae6babb201b81ef68/dbconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3584, 67, 2827, 7044, 12, 2890, 16, 1427, 797, 16, 5323, 4672, 327, 296, 4116, 2418, 5701, 12, 3292, 9, 87, 273, 738, 87, 11, 738, 261, 2048, 797, 6315, 3584, 67, 2827, 5014, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3584, 67, 2827, 7044, 12, 2890, 16, 1427, 797, 16, 5323, 4672, 327, 296, 4116, 2418, 5701, 12, 3292, 9, 87, 273, 738, 87, 11, 738, 261, 2048, 797, 6315, 3584, 67, 2827, 5014, 63...
print >>sys.stderr, "l1=%r, l2=%r, ignore=%r" % (l1, l2, ignore)
print >>sys.stderr, "l1=%r\nl2=%r\nignore=%r" % (l1, l2, ignore)
def assertListEq(self, l1, l2, ignore): ''' succeed iff {l1} - {ignore} == {l2} - {ignore} ''' try: for p1, p2 in (l1, l2), (l2, l1): for item in p1: ok = (item in p2) or (item in ignore) if not ok: self.fail("%r missing" % item) except: print >>sys.stderr, "l1=%r, l2=%r, ignore=%r" % (l1, l2, ignore) raise
7f6a4390408e28e9c3cc3e1bb32f3908ba969091 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7f6a4390408e28e9c3cc3e1bb32f3908ba969091/test_pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 682, 19508, 12, 2890, 16, 328, 21, 16, 328, 22, 16, 2305, 4672, 9163, 12897, 21437, 288, 80, 21, 97, 300, 288, 6185, 97, 422, 288, 80, 22, 97, 300, 288, 6185, 97, 9163, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 682, 19508, 12, 2890, 16, 328, 21, 16, 328, 22, 16, 2305, 4672, 9163, 12897, 21437, 288, 80, 21, 97, 300, 288, 6185, 97, 422, 288, 80, 22, 97, 300, 288, 6185, 97, 9163, 775, ...
sys.exit(2)
sys.exit(2) """
def run(self): """ 2007-08-13 """ from FilterStrainSNPMatrix import FilterStrainSNPMatrix FilterStrainSNPMatrix_instance = FilterStrainSNPMatrix() header, strain_acc_list, category_list, data_matrix = FilterStrainSNPMatrix_instance.read_data(self.input_fname, int(self.nt_alphabet_bits[0])) data_matrix = Numeric.array(d...
6273ac84acfe2ee45dc7cd3c2efc3b4a466b2bde /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/6273ac84acfe2ee45dc7cd3c2efc3b4a466b2bde/EstimateSelfingRate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 4044, 27, 17, 6840, 17, 3437, 3536, 628, 4008, 1585, 530, 13653, 52, 4635, 1930, 4008, 1585, 530, 13653, 52, 4635, 4008, 1585, 530, 13653, 52, 4635, 67, 1336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27, 17, 6840, 17, 3437, 3536, 628, 4008, 1585, 530, 13653, 52, 4635, 1930, 4008, 1585, 530, 13653, 52, 4635, 4008, 1585, 530, 13653, 52, 4635, 67, 1336,...